/* Page-specific styles extracted from provider_orders.html for browser caching. */
body.page-provider-orders {
    --po-primary: #1FB5A8;
    --po-primary-strong: #1FB5A8;
    --po-primary-deep: #073b3a;
    --po-accent: #7E57C2;
    --po-accent-strong: #7353C8;
    --po-gold: #D99A28;
    --po-info: #1FB5A8;
    --po-danger: #be123c;
    --po-surface: #ffffff;
    --po-surface-soft: #f7fbfb;
    --po-line: rgba(15, 118, 110, 0.13);
    --po-line-strong: rgba(15, 118, 110, 0.24);
    --po-ink: #14252f;
    --po-muted: #60727b;
    --po-soft: rgba(15, 118, 110, 0.1);
    --po-purple-soft: rgba(103, 58, 183, 0.1);
    --po-shadow: 0 18px 44px rgba(4, 28, 40, 0.1);
    --po-shadow-soft: 0 10px 26px rgba(4, 28, 40, 0.07);
    overflow-x: clip !important;
    background:
      radial-gradient(ellipse at 82% 0%, rgba(14, 116, 144, 0.16), transparent 42%),
      radial-gradient(ellipse at 5% 22%, rgba(15, 118, 110, 0.11), transparent 38%),
      radial-gradient(ellipse at 88% 72%, rgba(103, 58, 183, 0.08), transparent 32%),
      linear-gradient(180deg, #e6f7f8 0%, #f0fafa 32%, #f8fafc 100%) !important;
  }

  body.page-provider-orders .page-content {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 74px 14px 116px !important;
  }

  body.page-provider-orders .container,
  body.page-provider-orders .page-shell,
  body.page-provider-orders #porders-content {
    width: min(1360px, 100%) !important;
    max-width: 1360px !important;
    margin-inline: auto !important;
    padding-inline: 0 !important;
  }

  body.page-provider-orders #porders-content,
  body.page-provider-orders #porders-content * {
    box-sizing: border-box !important;
    min-width: 0 !important;
    letter-spacing: 0;
  }

  body.page-provider-orders #porders-content {
    display: grid;
    gap: 14px;
  }

  body.page-provider-orders #auth-gate {
    width: min(100%, 620px) !important;
    min-height: 360px !important;
    margin: 58px auto !important;
    padding: 30px 24px !important;
    display: none;
    place-items: center;
    text-align: center;
    border: 1px solid var(--po-line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--po-shadow);
  }

  body.page-provider-orders .auth-gate-unified-icon {
    width: 66px;
    height: 66px;
    margin: 0 auto 14px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--po-primary), var(--po-info));
  }

  body.page-provider-orders .auth-gate-unified-title {
    margin: 0;
    color: var(--po-ink);
    font-size: clamp(1.7rem, 4vw, 2.2rem);
    font-weight: 950;
  }

  body.page-provider-orders .auth-gate-unified-desc {
    max-width: 460px;
    margin: 10px auto 22px;
    color: var(--po-muted);
    font-size: 14px;
    line-height: 1.9;
    font-weight: 700;
  }

  body.page-provider-orders .auth-gate-unified-btn {
    min-height: 46px;
    min-width: 164px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #fff;
    text-decoration: none;
    font-weight: 900;
    background: linear-gradient(135deg, var(--po-primary), var(--po-primary-strong));
    box-shadow: 0 14px 28px rgba(15, 118, 110, 0.18);
  }

  body.page-provider-orders .po-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 22px;
    color: #fff;
    background:
      radial-gradient(circle at 92% 12%, rgba(255, 255, 255, 0.18), transparent 28%),
      radial-gradient(circle at 12% 88%, rgba(103, 58, 183, 0.2), transparent 34%),
      linear-gradient(128deg, #1FB5A8 0%, #1FB5A8 36%, #1FB5A8 68%, #1FB5A8 100%);
    box-shadow: 0 22px 52px rgba(4, 28, 40, 0.18);
  }

  body.page-provider-orders .po-hero-main {
    display: grid;
    gap: 8px;
  }

  body.page-provider-orders .po-hero-topline {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  body.page-provider-orders .po-back-btn {
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 13px;
    color: var(--po-primary-strong);
    background: rgba(255, 255, 255, 0.96);
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(18, 9, 40, 0.18);
  }

  body.page-provider-orders .po-hero-kicker {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
    font-size: 12px;
    font-weight: 900;
  }

  body.page-provider-orders .po-tab-icon {
    width: 17px;
    height: 17px;
    color: #ccfbf1;
    flex: 0 0 auto;
  }

  body.page-provider-orders .po-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.9rem, 3vw, 2.65rem);
    line-height: 1.15;
    font-weight: 950;
  }

  body.page-provider-orders .po-header-subtitle {
    max-width: 58ch;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    line-height: 1.75;
    font-weight: 700;
  }

  body.page-provider-orders .po-header-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(118px, 150px));
    gap: 10px;
  }

  body.page-provider-orders .po-header-stat {
    min-height: 78px;
    display: grid;
    align-content: center;
    gap: 2px;
    padding: 11px 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }

  body.page-provider-orders .po-header-stat span,
  body.page-provider-orders .po-header-stat small {
    color: rgba(255, 255, 255, 0.74);
    font-size: 11px;
    font-weight: 850;
  }

  body.page-provider-orders .po-header-stat strong {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 950;
    line-height: 1;
  }

  body.page-provider-orders .po-command-bar,
  body.page-provider-orders .po-controls-panel,
  body.page-provider-orders .po-results-board {
    border: 1px solid var(--po-line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--po-shadow-soft);
  }

  body.page-provider-orders .po-command-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
  }

  body.page-provider-orders .po-main-tabs-wrap {
    min-width: 0;
  }

  body.page-provider-orders .po-main-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    overflow: visible;
    padding: 0;
  }

  body.page-provider-orders .status-tab {
    min-height: 48px;
    margin: 0;
    padding: 9px 11px;
    border: 1px solid var(--po-line);
    border-radius: 14px;
    background: var(--po-surface-soft);
    color: var(--po-ink);
    font-family: inherit;
    font-weight: 900;
    cursor: pointer;
    transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
  }

  body.page-provider-orders .status-tab:hover {
    transform: translateY(-1px);
    border-color: var(--po-line-strong);
  }

  body.page-provider-orders .po-main-tabs .status-tab {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  body.page-provider-orders .po-main-tabs .status-tab.active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--po-primary), var(--po-primary-strong));
    box-shadow: 0 12px 24px rgba(15, 118, 110, 0.17);
  }

  body.page-provider-orders .po-main-tabs .status-tab[data-tab="urgent"].active {
    background: linear-gradient(135deg, #b45309, #e11d48);
  }

  body.page-provider-orders .po-main-tabs .status-tab[data-tab="competitive"].active {
    background: linear-gradient(135deg, var(--po-accent-strong), var(--po-accent));
  }

  body.page-provider-orders .po-tab-copy {
    display: grid;
    gap: 1px;
    text-align: start;
  }

  body.page-provider-orders .po-tab-copy small {
    color: var(--po-muted);
    font-size: 11px;
    font-weight: 800;
  }

  body.page-provider-orders .status-tab.active .po-tab-copy small {
    color: rgba(255, 255, 255, 0.78);
  }

  body.page-provider-orders .po-tab-count {
    min-width: 30px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    color: var(--po-primary-strong);
    background: #fff;
    font-size: 12px;
    font-weight: 950;
  }

  body.page-provider-orders .po-smart-bar {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  body.page-provider-orders .po-sort-wrap {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    border: 1px solid var(--po-line);
    border-radius: 13px;
    background: #fff;
  }

  body.page-provider-orders .po-sort-label {
    color: var(--po-muted);
    font-size: 11px;
    font-weight: 850;
  }

  body.page-provider-orders .po-sort-select {
    min-width: 126px;
    height: 38px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--po-ink);
    font-family: inherit;
    font-weight: 900;
  }

  body.page-provider-orders .po-toolbar-btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 13px;
    border: 1px solid transparent;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(135deg, var(--po-primary), var(--po-primary-strong));
    font-family: inherit;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(15, 118, 110, 0.13);
  }

  body.page-provider-orders .po-toolbar-btn svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
  }

  body.page-provider-orders .po-toolbar-btn-light {
    color: var(--po-primary-strong);
    border-color: var(--po-line);
    background: #fff;
    box-shadow: none;
  }

  body.page-provider-orders .po-toolbar-btn.is-disabled,
  body.page-provider-orders .po-toolbar-btn:disabled {
    opacity: 0.58;
    cursor: not-allowed;
  }

  body.page-provider-orders .po-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 318px;
    grid-template-areas: "results controls";
    gap: 14px;
    align-items: start;
  }

  body.page-provider-orders .po-controls-panel {
    grid-area: controls;
    position: static;
    top: auto;
    overflow: hidden;
  }

  body.page-provider-orders .po-results-board {
    grid-area: results;
    min-width: 0;
    padding: 14px;
  }

  html[data-shell-dir="rtl"] body.page-provider-orders .po-dashboard-grid,
  html[dir="rtl"] body.page-provider-orders .po-dashboard-grid {
    direction: ltr;
  }

  html[data-shell-dir="rtl"] body.page-provider-orders .po-controls-panel,
  html[data-shell-dir="rtl"] body.page-provider-orders .po-results-board,
  html[dir="rtl"] body.page-provider-orders .po-controls-panel,
  html[dir="rtl"] body.page-provider-orders .po-results-board {
    direction: rtl;
  }

  html[data-shell-dir="ltr"] body.page-provider-orders .po-dashboard-grid,
  html[dir="ltr"] body.page-provider-orders .po-dashboard-grid {
    direction: ltr;
  }

  html[data-shell-dir="ltr"] body.page-provider-orders .po-controls-panel,
  html[data-shell-dir="ltr"] body.page-provider-orders .po-results-board,
  html[dir="ltr"] body.page-provider-orders .po-controls-panel,
  html[dir="ltr"] body.page-provider-orders .po-results-board {
    direction: ltr;
  }

  body.page-provider-orders .po-controls-inner {
    display: grid;
    gap: 14px;
    padding: 14px;
  }

  body.page-provider-orders .po-side-head {
    display: grid;
    gap: 4px;
  }

  body.page-provider-orders .po-side-kicker,
  body.page-provider-orders .po-control-label {
    color: var(--po-primary-strong);
    font-size: 11px;
    font-weight: 900;
  }

  body.page-provider-orders .po-panel-head h2 {
    margin: 0;
    color: var(--po-ink);
    font-size: 1.05rem;
    font-weight: 950;
  }

  body.page-provider-orders .po-panel-head p,
  body.page-provider-orders .po-controls-foot small {
    margin: 0;
    color: var(--po-muted);
    font-size: 12px;
    line-height: 1.7;
    font-weight: 750;
  }

  body.page-provider-orders .po-control-group {
    display: grid;
    gap: 8px;
  }

  body.page-provider-orders .po-search {
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid var(--po-line);
    border-radius: 14px;
    background: #fff;
  }

  body.page-provider-orders .po-search svg {
    flex: 0 0 auto;
    color: var(--po-primary);
  }

  body.page-provider-orders .search-input {
    width: 100%;
    height: 42px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--po-ink);
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
  }

  body.page-provider-orders .search-input::placeholder {
    color: #8290a3;
  }

  body.page-provider-orders #po-status-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0;
    overflow: visible;
    padding: 0;
  }

  body.page-provider-orders #po-status-tabs .status-tab {
    min-height: 34px;
    padding: 0 11px;
    border-radius: 999px;
    color: var(--po-muted);
    background: #fff;
    font-size: 12px;
  }

  body.page-provider-orders #po-status-tabs .status-tab.active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--po-primary), var(--po-primary-strong));
  }

  body.page-provider-orders #porders-content[data-view="competitive"] .po-status-filter-group,
  body.page-provider-orders #porders-content[data-view="urgent"] .po-status-filter-group {
    display: none;
  }

  body.page-provider-orders .po-status-legend,
  body.page-provider-orders .po-side-note {
    display: none !important;
  }

  body.page-provider-orders .po-results-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(15, 118, 110, 0.12);
    border-radius: 16px;
    background: linear-gradient(135deg, #f0fdfa 0%, #ffffff 66%, #f5f3ff 100%);
  }

  body.page-provider-orders .po-smart-bar-copy {
    display: grid;
    gap: 3px;
  }

  body.page-provider-orders .po-smart-bar-label-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  body.page-provider-orders .po-smart-bar-label-row strong {
    color: var(--po-ink);
    font-size: 1.05rem;
    font-weight: 950;
  }

  body.page-provider-orders .po-smart-bar-badge,
  body.page-provider-orders .po-results-chip {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border: 1px solid var(--po-line);
    border-radius: 999px;
    color: var(--po-primary-strong);
    background: var(--po-soft);
    font-size: 11px;
    font-weight: 900;
  }

  body.page-provider-orders #po-visible-count-label {
    color: var(--po-muted);
    font-size: 12px;
    font-weight: 800;
  }

  body.page-provider-orders #po-error.hidden {
    display: none !important;
  }

  body.page-provider-orders #po-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
    gap: 12px;
  }

  body.page-provider-orders #po-list.is-single {
    grid-template-columns: minmax(0, 520px);
  }

  body.page-provider-orders .po-card {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 0;
    min-height: 0;
    border: 1px solid var(--po-line);
    border-radius: 16px;
    color: inherit;
    background: #fff;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(36, 18, 66, 0.06);
    transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
  }

  body.page-provider-orders .po-card::before {
    content: "";
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    width: 5px;
    background: linear-gradient(180deg, var(--po-primary), var(--po-info));
  }

  body.page-provider-orders .po-card:hover {
    transform: translateY(-2px);
    border-color: var(--po-line-strong);
    box-shadow: var(--po-shadow);
  }

  body.page-provider-orders .po-card-new::before { background: linear-gradient(180deg, var(--po-gold), #f2c46d); }
  body.page-provider-orders .po-card-awaiting_client::before { background: linear-gradient(180deg, var(--po-accent-strong), var(--po-accent)); }
  body.page-provider-orders .po-card-in_progress::before { background: linear-gradient(180deg, var(--po-info), #38bdf8); }
  body.page-provider-orders .po-card-completed::before { background: linear-gradient(180deg, var(--po-primary), #34d399); }
  body.page-provider-orders .po-card-cancelled::before { background: linear-gradient(180deg, var(--po-danger), #fb7185); }

  body.page-provider-orders .po-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px 0;
  }

  body.page-provider-orders .po-card-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
  }

  body.page-provider-orders .order-id {
    color: var(--po-primary-strong);
    font-size: 11px;
    font-weight: 950;
  }

  body.page-provider-orders .order-status,
  body.page-provider-orders .order-type-badge,
  body.page-provider-orders .po-available-badge {
    min-height: 26px;
    display: inline-flex;
    align-items: center;
    padding: 0 9px;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
  }

  body.page-provider-orders .order-type-badge,
  body.page-provider-orders .po-available-badge {
    color: var(--po-primary-strong);
    border-color: rgba(15, 118, 110, 0.18);
    background: var(--po-soft);
  }

  body.page-provider-orders .order-type-badge-urgent {
    color: var(--po-danger);
    border-color: rgba(190, 18, 60, 0.2);
    background: rgba(190, 18, 60, 0.08);
  }

  body.page-provider-orders .order-card-body {
    display: grid;
    gap: 10px;
    padding: 12px 16px 16px;
  }

  body.page-provider-orders .order-card h4 {
    margin: 0;
    color: var(--po-ink);
    font-size: 16px;
    line-height: 1.55;
    font-weight: 950;
  }

  body.page-provider-orders .order-meta,
  body.page-provider-orders .order-date {
    margin: 0;
    color: var(--po-muted);
    font-size: 12px;
    line-height: 1.6;
    font-weight: 750;
  }

  body.page-provider-orders .po-card-pills {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
  }

  body.page-provider-orders .po-card-pill {
    min-height: 26px;
    display: inline-flex;
    align-items: center;
    padding: 0 9px;
    border-radius: 999px;
    color: var(--po-primary-strong);
    background: var(--po-soft);
    font-size: 11px;
    font-weight: 900;
  }

  body.page-provider-orders .po-card-pill-soft {
    color: #4f6470;
    background: #eef7f8;
  }

  body.page-provider-orders .po-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body.page-provider-orders .po-card-meta {
    display: grid;
    gap: 2px;
    min-height: 58px;
    padding: 9px 10px;
    border: 1px solid rgba(15, 118, 110, 0.1);
    border-radius: 12px;
    background: var(--po-surface-soft);
  }

  body.page-provider-orders .po-card-meta-label {
    color: var(--po-muted);
    font-size: 10px;
    font-weight: 850;
  }

  body.page-provider-orders .po-card-meta-value {
    color: var(--po-ink);
    font-size: 12px;
    font-weight: 950;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }

  body.page-provider-orders .po-card-action {
    padding: 9px 10px;
    border-radius: 12px;
    color: var(--po-primary-strong);
    background: var(--po-soft);
    font-size: 12px;
    font-weight: 900;
    line-height: 1.6;
  }

  body.page-provider-orders .po-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 2px;
  }

  body.page-provider-orders .po-card-date {
    color: var(--po-muted);
    font-size: 11px;
    font-weight: 750;
  }

  body.page-provider-orders .po-card-link {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--po-primary), var(--po-primary-strong));
    font-size: 12px;
    font-weight: 950;
  }

  body.page-provider-orders .po-empty-state,
  body.page-provider-orders .po-loading-state {
    min-height: 320px;
    display: grid;
    place-items: center;
    text-align: center;
    border: 1px dashed var(--po-line-strong);
    border-radius: 18px;
    background: var(--po-surface-soft);
  }

  body.page-provider-orders .po-empty-state p,
  body.page-provider-orders .po-loading-state p {
    margin: 8px 0 4px;
    color: var(--po-ink);
    font-size: 16px;
    font-weight: 950;
  }

  body.page-provider-orders .po-empty-state small {
    color: var(--po-muted);
    font-size: 13px;
    font-weight: 750;
  }

  body.page-provider-orders .spinner {
    width: 34px;
    height: 34px;
    border: 3px solid rgba(15, 118, 110, 0.16);
    border-top-color: var(--po-primary);
    border-radius: 50%;
    animation: po-spin 0.8s linear infinite;
  }

  @keyframes po-spin {
    to { transform: rotate(360deg); }
  }

  html[data-theme="dark"] body.page-provider-orders {
    --po-surface: rgba(17, 24, 39, 0.92);
    --po-surface-soft: rgba(15, 23, 42, 0.92);
    --po-line: rgba(148, 163, 184, 0.18);
    --po-line-strong: rgba(148, 163, 184, 0.3);
    --po-ink: #e5eefb;
    --po-muted: #a9b8cf;
    --po-soft: rgba(45, 212, 191, 0.12);
    --po-purple-soft: rgba(167, 139, 250, 0.16);
    --po-shadow: 0 24px 52px rgba(2, 8, 23, 0.42);
    --po-shadow-soft: 0 16px 32px rgba(2, 8, 23, 0.28);
    background:
      radial-gradient(ellipse at 82% 0%, rgba(8, 145, 178, 0.18), transparent 44%),
      radial-gradient(ellipse at 5% 22%, rgba(13, 148, 136, 0.16), transparent 36%),
      radial-gradient(ellipse at 88% 72%, rgba(109, 40, 217, 0.14), transparent 30%),
      linear-gradient(180deg, #08111f 0%, #0b1322 32%, #111827 100%) !important;
  }

  html[data-theme="dark"] body.page-provider-orders #auth-gate,
  html[data-theme="dark"] body.page-provider-orders .po-command-bar,
  html[data-theme="dark"] body.page-provider-orders .po-controls-panel,
  html[data-theme="dark"] body.page-provider-orders .po-results-board {
    border-color: rgba(148, 163, 184, 0.2);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(17, 24, 39, 0.94));
    box-shadow: 0 22px 46px rgba(2, 8, 23, 0.34);
  }

  html[data-theme="dark"] body.page-provider-orders .auth-gate-unified-title,
  html[data-theme="dark"] body.page-provider-orders .po-panel-head h2,
  html[data-theme="dark"] body.page-provider-orders .po-smart-bar-label-row strong,
  html[data-theme="dark"] body.page-provider-orders .order-card h4,
  html[data-theme="dark"] body.page-provider-orders .po-card-meta-value,
  html[data-theme="dark"] body.page-provider-orders .po-empty-state p,
  html[data-theme="dark"] body.page-provider-orders .po-loading-state p {
    color: #f8fbff;
  }

  html[data-theme="dark"] body.page-provider-orders .auth-gate-unified-desc,
  html[data-theme="dark"] body.page-provider-orders .po-panel-head p,
  html[data-theme="dark"] body.page-provider-orders .po-controls-foot small,
  html[data-theme="dark"] body.page-provider-orders #po-visible-count-label,
  html[data-theme="dark"] body.page-provider-orders .order-meta,
  html[data-theme="dark"] body.page-provider-orders .order-date,
  html[data-theme="dark"] body.page-provider-orders .po-card-date,
  html[data-theme="dark"] body.page-provider-orders .po-empty-state small,
  html[data-theme="dark"] body.page-provider-orders .po-card-meta-label,
  html[data-theme="dark"] body.page-provider-orders .po-tab-copy small,
  html[data-theme="dark"] body.page-provider-orders .po-sort-label {
    color: #b8c7da;
  }

  html[data-theme="dark"] body.page-provider-orders .status-tab {
    border-color: rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.92);
    color: #dbe7f6;
  }

  html[data-theme="dark"] body.page-provider-orders .status-tab:hover {
    border-color: rgba(94, 234, 212, 0.3);
    background: rgba(17, 24, 39, 0.98);
  }

  html[data-theme="dark"] body.page-provider-orders .po-tab-count {
    color: #ecfeff;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.18);
  }

  html[data-theme="dark"] body.page-provider-orders .po-sort-wrap,
  html[data-theme="dark"] body.page-provider-orders .po-search,
  html[data-theme="dark"] body.page-provider-orders #po-status-tabs .status-tab,
  html[data-theme="dark"] body.page-provider-orders .po-toolbar-btn-light {
    border-color: rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.92);
    color: #dbe7f6;
  }

  html[data-theme="dark"] body.page-provider-orders .po-search svg {
    color: #5eead4;
  }

  html[data-theme="dark"] body.page-provider-orders .po-sort-select,
  html[data-theme="dark"] body.page-provider-orders .search-input {
    color: #f8fbff;
  }

  html[data-theme="dark"] body.page-provider-orders .po-sort-select option {
    color: #f8fbff;
    background: #0f172a;
  }

  html[data-theme="dark"] body.page-provider-orders .search-input::placeholder {
    color: #7f8ea7;
  }

  html[data-theme="dark"] body.page-provider-orders .po-control-label,
  html[data-theme="dark"] body.page-provider-orders .po-side-kicker,
  html[data-theme="dark"] body.page-provider-orders .order-id,
  html[data-theme="dark"] body.page-provider-orders .po-toolbar-btn-light {
    color: #99f6e4;
  }

  html[data-theme="dark"] body.page-provider-orders .po-results-hero {
    border-color: rgba(148, 163, 184, 0.16);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(17, 24, 39, 0.95) 62%, rgba(49, 46, 129, 0.32) 100%);
  }

  html[data-theme="dark"] body.page-provider-orders .po-smart-bar-badge,
  html[data-theme="dark"] body.page-provider-orders .po-results-chip,
  html[data-theme="dark"] body.page-provider-orders .order-type-badge,
  html[data-theme="dark"] body.page-provider-orders .po-available-badge,
  html[data-theme="dark"] body.page-provider-orders .po-card-pill,
  html[data-theme="dark"] body.page-provider-orders .po-card-action {
    color: #ccfbf1;
    border-color: rgba(45, 212, 191, 0.16);
    background: rgba(45, 212, 191, 0.12);
  }

  html[data-theme="dark"] body.page-provider-orders .po-card-pill-soft {
    color: #dbe7f6;
    background: rgba(30, 41, 59, 0.92);
  }

  html[data-theme="dark"] body.page-provider-orders .order-type-badge-urgent {
    color: #fecdd3;
    border-color: rgba(244, 114, 182, 0.2);
    background: rgba(190, 24, 93, 0.18);
  }

  html[data-theme="dark"] body.page-provider-orders .po-card {
    border-color: rgba(148, 163, 184, 0.16);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(17, 24, 39, 0.95));
    box-shadow: 0 14px 32px rgba(2, 8, 23, 0.28);
  }

  html[data-theme="dark"] body.page-provider-orders .po-card:hover {
    border-color: rgba(94, 234, 212, 0.24);
    box-shadow: 0 22px 42px rgba(2, 8, 23, 0.4);
  }

  html[data-theme="dark"] body.page-provider-orders .po-card-meta {
    border-color: rgba(148, 163, 184, 0.16);
    background: rgba(30, 41, 59, 0.9);
  }

  html[data-theme="dark"] body.page-provider-orders .po-empty-state,
  html[data-theme="dark"] body.page-provider-orders .po-loading-state {
    border-color: rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.92);
  }

  html[data-theme="dark"] body.page-provider-orders .spinner {
    border-color: rgba(94, 234, 212, 0.16);
    border-top-color: #5eead4;
  }

  @media (max-width: 1120px) {
    body.page-provider-orders .po-hero,
    body.page-provider-orders .po-command-bar,
    body.page-provider-orders .po-dashboard-grid {
      grid-template-columns: 1fr;
    }

    body.page-provider-orders .po-dashboard-grid {
      grid-template-areas:
        "controls"
        "results";
    }

    body.page-provider-orders .po-controls-panel {
      position: static;
    }

    body.page-provider-orders .po-controls-inner {
      grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.35fr) auto;
      align-items: end;
    }

    body.page-provider-orders .po-side-head {
      display: none;
    }

    body.page-provider-orders .po-controls-foot {
      align-self: center;
      white-space: nowrap;
    }

    body.page-provider-orders #po-status-tabs {
      flex-wrap: nowrap;
      overflow-x: auto;
      padding-bottom: 2px;
    }

    body.page-provider-orders #po-status-tabs .status-tab {
      flex: 0 0 auto;
      white-space: nowrap;
    }
  }

  @media (max-width: 760px) {
    body.page-provider-orders .page-content {
      padding: 62px 8px 104px !important;
    }

    body.page-provider-orders #porders-content {
      gap: 10px;
    }

    body.page-provider-orders .po-hero,
    body.page-provider-orders .po-command-bar,
    body.page-provider-orders .po-controls-panel,
    body.page-provider-orders .po-results-board {
      border-radius: 16px;
    }

    body.page-provider-orders .po-hero {
      padding: 14px;
      gap: 12px;
    }

    body.page-provider-orders .po-hero h1 {
      font-size: 1.55rem;
    }

    body.page-provider-orders .po-header-subtitle,
    body.page-provider-orders .po-header-stat small,
    body.page-provider-orders .po-btn-label {
      display: none;
    }

    body.page-provider-orders .po-header-stats {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 7px;
    }

    body.page-provider-orders .po-header-stat {
      min-height: 62px;
      padding: 8px 6px;
      text-align: center;
    }

    body.page-provider-orders .po-header-stat strong {
      font-size: 1.35rem;
    }

    body.page-provider-orders .po-main-tabs {
      display: flex;
      overflow-x: auto;
      padding-bottom: 2px;
    }

    body.page-provider-orders .po-main-tabs .status-tab {
      min-width: 166px;
      flex: 0 0 auto;
    }

    body.page-provider-orders .po-smart-bar,
    body.page-provider-orders .po-sort-wrap {
      width: 100%;
    }

    body.page-provider-orders .po-smart-bar {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 42px 42px;
    }

    body.page-provider-orders .po-toolbar-btn {
      width: 42px;
      padding: 0;
    }

    body.page-provider-orders .po-controls-inner {
      grid-template-columns: 1fr;
      padding: 12px;
    }

    body.page-provider-orders .po-controls-foot {
      display: none;
    }

    body.page-provider-orders .po-results-board {
      padding: 12px;
    }

    body.page-provider-orders .po-results-hero {
      align-items: flex-start;
      flex-direction: column;
      padding: 11px 12px;
    }

    body.page-provider-orders #po-list,
    body.page-provider-orders #po-list.is-single {
      grid-template-columns: 1fr;
    }

    body.page-provider-orders .po-card-grid {
      grid-template-columns: 1fr 1fr;
    }
  }

  @media (max-width: 420px) {
    body.page-provider-orders .po-card-grid {
      grid-template-columns: 1fr;
    }
  }
