/* El backend mantiene la paleta clara aunque styles.css use la oscura de la tienda. */
:root { --ink: #251d19; --paper: #f4eee6; --cream: #fbf8f3; --cacao: #603b2d; --red: #c94d38; --line: #d8cbc0; --mute: #66554c; --wall: #f4eee6; }
.admin-body { background: var(--cream); min-height: 100vh; overflow-x: hidden; }
.admin-header { border-bottom: 1px solid var(--line); }
.admin-main-nav a[aria-current="page"] { color: var(--red); text-decoration: underline; text-underline-offset: 7px; }
.admin-session { align-items: center; display: flex; gap: 12px; }
.admin-session span { color: #806f64; font-family: var(--mono); font-size: 12px; text-transform: uppercase; }
@media (max-width: 760px) {
	.admin-header { gap: 12px 8px; grid-template-columns: minmax(0, 1fr) auto; height: auto; min-height: 78px; padding-bottom: 12px; padding-top: 12px; }
	.admin-header .brand { grid-column: 1; grid-row: 1; min-width: 0; }
	.admin-header .brand-logo { max-width: 100%; width: min(116px, 30vw); }
	.admin-header .admin-session { grid-column: 2; grid-row: 1; justify-self: end; min-width: 0; }
	.admin-header .admin-session span { font-size: 11px; max-width: 120px; overflow: hidden; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
	.admin-header .admin-main-nav { display: flex; flex-wrap: wrap; font-size: 13px; gap: 10px 18px; grid-column: 1 / -1; grid-row: 2; justify-content: center; }
}
.login-shell { align-items: center; display: flex; justify-content: center; min-height: 74vh; padding: 60px 6vw 100px; }
.login-card { background: #eee5dc; display: grid; gap: 18px; max-width: 420px; padding: 44px 38px; width: 100%; }
.login-card h1 { font-family: var(--serif); font-size: 44px; font-weight: 400; margin: -8px 0 0; }
.login-card label { display: grid; font-family: var(--mono); font-size: 10px; gap: 8px; text-transform: uppercase; }
.login-card input { background: var(--cream); border: 1px solid var(--line); color: var(--ink); font-family: var(--serif); font-size: 16px; padding: 11px 12px; width: 100%; }
.login-card input:focus { border-color: var(--ink); outline: 0; }
.login-error, .form-feedback { background: var(--red); color: #fff; font-family: var(--mono); font-size: 10px; padding: 11px 12px; }
.provisional-badge { color: var(--red); font-family: var(--mono); font-size: 10px; text-transform: uppercase; }
.admin-shell { margin: 0 auto; max-width: none; padding: 50px clamp(24px, 4vw, 80px) 100px; }
.admin-heading { align-items: end; display: flex; justify-content: space-between; margin-bottom: 52px; }
.admin-heading h1 { font-size: clamp(52px, 7vw, 92px); }
.admin-section-nav { border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 34px; margin-top: 24px; padding-top: 18px; }
.admin-section-nav a { color: var(--ink); font-size: 18px; font-weight: 700; text-decoration: none; text-transform: uppercase; }
.admin-section-nav a:hover, .admin-section-nav a[aria-current="page"] { color: var(--red); }
.admin-section-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.admin-shell.settings-mode .admin-section-nav { display: none; }
.admin-panel { display: none; }
.admin-panel.active { display: block; }
.panel-back { color: #806f64; display: inline-block; font-family: var(--mono); font-size: 15px; margin-bottom: 8px; text-decoration: none; }
.panel-back:hover { color: var(--ink); }
.dashboard-grid { display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); }
.dash-card { background: #eee5dc; display: flex; flex-direction: column; min-height: 210px; padding: 26px; position: relative; transition: background .15s ease; }
.dash-card:hover { background: #e7dbd0; }
.dash-main { color: inherit; text-decoration: none; }
.dash-main::after { content: ''; inset: 0; position: absolute; }
.dash-card:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.dash-label { color: #806f64; display: block; font-family: var(--mono); font-size: 12px; text-transform: uppercase; }
.dash-card strong { display: block; font-family: var(--serif); font-size: 38px; font-weight: 400; margin-top: 22px; }
.dash-foot { color: #806f64; font-family: var(--mono); font-size: 12px; margin-top: auto; padding-top: 22px; }
.dash-foot b { color: var(--ink); font-weight: 400; }
.dash-split { display: flex; gap: 8px; margin-top: auto; padding-top: 22px; }
.dash-split a { border: 1px solid var(--line); color: #66554c; flex: 1; padding: 8px 10px; position: relative; text-decoration: none; z-index: 1; }
.dash-split a:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.dash-split span { display: block; font-family: var(--mono); font-size: 11px; text-transform: uppercase; }
.dash-split b { font-family: var(--serif); font-size: 19px; font-weight: 400; }
.admin-card { background: #eee5dc; padding: 26px; }
.admin-section, .admin-detail { margin-top: 28px; }
.admin-section-title { align-items: center; display: flex; gap: 20px; justify-content: space-between; margin: 30px 0 18px; }
.admin-section-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 16px; justify-content: flex-end; }
.admin-subnav { display: flex; flex-wrap: wrap; gap: 10px; margin: -4px 0 22px; }
.admin-subnav a { border: 1px solid var(--line); color: #66554c; font-family: var(--mono); font-size: 15px; padding: 10px 16px; text-transform: uppercase; }
.admin-subnav a:hover { border-color: var(--ink); color: var(--ink); }
.admin-subnav a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.settings-subnav { border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; padding-bottom: 18px; }
.settings-subnav a { border: 1px solid var(--line); color: #66554c; font-family: var(--mono); font-size: 15px; padding: 10px 16px; text-transform: uppercase; }
.settings-subnav a:hover, .settings-subnav a[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }
.quote-item-list { border-top: 1px solid var(--line); margin-top: 20px; }
.quote-item-row { align-items: center; border-bottom: 1px solid var(--line); display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr) 80px 110px auto; padding: 12px 0; }
.quote-item-row strong, .quote-item-row small { display: block; }
.quote-item-row small { color: #806f64; font-size: 11px; margin-top: 3px; }
.quote-row { cursor: pointer; }
.quote-row:hover td { background: #eee5dc; }
.quote-row td:last-child { white-space: nowrap; }
.quote-row [data-delete-quote] { margin-left: 20px; }
.quote-status-select { appearance: none; border: 1px solid transparent; border-radius: 999px; cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; padding: 7px 28px 7px 12px; }
.quote-status-select.status-draft { background: #eee5dc; color: #66554c; }
.quote-status-select.status-sent { background: #e8eef5; color: #2d5378; }
.quote-status-select.status-confirmed { background: #f6eaca; color: #765717; }
.quote-status-select.status-paid { background: #e4f0df; color: #33531f; }
.quote-status-select.status-completed { background: #dcebe4; color: #1f5a43; }
.admin-section-title h2, .admin-card h2 { font-family: var(--serif); font-size: 38px; letter-spacing: 0; line-height: 1; }
.admin-card h3 { font-family: var(--serif); font-size: 24px; font-weight: 400; margin: 0 0 18px; }
.visibility-toggles { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.admin-section-title span, .admin-note, .save-status { color: #806f64; font-family: var(--mono); font-size: 14px; }
.admin-search { background: transparent; border: 0; border-bottom: 1px solid var(--line); caret-color: var(--ink); font-size: 17px; padding: 12px 12px; transition: background .15s ease, border-color .15s ease, box-shadow .15s ease; width: 300px; }
.admin-search::placeholder { color: #9a8a7d; }
.admin-search:focus { background: var(--cream); border-bottom-color: var(--ink); box-shadow: 0 1px 0 0 var(--ink); outline: 0; }
.admin-search:focus::placeholder { color: #b5a698; }
.product-category-slider { display: flex; gap: 9px; margin: 0 0 22px; overflow-x: auto; padding-bottom: 18px; scrollbar-width: auto; scrollbar-color: #806f64 #e8dfd5; }
.product-category-slider::-webkit-scrollbar { height: 30px; }
.product-category-slider::-webkit-scrollbar-track { background: #e8dfd5; border-radius: 8px; }
.product-category-slider::-webkit-scrollbar-thumb { background: #806f64; border: 3px solid #e8dfd5; border-radius: 10px; min-width: 60px; }
.product-category-slider::-webkit-scrollbar-thumb:hover { background: #5e5048; }
.product-category-filter { background: transparent; border: 1px solid var(--line); border-radius: 0; color: #66554c; cursor: pointer; flex: 0 0 auto; font-size: 16px; padding: 12px 16px; }
.product-category-filter span { color: #806f64; font-family: var(--mono); font-size: 11px; margin-left: 6px; }
.product-category-filter.active, .product-category-filter:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.product-category-filter.active span, .product-category-filter:hover span { color: #f2d8ca; }
.admin-table-wrap { overflow-x: auto; }
#panel-products td strong { font-size: 26px; }
#panel-products td small { font-size: 16px; }
#panel-products .odoo-status-badge { font-size: 13px; }
#panel-products .product-category-filter { font-size: 19px; }
#panel-products .product-category-filter span { font-size: 14px; }
#panel-products .sortable-column::after { font-size: 13px; }
.category-save-feedback { display: block; font-size: 15px; line-height: 1.4; margin-top: 10px; min-width: 180px; }
[data-save-state="saved"] .category-save-feedback { color: #33531f; font-weight: 700; }
[data-save-state="saved"] { background: #e4f0df; }
[data-save-state="error"] .category-save-feedback { color: #a43c2d; }
.category-preview { margin-bottom: 24px; }
.category-preview ol { display: grid; gap: 10px; list-style: none; margin: 16px 0 0; padding: 0; }
.category-preview li { min-width: 0; }
.category-preview li ol { border-left: 1px solid var(--line); margin: 10px 0 0 20px; padding-left: 16px; }
.category-preview li ol:empty { display: none; }
.category-drop-inside > .category-preview-card { background: #f3e5d8; border-color: var(--red); box-shadow: inset 0 0 0 2px var(--red); }
.category-preview-card { align-items: center; background: var(--cream); border: 1px solid var(--line); display: flex; gap: 14px; padding: 12px; }
.category-preview-name { flex: 1; font-size: 20px; min-width: 0; overflow-wrap: anywhere; }
.category-preview .category-preview-card > input { accent-color: var(--cacao); cursor: pointer; flex: 0 0 auto; height: 18px; margin: 0 4px; padding: 0; width: 18px; }
.category-drag-handle { align-items: center; background: transparent; border: 0; color: var(--mute); cursor: grab; display: inline-flex; flex: 0 0 36px; font-size: 28px; height: 40px; justify-content: center; padding: 0; touch-action: none; user-select: none; }
.category-drag-handle:focus-visible { outline: 2px solid var(--red); }
.category-dragging > .category-preview-card { border-color: var(--cacao); box-shadow: 0 3px 12px #603b2d30; }
.category-dragging .category-drag-handle { cursor: grabbing; }
.category-list-toolbar { align-items: center; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; margin-bottom: 18px; }
.category-list-toolbar .admin-note { flex: 1 1 300px; }
.category-list-toolbar [aria-pressed="true"] { background: var(--ink); color: #fff; }
.customer-pagination { align-items: center; display: flex; gap: 18px; justify-content: end; margin-top: 20px; }
.customer-pagination span { color: #806f64; font-family: var(--mono); font-size: 14px; }
.customer-pagination button:disabled { color: #b8a69b; cursor: default; }
.admin-category { border-top: 1px solid var(--line); margin-top: 18px; }
.admin-category summary { cursor: pointer; font-family: var(--serif); font-size: 25px; list-style: none; padding: 20px 0; }
.admin-category summary::-webkit-details-marker { display: none; }
.admin-category summary span { color: #806f64; font-family: var(--mono); font-size: 10px; margin-left: 10px; }
.admin-category tr { cursor: pointer; }
.admin-category tr:hover td { background: #eee5dc; }
.customer-row { cursor: pointer; }
.customer-row:hover td { background: #eee5dc; }
.customer-contact .form-feedback { margin-bottom: 16px; }
.customer-contact input[readonly] { background: transparent; color: #806f64; }
#admin-product-rows tr { cursor: pointer; }
#admin-product-rows tr:hover td { background: #eee5dc; }
.product-modal[hidden] { display: none; }
.product-modal { inset: 0; position: fixed; z-index: 30; }
.modal-scrim { background: rgba(37,29,25,.55); inset: 0; position: absolute; }
.modal-box { background: var(--cream); box-shadow: 0 20px 60px rgba(37,29,25,.2); left: 50%; max-height: 90vh; max-width: 620px; overflow-y: auto; padding: 42px; position: absolute; top: 50%; transform: translate(-50%, -50%); width: calc(100% - 40px); }
.modal-box h2 { font-size: 42px; margin-bottom: 22px; }
.confirm-modal-box { max-width: 400px; text-align: center; z-index: 40; }
.confirm-modal-box p { font-family: var(--serif); font-size: 22px; line-height: 1.3; margin: 0 0 28px; }
.confirm-modal-actions { display: flex; gap: 12px; justify-content: center; }
.confirm-modal-actions .button { flex: 1; justify-content: center; }
.customer-modal-box { max-width: 1160px; }
.customer-modal-layout { display: grid; gap: 42px; grid-template-columns: minmax(320px, .85fr) minmax(0, 1.15fr); }
.customer-contact { min-width: 0; }
.customer-contact > .button { margin-top: 24px; }
.customer-contact .modal-section { margin-top: 26px; padding-top: 20px; }
.customer-contact .modal-section h3 { font-size: 22px; margin-bottom: 14px; }
.customer-orders { min-width: 0; }
.customer-orders > h3 { font-family: var(--serif); font-size: 27px; font-weight: 400; margin: 0 0 24px; }
.customer-order { border-top: 1px solid var(--line); padding: 17px 0; }
.customer-order header { align-items: baseline; display: flex; gap: 12px; justify-content: space-between; }
.customer-order header strong { font-family: var(--serif); font-size: 19px; font-weight: 400; }
.customer-order header span { color: #806f64; font-family: var(--mono); font-size: 9px; text-align: right; }
.customer-order ul { list-style: none; margin: 14px 0 0; padding: 0; }
.customer-order li { color: #66554c; display: flex; font-size: 11px; gap: 14px; justify-content: space-between; line-height: 1.5; padding: 5px 0; }
.customer-order li strong { color: var(--ink); font-family: var(--mono); font-size: 10px; font-weight: 400; white-space: nowrap; }
.full-field { grid-column: 1 / -1; }
.product-category-editor { border: 1px solid var(--line); margin: 12px 0 0; min-width: 0; padding: 16px; }
.product-category-checks { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); max-height: 240px; overflow-y: auto; padding: 8px; }
#product-modal .product-category-checks .check-label { align-items: center; display: flex; gap: 8px; margin: 0; }
#product-modal .product-category-checks input { flex: 0 0 auto; width: auto; }
.variant-options-editor { flex: 1 0 100%; grid-column: 1 / -1; min-width: 0; }
.variant-option-editor { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 12px 0; }
.variant-option-editor label { display: grid; gap: 8px; min-width: 0; }
.variant-option-editor input { width: 100%; }
.order-summary-toolbar { display: flex; justify-content: flex-end; margin: 18px 0 12px; }
.order-state-summary { border: 1px solid var(--line); margin-bottom: 24px; padding: 20px; }
.order-state-summary h3 { font-size: 22px; font-weight: 400; margin: 0 0 16px; }
.order-summary-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.order-summary-pills button { cursor: pointer; font-size: 16px; }
.order-summary-pills [aria-pressed="true"] { border-color: currentColor; box-shadow: 0 0 0 1px currentColor; }
#order-modal .modal-box { font-size: 20px; line-height: 1.5; }
.order-modal-print-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; margin-left: auto; }
.order-modal-print-actions .table-button { align-items: center; background: var(--cacao); border: 1px solid var(--cacao); border-radius: 4px; color: #fff; display: inline-flex; gap: 5px; justify-content: center; padding: 6px 9px; text-decoration: none; white-space: nowrap; }
.order-modal-print-actions .table-button:not([disabled]):hover { background: var(--ink); border-color: var(--ink); }
.order-modal-print-actions .table-button:focus-visible { outline: 2px solid var(--cacao); outline-offset: 3px; }
.order-modal-print-actions svg { flex-shrink: 0; height: 16px; width: 16px; }
.production-preview { background: var(--cream); border: 0; box-shadow: 0 20px 60px rgba(37,29,25,.25); color: var(--ink); display: flex; flex-direction: column; height: 94vh; max-height: 94vh; max-width: 1100px; padding: 20px; width: calc(100% - 24px); }
.production-preview::backdrop { background: rgba(37,29,25,.65); }
.production-preview:not([open]) { display: none; }
.production-preview-toolbar { align-items: center; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
.production-preview-toolbar h2 { font-size: 24px; margin: 0; }
.production-preview-toolbar > div { display: flex; gap: 10px; }
.production-preview-note { font-size: 14px; margin: 10px 0; }
.production-preview iframe { background: #e8e8e8; border: 1px solid var(--line); flex: 1; min-height: 0; width: 100%; }
#order-modal :is(p, label, input, select, textarea, .table-button, .button, .order-state-pill) { font-size: 20px; }
#order-modal :is(small, .eyebrow, .order-badges > span:not(.order-state-control)) { font-size: 18px; }
#order-modal .order-badges { align-items: center; }
#order-modal .order-badges > span:not(.order-state-control) { font-size: 12px; }
#order-modal .order-badges .order-state-pill { font-size: 14px; }
#order-modal .order-modal-print-actions .table-button { font-size: 13px; line-height: 1.3; }
#order-modal .customer-order :is(li, header > span, li strong) { font-size: 19px; }
#order-modal .customer-order header > strong { flex: 1; font-size: 26px; min-width: 0; overflow-wrap: anywhere; }
#order-modal :is(h3, .modal-section h3) { font-size: 32px; }
#order-modal h4 { font-size: 24px; font-weight: 400; margin-bottom: 12px; }
#order-modal .order-product header { align-items: center; display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; }
#order-modal .order-product-thumb { background: #fff; border: 1px solid var(--line); display: block; height: 76px; object-fit: contain; width: 76px; }
#order-modal .order-image-missing { align-content: center; color: #806f64; font-size: 12px; text-align: center; white-space: normal; }
#order-modal .order-card-preview { margin: 26px 6px; max-width: 480px; }
#order-modal .card-preview p { font-size: 30px; }
#order-modal .custom-box-detail li { align-items: center; flex-direction: row; }
@media (max-width: 760px) {
  .admin-body .admin-shell { padding: 36px 20px 80px; }
  .variant-option-editor { grid-template-columns: minmax(0, 1fr); }
  #order-modal .order-product header { grid-template-columns: 64px minmax(0, 1fr); }
  #order-modal .order-product-thumb { height: 64px; width: 64px; }
  #order-modal .order-product header > span:last-child { grid-column: 2; }
}
@media (max-width: 980px) { .customer-modal-box { max-width: min(680px, calc(100% - 32px)); }.customer-modal-layout { display: block; }.customer-orders { border-top: 1px solid var(--line); margin-top: 34px; padding-top: 8px; }.customer-order header { align-items: flex-start; flex-direction: column; }.customer-order header span { text-align: left; }.customer-order li { align-items: flex-start; flex-direction: column; gap: 3px; } }
.product-modal-box { max-width: 900px; }
.modal-section { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 24px; }
.modal-section h3 { font-family: var(--serif); font-size: 27px; font-weight: 400; margin: 0 0 18px; }
.product-modal-box #quote-form label input, .product-modal-box #quote-form label select, .product-modal-box #quote-form label textarea, .product-modal-box #quote-detail-form label input, .product-modal-box #quote-detail-form label select, .product-modal-box #quote-detail-form label textarea { display: block; margin-top: 9px; }
.product-modal-box #quote-form label textarea, .product-modal-box #quote-detail-form label textarea { min-height: 110px; resize: vertical; }
.modal-copy-section label { display: block; margin: 0 0 22px; }
.modal-copy-section label span { color: #66554c; display: block; font-size: 11px; font-weight: 800; margin-bottom: 8px; }
.modal-copy-section textarea { display: block; line-height: 1.6; min-height: 130px; resize: vertical; width: 100%; }
.modal-copy-section label:last-child textarea { min-height: 300px; }
.modal-section-heading { align-items: center; display: flex; justify-content: space-between; margin-bottom: 16px; }
.modal-section-heading h3 { margin: 0; }
.upload-button { display: inline-flex; }
.modal-image-list, .modal-variant-list { display: grid; gap: 12px; }
.danger-button { color: #a43c2d; }
.modal-close { background: transparent; border: 0; cursor: pointer; font-size: 28px; position: absolute; right: 22px; top: 18px; }
.modal-heading-row { align-items: center; display: flex; gap: 16px; justify-content: space-between; padding-right: 44px; }
.modal-nav { display: flex; flex: 0 0 auto; gap: 8px; }
.modal-nav button:disabled { color: #b8a69b; cursor: default; }
.odoo-link-section { grid-column: 1 / -1; }
.odoo-link-status { color: var(--red); font-family: var(--mono); font-size: 10px; margin: -6px 0 14px; text-transform: uppercase; }
.odoo-inline-link { background: #f6eee5; flex: 1 0 100%; padding: 14px; }
.odoo-link-heading, .odoo-suggestion-heading { align-items: center; display: flex; gap: 14px; justify-content: space-between; }
.odoo-link-heading span { color: var(--red); font-family: var(--mono); font-size: 9px; text-transform: uppercase; }
.odoo-suggestion-heading { margin: 16px 0 8px; }
.odoo-suggestion-heading > strong { font-size: 12px; }
.odoo-suggestion-search { background: #fff; border: 1px solid var(--line); font: inherit; padding: 11px 12px; width: 100%; }
.odoo-suggestion-results { border-top: 1px solid var(--line); margin-top: 8px; }
.odoo-suggestion { align-items: center; background: transparent; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); cursor: pointer; display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr) auto auto; padding: 11px 4px; text-align: left; width: 100%; }
.odoo-suggestion:hover, .odoo-suggestion:focus-visible { background: #eee5dc; outline: none; }
.odoo-suggestion strong { display: block; font-family: var(--serif); font-size: 16px; font-weight: 400; }
.odoo-suggestion small { color: #806f64; display: block; font-family: var(--mono); font-size: 8px; line-height: 1.45; margin-top: 3px; }
.odoo-suggestion-price { font-family: var(--mono); font-size: 11px; text-align: right; }
.odoo-import-note { color: #806f64; font-family: var(--mono); font-size: 10px; line-height: 1.5; margin: 18px 0 0; }
.odoo-import-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.odoo-import-actions .button { flex: 1; justify-content: center; }
.odoo-assign-label { border-bottom: 1px solid var(--ink); font-size: 10px; font-weight: 800; padding-bottom: 4px; }
.modal-subsection { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 22px; }
.modal-subsection h3 { font-family: var(--serif); font-size: 24px; font-weight: 400; }
.modal-row, .modal-variant { align-items: center; border-bottom: 1px solid var(--line); display: flex; gap: 10px; padding: 12px 0; }
.modal-row input, .modal-variant input { min-width: 0; }
.modal-row .editor-thumb { flex: 0 0 54px; }
.modal-variant { flex-wrap: wrap; }
.modal-variant strong { font-family: var(--serif); font-weight: 400; grid-column: 1 / -1; }
.variant-field-label { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.variant-field-label strong { font-family: var(--sans); font-size: 10px; font-weight: 800; }
.variant-field-label small { color: #806f64; font-family: var(--mono); font-size: 8px; line-height: 1.3; }
.variant-control { display: flex; flex: 1 1 150px; flex-direction: column; gap: 6px; margin: 0; min-width: 0; }
.variant-control input { width: 100%; }
.new-variant-form label { color: #66554c; display: block; font-size: 10px; font-weight: 800; margin: 0; }
.new-variant-form label small { color: #806f64; display: block; font-family: var(--mono); font-size: 8px; font-weight: 400; margin: 5px 0; }
.new-variant-form { background: #eee5dc; display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); margin-bottom: 16px; padding: 14px; }
.new-variant-form[hidden] { display: none !important; }
.new-variant-form button, .new-variant-form .odoo-inline-link { grid-column: 1 / -1; }
.new-variant-form button { justify-self: start; }
#product-modal { font-size: 18px; }
#product-modal :is(label, .modal-copy-section label span, .variant-field-label strong, .odoo-suggestion-heading > strong) { font-size: 16px; }
#product-modal :is(input, select, textarea, .button, .table-button, .odoo-suggestion-price) { font-size: 16px; }
#product-modal :is(.field-help, .new-variant-form label small, .variant-field-label small, .odoo-suggestion small, .odoo-link-status, .odoo-link-heading span, .odoo-assign-label, .eyebrow, .form-feedback) { font-size: 14px; line-height: 1.5; }
#product-modal h3 { font-size: 30px; }
#product-modal .odoo-suggestion strong { font-size: 18px; overflow-wrap: anywhere; }
#product-modal .modal-heading-row, #product-modal .product-form-actions { flex-wrap: wrap; }
#product-modal .new-variant-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#product-modal .new-variant-form label { min-width: 0; }
#product-modal .check-label { flex-wrap: wrap; white-space: normal; }
#product-modal .check-label .field-help { flex-basis: 100%; }
@media (max-width: 760px) {
	#product-modal .new-variant-form { grid-template-columns: 1fr; }
	#product-modal .modal-image-list .modal-row { align-items: start; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; }
	#product-modal .modal-image-list .editor-thumb { grid-column: 1; grid-row: 1 / span 5; height: 72px; width: 72px; }
	#product-modal .modal-image-list :is(.modal-row > input, .field-help, .check-label, button) { grid-column: 2; min-width: 0; }
	#product-modal .modal-image-list .field-help { margin-top: 0; }
	#product-modal .modal-image-list .check-label { margin: 0; }
	#product-modal .modal-image-list input[type="checkbox"] { width: auto; }
	#product-modal .odoo-suggestion { gap: 10px; grid-template-columns: minmax(0, 1fr) auto; }
	#product-modal .odoo-assign-label { grid-column: 1 / -1; justify-self: end; }
	#product-modal .odoo-link-heading, #product-modal .odoo-suggestion-heading { align-items: flex-start; flex-wrap: wrap; }
}
table { border-collapse: collapse; min-width: 800px; width: 100%; }
th, td { border-bottom: 1px solid var(--line); font-size: 16px; padding: 20px 14px; text-align: left; }
th { color: #806f64; font-family: var(--mono); font-size: 14px; font-weight: 400; text-transform: uppercase; }
td strong { font-family: var(--serif); font-size: 22px; font-weight: 400; }
td small { color: #806f64; display: block; font-family: var(--mono); font-size: 13px; margin-top: 6px; text-transform: uppercase; }
#panel-products table { min-width: 1100px; table-layout: auto; width: max-content; }
#panel-products th, #panel-products td { font-size: 19px; padding-left: 26px; padding-right: 26px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#panel-products th:nth-child(1), #panel-products td:nth-child(1) { width: 8%; }
#panel-products th:nth-child(2), #panel-products td:nth-child(2) { width: 30%; }
#panel-products th:nth-child(3), #panel-products td:nth-child(3) { width: 10%; }
#panel-products th:nth-child(4), #panel-products td:nth-child(4) { width: 11%; }
#panel-products th:nth-child(5), #panel-products td:nth-child(5) { width: 9%; }
#panel-products th:nth-child(6), #panel-products td:nth-child(6) { width: 9%; }
#panel-products th:nth-child(7), #panel-products td:nth-child(7) { width: 11%; }
#panel-products th:nth-child(8), #panel-products td:nth-child(8) { width: 8%; }
.odoo-status-badge { border-radius: 2px; display: inline-block; font-family: var(--mono); font-size: 9px; padding: 4px 8px; text-transform: uppercase; white-space: nowrap; }
.odoo-status-linked { background: #e9f3e6; color: #33531f; }
.odoo-status-pending { background: #fbe9e5; color: #9a3324; }
.mobile-odoo-badge { display: none; }
.order-delete-button { align-items: center; border-color: #d8b4ac; color: #9a3324; display: inline-flex; float: right; font-size: 14px; gap: 6px; margin: 4px 44px 0 0; }
.order-delete-button span { font-size: 20px; line-height: 1; }
.order-delete-button:hover { background: #9a3324; border-color: #9a3324; color: #fff; }
#panel-products td small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#panel-products th:nth-child(2), #panel-products td:nth-child(2) { min-width: 340px; overflow: visible; width: auto; }
#panel-products td:nth-child(2) small { overflow: visible; }
#panel-products .admin-table-wrap { scrollbar-width: auto; }
@media (max-width: 760px) {
	#panel-products .admin-table-wrap { overflow-x: visible; }
	#panel-products table { min-width: 0; width: 100%; }
	#panel-products thead tr, #panel-products tbody tr { align-items: center; column-gap: 10px; display: grid; grid-template-columns: 56px minmax(0, 1fr) 44px 50px minmax(66px, auto); }
	#panel-products thead tr { border: 1px solid var(--line); border-radius: 6px; margin-bottom: 4px; padding: 10px 12px; }
	#panel-products thead th:nth-child(n) { background: none; border: 0; color: #806f64; font-family: var(--mono); font-size: 10px; letter-spacing: .06em; min-width: 0; overflow: visible; padding: 0; text-align: center; text-transform: uppercase; width: auto; }
	#panel-products thead th:nth-child(1), #panel-products thead th:nth-child(4), #panel-products thead th:nth-child(6), #panel-products thead th:nth-child(8) { display: none; }
	#panel-products thead th:nth-child(2) { grid-column: 1 / 3; text-align: left; }
	#panel-products thead th:nth-child(3) { grid-column: 5; text-align: right; }
	#panel-products thead th:nth-child(5) { grid-column: 3; grid-row: 1; }
	#panel-products thead th:nth-child(7) { grid-column: 4; grid-row: 1; }
	#panel-products tbody tr { background: #fffdf9; border-bottom: 1px solid var(--line); grid-template-rows: auto auto auto; padding: 12px; row-gap: 2px; }
	#panel-products tbody td:nth-child(n) { border: 0; font-size: 15px; min-width: 0; overflow: visible; padding: 0; white-space: nowrap; width: auto; }
	#panel-products tbody td:nth-child(1) { grid-column: 1; grid-row: 1 / 4; }
	#panel-products tbody td:nth-child(1) .product-thumb { border-radius: 6px; height: 56px; width: 56px; }
	#panel-products tbody td:nth-child(2) { align-self: end; grid-column: 2; grid-row: 1 / 3; white-space: normal; }
	#panel-products tbody td:nth-child(2) strong { display: -webkit-box; font-family: var(--sans); font-size: 15px; font-weight: 600; line-height: 1.2; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
	#panel-products tbody td:nth-child(2) small { font-size: 10px; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	#panel-products tbody td:nth-child(3) { font-size: 17px; font-weight: 600; grid-column: 5; grid-row: 1 / 3; text-align: right; }
	#panel-products tbody td:nth-child(4) { display: none; }
	#panel-products tbody td:nth-child(5) { align-items: center; border: 1px solid var(--line); border-radius: 6px; color: var(--ink, #211a16); display: flex; font-size: 17px; font-weight: 700; grid-column: 3; grid-row: 1 / 4; height: 44px; justify-content: center; }
	#panel-products tbody td:nth-child(6) { align-self: start; color: #806f64; font-family: var(--mono); font-size: 10px; grid-column: 2; grid-row: 3; text-transform: uppercase; }
	#panel-products tbody td:nth-child(6) { align-items: center; display: flex; gap: 8px; }
	#panel-products tbody td:nth-child(6) .product-variant-count::after { content: " variantes"; }
	#panel-products tbody td:nth-child(6) .mobile-odoo-badge { display: inline-block; font-size: 8px; padding: 3px 5px; }
	#panel-products tbody td:nth-child(7) { grid-column: 4; grid-row: 1 / 4; }
	#panel-products tbody td:nth-child(7) .product-visibility { align-items: center; border: 1px solid var(--line); border-radius: 6px; display: flex; flex-direction: column; gap: 2px; height: 44px; justify-content: center; margin: 0; width: 50px; }
	#panel-products tbody td:nth-child(7) .product-visibility::after { color: #9a3324; content: "No"; font-family: var(--mono); font-size: 10px; font-weight: 700; text-transform: uppercase; }
	#panel-products tbody td:nth-child(7) .product-visibility:has(input:checked)::after { color: #3f7a2a; content: "Sí"; }
	#panel-products tbody td:nth-child(7) .product-visibility input { margin: 0; }
	#panel-products tbody td:nth-child(8) { grid-column: 5; grid-row: 3; justify-self: end; }
	#panel-products tbody td:nth-child(8) .delete-product-icon { min-height: 0; padding: 0 2px; }
}
.order-state-pill { background: #e8e4df; border: 1px solid transparent; border-radius: 999px; color: #51483f; display: inline-block; font: inherit; font-size: 13px; padding: 7px 12px; white-space: nowrap; }
select.order-state-pill { cursor: pointer; max-width: 220px; }
.order-state-pill[data-state="pending_payment"], .order-state-pill[data-state="pending"] { background: #fff0c2; color: #725100; }
.order-state-pill[data-state="paid"] { background: #dcefe0; color: #245833; }
.order-state-pill[data-state="preparing"] { background: #eadef8; color: #613780; }
.order-state-pill[data-state="shipped"] { background: #dcecfb; color: #225981; }
.order-state-pill[data-state="delivered"] { background: #c9ebde; color: #205644; }
.order-state-pill[data-state="cancelled"] { background: #f8dddd; color: #8a2f2f; }
.order-state-pill:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.order-state-control { display: inline-flex; flex-direction: column; gap: 5px; }
.order-state-error { color: #a12d29; font-size: 12px; max-width: 250px; white-space: normal; }
#panel-orders td small { text-transform: none; }
.product-thumb { align-items: center; background: #fff; display: inline-flex; height: 54px; justify-content: center; overflow: hidden; vertical-align: middle; width: 54px; }
.product-thumb img { display: block; height: 100%; object-fit: contain; width: 100%; }
.sortable-column { cursor: pointer; position: relative; user-select: none; }
.sortable-column:hover { color: var(--ink); }
.sortable-column::after { content: '↕'; color: #b8a69b; font-size: 9px; margin-left: 5px; }
.sortable-column.sort-active { color: var(--ink); font-weight: 700; }
.sortable-column.sort-active[data-sort-dir="asc"]::after { content: '↑'; color: var(--red); }
.sortable-column.sort-active[data-sort-dir="desc"]::after { content: '↓'; color: var(--red); }
.categories-table input, .categories-table select { background: var(--cream); border: 1px solid var(--line); font: inherit; max-width: 100%; padding: 8px; width: 100%; }
.category-create { margin-bottom: 30px; }
.category-create[hidden] { display: none; }
.category-create h3 { font-family: var(--serif); font-size: 25px; font-weight: 400; margin: 0; }
.table-button { background: none; border: 0; border-bottom: 1px solid var(--ink); cursor: pointer; font-size: 16px; font-weight: 800; padding: 6px 0 8px; }
.pill-action { border: 1px solid var(--ink); border-radius: 999px; padding: 10px 16px; }
.pill-action:hover { background: var(--ink); color: #fff; }
.delete-product-button { border-bottom-color: #a43c2d; color: #a43c2d; }
.delete-product-button:hover { border-bottom-color: var(--red); color: var(--red); }
.delete-product-icon { align-items: center; border: 0; color: #a43c2d; display: inline-flex; height: 30px; justify-content: center; padding: 0; width: 30px; }
.delete-product-icon:hover { color: var(--red); }
.delete-cross { display: block; font-size: 28px; font-weight: 400; line-height: 26px; }
.product-delete-actions { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 22px; }
.product-form-actions { align-items: center; display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; }
.product-form-actions .delete-product-button, .modal-image-list .delete-product-button { background: #fbe9e5; border: 1px solid #a43c2d; color: #a43c2d; padding: 11px 14px; }
.product-form-actions .delete-product-button:hover, .modal-image-list .delete-product-button:hover { background: #f6d8d1; border-color: var(--red); color: var(--red); }
.product-form-actions a[href*="/document"] { font-size: 0; }
.product-form-actions a[href*="/document"]::after { content: 'Descargar presupuesto'; font-size: 16px; }
.settings-grid { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.settings-integration-fields { display: grid; gap: 0 18px; grid-template-columns: repeat(2, 1fr); }
.palette-design-layout { display: grid; gap: 28px; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.palette-design-layout > * { min-width: 0; }
.palette-preview-wrap { align-self: start; }
.palette-preview-heading { align-items: baseline; display: flex; gap: 16px; justify-content: space-between; margin-bottom: 12px; }
.palette-preview-heading .eyebrow { margin: 0; }
.palette-preview-heading strong { font-size: 15px; }
.palette-preview-viewport { background: var(--cream); border: 1px solid var(--line); height: min(78vh, 800px); min-height: 490px; overflow: hidden; position: relative; width: 100%; }
.palette-preview-viewport iframe { background: #fbf8f3; border: 0; left: 0; pointer-events: auto; position: absolute; top: 0; transform-origin: top left; width: 1100px; }
.palette-preview-mobile { height: 844px; max-width: 390px; min-height: 0; }
.palette-preview-mobile iframe { width: 390px; }
.campaign-hero-images { border: 1px solid var(--line); display: grid; gap: 16px; margin: 20px 0; padding: 16px; }
.campaign-hero-images p { font-size: 14px; margin: 0; }
.campaign-hero-image { display: grid; gap: 10px; min-width: 0; }
.campaign-hero-image label { display: grid; gap: 8px; }
.campaign-hero-image input[type="file"] { max-width: 100%; }
.campaign-hero-image img { background: #000; height: 130px; object-fit: contain; width: 100%; }
.palette-active-label { display: grid; gap: 8px; margin-bottom: 26px; max-width: 360px; }
.palette-campaigns { border-top: 1px solid var(--line); margin-bottom: 28px; }
.palette-campaign { border-bottom: 1px solid var(--line); padding: 18px 0; }
.palette-campaign summary { cursor: pointer; font-size: 19px; font-weight: 700; }
.palette-color-fields { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 18px 0; }
.admin-card .palette-color-fields label { margin: 0; min-width: 0; }
.admin-card .palette-color-fields input { cursor: pointer; height: 40px; margin-top: 7px; max-width: 100px; padding: 3px; }
.palette-campaign-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.palette-campaign-actions .button, .palette-campaign-actions .table-button { font-size: 14px; margin: 0; padding: 10px 12px; }
.invoice-design-layout { display: grid; gap: 32px; grid-template-columns: minmax(320px, .85fr) minmax(480px, 1.15fr); }
.invoice-preview-wrap { min-width: 0; }
.invoice-preview { --invoice-primary: #603b2d; --invoice-accent: #c94d38; background: #fff; border: 1px solid var(--line); box-shadow: 0 16px 35px rgba(37,29,25,.1); color: #251d19; font-family: var(--sans); padding: 28px; }
.invoice-preview header { align-items: flex-start; border-bottom: 5px solid var(--invoice-primary); display: flex; justify-content: space-between; padding-bottom: 16px; }
.invoice-preview header strong { color: var(--invoice-primary); font-size: 22px; max-width: 48%; }
.invoice-preview-logo { height: 42px; object-fit: contain; object-position: left center; width: 170px; }
.invoice-preview header div { display: grid; gap: 3px; text-align: right; }
.invoice-preview header b { color: var(--invoice-primary); font-size: 24px; }
.invoice-preview header span { color: #806f64; font-size: 11px; }
.invoice-preview-parties { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; margin: 22px 0; }
.invoice-preview-parties section { background: #f3f2ed; display: grid; gap: 5px; padding: 16px; }
.invoice-preview-parties b { color: var(--invoice-primary); font-size: 13px; }
.invoice-preview-parties strong { font-size: 17px; }
.invoice-preview-parties span { font-size: 13px; }
.invoice-preview-table { font-size: 13px; }
.invoice-preview-table > div { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr) 48px 80px; padding: 9px 0; }
.invoice-preview-table > div:first-child { background: var(--invoice-primary); color: #fff; font-size: 12px; padding: 10px; text-transform: uppercase; }
.invoice-preview-table > div:not(:first-child) { border-bottom: 1px solid #e5e2dc; }
.invoice-preview-table > div span:last-child, .invoice-preview-table > div b:last-child { text-align: right; }
.invoice-preview-total { border-top: 2px solid var(--invoice-primary); display: flex; flex-direction: column; gap: 8px; align-items: flex-end; margin-top: 24px; padding-top: 16px; }
.invoice-preview-total span { color: #66554c; font-size: 13px; line-height: 1.6; text-align: right; }
.invoice-preview-total strong { background: var(--invoice-primary); color: #fff; font-size: 20px; padding: 13px 16px; }
.invoice-preview-iban { color: #66554c; font-size: 11px; grid-column: 1 / -1; text-align: right; }
.invoice-preview footer { background: var(--invoice-primary); color: #fff; display: flex; font-size: 11px; justify-content: center; margin: 28px -28px -28px; padding: 13px 28px; text-align: center; }
.admin-card label, .editor-sidebar label { color: #66554c; display: block; font-size: 11px; font-weight: 700; margin: 18px 0 8px; }
@media (max-width: 980px) { .invoice-design-layout, .palette-design-layout { grid-template-columns: 1fr; }.palette-preview-wrap { background: var(--cream); order: -1; padding-bottom: 8px; position: static; }.palette-preview-viewport { height: min(65vh, 620px); min-height: 360px; } }
@media (max-width: 760px) { .admin-section-title { align-items: flex-start; flex-direction: column; }.admin-section-actions { justify-content: flex-start; width: 100%; }.admin-search { width: min(100%, 360px); }.admin-section-nav a { font-size: 14px; }.admin-subnav { gap: 16px; }.settings-integration-fields, .invoice-preview-parties { grid-template-columns: 1fr; }.palette-color-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }.invoice-preview { padding: 18px; }.invoice-preview footer { margin: 28px -18px -18px; padding: 13px 18px; } }
.admin-card input, .admin-card textarea, .admin-card select, .editor-sidebar select { background: var(--cream); border: 1px solid var(--line); color: var(--ink); font: inherit; padding: 12px; width: 100%; }
.field-help { color: #806f64; display: block; font-family: var(--mono); font-size: 9px; font-weight: 400; line-height: 1.45; margin-top: 7px; }
.form-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); }
.editor-layout { display: grid; gap: 40px; grid-template-columns: 250px 1fr; }
.editor-sidebar { border-right: 1px solid var(--line); padding-right: 26px; }
.editor-nav { background: transparent; border: 0; border-left: 2px solid var(--red); cursor: pointer; font-size: 12px; padding: 12px; text-align: left; width: 100%; }
.editor-content .admin-card { margin-bottom: 20px; }
.editor-list { display: grid; gap: 14px; }
.editor-media, .editor-variant { background: var(--cream); border: 1px solid var(--line); padding: 16px; }
.editor-media { align-items: center; display: grid; gap: 14px; grid-template-columns: 72px 1fr auto auto; }
.editor-thumb { aspect-ratio: 1; background-position: center; background-size: cover; }
.editor-media label, .editor-variant label { margin: 0; }
.check-label { align-items: center; display: flex !important; gap: 7px; white-space: nowrap; }
.check-label input { width: auto; }
.editor-variant { display: grid; gap: 12px; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)) auto auto; }
.editor-variant strong { align-self: center; font-family: var(--serif); font-size: 16px; font-weight: 400; }
.editor-actions { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 20px; }
@media (max-width: 760px) { .admin-shell { padding: 48px 6vw 80px; }.admin-heading { align-items: start; display: block; }.admin-heading .button { margin-top: 25px; }.dashboard-grid, .settings-grid { grid-template-columns: repeat(2, 1fr); }.editor-layout { display: block; }.editor-sidebar { border-bottom: 1px solid var(--line); border-right: 0; margin-bottom: 24px; padding: 0 0 24px; }.form-grid { grid-template-columns: 1fr; }.provisional-badge { display: none; }.product-modal-box, .customer-modal-box { max-height: 92vh; padding: 30px 18px; width: calc(100% - 20px); }.modal-box h2 { font-size: 34px; padding-right: 24px; }.modal-section-heading { align-items: flex-start; flex-direction: column; gap: 12px; }.modal-row { align-items: stretch; display: grid; grid-template-columns: 58px 1fr; }.modal-row .editor-thumb { grid-row: span 3; }.modal-row .check-label, .modal-row .table-button { grid-column: 2; }.modal-row input { min-width: 0; width: 100%; }.modal-variant { align-items: stretch; display: grid; grid-template-columns: 1fr 1fr; }.modal-variant strong { grid-column: 1 / -1; }.modal-variant input, .modal-variant .variant-field-label { min-width: 0; width: 100%; }.modal-variant .table-button { grid-column: auto; }.new-variant-form { grid-template-columns: 1fr; }.new-variant-form button { grid-column: auto; }.header-actions { gap: 8px; }.editor-toggle, .inline-save { font-size: 8px; padding: 8px 7px; }.dashboard-tab { font-size: 8px; padding: 10px 6px; }.customer-modal-layout { display: block; }.customer-orders { margin-top: 34px; }.customer-order header { align-items: start; flex-direction: column; }.customer-order header span { text-align: left; }.full-field { grid-column: auto; } }
.order-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 22px; }
.order-badges > span:not(.order-state-control) { background: #eee5dc; color: #66554c; font-family: var(--mono); font-size: 10px; padding: 6px 10px; text-transform: uppercase; }
.order-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.order-expedition-form { align-items: end; display: grid; gap: 12px; grid-template-columns: 1fr 1fr; margin-top: 12px; }
.order-expedition-form label { display: grid; font-family: var(--mono); font-size: 10px; gap: 6px; text-transform: uppercase; }
.order-expedition-form input { background: var(--cream); border: 1px solid var(--line); font: inherit; padding: 9px 10px; }
.order-expedition-form .button { grid-column: 1 / -1; justify-content: center; }
#order-modal .modal-section p { line-height: 1.5; }
.commerce-settings h3 { font-family: var(--serif); font-size: 24px; font-weight: 400; margin: 0 0 14px; }
.commerce-section { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 22px; }
.commerce-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.commerce-grid label, .commerce-add-zone { display: grid; font-family: var(--mono); font-size: 10px; gap: 6px; text-transform: uppercase; }
.commerce-settings input:not([type="checkbox"]), .commerce-settings select { background: var(--cream); border: 1px solid var(--line); font: inherit; font-family: var(--serif); font-size: 14px; padding: 8px 9px; text-transform: none; width: 100%; }
.commerce-grid .commerce-check { align-items: center; align-self: end; display: flex; gap: 8px; justify-content: flex-start; padding-bottom: 8px; }
.commerce-check input { flex: 0 0 auto; margin: 0; width: auto; }
.commerce-method { background: var(--cream); margin-top: 16px; padding: 20px; }
.commerce-method-head { align-items: baseline; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin-bottom: 14px; }
.commerce-method-head h3 { margin: 0; }
.commerce-badge { background: #eee5dc; color: #66554c; font-family: var(--mono); font-size: 10px; padding: 5px 9px; text-transform: uppercase; }
.commerce-badge.is-ok { background: #dfe9d8; color: #35502a; }
.commerce-badge.is-warning { background: #f3dfc9; color: #7a4a1c; }
.commerce-zone { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 12px; }
.commerce-zone header { align-items: baseline; display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.commerce-zone header small { color: #806f64; flex: 1; font-size: 12px; }
.commerce-rates, .commerce-pickups { border-collapse: collapse; margin-bottom: 8px; width: 100%; }
.commerce-rates th, .commerce-pickups th { color: #806f64; font-family: var(--mono); font-size: 9px; font-weight: 400; padding: 4px 6px 4px 0; text-align: left; text-transform: uppercase; }
.commerce-rates td, .commerce-pickups td { padding: 3px 6px 3px 0; }
.commerce-rates { max-width: 560px; min-width: 0; }
.commerce-rates td:last-child, .commerce-pickups td:last-child { padding-right: 0; width: 1%; }
.commerce-settings :is([data-remove-rate], [data-remove-rule], [data-delete-pickup]) { align-items: center; border: 1px solid var(--line); display: inline-flex; font-size: 18px; font-weight: 400; height: 38px; justify-content: center; padding: 0; width: 38px; }
.commerce-settings :is([data-remove-rate], [data-remove-rule], [data-delete-pickup]):not([disabled]):hover { border-color: var(--ink); }
.commerce-add-zone { margin-top: 16px; max-width: 320px; }
.commerce-pickups { margin-top: 16px; }
#commerce-shipping-form > .button, #commerce-payment-form > .button { margin-top: 24px; }
.commerce-settings .form-feedback { margin-top: 18px; }
.commerce-settings .form-feedback.is-ok { background: #35502a; }
@media (max-width: 900px) { .commerce-pickups { display: block; overflow-x: auto; } }
.commerce-settings h4 { font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .04em; margin: 18px 0 10px; text-transform: uppercase; }
.commerce-integration { border-top: 1px dashed var(--line); margin-top: 20px; padding-top: 4px; }
.commerce-integration .field-source { color: #806f64; font-size: 10px; text-transform: none; }
.commerce-integration-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.commerce-integration-actions .button { font-size: 14px; padding: 12px 16px; }
.commerce-settings code { background: #eee5dc; font-size: 12px; padding: 2px 5px; word-break: break-all; }
.commerce-zone-list { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); margin-bottom: 12px; }
@media (max-width: 700px) { .commerce-zone-list { grid-template-columns: 1fr; } }
.commerce-zone-editor { background: var(--cream); padding: 16px 20px; }
.commerce-zone-editor .commerce-method-head { align-items: end; }
.commerce-zone-editor .commerce-method-head { margin-bottom: 8px; }
.commerce-zone-editor .commerce-method-head label { display: grid; flex: 1; font-family: var(--mono); font-size: 10px; gap: 6px; text-transform: uppercase; }
.commerce-zone-editor .commerce-rates { max-width: none; min-width: 0; }
.commerce-grid label[hidden] { display: none; }
.commerce-rule-country { align-items: center; display: flex; gap: 10px; }
.commerce-zone-editor td small { color: #806f64; font-size: 12px; white-space: nowrap; }
.commerce-zone-editor input[data-rule-field="country"] { text-transform: uppercase; width: 64px; }
.commerce-zone-editor .commerce-integration-actions { align-items: center; margin-top: 8px; }
.commerce-method-head [data-delete-method] { margin-left: auto; }
.table-button[disabled] { cursor: not-allowed; opacity: .4; }
.commerce-new-method { border: 1px dashed var(--line); margin-top: 16px; padding: 14px 20px; }
.commerce-new-method summary { cursor: pointer; font-family: var(--mono); font-size: 11px; text-transform: uppercase; }
.commerce-new-method[open] summary { margin-bottom: 14px; }
.commerce-new-method .button { font-size: 14px; margin-top: 10px; padding: 12px 16px; }
.quote-order-badge { display: block; margin-top: 4px; color: #2f6b3a; font-weight: 600; font-size: .8rem; }
.quote-order-note { margin: 10px 0 0; color: #2f6b3a; }
#quote-modal .eyebrow { font-size: 14px; }
#quote-modal h3 { font-size: 28px; }
#quote-modal label { font-size: 16px; gap: 8px; }
#quote-modal input, #quote-modal select, #quote-modal textarea { font-size: 18px; min-height: 48px; padding: 10px 14px; }
#quote-modal textarea { min-height: 96px; }
#quote-modal .quote-item-row { font-size: 18px; }
#quote-modal .quote-item-row strong { font-size: 19px; }
#quote-modal .quote-item-row small, #quote-modal small { font-size: 15px; }
#quote-modal .form-feedback, #quote-modal .quote-order-note { font-size: 17px; }
