.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: 1380px; padding: 70px 6vw 120px; }
.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: 9px; scrollbar-width: thin; }
.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; }
.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; }
@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; }
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: 0; table-layout: fixed; }
#panel-products th, #panel-products td { font-size: 15px; 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: 24%; }
#panel-products th:nth-child(3), #panel-products td:nth-child(3) { width: 15%; }
#panel-products th:nth-child(4), #panel-products td:nth-child(4) { width: 9%; }
#panel-products th:nth-child(5), #panel-products td:nth-child(5) { width: 10%; }
#panel-products th:nth-child(6), #panel-products td:nth-child(6) { width: 8%; }
#panel-products th:nth-child(7), #panel-products td:nth-child(7) { width: 8%; }
#panel-products th:nth-child(8), #panel-products td:nth-child(8) { width: 10%; }
#panel-products th:nth-child(9), #panel-products td:nth-child(9) { 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; }
#panel-products td small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#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 { background: #fbe9e5; border: 1px solid #a43c2d; color: #a43c2d; padding: 11px 14px; }
.product-form-actions .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; position: sticky; top: 114px; }
.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-x: hidden; overflow-y: auto; position: relative; width: 100%; }
.palette-preview-viewport::after { content: ''; display: block; height: var(--preview-content-height, 1500px); pointer-events: none; }
.palette-preview-viewport iframe { border: 0; height: 4000px; left: 0; pointer-events: none; position: absolute; top: 0; transform-origin: top left; width: 1100px; }
.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; } }
