:root {
  --pf-accent: #d93025;
  --pf-accent-strong: #ff5a36;
  --pf-accent-soft: rgba(217, 48, 37, 0.18);
  --pf-surface: rgba(255, 255, 255, 0.05);
  --pf-surface-strong: rgba(255, 255, 255, 0.08);
  --pf-surface-border: rgba(255, 255, 255, 0.12);
  --pf-text: #fff6f2;
  --pf-muted: #d8c2ba;
  --pf-dark: #110202;
  --pf-dark-soft: #220606;
  --pf-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --pf-radius: 24px;
}

html,
body {
  min-height: 100%;
}

html.pf-restoring-scroll body {
  visibility: hidden;
}

body.admin-theme {
  position: relative;
  font-family: "Poppins", system-ui, Arial, sans-serif;
  color: var(--pf-muted);
  background:
    radial-gradient(circle at top left, rgba(255, 113, 67, 0.28), transparent 32%),
    radial-gradient(circle at 85% 12%, rgba(255, 72, 0, 0.14), transparent 24%),
    linear-gradient(180deg, #2c0505 0%, #170404 42%, #080101 100%);
  background-attachment: fixed;
}

body.admin-theme::before,
body.admin-theme::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: -1;
  border-radius: 50%;
}

body.admin-theme::before {
  top: 8%;
  right: -120px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(255, 118, 72, 0.18), transparent 68%);
}

body.admin-theme::after {
  left: -140px;
  bottom: 6%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06), transparent 70%);
}

.admin-theme .container {
  max-width: 1240px;
}

.admin-theme .navbar {
  background: rgba(12, 3, 3, 0.72) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.brand-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.32));
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-title {
  color: var(--pf-text);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.brand-subtitle {
  color: var(--pf-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.admin-theme .navbar .nav-link {
  color: rgba(255, 246, 242, 0.82) !important;
  font-weight: 600;
}

.admin-theme .navbar .nav-link.active,
.admin-theme .navbar .nav-link:hover {
  color: #fff !important;
}

.admin-theme .navbar .nav-link.active {
  position: relative;
}

.admin-theme .navbar .nav-link.active::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.35rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pf-accent-strong), transparent);
}

.admin-main {
  padding-top: 2rem;
  padding-bottom: 5rem;
}

.admin-theme .card,
.admin-panel,
.login-card,
.metric-card {
  border: 1px solid var(--pf-surface-border) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.04)) !important;
  box-shadow: var(--pf-shadow);
  backdrop-filter: blur(18px);
  border-radius: var(--pf-radius);
}

.admin-theme .card-header,
.admin-theme .card-footer {
  background: transparent !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.admin-theme .card-header {
  position: relative;
  padding-top: 1.15rem;
  padding-bottom: 1.2rem;
}

.admin-theme .card-header::after {
  content: "";
  position: absolute;
  left: 1.25rem;
  bottom: 0;
  width: 86px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pf-accent-strong), transparent);
}

.admin-theme .table,
.admin-theme .table th,
.admin-theme .table td,
.admin-theme .form-label,
.admin-theme h1,
.admin-theme h2,
.admin-theme h3,
.admin-theme h4,
.admin-theme h5,
.admin-theme h6,
.admin-theme .fw-semibold,
.admin-theme .fw-bold {
  color: var(--pf-text) !important;
}

.admin-theme .text-muted,
.admin-theme small,
.admin-theme .form-text {
  color: var(--pf-muted) !important;
}

.admin-theme .table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--pf-text);
  --bs-table-border-color: rgba(255, 255, 255, 0.08);
  --bs-table-hover-bg: rgba(255, 255, 255, 0.04);
}

.admin-theme .form-control,
.admin-theme .form-select {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--pf-text);
  border-radius: 18px;
  min-height: 48px;
}

.admin-theme .form-control::placeholder {
  color: rgba(216, 194, 186, 0.72);
}

.admin-theme .form-control:focus,
.admin-theme .form-select:focus {
  border-color: rgba(255, 90, 54, 0.7);
  box-shadow: 0 0 0 0.25rem rgba(217, 48, 37, 0.18);
  background: rgba(255, 255, 255, 0.1);
  color: var(--pf-text);
}

.admin-theme .form-control[type="file"] {
  padding: 0.5rem;
  overflow: hidden;
}

.admin-theme .form-control[type="file"]::file-selector-button {
  margin-right: 0.95rem;
  padding: 0.8rem 1rem;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(217, 48, 37, 0.92), rgba(255, 90, 54, 0.92));
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: 0.18s ease;
}

.admin-theme .form-control[type="file"]::file-selector-button:hover {
  filter: brightness(1.08);
}

