.customer-cabinet{max-width:1200px}.profile-nav{display:flex;gap:12px;margin:12px 0 32px}.profile-nav a{padding:10px 18px;border:1px solid #e8dce3;border-radius:4px;font-size:16px}.profile-panel{background:#fcf8fa;border:1px solid #ecdee6;padding:28px;margin:32px 0}.profile-panel header{display:flex;align-items:center;justify-content:space-between;gap:16px}.profile-panel h2{font-size:26px;margin:0}.profile-panel h3{font-size:20px;margin:24px 0 16px}.profile-panel .eyebrow{font-size:12px;letter-spacing:.12em;margin:0 0 10px}.profile-panel .muted,.profile-panel small,.profile-access .muted{font-size:14px;line-height:1.55}.profile-id{font-size:14px;color:#795467;border:1px solid #e2c9d6;padding:8px 12px;border-radius:4px;white-space:nowrap}.profile-fields{display:grid;grid-template-columns:1fr 1fr;gap:18px}.profile-fields input{font-size:16px;min-height:46px}.profile-panel .button{margin-top:18px}.profile-panel .check{margin:18px 0}.profile-panel input[readonly]{background:#f2edf0;color:#62545c}.owner-customer-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:24px 0}.owner-customer-stats>div{padding:22px;background:#fbf4f8;border-top:2px solid #cf2e7c}.owner-customer-stats span{display:block;font-size:14px;color:#735c68}.owner-customer-stats strong{display:block;font-size:28px;margin-top:10px;font-weight:500}.legacy-customer-summary{font-size:14px;line-height:1.6;margin:18px 0}.legacy-customer-summary summary{cursor:pointer}.customer-list{margin:24px 0;border-top:1px solid #eadfe5}.customer-list-row{display:grid;grid-template-columns:1.1fr 1.2fr 1fr .8fr;gap:20px;padding:20px 12px;border-bottom:1px solid #eadfe5;color:#302b2f;font-size:15px;align-items:center}@media (hover: hover) and (pointer: fine){.customer-list-row:hover{background:#fcf6f9}}.customer-list-row strong{font-weight:500;font-size:17px}.customer-list-row span{overflow-wrap:anywhere}.customer-list-row small{display:block;color:#74666e;font-size:14px;margin-top:6px}.customer-pagination{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:24px 0;font-size:16px}.customer-pagination a{padding:10px 14px;border:1px solid #e1ced9}.admin-search{flex-wrap:wrap}.admin-search input{min-width:190px}.admin-search select{font-size:16px;max-width:100%}.order-item-line{display:flex;justify-content:space-between;gap:16px;padding:10px 0;border-bottom:1px solid #eee4e9;line-height:1.6}.order-item-line strong{font-weight:500;white-space:nowrap}.order-payment-action{background:#fcf1f7;padding:18px;margin-top:20px}.order-payment-action p{font-size:15px;line-height:1.6}.order-details .tracking{overflow-wrap:anywhere}.order-details .tracking .button{margin-top:8px}.contact-readonly{display:grid;grid-template-columns:1fr 1fr;gap:16px}.contact-readonly dt{font-size:14px;color:#77646e}.contact-readonly dd{margin:5px 0 0;font-size:16px}.order-editor input,.order-editor select{font-size:16px}.profile-access{margin-bottom:30px}
@media(max-width:700px){.profile-panel{padding:20px 16px;margin:24px 0}.profile-panel header{align-items:flex-start;flex-direction:column}.profile-panel h2{font-size:23px}.profile-fields{grid-template-columns:1fr;gap:14px}.owner-customer-stats{grid-template-columns:1fr;gap:10px}.owner-customer-stats>div{padding:16px;display:flex;align-items:center;justify-content:space-between;gap:12px}.owner-customer-stats strong{font-size:23px;margin:0}.customer-list-row{grid-template-columns:1fr;gap:8px;padding:18px 10px}.customer-list-row span:last-child{font-size:14px;color:#b51e68}.customer-pagination{font-size:14px;gap:8px}.customer-pagination a{padding:10px}.order-item-line{flex-direction:column;gap:4px}.order-item-line strong{white-space:normal}.order-editor{margin-top:20px}.order-payment-action{padding:14px}.profile-nav{margin-bottom:24px}.profile-nav a{padding:10px 12px}.contact-readonly{grid-template-columns:1fr}.customer-cabinet .order-row summary{min-width:0}.order-details>div{min-width:0;overflow-wrap:anywhere}}

.order-item-unavailable{flex-direction:column;gap:4px;color:#75636c}.order-item-unavailable span{font-size:16px}.order-item-unavailable small{font-size:14px;line-height:1.5}
/* Cabinet cards and dialogs */
.heading-actions{display:flex;align-items:center;gap:14px}.excel-export{display:inline-flex;align-items:center;justify-content:center;width:62px;height:46px;border:1px solid #dae9df;border-radius:8px;background:#f8fcf9;flex-shrink:0}@media (hover: hover) and (pointer: fine){.excel-export:hover{background:#edf7f0}}.excel-export img{width:54px;height:36px;object-fit:contain}.copy-line{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.copy-line>span{min-width:0;overflow-wrap:anywhere}.copy-icon{width:32px;height:32px;padding:6px;border:0;border-radius:6px;background:transparent;color:#a67a92;display:inline-flex;justify-content:center;align-items:center;flex:0 0 32px;cursor:pointer}@media (hover: hover) and (pointer: fine){.copy-icon:hover{color:#b82069;background:#f9eaf2}}.copy-icon svg{width:19px;height:19px}.input-copy{display:flex;align-items:center;gap:5px}.input-copy input{min-width:0;flex:1}.copy-fallback{position:fixed;left:-9999px}.card-dialog-open{overflow:hidden}.cabinet-dialog{position:fixed;inset:24px 0 auto;margin:0 auto;width:min(1060px,calc(100vw - 48px));max-width:none;height:calc(100dvh - 48px);max-height:calc(100dvh - 48px);border:1px solid #eadde5;border-radius:18px;padding:0;color:#30262d;box-shadow:0 26px 100px #351e3438;overflow:hidden}.cabinet-dialog::backdrop{background:#25172173;backdrop-filter:blur(5px)}.cabinet-dialog[open]{display:flex;flex-direction:column;animation:card-appear .22s ease-out}.dialog-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:58px;border-bottom:1px solid #eee4eb;padding:8px 20px;background:#fff;flex-shrink:0}.dialog-toolbar button{border:0;background:none;cursor:pointer;color:#ab2a66;font-size:16px}.dialog-caption{font-size:12px;letter-spacing:.07em;text-transform:uppercase;color:#886777}.dialog-toolbar .dialog-close{font-size:32px;width:38px;height:38px;border-radius:50%;background:#fcf3f8;line-height:1}.dialog-content{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:28px 32px;scrollbar-gutter:stable}.dialog-content h2{font-size:28px;line-height:1.25;margin:0}.dialog-content h3{font-size:19px;line-height:1.4}.card-loading{padding:30px}.detail-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:4px 0 22px;border-bottom:1px solid #ebdfe7;margin-bottom:24px}.detail-heading>div:last-child{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.detail-heading .eyebrow{font-size:13px;margin:0 0 8px;color:#806a77}.order-meta-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.order-meta-grid section{min-width:0}.order-meta-grid h3{font-size:16px;margin:0 0 10px;color:#8a6c7d}.order-meta-grid p{font-size:16px;margin:8px 0;line-height:1.5;overflow-wrap:anywhere}.payment-date{display:block;font-size:14px;color:#7d6974;min-height:20px;margin-top:5px}.order-row.order-preview{border:1px solid #ede2e8;border-left:5px solid var(--order-color,#cf2e7c);border-radius:10px;margin:12px 0;overflow:hidden;background:#fff}.order-open{display:grid;grid-template-columns:155px minmax(130px,1.2fr) minmax(95px,.7fr) minmax(100px,1fr) 115px 22px;align-items:center;gap:15px;color:#332a30;padding:20px 18px 20px 0;text-decoration:none}@media (hover: hover) and (pointer: fine){.order-open:hover{background:#fdf9fb}}.order-number{padding:18px 14px;margin:-20px 0;background:linear-gradient(90deg,var(--order-tint,#fcf0f6),transparent);font-size:19px;font-weight:500}.order-number small,.order-customer small,.lead-preview small{display:block;font-size:13px;color:#85717c;font-weight:400;margin-top:6px}.order-customer{font-size:16px}.order-preview-total{font-weight:500;font-size:17px;white-space:nowrap}.open-chevron{color:#ae8199}.status-edge-new{--order-color:#d14c58;--order-tint:#fff0f0}.status-edge-confirmed{--order-color:#d04c92;--order-tint:#fff0f7}.status-edge-packing{--order-color:#53a5ce;--order-tint:#eff8fe}.status-edge-shipped,.status-edge-completed{--order-color:#388866;--order-tint:#edf9f2}.status-edge-cancelled{--order-color:#dfb747;--order-tint:#fff8de}.status-edge-returned{--order-color:#dc8842;--order-tint:#fff2e8}.status{font-size:13px;line-height:1.4;display:inline-flex;align-items:center;padding:6px 10px;border-radius:6px;font-weight:500;white-space:normal;width:fit-content}.status-new{color:#a52c39;background:#fff0f0}.status-confirmed{color:#a82d6b;background:#fff0f7}.status-packing{color:#286f95;background:#eaf6fd}.status-shipped,.status-completed{color:#277455;background:#eaf6ef}.status-cancelled{color:#806014;background:#fff4ce}.status-returned{color:#a85b1c;background:#fff0e1}.payment-label{font-size:14px;white-space:nowrap;display:inline-flex;align-items:center;gap:5px}.payment-label.is-paid{color:#27805b}.payment-label.is-unpaid{color:#8a747e}.payment-label svg{height:18px;width:18px;flex-shrink:0}.payment-label svg circle{fill:#e9f7ef;stroke:#4f9d76;stroke-width:1}.payment-label svg path{fill:none;stroke:#27805b;stroke-width:1.8}.order-composition{margin:25px 0}.order-product-line{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:16px 0;border-bottom:1px solid #eee4e9;font-size:16px}.order-product-line>div{min-width:0}.order-product-line a{color:#6c364f;text-decoration:underline;text-underline-offset:3px}.order-product-line small{display:block;font-size:14px;color:#8a7280;margin-top:5px;line-height:1.5}.order-product-line strong{font-weight:500;white-space:nowrap}.delivery-line{background:#fcf8fa;padding:14px 12px}.order-total,.edit-live-total>div{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 0}.order-total strong{font-size:26px;font-weight:500}.order-total small,.edit-live-total small{display:block;font-size:14px;color:#8a7280;margin-top:4px}.order-discount-note{font-size:14px;color:#8c5270}.tracking{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:18px;background:#f4faf6;border:1px solid #dcece1;border-radius:10px;margin:22px 0}.tracking p{margin:5px 0}.tracking small{font-size:13px;color:#5e7d69}.detail-actions{margin:24px 0}.customer-wishes,.owner-note{padding:18px;background:#fcf5f9;border-radius:8px}.customer-wishes h3,.owner-note h3{margin:0 0 8px}.planner-order-note{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:14px 0;font-size:14px;color:#907282}.managed-order-form{border-top:1px solid #eadde5;margin-top:30px;padding-top:22px}.managed-order-form h3{margin:0 0 20px}.editor-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px 22px}.editor-grid>.field{margin:0}.managed-order-form input,.managed-order-form select,.managed-order-form textarea{font-size:16px;min-width:0;width:100%;border:1px solid #e4d6df;border-radius:6px;background:white;min-height:46px;padding:11px 12px}.managed-order-form input[readonly]{background:#f9f5f7;color:#826b77}.managed-order-form .field>span:first-child{font-size:14px;color:#735766;margin-bottom:7px}.managed-order-form textarea{resize:vertical;line-height:1.5}.managed-order-form .check input{min-height:0;width:18px}.internal-field textarea{background:#fffaf3;border-color:#e7d9c2}.internal-field>span:first-child{color:#8e704b}.edit-composition{margin:26px 0;padding:22px;background:#fcf8fa;border:1px solid #ede0e8;border-radius:10px}.lookup-field{position:relative}.lookup-results{max-height:300px;overflow:auto;border:1px solid #e5d6df;background:white;border-radius:8px;box-shadow:0 8px 30px #4d243115;margin-top:6px}.lookup-results[hidden]{display:none}.lookup-results button{display:flex;align-items:center;justify-content:space-between;gap:15px;border:0;border-bottom:1px solid #f0e8ed;background:white;width:100%;padding:13px 14px;text-align:left;font-size:15px;cursor:pointer;color:#503342}.lookup-results button:focus{background:#fcf0f7}@media (hover: hover) and (pointer: fine){.lookup-results button:hover{background:#fcf0f7}}.lookup-results strong{font-weight:500}.lookup-results small{display:block;font-size:13px;color:#89717e;margin-top:5px}.lookup-results button>strong{white-space:nowrap}.lookup-results p{padding:12px;font-size:14px}.edit-product-row{display:grid;grid-template-columns:minmax(0,1fr) 72px 100px 32px;align-items:center;gap:12px;border-bottom:1px solid #eaddE5;padding:15px 0;font-size:15px}.edit-product-row>div>strong{font-weight:500;line-height:1.4}.edit-product-row small{display:block;font-size:13px;color:#927382;margin-top:5px}.edit-product-row>strong{text-align:right;white-space:nowrap;font-weight:500}.edit-product-row input{padding:9px 6px;text-align:center}.edit-product-list{margin:12px 0 24px}.remove-product{border:0;background:none;color:#b7678b;font-size:24px;cursor:pointer;padding:3px}.edit-live-total{margin-top:18px;border-top:1px solid #eadde5}.edit-live-total>div{font-size:14px;padding:9px 0}.edit-live-total .grand-total{font-size:20px}.edit-live-total strong{font-weight:500}.form-save-bar{display:flex;gap:16px;align-items:center;justify-content:flex-end;border-top:1px solid #eadde5;margin-top:24px;padding-top:20px}.form-result{font-size:15px;line-height:1.5}.form-result.error{color:#ad2e46}.lead-preview{border:1px solid #eadee7;border-radius:10px;margin:12px 0}.lead-preview>a{display:grid;grid-template-columns:150px 1.4fr 1fr 1fr 20px;gap:18px;align-items:center;padding:20px;color:#3e3038;font-size:15px}@media (hover: hover) and (pointer: fine){.lead-preview>a:hover{background:#fcf7fa}}.lead-data{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin:24px 0}.lead-data>div{padding-bottom:14px;border-bottom:1px solid #eee5eb}.lead-data dt{font-size:13px;color:#8b7281}.lead-data dd{margin:7px 0 0;font-size:16px;overflow-wrap:anywhere}.lead-card-detail>.copy-line{margin:8px 0}.cabinet-dialog .profile-panel{margin:22px 0;padding:20px}.cabinet-dialog .owner-customer-stats strong{font-size:25px}.cabinet-dialog .customer-pagination{display:none}.order-card-detail .order-item-unavailable{padding:16px 0}.managed-order-form .field small{font-size:13px}.order-card-detail .button{font-size:15px;min-height:44px;padding:12px 18px}.order-card-detail h2{font-size:28px}.order-card-detail h3{font-size:19px}.order-card-detail .owner-note p,.customer-wishes p{white-space:pre-wrap}.order-card-detail .detail-heading{border-left:4px solid var(--order-color,#cf2e7c);padding-left:16px}.order-card-detail .field{margin-bottom:0}.order-card-detail .managed-order-form>.check{margin-top:20px}.copy-icon:focus-visible,.order-open:focus-visible,.dialog-toolbar button:focus-visible{outline:2px solid #cc2d7b;outline-offset:3px}
@keyframes card-appear{from{opacity:0}to{opacity:1}}
@media(min-width:701px) and (max-width:1050px){.order-open{grid-template-columns:130px 1fr 110px 130px;gap:12px}.order-open>.payment-label{grid-column:4}.order-open>.open-chevron{display:none}.order-number{height:100%;display:flex;flex-direction:column;justify-content:center;grid-row:1/3}.order-customer{grid-column:2}.order-preview-total{grid-column:3}.order-open>.status{grid-column:4;grid-row:1}}
@media(max-width:700px){.cabinet-dialog{inset-block-start:12px;width:calc(100vw - 16px);height:calc(100dvh - 24px);max-height:calc(100dvh - 24px);border-radius:13px}.dialog-toolbar{padding:7px 12px;min-height:52px}.dialog-caption{font-size:11px}.dialog-content{padding:20px 16px;scrollbar-gutter:auto}.dialog-content h2,.order-card-detail h2{font-size:24px}.detail-heading{align-items:flex-start;gap:12px}.detail-heading>div:last-child{flex-direction:column;align-items:flex-end;gap:8px}.order-meta-grid,.editor-grid,.lead-data{grid-template-columns:1fr;gap:18px}.order-meta-grid{gap:8px}.order-meta-grid h3{margin-top:10px}.order-row.order-preview{margin:10px 0}.order-open{grid-template-columns:110px minmax(0,1fr);gap:10px 14px;padding:16px 14px 16px 0}.order-number{grid-row:1/4;padding:14px 10px;height:calc(100% + 32px);margin:-16px 0;font-size:17px;display:flex;flex-direction:column;justify-content:center}.order-customer{font-size:15px;min-width:0;overflow-wrap:anywhere}.order-open>.status{grid-column:2}.order-open>.payment-label{grid-column:2;font-size:13px}.order-preview-total{grid-column:2;grid-row:3;font-size:17px;padding-top:5px}.order-open>.payment-label{grid-row:4}.order-open>.open-chevron{display:none}.order-number{grid-row:1/5}.order-number small{font-size:12px}.heading-actions{gap:8px}.heading-actions .button{font-size:13px;padding:11px 12px}.section-heading:has(.heading-actions){align-items:center;flex-wrap:wrap;gap:12px}.order-product-line{font-size:15px;padding:13px 0;gap:10px}.order-product-line small{font-size:13px}.order-total strong{font-size:24px}.tracking{align-items:flex-start;flex-direction:column;padding:15px}.edit-composition{padding:15px 12px;margin:22px -4px}.edit-product-row{grid-template-columns:minmax(0,1fr) 58px 26px;gap:8px}.edit-product-row>strong{grid-column:1;grid-row:auto;text-align:left;color:#8f4b6d;font-size:14px}.edit-product-row .remove-product{grid-column:3;grid-row:1}.edit-product-row label{grid-column:2;grid-row:1/3}.edit-product-row input{font-size:16px}.edit-product-row>div{grid-column:1;grid-row:1}.form-save-bar{flex-direction:column;align-items:stretch}.form-save-bar .button{width:100%}.lead-preview>a{grid-template-columns:1fr 1fr;gap:12px;padding:16px}.lead-preview>a>span:last-child{display:none}.lead-preview>a>strong{font-size:16px}.lead-preview>a>span:nth-child(3){font-size:13px}.lead-data{gap:10px}.planner-order-note{align-items:flex-start;flex-direction:column}.copy-icon{width:34px;height:34px;flex-basis:34px}.cabinet-dialog .owner-customer-stats>div{padding:13px}.cabinet-dialog .owner-customer-stats strong{font-size:22px}.cabinet-dialog .profile-panel{padding:16px 12px}.order-meta-grid p{font-size:15px}.detail-heading .eyebrow{font-size:12px}.order-card-detail .status{font-size:12px;max-width:130px}.order-card-detail .payment-label{font-size:12px}.order-card-detail .order-total{padding-top:15px}}
@media(prefers-reduced-motion:reduce){.cabinet-dialog[open]{animation:none}}
.status-edge-new{--order-color:#b73546}.status-edge-confirmed{--order-color:#b62c78}.status-edge-packing{--order-color:#287fa9}.status-edge-shipped,.status-edge-completed{--order-color:#27805b}.status-edge-cancelled{--order-color:#97741d}.status-edge-returned{--order-color:#b56526}.status-new{color:#b73546}.status-confirmed{color:#b62c78}.status-packing{color:#287fa9}.status-shipped,.status-completed{color:#27805b}.status-cancelled{color:#97741d}.status-returned{color:#b56526}
.order-preview[data-preview-url]{cursor:pointer}.order-number{color:#442b37;text-decoration:none}.order-customer>.copy-line{gap:4px;flex-wrap:nowrap}.order-customer a{color:#503044;text-decoration:none}@media (hover: hover) and (pointer: fine){.order-customer a:hover{text-decoration:underline}}.order-customer small.copy-line{display:flex;gap:4px;margin-top:0}.order-customer .copy-icon{width:27px;height:27px;flex-basis:27px;padding:5px}.order-customer .copy-icon svg{width:16px;height:16px}
.lead-preview-layout{display:grid;grid-template-columns:150px 1.4fr 1fr 1fr 20px;gap:18px;align-items:center;padding:20px;font-size:15px;color:#3e3038}.lead-preview-layout>a{color:#503044}.lead-preview-layout strong{font-weight:500}.lead-preview-layout small.copy-line{display:flex;margin:0}.lead-preview[data-preview-url]{cursor:pointer}@media (hover: hover) and (pointer: fine){.lead-preview:hover{background:#fcf7fa}}.customer-list-row .copy-line{gap:4px;flex-wrap:nowrap}.customer-list-row .copy-icon,.lead-preview-layout .copy-icon{width:27px;height:27px;flex-basis:27px;padding:5px}.customer-list-row a{color:#573649}.customer-list-row>.copy-line a{overflow-wrap:anywhere}.customer-list-row>span{min-width:0}
@media(max-width:700px){.lead-preview-layout{grid-template-columns:100px minmax(0,1fr);gap:10px;padding:16px}.lead-preview-layout>span:nth-child(3){font-size:13px}.lead-preview-layout>span:last-child{display:none}.lead-preview-layout>span:nth-child(2){font-size:14px}.customer-list-row .copy-line{flex-wrap:wrap}}
/* Compact forms, shared by customer and owner cabinets. */
.admin .field,.customer-cabinet .field,.cabinet-dialog .field{gap:6px;font-size:14px;margin-bottom:12px}.admin .field input,.admin .field select,.admin .field textarea,.customer-cabinet .field input,.customer-cabinet .field select,.customer-cabinet .field textarea,.cabinet-dialog .field input,.cabinet-dialog .field select,.cabinet-dialog .field textarea{min-height:42px;padding:9px 12px;font-size:16px;line-height:1.4;border-radius:6px}.profile-panel{padding:20px 22px;margin:22px 0}.profile-panel h2{font-size:24px}.profile-panel>.muted{margin:10px 0 14px}.profile-panel h3{font-size:19px;margin:18px 0 10px}.profile-fields{gap:12px 20px;align-items:start}.profile-fields>.field,.editor-grid>.field{margin:0}.profile-panel form>.field{margin-top:12px;margin-bottom:0}.profile-panel small{font-size:13px;line-height:1.4}.profile-panel .button{min-height:42px;padding:10px 16px;margin-top:16px}.profile-panel .check{margin:14px 0}.editor-grid{gap:12px 18px;align-items:start}.managed-order-form{margin-top:22px;padding-top:18px}.managed-order-form h3{margin-bottom:14px}.managed-order-form .field>span:first-child{margin-bottom:0;font-size:14px;line-height:1.35}.managed-order-form .field{gap:6px}.managed-order-form input,.managed-order-form select,.managed-order-form textarea{min-height:42px;padding:9px 12px;line-height:1.4}.managed-order-form textarea{min-height:84px}.edit-composition{padding:18px;margin:20px 0}.edit-product-list{margin:10px 0 18px}.edit-product-row{padding:11px 0}.form-save-bar{margin-top:18px;padding-top:16px}.order-product-line{line-height:1.5}.order-product-line small{line-height:1.5;margin-top:7px}.delivery-line{padding:13px 14px;align-items:center;line-height:1.5}.delivery-line small{display:block;margin-top:8px;line-height:1.5;font-size:14px}.order-meta-grid{gap:18px}.order-meta-grid p{margin:6px 0}.order-composition{margin:20px 0}.order-composition h3{margin:0 0 10px}.detail-heading{padding-bottom:18px;margin-bottom:18px}.cabinet-dialog .profile-panel{margin:18px 0;padding:18px}.modal-save-form .field{margin-bottom:12px}.lead-data{margin:18px 0;gap:12px}.owner-customer-stats{margin:18px 0;gap:12px}.owner-customer-stats>div{padding:16px}.owner-customer-stats strong{margin-top:7px}
@media(min-width:1000px){.managed-order-form>.editor-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.managed-order-form>.editor-grid:has(textarea){grid-template-columns:1fr 1fr}.managed-order-form .editor-grid:has(input[name="address"]){grid-template-columns:repeat(3,minmax(0,1fr))}.managed-order-form label:has(input[name="address"]){grid-column:1/-1}}
@media(max-width:700px){.profile-panel{padding:16px 14px;margin:18px 0}.profile-panel h2{font-size:22px}.profile-panel h3{margin:16px 0 10px}.profile-fields,.editor-grid{gap:12px}.profile-panel>.muted{margin:8px 0 12px}.managed-order-form .field>span:first-child{font-size:13px}.managed-order-form h3{margin-bottom:12px}.edit-composition{padding:14px 12px;margin:18px -4px}.profile-panel .field{margin:0}.profile-panel form>.field{margin-top:12px}.profile-panel input,.profile-panel select{height:42px}.dialog-content{padding:18px 16px}.detail-heading{margin-bottom:16px;padding-bottom:16px}.order-meta-grid{gap:8px}.order-meta-grid h3{margin:4px 0 8px}.order-meta-grid p{margin:4px 0}.order-product-line{padding:12px 0}.delivery-line{padding:12px}.delivery-line small{margin-top:7px}.order-composition{margin:18px 0}.order-product-line small{font-size:13px}.delivery-line small{font-size:14px}.cabinet-dialog .profile-panel{padding:14px 12px}}
.order-open{grid-template-columns:145px minmax(145px,1.2fr) minmax(95px,.7fr) minmax(100px,.9fr) 105px 135px;gap:12px}.order-edit-link{font-size:13px;line-height:1.35;color:#a52f68;border:1px solid #e9ccdc;border-radius:6px;padding:9px 10px;text-align:center;background:#fff;cursor:pointer}@media (hover: hover) and (pointer: fine){.order-edit-link:hover{background:#fcf0f7;border-color:#cf83aa}}.edit-only-card>.managed-order-form{border-top:0;margin-top:0;padding-top:0}.edit-only-card>.detail-heading>a{font-size:14px;color:#a52f68;white-space:nowrap}.order-card-detail>.owner-note{margin-top:18px;background:#fffaf3;border:1px solid #eee1cb}.detail-actions{margin:18px 0 4px}
@media(min-width:701px) and (max-width:1100px){.order-open{grid-template-columns:130px minmax(140px,1fr) 105px 145px}.order-open>.order-edit-link{grid-column:3/5;grid-row:2;justify-self:end;font-size:12px;padding:7px 10px}.order-open>.payment-label{grid-column:2;grid-row:2}.order-customer{grid-column:2;grid-row:1}.order-preview-total{grid-column:3;grid-row:1}.order-open>.status{grid-column:4;grid-row:1}.order-number{grid-row:1/3}}
@media(max-width:700px){.order-open{grid-template-columns:106px minmax(0,1fr);gap:7px 12px;padding:14px 12px 14px 0}.order-number{grid-row:1/6;height:calc(100% + 28px);margin:-14px 0;padding:12px 10px}.order-customer{grid-column:2;grid-row:1}.order-preview-total{grid-column:2;grid-row:3;padding-top:2px}.order-open>.status{grid-column:2;grid-row:2}.order-open>.payment-label{grid-column:2;grid-row:4}.order-edit-link{grid-column:2;grid-row:5;font-size:12px;padding:7px 10px;justify-self:start}.edit-only-card>.detail-heading{align-items:flex-start;flex-direction:column;gap:8px}.edit-only-card .detail-heading h2{font-size:22px}.edit-only-card>.detail-heading>a{font-size:13px}}
/* Product rows keep quantity and amount beside the title at every width. */
.order-item-photo{display:block;width:80px;height:104px;object-fit:contain;background:#fbf8fa;border-radius:5px;flex-shrink:0}.order-product-line.item-table-line{display:grid;grid-template-columns:80px minmax(0,1fr) 45px 95px;gap:12px;align-items:center}.item-table-line>div>a,.edit-item-title>a,.edit-item-title>strong{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;line-height:1.4;color:#5a3547;font-size:15px;font-weight:400;overflow-wrap:anywhere}.item-table-line>strong{font-size:15px;text-align:right}.item-table-qty{text-align:center;font-size:15px;color:#493c44}.order-product-line .item-table-qty small{font-size:12px;margin-top:0}.edit-product-row{grid-template-columns:64px minmax(0,1fr) 64px 96px 28px;gap:10px}.edit-product-row>img{width:64px;height:84px;grid-column:1;grid-row:1}.edit-product-row>.edit-item-title{grid-column:2;grid-row:1}.edit-product-row>label{grid-column:3;grid-row:1}.edit-product-row>strong{grid-column:4;grid-row:1;text-align:right;font-size:15px}.edit-product-row>.remove-product{grid-column:5;grid-row:1}.edit-product-row .edit-item-title small{font-size:12px;margin-top:5px}.discount-control{display:grid;grid-template-columns:minmax(0,1fr) 70px;gap:5px}.discount-control select{padding:9px 25px 9px 10px!important;background-position:right 4px center}.quick-order-form{margin:20px 0 0;padding:18px 0 0;border-top:1px solid #ebdfe7}.quick-status-grid,.quick-tracking-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}.quick-status-grid>.field:first-child{grid-column:1/-1}.quick-tracking-grid{margin-top:12px}.quick-order-form .field{margin:0;min-width:0}.quick-order-form .field>span{line-height:20px;margin:0}.quick-order-form .field input,.quick-order-form .field select{height:42px;min-height:42px;box-sizing:border-box;width:100%}.quick-save-row{display:flex;justify-content:flex-end;margin-top:12px}.quick-save-row .button{height:42px;min-height:42px;padding:9px 20px;margin:0;font-size:15px;line-height:22px;box-sizing:border-box}.owner-note-form{border-top:1px solid #ebdfe7;padding-top:18px;margin-top:10px}.owner-note-form>.field>span{font-size:14px;color:#846071}.owner-note-form textarea{min-height:72px;max-height:180px;background:#fffdf9;border:1px solid #e6dccd;padding:10px 12px;font-size:15px;line-height:1.4;border-radius:6px}.owner-note-form>.button{padding:9px 14px;min-height:38px;font-size:14px}.edit-only-card .managed-order-form>.editor-grid:last-of-type{grid-template-columns:1fr}.item-table-line>div>small{font-size:12px}
@media(max-width:700px){.order-item-photo{width:56px;height:76px}.order-product-line.item-table-line{grid-template-columns:56px minmax(0,1fr) 28px 70px;gap:7px}.item-table-line>div>a,.edit-item-title>a,.edit-item-title>strong{font-size:13px;line-height:1.4}.item-table-line>strong,.item-table-qty{font-size:13px}.item-table-line>div>small{font-size:11px;margin-top:4px}.order-product-line .item-table-qty small{font-size:11px}.edit-product-row{grid-template-columns:40px minmax(0,1fr) 42px 66px 20px;gap:6px;padding:11px 0}.edit-product-row .order-item-photo{width:40px;height:56px}.edit-product-row>.edit-item-title{grid-column:2;grid-row:1}.edit-product-row>label{grid-column:3;grid-row:1}.edit-product-row>strong{grid-column:4;grid-row:1;font-size:12px}.edit-product-row>.remove-product{grid-column:5;grid-row:1;font-size:22px}.edit-product-row .edit-item-title small{font-size:11px;line-height:1.3;margin-top:4px}.edit-product-row input{padding:8px 3px;min-height:40px}.quick-status-grid,.quick-tracking-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.quick-tracking-grid{margin-top:10px}.quick-save-row{margin-top:10px}.owner-note-form{padding-top:16px}.edit-only-card .edit-composition{padding:12px 8px}.discount-control{grid-template-columns:minmax(0,1fr) 65px}}

.customer-pay-form{margin:0}.customer-pay-button{white-space:nowrap;min-height:42px;padding:10px 18px;font-size:15px;background:var(--rose);color:#fff}.order-payment-action .customer-pay-form{display:inline-block}.customer-cabinet .input-copy:has(>input:only-child){display:block}

.delete-order-form{margin-top:24px;padding-top:18px;border-top:1px solid var(--line)}.delete-order-form summary{list-style:none;cursor:pointer;display:inline-flex;width:auto}.delete-order-form summary::-webkit-details-marker{display:none}.delete-order-button{color:#ae314c;border-color:#e9bcc6}.delete-order-confirm{max-width:580px;padding-top:12px}.delete-order-confirm p{font-size:14px;line-height:1.5;color:var(--muted);margin-bottom:12px}
/* Compact mobile preview: identity, status and payment stay together. */
@media(max-width:700px){.order-preview .order-open{grid-template-columns:106px minmax(0,1fr);grid-template-rows:auto auto auto;align-items:start;gap:6px 12px;padding:12px;background:linear-gradient(90deg,var(--order-tint,#fcf0f6),#fff 145px)}.order-preview .order-number{grid-column:1;grid-row:1;height:auto;margin:0;padding:0;background:none;justify-content:flex-start;font-size:17px;line-height:1.3}.order-preview .order-number small{margin-top:4px;font-size:12px;line-height:1.35}.order-preview .order-customer{grid-column:2;grid-row:1;font-size:14px;line-height:1.35}.order-preview .order-customer small{font-size:12px;line-height:1.35}.order-preview .order-open>.status{grid-column:1;grid-row:2;align-self:center;padding:3px 6px;margin:0;font-size:12px;line-height:1.35}.order-preview .order-open>.payment-label{grid-column:1;grid-row:3;align-self:center;font-size:12px;gap:4px;line-height:1.35}.order-preview .payment-label svg{width:15px;height:15px}.order-preview .order-preview-total{grid-column:2;grid-row:2;padding:0;font-size:17px;line-height:1.4;align-self:center}.order-preview .order-edit-link{grid-column:2;grid-row:3;margin:0;font-size:12px;line-height:1.3;padding:6px 9px;align-self:center;justify-self:start}.order-preview .customer-pay-form{grid-column:1;grid-row:3}.order-preview .customer-pay-button{min-height:38px;padding:8px 10px;font-size:13px;width:100%}.order-preview .open-chevron{display:none}}
@media(max-width:700px){.edit-only-card>.delete-order-form{display:block;position:static;clear:both;margin:28px 0 0!important;padding:20px 0 0!important;border-top:1px solid #e4d4dd}.edit-only-card>.delete-order-form summary.button{display:flex;justify-content:center;width:100%;min-height:46px;margin:0}.edit-only-card>.managed-order-form .form-save-bar{margin-bottom:0}.edit-only-card>.delete-order-form .delete-order-confirm{padding-top:14px}}
.lead-statistics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:0 0 22px}.lead-statistics>a{padding:16px 20px;border:1px solid #eadfe6;background:linear-gradient(125deg,#fdf5fa,#fff);border-radius:10px;display:flex;align-items:center;justify-content:space-between;gap:16px}.lead-statistics span{font-size:15px;color:#7f6473}.lead-statistics strong{font-size:28px;font-weight:500;white-space:nowrap}.lead-statistics>a:nth-child(2){background:linear-gradient(125deg,#f3faf6,#fff)}.lead-statistics>a:nth-child(3){background:linear-gradient(125deg,#fff8ed,#fff)}.lead-status-new{color:#a82d6b;background:#fff0f7}.lead-status-completed{color:#277455;background:#eaf6ef}.lead-status-cancelled{color:#806014;background:#fff4ce}.lead-search .check{margin:0;white-space:nowrap;align-self:center;font-size:14px}.lead-list-count{font-size:14px;color:var(--muted);margin:0 0 12px}.lead-preview-layout .lead-duplicate-label{display:block;margin-top:5px;font-size:13px;color:#a62f6e;text-decoration:underline;text-underline-offset:3px}.lead-duplicates{padding:16px 18px;margin:20px 0;border:1px solid #edcfdf;border-radius:10px;background:#fff8fc}.lead-duplicates h3{margin:0 0 10px;font-size:18px}.lead-duplicates ul{list-style:none;padding:0;margin:0;max-height:300px;overflow:auto}.lead-duplicates li{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 0;border-top:1px solid #f0e2ea;font-size:15px}.lead-duplicates li small{display:block;font-size:12px;color:var(--muted);margin-top:3px}.lead-duplicates li>a{color:#a62f6e;text-decoration:underline;white-space:nowrap}.lead-archive-note{color:var(--muted);font-size:13px;line-height:1.5;margin:16px 0}.lead-card-detail>.modal-save-form{margin-top:20px;padding-top:18px;border-top:1px solid var(--line)}
@media(max-width:700px){.lead-statistics{grid-template-columns:1fr 1fr;gap:8px;margin-bottom:16px}.lead-statistics>a{display:block;padding:12px}.lead-statistics>a:first-child{grid-column:1/-1;display:flex;padding:8px 12px}.lead-statistics span{font-size:14px;overflow-wrap:anywhere}.lead-statistics strong{display:block;font-size:24px}.lead-statistics>a:first-child strong{font-size:23px}.lead-search .check{justify-self:start;padding:5px 0}.lead-duplicates{padding:12px}.lead-duplicates li{font-size:14px;gap:12px}.lead-duplicates li>a{font-size:14px}.lead-preview-layout .lead-duplicate-label{font-size:12px}.lead-archive-note{font-size:13px}}

/* Dialog headings receive programmatic focus for screen readers. */
.cabinet-dialog .dialog-content h2[tabindex="-1"]:focus{outline:none}

@media(max-width:600px){.customer-cabinet .profile-nav{display:flex;gap:8px;align-items:stretch;margin:24px 0 28px}.customer-cabinet .profile-nav a{display:flex;flex:1;min-width:0;align-items:center;justify-content:center;min-height:48px;padding:10px 6px;font-size:16px;line-height:1.25;text-align:center;white-space:nowrap;border-radius:6px}}

.profile-nav a[aria-current="page"]{color:var(--rose);border-color:#e3a6c5;background:#fff4fa;font-weight:600}

/* White photo paper blends with the order preview; the border stays discreet. */
.order-item-photo{background:#fff;border:1px solid #eee8ec}

.order-card-detail .detail-actions{display:flex;justify-content:flex-end;align-items:center;gap:12px;flex-wrap:wrap}
.order-card-detail [data-repeat-order]{margin-left:auto}

/* Registration outcomes use the same left-edge treatment as order previews. */
.lead-edge-new{--lead-color:#c39724;--lead-tint:#fff8d9}.lead-edge-completed{--lead-color:#27805b;--lead-tint:#edf9f2}.lead-edge-cancelled{--lead-color:#c02f78;--lead-tint:#fff0f7}
.lead-preview[class*="lead-edge-"]{border-left:4px solid var(--lead-color,#c39724);overflow:hidden;background:linear-gradient(100deg,var(--lead-tint,#fff8d9),#fff 75%)}
.lead-preview-layout{grid-template-columns:130px minmax(0,1.4fr) minmax(0,1fr) minmax(110px,.8fr);gap:12px}.lead-preview-layout>span{min-width:0}.lead-preview-layout>span:last-child{display:inline-flex}.lead-preview-layout>.lead-order-confirmed{grid-column:2/-1;color:#277455;background:#eaf6ef;border:1px solid #cee8d9;border-radius:5px;font-size:13px;padding:4px 8px;width:fit-content}
.lead-card-detail>.detail-heading{border-left:4px solid var(--lead-color);padding-left:14px;background:linear-gradient(100deg,var(--lead-tint),#fff 80%);padding-top:12px;padding-right:12px}
.lead-status-new{background:#fff3bd;color:#795b0b}.lead-status-completed{background:#eaf6ef;color:#226348}.lead-status-cancelled{background:#ffe5f1;color:#9d245e}
.lead-filters{margin:20px 0 24px}.lead-filters>summary{display:flex;align-items:center;justify-content:space-between;width:fit-content;min-height:44px;padding:10px 16px;border:1px solid #e7d5e0;border-radius:7px;list-style:none;cursor:pointer;color:#a92b69;background:#fff9fc}.lead-filters>summary::-webkit-details-marker{display:none}.lead-filters>.lead-search-wrap{margin-top:16px}.lead-filters>.lead-search-wrap{display:block}.modal-save-form[aria-busy=true]{cursor:progress}.modal-save-form .button:disabled{opacity:.7}
@media(max-width:700px){.lead-preview-layout{grid-template-columns:minmax(78px,.65fr) minmax(0,1.35fr);padding:14px 12px;gap:8px 12px;align-items:start}.lead-preview-layout>a{grid-column:1;grid-row:1}.lead-preview-layout>span:nth-child(2){grid-column:2;grid-row:1;line-height:1.4;font-size:15px}.lead-preview-layout>.lead-type{grid-column:2;grid-row:2;font-size:13px}.lead-preview-layout>.status{grid-column:1;grid-row:2;padding:4px 7px;font-size:12px}.lead-preview-layout>.lead-order-confirmed{grid-column:1/-1;font-size:12px}.lead-preview-layout .copy-line{gap:4px}.lead-preview-layout small.copy-line{font-size:13px;overflow-wrap:anywhere}.lead-filters>summary{display:flex;align-items:center;justify-content:space-between;min-height:46px;padding:11px 15px;border:1px solid #e7d5e0;border-radius:7px;color:#a92b69;list-style:none;cursor:pointer;background:#fff9fc;font-size:16px}.lead-filters>summary::-webkit-details-marker{display:none}.lead-filters>summary::after{content:'+';font-size:23px}.lead-filters[open]>summary::after{content:'−'}.lead-filters>.lead-search-wrap{display:none;margin-top:16px}.lead-filters[open]>.lead-search-wrap{display:block}}

.mobile-order-edit{display:none!important}.customer-history-note{font-size:14px;color:#7c6976;line-height:1.6}.customer-order-copy{padding:20px 16px;margin:12px 0;border:1px solid #eadfe5;border-left:4px solid #c6a6b8;border-radius:8px;display:flex;align-items:center;justify-content:space-between;gap:18px}.customer-order-copy h3{margin:0 0 5px;font-size:18px}.customer-order-copy small{font-size:13px;color:#82717b}.customer-copy-result{display:grid;gap:7px;text-align:right}.customer-copy-result span{font-size:14px}.customer-copy-result strong{font-size:20px;font-weight:500}
@media(max-width:700px){.customer-card-detail{min-width:0}.customer-card-detail .profile-panel{padding:16px 12px}.customer-card-detail .profile-panel .check{display:flex;align-items:center;gap:10px;font-size:16px;line-height:1.45;margin:18px 0}.customer-card-detail .profile-panel .check input{width:20px;height:20px;min-height:20px;flex:0 0 20px;margin:0;padding:0;align-self:center}.customer-card-detail .profile-panel .check span{min-width:0;overflow-wrap:anywhere}.customer-card-detail .profile-panel .button{width:100%;max-width:none;min-height:46px;font-size:16px;padding:12px 10px;margin-top:4px}.customer-card-detail .profile-access .text-button{display:block;font-size:15px;line-height:1.5;text-align:left;white-space:normal;padding:8px 0;min-height:44px;max-width:100%;overflow-wrap:anywhere}.customer-card-detail .profile-access .muted{font-size:14px;line-height:1.5;margin:8px 0}.customer-card-detail>.copy-line{font-size:23px}.customer-card-detail .owner-customer-stats span{font-size:14px;line-height:1.4}.customer-card-detail .owner-customer-stats strong{flex:none}.customer-order-copy{display:grid;gap:12px;padding:16px 12px}.customer-copy-result{display:flex;justify-content:space-between;align-items:center;text-align:left;gap:12px}.customer-copy-result span{font-size:13px}.customer-copy-result strong{white-space:nowrap}.order-card-detail .detail-heading .mobile-order-edit{display:inline-flex!important;font-size:14px;padding:9px 12px;min-height:42px}.order-card-detail>.detail-heading>div:last-child{gap:10px}}
