/* Full-page group and shared seller configuration. */
.config-workspace[hidden], #view-entity-defaults[hidden] { display:none!important; }
.config-workspace { max-width:1540px; margin:0 auto; padding-bottom:78px; }
.config-page-header { display:flex; align-items:center; justify-content:space-between; gap:20px; margin:4px 0 18px; }
.config-back { border:0; background:transparent; color:#64748b; padding:0 0 8px; cursor:pointer; font:inherit; font-size:13px; }
.config-back:hover { color:#0f766e; }
.config-header-copy { min-width:0; }
.config-page-header h2 { font-size:23px; line-height:1.4; letter-spacing:-.3px; }
.config-page-subtitle { color:#64748b; font-size:13px; margin-top:5px; overflow-wrap:anywhere; }
.config-scope-badge { font-size:12px; padding:6px 10px; color:#0f766e; background:#e7f5f1; border:1px solid #cce9df; border-radius:6px; white-space:nowrap; }
.config-workspace .config-page-body { padding:0; max-height:none; overflow:visible; }
.config-workspace-layout { display:block; }
.config-panel { border:1px solid #e1e7ed; border-radius:11px; background:#fff; padding:16px; margin-bottom:14px; }
.config-disclosure { padding:0; }
.config-disclosure>summary { display:flex; align-items:center; gap:12px; padding:15px 16px; cursor:pointer; list-style:none; }
.config-disclosure>summary::-webkit-details-marker { display:none; }
.config-disclosure>summary::before { content:'›'; color:#8392a5; font-size:18px; }
.config-disclosure[open]>summary::before { transform:rotate(90deg); }
.config-disclosure>summary strong { font-size:14px; color:#25384c; }
.config-disclosure>summary span { font-size:12px; color:#7a8797; }
.config-disclosure[open]>summary { border-bottom:1px solid #edf0f4; }
.config-disclosure-body { padding:16px; }
.config-panel-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:14px; }
.config-panel-heading h3 { font-size:15px; font-weight:650; color:#25384c; }
.config-panel-heading p { color:#7a8797; font-size:12px; line-height:1.6; margin-top:3px; }
.config-workspace .entity-add-actions { display:flex; gap:6px; flex-wrap:wrap; margin:0; }
.config-workspace .entity-card { border-color:#e2e8f0; border-radius:8px; margin-bottom:10px; }
.config-workspace .entity-card:last-child { margin-bottom:0; }
.config-workspace .entity-card>summary { padding:11px 12px; background:#f8fafc; font-size:13px; }
.config-workspace .entity-card>summary::before { content:'›'; color:#8392a5; font-size:18px; width:12px; }
.config-workspace .entity-card[open]>summary::before { transform:rotate(90deg); }
.config-workspace .entity-card-body { padding:13px 12px; }
.config-workspace .entity-main-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px 12px; }
.config-workspace .default-product-editor { margin:12px 0; padding:12px; border-radius:7px; background:#f8fafc; }
.config-workspace .default-product-title { font-size:13px; justify-content:space-between; }
.config-workspace .default-product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px 12px; }
.config-workspace .default-product-grid .inline-input { width:100%; min-width:0; }
.config-workspace .edit-field label { font-size:12px; color:#67778a; }
.config-workspace .edit-field input,.config-workspace .edit-field select,.config-workspace .edit-field textarea { font:inherit; font-size:13px; padding:8px 10px; min-height:35px; border:1px solid #dce3eb; border-radius:6px; width:100%; background:#fff; color:#25384c; }
.config-workspace textarea { resize:vertical; line-height:1.7; }
.config-workspace input:focus,.config-workspace select:focus,.config-workspace textarea:focus { outline:2px solid #b1ddd4; outline-offset:1px; border-color:#6daea1; }
.config-workspace .btn-approve { background:#0f766e; }
.config-workspace .btn-approve:hover { background:#115e59; }
.config-workspace .btn-outline { color:#49617b; border-color:#dce4ec; }
.config-workspace .btn-outline:hover { background:#f2f7fa; }
.config-workspace .btn-sm { min-height:31px; }
.config-policy-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px 14px; }
.config-field-wide { grid-column:auto; }
.config-helper { font-size:12px; color:#7a8797; line-height:1.7; margin-top:8px; }
.config-section-divider { height:1px; background:#edf0f4; margin:18px 0; }
.config-inline-note { border-left:2px solid #c9dcd7; padding:3px 11px; font-size:12px; color:#7a8797; line-height:1.8; }
.config-page-footer { position:fixed; bottom:0; left:24px; right:24px; z-index:6; display:flex; justify-content:space-between; align-items:center; gap:14px; background:rgba(255,255,255,.98); border:1px solid #e1e7ed; border-bottom:0; border-radius:10px 10px 0 0; padding:13px 18px; box-shadow:0 -4px 20px rgba(37,56,76,.04); }
.config-page-footer .config-helper { margin:0; }
.config-footer-actions,.config-entity-actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.config-entity-actions { justify-content:space-between; }
.config-sr-only { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
.entity-defaults-layout { display:grid; grid-template-columns:310px minmax(0,1fr); gap:16px; align-items:start; }
.entity-defaults-guide { font-size:12px; color:#64748b; line-height:1.8; margin:10px 0; }
.entity-defaults-rules { display:flex; flex-direction:column; gap:12px; }
.entity-default-rule { border:1px solid #e1e7ed; border-radius:10px; background:#fff; overflow:hidden; }
.entity-default-rule>summary { padding:14px 16px; cursor:pointer; background:#f8fafc; display:flex; align-items:center; gap:10px; list-style:none; }
.entity-default-rule>summary::-webkit-details-marker { display:none; }
.entity-default-rule>summary::before { content:'›'; font-size:19px; color:#7a8797; }
.entity-default-rule[open]>summary::before { transform:rotate(90deg); }
.entity-default-rule>summary strong { font-size:14px; color:#334155; }
.entity-rule-count { margin-left:auto; font-size:11px; color:#64748b; background:#eef2f6; padding:3px 8px; border-radius:5px; }
.entity-rule-count.active { background:#e5f4ee; color:#0f766e; }
.entity-rule-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; padding:16px; }
.entity-rule-hint { padding:0 16px 13px; font-size:12px; color:#8491a1; }
.config-feedback { border-radius:7px; padding:10px 12px; font-size:13px; line-height:1.7; white-space:pre-wrap; margin:0 0 14px; background:#eff6ff; color:#415c7b; }
.config-feedback:empty { display:none; }
.config-feedback[data-tone=error] { background:#fef2f2; color:#b91c1c; }
.config-feedback[data-tone=success] { background:#ecfdf5; color:#0f766e; }
.config-rule-header { margin:0 0 12px; }
.config-rule-header h3 { font-size:15px; color:#25384c; }
.config-rule-header p { font-size:12px; color:#7a8797; margin-top:5px; }
.history-import-option { display:flex; align-items:center; flex-wrap:wrap; gap:8px; padding:12px 0; font-size:13px; color:#25384c; }
.history-import-option input,.history-sheets input,.history-invoice-table input { accent-color:#0f766e; width:15px; height:15px; flex-shrink:0; }
#invoice-history-import { border:1px solid #dce7e5; border-radius:8px; padding:12px; margin-top:4px; background:#fbfdfc; }
#invoice-history-import[hidden] { display:none; }
.history-import-heading { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:8px; font-size:13px; }
.history-preview-scroll { max-height:350px; overflow:auto; margin-top:10px; }
.history-file { padding:10px 0; border-top:1px solid #e6edeb; }
.history-sheets { display:flex; align-items:center; flex-wrap:wrap; gap:9px 14px; padding:9px 0; font-size:12px; }
.history-sheets label { display:flex; align-items:center; gap:5px; }
.history-table-wrap { overflow:auto; }
.history-invoice-table { width:100%; border-collapse:collapse; font-size:12px; line-height:1.5; }
.history-invoice-table th,.history-invoice-table td { text-align:left; vertical-align:top; padding:7px 8px; border-bottom:1px solid #e8efed; }
.history-invoice-table th { font-weight:500; color:#6b7b8c; background:#f4f8f7; white-space:nowrap; }
.history-invoice-table td { min-width:80px; max-width:190px; overflow-wrap:anywhere; }
.history-invoice-table td:first-child { min-width:24px; }
.history-invoice-table small,.history-record small { display:block; color:#7a8797; font-size:11px; margin-top:3px; font-weight:400; }
.history-status { white-space:nowrap; padding:2px 6px; border-radius:4px; font-size:11px; }
.history-status-ready { color:#0f766e; background:#e5f4ee; }
.history-status-review { color:#92400e; background:#fff2d9; }
.history-issue { color:#8b651f; }
.history-import-actions { display:flex; align-items:center; justify-content:space-between; gap:10px; padding-top:12px; flex-wrap:wrap; }
#entity-import-dialog [hidden] { display:none!important; }
.history-feedback { font-size:12px; line-height:1.6; color:#9f3c2d; background:#fff3ef; padding:7px 10px; border-radius:5px; margin:8px 0; }
.history-feedback.success { color:#0f766e; background:#e5f4ee; }
.history-records-disclosure { margin-top:14px; padding-top:12px; border-top:1px solid #e6edeb; }
.history-records-disclosure>summary { cursor:pointer; font-size:13px; color:#49617b; }
#invoice-history-records-body { padding-top:12px; }
.history-records-scroll { max-height:300px; overflow:auto; margin-top:8px; }
.history-record { border-bottom:1px solid #e8efed; font-size:12px; }
.history-record>summary { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:10px 4px; cursor:pointer; }
.history-record>summary>span:last-child { text-align:right; }
.history-record-body { padding:0 4px 10px; overflow:auto; }
@media(min-width:1100px) { .config-page-footer { left:222px; } }
@media(max-width:1250px) { .config-workspace .entity-main-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:900px) { .entity-defaults-layout { grid-template-columns:1fr; } .config-policy-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) { .config-panel { padding:12px; } .config-disclosure { padding:0; } .config-disclosure>summary { flex-wrap:wrap; gap:6px 10px; } .config-disclosure>summary span { margin-left:20px; } .config-page-header h2 { font-size:20px; } .config-scope-badge { display:none; } .config-panel-heading { align-items:flex-start; flex-wrap:wrap; } .config-workspace .entity-main-grid,.config-workspace .default-product-grid,.config-policy-grid,.entity-rule-fields { grid-template-columns:1fr; } .config-page-footer { left:10px; right:10px; padding:12px; } .config-page-footer .config-helper { max-width:120px; } .config-workspace { padding-bottom:95px; } }
