/* Dashboard and marketplace status presentation. No financial behavior. */
@media screen {
#devane-dashboard .devane-summary .summary-card:nth-child(1){background:radial-gradient(circle at 0% 0%,#2a4a3d 0%,#2a4a3d 35%,#6e7848 100%)!important;border:1px solid #6e7848!important;color:#fff!important;box-shadow:0 6px 20px #2a4a3d10;}
#devane-dashboard .devane-summary .summary-card:nth-child(2){background:linear-gradient(125deg,#edf1e5,#dfe7ce)!important;border:1px solid #dfe7ce!important;color:#2a4a3d!important;}
#devane-dashboard .devane-summary .summary-card:nth-child(3){background:linear-gradient(125deg,#f4f5e8,#e8eccc)!important;border:1px solid #e8eccc!important;color:#6e7848!important;}
#devane-dashboard .devane-summary .summary-card:nth-child(4){background:linear-gradient(125deg,#edf1e5,#dfe7ce)!important;border:1px solid #dfe7ce!important;color:#6e7848!important;}
#devane-dashboard .devane-summary .summary-card:nth-child(n+2) :is(h3,p,.summary-heading,svg){color:inherit!important;}
#devane-dashboard .devane-summary .summary-card{position:relative;overflow:hidden;}
#devane-dashboard .devane-summary .summary-card .summary-heading svg{padding:8px;box-sizing:content-box;border-radius:12px;background:#ffffff66;}
#devane-dashboard .devane-summary .summary-card:nth-child(1) .summary-heading svg{background:#ffffff1a;}
#devane-dashboard #devane-activity{background:linear-gradient(135deg,#f5f7f0,#fff 65%)!important;border-color:#dae2ce!important;}
#devane-dashboard #devane-activity h3{color:#2a4a3d!important;}
#devane-dashboard #devane-activity [data-series="sales"]{--dashboard-accent:#6e7848;--night-series:#aebb91;}
#devane-dashboard #devane-activity [data-series="purchasing"]{--dashboard-accent:#6e7848;--night-series:#aebb91;}
#devane-dashboard #devane-shopee-import-panel{padding:26px!important;border-radius:18px;background:var(--devane-surface,#fff);}
#devane-dashboard #devane-shopee-import-panel .shopee-import-header{display:flex;justify-content:space-between;align-items:center;gap:20px;}
#devane-dashboard #devane-shopee-import-panel h2{margin:0 0 10px;}
#devane-dashboard #devane-shopee-import-panel .shopee-import-header p{margin:0;color:#73786b;}
#devane-dashboard #devane-shopee-import-panel [data-summary]{gap:16px;margin:24px 0;}
#devane-dashboard #devane-shopee-import-panel [data-summary] p{min-width:0;border-radius:14px;padding:18px 20px!important;background:#edf1e5;border:1px solid #dfe7ce;color:#2a4a3d;}
#devane-dashboard #devane-shopee-import-panel [data-summary] p:nth-child(2){background:#e9f4ee;border-color:#cde4d7;color:#2a4a3d;}
#devane-dashboard #devane-shopee-import-panel [data-summary] p:nth-child(3){background:#f4f5e8;border-color:#e8eccc;color:#6e7848;}
#devane-dashboard #devane-shopee-import-panel [data-summary] p:nth-child(4){background:#edf1e5;border-color:#dfe7ce;color:#6e7848;}
#devane-dashboard #devane-shopee-import-panel [data-summary] strong{font-size:clamp(23px,2vw,31px);margin-top:8px;color:inherit;line-height:1.3;}
#devane-dashboard #devane-shopee-import-panel .shopee-import-note{background:#f8f9f5;border:1px solid #e3e7db;border-radius:10px;padding:12px 16px;margin-bottom:18px;color:#69715d;}
#devane-dashboard #devane-shopee-import-panel .shopee-import-note summary{cursor:pointer;font-size:14px;font-weight:500;}
#devane-dashboard #devane-shopee-import-panel .shopee-order-tabs{display:flex;overflow-x:auto;gap:8px;border-bottom:1px solid #dfe3d9;scrollbar-width:thin;padding:0;margin-top:12px;}
#devane-dashboard #devane-shopee-import-panel .shopee-order-tabs button{position:relative;flex:1 0 auto;width:auto!important;min-height:60px;padding:15px 18px!important;margin:0!important;background:transparent!important;border:0!important;border-radius:0!important;color:#52584c!important;white-space:nowrap;font-size:15px;font-weight:500;box-shadow:none!important;cursor:pointer;}
#devane-dashboard #devane-shopee-import-panel .shopee-order-tabs button:hover{background:#edf1e5!important;}
#devane-dashboard #devane-shopee-import-panel .shopee-order-tabs button[aria-selected="true"]{color:#6e7848!important;font-weight:650;}
#devane-dashboard #devane-shopee-import-panel .shopee-order-tabs button[aria-selected="true"]::after{content:"";position:absolute;bottom:0;left:12px;right:12px;height:4px;border-radius:4px 4px 0 0;background:#6e7848;}
#devane-dashboard #devane-shopee-import-panel .shopee-order-tabs button:focus-visible{outline:2px solid #6e7848;outline-offset:-3px;}
#devane-dashboard #devane-shopee-import-panel .shopee-order-toolbar{display:flex;align-items:end;justify-content:space-between;gap:20px;margin:18px 0;}
#devane-dashboard #devane-shopee-import-panel .shopee-order-toolbar label{margin:0;max-width:360px;flex:1;}
#devane-dashboard #devane-shopee-import-panel .shopee-order-toolbar p{margin:0 0 12px;color:#777d70;font-size:14px;}
#devane-dashboard #devane-shopee-import-panel th{background:#edf1e5!important;color:#2a4a3d!important;}
#devane-dashboard #devane-shopee-import-panel .shopee-status-badge{display:inline-block;padding:5px 10px;background:#f4f5e8;color:#6e7848;border-radius:7px;font-size:13px;line-height:1.6;}
#devane-dashboard #devane-shopee-import-panel [data-posting="POSTED"] .shopee-status-badge{background:#e8f0e7;color:#2a4a3d;}
#devane-dashboard #devane-shopee-import-panel [data-posting="CANCELED"] .shopee-status-badge,#devane-dashboard #devane-shopee-import-panel [data-posting="RETURN_REVIEW"] .shopee-status-badge{background:#e8f0e7;color:#6e7848;}
#devane-dashboard #devane-shopee-import-panel .shopee-empty{text-align:center;padding:48px 16px;color:#858b7b;}
#devane-dashboard #devane-shopee-import-panel [data-pages]{justify-content:flex-end;margin-top:16px;}
#devane-dashboard #devane-shopee-import-panel button:disabled{opacity:.45;cursor:default;}
html[data-devane-theme="dark"] #devane-dashboard .devane-summary .summary-card:nth-child(1){background:linear-gradient(125deg,#2a4a3d,#345440)!important;}
html[data-devane-theme="dark"] #devane-dashboard .devane-summary .summary-card:nth-child(2){background:#293a2d!important;border-color:#48553b!important;color:#d6dfbe!important;}
html[data-devane-theme="dark"] #devane-dashboard .devane-summary .summary-card:nth-child(3){background:#343e2b!important;border-color:#48553b!important;color:#d6dfbe!important;}
html[data-devane-theme="dark"] #devane-dashboard .devane-summary .summary-card:nth-child(4){background:#293a2d!important;border-color:#48553b!important;color:#d6dfbe!important;}
html[data-devane-theme="dark"] #devane-dashboard #devane-activity{background:#293a2d!important;border-color:#48553b!important;}
html[data-devane-theme="dark"] #devane-dashboard #devane-activity h3{color:#d6dfbe!important;}
html[data-devane-theme="dark"] #devane-dashboard #devane-shopee-import-panel{background:#252e29!important;border-color:#465147;color:#d8dfd4;}
html[data-devane-theme="dark"] #devane-dashboard #devane-shopee-import-panel [data-summary] p{background:#293a2d;border-color:#48553b;color:#d6dfbe;}
html[data-devane-theme="dark"] #devane-dashboard #devane-shopee-import-panel [data-summary] p:nth-child(2){background:#2b4035;border-color:#425e4b;color:#bfd8c7;}
html[data-devane-theme="dark"] #devane-dashboard #devane-shopee-import-panel [data-summary] p:nth-child(3){background:#343e2b;border-color:#48553b;color:#d6dfbe;}
html[data-devane-theme="dark"] #devane-dashboard #devane-shopee-import-panel [data-summary] p:nth-child(4){background:#293a2d;border-color:#48553b;color:#d6dfbe;}
html[data-devane-theme="dark"] #devane-dashboard #devane-shopee-import-panel .shopee-import-note{background:#2c352d;border-color:#445043;color:#bac8b0;}
html[data-devane-theme="dark"] #devane-dashboard #devane-shopee-import-panel .shopee-order-tabs button{color:#ccd3c6!important;}
html[data-devane-theme="dark"] #devane-dashboard #devane-shopee-import-panel .shopee-order-tabs button[aria-selected="true"]{color:#aebb91!important;}
html[data-devane-theme="dark"] #devane-dashboard #devane-shopee-import-panel .shopee-order-tabs button:hover{background:#343e2b!important;}
html[data-devane-theme="dark"] #devane-dashboard #devane-shopee-import-panel th{background:#343e2b!important;color:#d6dfbe!important;}
@media(max-width:850px){#devane-dashboard #devane-shopee-import-panel .shopee-order-tabs button{flex:0 0 auto;}#devane-dashboard #devane-shopee-import-panel .shopee-import-header{align-items:start;}#devane-dashboard #devane-shopee-import-panel .shopee-order-toolbar{align-items:start;flex-direction:column;}#devane-dashboard #devane-shopee-import-panel .shopee-order-toolbar label{width:100%;max-width:none;}}
}

@media screen {
#devane-dashboard #devane-activity .activity-kpi:first-child{background:#edf1e5!important;border-color:#dfe7ce!important;color:#2a4a3d!important;}
#devane-dashboard #devane-activity .activity-kpi[data-series="sales"]{background:#e7f3ec!important;color:#2a4a3d!important;}
#devane-dashboard #devane-activity .activity-kpi[data-series="purchasing"]{background:#f4f5e8!important;color:#6e7848!important;}
#devane-dashboard #devane-activity .activity-kpi[data-series="inventory"]{background:#e8f0e7!important;color:#2a4a3d!important;}
#devane-dashboard #devane-activity .activity-kpi[data-series="production"]{background:#edf1e5!important;color:#6e7848!important;}
#devane-dashboard #devane-activity .activity-kpi[data-series="finance"]{background:#e8f0e7!important;color:#6e7848!important;}
html[data-devane-theme="dark"] #devane-dashboard #devane-activity .activity-kpi{filter:brightness(.8);}
}

/* Shared surfaces follow the selected theme, including dynamically added cards. */
@media screen {
html[data-devane-theme="dark"],
html[data-devane-theme="dark"] #devane-dashboard {
  --devane-surface: var(--night-panel);
  --devane-text: var(--night-text);
  --devane-ink: var(--night-text);
  --devane-muted: var(--night-muted);
  --devane-border: var(--night-line);
}
html[data-devane-theme="dark"] #devane-dashboard :is(input,select,textarea) {
  background-color:var(--night-input)!important;color:var(--night-text)!important;border-color:var(--night-line)!important;
}
html[data-devane-theme="dark"] #devane-dashboard-insights .di-card:not(.di-production):not(.di-total),
html[data-devane-theme="dark"] #devane-cash-cards .cc-card:not(:first-child) {
  background:var(--night-panel)!important;color:var(--night-text)!important;border-color:var(--night-line)!important;
}
html[data-devane-theme="dark"] #devane-dashboard-insights :is(h3,.di-value,.di-text-button),
html[data-devane-theme="dark"] #devane-cash-cards :is(.cc-heading h3,button),
html[data-devane-theme="dark"] #devane-insights-dialog :is(h2,h3) {color:var(--night-accent)!important;}
html[data-devane-theme="dark"] #devane-dashboard-insights :is(p,small) {color:var(--night-muted)!important;}
html[data-devane-theme="dark"] #devane-dashboard-insights .di-outcome-list button {background:var(--night-raised)!important;color:var(--night-text)!important;}
html[data-devane-theme="dark"] #devane-dashboard #devane-activity .activity-kpi {
  background:var(--night-panel)!important;color:var(--night-text)!important;border-color:var(--night-line)!important;filter:none;
}
html[data-devane-theme="dark"] #devane-dashboard #devane-activity .activity-kpi strong {color:var(--night-accent)!important;}
html[data-devane-theme="dark"] #devane-reports :is(.dr-group h3,.dr-statement h4,th,.dr-highlight),
html[data-devane-theme="dark"] #devane-insights-dialog th {background:var(--night-raised);color:var(--night-text);}
html[data-devane-theme="dark"] #devane-reports :is(.dr-report-link,.dr-account-link,.dr-breadcrumb button,.dr-report-title h3) {color:var(--night-accent);}
html[data-devane-theme="dark"] #devane-reports :is(.dr-notice,.dr-tag) {background:var(--night-raised);color:var(--night-muted);}
}
@media screen {
html[data-devane-theme="dark"] #devane-dashboard-insights button.di-text-button {
 background:transparent!important;color:var(--night-accent)!important;
}
html[data-devane-theme="dark"] #devane-dashboard-insights button.di-text-button:hover {
 background:var(--night-raised)!important;color:var(--night-text)!important;
}
}
@media screen {
html[data-devane-theme="dark"] #devane-dashboard [data-print-report],
html[data-devane-theme="dark"] #devane-report-menu {
 background:var(--night-raised)!important;color:var(--night-text)!important;border-color:var(--night-line)!important;
}
html[data-devane-theme="dark"] #devane-report-menu [role="menuitem"] {background:transparent!important;color:var(--night-text)!important;}
html[data-devane-theme="dark"] #devane-report-menu [role="menuitem"]:hover {background:var(--night-panel)!important;}
html[data-devane-theme="dark"] #devane-dashboard-insights .di-chart [stroke="#2a4a3d"] {stroke:#88b79c;}
html[data-devane-theme="dark"] #devane-dashboard-insights .di-chart [stroke="#6e7848"] {stroke:#c1ce91;}
}
@media screen {
html[data-devane-theme="dark"] #devane-cash-cards .cc-card button {
 background:transparent!important;color:var(--night-accent)!important;
}
html[data-devane-theme="dark"] #devane-cash-cards .cc-card:first-child button {color:#edf2e5!important;}
}