.admin-theme .form-select option {
  color: #111;
}

.admin-theme .btn-primary {
  background: linear-gradient(135deg, var(--pf-accent), var(--pf-accent-strong));
  border: none;
  border-radius: 18px;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 18px 30px rgba(217, 48, 37, 0.28);
}

.admin-theme .btn-primary:hover,
.admin-theme .btn-primary:focus {
  background: linear-gradient(135deg, #e34231, #ff7447);
}

.admin-theme .btn-outline-light,
.admin-theme .btn-outline-primary,
.admin-theme .btn-outline-secondary,
.admin-theme .btn-outline-danger {
  border-radius: 16px;
}

.admin-theme .badge.text-bg-primary {
  background: linear-gradient(135deg, var(--pf-accent), var(--pf-accent-strong)) !important;
}

.admin-theme .badge.text-bg-secondary {
  background: rgba(255, 255, 255, 0.12) !important;
  color: var(--pf-text) !important;
}

.avatar-thumb {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
}

.metric-card {
  overflow: hidden;
  position: relative;
}

.metric-card::after {
  content: "";
  position: absolute;
  inset: auto -18% -28% auto;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(255, 90, 54, 0.22), transparent 65%);
}

.page-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.page-hero-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.section-header-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.hero-eyebrow {
  display: inline-flex;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: var(--pf-accent-soft);
  color: #ffd8d0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.admin-theme .card-header .h5,
.admin-theme .card-header h1.h5,
.admin-theme .card-header h2.h5 {
  font-size: 1.38rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.admin-theme .card-header .h6,
.admin-theme .card-header h2.h6 {
  font-size: 1.04rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.login-shell {
  min-height: calc(100vh - 2rem);
  display: grid;
  align-items: center;
}

.login-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 1.75rem;
}

.login-showcase,
.login-card {
  padding: 2rem;
}

.login-showcase {
  position: relative;
  overflow: hidden;
}

.login-showcase::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 90, 54, 0.2), transparent 68%);
}

.login-logo {
  width: 120px;
  margin-bottom: 1.5rem;
}

.login-title {
  color: var(--pf-text);
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.02;
  font-weight: 800;
  margin-bottom: 1rem;
}

.login-lead {
  max-width: 34rem;
  font-size: 1rem;
}

.login-points {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.login-point {
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--pf-text);
}

.admin-theme .list-group-item {
  color: var(--pf-text);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.08);
}

.info-note {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--pf-text);
  padding: 1rem 1.1rem;
}

.pf-swal-popup {
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 18px !important;
  background:
    radial-gradient(circle at top left, rgba(255, 113, 67, 0.14), transparent 35%),
    linear-gradient(180deg, rgba(39, 9, 9, 0.98), rgba(18, 5, 5, 0.98)) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35) !important;
  backdrop-filter: blur(18px);
}

.pf-swal-title {
  color: var(--pf-text) !important;
  font-family: "Poppins", system-ui, Arial, sans-serif !important;
  font-size: 0.98rem !important;
  font-weight: 600 !important;
}

.pf-swal-btn {
  margin: 0 0.25rem;
}

.pf-swal-progress {
  background: linear-gradient(90deg, var(--pf-accent), var(--pf-accent-strong)) !important;
}

.company-search {
  position: relative;
  z-index: 40;
}

.company-search-results {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  right: 0;
  z-index: 120;
  display: grid;
  gap: 0.35rem;
  padding: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(18, 5, 5, 0.96);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
  max-height: 280px;
  overflow-y: auto;
}

.filter-card,
.filter-card .card-body {
  overflow: visible !important;
}

.order-form-card,
.order-form-card .card-body {
  overflow: visible !important;
}

.filter-card {
  position: relative;
  z-index: 25;
}

.order-form-card {
  position: relative;
  z-index: 35;
}

.company-search-option,
.company-search-empty {
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 0.85rem 0.9rem;
  text-align: left;
  background: transparent;
  color: var(--pf-text);
}

.company-search-option:hover {
  background: rgba(255, 255, 255, 0.08);
}

.company-search-empty {
  color: var(--pf-muted);
  cursor: default;
}

.pf-date-picker {
  position: relative;
  z-index: 6;
}

.pf-date-input {
  padding-right: 3.5rem;
  cursor: pointer;
}

.pf-date-button {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--pf-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: 0.18s ease;
}

.pf-date-button:hover {
  background: rgba(255, 255, 255, 0.14);
}

