:root { --fresh-ink: #1f2937; --fresh-muted: #64748b; --fresh-line: #e5e7eb; --fresh-bg: #f5f7fb; --fresh-brand: #0f766e; --fresh-brand-dark: #115e59; --fresh-sidebar-bg: #10192b; --fresh-sidebar-line: rgba(255, 255, 255, .08); --fresh-sidebar-text: #cbd5e1; --fresh-sidebar-muted: #94a3b8; --fresh-sidebar-active-bg: rgba(45, 212, 191, .16); --fresh-sidebar-active-text: #5eead4; }
* { box-sizing: border-box; }
body.fresh-body { margin: 0; background: var(--fresh-bg); color: var(--fresh-ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Noto Sans TC", sans-serif; }
.fresh-shell { min-height: 100vh; display: flex; }
.fresh-sidebar { width: 264px; height: 100vh; position: sticky; top: 0; overflow-y: auto; background: var(--fresh-sidebar-bg); border-right: 1px solid var(--fresh-sidebar-line); padding: 22px 14px; flex: 0 0 auto; }
.fresh-brand { display: flex; align-items: center; gap: 11px; padding: 0 10px 22px; border-bottom: 1px solid var(--fresh-sidebar-line); margin-bottom: 16px; }
.fresh-brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--fresh-brand); color: #fff; font-weight: 800; font-size: 14px; }
.fresh-brand strong, .fresh-brand small { display: block; line-height: 1.2; }.fresh-brand strong { color: #fff; }.fresh-brand small { color: var(--fresh-sidebar-muted); font-size: 12px; margin-top: 3px; }
.fresh-nav-section { margin-top: 4px; }.fresh-nav-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; list-style: none; cursor: pointer; color: var(--fresh-sidebar-muted); text-transform: uppercase; font-size: 14px; font-weight: 800; letter-spacing: .08em; padding: 10px 12px; border-radius: 9px; user-select: none; }.fresh-nav-heading:hover { background: rgba(255, 255, 255, .06); }.fresh-nav-heading::-webkit-details-marker { display: none; }.fresh-nav-chevron { color: var(--fresh-sidebar-muted); font-size: 14px; transition: transform .15s; }.fresh-nav-section[open] > .fresh-nav-heading .fresh-nav-chevron { transform: rotate(90deg); }.fresh-nav-section-body { padding: 2px 0 4px; }
.fresh-nav-link { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fresh-sidebar-text); border-radius: 9px; padding: 10px 12px; font-size: 15px; transition: background .15s, color .15s; }.fresh-nav-link:hover, .fresh-nav-link.active { background: var(--fresh-sidebar-active-bg); color: var(--fresh-sidebar-active-text); }.fresh-nav-link-child { padding: 8px 12px; font-size: 14px; }
.fresh-main { min-width: 0; flex: 1; }.fresh-topbar { height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 32px; background: #fff; border-bottom: 1px solid var(--fresh-line); }.fresh-kicker { color: var(--fresh-muted); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }.fresh-topbar-title { font-weight: 700; font-size: 16px; margin-top: 3px; }.fresh-user-chip { display: flex; align-items: center; gap: 7px; font-size: 14px; }.fresh-avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #ccfbf1; color: var(--fresh-brand-dark); font-weight: 800; }.fresh-menu-button { border: 1px solid var(--fresh-line); }
#fresh-mobile-menu { background: var(--fresh-sidebar-bg); color: var(--fresh-sidebar-text); }
#fresh-mobile-menu .offcanvas-header { border-bottom: 1px solid var(--fresh-sidebar-line); }
#fresh-mobile-menu .offcanvas-title { color: #fff; }
#fresh-mobile-menu .btn-close { filter: invert(1) grayscale(100%) brightness(200%); }.fresh-content { padding: 32px; max-width: 1600px; margin: 0 auto; }.fresh-page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 26px; }.fresh-page-heading h1 { font-size: clamp(24px, 3vw, 34px); margin: 6px 0 0; }.fresh-empty-state { min-height: 340px; display: grid; place-items: center; align-content: center; background: #fff; border: 1px dashed #cbd5e1; border-radius: 16px; text-align: center; padding: 32px; }.fresh-empty-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; color: var(--fresh-brand); background: #ccfbf1; font-size: 28px; margin-bottom: 14px; }.fresh-empty-state h2 { font-size: 20px; margin-bottom: 8px; }.fresh-empty-state p { color: var(--fresh-muted); margin: 0; }.fresh-bottom-nav { display: none; }
@media (max-width: 991.98px) { .fresh-sidebar { display: none; }.fresh-topbar { padding: 0 18px; }.fresh-content { padding: 24px 18px 96px; }.fresh-bottom-nav { position: fixed; z-index: 20; bottom: 0; left: 0; right: 0; display: flex; justify-content: space-around; background: rgba(255,255,255,.97); border-top: 1px solid var(--fresh-line); padding: 8px 6px calc(8px + env(safe-area-inset-bottom)); }.fresh-bottom-link { min-width: 56px; display: grid; justify-items: center; gap: 3px; text-decoration: none; color: #64748b; font-size: 19px; }.fresh-bottom-link small { font-size: 11px; font-weight: 700; }.fresh-bottom-link.active { color: var(--fresh-brand); } }
@media (max-width: 575.98px) { .fresh-topbar { height: 64px; }.fresh-page-heading { align-items: stretch; flex-direction: column; }.fresh-page-heading .badge { align-self: flex-start; }.fresh-content { padding-top: 20px; }.fresh-empty-state { min-height: 280px; padding: 24px 16px; } }
.fresh-kpi-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px; }.fresh-kpi-grid-ops { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.fresh-kpi-card { min-height: 126px; position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 18px; border: 1px solid var(--fresh-line); border-radius: 14px; background: #fff; text-decoration: none; color: var(--fresh-ink); overflow: hidden; }.fresh-kpi-card::after { content: ''; position: absolute; width: 78px; height: 78px; border-radius: 50%; right: -24px; bottom: -27px; background: currentColor; opacity: .08; }.fresh-kpi-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15, 23, 42, .07); }.fresh-kpi-label { color: var(--fresh-muted); font-size: 13px; font-weight: 700; }.fresh-kpi-value { font-size: 32px; line-height: 1; }.fresh-kpi-arrow { position: absolute; top: 14px; right: 15px; color: currentColor; font-size: 18px; }.fresh-tone-brand { color: #0f766e; }.fresh-tone-warning { color: #b45309; }.fresh-tone-purple { color: #7c3aed; }.fresh-tone-blue { color: #2563eb; }.fresh-tone-orange { color: #c2410c; }.fresh-tone-rose { color: #be123c; }.fresh-tone-green { color: #15803d; }
.fresh-panel { background: #fff; border: 1px solid var(--fresh-line); border-radius: 16px; padding: 22px; }.fresh-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }.fresh-panel-heading h2 { font-size: 19px; margin: 5px 0 0; }.fresh-table { --bs-table-bg: transparent; }.fresh-table th { color: #94a3b8; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; font-weight: 800; border-bottom-color: var(--fresh-line); }.fresh-table td { border-bottom-color: #f1f5f9; font-size: 14px; }.fresh-table tbody tr:last-child td { border-bottom: 0; }.fresh-status-badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 9px; font-size: 12px; font-weight: 800; white-space: nowrap; }.fresh-status-pending_review { color: #92400e; background: #fef3c7; }.fresh-status-confirmed { color: #155e75; background: #cffafe; }.fresh-status-picking { color: #1d4ed8; background: #dbeafe; }.fresh-status-weighing { color: #9a3412; background: #ffedd5; }.fresh-status-ready_to_ship { color: #9f1239; background: #ffe4e6; }.fresh-status-shipped { color: #166534; background: #dcfce7; }.fresh-status-cancelled { color: #475569; background: #e2e8f0; }.fresh-exception-list { display: grid; gap: 4px; }.fresh-exception-row { display: flex; align-items: center; gap: 10px; min-height: 49px; border-bottom: 1px solid #f1f5f9; font-size: 14px; }.fresh-exception-row:last-child { border-bottom: 0; }.fresh-exception-row strong { margin-left: auto; font-size: 18px; }.fresh-dot { width: 8px; height: 8px; border-radius: 50%; }.fresh-dot-warning { background: #f59e0b; }.fresh-dot-purple { background: #8b5cf6; }.fresh-dot-orange { background: #f97316; }.fresh-operation-list { display: grid; gap: 10px; }.fresh-operation-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px; border: 1px solid #e2e8f0; border-radius: 12px; color: var(--fresh-ink); text-decoration: none; }.fresh-operation-card:hover { border-color: #99f6e4; background: #f0fdfa; }.fresh-operation-card strong, .fresh-operation-card span { display: block; }.fresh-operation-card span { color: var(--fresh-muted); font-size: 13px; margin-top: 4px; }
@media (max-width: 1199.98px) { .fresh-kpi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }.fresh-kpi-grid-ops { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .fresh-kpi-grid, .fresh-kpi-grid-ops { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }.fresh-kpi-card { min-height: 105px; padding: 14px; }.fresh-kpi-value { font-size: 27px; }.fresh-panel { padding: 16px; }.fresh-table th:nth-child(3), .fresh-table td:nth-child(3) { display: none; } }
.fresh-filter-tabs { display: flex; gap: 6px; overflow-x: auto; margin: -8px 0 18px; }.fresh-filter-tabs a { flex: 0 0 auto; color: #64748b; text-decoration: none; border: 1px solid transparent; border-radius: 999px; padding: 8px 13px; font-size: 14px; font-weight: 700; }.fresh-filter-tabs a:hover, .fresh-filter-tabs a.active { color: var(--fresh-brand-dark); background: #ccfbf1; border-color: #99f6e4; }.fresh-type-chip { display: inline-flex; border-radius: 6px; padding: 4px 7px; background: #f1f5f9; color: #475569; font-size: 11px; font-weight: 800; letter-spacing: .03em; }.fresh-parse-status { display: inline-flex; border-radius: 999px; padding: 5px 9px; font-size: 12px; font-weight: 800; }.fresh-parse-review, .fresh-parse-pending { color: #92400e; background: #fef3c7; }.fresh-parse-confirmed, .fresh-parse-parsed { color: #166534; background: #dcfce7; }.fresh-summary-cell { max-width: 280px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.fresh-image-card, .fresh-review-card { height: 100%; overflow: hidden; background: #fff; border: 1px solid var(--fresh-line); border-radius: 16px; }.fresh-image-placeholder { min-height: 150px; display: grid; place-items: center; align-content: center; gap: 8px; background: linear-gradient(135deg, #e0f2fe, #f0fdfa); color: #0f766e; }.fresh-image-placeholder span { font-size: 12px; font-weight: 900; letter-spacing: .15em; }.fresh-image-placeholder strong { font-size: 16px; }.fresh-image-card h2, .fresh-review-card h2 { font-size: 18px; margin: 6px 0 0; }.fresh-warning-count { color: #b45309; background: #fef3c7; border-radius: 999px; padding: 4px 7px; font-size: 12px; font-weight: 800; }.fresh-review-card { padding: 20px; }.fresh-review-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--fresh-muted); font-size: 13px; border-top: 1px solid #f1f5f9; border-bottom: 1px solid #f1f5f9; margin: 18px 0; padding: 12px 0; }.fresh-review-warnings { display: flex; gap: 8px; align-items: flex-start; color: #92400e; background: #fffbeb; border: 1px solid #fde68a; border-radius: 9px; padding: 11px 12px; font-size: 13px; margin-bottom: 16px; }.fresh-review-warnings span { color: #78350f; }.fresh-source-box { padding: 18px; border: 1px dashed #cbd5e1; border-radius: 12px; background: #f8fafc; }.fresh-review-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }.fresh-review-fields div { padding: 12px; border-radius: 10px; background: #f8fafc; }.fresh-review-fields span, .fresh-review-fields strong { display: block; }.fresh-review-fields span { color: var(--fresh-muted); font-size: 12px; margin-bottom: 5px; }.fresh-review-fields strong { font-size: 14px; }.fresh-review-fields form { flex-wrap: nowrap; }.fresh-review-fields form button { white-space: nowrap; flex: 0 0 auto; }.fresh-review-fields form input[type="date"] { min-width: 0; flex: 1 1 auto; }.fresh-low-confidence { background: #fef2f2 !important; }.fresh-low-confidence td { border-color: #fecaca !important; }.fresh-review-pending { color: #0c4a6e; background: #eff6ff; border-color: #bfdbfe; }.fresh-review-pending span { color: #1e3a8a; }.fresh-spinner { display: inline-block; width: 12px; height: 12px; border: 2px solid #93c5fd; border-top-color: #1d4ed8; border-radius: 50%; animation: fresh-spin 0.8s linear infinite; vertical-align: middle; margin-right: 2px; }@keyframes fresh-spin { to { transform: rotate(360deg); } }@media (min-width: 992px) { .fresh-source-sticky { position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow-y: auto; } }.fresh-image-zoom-trigger { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }.fresh-image-zoom-trigger:hover img { opacity: .92; }
.fresh-detail-list { display: grid; gap: 0; margin: 0; }.fresh-detail-list div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid #f1f5f9; }.fresh-detail-list div:last-child { border-bottom: 0; }.fresh-detail-list dt { color: var(--fresh-muted); font-size: 13px; font-weight: 500; }.fresh-detail-list dd { margin: 0; text-align: right; font-size: 14px; font-weight: 700; }
.fresh-demand-list { display: grid; gap: 8px; }.fresh-demand-row { border: 1px solid #e2e8f0; border-radius: 11px; overflow: hidden; }.fresh-demand-row summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none; padding: 15px 16px; }.fresh-demand-row summary::-webkit-details-marker { display: none; }.fresh-demand-row[open] summary { background: #f8fafc; border-bottom: 1px solid #e2e8f0; }.fresh-demand-product { display: flex; align-items: baseline; gap: 10px; min-width: 0; }.fresh-expand-icon { color: var(--fresh-brand); font-size: 18px; font-weight: 500; width: 16px; }.fresh-demand-product strong { font-size: 15px; }.fresh-demand-product small { color: var(--fresh-muted); font-size: 12px; }.fresh-demand-total { color: var(--fresh-brand-dark); font-size: 18px; font-weight: 800; white-space: nowrap; }.fresh-demand-total small { font-size: 12px; }.fresh-demand-customers { padding: 14px 18px 16px 42px; background: #fcfdfd; }.fresh-customer-demand { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid #f1f5f9; font-size: 14px; }.fresh-customer-demand:last-child { border-bottom: 0; }.fresh-customer-demand span, .fresh-customer-demand small { display: block; }.fresh-customer-demand small { color: var(--fresh-muted); font-size: 12px; margin-top: 2px; }.fresh-customer-demand strong { white-space: nowrap; }
.fresh-zone-card { display: block; height: 100%; padding: 20px; background: #fff; border: 1px solid var(--fresh-line); border-radius: 16px; color: var(--fresh-ink); text-decoration: none; transition: transform .15s, box-shadow .15s, border .15s; }.fresh-zone-card:hover { transform: translateY(-2px); border-color: #99f6e4; box-shadow: 0 8px 20px rgba(15, 23, 42, .07); }.fresh-zone-card h2 { font-size: 19px; margin: 5px 0; }.fresh-zone-card p { color: var(--fresh-muted); font-size: 13px; margin: 0; }.fresh-zone-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: #ccfbf1; color: var(--fresh-brand-dark); font-weight: 900; }.fresh-zone-stats { display: flex; gap: 18px; margin-top: 22px; color: var(--fresh-muted); font-size: 12px; }.fresh-zone-stats strong { display: block; color: var(--fresh-ink); font-size: 19px; }.fresh-picking-progress { padding: 16px 18px; background: #fff; border: 1px solid var(--fresh-line); border-radius: 12px; }.fresh-picking-product summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none; }.fresh-picking-product summary::-webkit-details-marker { display: none; }.fresh-picking-product h2 { font-size: 18px; margin: 0 0 3px; }.fresh-picking-product small { color: var(--fresh-muted); font-size: 13px; }.fresh-picking-customers { margin-top: 18px; padding-top: 15px; border-top: 1px solid #f1f5f9; display: flex; flex-direction: column; gap: 10px; }
.fresh-pick-row { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 12px 14px; border: 1px solid var(--fresh-line); border-radius: 12px; color: var(--fresh-ink); text-decoration: none; }.fresh-pick-row:hover { border-color: #99f6e4; background: #f0fdfa; }.fresh-pick-row.done { border-color: #bbf7d0; background: #f7fefb; }.fresh-pick-status { width: 32px; height: 32px; flex: 0 0 auto; border-radius: 9px; border: 2px solid #cbd5e1; display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--fresh-muted); }.fresh-pick-row.done .fresh-pick-status { background: #16a34a; border-color: #16a34a; color: #fff; font-weight: 900; }.fresh-pick-info { flex-grow: 1; min-width: 0; }.fresh-pick-info strong { display: block; font-size: 15px; }.fresh-pick-info small { display: block; color: var(--fresh-muted); font-size: 13px; margin-top: 2px; }.fresh-pick-row.done .fresh-pick-info strong, .fresh-pick-row.done .fresh-pick-info small { color: #166534; }.fresh-pick-qty { text-align: right; flex: 0 0 auto; }.fresh-pick-qty strong { display: block; font-size: 16px; font-weight: 800; }.fresh-pick-qty small { display: block; color: var(--fresh-muted); font-size: 12px; margin-top: 2px; }.fresh-pick-row.done .fresh-pick-qty strong, .fresh-pick-row.done .fresh-pick-qty small { color: #166534; }.fresh-pick-chevron { flex: 0 0 auto; font-size: 20px; font-weight: 700; color: var(--fresh-brand); }
.fresh-order-card-list { display: grid; gap: 12px; max-width: 980px; }.fresh-order-lookup-card { display: block; padding: 16px 18px; background: #fff; border: 1px solid var(--fresh-line); border-radius: 14px; color: var(--fresh-ink); text-decoration: none; }.fresh-order-lookup-card:hover { border-color: #99f6e4; background: #f0fdfa; }.fresh-order-lookup-meta { display: flex; align-items: center; gap: 14px; margin-top: 12px; color: var(--fresh-muted); font-size: 13px; }
.fresh-weighing-list { display: grid; gap: 12px; max-width: 980px; }.fresh-weighing-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 20px; background: #fff; border: 1px solid var(--fresh-line); border-radius: 15px; color: var(--fresh-ink); text-decoration: none; }.fresh-weighing-card:hover { border-color: #99f6e4; background: #f0fdfa; }.fresh-weighing-card h2 { font-size: 18px; margin: 5px 0; }.fresh-weighing-card p { color: var(--fresh-muted); font-size: 13px; margin: 0; }.fresh-weighing-qty { color: var(--fresh-brand-dark); font-size: 23px; font-weight: 900; }.fresh-weighing-action { display: block; color: #0f766e; font-size: 12px; font-weight: 800; margin-top: 8px; }.fresh-weighing-shell { max-width: 720px; margin: 0 auto; }.fresh-weighing-progress { display: flex; justify-content: space-between; color: var(--fresh-muted); font-size: 14px; padding: 0 2px 12px; }.fresh-weighing-progress strong { color: var(--fresh-ink); }.fresh-weighing-info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 22px; }.fresh-weighing-info > div { padding: 16px; background: #fff; border: 1px solid var(--fresh-line); border-radius: 12px; }.fresh-weighing-info span, .fresh-weighing-info strong, .fresh-weighing-info small { display: block; }.fresh-weighing-info span { color: var(--fresh-muted); font-size: 12px; }.fresh-weighing-info strong { font-size: 22px; margin: 7px 0 3px; }.fresh-weighing-info small { color: var(--fresh-muted); font-size: 12px; }.fresh-weight-input-wrap { padding: 28px; background: #fff; border: 1px solid var(--fresh-line); border-radius: 16px; text-align: center; }.fresh-weight-input-wrap label { display: block; color: var(--fresh-muted); font-weight: 700; font-size: 14px; margin-bottom: 14px; }.fresh-weight-input-row { display: flex; align-items: center; justify-content: center; gap: 12px; }.fresh-weight-input-row input { width: min(100%, 340px); border: 2px solid #99f6e4; border-radius: 12px; padding: 18px 20px; color: var(--fresh-ink); font-size: 52px; line-height: 1; text-align: center; font-weight: 800; outline: none; }.fresh-weight-input-row input:focus { border-color: var(--fresh-brand); box-shadow: 0 0 0 4px rgba(20, 184, 166, .12); }.fresh-weight-input-row span { color: var(--fresh-brand-dark); font-size: 22px; font-weight: 800; }.fresh-weight-input-wrap > small { color: var(--fresh-muted); display: block; margin-top: 14px; font-size: 12px; }.fresh-weighing-actions { display: flex; align-items: center; gap: 8px; margin-top: 16px; }.fresh-weighing-actions .btn { min-height: 48px; }
.fresh-shipping-list { display: grid; gap: 12px; max-width: 980px; }.fresh-shipping-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px; background: #fff; border: 1px solid var(--fresh-line); border-radius: 15px; color: var(--fresh-ink); text-decoration: none; }.fresh-shipping-card:hover { border-color: #fecdd3; background: #fff1f2; }.fresh-shipping-card h2 { font-size: 19px; margin: 5px 0; }.fresh-shipping-card p { color: var(--fresh-muted); font-size: 13px; margin: 0; }.fresh-shipping-card > div:last-child > strong { font-size: 24px; }.fresh-shipping-action { display: block; color: #be123c; font-size: 12px; font-weight: 800; margin-top: 8px; }.fresh-shipping-confirm { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 12px; }.fresh-shipping-confirm strong, .fresh-shipping-confirm span { display: block; }.fresh-shipping-confirm span { color: #9a3412; font-size: 13px; margin-top: 4px; }.fresh-delivery-note { position: relative; max-width: 960px; margin: 0 auto; padding: 42px; background: #fff; border: 1px solid var(--fresh-line); border-radius: 5px; }.fresh-delivery-header { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 22px; border-bottom: 2px solid #1f2937; }.fresh-delivery-header h2 { font-size: 28px; margin: 5px 0 0; }.fresh-delivery-header strong { font-size: 18px; }.fresh-delivery-header small { color: var(--fresh-muted); margin-top: 6px; }.fresh-delivery-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding: 22px 0; }.fresh-delivery-meta span, .fresh-delivery-meta strong { display: block; }.fresh-delivery-meta span { color: var(--fresh-muted); font-size: 12px; margin-bottom: 5px; }.fresh-delivery-meta strong { font-size: 14px; }.fresh-delivery-footer { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--fresh-line); padding-top: 16px; margin-top: 18px; color: var(--fresh-muted); font-size: 12px; }.fresh-reprint-mark { position: absolute; top: 18px; right: 42px; color: #dc2626; border: 3px solid #dc2626; border-radius: 8px; padding: 4px 14px; font-size: 20px; font-weight: 900; letter-spacing: .1em; transform: rotate(8deg); }.fresh-delivery-logo { display: block; max-height: 40px; margin-bottom: 8px; }.fresh-delivery-note-a5 { max-width: 560px; padding: 24px; font-size: 13px; }.fresh-delivery-note-a5 .fresh-delivery-header h2 { font-size: 20px; }.fresh-delivery-note-a5 .fresh-table { font-size: 12px; }.fresh-delivery-note-a5 .fresh-delivery-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }.fresh-delivery-signature { display: flex; gap: 40px; margin-top: 30px; padding-top: 18px; }.fresh-delivery-signature > div { flex: 1; }.fresh-delivery-signature span { display: block; color: var(--fresh-muted); font-size: 12px; margin-bottom: 26px; }.fresh-signature-line { border-bottom: 1px solid #94a3b8; }
.fresh-chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 575.98px) { .fresh-review-fields { grid-template-columns: 1fr; } }
@media (max-width: 575.98px) { .fresh-weighing-card { align-items: flex-start; padding: 16px; }.fresh-weighing-card h2 { font-size: 16px; }.fresh-weighing-info { grid-template-columns: repeat(2, minmax(0, 1fr)); }.fresh-weighing-info > div:last-child { grid-column: 1 / -1; }.fresh-weight-input-wrap { padding: 22px 14px; }.fresh-weight-input-row input { font-size: 42px; padding: 17px 10px; }.fresh-weight-input-row span { font-size: 18px; }.fresh-weighing-actions { flex-wrap: wrap; }.fresh-weighing-actions .btn:first-child, .fresh-weighing-actions .btn:last-child { flex: 1 1 40%; }.fresh-weighing-actions .btn:nth-child(2) { order: 3; flex: 1 1 100%; } }
@media (max-width: 575.98px) { .fresh-shipping-card { align-items: flex-start; padding: 16px; }.fresh-shipping-card h2 { font-size: 16px; }.fresh-shipping-confirm { align-items: stretch; flex-direction: column; }.fresh-shipping-confirm .btn { width: 100%; }.fresh-delivery-note { padding: 22px 16px; }.fresh-delivery-header { align-items: flex-start; flex-direction: column; }.fresh-delivery-meta { grid-template-columns: 1fr; gap: 10px; }.fresh-delivery-footer { flex-direction: column; gap: 6px; } }
@media print { body.fresh-body { background: #fff; }.no-print { display: none !important; }.fresh-delivery-note { max-width: none; border: 0; padding: 0; }.fresh-delivery-note .fresh-table { font-size: 13px; } }
@media print { .fresh-sidebar, .fresh-topbar, .fresh-bottom-nav { display: none !important; }.fresh-content { padding: 0; } }
.fresh-delivery-note-paper { box-sizing: border-box; width: min(100%, var(--paper-width)); min-height: var(--paper-height); max-width: none; margin: 0 auto; }
.fresh-delivery-note-continuous { padding: 6mm; color: #000; background: #fff; border: 1px dashed #64748b; border-radius: 0; font-family: Consolas, "Noto Sans Mono CJK TC", "Microsoft JhengHei", monospace; font-size: 12px; }
.fresh-delivery-note-continuous .fresh-delivery-header { border-color: #000; }
.fresh-delivery-note-continuous .fresh-delivery-header small, .fresh-delivery-note-continuous .fresh-delivery-meta span, .fresh-delivery-note-continuous .fresh-delivery-footer { color: #000; }
.fresh-dot-matrix-calibration { padding-top: 10mm; }
.fresh-dot-matrix-ruler { display: flex; justify-content: space-between; gap: 8px; padding: 3mm 0; border-top: 1px solid #000; border-bottom: 1px solid #000; }
.fresh-dot-matrix-grid { display: grid; grid-template-columns: 1fr 1.2fr 1fr 1fr .7fr .7fr 1fr; margin: 8mm 0; }
.fresh-dot-matrix-grid span { min-width: 0; padding: 3mm 1mm; border: 1px solid #000; }
@media print { .fresh-delivery-note-paper { width: 100%; min-height: 0; max-width: none; margin: 0; }.fresh-delivery-note-continuous { padding: 0; border: 0; color: #000 !important; font-size: 10pt; }.fresh-delivery-note-continuous * { color: #000 !important; background: #fff !important; box-shadow: none !important; text-shadow: none !important; }.fresh-delivery-note-continuous .fresh-table > :not(caption) > * > * { border-color: #000 !important; }.fresh-delivery-note-continuous tr, .fresh-delivery-note-continuous .fresh-delivery-header, .fresh-delivery-note-continuous .fresh-delivery-meta { break-inside: avoid; page-break-inside: avoid; } }
.fresh-date-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -12px 0 22px; padding: 10px 14px; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; }.fresh-date-picker .form-control { width: auto; min-width: 150px; }.fresh-date-picker-label { font-size: 13px; color: var(--fresh-muted); font-weight: 600; }.fresh-date-picker-day { font-size: 15px; }.fresh-date-picker.is-other-day { border-color: #f59e0b; background: #fffbeb; }
@media (max-width: 575.98px) { .fresh-date-picker { margin-top: -8px; }.fresh-date-picker .form-control { flex: 1 1 140px; min-width: 0; }.fresh-date-picker-day { flex-basis: 100%; } }
.fresh-portal { max-width: 760px; margin: 0 auto; padding: 20px 16px 96px; }.fresh-portal-header { margin-bottom: 18px; }.fresh-portal-header h1 { font-size: clamp(22px, 5vw, 30px); margin: 6px 0 4px; }.fresh-portal-category h2 { font-size: 15px; color: var(--fresh-muted); margin: 18px 0 6px; }.fresh-portal-category:first-of-type h2 { margin-top: 0; }.fresh-portal-product { display: grid; grid-template-columns: minmax(0, 1fr) 96px 92px; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid #eef2f7; }.fresh-portal-product-name small { display: block; color: var(--fresh-muted); font-size: 12px; }.fresh-portal-unit { font-size: 14px; color: var(--fresh-muted); padding-left: 4px; }.fresh-portal-submit { position: sticky; bottom: 0; padding: 12px 0; background: linear-gradient(transparent, #f8fafc 30%); }.fresh-portal-order { padding: 12px 0; border-bottom: 1px solid #eef2f7; }.fresh-portal-order:last-child { border-bottom: 0; }
@media (max-width: 400px) { .fresh-portal-product { grid-template-columns: minmax(0, 1fr) 80px 80px; } }
.fresh-loading-customer { padding: 10px 0; border-top: 1px dashed #cbd5e1; }.fresh-loading-check { text-align: center; font-size: 16px; }.fresh-loading-sign { white-space: nowrap; }
@media print { .fresh-loading-sheet { border: 0; box-shadow: none; padding: 0; break-after: page; }.fresh-loading-sheet:last-of-type { break-after: auto; }.fresh-loading-customer { break-inside: avoid; } }
.fresh-parse-ignored { color: #64748b; background: #f1f5f9; }
.fresh-portal-tabs { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0 -16px 14px; padding: 8px 16px; background: var(--fresh-bg, #F5F6F3); border-bottom: 1px solid var(--fresh-line, #E3E6E1); }.fresh-portal-tabs button { border: 1px solid var(--fresh-line, #E3E6E1); background: #fff; border-radius: 10px; padding: 10px 4px; font-weight: 500; color: var(--fresh-ink, #1B2420); }.fresh-portal-tabs button[aria-selected="true"] { background: var(--fresh-brand, #1E6B47); border-color: var(--fresh-brand, #1E6B47); color: #fff; }
.fresh-portal-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }.fresh-portal-chips::-webkit-scrollbar { display: none; }.fresh-portal-chips button { flex: 0 0 auto; border: 1px solid var(--fresh-line, #E3E6E1); background: #fff; border-radius: 999px; padding: 6px 14px; font-size: 14px; color: var(--fresh-ink, #1B2420); white-space: nowrap; }.fresh-portal-chips button[aria-pressed="true"] { background: var(--fresh-brand-soft, #E6F0EA); border-color: var(--fresh-brand, #1E6B47); color: var(--fresh-brand, #1E6B47); font-weight: 700; }
.fresh-portal-product { grid-template-columns: minmax(0, 1fr) 140px 72px; }.fresh-portal-stepper .btn { width: 40px; padding-left: 0; padding-right: 0; font-size: 18px; line-height: 1; }.fresh-portal-stepper input { -moz-appearance: textfield; padding-left: 2px; padding-right: 2px; }.fresh-portal-stepper input::-webkit-outer-spin-button, .fresh-portal-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }.fresh-portal-typed { white-space: pre-line; background: var(--fresh-bg, #F5F6F3); border-radius: 8px; padding: 8px 10px; }
@media (max-width: 400px) { .fresh-portal-product { grid-template-columns: minmax(0, 1fr) 124px 56px; } .fresh-portal-stepper .btn { width: 34px; } }
@media (hover: hover) and (pointer: fine) { .fresh-portal-chips { flex-wrap: wrap; overflow-x: visible; } }
@media (hover: none), (pointer: coarse) { .fresh-portal-chips { -webkit-mask-image: linear-gradient(to right, #000 85%, transparent); mask-image: linear-gradient(to right, #000 85%, transparent); padding-right: 24px; } }
.fresh-portal-tabs { grid-template-columns: repeat(4, 1fr); }.fresh-portal-tabs button { font-size: 14px; padding-left: 2px; padding-right: 2px; }.fresh-portal-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }.fresh-portal-thumbs img { width: 88px; height: 88px; object-fit: cover; border-radius: 8px; border: 1px solid var(--fresh-line, #E3E6E1); }.fresh-portal-order-photo { width: 120px; max-height: 160px; object-fit: cover; border-radius: 8px; border: 1px solid var(--fresh-line, #E3E6E1); }
.fresh-demand-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }.fresh-demand-toolbar input { width: 200px; }.fresh-demand-jump { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 300px; }.fresh-demand-jump a { border: 1px solid var(--fresh-line, #E3E6E1); background: #fff; border-radius: 999px; padding: 3px 12px; font-size: 13px; color: var(--fresh-ink, #1B2420); text-decoration: none; white-space: nowrap; }.fresh-demand-jump a span { color: var(--fresh-muted); }.fresh-demand-jump a:hover { border-color: var(--fresh-brand, #1E6B47); color: var(--fresh-brand, #1E6B47); }
.fresh-demand-group { scroll-margin-top: 16px; }.fresh-demand-group .fresh-panel-heading { margin-bottom: 10px; }.fresh-demand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; align-items: start; }
.fresh-demand-card { border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; background: #fff; }.fresh-demand-card summary { display: block; cursor: pointer; list-style: none; padding: 10px 12px; }.fresh-demand-card summary::-webkit-details-marker { display: none; }.fresh-demand-card[open] summary { background: #f8fafc; border-bottom: 1px solid #e2e8f0; }.fresh-demand-card:hover { border-color: var(--fresh-brand, #1E6B47); }
.fresh-demand-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }.fresh-demand-card-head strong { font-size: 15px; min-width: 0; overflow-wrap: anywhere; }.fresh-demand-card .fresh-demand-total { font-size: 17px; }.fresh-demand-card-meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 2px; color: var(--fresh-muted); font-size: 12px; }.fresh-demand-card-meta span { white-space: nowrap; color: var(--fresh-brand, #1E6B47); }.fresh-demand-card .fresh-demand-customers { padding: 6px 12px 8px; }
.fresh-permission-none { color: var(--fresh-muted, #5B6660); }.fresh-permission-view { color: #8a5a00; }.fresh-permission-edit { color: var(--fresh-brand, #1E6B47); font-weight: 600; }
.fresh-loading-trucks a { flex: 0 0 auto; border: 1px solid var(--fresh-line, #E3E6E1); background: #fff; border-radius: 999px; padding: 6px 14px; font-size: 14px; color: var(--fresh-ink, #1B2420); text-decoration: none; white-space: nowrap; }.fresh-loading-trucks a span { color: var(--fresh-muted, #5B6660); margin-left: 4px; }.fresh-loading-trucks a.on { background: var(--fresh-brand-soft, #E6F0EA); border-color: var(--fresh-brand, #1E6B47); color: var(--fresh-brand, #1E6B47); font-weight: 700; }.fresh-loading-trucks a.unassigned { border-style: dashed; }
.fresh-portal-chips button.on { background: var(--fresh-brand-soft, #E6F0EA); border-color: var(--fresh-brand, #1E6B47); color: var(--fresh-brand, #1E6B47); font-weight: 700; }
.fresh-loading-assign { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; }
.fresh-loading-line { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; width: 100%; text-align: left; background: #fff; border: 0; border-bottom: 1px solid #eef2f7; padding: 10px 4px; font-size: 16px; color: var(--fresh-ink, #1B2420); }.fresh-loading-line:disabled { opacity: 1; cursor: default; }
.fresh-loading-line .tick { width: 26px; height: 26px; border: 2px solid #9aa39e; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; }
.fresh-loading-line.checked .tick { background: var(--fresh-brand, #1E6B47); border-color: var(--fresh-brand, #1E6B47); }.fresh-loading-line.checked .tick::after { content: "✓"; color: #fff; font-weight: 700; }
.fresh-loading-line.checked .name, .fresh-loading-line.checked .amount { color: var(--fresh-muted, #5B6660); text-decoration: line-through; }
.fresh-loading-line .amount { font-weight: 700; white-space: nowrap; }.fresh-loading-line .who { color: var(--fresh-muted, #5B6660); font-size: 13px; white-space: nowrap; }
.fresh-loading-line.failed { background: #fdecea; }
.fresh-loading-customer-card { border: 1px solid #e2e8f0; border-radius: 10px; margin-bottom: 8px; padding: 0 10px; }.fresh-loading-customer-card summary { display: flex; gap: 10px; align-items: center; padding: 10px 0; cursor: pointer; list-style: none; }.fresh-loading-customer-card summary::-webkit-details-marker { display: none; }.fresh-loading-customer-card.done { background: #f3f8f5; border-color: #b9d6c5; }.fresh-loading-customer-card.done summary strong { color: var(--fresh-muted, #5B6660); text-decoration: line-through; }.fresh-loading-basket { flex: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 0; display: inline-flex; align-items: center; justify-content: center; }.fresh-loading-basket:disabled { opacity: 1; cursor: default; }.fresh-loading-basket .tick { width: 32px; height: 32px; border: 2px solid #9aa39e; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: #fff; }.fresh-loading-basket.checked .tick, .fresh-loading-customer-card.done .fresh-loading-basket .tick { background: var(--fresh-brand, #1E6B47); border-color: var(--fresh-brand, #1E6B47); }.fresh-loading-basket.checked .tick::after, .fresh-loading-customer-card.done .fresh-loading-basket .tick::after { content: "✓"; color: #fff; font-weight: 700; font-size: 18px; }
@media (max-width: 480px) { .fresh-loading-line { grid-template-columns: 34px minmax(0, 1fr) auto; } .fresh-loading-line .who { display: none; } }
.fresh-add-unit-dialog { border: 1px solid var(--fresh-line, #E3E6E1); border-radius: 12px; padding: 18px; width: min(92vw, 380px); }.fresh-add-unit-dialog::backdrop { background: rgba(15, 23, 42, .35); }
.fresh-sort-list { list-style: none; margin: 0; padding: 0; }.fresh-sort-item { display: flex; align-items: center; gap: 10px; padding: 10px 6px; border-bottom: 1px solid #eef2f7; background: #fff; }.fresh-sort-item:last-child { border-bottom: 0; }.fresh-sort-item[draggable="true"] { cursor: grab; }.fresh-sort-item.dragging { opacity: .5; background: #f3f8f5; }.fresh-sort-handle { color: #9aa39e; font-size: 18px; line-height: 1; }
