.internal-body { background: #f0ebe2; min-height: 100vh; }
.internal-shell { max-width: 1180px; margin: 0 auto; min-height: 100vh; background: var(--cream); box-shadow: 0 0 70px rgba(12,28,60,.08); }
.internal-main { padding: 56px clamp(18px, 5vw, 70px) 90px; }
.internal-hero { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 32px; }
.internal-hero h1 { color: var(--navy-dark); font-size: clamp(44px, 7vw, 76px); }
.internal-hero p:not(.eyebrow) { max-width: 520px; color: var(--muted); line-height: 1.55; }
.panel { background: white; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 38px rgba(20,47,110,.06); }
.lookup-panel { padding: 28px; }
.lookup-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; }
.lookup-help { margin: 15px 0 0; color: var(--muted); font-size: 12px; }
.error-banner { margin: 0 0 22px; padding: 14px 17px; border-radius: 7px; color: #8e1727; background: #ffeaed; border: 1px solid #f4c7ce; font-size: 13px; font-weight: 700; }
.order-view[hidden], .login-view[hidden], .admin-view[hidden] { display: none; }
.order-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 28px; border-bottom: 1px solid var(--line); }
.order-header h2 { color: var(--navy-dark); font-size: 34px; }
.order-meta { color: var(--muted); font-size: 12px; margin-top: 7px; }
.status-badge { display: inline-flex; align-items: center; min-height: 34px; padding: 0 13px; border-radius: 999px; background: #e8eefb; color: var(--navy); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.status-badge.cancelado { background: #ffeaed; color: var(--red); }
.status-badge.entregue { background: #e5f5eb; color: var(--green); }
.order-grid { display: grid; grid-template-columns: 1.1fr .9fr; }
.order-column { padding: 28px; }
.order-column + .order-column { border-left: 1px solid var(--line); }
.mini-title { margin: 0 0 16px; color: var(--red); text-transform: uppercase; letter-spacing: .12em; font-size: 11px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; min-height: 74px; padding: 0 0 22px 42px; color: var(--muted); }
.timeline li::before { content: ""; position: absolute; left: 8px; top: 9px; bottom: -8px; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline-dot { position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #c9c3ba; background: white; }
.timeline li.done .timeline-dot, .timeline li.current .timeline-dot { border-color: var(--navy); background: var(--navy); box-shadow: 0 0 0 5px rgba(20,47,110,.09); }
.timeline li.current .timeline-dot { border-color: var(--red); background: var(--red); box-shadow: 0 0 0 5px rgba(217,30,54,.1); }
.timeline li.done::before { background: var(--navy); }
.timeline li { animation: timeline-enter .42s ease both; }
.timeline li:nth-child(2) { animation-delay: .05s; }
.timeline li:nth-child(3) { animation-delay: .1s; }
.timeline li:nth-child(4) { animation-delay: .15s; }
.timeline li:nth-child(5) { animation-delay: .2s; }
.timeline li:nth-child(6) { animation-delay: .25s; }
.timeline li.current .timeline-dot::after { content: ""; position: absolute; inset: -7px; border: 2px solid rgba(217,30,54,.28); border-radius: 50%; animation: tracking-pulse 1.8s ease-out infinite; }
#status-badge:not(.entregue):not(.cancelado) { animation: badge-breathe 2.2s ease-in-out infinite; }
.timeline strong, .timeline small { display: block; }
.timeline strong { color: var(--ink); font-size: 14px; }
.timeline small { margin-top: 4px; font-size: 11px; }
.order-items { list-style: none; padding: 0; margin: 0; }
.order-items li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.order-items li:last-child { border: 0; }
.order-items .qty { color: var(--red); font-weight: 800; }
.order-items small { display: block; color: var(--muted); margin-top: 4px; }
.order-breakdown { display: grid; gap: 9px; padding-top: 18px; margin-top: 8px; border-top: 1px solid var(--line); }
.order-breakdown > span { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
.order-breakdown b { color: var(--navy-dark); }
.order-breakdown .order-total { padding-top: 11px; border-top: 2px solid var(--navy); color: var(--navy-dark); }
.order-breakdown .order-total b { font: 700 24px "Oswald"; }
.fee-pending { padding: 10px 12px; margin: 12px 0 0; border-radius: 6px; background: #fff1d5; color: #795313; font-size: 11px; }
.address-card { padding: 18px; margin-top: 24px; background: var(--cream); border-radius: 8px; font-size: 13px; line-height: 1.55; }
.address-card strong { display: block; color: var(--navy-dark); margin-bottom: 4px; }
.map-card { margin-top: 22px; overflow: hidden; }
.map-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; }
.map-head h3 { margin: 0; color: var(--navy-dark); font: 700 22px "Oswald"; text-transform: uppercase; }
.map-head p { max-width: 520px; margin: 3px 0 0; color: var(--muted); font-size: 11px; line-height: 1.4; }
.map-head small { max-width: 220px; color: var(--muted); font-size: 10px; line-height: 1.35; text-align: right; overflow-wrap: anywhere; }
#delivery-map { height: 360px; background: #e8e4dc; }
.map-placeholder { min-height: 240px; display: grid; place-items: center; text-align: center; padding: 30px; color: var(--muted); background: linear-gradient(135deg, #f5efe4, #ebe4d8); }
.map-placeholder span { display: block; margin-bottom: 10px; font-size: 34px; }
.tracking-marker-shell { border: 0; background: transparent; }
.tracking-marker { width: 46px; height: 46px; display: grid; place-items: center; border: 3px solid white; border-radius: 50% 50% 50% 8px; background: var(--navy); box-shadow: 0 7px 18px rgba(14,36,84,.3); transform: rotate(-45deg); }
.tracking-marker svg { width: 31px; height: 31px; fill: var(--red); transform: rotate(45deg); }
.tracking-marker .marker-light { fill: none; stroke: #fff4df; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.courier-marker { border-radius: 50%; background: var(--red); transform: none; animation: courier-breathe 1.7s ease-in-out infinite; }
.courier-marker svg { width: 38px; height: 29px; fill: var(--navy-dark); transform: none; }
.courier-marker .marker-light { stroke-width: 3.5; }
.courier-marker .marker-head { fill: #fff4df; }
@keyframes courier-breathe { 50% { box-shadow: 0 7px 18px rgba(14,36,84,.3), 0 0 0 8px rgba(217,30,54,.15); } }
.outside-notice { margin: 0 28px 24px; padding: 13px 15px; border-radius: 7px; background: #fff1d5; color: #795313; font-size: 12px; }
.cancellation-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; margin: 20px 28px 0; padding: 15px 17px; border: 1px solid #dfd7ca; border-radius: 9px; background: #fbf8f2; }
.cancellation-card[hidden] { display: none; }
.cancellation-card > div:first-child, .cancellation-admin-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--navy); background: #e8eefb; font-weight: 900; }
.cancellation-card strong, .cancellation-card p { display: block; margin: 0; }
.cancellation-card strong { color: var(--navy-dark); font-size: 13px; }
.cancellation-card p { margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.cancellation-card .button { min-height: 40px; padding-inline: 15px; font-size: 11px; }
.cancellation-card.cancellation-pending { border-color: #efd28e; background: #fff7e5; }
.cancellation-card.cancellation-pending > div:first-child { color: #795313; background: #ffe8b4; animation: badge-breathe 1.7s ease-in-out infinite; }
.cancellation-card.cancellation-accepted { border-color: #b9dfc8; background: #edf7f1; }
.cancellation-card.cancellation-accepted > div:first-child { color: white; background: var(--green); }
.cancellation-card.cancellation-rejected { border-color: #f0c3ca; background: #fff1f3; }
.cancellation-card.cancellation-rejected > div:first-child { color: white; background: var(--red); }

.cancellation-modal-card { width: min(520px, 100%); overflow: hidden; }
.modal:not([hidden]) .cancellation-modal-card { animation: decision-in .22s ease-out both; }
.decision-modal-head { display: flex; align-items: center; gap: 15px; padding: 24px 26px; border-bottom: 1px solid var(--line); background: white; }
.decision-modal-head h2 { margin: 2px 0 0; color: var(--navy-dark); font-size: 31px; }
.decision-modal-head .eyebrow { margin: 0; }
.decision-modal-icon { width: 46px; height: 46px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--red); font-size: 24px; font-weight: 900; }
.decision-modal-body { padding: 24px 26px; }
.decision-modal-body > p:first-child { margin: 0 0 18px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.decision-modal-body textarea { min-height: 105px; }
.decision-error { margin: 12px 0 0; padding: 10px 12px; border-radius: 7px; color: #8e1727; background: #ffeaed; font-size: 11px; font-weight: 800; }
.decision-modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 17px 26px max(20px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: white; }

.cancellation-admin-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; margin: 0 20px 18px; padding: 16px; border: 1px solid #efd28e; border-radius: 9px; background: #fff7e5; }
.cancellation-admin-card b, .cancellation-admin-card span, .cancellation-admin-card small { display: block; }
.cancellation-admin-card b { color: var(--navy-dark); font-size: 13px; }
.cancellation-admin-card span, .cancellation-admin-card small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.cancellation-admin-card p { margin-top: 8px; color: var(--ink); font-size: 12px; }
.cancellation-admin-card.cancellation-accepted { border-color: #b9dfc8; background: #edf7f1; }
.cancellation-admin-card.cancellation-rejected { border-color: #dfd7ca; background: #f7f4ef; }
.cancellation-admin-actions { display: flex; gap: 8px; }
.cancellation-admin-actions button { min-height: 42px; padding: 0 14px; border: 0; border-radius: 7px; color: white; font-size: 11px; font-weight: 800; cursor: pointer; }

@keyframes tracking-pulse { 0% { transform: scale(.7); opacity: .8; } 75%, 100% { transform: scale(1.65); opacity: 0; } }
@keyframes badge-breathe { 0%, 100% { box-shadow: 0 0 0 0 rgba(217,30,54,0); } 50% { box-shadow: 0 0 0 6px rgba(217,30,54,.08); } }
@keyframes timeline-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes decision-in { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }

.login-view { max-width: 500px; margin: 0 auto; padding: 34px; }
.login-view h2 { color: var(--navy-dark); font-size: 36px; }
.login-view p { color: var(--muted); font-size: 13px; line-height: 1.55; }
.login-view .field { margin: 20px 0 14px; }
.admin-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.admin-toolbar p { margin: 0; color: var(--muted); font-size: 13px; }
.admin-actions { display: flex; gap: 8px; }
.compact-button { min-height: 40px; padding-inline: 16px; font-size: 12px; }
.sound-toggle { min-width: 132px; }
.sound-toggle.muted { border-color: var(--line); color: var(--muted); }
.orders-list { display: grid; gap: 15px; }
.admin-order { background: white; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.admin-order.has-cancellation-request { border-color: #dfb859; box-shadow: 0 0 0 3px rgba(223,184,89,.14), 0 12px 38px rgba(20,47,110,.06); }
.admin-order-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; color: white; background: var(--navy-dark); }
.admin-order-head strong { font: 700 20px "Oswald"; letter-spacing: .04em; }
.admin-order-head small { display: block; color: rgba(255,255,255,.6); margin-top: 3px; }
.admin-order-body { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 20px; }
.admin-order h3 { margin: 0 0 9px; font-size: 14px; color: var(--navy-dark); }
.admin-order p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.admin-items { margin: 13px 0 0; padding: 0; list-style: none; }
.admin-items li { display: flex; justify-content: space-between; gap: 15px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.admin-order-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--line); background: #fbf8f2; }
.status-select { min-height: 42px; border: 1px solid var(--line); border-radius: 7px; padding: 0 11px; color: var(--navy-dark); background: white; font-weight: 700; }
.order-decision { display: flex; gap: 8px; }
.order-decision button { min-height: 42px; padding: 0 17px; border-radius: 7px; border: 0; color: white; font-weight: 800; cursor: pointer; }
.order-decision button:disabled { opacity: .6; cursor: wait; }
.accept-order { background: var(--green); }
.reject-order { background: var(--red); }
.link-group { display: flex; gap: 8px; flex-wrap: wrap; }
.small-link { display: inline-flex; align-items: center; min-height: 38px; padding: 0 12px; border-radius: 6px; background: white; border: 1px solid var(--line); color: var(--navy); font-size: 11px; font-weight: 800; }
.admin-empty { padding: 70px 20px; text-align: center; color: var(--muted); }
.filter-tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 18px; }
.filter-tab { flex: 0 0 auto; min-height: 38px; border-radius: 999px; padding: 0 14px; border: 1px solid var(--line); background: white; color: var(--navy); font-size: 11px; font-weight: 800; cursor: pointer; }
.filter-tab.active { background: var(--red); border-color: var(--red); color: white; }
.admin-section-tabs { display: grid; grid-template-columns: repeat(7, 1fr); margin-bottom: 25px; border: 1px solid var(--line); border-radius: 9px; background: white; overflow: hidden; }
.admin-section-tab { min-height: 48px; border: 0; border-right: 1px solid var(--line); background: white; color: var(--navy); font-weight: 800; cursor: pointer; }
.admin-section-tab:last-child { border: 0; }
.admin-section-tab.active { background: var(--navy); color: white; }
.admin-section-view[hidden] { display: none; }
.admin-search { min-width: 280px; height: 43px; }
.customers-list { display: grid; gap: 13px; }
.customer-card { padding: 20px; background: white; border: 1px solid var(--line); border-radius: 9px; }
.customer-card-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.customer-card h3 { margin: 0; color: var(--navy-dark); font: 700 22px "Oswald"; text-transform: uppercase; }
.customer-phone { display: inline-block; margin-top: 4px; color: var(--red); font-size: 12px; font-weight: 800; }
.customer-stats { display: flex; gap: 18px; text-align: right; }
.customer-stats strong, .customer-stats small { display: block; }
.customer-stats strong { color: var(--navy-dark); font: 700 20px "Oswald"; }
.customer-stats small { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.customer-details { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-top: 16px; margin-top: 16px; border-top: 1px solid var(--line); }
.customer-details h4 { margin: 0 0 8px; color: var(--red); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.customer-details ul { list-style: none; padding: 0; margin: 0; }
.customer-details li { padding: 6px 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.simulator-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.simulator-card { padding: 25px; }
.simulator-card h2 { margin-bottom: 22px; color: var(--navy-dark); font-size: 30px; }
.simulator-card .button { margin-top: 18px; }
.simulator-result { padding: 16px; margin-top: 16px; border-radius: 8px; background: #edf7f1; color: #155a39; font-size: 12px; line-height: 1.55; }
.simulator-result.pending { background: #fff1d5; color: #795313; }
.simulator-result.error { background: #ffeaed; color: #8e1727; }
.delivery-admin-summary { margin-top: 13px; padding: 12px; border-radius: 7px; background: var(--cream); font-size: 11px; line-height: 1.5; }
.payment-card { margin-top: 10px; }
.manual-fee-form { display: flex; gap: 7px; align-items: center; margin-top: 10px; }
.manual-fee-form input { width: 100px; min-height: 38px; border: 1px solid var(--line); border-radius: 6px; padding: 0 9px; }
.manual-fee-form button { min-height: 38px; padding: 0 12px; border: 0; border-radius: 6px; color: white; background: var(--red); font-size: 10px; font-weight: 800; cursor: pointer; }
.admin-editor { padding: 25px; margin-bottom: 18px; }
.admin-editor h2 { margin: 0 0 18px; color: var(--navy-dark); }
.option-editor { margin-top: 8px; padding: 16px; border: 1px solid var(--line); border-radius: 9px; background: #fbf8f2; }
.option-editor > .save-profile { margin-top: 0; }
.option-editor #selection-group-fields { margin-top: 16px; }
.option-toolbar { margin: 18px 0 10px; }
.selection-options { display: grid; gap: 8px; }
.selection-option-row { display: grid; grid-template-columns: minmax(180px, 1fr) auto auto; align-items: end; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 7px; background: white; }
.selection-option-row .save-profile { margin: 0 0 9px; }
.selection-option-row .small-link { margin-bottom: 2px; }
.catalog-admin-list { display: grid; gap: 24px; }
.catalog-admin-category { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #f8f4ec; }
.catalog-admin-category-head { border-bottom: 1px solid var(--line); background: #eee7d9; }
.catalog-admin-category.collapsed .catalog-admin-category-head { border-bottom: 0; }
.catalog-category-toggle { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 17px 20px; border: 0; color: inherit; background: transparent; font: inherit; text-align: left; cursor: pointer; }
.catalog-admin-category-head small { display: block; margin-bottom: 2px; color: var(--red); font-size: 9px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.catalog-admin-category-head h2 { margin: 0; color: var(--navy-dark); font: 700 23px "Oswald"; text-transform: uppercase; }
.catalog-category-meta { display: flex; align-items: center; gap: 12px; }
.catalog-category-meta b { padding: 7px 10px; border-radius: 999px; background: white; color: var(--muted); font-size: 10px; font-weight: 700; white-space: nowrap; }
.catalog-category-chevron { width: 10px; height: 10px; margin: -4px 3px 0 0; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(45deg); transition: transform .18s ease; }
.catalog-admin-category.collapsed .catalog-category-chevron { margin-top: 4px; transform: rotate(-45deg); }
.catalog-admin-category-products { display: grid; gap: 9px; padding: 10px; }
.catalog-admin-category-products[hidden] { display: none; }
.catalog-admin-item { display: grid; grid-template-columns: 86px 1fr auto auto; gap: 20px; align-items: center; padding: 18px 20px; background: white; border: 1px solid var(--line); border-radius: 9px; }
.catalog-admin-thumb-wrap { position: relative; width: 86px; height: 86px; }
.catalog-admin-thumb { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: 8px; background: #eee8dc; }
.catalog-admin-item.paused .catalog-admin-thumb { filter: grayscale(.62); opacity: .72; }
.catalog-pause-badge { position: absolute; right: 7px; bottom: 7px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; gap: 4px; border: 2px solid white; border-radius: 50%; background: var(--red); box-shadow: 0 4px 12px rgba(14,36,84,.25); }
.catalog-pause-badge i { width: 4px; height: 13px; border-radius: 2px; background: white; }
.catalog-admin-item.archived { opacity: .62; }
.catalog-admin-item h3 { margin: 3px 0; color: var(--navy-dark); font-size: 16px; }
.catalog-admin-item p, .catalog-admin-item small { margin: 0; color: var(--muted); font-size: 11px; }
.catalog-admin-price { min-width: 95px; text-align: right; }
.catalog-admin-price strong, .catalog-admin-price span { display: block; }
.catalog-admin-price strong { color: var(--navy-dark); font: 700 20px "Oswald"; }
.catalog-admin-price span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.danger-link { color: var(--red); }
.muted-copy { color: var(--muted); font-size: 11px; }
.security-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.security-current-ip { margin: -7px 0 20px; padding: 12px; border-radius: 7px; background: var(--cream); color: var(--muted); font-size: 11px; }
.security-current-ip strong { color: var(--navy-dark); }
.blocked-ip-list { display: grid; gap: 9px; }
.blocked-ip-item { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #fbf8f2; }
.blocked-ip-item strong, .blocked-ip-item small { display: block; }
.blocked-ip-item strong { color: var(--navy-dark); font-size: 13px; }
.blocked-ip-item small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.blocked-ip-item p { margin: 7px 0 0; color: var(--muted); font-size: 11px; }
.compact-empty { padding: 35px 15px; }

.finance-toolbar, .finance-day-head { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 16px; }
.finance-toolbar h2, .finance-day-head h2 { margin: 0; color: var(--navy-dark); font: 700 31px "Oswald"; text-transform: capitalize; }
.finance-navigation { display: flex; gap: 7px; }
.finance-navigation .button:first-child, .finance-navigation .button:last-child { width: 42px; padding: 0; font-size: 25px; }
.finance-calendar-panel { padding: 16px; margin-bottom: 25px; overflow: hidden; }
.finance-weekdays, .finance-calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 7px; }
.finance-weekdays { margin-bottom: 7px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .06em; text-align: center; text-transform: uppercase; }
.finance-calendar-day, .finance-calendar-empty { min-height: 96px; }
.finance-calendar-day { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding: 10px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: #fbf8f2; text-align: left; cursor: pointer; }
.finance-calendar-day > span { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; font-size: 11px; font-weight: 900; }
.finance-calendar-day strong { color: var(--navy-dark); font: 700 17px "Oswald"; white-space: nowrap; }
.finance-calendar-day small { font-size: 9px; white-space: nowrap; }
.finance-calendar-day.has-orders { border-color: #c8d2e7; background: white; }
.finance-calendar-day.today > span { color: white; background: var(--red); }
.finance-calendar-day.selected { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.finance-summary { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 9px; margin-bottom: 14px; }
.finance-stat { min-width: 0; padding: 15px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.finance-stat small, .finance-stat strong { display: block; }
.finance-stat small { min-height: 28px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.finance-stat strong { color: var(--navy-dark); font: 700 21px "Oswald"; overflow-wrap: anywhere; }
.finance-detail-grid { display: grid; grid-template-columns: minmax(240px, .7fr) minmax(0, 1.3fr); gap: 14px; }
.finance-block { padding: 20px; }
.finance-block h3 { margin: 0 0 14px; color: var(--navy-dark); font: 700 20px "Oswald"; text-transform: uppercase; }
.finance-payment-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 11px; }
.finance-payment-row:last-child { border-bottom: 0; }
.finance-payment-row span { color: var(--ink); font-weight: 700; }
.finance-payment-row strong { color: var(--navy-dark); }
.finance-payment-row small { grid-column: 1 / -1; color: var(--muted); font-size: 9px; }
.finance-order-row { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.finance-order-row:last-child { border-bottom: 0; }
.finance-order-row time { color: var(--red); font-size: 10px; font-weight: 900; }
.finance-order-row strong, .finance-order-row small { display: block; }
.finance-order-row strong { color: var(--navy-dark); font-size: 12px; }
.finance-order-row small { margin-top: 2px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.finance-order-row b { color: var(--navy-dark); font: 700 16px "Oswald"; white-space: nowrap; }

.driver-main { padding-bottom: 70px; }
.driver-hero { margin-bottom: 24px; }
.driver-card { max-width: 760px; margin: 0 auto; overflow: hidden; }
.driver-order-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; padding: 24px 28px; border-bottom: 1px solid var(--line); background: white; }
.driver-order-head .eyebrow { margin-bottom: 5px; }
.driver-order-head h2 { margin: 0; color: var(--navy-dark); font-size: 34px; }
.driver-summary { padding: 26px 28px 30px; }
.driver-progress { display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; padding: 0; margin: 0 0 25px; }
.driver-progress li { position: relative; display: grid; justify-items: center; gap: 6px; color: #9b958c; font-size: 10px; text-align: center; }
.driver-progress li::before { content: ""; position: absolute; z-index: 0; top: 15px; right: 50%; width: 100%; height: 3px; background: #ded9d0; }
.driver-progress li:first-child::before { display: none; }
.driver-progress li span { position: relative; z-index: 1; width: 32px; height: 32px; display: grid; place-items: center; border: 2px solid #d5cfc5; border-radius: 50%; color: #8b857c; background: white; font-size: 11px; font-weight: 900; }
.driver-progress li b { font-weight: 800; }
.driver-progress li.done::before, .driver-progress li.current::before { background: var(--green); }
.driver-progress li.done span { border-color: var(--green); color: white; background: var(--green); }
.driver-progress li.current span { border-color: var(--red); color: white; background: var(--red); box-shadow: 0 0 0 6px rgba(217,30,54,.1); animation: badge-breathe 1.8s ease-in-out infinite; }
.driver-progress li.done b, .driver-progress li.current b { color: var(--navy-dark); }
.driver-destination { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: flex-start; padding: 19px; border: 1px solid var(--line); border-radius: 11px; background: var(--cream); }
.driver-destination-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--red); font-size: 23px; font-weight: 900; }
#driver-address small, #driver-address strong, #driver-address p, #driver-address span { display: block; }
#driver-address small { color: var(--red); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
#driver-address strong { margin-top: 3px; color: var(--navy-dark); font-size: 16px; }
#driver-address p { margin: 5px 0 0; color: var(--ink); font-size: 13px; line-height: 1.45; }
#driver-address span { margin-top: 4px; color: var(--muted); font-size: 10px; }
.driver-navigation-main { margin-top: 12px; }
.navigation-apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 8px; }
.navigation-apps a { min-height: 40px; display: grid; place-items: center; padding: 7px; border: 1px solid var(--line); border-radius: 7px; color: var(--navy); background: white; font-size: 10px; font-weight: 800; text-align: center; }
.navigation-apps a:hover { border-color: var(--navy); }
.driver-order-info { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.driver-order-info > div { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.driver-order-info small, .driver-order-info strong, .driver-order-info > div > span { display: block; }
.driver-order-info small { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.driver-order-info strong { margin-top: 5px; color: var(--navy-dark); font: 700 22px "Oswald"; }
.driver-order-info > div > span { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.driver-contact strong { overflow: hidden; font-size: 19px; text-overflow: ellipsis; white-space: nowrap; }
.driver-contact > span { display: flex !important; gap: 7px; }
.driver-contact a { flex: 1; min-height: 32px; display: grid; place-items: center; border-radius: 6px; color: var(--navy); background: #edf1fa; font-size: 10px; font-weight: 800; }
.driver-gps-panel { margin-top: 18px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #fbf8f2; }
.driver-gps-panel[hidden], .driver-complete[hidden], .driver-status-action[hidden] { display: none; }
.driver-gps-panel .gps-status { margin-bottom: 10px; }
.driver-gps-actions { display: grid; }
.driver-gps-actions .button { min-height: 42px; font-size: 11px; }
.driver-status-action { min-height: 56px; margin-top: 20px; font-size: 14px; }
.driver-action-help { margin: 9px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; text-align: center; }
.driver-complete { display: flex; align-items: center; gap: 13px; padding: 18px; margin-top: 20px; border: 1px solid #b9dfc8; border-radius: 10px; background: #edf7f1; }
.driver-complete > span { width: 40px; height: 40px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--green); font-size: 22px; font-weight: 900; }
.driver-complete strong, .driver-complete p { display: block; margin: 0; }
.driver-complete strong { color: #155a39; }
.driver-complete p { margin-top: 3px; color: #397357; font-size: 11px; }
.gps-status { min-height: 48px; display: flex; align-items: center; gap: 10px; padding: 12px 15px; margin-bottom: 18px; border-radius: 8px; background: #f2f1ed; color: var(--muted); font-size: 12px; }
.gps-status.active { background: #e5f5eb; color: var(--green); }
.pulse { width: 10px; height: 10px; flex: 0 0 auto; border-radius: 50%; background: #999; }
.gps-status.active .pulse { background: var(--green); box-shadow: 0 0 0 6px rgba(21,128,74,.11); }
.privacy-note { margin: 18px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }

@media (max-width: 720px) {
  .internal-main { padding: 25px 12px 55px; }
  .internal-hero { align-items: flex-start; flex-direction: column; }
  .admin-page .internal-main { padding-top: 14px; }
  .admin-page .internal-hero { margin-bottom: 15px; }
  .admin-page .internal-hero h1 { font-size: 39px; line-height: .92; }
  .admin-page .internal-hero > p { display: none; }
  .lookup-form { grid-template-columns: 1fr; }
  .order-grid { grid-template-columns: 1fr; }
  .order-column + .order-column { border-left: 0; border-top: 1px solid var(--line); }
  .order-header { flex-direction: column; }
  .order-header { padding: 21px 18px; }
  .order-header h2 { font-size: 29px; overflow-wrap: anywhere; }
  .cancellation-card { grid-template-columns: auto minmax(0, 1fr); margin: 14px 14px 0; padding: 13px; }
  .cancellation-card .button { grid-column: 1 / -1; width: 100%; }
  .order-column { padding: 22px 18px; }
  .map-head { align-items: flex-start; flex-direction: column; gap: 5px; padding: 14px; }
  .map-head small { max-width: 100%; text-align: left; }
  #delivery-map { height: 300px; }
  .admin-toolbar { align-items: flex-start; flex-direction: column; }
  .admin-order-body { grid-template-columns: 1fr; }
  .admin-order-foot { align-items: stretch; flex-direction: column; }
  .cancellation-admin-card { grid-template-columns: auto minmax(0, 1fr); margin: 0 12px 14px; }
  .cancellation-admin-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
  .status-select { width: 100%; }
  .order-decision { display: grid; grid-template-columns: 1fr 1fr; }
  .link-group { display: grid; grid-template-columns: 1fr 1fr; }
  .small-link { justify-content: center; }
  .admin-section-tabs { position: sticky; z-index: 20; top: 0; display: flex; gap: 6px; margin-inline: -12px; padding: 8px 12px; overflow-x: auto; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: rgba(247,242,232,.96); scrollbar-width: none; }
  .admin-section-tabs::-webkit-scrollbar { display: none; }
  .admin-section-tab { min-height: 39px; flex: 0 0 auto; padding: 0 15px; border: 1px solid var(--line); border-radius: 999px; font-size: 11px; }
  .admin-section-tab.active { border-color: var(--navy); }
  .admin-toolbar { width: 100%; }
  .admin-search { width: 100%; min-width: 0; }
  .customer-card-head, .customer-details { grid-template-columns: 1fr; flex-direction: column; }
  .customer-stats { width: 100%; justify-content: space-between; text-align: left; }
  .simulator-grid { grid-template-columns: 1fr; }
  .security-grid { grid-template-columns: 1fr; }
  .catalog-admin-item { grid-template-columns: 72px 1fr; }
  .catalog-category-toggle { padding: 14px; }
  .catalog-admin-category-products { padding: 7px; }
  .catalog-admin-item .admin-actions, .catalog-admin-item .catalog-admin-price { grid-column: 1 / -1; }
  .catalog-admin-thumb-wrap { width: 72px; height: 72px; }
  .catalog-admin-price { text-align: left; }
  .selection-option-row { grid-template-columns: 1fr; align-items: stretch; }
  .selection-option-row .save-profile { margin: 0; }
  .admin-order-head, .admin-order-body, .admin-order-foot { padding-inline: 14px; }
  .admin-actions { width: 100%; flex-wrap: wrap; }
  .admin-actions .button { flex: 1 1 auto; }
  .order-decision { grid-template-columns: 1fr; }
  .finance-toolbar, .finance-day-head { align-items: flex-start; }
  .finance-toolbar h2, .finance-day-head h2 { font-size: 26px; }
  .finance-calendar-panel { padding: 8px; margin-inline: -4px; }
  .finance-weekdays, .finance-calendar { gap: 3px; }
  .finance-calendar-day, .finance-calendar-empty { min-height: 68px; }
  .finance-calendar-day { gap: 2px; padding: 5px; border-radius: 6px; }
  .finance-calendar-day > span { width: 21px; height: 21px; font-size: 9px; }
  .finance-calendar-day strong { font-size: 11px; }
  .finance-calendar-day small { max-width: 100%; overflow: hidden; font-size: 7px; text-overflow: ellipsis; }
  .finance-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .finance-stat { padding: 12px; }
  .finance-detail-grid { grid-template-columns: 1fr; }
  .finance-block { padding: 15px; }
  .finance-orders-block { min-width: 0; }
  .finance-order-row { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 7px; }
  .finance-order-row b { font-size: 14px; }
  .decision-modal-head { padding: 20px 18px; }
  .decision-modal-head h2 { font-size: 27px; }
  .decision-modal-body { padding: 20px 18px; }
  .decision-modal-actions { padding-inline: 18px; }
  .driver-main { padding: 26px 12px 45px; }
  .driver-hero { padding-inline: 6px; }
  .driver-hero h1 { font-size: 47px; }
  .driver-order-head { align-items: flex-start; padding: 19px 17px; }
  .driver-order-head h2 { font-size: 27px; overflow-wrap: anywhere; }
  .driver-order-head .status-badge { max-width: 145px; min-height: 30px; padding-inline: 10px; text-align: center; }
  .driver-summary { padding: 21px 16px max(24px, env(safe-area-inset-bottom)); }
  .driver-destination { padding: 15px; }
  .driver-order-info { grid-template-columns: 1fr; }
  .navigation-apps a { min-height: 44px; }
  .driver-status-action { position: sticky; z-index: 3; bottom: max(10px, env(safe-area-inset-bottom)); box-shadow: 0 12px 28px rgba(217,30,54,.28); }
}

@media (prefers-reduced-motion: reduce) {
  .timeline li, .timeline li.current .timeline-dot::after, #status-badge, .cancellation-card.cancellation-pending > div:first-child, .modal:not([hidden]) .cancellation-modal-card, .driver-progress li.current span, .courier-marker { animation: none !important; }
}