.pf-date-icon {
  position: relative;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.pf-date-icon::before,
.pf-date-icon::after {
  content: "";
  position: absolute;
  top: -4px;
  width: 2px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
}

.pf-date-icon::before {
  left: 3px;
}

.pf-date-icon::after {
  right: 3px;
}

.pf-date-panel {
  position: absolute;
  top: calc(100% + 0.55rem);
  left: 0;
  width: 100%;
  min-width: 290px;
  padding: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(255, 113, 67, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(32, 8, 8, 0.98), rgba(17, 4, 4, 0.98));
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(18px);
}

.pf-date-panel-header,
.pf-date-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.pf-date-panel-header {
  margin-bottom: 0.9rem;
}

.pf-date-month-label {
  color: var(--pf-text);
  font-size: 0.98rem;
  font-weight: 700;
  text-transform: capitalize;
}

.pf-date-nav,
.pf-date-action {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--pf-text);
  font-weight: 600;
  transition: 0.18s ease;
}

.pf-date-nav {
  width: 38px;
  height: 38px;
  font-size: 1.25rem;
  line-height: 1;
}

.pf-date-nav:hover,
.pf-date-action:hover {
  background: rgba(255, 255, 255, 0.1);
}

.pf-date-weekdays,
.pf-date-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.35rem;
}

.pf-date-weekdays {
  margin-bottom: 0.55rem;
}

.pf-date-weekdays span {
  color: var(--pf-muted);
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.pf-date-day {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--pf-text);
  font-weight: 600;
  transition: 0.18s ease;
}

.pf-date-day:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.08);
}

.pf-date-day.is-outside {
  color: rgba(216, 194, 186, 0.45);
}

.pf-date-day.is-today {
  border-color: rgba(255, 120, 92, 0.35);
}

.pf-date-day.is-selected {
  background: linear-gradient(135deg, var(--pf-accent), var(--pf-accent-strong));
  color: #fff;
  box-shadow: 0 12px 24px rgba(217, 48, 37, 0.22);
}

.pf-date-actions {
  margin-top: 0.9rem;
}

.pf-date-action {
  min-height: 40px;
  padding: 0.65rem 0.9rem;
}

.pf-date-action.is-primary {
  background: linear-gradient(135deg, rgba(217, 48, 37, 0.92), rgba(255, 90, 54, 0.92));
  border-color: transparent;
  color: #fff;
}

.choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.role-choice-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.item-row {
  border-color: rgba(255, 255, 255, 0.12) !important;
  background: rgba(255, 255, 255, 0.02);
}

.item-row-title {
  color: var(--pf-text);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.item-row .form-label {
  margin-bottom: 0.55rem;
}

.item-type-choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.item-weight-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice-chip {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  min-height: 48px;
  padding: 0.8rem 0.9rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--pf-text);
  font-weight: 600;
  line-height: 1;
  transition: 0.18s ease;
}

.choice-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}

.choice-chip.active {
  background: linear-gradient(135deg, var(--pf-accent), var(--pf-accent-strong));
  border-color: transparent;
  box-shadow: 0 14px 28px rgba(217, 48, 37, 0.24);
  color: #fff;
}

.item-row .item-description[readonly],
.item-row .item-total[readonly] {
  background: rgba(255, 255, 255, 0.06);
}

#pedido-form {
  padding-bottom: 1rem;
}

.currency-field {
  position: relative;
}

.currency-prefix {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--pf-muted);
  font-weight: 700;
  pointer-events: none;
  z-index: 1;
}

.currency-field .form-control {
  padding-left: 3rem;
}

.filter-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.filter-actions .btn {
  min-width: 120px;
}

.orders-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.orders-header-text {
  color: var(--pf-muted);
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.35;
}

.orders-list {
  display: grid;
  gap: 1rem;
}

.company-card {
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(255, 90, 54, 0.08), transparent 32%),
    rgba(255, 255, 255, 0.03);
}

.company-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.company-label {
  color: #ffd7cf;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-bottom: 0.42rem;
}

.company-name {
  color: var(--pf-text);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.2;
}

.company-cnpj-badge {
  flex-shrink: 0;
  padding: 0.8rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--pf-text);
  font-size: 0.96rem;
  font-weight: 700;
}

.company-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.company-meta-box,
.company-address {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.9rem 1rem;
}

.company-meta-box strong {
  display: block;
  color: var(--pf-text);
  font-size: 0.98rem;
  line-height: 1.2;
}

.company-address {
  margin-bottom: 1rem;
}

.company-address p {
  color: var(--pf-text);
}

.user-card {
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(255, 90, 54, 0.08), transparent 32%),
    rgba(255, 255, 255, 0.03);
}

