/* Account work surfaces: compact controls and genuine tables at every width. */
.seller-workspace { --work-surface: #fff; --work-line: #d5e0e5; --work-muted: #536575; min-width: 0; font-family: Arial, sans-serif; }
html[data-theme="dark"] .seller-workspace { --work-surface: #17252b; --work-line: #3b4c52; --work-muted: #b9c9cc; }
.seller-workspace .admin-hero {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  min-height: 0 !important; padding: 18px 0 !important; margin: 0 0 16px !important;
  border: 0; border-bottom: 1px solid var(--work-line); border-radius: 0;
  background: none !important; box-shadow: none !important; backdrop-filter: none;
}
.seller-workspace .admin-hero::before, .seller-workspace .admin-hero::after { display: none !important; }
.seller-workspace .admin-hero h1, .seller-workspace .order-admin-layout h1 {
  margin: 0 0 6px; font: 700 28px/1.2 Arial, sans-serif !important; letter-spacing: 0; overflow-wrap: anywhere;
}
.seller-workspace .admin-hero .eyebrow { display: none; }
.seller-workspace .admin-hero p { margin: 0; font-size: 14px; color: var(--work-muted); }
.seller-workspace .admin-filter-panel {
  padding: 14px 0 !important; margin: 0 0 18px; border: 0; border-bottom: 1px solid var(--work-line);
  border-radius: 0; background: none; box-shadow: none; backdrop-filter: none;
}
.seller-workspace .seller-filters { display: grid; grid-template-columns: minmax(190px, 2fr) minmax(150px, 1fr) minmax(100px, .7fr) auto; gap: 12px; align-items: end; }
.seller-workspace .seller-order-filters { grid-template-columns: minmax(160px, 260px) auto; justify-content: start; }
.seller-workspace .seller-filters label { display: grid; gap: 6px; min-width: 0; font-size: 13px; font-weight: 700; }
.seller-workspace input:not([type="checkbox"]):not([type="radio"]), .seller-workspace select, .seller-workspace textarea {
  min-width: 0; max-width: 100%; min-height: 40px; padding: 10px 12px; border-radius: 6px; font-size: 14px; line-height: 1.4;
}
.seller-workspace .seller-filters input, .seller-workspace .seller-filters select { width: 100%; height: 42px; background: var(--work-surface); }
.seller-workspace .seller-filter-actions, .seller-workspace .form-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.seller-workspace .primary-button, .seller-workspace .ghost-button, .seller-workspace .table-action {
  min-width: 0 !important; width: auto; max-width: 100%; min-height: 38px !important; height: auto !important;
  padding: 9px 12px !important; border-radius: 6px; font: 700 13px/1.3 Arial, sans-serif !important;
  white-space: normal !important; overflow: visible; text-overflow: clip; box-shadow: none;
}
.seller-workspace .primary-button { background: #a00032; color: white; }
.seller-workspace .admin-table-wrap {
  width: 100%; max-width: 100%; min-width: 0; overflow-x: auto !important; padding: 0 !important;
  border: 1px solid var(--work-line); border-radius: 6px; background: var(--work-surface); box-shadow: none; backdrop-filter: none;
}
.seller-workspace .seller-data-table { display: table !important; width: 100%; min-width: 760px !important; border-collapse: collapse; table-layout: auto; }
.seller-workspace .seller-data-table thead { display: table-header-group !important; }
.seller-workspace .seller-data-table tbody { display: table-row-group !important; }
.seller-workspace .seller-data-table tr { display: table-row !important; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.seller-workspace .seller-data-table th, .seller-workspace .seller-data-table td {
  display: table-cell !important; width: auto !important; padding: 12px 10px !important; vertical-align: middle;
  border: 0 !important; border-bottom: 1px solid var(--work-line) !important; font-size: 13px; line-height: 1.45;
  text-align: left; white-space: normal; max-width: 290px; overflow-wrap: anywhere !important;
}
.seller-workspace .seller-data-table th { background: rgba(113, 150, 155, .09); font-size: 12px; font-weight: 700; white-space: nowrap; }
.seller-workspace .seller-data-table td::before { display: none !important; }
.seller-workspace .seller-data-table tr:last-child td { border-bottom: 0 !important; }
.seller-workspace .seller-data-table tbody tr:hover { background: rgba(113, 150, 155, .06); }
.seller-workspace .seller-data-table td[colspan] { text-align: center; padding: 28px !important; }
.seller-workspace .seller-data-table small { display: block; margin-top: 3px; color: var(--work-muted); font-size: 12px; }
.seller-workspace .table-product { display: flex; min-width: 190px !important; max-width: 290px; align-items: center; gap: 10px; }
.seller-workspace .table-product img { flex: 0 0 44px; width: 44px !important; height: 50px !important; object-fit: contain; border-radius: 4px; background: white; }
.seller-workspace .table-actions { display: flex !important; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 130px; max-width: 235px; }
.seller-workspace .table-actions form { display: inline-flex; width: auto !important; margin: 0; }
.seller-workspace .table-actions .table-action { font-size: 12px !important; padding: 7px 9px !important; min-height: 32px !important; }
.seller-workspace .status-pill { font-size: 12px; padding: 5px 8px; border-radius: 4px; }
.seller-workspace .table-head { padding: 14px; margin: 0; }
.seller-workspace h2, .seller-workspace .table-head h2 { font: 700 19px/1.3 Arial, sans-serif; }
.seller-workspace .metric-card { padding: 16px; border-radius: 6px; box-shadow: none; }
.seller-workspace .metric-card strong { font: 700 24px/1.3 Arial, sans-serif; overflow-wrap: anywhere; }
.seller-workspace .metric-card span { font-size: 13px; }
.seller-product-editor .product-form-shell { margin: 0 0 22px; padding: 24px; border: 1px solid #d4e0e5; border-radius: 10px; background: #fff; box-shadow: 0 10px 24px rgba(24,60,76,.08); }
.seller-product-editor .product-form-shell > .type-picker { margin: 0 0 24px; padding: 0 0 20px; border: 0; border-bottom: 1px solid #d4e0e5; border-radius: 0; background: transparent; }
.seller-product-editor .product-form-shell > .form-panel { margin: 0; }
.seller-product-editor .product-form-shell > .form-panel,
.seller-product-editor .product-form-shell .form-stack { background: #fff; }
.seller-product-editor .product-form-shell .form-stack { gap: 0; }
.seller-product-editor .product-form-shell .form-stack > label,
.seller-product-editor .product-form-shell .form-stack > .form-grid-two,
.seller-product-editor .product-form-shell .form-stack > .product-form-dropdown,
.seller-product-editor .product-form-shell .form-stack > .gallery-upload-box,
.seller-product-editor .product-form-shell .form-stack > .notice-card,
.seller-product-editor .product-form-shell .form-stack > .current-image { margin: 0; padding: 16px 0; border-bottom: 1px solid #dfe7ea; }
.seller-product-editor .product-form-shell .form-stack > :last-child { border-bottom: 0; }
.seller-product-editor .product-form-shell .form-stack > .form-grid-two { padding-top: 0; }
.seller-workspace .type-picker { margin: 0 0 18px; padding: 14px; border: 1px solid var(--work-border); border-radius: 8px; background: rgba(255,255,255,.58); }
.seller-workspace .type-picker-heading { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.seller-workspace .type-picker-heading strong { color: var(--work-ink); font-size: 17px; }
.seller-workspace .type-picker-heading span { color: var(--work-muted); font-size: 13px; }
.seller-workspace .type-picker-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.seller-workspace .type-picker a { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; min-height: 68px; padding: 12px 14px; border: 1px solid var(--work-border); border-radius: 7px; background: var(--work-surface); box-shadow: none; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.seller-workspace .type-picker a:hover { border-color: #a00032; transform: translateY(-1px); }
.seller-workspace .type-picker a strong { font-size: 14px; }
.seller-workspace .type-picker a span { margin-top: 4px; color: var(--work-muted); font-size: 12px; }
.seller-workspace .type-picker a.active { border-color: #a00032; background: #a00032; color: white; }
.seller-workspace .type-picker a.active span { color: rgba(255,255,255,.82); }
.seller-workspace .form-panel { width: 100%; max-width: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.seller-workspace .form-panel[hidden] { display: none !important; }
.seller-workspace [data-order-cancellation-reason][hidden],
.seller-workspace [data-payment-rejection-reason][hidden] { display: none !important; }
.seller-workspace .form-stack { width: 100%; max-width: none; gap: 18px; padding: 0; }
.seller-workspace .form-stack label > span { font-size: 14px; }
.seller-workspace .product-form-dropdown { border-radius: 6px; padding: 12px 14px; box-shadow: none; background: var(--work-surface); }
.seller-workspace .product-form-dropdown summary { font-size: 14px; min-height: 40px; }
.seller-workspace .gallery-upload-box { padding: 12px 0 0; border: 0; background: none; box-shadow: none; }
.seller-workspace .gallery-upload-box p, .seller-workspace .form-hint { font-size: 13px; line-height: 1.5; }
.seller-workspace .upload-preview-card { border-radius: 6px; padding: 10px; box-shadow: none; }
.seller-workspace .upload-preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.upload-preview-grid figure { position: relative; min-width: 0; margin: 0; padding: 7px; border: 1px solid #d5e0e5; border-radius: 7px; background: #fff; }
.upload-preview-grid img { display: block; width: 100%; height: 140px; object-fit: contain; background: white; border: 1px solid #d5e0e5; border-radius: 6px; }
.upload-preview-grid figcaption { margin-top: 5px; font-size: 12px; overflow-wrap: anywhere; }
.upload-preview-grid .upload-preview-remove { position: absolute; top: 10px; right: 10px; z-index: 1; display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; background: #a00032; color: #fff; font: 700 18px/1 Arial, sans-serif; cursor: pointer; }
.upload-preview-grid .upload-preview-remove:hover { background: #7d0027; }
.seller-workspace .gallery-admin-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.seller-workspace .gallery-admin-grid img { width: 100%; height: 140px; object-fit: contain; }
.seller-workspace .order-admin-layout { grid-template-columns: minmax(0, 1fr) minmax(240px, 300px); }
.seller-workspace .order-admin-layout .seller-data-table { min-width: 540px !important; }
.seller-workspace .seller-order-sidebar { display: grid; min-width: 0; gap: 20px; }
.seller-workspace .seller-order-sidebar .summary-card { position: static; top: auto; margin: 0; }
.seller-workspace .order-status-editor-card {
  display: grid; gap: 0; min-width: 0; padding: 18px;
  border: 1px solid var(--work-line); border-left: 4px solid #a00032; border-radius: 8px;
  background: var(--work-surface); box-shadow: 0 10px 28px rgba(15, 35, 44, .08);
}
.seller-workspace .order-status-editor-card > header { display: grid; gap: 5px; }
.seller-workspace .order-status-editor-card > header > span { color: #a00032; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.seller-workspace .order-status-editor-card > header h2 { margin: 0; font: 700 20px/1.25 Arial, sans-serif; letter-spacing: 0; }
.seller-workspace .order-status-editor-card > header p { margin: 0; color: var(--work-muted); font-size: 13px; line-height: 1.5; }
.seller-workspace .order-status-editor-card [data-order-status-editor] { margin-top: 16px; padding-top: 16px; }
html[data-theme="dark"] .seller-workspace .order-status-editor-card { box-shadow: 0 12px 30px rgba(0, 0, 0, .24); }
html[data-theme="dark"] .seller-workspace .order-status-editor-card > header > span { color: #ffb2c8; }
.seller-workspace .seller-chat-notice { border-radius: 6px; box-shadow: none; font-size: 14px; }
[data-live-chat-count][hidden], [data-chat-toast][hidden] { display: none !important; }
.live-chat-toast {
  position: fixed; right: 18px; bottom: 20px; z-index: 1900; display: flex; gap: 12px; align-items: center;
  width: min(390px, calc(100vw - 32px)); padding: 14px; background: #fff; color: #102c35;
  border: 1px solid #b6c8ce; border-left: 4px solid #a00032; border-radius: 6px; box-shadow: 0 8px 26px #0002;
}
.live-chat-toast a { display: grid; flex: 1; min-width: 0; gap: 3px; color: inherit; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.live-chat-toast a strong { color: #8d0b35; font-size: 15px; }
.live-chat-toast a span { color: #3b5660; }
.live-chat-toast button { flex: 0 0 32px; width: 32px; min-height: 32px; padding: 0; font-size: 20px; background: none; color: inherit; border: 0; }
html[data-theme="dark"] .live-chat-toast { background: #17252b; color: #f3f8f8; }
html[data-theme="dark"] .live-chat-toast a strong { color: #ffb2c8; }
html[data-theme="dark"] .live-chat-toast a span { color: #d2e0e1; }
@media (max-width: 1400px) {
  .seller-workspace .seller-filters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .seller-workspace .seller-filters .seller-filter-search { grid-column: 1 / -1; }
  .seller-workspace .order-admin-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .seller-product-editor .product-form-shell { padding: 14px; border-radius: 8px; }
  .seller-workspace .admin-hero h1 { font-size: 24px !important; }
  .seller-workspace .type-picker-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seller-workspace .seller-filter-actions { grid-column: 1 / -1; }
  .seller-workspace .form-grid-two { grid-template-columns: minmax(0, 1fr); }
  .seller-workspace .admin-table-wrap { scrollbar-width: thin; }
}
