:root {
  color-scheme: light;
  font-family: Inter, Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1b3144;
  background: #f4f7f6;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: radial-gradient(circle at 5% 0%, #dff2ea 0, transparent 23rem), #f4f7f6;
}

button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 3px solid rgba(10, 156, 104, .28); outline-offset: 2px; }

.app-shell {
  position: relative;
  width: min(100%, 460px);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: #f6f8f8;
  box-shadow: 0 0 48px rgba(31, 64, 82, .10);
}

.screen { animation: screen-in .25s ease both; }
.is-hidden { display: none !important; }

/* Invitation screen */
.login-card { min-height: 100vh; padding: max(34px, 8vh) 28px 26px; display: grid; align-content: center; background: rgba(255, 255, 255, .88); }
.brand { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 24px; color: #0c9c68; background: #e5f6ee; border-radius: 22px; }
.brand-mark { width: 45px; height: 45px; }
.heading { text-align: center; }
.eyebrow, .role-label { margin: 0 0 6px; color: #0a9562; font-size: 10px; font-weight: 800; letter-spacing: .11em; }
.heading h1, .app-header h1, .detail-header h1 { margin: 0; font-size: 30px; line-height: 1.1; letter-spacing: -.045em; }
.intro { max-width: 290px; margin: 12px auto 0; color: #64758a; font-size: 15px; line-height: 1.5; }
.login-card form { margin-top: 31px; }
.field-label { display: block; margin-bottom: 9px; font-size: 13px; font-weight: 700; }
.input-wrap { position: relative; }
.input-wrap input { width: 100%; height: 54px; padding: 0 48px 0 15px; color: #17283e; background: #fff; border: 1px solid #dbe3e9; border-radius: 15px; outline: none; font-size: 15px; transition: border-color .18s, box-shadow .18s, background .18s; }
.input-wrap input::placeholder { color: #a4afbc; font-size: 13px; }
.input-wrap input:focus { border-color: #0a9c68; box-shadow: 0 0 0 4px rgba(10, 156, 104, .13); }
.input-icon { position: absolute; top: 50%; right: 16px; width: 20px; height: 20px; color: #8a9aab; transform: translateY(-50%); pointer-events: none; }
.input-icon svg { width: 100%; height: 100%; }
.feedback { min-height: 20px; margin: 7px 2px 0; color: #df4d62; font-size: 12px; font-weight: 600; }
.input-error input { border-color: #df4d62; background: #fff8f8; box-shadow: 0 0 0 4px rgba(223, 77, 98, .11); }
.input-error { animation: shake .32s ease-in-out; }
.primary-button { width: 100%; min-height: 54px; margin-top: 10px; border: 0; border-radius: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; color: #fff; background: #08a567; box-shadow: 0 8px 16px rgba(8, 165, 103, .23); font-size: 15px; font-weight: 800; }
.primary-button svg { width: 19px; height: 19px; }
.primary-button:hover:not(:disabled) { background: #078e59; }
.primary-button:disabled { color: #9daab5; background: #e8edef; box-shadow: none; cursor: not-allowed; }
.helper { margin: 23px 10px 0; color: #718096; text-align: center; font-size: 12px; line-height: 1.45; }
.prototype-note { margin: 24px 0 0; color: #94a0ac; text-align: center; font-size: 11px; }
.prototype-note span { color: #0a9c68; }

/* Orders dashboard */
.app-screen, .profile-screen { min-height: 100vh; padding: 20px 16px calc(102px + env(safe-area-inset-bottom)); overflow-y: auto; }
.app-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }
.app-header:has(#owner-analytics-back-to-actions), .app-header:has(#owner-analytics-home) { justify-content: flex-start; gap: 10px; }
.app-header h1 { font-size: 26px; }
.role-label { margin-bottom: 3px; font-size: 8px; }
.avatar { display: grid; place-items: center; width: 43px; height: 43px; color: #187d64; background: linear-gradient(135deg, #ddf4ea, #bde8dc); border: 1px solid #c0e6db; border-radius: 50%; }
.avatar svg { width: 31px; height: 31px; }
.filter-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; margin-bottom: 9px; }
.order-filter-controls { min-width: 0; display: flex; align-items: center; gap: 12px; }
.order-filters-toggle { min-height: 34px; padding: 0 11px; display: inline-flex; align-items: center; gap: 7px; appearance: none; border: 1px solid #e0e7e8; border-radius: 9px; color: #344e62; background: #fff; font: inherit; font-size: 12px; font-weight: 750; cursor: pointer; }
.order-filters-toggle span { color: #8394a2; transition: transform .18s ease; }
.order-filters-toggle[aria-expanded="true"] span { transform: rotate(180deg); }
.order-filters-menu { max-height: 0; margin: 0 0 0 0; padding: 0 10px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 12px; overflow: hidden; opacity: 0; background: #fff; border: 0 solid #e1e9e9; border-radius: 12px; transition: max-height .2s ease, opacity .18s ease, margin .2s ease, padding .2s ease, border-width .2s ease; }
.order-filters-menu.is-expanded { max-height: 180px; margin: 0 0 10px; padding: 7px 10px; opacity: 1; border-width: 1px; }
.order-filters-menu label { min-height: 34px; display: flex; align-items: center; gap: 7px; color: #657787; font-size: 11px; font-weight: 650; }
.order-filters-menu input { appearance: none; width: 17px; height: 17px; margin: 0; flex: 0 0 17px; display: grid; place-items: center; border: 1px solid #b8c9c7; border-radius: 5px; background: #fff; }
.order-filters-menu input:checked { border-color: #09a366; background: #09a366; }
.order-filters-menu input:checked::after { width: 8px; height: 8px; content: ""; border: 1px solid #fff; border-radius: 2px; }
.date-picker { position: relative; }
.date-trigger { min-height: 34px; padding: 0 10px 0 11px; display: inline-flex; align-items: center; gap: 5px; color: #344e62; background: #fff; border: 1px solid #e0e7e8; border-radius: 9px; font-size: 12px; font-weight: 750; }
.date-trigger svg { width: 14px; }
.orders-count { justify-self: end; color: #8795a2; font-size: 11px; font-weight: 650; white-space: nowrap; }
.date-menu { position: absolute; z-index: 10; top: 40px; left: 0; width: 170px; padding: 5px; background: #fff; border: 1px solid #e0e7e9; border-radius: 12px; box-shadow: 0 12px 28px rgba(31, 64, 82, .14); }
.date-menu button { width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; color: #2c465d; text-align: left; background: transparent; font-size: 12px; font-weight: 650; }
.date-menu button:hover { color: #078e59; background: #eef8f4; }
.period-panel { margin: 0 0 9px; padding: 9px; display: grid; grid-template-columns: 1fr 1fr auto; gap: 6px; align-items: end; background: #eef7f3; border-radius: 11px; }
.period-panel label { display: block; margin: 0 0 3px 2px; color: #657b8d; font-size: 9px; font-weight: 700; }
.period-panel input { width: 100%; height: 33px; min-width: 0; padding: 0 5px; border: 1px solid #dce7e6; border-radius: 8px; color: #324b5f; background: #fff; font-size: 10px; }
.period-panel button { height: 33px; padding: 0 9px; border: 0; border-radius: 8px; color: #fff; background: #0a9c68; font-size: 10px; font-weight: 800; }
.status-tabs { display: flex; justify-content: space-between; margin: 0 0 10px; padding: 0; border-bottom: 1px solid #e3e9ea; }
.status-tabs button { position: relative; flex: 1 1 0; min-height: 32px; padding: 0 3px; border: 0; color: #7a8996; background: transparent; font-size: 11px; font-weight: 700; line-height: 1; white-space: nowrap; transition: color .18s ease; }
.status-tabs button.active { color: #07945f; font-weight: 800; }
.status-tabs button.active::after { position: absolute; right: 11px; bottom: -1px; left: 11px; height: 2px; content: ""; background: #09a366; border-radius: 2px 2px 0 0; }
.orders-list { display: grid; gap: 8px; }
.courier-history-summary { width: 100%; padding: 13px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; background: #e8edef; border-radius: 13px; }
.courier-history-summary > div + div { padding-left: 12px; border-left: 1px solid #d6dfe1; }
.courier-history-summary p { margin: 0 0 5px; color: #647685; font-size: 11px; font-weight: 700; }
.accountant-period { margin: 0 0 18px; }
.accountant-stats-title { margin: 0 0 12px; color: #263f52; font-size: 18px; font-weight: 800; }
.accountant-stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.accountant-stat-card { min-width: 0; padding: 13px; border: 1px solid #d9e1e3; border-radius: 13px; background: transparent; }
.accountant-stat-label { margin: 0 0 7px; color: #647685; font-size: 11px; font-weight: 700; line-height: 1.3; }
.accountant-stat-value { display: block; color: #263f52; font-size: 23px; font-weight: 800; line-height: 1.15; overflow-wrap: anywhere; }
.accountant-stat-comparison { margin: 7px 0 0; font-size: 10px; font-weight: 700; line-height: 1.25; }
.accountant-stat-comparison.is-up { color: #078e59; }
.accountant-stat-comparison.is-down { color: #c54747; }
.accountant-dashboard-section { min-width: 0; margin-top: 22px; }
.accountant-dashboard-section-title { margin: 0; color: #263f52; font-size: 16px; font-weight: 800; }
.accountant-dashboard-section-subtitle { margin: 4px 0 12px; color: #71818d; font-size: 11px; line-height: 1.35; }
.accountant-orders-dynamics { display: grid; gap: 9px; }
.accountant-orders-dynamics-row { min-width: 0; display: grid; grid-template-columns: 58px minmax(0, 1fr) 24px; align-items: center; gap: 10px; }
.accountant-orders-dynamics-date { min-width: 0; display: grid; gap: 1px; color: #344e62; font-size: 11px; line-height: 1.15; }
.accountant-orders-dynamics-date small { color: #71818d; font-size: 9px; }
.accountant-orders-dynamics-track { height: 7px; min-width: 0; overflow: hidden; border-radius: 99px; background: #e8edef; }
.accountant-orders-dynamics-track span { height: 100%; display: block; border-radius: inherit; background: #078e59; transition: width .2s ease; }
.accountant-orders-dynamics-count { color: #263f52; font-size: 12px; font-weight: 800; text-align: right; }
.accountant-dashboard-status { min-width: 0; margin-top: 22px; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 11px; }
.accountant-dashboard-status-icon { width: 22px; height: 22px; display: grid; place-items: center; color: #078e59; }
.accountant-dashboard-status-icon svg { width: 22px; height: 22px; }
.accountant-dashboard-status-copy { min-width: 0; display: grid; gap: 4px; }
.accountant-dashboard-status-copy h2, .accountant-dashboard-status-copy strong { margin: 0; color: #263f52; font-size: 13px; font-weight: 800; line-height: 1.25; }
.accountant-dashboard-status-copy p, .accountant-dashboard-status-copy small { margin: 0; color: #71818d; font-size: 10px; font-weight: 500; line-height: 1.35; }
.accountant-dashboard-status > strong { min-width: 24px; color: #263f52; font-size: 19px; font-weight: 800; text-align: right; }
.accountant-dashboard-activity { min-width: 0; margin-top: 20px; }
.accountant-activity-toggle { width: 100%; min-width: 0; padding: 0; display: grid; grid-template-columns: 22px minmax(0, 1fr) 18px; align-items: center; gap: 11px; border: 0; color: inherit; background: transparent; font: inherit; text-align: left; cursor: pointer; }
.accountant-activity-clock { width: 21px; height: 21px; color: #71818d; }
.accountant-activity-chevron { width: 18px; height: 18px; color: #71818d; transition: transform .18s ease; }
.accountant-activity-toggle[aria-expanded="true"] .accountant-activity-chevron { transform: rotate(180deg); }
.accountant-activity-toggle .accountant-dashboard-status-copy strong { font-size: 13px; }
.accountant-activity-list { margin-top: 11px; display: grid; }
.accountant-activity-item { width: 100%; min-width: 0; padding: 10px 0; display: grid; grid-template-columns: minmax(0, 1fr) 18px; align-items: center; gap: 8px; border: 0; border-bottom: 1px solid #e8edef; color: #344e62; background: transparent; font: inherit; text-align: left; cursor: pointer; }
.accountant-activity-item > span { min-width: 0; display: grid; gap: 4px; }
.accountant-activity-item strong { color: #344e62; font-size: 11px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.accountant-activity-item time { color: #71818d; font-size: 9px; }
.accountant-activity-item > svg { width: 17px; height: 17px; color: #8b9aa4; }
.accountant-activity-empty, .accountant-dashboard-inline-error { margin: 0; padding: 8px 0; color: #71818d; font-size: 11px; line-height: 1.4; }
.accountant-analytics-menu { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.accountant-analytics-tile { min-width: 0; min-height: 112px; padding: 14px; display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 11px; border: 1px solid #d9e1e3; border-radius: 16px; color: #344e62; background: #fff; text-align: left; }
.accountant-analytics-tile svg { width: 30px; height: 30px; color: #078e59; }
.accountant-analytics-tile-copy { min-width: 0; display: grid; gap: 5px; }
.accountant-analytics-tile-copy strong { color: #263f52; font-size: 14px; font-weight: 800; }
.accountant-analytics-tile-copy small { color: #71818d; font-size: 10px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.accountant-analytics-detail-header { align-items: center; }
.accountant-analytics-detail-header h1 { min-width: 0; margin: 0; font-size: 22px; }
.accountant-payments-panel { min-width: 0; }
.accountant-payments-period { margin-bottom: 12px; }
.accountant-payment-metrics { min-width: 0; margin-bottom: 17px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.accountant-payment-metrics article { min-width: 0; padding: 10px 12px; display: grid; gap: 5px; border: 1px solid #d9e1e3; border-radius: 12px; background: transparent; }
.accountant-payment-metrics span { color: #71818d; font-size: 10px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.accountant-payment-metrics strong { color: #263f52; font-size: 20px; font-weight: 800; line-height: 1.1; }
.accountant-payment-empty { margin: 0 0 14px; padding: 9px 0; color: #71818d; font-size: 12px; line-height: 1.4; text-align: center; }
.accountant-payment-bars-section { min-width: 0; margin-top: 19px; }
.accountant-payment-bars-section h2 { margin: 0 0 12px; color: #263f52; font-size: 15px; font-weight: 800; line-height: 1.3; }
.accountant-payment-bars { min-width: 0; display: grid; gap: 13px; }
.accountant-payment-bar-row { min-width: 0; display: grid; gap: 6px; }
.accountant-payment-bar-heading { min-width: 0; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; color: #344e62; font-size: 11px; line-height: 1.3; }
.accountant-payment-bar-heading span { min-width: 0; overflow-wrap: anywhere; }
.accountant-payment-bar-heading strong { flex: 0 0 auto; color: #263f52; font-size: 12px; font-weight: 800; }
.accountant-payment-bar-track { height: 8px; min-width: 0; overflow: hidden; border-radius: 99px; background: #e8edef; }
.accountant-payment-bar-track span { height: 100%; display: block; border-radius: inherit; background: #078e59; transition: width .2s ease; }
.accountant-payment-layout { min-width: 0; padding: 13px 10px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 10px; border: 1px solid #d9e1e3; border-radius: 13px; background: transparent; }
.accountant-payment-chart-wrap { min-width: 0; display: grid; place-items: center; }
.accountant-payment-chart { position: relative; width: min(100%, 156px); aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(#aeb9c1 0 100%); }
.accountant-payment-chart-center { position: absolute; inset: 21%; display: grid; align-content: center; justify-items: center; gap: 3px; border-radius: 50%; color: #647685; background: #fff; text-align: center; }
.accountant-payment-chart-center span { font-size: 9px; font-weight: 700; line-height: 1.2; }
.accountant-payment-chart-center strong { color: #263f52; font-size: 20px; font-weight: 800; line-height: 1.1; }
.accountant-payment-legend { min-width: 0; display: grid; gap: 12px; }
.accountant-payment-legend-item { min-width: 0; display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: 6px; color: #344e62; font-size: 10px; line-height: 1.25; }
.accountant-payment-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--payment-category-color); }
.accountant-payment-legend-label { min-width: 0; overflow-wrap: anywhere; font-size: 12px; }
.accountant-payment-legend-item strong { color: #263f52; font-size: 12px; font-weight: 800; white-space: nowrap; }
.accountant-analytics-placeholder { margin-top: 0; padding: 14px; color: #647685; font-size: 12px; text-align: center; }
.accountant-branches-panel, .accountant-branch-overview, .accountant-branch-detail { min-width: 0; }
.accountant-branch-list { min-width: 0; display: grid; gap: 10px; }
.accountant-branch-card { min-width: 0; padding: 14px; display: grid; gap: 13px; border: 1px solid #d9e1e3; border-radius: 14px; background: #fff; box-shadow: 0 3px 10px rgba(31, 64, 82, .04); cursor: pointer; }
.accountant-branch-card h2 { margin: 0; color: #263f52; font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }
.accountant-branch-card-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.accountant-branch-card-metrics div { min-width: 0; display: grid; gap: 5px; }
.accountant-branch-card-metrics span, .accountant-branch-metric p { margin: 0; color: #71818d; font-size: 12px; font-weight: 650; }
.accountant-branch-card-metrics strong { color: #263f52; font-size: 19px; font-weight: 800; }
.accountant-branch-share { height: 8px; overflow: hidden; border-radius: 99px; background: #e8edef; }
.accountant-branch-share span { height: 100%; display: block; border-radius: inherit; background: #078e59; transition: width .2s ease; }
.accountant-branch-empty { margin: 10px 0; color: #71818d; font-size: 13px; text-align: center; }
.accountant-branch-detail { display: grid; gap: 11px; }
.accountant-period.date-picker.accountant-branch-period { margin-bottom: 0; }
#accountant-branch-detail > .detail-header { margin-bottom: 0; }
.accountant-branch-detail-header { min-width: 0; display: flex; align-items: center; gap: 10px; }
.accountant-branch-detail-header h2 { min-width: 0; margin: 0; color: #1d374b; font-size: 18px; overflow-wrap: anywhere; }
.accountant-branch-metrics-grid { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.accountant-branch-metric, .accountant-branch-chart-card { min-width: 0; padding: 13px; border: 1px solid #d9e1e3; border-radius: 13px; background: transparent; }
.accountant-branch-metric p { margin-bottom: 7px; }
.accountant-branch-metric strong { display: block; color: #263f52; font-size: 23px; font-weight: 800; line-height: 1.15; overflow-wrap: anywhere; }
.accountant-branch-average { grid-column: 1 / -1; }
.accountant-branch-chart-card h2, .accountant-branch-payments h2 { margin: 0 0 10px; color: #1d374b; font-size: 16px; }
.accountant-branch-chart { min-width: 0; width: 100%; }
.accountant-branch-chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.accountant-branch-chart-y-label { fill: #71818d; font-size: 10px; }
.accountant-branch-chart-day { fill: #52687a; font-size: 10px; font-weight: 650; }
.accountant-branch-chart-date { fill: #71818d; font-size: 10px; }
.accountant-branch-chart-area { fill: url(#accountant-branch-week-fill); }
.accountant-branch-chart-line { fill: none; stroke: #078e59; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.accountant-branch-chart circle { fill: #078e59; stroke: #fff; stroke-width: 1.5; }
.accountant-branch-payments { min-width: 0; }
.accountant-branch-payment-layout { grid-template-columns: minmax(104px, .85fr) minmax(0, 1.15fr); gap: 8px; padding: 10px; }
.accountant-branch-payment-layout .accountant-payment-chart { width: min(100%, 124px); }
.accountant-branch-payment-layout .accountant-payment-chart-center span { font-size: 8px; }
.accountant-branch-payment-layout .accountant-payment-chart-center strong { font-size: 17px; }
.accountant-branch-payment-layout .accountant-payment-legend { gap: 9px; }
.accountant-branch-payment-layout .accountant-payment-legend-item { grid-template-columns: 9px minmax(0, 1fr) auto; gap: 4px; font-size: 9px; }
.accountant-couriers-panel { min-width: 0; display: grid; gap: 11px; }
.accountant-courier-period { margin: 0; }
.accountant-courier-metric, .accountant-courier-chart-card { min-width: 0; padding: 13px; border: 1px solid #d9e1e3; border-radius: 13px; background: transparent; }
.accountant-courier-metrics-grid { min-width: 0; margin-top: 10px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.accountant-courier-metric { margin-bottom: 10px; }
.accountant-courier-chart-card { margin-bottom: 10px; }
.accountant-courier-metric p { margin: 0 0 7px; color: #647685; font-size: 12px; font-weight: 700; }
.accountant-courier-metric > strong { display: block; color: #263f52; font-size: 23px; font-weight: 800; line-height: 1.15; overflow-wrap: anywhere; }
.accountant-courier-chart-card h2, .accountant-courier-list-section h2 { margin: 0 0 12px; color: #1d374b; font-size: 16px; }
.accountant-courier-chart-scroll { min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; }
.accountant-courier-chart { width: max-content; min-width: 100%; min-height: 190px; padding: 8px 2px 0; display: flex; align-items: stretch; gap: 13px; }
.accountant-courier-bar-column { width: 46px; flex: 0 0 46px; display: grid; grid-template-rows: 18px minmax(0, 1fr) 25px; justify-items: center; gap: 4px; }
.accountant-courier-bar-count { color: #647685; font-size: 10px; font-weight: 700; }
.accountant-courier-bar-track { width: 100%; min-height: 125px; display: flex; align-items: flex-end; justify-content: center; }
.accountant-courier-bar { width: 25px; min-height: 4px; border-radius: 8px 8px 2px 2px; background: #09a366; }
.accountant-courier-bar-name { width: 100%; color: #52687a; font-size: 10px; font-weight: 700; text-align: center; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }
.accountant-courier-chart-empty, .accountant-courier-list-empty { padding: 12px; color: #71818d; font-size: 12px; text-align: center; }
.accountant-courier-list-section { min-width: 0; }
.accountant-courier-list { display: grid; gap: 8px; }
.accountant-courier-card { min-width: 0; padding: 10px; display: flex; align-items: center; gap: 10px; border: 1px solid #d9e1e3; border-radius: 13px; background: #fff; }
.accountant-courier-card { cursor: pointer; }
.accountant-courier-card:hover, .accountant-courier-card:focus-visible { border-color: #9bcdb6; outline: none; }
.accountant-courier-avatar { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border-radius: 50%; color: #078e59; background: #edf7f2; }
.accountant-courier-avatar svg { width: 23px; height: 23px; }
.accountant-courier-card-copy { min-width: 0; flex: 1 1 auto; display: grid; gap: 3px; }
.accountant-courier-card-copy strong { min-width: 0; color: #263f52; font-size: 12px; line-height: 1.3; overflow-wrap: anywhere; }
.accountant-courier-card-copy small { color: #71818d; font-size: 10px; }
.accountant-courier-card-pay { max-width: 42%; flex: 0 0 auto; color: #078e59; font-size: 12px; font-weight: 800; text-align: right; overflow-wrap: anywhere; }
.accountant-courier-detail { min-width: 0; display: grid; gap: 11px; }
.accountant-courier-detail-header { min-width: 0; display: flex; align-items: center; gap: 10px; }
#accountant-courier-detail > .detail-header { margin-bottom: 12px; }
.accountant-courier-detail-header h2 { min-width: 0; margin: 0; color: #1d374b; font-size: 18px; overflow-wrap: anywhere; }
.accountant-courier-detail-metrics { min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.accountant-courier-detail-metric { min-width: 0; padding: 9px 7px; border: 1px solid #d9e1e3; border-radius: 12px; }
.accountant-courier-detail-metric p { margin: 0 0 6px; color: #647685; font-size: 10px; font-weight: 700; line-height: 1.2; }
.accountant-courier-detail-metric strong { display: block; color: #263f52; font-size: 16px; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.accountant-courier-detail-metric.is-inactive p, .accountant-courier-detail-metric.is-inactive strong { color: #9aa6ae; }
.accountant-courier-deliveries { min-width: 0; }
.accountant-courier-deliveries h2 { margin: 0 0 10px; color: #1d374b; font-size: 16px; }
.accountant-courier-detail-orders { min-width: 0; display: grid; gap: 9px; }
.accountant-courier-detail-orders .courier-history-card { cursor: pointer; }
.accountant-courier-detail-orders .courier-history-income { justify-content: center; }
.accountant-courier-report-button { width: 100%; margin: 0 0 12px; display: flex; justify-content: center; align-items: center; gap: 8px; }
.accountant-courier-report-button svg { width: 19px; height: 19px; flex: 0 0 auto; }
.accountant-courier-order-search { margin-bottom: 10px; }
.accountant-courier-report-dialog form { display: grid; gap: 12px; }
.accountant-courier-report-dialog h2 { margin: 0; }
.accountant-courier-report-dialog .edit-field { margin: 0; }
.accountant-courier-report-dialog .dialog-actions { margin-top: 2px; }
.accountant-courier-report-dialog button:disabled { opacity: .65; }
.accountant-courier-order-heading { min-width: 0; display: flex; align-items: baseline; gap: 8px; }
.accountant-courier-order-heading h2 { min-width: 0; }
.accountant-courier-detail-empty { padding: 12px; color: #71818d; font-size: 12px; text-align: center; }
.courier-history-summary strong { color: #263f52; font-size: 15px; line-height: 1.25; }
.order-history-summary { margin-bottom: 12px; grid-template-columns: 1fr; }
.order-history-screen .search-field { margin-bottom: 12px; }
.order-history-card { cursor: pointer; }
.order-history-card:hover { border-color: #b9dccc; }
.order-history-detail-screen { padding-bottom: calc(32px + env(safe-area-inset-bottom)); }
.order-history-timeline { margin-top: 25px; }
.order-history-timeline h2 { margin: 0 0 16px; color: #1d374b; font-size: 18px; }
.order-history-timeline-list { position: relative; display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.order-history-timeline-list::before { position: absolute; top: 13px; bottom: 13px; left: 12px; width: 2px; background: #dfe8e4; content: ""; }
.order-history-event { position: relative; min-width: 0; margin: 0; padding: 0 0 20px 38px; }
.order-history-event:last-child { padding-bottom: 0; }
.order-history-event-icon { position: absolute; z-index: 1; top: 0; left: 0; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; }
.order-history-event-icon svg { width: 16px; height: 16px; }
.order-history-event.is-complete .order-history-event-icon { color: #fff; background: #078e59; }
.order-history-event.is-pending .order-history-event-icon { color: #8795a2; background: #edf1f2; }
.order-history-event-content { min-width: 0; display: grid; gap: 5px; padding-top: 2px; }
.order-history-event-content > strong { color: #263f52; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.order-history-event time, .order-history-event-waiting { color: #71818d; font-size: 12px; font-weight: 600; }
.order-history-event p { margin: 0; overflow-wrap: anywhere; color: #52687a; font-size: 12px; line-height: 1.4; }
.order-history-event-actor { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; }
.history-role, .history-actor, .history-branch, .history-after { font-weight: 800; }
.history-role-owner, .history-role-admin { color: #078e59; }
.history-role-florist { color: #a87012; }
.history-role-courier { color: #087a55; }
.history-role-accountant { color: #52687a; }
.history-actor, .history-branch { color: #263f52; }
.history-before { color: #df4d62; }
.history-after { color: #078e59; }
#order-history-more { width: 100%; margin-top: 10px; }
.courier-history-card { padding: 12px; background: #fff; border: 1px solid #e2e8ea; border-radius: 13px; box-shadow: 0 3px 10px rgba(31, 64, 82, .04); }
.courier-history-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
.courier-history-card h2 { margin: 0; color: #1a3448; font-size: 15px; line-height: 1.3; }
.courier-history-date { color: #71818d; font-size: 12px; font-weight: 650; }
.courier-history-address { margin: 5px 0 0; color: #52687a; font-size: 12px; line-height: 1.35; overflow-wrap: anywhere; }
.courier-history-duration { margin: 5px 0 0; color: #8795a2; font-size: 11px; line-height: 1.3; }
.courier-history-income { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 16px; text-align: right; white-space: nowrap; }
.courier-history-income span, .courier-history-income strong { color: #078e59; font-weight: 800; }
.courier-history-income span { font-size: 10px; }
.courier-history-income strong { font-size: 14px; }

/* Compact two-column order card */
.order-card { padding: 12px; background: #fff; border: 1px solid #e2e8ea; border-radius: 13px; box-shadow: 0 3px 10px rgba(31, 64, 82, .04); }
.order-card-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
.order-card-left { min-width: 0; }
.order-number-row { display: flex; align-items: center; gap: 6px; min-height: 17px; }
.order-number-row h2 { margin: 0; color: #1a3448; font-size: 14px; letter-spacing: -.01em; }
.comment-indicator { display: inline-flex; width: 16px; height: 16px; color: #a27428; }
.comment-indicator svg { width: 100%; height: 100%; }
.order-line, .courier-line { margin: 5px 0 0; display: flex; align-items: center; gap: 5px; min-width: 0; color: #52687a; font-size: 11px; line-height: 1.25; }
.order-line svg { flex: 0 0 auto; width: 14px; height: 14px; color: #8093a1; }
.courier-line .compact-courier-icon { width: 14px; height: 14px; flex: 0 0 14px; color: #8093a1; }
.courier-line .compact-courier-icon svg { width: 14px; height: 14px; }
.order-line span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-line time { color: #395369; font-weight: 700; }
.payment { margin-left: 2px; color: #98a4ad; }
.courier-line { color: #778997; }
.courier-line strong { overflow: hidden; color: #52687a; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.order-branch-line { margin: 5px 0 0; color: #71818d; font-size: 11px; font-weight: 700; line-height: 1.25; }
.order-card-right { min-width: 76px; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 5px; text-align: right; }
.order-card-date { color: #71818d; font-size: 11px; font-weight: 700; white-space: nowrap; }
.order-shop { max-width: 88px; overflow: hidden; color: #82909b; font-size: 10px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.delivery-price { color: #234759; font-size: 13px; line-height: 1; white-space: nowrap; }
.status-badge { padding: 4px 6px; border-radius: 6px; font-size: 9px; font-weight: 800; line-height: 1.15; white-space: nowrap; }
.status-new { color: #b86f17; background: #fff0cf; }
.status-progress { color: #5a54a5; background: #e8e7fb; }
.status-not-assigned { color: #b14867; background: #fde6ed; }
.status-waiting-courier { color: #a87012; background: #fff0cf; }
.status-with-courier { color: #087a55; background: #ddf4ea; }
.status-delivered { color: #72808c; background: #edf0f2; }
.courier-order-card { display: grid; gap: 11px; }
.courier-order-heading { min-width: 0; display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.courier-order-heading h2 { min-width: 0; margin: 0; color: #1a3448; font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.courier-order-heading .status-badge { flex: 0 0 auto; max-width: 50%; overflow: hidden; text-overflow: ellipsis; }
.courier-order-details { display: grid; gap: 8px; }
.courier-order-details p { min-width: 0; margin: 0; display: flex; align-items: start; gap: 7px; color: #52687a; font-size: 12px; line-height: 1.35; }
.courier-order-details .detail-icon { width: 17px; height: 17px; flex: 0 0 17px; color: #71818d; }
.courier-order-details .detail-icon svg { width: 17px; height: 17px; }
.courier-order-details span { min-width: 0; overflow-wrap: anywhere; }
.courier-order-details b { margin-right: 4px; color: #344e62; }
.courier-order-details .store-return-prompt-row { margin: 2px 0 0; padding: 8px 10px; display: block; color: #a87012; background: #fff0cf; border-radius: 9px; font-size: 12px; font-weight: 750; }
.store-return-prompt { margin: 0; padding: 10px 12px; color: #a87012; background: #fff0cf; border-radius: 11px; font-size: 13px; font-weight: 750; line-height: 1.4; }
.store-return-confirm-button { margin-top: 4px; }
.store-return-feedback { margin: 0 0 8px; }
.claim-order-button { width: 100%; min-width: 0; min-height: 42px; padding: 8px 12px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 12px; color: #fff; background: #09a366; box-shadow: 0 4px 9px rgba(9, 163, 102, .18); font-size: 13px; font-weight: 800; }
.claim-order-button:hover { background: #078e59; }
.claim-order-icon { width: 20px; height: 20px; flex: 0 0 20px; color: #fff; }
.claim-order-icon svg { width: 20px; height: 20px; color: #fff; }
.empty-state { margin-top: 48px; padding: 18px; text-align: center; }
.empty-icon { width: 40px; height: 40px; margin: 0 auto 11px; display: grid; place-items: center; color: #0a9c68; background: #e4f6ed; border-radius: 13px; font-size: 23px; }
.empty-state h2, .profile-card h2, .notice-card h2 { margin: 0; font-size: 17px; letter-spacing: -.025em; }
.empty-state p, .profile-card p, .notice-card p { margin: 6px 0 0; color: #728296; font-size: 12px; line-height: 1.5; }

/* Admin order details */
.details-screen { min-height: 100vh; padding: 30px 20px calc(166px + env(safe-area-inset-bottom)); overflow-y: auto; }
.details-screen.courier-details { padding-bottom: calc(330px + env(safe-area-inset-bottom)); }
.delivery-complete-screen { height: 100vh; height: 100dvh; min-height: 0; padding: max(74px, 13vh) 28px max(30px, env(safe-area-inset-bottom)); overflow: hidden; text-align: center; }
.delivery-complete-screen > div { height: 100%; min-height: 0; display: flex; flex-direction: column; align-items: center; }
.delivery-success-mark { position: relative; width: 120px; height: 120px; margin-bottom: 29px; display: grid; place-items: center; }
.delivery-success-halo, .delivery-success-check { position: absolute; border-radius: 50%; }
.delivery-success-halo { width: 100%; height: 100%; background: rgba(9, 163, 102, .20); }
.delivery-success-check { width: 90px; height: 90px; display: grid; place-items: center; color: #fff; background: #09a366; box-shadow: 0 8px 18px rgba(9, 163, 102, .25); font-size: 40px; font-weight: 800; line-height: 1; }
.delivery-complete-screen h1 { margin: 50px 0 0; color: #1d374b; font-size: 26px; letter-spacing: -.035em; }
.delivery-success-number { margin: 10px 0 27px; color: #71818d; font-size: 22px; font-weight: 700; }
.delivery-success-income { margin: 0; display: flex; align-items: center; gap: 7px; color: #078e59; font-size: 21px; }
.delivery-success-income strong { font-weight: 800; }
.delivery-success-icon { width: 26px; height: 26px; color: #078e59; }
.delivery-success-icon svg { width: 26px; height: 26px; }
.delivery-success-time-icon { width: 26px; height: 26px; flex: 0 0 26px; color: currentColor; }
.delivery-success-time-icon svg { width: 26px; height: 26px; }
.delivery-success-duration { margin-top: 26px; color: #71818d; }
.delivery-success-duration p { margin: 0 0 8px; font-size: 16px; font-weight: 700; }
.delivery-success-duration strong { display: inline-flex; align-items: center; gap: 7px; color: #52687a; font-size: 18px; }
.delivery-success-done { margin-top: auto; }
.details-header { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.details-heading { min-width: 0; display: flex; flex: 1; align-items: flex-start; justify-content: flex-start; flex-wrap: wrap; gap: 8px 10px; }
.details-header h1 { margin: 0; color: #1d374b; line-height: 1.15; letter-spacing: -.03em; white-space: nowrap; }
.details-title { flex: 0 0 auto; max-width: 100%; font-size: 20px; }
.details-status { display: flex; flex: 1 1 auto; justify-content: flex-start; gap: 6px; min-width: 0; max-width: 100%; }
.details-status .status-badge { max-width: 100%; padding: 7px 11px; border-radius: 999px; font-size: 12px; line-height: 1.2; white-space: normal; overflow-wrap: anywhere; }
.details-card { display: grid; gap: 15px; }
.detail-row { min-height: 48px; padding: 0; display: grid; gap: 13px; align-items: center; }
.details-card .detail-row { grid-template-columns: 25px minmax(0, 1fr); align-items: start; }
.detail-icon { display: grid; place-items: center; width: 25px; height: 25px; color: #71818d; }
.detail-icon svg { width: 21px; height: 21px; }
.detail-row p { margin: 0 0 5px; color: #6f7f8b; font-size: 14px; font-weight: 650; line-height: 1.25; }
.detail-row strong { display: block; color: #263f52; font-size: 17px; font-weight: 750; line-height: 1.32; overflow-wrap: anywhere; white-space: pre-line; }
.order-action-footer { position: fixed; z-index: 9; bottom: 0; left: 50%; width: min(100%, 460px); padding: 12px 20px max(12px, env(safe-area-inset-bottom)); background: rgba(246, 248, 248, .98); border-top: 1px solid #dfe7e8; transform: translateX(-50%); backdrop-filter: blur(10px); }
.call-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.florist-call-actions { display: grid; gap: 10px; margin-bottom: 10px; }
.florist-call-actions .call-actions { margin-bottom: 0; }
.call-order-button { min-width: 0; min-height: 42px; padding: 0 8px; display: flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid #078e59; border-radius: 12px; color: #078e59; background-color: #fff; background-image: none; box-shadow: none; font-size: 14px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.phone-button-icon { width: 20px; height: 20px; flex: 0 0 20px; color: currentColor; }
.phone-button-icon svg { width: 20px; height: 20px; color: currentColor; }
.phone-button-label { min-width: 0; white-space: nowrap; }
.call-order-button.is-disabled { color: #9ba8b1; background: #eef2f2; border-color: #e4ebeb; cursor: not-allowed; pointer-events: none; }
.detail-claim-order-button { min-height: 52px; }
.courier-order-actions { display: grid; gap: 10px; }
.courier-order-actions .call-actions { margin-bottom: 0; }
.courier-action-button { width: 100%; min-height: 46px; padding: 8px 12px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 12px; color: #fff; background: #09a366; font-size: 13px; font-weight: 800; }
.courier-action-button svg, .courier-action-icon { width: 20px; height: 20px; flex: 0 0 20px; color: #fff; }
.courier-action-icon svg { width: 20px; height: 20px; color: #fff; }
.courier-action-button.is-disabled { color: #9ba8b1; background: #e8edef; cursor: not-allowed; }
.courier-action-button.is-disabled svg { color: currentColor; }
.courier-release-button { color: #617383; background: #e8edef; }
.courier-problem-button { width: 100%; min-height: 42px; border: 0; color: #617383; background: transparent; font-size: 13px; font-weight: 750; text-decoration: underline; }
.edit-order-button { width: 100%; min-height: 52px; margin: 0; display: flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 14px; color: #fff; background: #09a366; box-shadow: 0 6px 13px rgba(9, 163, 102, .20); font-size: 13px; font-weight: 800; text-transform: uppercase; }
.edit-order-button svg { width: 18px; height: 18px; }
.order-management-actions { display: grid; gap: 12px; }
.order-management-actions .delete-order-button { margin-top: 0; }
.problem-cancel-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.problem-cancel-actions button { min-width: 0; min-height: 43px; padding: 0 8px; border-radius: 12px; font-size: 12px; font-weight: 800; text-transform: none; }
.problem-cancel-actions .problem-order-button { border: 0; color: #77500d; background: #fff0bf; }
.problem-cancel-actions .compact-cancel-button { color: #fff; background: #d95359; }
.status-problem { color: #ba4b55; background: #fbe6e8; }
.status-returned { color: #8c6c36; background: #f8efda; }
.status-cancelled { color: #7f6b70; background: #f1e9eb; }

/* Order edit form */
.edit-order-screen { min-height: 100vh; padding: 30px 20px calc(34px + env(safe-area-inset-bottom)); overflow-y: auto; }
.edit-order-screen .details-header { margin-bottom: 24px; }
.edit-order-screen .details-header h1 { font-size: 20px; }
.edit-order-form { display: grid; gap: 16px; }
.edit-field, .courier-assignment { display: grid; gap: 6px; }
.edit-field > span, .courier-assignment p { margin: 0; color: #6f7f8b; font-size: 14px; font-weight: 650; line-height: 1.25; }
.edit-field input, .edit-field textarea, .edit-field select { width: 100%; min-height: 47px; padding: 11px 12px; border: 1px solid #d7e2e4; border-radius: 12px; color: #263f52; background: #fff; font-size: 15px; line-height: 1.3; }
.edit-field textarea { min-height: 80px; resize: vertical; }
.problem-form { display: grid; gap: 14px; }
.problem-form > p { margin: 0; }
.problem-arrival-options { margin: 0 0 5px; padding: 12px; display: grid; gap: 9px; border: 1px solid #d7e2e4; border-radius: 12px; background: #fff; }
.problem-arrival-options > span { color: #6f7f8b; font-size: 14px; font-weight: 650; line-height: 1.25; }
.problem-arrival-options label { min-height: 37px; padding: 7px 9px; display: flex; align-items: center; gap: 8px; border-radius: 9px; color: #40596c; background: #f5f8f8; font-size: 12px; line-height: 1.3; }
.problem-arrival-options input { width: 17px; height: 17px; margin: 0; accent-color: #09a366; }
.edit-field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.courier-assignment { margin-top: 5px; padding-top: 16px; border-top: 1px solid #dfe7e8; }
.courier-assignment strong { color: #263f52; font-size: 16px; }
.assign-courier-button, .delete-order-button { width: 100%; min-height: 48px; border: 0; border-radius: 12px; font-size: 13px; font-weight: 800; text-transform: uppercase; }
.assign-courier-button { margin-top: 5px; color: #617383; background: #e8edef; }
.save-order-button { width: 100%; min-height: 52px; margin-top: 8px; border: 0; border-radius: 14px; color: #fff; background: #09a366; box-shadow: 0 6px 13px rgba(9, 163, 102, .20); font-size: 13px; font-weight: 800; text-transform: uppercase; }
.delete-order-button { margin-top: -4px; color: #c64652; background: #fbe7e9; }
.employee-actions { display: grid; gap: 16px; margin-top: 28px; }
.employee-deactivate-button { margin-top: 24px; }

/* Employee cards intentionally have no leading detail icon. */
#employee-card-screen .details-card .detail-row { grid-template-columns: minmax(0, 1fr); }

/* Employees */
.staff-screen { min-height: 100vh; padding: 30px 20px calc(34px + env(safe-area-inset-bottom)); overflow-y: auto; }
.staff-screen .detail-header { margin-bottom: 22px; }
.staff-screen .detail-header h1 { font-size: 20px; }
.staff-list { display: grid; gap: 10px; }
.staff-card { padding: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid #dce7e6; border-radius: 14px; background: #fff; }
.staff-card h2 { margin: 0; color: #263f52; font-size: 16px; }
.staff-card p, .staff-card small { display: block; margin: 4px 0 0; color: #6f7f8b; font-size: 13px; }
.staff-card a { flex: 0 0 auto; color: #078e59; font-size: 13px; font-weight: 750; text-decoration: none; }
.staff-loading { margin: 16px 0; color: #6f7f8b; text-align: center; font-size: 14px; }
.staff-add-button { margin-top: 18px; }
.staff-form { display: grid; gap: 16px; }
.date-choice { display: flex; flex-wrap: wrap; gap: 8px; }
.date-choice button { min-height: 34px; padding: 0 10px; border: 0; border-radius: 999px; color: #657787; background: #e8edef; font-size: 11px; font-weight: 750; }
.date-choice button.active { color: #fff; background: #09a366; }
.date-choice input { flex: 1 1 130px; min-width: 0; }
.staff-form input[readonly] { color: #6e7f8a; background: #eef2f2; }
.api-feedback { margin: 0 0 12px; color: #078e59; font-size: 13px; font-weight: 650; line-height: 1.4; }
.api-feedback.is-error { color: #c64652; }
.search-field { min-height: 46px; margin: 0 0 10px; padding: 0 13px; display: flex; align-items: center; gap: 8px; color: #82919c; background: #fff; border: 1px solid #dce7e6; border-radius: 13px; }
.search-field span { font-size: 22px; line-height: 1; }
.search-field input { width: 100%; border: 0; outline: 0; color: #263f52; background: transparent; font-size: 14px; }
.search-field input::placeholder { color: #98a7b1; }
.staff-filters { display: flex; gap: 8px; margin: 0 -20px 9px; padding: 0 20px 2px; overflow-x: auto; scrollbar-width: none; }
.staff-filters::-webkit-scrollbar { display: none; }
.staff-filters button { flex: 0 0 auto; min-height: 32px; padding: 0 11px; border: 0; border-radius: 999px; color: #657787; background: #e8edef; font-size: 11px; font-weight: 750; white-space: nowrap; }
.staff-filters button.active { color: #fff; background: #09a366; }
.staff-empty { margin: 18px 0; padding: 18px; text-align: center; background: #fff; border: 1px solid #dce7e6; border-radius: 14px; }
.staff-empty h2 { margin: 0; color: #263f52; font-size: 16px; }
.staff-empty p { margin: 6px 0 12px; color: #6f7f8b; font-size: 13px; }
.staff-empty button { border: 0; color: #078e59; background: transparent; font-size: 13px; font-weight: 750; }
.invitation-code { align-items: center; gap: 10px; min-width: 0; }
.invitation-code strong { min-width: 0; overflow-wrap: anywhere; }
.invitation-copy { width: auto; min-height: 36px; margin: 0; padding: 0 12px; flex: 0 0 auto; font-size: 11px; }
.delete-confirmation { width: min(calc(100% - 40px), 380px); padding: 22px; border: 0; border-radius: 18px; color: #263f52; background: #f6f8f8; box-shadow: 0 18px 42px rgba(31, 64, 82, .22); }
.delete-confirmation::backdrop { background: rgba(25, 48, 64, .38); }
.delete-confirmation h2 { margin: 0; font-size: 19px; letter-spacing: -.02em; }
.delete-confirmation p { margin: 9px 0 18px; color: #6f7f8b; font-size: 13px; line-height: 1.45; }
.order-notice-content { max-height: 54vh; margin: 14px 0 18px; display: grid; gap: 9px; overflow-y: auto; }
.order-notice-content .claim-summary { margin: 0; text-align: left; }
.order-notice-content .claim-summary p { margin: 0; overflow-wrap: anywhere; }
#order-problem-dialog { max-height: min(88vh, 720px); overflow-y: auto; }
.claim-confirmation { width: min(calc(100% - 40px), 380px); padding: 22px; border: 0; border-radius: 18px; color: #263f52; background: #f6f8f8; box-shadow: 0 18px 42px rgba(31, 64, 82, .22); }
.claim-confirmation::backdrop { background: rgba(25, 48, 64, .38); }
.claim-confirmation h2 { margin: 0; font-size: 22px; letter-spacing: -.025em; }
.claim-summary { display: grid; gap: 10px; margin: 18px 0; padding: 14px; background: #fff; border: 1px solid #e1e9eb; border-radius: 13px; }
.claim-summary > strong { font-size: 17px; }
.claim-summary p { display: grid; gap: 3px; margin: 0; color: #52687a; font-size: 13px; line-height: 1.35; }
.claim-summary b { color: #263f52; }
.claim-branch-message { margin: 0 0 18px; color: #52687a; font-size: 13px; line-height: 1.45; }
.claim-done-button { margin-top: 10px; }
.dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dialog-actions .secondary-action, .dialog-actions .delete-order-button { min-height: 46px; margin: 0; font-size: 12px; }

/* Bottom navigation */
.bottom-nav { position: fixed; z-index: 8; bottom: 0; left: 50%; width: min(100%, 460px); height: calc(72px + env(safe-area-inset-bottom)); padding: 5px 40px max(5px, env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr 76px 1fr; align-items: center; background: rgba(255, 255, 255, .98); border-top: 1px solid #dfe7e8; transform: translateX(-50%); backdrop-filter: blur(10px); }
.bottom-nav.courier-nav { grid-template-columns: 1fr 1fr; padding-right: 20px; padding-left: 20px; }
.bottom-nav.accountant-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-right: 12px; padding-left: 12px; }
.nav-item { min-width: 48px; min-height: 48px; padding: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border: 0; color: #8394a2; background: transparent; font-size: 10px; font-weight: 700; }
.nav-item svg { width: 19px; height: 19px; }
.nav-item.active { color: #078e59; }
.fab-wrapper { height: 62px; display: flex; align-items: center; justify-content: center; }
.add-button { width: 60px; height: 60px; padding: 0; display: flex; align-items: center; justify-content: center; border: 3px solid #f6f8f8; border-radius: 50%; color: #fff; background: #09a366; box-shadow: 0 4px 8px rgba(9, 105, 70, .20); transform: translateY(-9px); }
.add-button svg { width: 27px; height: 27px; }
.add-button:hover { background: #078e59; }

/* Profile and management sheet */
.detail-header { display: flex; align-items: center; gap: 12px; margin-bottom: 25px; }
.profile-screen .detail-header h1 { font-size: 22px; }
.back-button { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 11px; color: #264358; background: #fff; }
.back-button svg { width: 21px; }
.profile-card, .notice-card { padding: 23px 18px; text-align: center; background: #fff; border: 1px solid #e1e9eb; border-radius: 19px; }
.avatar-large { width: 68px; height: 68px; margin: 0 auto 12px; }
.avatar-large svg { width: 48px; height: 48px; }
.notice-card { margin-top: 13px; text-align: left; }
.notice-card h2 { font-size: 15px; }
.secondary-action { width: 100%; min-height: 47px; margin-top: 18px; border: 1px solid #d7e2e4; border-radius: 13px; color: #426176; background: #fff; font-size: 13px; font-weight: 750; }
.sheet-backdrop { position: fixed; z-index: 15; inset: 0; background: rgba(18, 41, 55, .34); }
.management-sheet { position: fixed; z-index: 16; bottom: 0; left: 50%; width: min(100%, 460px); padding: 10px 20px calc(24px + env(safe-area-inset-bottom)); background: #fff; border-radius: 25px 25px 0 0; box-shadow: 0 -12px 35px rgba(15, 48, 62, .13); transform: translateX(-50%); animation: sheet-in .24s ease both; }
.sheet-handle { width: 37px; height: 4px; margin: 0 auto 18px; background: #d6e0e2; border-radius: 999px; }
.sheet-heading { display: flex; align-items: start; justify-content: space-between; margin-bottom: 13px; }
.sheet-heading h2 { margin: 0; font-size: 22px; letter-spacing: -.035em; }
.close-sheet { width: 31px; height: 31px; padding: 0; border: 0; border-radius: 50%; color: #627589; background: #edf2f3; font-size: 24px; line-height: 1; }
.sheet-option { width: 100%; margin-top: 8px; padding: 12px; display: flex; align-items: center; gap: 11px; border: 1px solid #e2e9e9; border-radius: 13px; text-align: left; color: #264358; background: #fff; }
.option-icon { display: grid; place-items: center; width: 32px; height: 32px; color: #078e59; background: #e5f6ed; border-radius: 10px; font-size: 20px; }
.sheet-option strong, .sheet-option small { display: block; }
.sheet-option strong { font-size: 13px; }
.sheet-option small { margin-top: 2px; color: #7c8b9b; font-size: 10px; }
.sheet-option:disabled { color: #9ba8b1; cursor: not-allowed; }
.courier-sheet-release { color: #617383; background: #eef2f2; }

@keyframes screen-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes sheet-in { from { transform: translate(-50%, 100%); } to { transform: translate(-50%, 0); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 30% { transform: translateX(-5px); } 60% { transform: translateX(5px); } }

@media (min-width: 500px) {
  .app-shell { min-height: 860px; margin: 28px auto; border-radius: 30px; }
  .login-card { min-height: 860px; border-radius: 30px; }
  .app-screen, .profile-screen, .details-screen { min-height: 860px; }
  .bottom-nav, .management-sheet, .order-action-footer { position: absolute; }
}
/* Telephone action in the problem sheet is interactive, but not a browser-looking link. */
a.sheet-option, a.sheet-option:visited, a.sheet-option:hover { color: #264358; text-decoration: none; }
a.sheet-option *, a.sheet-option:visited * { text-decoration: none; }
.dialog-actions .save-order-button { min-height: 46px; margin: 0; font-size: 12px; }

.courier-call-action .call-order-button { width: 100%; min-height: 48px; }
@media (max-width: 420px) {
  .order-filter-controls { gap: 7px; }
  .order-filters-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 8px; }
  .order-filters-menu.is-expanded { max-height: 150px; }
  .order-filters-menu label { font-size: 10px; }
  .order-filters-toggle { padding: 0 8px; }
  .accountant-courier-metrics-grid { gap: 7px; }
  .accountant-courier-metric { padding: 10px 9px; }
  .accountant-courier-metric > strong { font-size: 20px; }
  .accountant-courier-detail-metrics { gap: 5px; }
  .accountant-courier-detail-metric { padding: 8px 5px; }
  .accountant-courier-detail-metric p { font-size: 9px; }
  .accountant-courier-detail-metric strong { font-size: 15px; }
}
@media (max-width: 360px) {
  .accountant-analytics-menu { gap: 8px; }
  .accountant-analytics-tile { min-height: 118px; padding: 10px; grid-template-columns: 25px minmax(0, 1fr); gap: 7px; }
  .accountant-analytics-tile svg { width: 24px; height: 24px; }
  .accountant-analytics-tile-copy strong { font-size: 13px; }
  .accountant-analytics-tile-copy small { font-size: 9px; }
  .accountant-courier-metric { padding: 9px 7px; }
  .accountant-courier-metric > strong { font-size: 18px; }
  .accountant-courier-detail-metric p { font-size: 8px; }
  .accountant-courier-detail-metric strong { font-size: 14px; }
}

/* Employee courier / florist work profiles. */
.employee-work-profile { min-width: 0; margin-top: 18px; }
.profile-employee-info { margin-bottom: 19px; padding: 14px; display: grid; gap: 11px; border: 1px solid #d9e1e3; border-radius: 14px; background: #fff; }
.profile-employee-info p { min-width: 0; margin: 0; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.profile-employee-info span { color: #71818d; font-size: 11px; }
.profile-employee-info strong { color: #263f52; font-size: 12px; text-align: right; overflow-wrap: anywhere; }
.employee-work-profile > h2 { margin: 0 0 11px; color: #263f52; font-size: 17px; font-weight: 800; }
.profile-work-period { margin: 0 0 12px; }
.profile-work-metrics { min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.employee-work-profile.is-florist .profile-work-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.profile-work-metric { min-width: 0; padding: 10px 8px; display: grid; align-content: start; gap: 7px; border: 1px solid #d9e1e3; border-radius: 12px; background: #fff; }
.profile-work-metric span { color: #71818d; font-size: 10px; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.profile-work-metric strong { color: #263f52; font-size: 16px; font-weight: 800; line-height: 1.15; overflow-wrap: anywhere; }
.profile-actions-title { margin-top: 22px !important; }
.profile-recent-actions { min-width: 0; display: grid; }
.profile-action-card { width: 100%; min-width: 0; padding: 11px 0; display: grid; grid-template-columns: 27px minmax(0, 1fr) 16px; align-items: center; gap: 10px; border: 0; border-bottom: 1px solid #e8edef; color: #344e62; background: transparent; font: inherit; text-align: left; cursor: pointer; }
.profile-action-icon { width: 26px; height: 26px; display: grid; place-items: center; color: #8b9aa4; }
.profile-action-icon svg { width: 22px; height: 22px; }
.profile-action-card.is-delivered .profile-action-icon { color: #078e59; }
.profile-action-copy { min-width: 0; display: grid; gap: 4px; }
.profile-action-copy strong { color: #344e62; font-size: 12px; font-weight: 750; line-height: 1.35; overflow-wrap: anywhere; }
.profile-action-copy time { color: #71818d; font-size: 10px; }
.profile-action-chevron { color: #8b9aa4; font-size: 22px; line-height: 1; text-align: right; }
.profile-actions-empty { margin: 0; padding: 10px 0; color: #71818d; font-size: 12px; line-height: 1.4; }
.owner-analytics-entry { margin-top: 22px; }
.owner-analytics-entry > h2 { margin: 0 0 11px; color: #263f52; font-size: 17px; font-weight: 800; }
.owner-analytics-entry .accountant-analytics-menu { gap: 8px; }
.owner-analytics-entry .accountant-analytics-tile { min-height: 84px; padding: 10px; grid-template-columns: 28px minmax(0, 1fr); gap: 8px; }
.owner-analytics-entry .accountant-analytics-tile svg { width: 25px; height: 25px; }
@media (max-width: 380px) {
  .profile-work-metrics { gap: 5px; }
  .profile-work-metric { padding: 9px 6px; }
  .profile-work-metric span { font-size: 9px; }
  .profile-work-metric strong { font-size: 14px; }
}