.user-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.user-identity {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.user-avatar-lg,
.user-avatar-fallback {
  width: 46px !important;
  height: 46px !important;
  min-width: 46px;
  min-height: 46px;
  max-width: 46px !important;
  max-height: 46px !important;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
}

.user-avatar-lg {
  display: block;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.user-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(217, 48, 37, 0.4), rgba(255, 90, 54, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--pf-text);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
}

.user-login {
  margin-top: 0.3rem;
  color: var(--pf-muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.user-role-badge {
  flex-shrink: 0;
  padding: 0.8rem 1rem;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(217, 48, 37, 0.24), rgba(255, 90, 54, 0.16));
  border: 1px solid rgba(255, 120, 92, 0.24);
  color: var(--pf-text);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: capitalize;
}

.user-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.ranking-card,
.ranking-company-card {
  padding: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
}

.ranking-card-top,
.ranking-company-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.ranking-position {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 40px;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--pf-text);
  font-weight: 700;
}

.ranking-company-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.ranking-order-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.ranking-value,
.ranking-company-value {
  padding: 0.7rem 0.9rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(217, 48, 37, 0.24), rgba(255, 90, 54, 0.16));
  border: 1px solid rgba(255, 120, 92, 0.24);
  color: var(--pf-text);
  font-weight: 700;
}

.ranking-order-company {
  color: var(--pf-text);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.2;
}

.ranking-order-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.ranking-company-list {
  display: grid;
  gap: 1rem;
}

.ranking-company-name {
  color: var(--pf-text);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}

.ranking-company-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.order-card {
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(255, 90, 54, 0.08), transparent 32%),
    rgba(255, 255, 255, 0.03);
}

.order-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.order-number {
  color: #ffd7cf;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.order-company {
  color: var(--pf-text);
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(217, 48, 37, 0.2), rgba(255, 90, 54, 0.1));
  border: 1px solid rgba(255, 120, 92, 0.22);
  box-shadow: 0 14px 28px rgba(217, 48, 37, 0.14);
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.order-value {
  flex-shrink: 0;
  padding: 0.8rem 1rem;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(217, 48, 37, 0.24), rgba(255, 90, 54, 0.16));
  border: 1px solid rgba(255, 120, 92, 0.24);
  color: var(--pf-text);
  font-size: 1.05rem;
  font-weight: 700;
}

.order-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.order-meta-box,
.order-description {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.9rem 1rem;
}

.order-meta-label {
  display: block;
  color: #ffd7cf;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-bottom: 0.48rem;
}

.order-meta-box strong {
  display: block;
  color: var(--pf-text);
  font-size: 0.98rem;
  line-height: 1.2;
}

.order-meta-box small {
  display: block;
  margin-top: 0.28rem;
  color: var(--pf-muted);
  font-size: 0.82rem;
}

.order-description {
  margin-bottom: 1rem;
}

.order-description p {
  color: var(--pf-text);
}

.order-items-wrap {
  margin-bottom: 1rem;
}

.order-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.order-item-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--pf-text);
  font-size: 0.92rem;
  font-weight: 600;
}

.order-item-chip.is-muted {
  color: var(--pf-muted);
}

.order-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding-top: 0.2rem;
}

.orders-empty {
  padding: 2rem 1.25rem;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
}

.orders-empty-title {
  color: var(--pf-text);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.orders-empty-text {
  color: var(--pf-muted);
}

@media (max-width: 991.98px) {
  .login-grid {
    grid-template-columns: 1fr;
  }

  .page-hero {
    flex-direction: column;
    align-items: stretch;
  }

  .section-header-inline {
    flex-direction: column;
    align-items: stretch;
  }

  .order-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .company-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .user-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 575.98px) {
  .login-showcase,
  .login-card {
    padding: 1.35rem;
  }

  .brand-subtitle {
    display: none;
  }

  .item-type-choices,
  .item-weight-choices {
    grid-template-columns: 1fr 1fr;
  }

  .filter-actions,
  .company-card-top,
  .user-card-top,
  .ranking-card-top,
  .ranking-company-top,
  .order-card-top,
  .order-actions {
    flex-direction: column;
  }

  .filter-actions .btn,
  .order-actions .btn,
  .order-actions form {
    width: 100%;
  }

  .order-meta-grid {
    grid-template-columns: 1fr;
  }

  .company-meta-grid {
    grid-template-columns: 1fr;
  }

  .user-meta-grid {
    grid-template-columns: 1fr;
  }

  .company-cnpj-badge,
  .user-role-badge,
  .ranking-value,
  .ranking-company-value,
  .order-value {
    width: 100%;
    text-align: left;
  }

  .ranking-company-head {
    width: 100%;
  }

  .ranking-order-head {
    width: 100%;
  }
}
