.login-wrapper {
    width: 100%;
    max-width: 400px;
}
.deli-logo {
    color: white;
    font-size: 34px;
    font-weight: 900;
    letter-spacing: 2px;
}
.deli-subtitle {
    color: #bbf703;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.deli-desc {
    color: #94a3b8;
    font-size: 13.5px;
    line-height: 1.5;
    margin-bottom: 24px;
}
.card-headline {
    font-size: 22px;
    color: #1e293b;
    margin-bottom: 4px;
}
.card-subtext {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 20px;
}
.bottom-hint { 
    text-align: center; 
    color: #94a3b8; 
    font-size: 11px; 
    margin-top: 12px; 
}
.login-error { margin: -8px 0 14px; color: #b42318; font-size: 13px; }

.top-app-bar {
    background: white;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 50;
}
.bar-logo {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 1px;
    color: #0f172a;
}
.bar-logo { width:14px; height:41px; display:block; flex:0 0 145px; font-size:0; background:url('../assets/carlogo.png') left center/145px 50px no-repeat; transform:none; }
/* .bar-logo { width:145px; height:36px; display:block; flex:0 0 145px; font-size:0; background:url('../assets/carlogo.png') left center/145px 145px no-repeat; transform:none; } */
.user-role {
    font-size: 11px;
    color: #64748b;
    margin-right: 8px;
}
.hamburger-icon-btn {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 21px;
    line-height: 1;
    color: #0f172a;
    cursor: pointer;
    transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.hamburger-icon-btn:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.1);
}
.hamburger-icon-btn:active { transform: translateY(0); box-shadow: none; }
.hamburger-icon-btn:focus-visible { outline: 3px solid rgba(14, 165, 233, 0.25); outline-offset: 2px; }
.workspace-body {
    flex: 1;
    width: 100%;
    padding: 16px;
    min-width: 0;
}
.section-tag {
    color: #0ea5e9;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 4px;
}
.main-heading {
    font-size: 26px;
    color: #0f172a;
    margin-bottom: 14px;
}
.page-intro { color:#64748b; font-size:15px; line-height:1.5; margin:-6px 0 18px; }
.shop-hero-layout { display:grid; grid-template-columns:minmax(0, 1fr) minmax(180px, 1.1fr); grid-template-rows:auto auto; grid-template-areas:"heading animation" "intro animation"; align-items:center; column-gap:10px; min-height:150px; margin-bottom:16px; padding:10px; overflow:hidden; border-radius:4px; background:#111a27; }
.shop-hero-heading { grid-area:heading; align-self:end; }
.shop-hero-heading .section-tag { color:#b8e600; margin-bottom:4px; }
.shop-hero-heading .main-heading { margin-bottom:0; color:#f8fafc; font-size:22px; line-height:1.05; }
.shop-hero-layout .page-intro { grid-area:intro; align-self:start; max-width:220px; margin:8px 0 0; color:#d1d9e4; font-size:11px; line-height:1.45; }
.shop-hero-animation { grid-area:animation; display:flex; justify-content:center; align-items:center; width:100%; height:150px; pointer-events:none; }
.shop-hero-animation dotlottie-player { width:100%; height:150px; }
@media (max-width:600px) {
    .shop-hero-layout { grid-template-columns:minmax(0, 1fr) minmax(125px, 1.05fr); min-height:126px; padding:8px; }
    .shop-hero-heading .main-heading { font-size:18px; }
    .shop-hero-layout .page-intro { max-width:145px; font-size:10px; }
    .shop-hero-animation { height:126px; }
    .shop-hero-animation dotlottie-player { height:126px; }
}
.today-deliveries-card { margin:0 0 16px; padding:16px; border:1px solid #263244; border-radius:12px; background:#111a27; color:#f8fafc; }
.today-deliveries-heading { display:flex; align-items:center; gap:9px; }
.today-deliveries-heading h2 { flex:1; font-size:15px; font-weight:700; }
.today-deliveries-icon, .delivery-stat-icon { display:grid; place-items:center; }
.today-deliveries-icon { width:28px; height:28px; border-radius:50%; background:#344f13; color:#ccff00; font-size:14px; }
.today-deliveries-count { padding:5px 8px; border-radius:12px; background:#27312a; color:#ccff00; font-size:10px; font-weight:700; white-space:nowrap; }
.delivery-stats { display:grid; grid-template-columns:repeat(3, 1fr); margin:18px 0 14px; }
.delivery-stat { display:grid; justify-items:center; gap:3px; padding:0 8px; border-right:1px solid #263244; text-align:center; }
.delivery-stat:last-child { border-right:0; }
.delivery-stat-icon { width:26px; height:26px; margin-bottom:2px; border-radius:50%; background:#344f13; color:#ccff00; font-size:13px; }
.delivery-stat strong { font-size:19px; line-height:1.1; }
.delivery-stat span:last-child { color:#9aa6b7; font-size:10px; }
.today-deliveries-link { display:flex; align-items:center; justify-content:center; gap:8px; min-height:35px; border:1px solid #263244; border-radius:7px; color:#f8fafc; font-size:12px; font-weight:700; text-decoration:none; }
.today-deliveries-link span { color:#ccff00; font-size:18px; line-height:1; }
.today-deliveries-link:hover { border-color:#ccff00; }
.section-card-heading { display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; }
.section-card-heading h2, .shop-order-card h2 { color:#0f172a; font-size:19px; }
.compact-btn { width:auto; padding:11px 17px; }
.shop-search { width:100%; padding:12px 14px; border:1px solid #e2e8f0; border-radius:11px; font:inherit; font-size:15px; margin-bottom:14px; outline:none; }
.shop-search:focus { border-color:#38bdf8; box-shadow:0 0 0 3px rgba(14,165,233,.12); }
.shop-orders-card { margin-top:0; }.shop-orders-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:14px; }.shop-orders-heading h2 { color:#0f172a; font-size:19px; }.shop-order-row { padding:12px 0; border-top:1px solid #e2e8f0; }.shop-order-row strong { display:block; color:#0f172a; font-size:13px; }.shop-order-row span { display:block; margin-top:4px; color:#64748b; font-size:12px; }.shop-orders-empty { color:#94a3b8; font-size:13px; text-align:center; padding:18px 0 4px; }
.shop-list { display:grid; gap:7px; }
.shop-row { display:flex; align-items:center; gap:11px; width:100%; padding:10px; border:0; border-radius:13px; background:#fff; text-align:left; cursor:pointer; }
.order-photo { width:72px; height:72px; flex:0 0 72px; overflow:hidden; display:grid; place-items:center; border-radius:10px; background:#e2e8f0; color:#64748b; font-size:11px; font-weight:700; text-align:center; }
.order-photo img { display:block; width:100%; height:100%; max-width:100%; max-height:100%; object-fit:cover; }
.delivery-card .order-photo { width:72px !important; height:72px !important; min-width:72px; max-width:72px; min-height:72px; max-height:72px; }
.delivery-card .order-photo img { width:72px !important; height:72px !important; max-width:72px !important; max-height:72px !important; object-fit:cover; }
.shop-row:hover { background:#f1f5f9; }.shop-row.selected { background:#0f172a; color:#fff; }
.shop-avatar { display:grid; place-items:center; flex:0 0 40px; height:40px; border-radius:9px; background:#eff6f9; color:#1e293b; font-weight:800; }.avatar-lime { background:#eff6f9; }.shop-row.selected .shop-avatar { background:#ccff00; color:#0f172a; }
.shop-copy { min-width:0; flex:1; }.shop-copy strong,.shop-copy small { display:block; }.shop-copy strong { font-size:15px; }.shop-copy small { margin-top:2px; color:#64748b; font-size:12px; }.selected .shop-copy small { color:#cbd5e1; }
.shop-row-actions { display:flex; align-items:center; gap:8px; }.selected .shop-row-actions { color:#cbd5e1; }.shop-row-actions b { color:#0ea5a0; font-size:22px; font-weight:400; }.selected .shop-row-actions b { color:#ccff00; }
.edit-user-btn, .delete-user-btn { display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px; border:none; border-radius:8px; cursor:pointer; transition:background .15s, transform .1s; }
.edit-user-btn { background:#e2e8f0; color:#475569; }.edit-user-btn:hover { background:#cbd5e1; color:#0f172a; transform:scale(1.08); }
.delete-user-btn { background:#fee2e2; color:#dc2626; border:none; padding:0; font-size:0; line-height:0; }.delete-user-btn:hover { background:#fecaca; color:#b91c1c; transform:scale(1.08); }
.inline-delete-form { display:inline; margin:0; padding:0; }
.nested-form { margin:14px 0 0; padding:16px; background:#f8fafc; }.shop-order-card { margin-top:0; }.selected-shop-hint { color:#64748b; font-size:13px; margin:5px 0 18px; }.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }

.form-card,
.table-card {
    min-width: 0;
    overflow: hidden;
}

.slide-sidebar {
    position: fixed;
    top: 0; 
    left: 0;
    width: 260px; 
    height: 100vh;
    background: white;
    z-index: 100;
    transform: translateX(-100%);
    transition: transform 0.25s ease-in-out;
    padding: 20px 12px;
    box-shadow: 2px 0 10px rgba(0,0,0,0.05);
}
.slide-sidebar.open { transform: translateX(0); }
.sidebar-row {
    padding: 12px 14px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    margin-bottom: 6px;
    cursor: pointer;
    color: inherit;
    text-decoration: none;
    transition: background-color 0.18s ease, transform 0.18s ease;
}
.sidebar-row:hover { background: #f1f5f9; transform: translateX(2px); }
.sidebar-row.active-row { 
    background: #0f172a; 
    color: white; 
}
.sidebar-row.active-row:hover { background: #1e293b; }
.sidebar-row strong { font-size: 15px; }
.sidebar-row span { font-size: 11px; opacity: 0.7; }
.sidebar-logout { margin: 10px 0 0; border-top: 1px solid #e2e8f0; padding-top: 10px; }
.sidebar-logout .sidebar-row { width: 100%; border: 0; background: transparent; text-align: left; font: inherit; }
.sidebar-logout .sidebar-row:hover { color: #b42318; }
.sidebar-user-tag { display:flex; align-items:center; gap:10px; padding:14px; margin-bottom:10px; background:#f8fafc; border-radius:12px; border:1px solid #e2e8f0; }
.sidebar-user-avatar { width:38px; height:38px; border-radius:50%; background:#0f172a; color:#fff; display:grid; place-items:center; font-size:15px; font-weight:700; flex-shrink:0; }
.sidebar-user-tag strong { display:block; font-size:14px; color:#0f172a; }
.sidebar-user-tag span { display:block; font-size:11px; color:#64748b; margin-top:2px; }

.sidebar-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15,23,42,0.32);
    z-index: 99;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.sidebar-overlay.visible { visibility: visible; opacity: 1; pointer-events: auto; }

.workspace-table { 
    width: 100%; 
    border-collapse: collapse; 
}
.workspace-table th {
    background: #0f172a; 
    color: white;
    font-size: 11px; 
    padding: 10px; 
    text-align: left;
}
.workspace-table td { 
    padding: 12px 10px; 
    font-size: 13.5px; 
    border-bottom: 1px solid #f1f5f9; 
}
.no-data-msg { 
    text-align: center; 
    color: #94a3b8; 
    padding: 20px 0 !important; 
}
.workspace-table tfoot td { 
    font-weight: 700; 
    background: #f8fafc; 
    border-top: 2px solid #e2e8f0; 
}

.history-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.history-filter-card h2 { margin-bottom:18px; color:#0f172a; font-size:20px; }.history-form-grid .full-field { grid-column:1 / -1; }.history-save { width:auto; min-width:112px; margin-top:4px; }.history-badges { margin:0 0 16px; }
.history-card-heading .section-tag { margin-bottom: 2px; }
.history-card-heading h2 { color: #0f172a; font-size: 20px; }
.history-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.history-form-grid .input-field-group { min-width: 0; }
.history-table-wrap { overflow-x: auto; }
.history-table { min-width: 470px; }
.history-table tbody tr { transition: background-color .18s ease; }
.history-table tbody tr:hover, .history-table tbody tr.selected-row { background: #f0f9ff; }
.table-action { display: inline-block; border: 0; border-radius: 7px; padding: 7px 11px; background: #e0f2fe; color: #0369a1; font: inherit; font-size: 12px; font-weight: 700; text-decoration: none; cursor: pointer; }
.table-action:hover { background: #bae6fd; }
.status-pill { padding: 6px 10px; border-radius: 999px; background: #dcfce7; color: #166534; font-size: 11px; font-weight: 700; }
.status-pending { background: #fef3c7; color: #92400e; }
.status-failed { background: #fee2e2; color: #991b1b; }
.detail-layout { display: grid; grid-template-columns: 120px 1fr; gap: 16px; }
.detail-photo { display: grid; place-items: center; min-height: 120px; overflow: hidden; border-radius: 12px; background: #e2e8f0; color: #64748b; font-size: 11px; font-weight: 700; text-align: center; }
.detail-photo img { width: 100%; height: 100%; min-height: 120px; object-fit: cover; }
.signature-panel { display: grid; gap: 8px; width: min(100%, 520px); margin-top: 20px; padding: 12px; border: 1px solid #dbe4ee; border-radius: 12px; background: #f8fafc; }
.signature-label { color: #64748b; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.signature-panel img { display: block; width: 100%; height: 150px; object-fit: contain; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; }
.back-link { display: inline-block; margin-bottom: 16px; color: #0369a1; font-size: 13px; font-weight: 700; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.detail-wide { grid-column: 1 / -1; }
.directory-list { display: grid; gap: 10px; }
.directory-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px; border: 1px solid #e2e8f0; border-radius: 12px; }
.directory-item strong { display: block; color: #0f172a; font-size: 14px; }
.directory-item span { display: block; margin-top: 3px; color: #64748b; font-size: 11px; }
.directory-actions { display: flex; gap: 6px; flex-shrink: 0; }
.directory-actions button { border: 0; border-radius: 8px; padding: 8px 10px; background: #e0f2fe; color: #0369a1; font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; }
.directory-actions button:last-child { background: #f1f5f9; color: #475569; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.detail-grid div { min-width: 0; }
.detail-grid span { display: block; margin-bottom: 3px; color: #64748b; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.detail-grid strong { display: block; overflow: hidden; color: #0f172a; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.detail-grid .detail-wide strong { white-space: normal; overflow-wrap: anywhere; word-break: break-word; text-overflow: clip; }
.history-detail-card { min-width: 0; }
.history-card-heading > div { min-width: 0; flex: 1 1 auto; }
.history-card-heading .status-pill { flex-shrink: 0; align-self: flex-start; }
input[name="date"] { position: relative; padding-right: 42px !important; padding-left: 12px !important; text-align: left; direction: ltr; color: #0f172a; }
input[name="date"]::-webkit-datetime-edit { text-align: left; }
input[name="date"]::-webkit-calendar-picker-indicator { margin-left: auto; padding: 3px; cursor: pointer; opacity: .7; }
input[name="date"]::-webkit-calendar-picker-indicator:hover { opacity: 1; }
.custom-date-picker { position:relative; }
.custom-date-picker > input[type="date"] { position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; }
.custom-date-trigger { display:flex; align-items:center; justify-content:space-between; width:100%; min-height:44px; padding:11px 12px; border:1px solid #e2e8f0; border-radius:10px; background:#fff; color:#0f172a; font:inherit; font-size:16px; cursor:pointer; }
.custom-date-trigger::after { content:'▣'; color:#475569; font-size:14px; }
.custom-date-picker.open .custom-date-trigger { border-color:#38bdf8; outline:3px solid rgba(14,165,233,.15); }
.custom-calendar { position:absolute; bottom:calc(100% + 6px); left:0; z-index:30; display:block; width:100%; min-width:260px; padding:12px; border:1px solid #dbe4ee; border-radius:12px; background:#fff; box-shadow:0 12px 28px rgba(15,23,42,.18); opacity:0; pointer-events:none; transform:translateY(10px); transition:opacity .18s ease, transform .18s ease; }
.custom-date-picker.open .custom-calendar { opacity:1; pointer-events:auto; transform:translateY(0); }
.calendar-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; color:#0f172a; font-size:13px; font-weight:700; }
.calendar-head button { border:0; border-radius:6px; padding:4px 8px; background:#f1f5f9; color:#0f172a; cursor:pointer; }
.calendar-grid { display:grid; grid-template-columns:repeat(7,1fr); gap:3px; text-align:center; }
.calendar-grid span { padding:5px 0; color:#64748b; font-size:11px; }
.calendar-grid button { border:0; border-radius:6px; padding:7px 0; background:transparent; color:#0f172a; font:inherit; font-size:12px; cursor:pointer; }
.calendar-grid button:hover,.calendar-grid button.selected { background:#0f172a; color:#fff; }.calendar-grid button.muted { color:#cbd5e1; }
.unassigned-count { color:#64748b; font-size:13px; margin:-5px 0 12px; }
.biker-list { display:grid; gap:7px; }.biker-row { display:flex; align-items:center; gap:11px; width:100%; padding:10px; border:1px solid #e2e8f0; border-radius:13px; background:#fff; text-align:left; cursor:pointer; }.biker-row.selected { background:#0f172a; color:#fff; border-color:#0f172a; }.biker-avatar { display:grid; place-items:center; flex:0 0 40px; height:40px; border-radius:9px; background:#eff6f9; color:#0f172a !important; font-size:19px; }.biker-row.selected .biker-avatar { color:#0f172a !important; background:#eff6f9; }.biker-actions { display:flex; align-items:center; gap:16px; margin-left:auto; color:#64748b; font-size:18px; }.selected .biker-actions { color:#cbd5e1; }.biker-actions b { color:#0ea5a0; font-size:22px; font-weight:400; }.selected .biker-actions b { color:#ccff00; }
.detail-section-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:16px; }.detail-section-heading h2 { color:#9f2842; font-size:20px; }.detail-section-heading p,.assign-intro p { color:#64748b; font-size:13px; margin-top:5px; }.empty-deliveries { padding:25px 0 10px; color:#94a3b8; text-align:center; font-size:13px; border-top:1px solid #e2e8f0; }
.assign-intro { margin-bottom:14px; }.back-button { margin-top:14px; padding:11px 14px; border:1px solid #e2e8f0; border-radius:10px; background:#fff; color:#1e293b; font:inherit; font-weight:600; cursor:pointer; }.find-order .section-card-heading { margin-bottom:12px; }.find-order .section-card-heading span { color:#64748b; font-size:13px; }.assign-tools { display:flex; align-items:center; gap:10px; }.assign-tools .shop-search { margin:0; }.assign-tools .table-action { white-space:nowrap; }.order-card { padding:16px; }.order-card > label:first-child { color:#0f172a; font-size:16px; }.order-card input[type="checkbox"] { width:20px; height:20px; vertical-align:middle; accent-color:#0f172a; }.order-content { display:flex; gap:14px; margin:16px 0; }.order-photo { display:grid; place-items:center; flex:0 0 72px; width:72px; height:72px; overflow:hidden; border-radius:10px; background:#e2e8f0; color:#64748b; font-size:11px; }.order-photo img { display:block; width:100%; height:100%; max-width:100%; max-height:100%; object-fit:cover; }.order-content p { margin:4px 0; color:#64748b; font-size:12px; line-height:1.5; }.order-content small { color:#64748b; font-size:12px; }.order-address { display:block; color:#64748b; font-size:11px; font-weight:700; }.order-address input { display:block; width:100%; margin-top:5px; padding:11px 12px; border:1px solid #e2e8f0; border-radius:10px; font:inherit; }.assign-footer { position:sticky; bottom:12px; z-index:5; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 14px; border:1px solid #e2e8f0; border-radius:14px; background:rgba(255,255,255,.96); box-shadow:0 5px 20px rgba(15,23,42,.12); color:#64748b; font-size:13px; }.assign-footer .ui-btn { width:auto; padding:12px 15px; }.assign-footer .ui-btn:disabled { cursor:not-allowed; opacity:.55; }
@media (max-width: 768px) {
  .detail-layout { grid-template-columns: 1fr; gap: 14px; }
  .detail-photo { width: 100%; min-height: 168px; max-height: 240px; }
  .detail-photo img { min-height: 168px; max-height: 240px; }
  .detail-grid { grid-template-columns: 1fr; gap: 12px; }
  .detail-grid strong { white-space: normal; overflow-wrap: anywhere; word-break: break-word; text-overflow: clip; }
  .history-card-heading { flex-wrap: wrap; align-items: center; row-gap: 8px; }
  .history-card-heading h2 { font-size: 18px; line-height: 1.3; overflow-wrap: anywhere; }
  .history-detail-card.ui-card-white { padding: 16px; border-radius: 16px; }
  .signature-panel { width: 100%; max-width: none; margin-top: 16px; }
}
@media (max-width: 480px) {
  .history-detail-screen .workspace-body { padding: 12px; }
  .history-detail-screen .main-heading { font-size: 22px; margin-bottom: 12px; }
  .history-detail-screen .user-role { display: none; }
  .detail-photo { min-height: 140px; max-height: 200px; }
  .detail-photo img { min-height: 140px; max-height: 200px; }
}
@media (max-width: 600px) { .history-form-grid { grid-template-columns: 1fr; } .assign-tools { align-items:stretch; flex-direction:column; } .assign-footer { align-items:stretch; flex-direction:column; } .assign-footer .ui-btn { width:100%; } }
.delivery-list { display:grid; gap:10px; }.delivery-card { padding:15px; border:1px solid #e2e8f0; border-radius:12px; }.delivery-main { display:flex; gap:12px; }.delivery-main strong { color:#0f172a; font-size:14px; }.delivery-main p { margin:5px 0; color:#64748b; font-size:12px; line-height:1.5; }.delivery-main small { color:#64748b; font-size:11px; }.delivery-actions { display:flex; justify-content:flex-end; align-items:center; gap:7px; margin-top:12px; flex-wrap:wrap; }.status-btn,.info-btn { min-width:72px; padding:9px 12px; border:0; border-radius:9px; font:inherit; font-size:12px; cursor:pointer; transition:opacity .2s ease, transform .2s ease, max-width .22s ease, padding .22s ease, margin .22s ease; }.status-btn.onway { background:#00a66a; color:#fff; }.status-btn.fail { background:#ef6b70; color:#fff; }.status-btn.fail.failed { background:#fee2e2; color:#b45359; }.status-btn.done,.status-btn.done.completed { background:#dcfce7; color:#15803d; }.status-btn.is-hidden { max-width:0; margin:0; padding-left:0; padding-right:0; opacity:0; overflow:hidden; pointer-events:none; transform:scale(.8); }.delivery-actions form.is-hidden { max-width:0; margin:0; padding:0; opacity:0; overflow:hidden; pointer-events:none; transform:scale(.8); transition:opacity .2s ease, transform .2s ease, max-width .22s ease, padding .22s ease, margin .22s ease; }.status-btn.reveal { animation: statusReveal .24s ease; } @keyframes statusReveal { from { opacity:0; transform:translateX(10px) scale(.9); } to { opacity:1; transform:translateX(0) scale(1); } } .info-btn { border:1px solid #e2e8f0; background:#fff; color:#0f172a; }.fail-note { width:100%; color:#b45359; font-size:11px; text-align:right; }.modal-backdrop { position:fixed; inset:0; z-index:200; display:flex; align-items:center; justify-content:center; padding:18px; background:rgba(15,23,42,.45); overflow-y:auto; -webkit-overflow-scrolling:touch; }.action-modal { width:min(100%,430px); max-height:min(calc(100vh - 36px), 600px); overflow-y:auto; padding:22px; border-radius:20px; background:#fff; box-shadow:0 18px 45px rgba(15,23,42,.25); }.action-modal h2 { color:#0f172a; font-size:20px; }.action-modal p { margin:7px 0 16px; color:#64748b; font-size:14px; }.action-modal textarea { display:block; width:100%; padding:12px; border:2px solid #8bded2; border-radius:12px; font:inherit; resize:vertical; }.modal-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:16px; }.modal-actions .ui-btn { width:auto; }.btn-danger { background:#e85b61; color:#fff; }.history-event { margin:0; padding:10px 0 10px 16px; border-left:3px solid #0f172a; color:#64748b; font-size:13px; position:relative; }.history-event span { display:block; font-size:12px; color:#94a3b8; }.history-event strong { display:block; margin-top:4px; color:#0f172a; font-size:15px; font-weight:700; }.history-event em { display:block; margin-top:6px; padding:8px; border-radius:8px; background:#f1f5f9; color:#64748b; font-style:normal; font-size:12px; }.info-modal #infoHistoryList { max-height:300px; overflow-y:auto; }round:#eaf2f7; font-style:normal; }
.delivery-card .fail[hidden] { display:none !important; }
.status-btn.onway, .status-btn.fail { font-weight:700; }
.signature-canvas { display:block; width:100%; height:auto; margin:16px 0; border:1px solid #cbd5e1; border-radius:10px; background:#fff; cursor:crosshair; touch-action:none; }
.status-btn.fail { display:inline-block !important; }
.edit-biker-inline { min-width:auto; padding:9px 12px; border:1px solid #e2e8f0; border-radius:9px; background:#fff; color:#0f172a; font:inherit; font-size:12px; font-weight:600; cursor:pointer; }
.status-btn.exiting { animation: statusExit .2s ease forwards; } @keyframes statusExit { to { opacity:0; transform:scale(.7); max-width:0; padding:0; margin:0; overflow:hidden; } }
.modal-actions .ui-btn { width:auto; min-width:0; padding:10px 14px; font-size:13px; }
#confirmDone { background:#0f172a; color:#fff; }
.status-btn.done { background:#00a66a; color:#fff; font-weight:700; }
.status-btn.done.completed { background:#dcfce7; color:#15803d; }
.modal-backdrop[hidden], .action-modal[hidden] { display:none !important; }
.modal-actions .ui-btn { flex:0 0 auto; width:auto !important; min-height:38px; padding:8px 12px; font-size:12px; }
.modal-actions .back-button { min-height:38px; margin-top:0; padding:8px 12px; font-size:12px; }
@media (max-width: 600px) {
  .modal-backdrop { padding:12px; align-items:flex-start; padding-top:40px; }
  .action-modal { max-height:calc(100vh - 52px); padding:18px; border-radius:16px; overflow-y:auto; }
  .action-modal h2 { font-size:18px; margin-bottom:14px; }
  .action-modal .input-field-group { margin-bottom:12px; }
  .action-modal .input-field-group label { font-size:10px; margin-bottom:4px; }
  .action-modal .input-field-group input,
  .action-modal .input-field-group select { min-height:42px; font-size:16px; }
  .action-modal .input-field-group select { appearance:auto; -webkit-appearance:menulist; background-image:none; padding-right:12px; }
  .action-modal .modal-actions { flex-direction:row-reverse; gap:8px; }
  .action-modal .modal-actions .ui-btn { flex:1; min-height:42px; font-size:14px; font-weight:700; }
  .action-modal .modal-actions .back-button { flex:0 0 auto; min-height:42px; }
}
