/* Sencargo Global Stylesheet */

/* --- Design tokens (admin + frontend shared) --- */
:root {
    --sc-brand: #942428;
    --sc-brand-dark: #7a1d21;
    --sc-brand-soft: rgba(148, 36, 40, 0.9);
    --sc-surface: #ffffff;
    --sc-surface-muted: #fafafa;
    --sc-surface-elevated: #f9f9f9;
    --sc-border: #ddd;
    --sc-border-strong: #ccd0d4;
    --sc-border-soft: #eee;
    --sc-text: #2c3e50;
    --sc-text-muted: #555;
    --sc-text-faint: #777;
    --sc-radius-sm: 0;
    --sc-radius-md: 0;
    --sc-radius-lg: 0;
    --sc-radius-xl: 0;
    --sc-shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --sc-shadow-md: 0 4px 12px rgba(148, 36, 40, 0.05);
    --sc-shadow-lg: 0 8px 32px rgba(31, 38, 135, 0.05);
}

/* --- Backend Logistics & Dispatch Dashboard --- */
.dispatch-grid { display: grid; grid-template-columns: 350px 1fr; gap: 20px; margin-top: 20px; }
.sc-meetup-search-panel .sc-meetup-results li:hover { background: #f0f6fc; }
.sc-dispatch-wrap .sc-meetup-search-panel { margin-bottom: 14px; }
.sc-column { background: var(--sc-surface); padding: 15px; border-radius: var(--sc-radius-md); box-shadow: var(--sc-shadow-sm); height: 800px; overflow-y: auto; }
.sc-draggable-stop { background: var(--sc-surface-elevated); border: 1px solid var(--sc-border); padding: 10px; margin-bottom: 10px; border-radius: var(--sc-radius-sm); cursor: grab; display: flex; flex-direction: column; gap: 5px; position:relative; }
.sc-draggable-stop:active { cursor: grabbing; }
.driver-container { border: 2px dashed #ccc; padding: 10px; margin-bottom: 20px; min-height: 100px; border-radius: var(--sc-radius-sm); background: var(--sc-surface-muted); }
.driver-header { font-weight: bold; font-size: 16px; margin-bottom: 10px; color: var(--sc-brand); display: flex; justify-content: space-between; align-items:center; }
#sc-map-canvas { width: 100%; height: 100%; border-radius: 8px; border: 1px solid #ccc; min-height: 600px; z-index: 1; }
.route-stats { font-size: 12px; color: #555; font-weight: normal; margin-top:5px; display:block; }
.stop-number { position:absolute; top:10px; right:10px; background:#333; color:#fff; width:20px; height:20px; border-radius:50%; text-align:center; line-height:20px; font-size:11px; font-weight:bold; }

/* --- Frontend Customer Dashboard (Premium Glassmorphism Navigation) --- */
.sc-nav-tabs {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    background: rgba(255, 255, 255, 0.3) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 0 !important;
    padding: 15px !important;
    gap: 15px !important;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05) !important;
    margin-bottom: 25px !important;
}
.sc-nav-tab {
    position: relative !important;
    flex: 0 1 auto !important;
    background: rgba(255, 255, 255, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 0 !important;
    color: #2c3e50 !important;
    font-weight: 700 !important;
    padding: 12px 25px !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02) !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}
.sc-nav-tab.active, .sc-nav-tab:hover {
    background: var(--sc-brand-soft) !important;
    color: #ffffff !important;
    border-color: rgba(148, 36, 40, 0.4) !important;
    box-shadow: 0 8px 15px rgba(148,36,40,0.2) !important;
    transform: translateY(-2px) !important;
}
.sc-badge {
    background: #e74c3c !important;
    color: #ffffff !important;
    font-size: 11px !important;
    padding: 3px 7px !important;
    border-radius: 0 !important;
    position: absolute !important;
    top: -8px !important;
    right: -8px !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2) !important;
    border: 2px solid #fff;
}

/* --- High-Contrast Action Buttons --- */
.sc-modern-btn:not(.sc-btn-outline) {
    color: #ffffff !important;
}
.sc-modern-btn {
    display: inline-block;
    background: var(--sc-brand);
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: 0;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
    text-decoration: none;
    text-align: center;
}
.sc-modern-btn:not(.sc-btn-outline):hover {
    background: var(--sc-brand-dark);
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.sc-modern-btn.sc-btn-outline {
    color: #942428;
}
.sc-modern-btn.sc-btn-outline:hover {
    color: #ffffff !important;
}

/* --- Newsletter Popup (Guests) --- */
.sc-nl-overlay{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.sc-nl-card{
    width: 100%;
    max-width: 420px;
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(255,255,255,0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 10px 32px rgba(31,38,135,0.18);
    position: relative;
}
.sc-nl-close{
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #2c3e50;
}
.sc-btn-outline {
    background: transparent;
    border: 2px solid var(--sc-brand);
    color: var(--sc-brand);
}
.sc-btn-outline:hover {
    background: var(--sc-brand);
    color: #ffffff !important;
}

/* Driver portal tabs: avoid .sc-btn-outline forcing maroon text on active burgundy background */
.sc-driver-portal-tab {
    display: inline-block;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: bold;
    border-radius: 0;
    border: 2px solid #dee2e6;
    background: #ffffff;
    color: #2c3e50;
    text-decoration: none;
    cursor: pointer;
    transition: 0.2s;
}
.sc-driver-portal-tab:hover {
    border-color: var(--sc-brand);
    color: var(--sc-brand);
}
.sc-driver-portal-tab.is-active {
    background: var(--sc-brand);
    border-color: var(--sc-brand);
    color: #ffffff;
}
.sc-driver-portal-tab.is-active:hover {
    background: var(--sc-brand-dark);
    border-color: var(--sc-brand-dark);
    color: #ffffff;
}

/* --- Accordion & Modal Layouts --- */
.sc-accordion-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 20px;
    cursor: pointer;
    transition: 0.2s;
    position: relative;
}
.sc-accordion-card:hover {
    border-color: var(--sc-brand);
    box-shadow: var(--sc-shadow-md);
}
.sc-accordion-card__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px 15px;
    justify-content: space-between;
}
.sc-accordion-card__chevron {
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    margin-top: 6px;
    border-right: 2px solid #942428;
    border-bottom: 2px solid #942428;
    transform: rotate(-45deg);
    transition: transform 0.2s ease;
}
.sc-accordion-card.is-open .sc-accordion-card__chevron {
    transform: rotate(45deg);
    margin-top: 4px;
}
.sc-accordion-card__summary {
    flex: 1 1 140px;
    min-width: 0;
}
.sc-accordion-card__title {
    margin: 0 0 4px;
    color: #2c3e50;
    font-size: 15px;
    font-weight: 700;
}
.sc-accordion-card__meta {
    margin: 0;
    font-size: 12px;
    color: #999;
}
.sc-accordion-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.sc-accordion-content {
    display: none;
    margin-top: 15px;
    border-top: 1px dashed #eee;
    padding-top: 15px;
    cursor: default;
}

.sc-modal-overlay {
    display: none;
    position: fixed;
    top: var(--sc-impersonation-body-pad, 0);
    left: 0;
    width: 100%;
    height: calc(100% - var(--sc-impersonation-body-pad, 0px));
    background: rgba(0,0,0,0.6);
    z-index: 99999;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}
.sc-modal-content {
    background: #fff;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 12px;
    padding: 35px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.sc-modal-close {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 28px;
    cursor: pointer;
    background: none;
    border: none;
    color: #777;
}

/* Address autocomplete dropdown (ORS / Google via REST proxy) */
.sc-address-ac-wrap {
    position: relative;
}
.sc-address-ac-suggestions {
    position: absolute;
    background: #fff;
    border: 1px solid #ccc;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100001;
    display: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    top: 100%;
    left: 0;
}
.sc-address-ac-suggestion {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    font-size: 13px;
    color: #333;
}
.sc-address-ac-suggestion:hover {
    background: #f8f9fa;
    color: #942428;
}
.sc-address-ac-suggestion--muted {
    cursor: default;
    color: #777;
    font-style: italic;
}
.sc-address-ac-suggestion--muted:hover {
    background: #fff;
    color: #777;
}

/* --- Form Inputs & Cards --- */
.sc-input-modern {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 0;
    box-sizing: border-box;
    background: #fafafa;
}
.sc-input-modern:focus {
    border-color: var(--sc-brand);
    outline: none;
    background: var(--sc-surface);
}
.sc-wizard-step { display: none; }
.sc-wizard-step.active {
    display: block;
    animation: scFadeIn 0.3s ease-in;
}
@keyframes scFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.sc-choice-card {
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: 0.2s;
    margin-bottom: 15px;
    background: #fafafa;
}
.sc-choice-card.selected {
    border-color: var(--sc-brand);
    background: var(--sc-brand);
    color: #ffffff !important;
}
.sc-choice-card.selected h4, .sc-choice-card.selected p {
    color: #ffffff !important;
}

/* --- Admin: Pickup Schedules Plan Mode (SortableJS) --- */
.sc-sched-plan-board {
    background: var(--sc-surface);
    border: 1px solid var(--sc-border-strong);
    border-radius: var(--sc-radius-md);
    padding: 16px 18px;
    margin-bottom: 20px;
    box-shadow: var(--sc-shadow-sm);
}
.sc-sched-plan-columns {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
    align-items: flex-start;
}
.sc-sched-plan-column {
    flex: 0 0 220px;
    min-width: 200px;
    max-width: 280px;
}
.sc-sched-plan-column-head {
    font-weight: 700;
    font-size: 13px;
    color: var(--sc-text);
    margin-bottom: 8px;
    padding: 6px 8px;
    background: var(--sc-surface-muted);
    border-radius: var(--sc-radius-sm);
    border: 1px solid var(--sc-border-soft);
}
.sc-plan-drop-zone {
    min-height: 120px;
    padding: 8px;
    border-radius: var(--sc-radius-sm);
    border: 2px dashed var(--sc-border);
    background: var(--sc-surface-muted);
    transition: border-color 0.15s ease, background 0.15s ease;
}
.sc-plan-schedule-card {
    background: var(--sc-surface);
    border: 1px solid var(--sc-border);
    border-radius: var(--sc-radius-sm);
    padding: 10px 10px 8px;
    margin-bottom: 8px;
    cursor: grab;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.sc-plan-schedule-card:active {
    cursor: grabbing;
}
.sc-plan-schedule-card__title {
    font-weight: 700;
    font-size: 13px;
    color: var(--sc-brand);
}
.sc-plan-schedule-card__loc {
    font-size: 12px;
    color: var(--sc-text);
    margin: 4px 0;
    line-height: 1.35;
}
.sc-plan-schedule-card__meta {
    font-size: 11px;
    color: var(--sc-text-faint);
    margin-bottom: 6px;
}
.sc-plan-card-edit {
    margin-top: 4px;
}

/* --- Admin: Bookings card grid --- */
.sc-bookings-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    margin: 16px 0 8px;
}
.sc-booking-card {
    background: var(--sc-surface);
    border: 1px solid var(--sc-border-strong);
    border-radius: var(--sc-radius-md);
    box-shadow: var(--sc-shadow-sm);
    display: flex;
    flex-direction: column;
    min-height: 200px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.sc-booking-card:hover {
    border-color: var(--sc-brand);
    box-shadow: var(--sc-shadow-md);
}
.sc-booking-card__head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--sc-border-soft);
    background: var(--sc-surface-muted);
}
.sc-booking-card__cb input {
    margin-top: 4px;
}
.sc-booking-card__title {
    flex: 1;
    min-width: 0;
    font-size: 14px;
}
.sc-booking-card__body {
    padding: 12px 14px;
    flex: 1;
    font-size: 13px;
    color: var(--sc-text);
}
.sc-booking-card__customer {
    margin: 0 0 10px;
    font-size: 14px;
}
.sc-booking-card__meta {
    margin: 0 0 8px;
    line-height: 1.4;
}
.sc-booking-card__label {
    font-weight: 600;
    color: var(--sc-text-faint);
    margin-right: 4px;
}
.sc-booking-card__actions {
    padding: 10px 12px;
    border-top: 1px solid var(--sc-border-soft);
    background: var(--sc-surface-muted);
}
.sc-booking-card__actions .button {
    margin-bottom: 4px;
}
.sc-bookings-cards-toolbar {
    margin-top: 8px;
}
.sc-view-toggle .button.button-primary {
    background: var(--sc-brand);
    border-color: var(--sc-brand-dark);
}
.sc-bookings-nav-tabs .nav-tab-active {
    border-bottom-color: var(--sc-surface);
}

/* Cargo expanded-row toolbar */
.sc-cargo-toolbar.sc-cargo-action-row {
    display: flex !important;
    flex-flow: row wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px;
    width: 100%;
    margin: 0 0 20px;
    padding: 16px 14px;
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    box-sizing: border-box;
}

.sc-cargo-toolbar .sc-cargo-btn,
.sc-cargo-toolbar a.sc-cargo-btn.button,
.sc-cargo-toolbar button.sc-cargo-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 8px 16px !important;
    min-height: 0 !important;
    height: auto !important;
    line-height: 1.35 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    border-width: 1px !important;
    border-style: solid !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08) !important;
    text-decoration: none !important;
    text-shadow: none !important;
    vertical-align: middle !important;
    white-space: nowrap;
    flex: 0 0 auto;
    cursor: pointer;
    box-sizing: border-box;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.sc-cargo-toolbar .sc-cargo-btn:hover,
.sc-cargo-toolbar .sc-cargo-btn:focus {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12) !important;
    transform: translateY(-1px);
    outline: none;
}

.sc-cargo-btn--list {
    background: #2c3e50 !important;
    border-color: #1a252f !important;
    color: #fff !important;
}
.sc-cargo-btn--list:hover,
.sc-cargo-btn--list:focus {
    background: #3d566e !important;
    border-color: #2c3e50 !important;
    color: #fff !important;
}

.sc-cargo-btn--manifest {
    background: #5c4db1 !important;
    border-color: #4a3d96 !important;
    color: #fff !important;
}
.sc-cargo-btn--manifest:hover,
.sc-cargo-btn--manifest:focus {
    background: #6d5fd0 !important;
    border-color: #5c4db1 !important;
    color: #fff !important;
}

.sc-cargo-btn--edit {
    background: #2271b1 !important;
    border-color: #135e96 !important;
    color: #fff !important;
}
.sc-cargo-btn--edit:hover,
.sc-cargo-btn--edit:focus {
    background: #3582c4 !important;
    border-color: #2271b1 !important;
    color: #fff !important;
}

.sc-cargo-btn--schedule {
    background: #942428 !important;
    border-color: #7a1d22 !important;
    color: #fff !important;
}
.sc-cargo-btn--schedule:hover,
.sc-cargo-btn--schedule:focus {
    background: #a82f34 !important;
    border-color: #942428 !important;
    color: #fff !important;
}

.sc-cargo-btn--close {
    background: #c0392b !important;
    border-color: #962d22 !important;
    color: #fff !important;
}
.sc-cargo-btn--close:hover,
.sc-cargo-btn--close:focus {
    background: #d44637 !important;
    border-color: #c0392b !important;
    color: #fff !important;
}

.sc-cargo-btn--reopen {
    background: #27ae60 !important;
    border-color: #1e8449 !important;
    color: #fff !important;
}
.sc-cargo-btn--reopen:hover,
.sc-cargo-btn--reopen:focus {
    background: #2ecc71 !important;
    border-color: #27ae60 !important;
    color: #fff !important;
}

.sc-cargo-toolbar .sc-cargo-status-closed {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #1e8449;
    background: #eafaf1;
    border: 1px solid #a9dfbf;
    border-radius: 0;
    line-height: 1.35;
}

.sc-cargo-toolbar .sc-cargo-toolbar-form {
    margin: 0 !important;
    display: inline-flex !important;
    flex: 0 0 auto;
}

.sencargo-customer-portal.sc-customer-portal-shell {
    position: relative;
    z-index: 1;
}
.sc-v24-has-impersonation-bar .sencargo-customer-portal.sc-customer-portal-shell {
    margin-top: 0;
}

/* Portal profile hero */
.sc-portal-role-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 9px 16px;
    margin: -16px -16px 14px;
    border-radius: 0;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.22) inset;
}
.sc-portal-role-bar__label {
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
    line-height: 1.2;
    text-align: center;
}
.sc-portal-role-bar--driver {
    background: linear-gradient(90deg, #0f766e 0%, #14b8a6 48%, #5eead4 100%);
}
.sc-portal-role-bar--warehouse_us {
    background: linear-gradient(90deg, #1e40af 0%, #3b82f6 50%, #93c5fd 100%);
}
.sc-portal-role-bar--warehouse_sn {
    background: linear-gradient(90deg, #047857 0%, #10b981 42%, #eab308 100%);
}
.sc-portal-role-bar--booking_agent {
    background: linear-gradient(90deg, #6d28d9 0%, #8b5cf6 50%, #c4b5fd 100%);
}

.sc-portal-shell--driver .sc-portal-hero__avatar-wrap--pulse {
    animation-name: sc-portal-pulse-driver;
}
.sc-portal-shell--warehouse_us .sc-portal-hero__avatar-wrap--pulse {
    animation-name: sc-portal-pulse-warehouse-us;
}
.sc-portal-shell--warehouse_sn .sc-portal-hero__avatar-wrap--pulse {
    animation-name: sc-portal-pulse-warehouse-sn;
}
.sc-portal-shell--booking_agent .sc-portal-hero__avatar-wrap--pulse {
    animation-name: sc-portal-pulse-booking-agent;
}
@keyframes sc-portal-pulse-driver {
    0%, 100% { box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.4); transform: scale(1); }
    50% { box-shadow: 0 0 0 12px rgba(20, 184, 166, 0); transform: scale(1.02); }
}
@keyframes sc-portal-pulse-warehouse-us {
    0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); transform: scale(1); }
    50% { box-shadow: 0 0 0 12px rgba(59, 130, 246, 0); transform: scale(1.02); }
}
@keyframes sc-portal-pulse-warehouse-sn {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); transform: scale(1); }
    50% { box-shadow: 0 0 0 12px rgba(16, 185, 129, 0); transform: scale(1.02); }
}
@keyframes sc-portal-pulse-booking-agent {
    0%, 100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.4); transform: scale(1); }
    50% { box-shadow: 0 0 0 12px rgba(139, 92, 246, 0); transform: scale(1.02); }
}

.sc-portal-shell--driver .sc-portal-nav__fab {
    background: #0d9488;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.32);
}
.sc-portal-shell--warehouse_us .sc-portal-nav__fab {
    background: #2563eb;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.32);
}
.sc-portal-shell--warehouse_sn .sc-portal-nav__fab {
    background: #059669;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.32);
}
.sc-portal-shell--booking_agent .sc-portal-nav__fab {
    background: #7c3aed;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.32);
}

.sc-portal-shell--driver .sc-driver-tab-bar a.active {
    color: #0d9488;
}
.sc-portal-shell--warehouse_us .sc-driver-tab-bar a.active {
    color: #2563eb;
}
.sc-portal-shell--warehouse_sn .sc-driver-tab-bar a.active {
    color: #059669;
}
.sc-portal-shell--booking_agent .sc-driver-tab-bar a.active {
    color: #7c3aed;
}

.sc-portal-hero {
    position: relative;
    margin: 0 0 16px;
    padding: 28px 16px 22px;
    border-radius: 0;
    background-color: #1a2332;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.sc-portal-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8,12,20,.45) 0%, rgba(8,12,20,.72) 100%);
}
.sc-portal-hero__logout {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 8px 14px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.35);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    border-radius: 0;
}
.sc-portal-hero__logout:hover {
    background: rgba(255,255,255,.24);
    color: #fff;
}
.sc-portal-hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}
.sc-portal-hero__avatar-wrap {
    border-radius: 50%;
    padding: 4px;
    background: rgba(255,255,255,.18);
}
.sc-portal-hero__avatar-wrap--pulse {
    animation: sc-portal-pulse 2.4s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(148,36,40,.45);
}
@keyframes sc-portal-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(148,36,40,.35); transform: scale(1); }
    50% { box-shadow: 0 0 0 12px rgba(148,36,40,0); transform: scale(1.02); }
}
.sc-portal-hero__avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    display: block;
}
.sc-portal-hero__name {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}
.sc-portal-hero__subtitle {
    color: rgba(255,255,255,.82);
    font-size: 13px;
}

/* Unified portal content area (customer, driver, staff) */
.sc-tab-content {
    background: #fff;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 0;
    margin-top: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
    min-height: 500px;
}

/* ═══ Social-style unified portal layout ═══ */
.sc-portal-page {
    --sc-portal-feed-radius: 16px;
    --sc-portal-page-bg: #e8ecf1;
    --sc-portal-card-bg: #ffffff;
    --sc-portal-text: #1f2937;
    --sc-portal-muted: #6b7280;
    --sc-portal-line: rgba(17, 24, 39, 0.08);
    max-width: 920px;
    margin: 0 auto;
    padding: 0 16px calc(78px + env(safe-area-inset-bottom, 0));
    background: var(--sc-portal-page-bg);
    min-height: 100vh;
    box-sizing: border-box;
}
@media (min-width: 901px) {
    .sc-portal-page {
        padding-bottom: 32px;
    }
}
.sc-portal-page .sc-portal-hero {
    margin-left: -16px;
    margin-right: -16px;
}

.sc-portal-flash {
    max-width: 640px;
    margin: 0 auto 12px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.45;
}
.sc-portal-flash strong {
    display: block;
    margin-bottom: 4px;
}
.sc-portal-flash p {
    margin: 0;
}
.sc-portal-flash--success {
    background: #ecfdf5;
    border-left: 4px solid #10b981;
    color: #065f46;
}
.sc-portal-flash--warn {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    color: #92400e;
}
.sc-portal-flash--error {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    color: #991b1b;
}
.sc-portal-flash a {
    color: inherit;
    font-weight: 600;
}

.sc-tab-content.sc-portal-feed {
    background: var(--sc-portal-card-bg);
    border-radius: var(--sc-portal-feed-radius) var(--sc-portal-feed-radius) 0 0;
    margin-top: -10px;
    position: relative;
    z-index: 2;
    border: 1px solid var(--sc-portal-line);
    border-bottom: none;
    box-shadow: 0 1px 3px rgba(17, 24, 39, 0.04), 0 12px 40px rgba(17, 24, 39, 0.06);
    padding: 24px 20px 32px;
    min-height: 420px;
}
@media (min-width: 640px) {
    .sc-tab-content.sc-portal-feed {
        padding: 28px 28px 36px;
        border-radius: var(--sc-portal-feed-radius);
        margin-top: -16px;
        border-bottom: 1px solid var(--sc-portal-line);
    }
}

.sc-portal-alerts-strip--centered {
    max-width: 560px;
    margin: 8px auto 0;
    padding: 0 12px;
    text-align: center;
}

.sc-portal-profile-layout {
    display: grid;
    grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}
@media (max-width: 767px) {
    .sc-portal-profile-layout {
        grid-template-columns: 1fr;
    }
}
.sc-portal-profile-sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 16px;
    background: #f9fafb;
    border: 1px solid var(--sc-portal-line);
    border-radius: 12px;
}
.sc-portal-profile-sidebar__avatar-wrap {
    margin-bottom: 12px;
}
.sc-portal-profile-sidebar__avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #942428;
    display: block;
}
.sc-portal-profile-sidebar__upload-form {
    width: 100%;
}
.sc-portal-profile-sidebar__file-input {
    width: 100%;
    font-size: 12px;
    margin-bottom: 8px;
}
.sc-portal-profile-sidebar__upload-btn {
    width: 100%;
    font-size: 12px;
}
.sc-portal-profile-sidebar__google-btn {
    width: 100%;
    margin-top: 12px;
    font-size: 13px;
    background: #4285f4 !important;
    color: #fff !important;
}
.sc-portal-profile-sidebar__divider {
    width: 100%;
    border: none;
    border-top: 1px solid var(--sc-portal-line);
    margin: 14px 0;
}
.sc-portal-profile-main {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}
.sc-portal-profile-card {
    background: #fff;
    border: 1px solid var(--sc-portal-line);
    border-radius: 12px;
    padding: 20px 22px;
    box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
}
.sc-portal-section-title {
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--sc-portal-line);
    font-size: 16px;
    font-weight: 700;
    color: var(--sc-portal-text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.sc-portal-section-lead {
    margin: -6px 0 16px;
    font-size: 13px;
    color: var(--sc-portal-muted);
    line-height: 1.5;
}
.sc-portal-field-grid {
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
}
.sc-portal-field-grid--2 {
    grid-template-columns: 1fr 1fr;
}
@media (max-width: 560px) {
    .sc-portal-field-grid--2 {
        grid-template-columns: 1fr;
    }
}
.sc-portal-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.sc-portal-field__label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}
.sc-portal-field--phone .sc-input-modern {
    max-width: 320px;
}
.sc-portal-profile-form__submit {
    margin-top: 8px;
}
.sc-portal-profile-form__submit--wide {
    width: 100%;
    margin-top: 24px;
}
.sc-portal-doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}
.sc-portal-doc-card {
    background: #f9fafb;
    border: 1px solid var(--sc-portal-line);
    border-radius: 10px;
    padding: 14px;
}
.sc-portal-doc-card__title {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 10px;
    color: var(--sc-portal-text);
}
.sc-portal-contract-box {
    max-height: 280px;
    overflow-y: auto;
    padding: 14px;
    background: #f9fafb;
    border: 1px solid var(--sc-portal-line);
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 13px;
    line-height: 1.55;
}

.sc-account-field-grid {
    display: grid;
    gap: 15px;
    margin-bottom: 15px;
}
.sc-account-field-grid--2 {
    grid-template-columns: 1fr 1fr;
}
.sc-account-field-grid--street {
    grid-template-columns: 2fr 1fr;
}
.sc-account-field-grid--city {
    grid-template-columns: 2fr 1fr 1fr;
}
@media (max-width: 640px) {
    .sc-account-field-grid--2,
    .sc-account-field-grid--street,
    .sc-account-field-grid--city {
        grid-template-columns: 1fr;
    }
}
.sc-account-receiver-row {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr 1fr 30px;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}
.sc-account-receiver-row .sc-input-modern {
    margin: 0;
}
.sc-account-receiver-row__remove {
    background: none;
    border: none;
    color: #dc2626;
    cursor: pointer;
    font-weight: 700;
    padding: 0;
}
@media (max-width: 768px) {
    .sc-account-receiver-row {
        grid-template-columns: 1fr 1fr;
    }
}
.sc-portal-pickup-panel {
    margin-bottom: 16px;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid #dce4ec;
    border-radius: 10px;
}
.sc-portal-pickup-panel__toggle {
    font-weight: 600;
    display: flex;
    gap: 8px;
    align-items: flex-start;
    cursor: pointer;
    margin-bottom: 0;
}
.sc-portal-pickup-panel__fields {
    margin-top: 12px;
}
.sc-portal-extra-phones__header {
    margin: 0 0 8px;
    font-size: 13px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.sc-portal-extra-phones {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}
.sc-portal-field-required {
    color: #dc2626;
}
.sc-input-modern[readonly] {
    background: #f3f4f6;
}

/* Portal shell layout — see sc-portal-shell.css (Phase 1 foundation) */

/* Recent notifications — above section header */
.sc-portal-notices {
    margin: 0 0 14px;
    padding: 0;
    background: transparent;
    border: none;
}
.sc-portal-notices__empty {
    margin: 0;
    font-size: 12px;
    color: #888;
    line-height: 1.4;
}
.sc-portal-notices__track {
    position: relative;
    min-height: 2.6em;
}
.sc-portal-notices__item {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: #444;
}
.sc-portal-notices__item[hidden] {
    display: none;
}
.sc-portal-notices__dots {
    display: flex;
    gap: 5px;
    justify-content: center;
    margin-top: 8px;
}
.sc-portal-notices__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ccc;
}
.sc-portal-notices__dot.is-active {
    background: #942428;
}

/* Alerts strip — layout/stacking in sc-portal-shell.css */

.sc-portal-alerts-strip .sc-portal-notices {
    margin: 0;
}
.sc-portal-main-panel {
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}
.sc-portal-alerts-page {
    max-width: 640px;
}
.sc-portal-alerts-page__empty {
    text-align: center;
    padding: 24px 16px;
    color: #888;
    background: transparent;
    border: none;
}
.sc-portal-alerts-page__empty-icon {
    display: block;
    font-size: 32px;
    width: 32px;
    height: 32px;
    margin: 0 auto 10px;
    color: #bbb;
}
.sc-portal-alerts-page__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.sc-portal-alert-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid #eee;
    border-radius: 0;
}
.sc-portal-alert-row__body {
    display: flex;
    gap: 10px;
    flex: 1;
    align-items: flex-start;
}
.sc-portal-alert-row__icon {
    color: #942428;
    margin-top: 2px;
}
.sc-portal-alert-row__dismiss {
    border: none;
    background: transparent;
    font-size: 20px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 0 4px;
}

/* Driver item review editor */
.sc-driver-items-editor {
    margin: 0 0 14px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
}
.sc-driver-items-editor__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.sc-driver-items-editor__badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 3px 8px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
}
.sc-driver-items-editor__badge--pending {
    background: #fff4e5;
    color: #b45309;
}
.sc-driver-items-editor__hint {
    margin: 0 0 10px;
    font-size: 11px;
    color: #666;
    line-height: 1.45;
}
.sc-driver-items-editor__list {
    list-style: none;
    margin: 0 0 10px;
    padding: 0;
}
.sc-driver-items-editor__line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    padding: 8px 0;
    margin-bottom: 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid #eee;
    border-radius: 0;
    font-size: 13px;
}
.sc-driver-items-editor__line--removed {
    color: #c0392b;
    text-decoration: line-through;
    background: transparent;
    border-color: #f0d0d0;
}
.sc-driver-items-editor__line--added {
    color: #1e7e34;
    background: transparent;
    border-color: #d4edda;
}
.sc-driver-items-editor__sign {
    font-weight: 800;
    min-width: 14px;
}
.sc-driver-items-editor__name {
    flex: 1 1 120px;
    font-weight: 600;
}
.sc-driver-items-editor__qty {
    color: #666;
}
.sc-driver-items-editor__total {
    font-weight: 600;
    min-width: 64px;
    text-align: right;
}
.sc-driver-items-editor__toggle {
    border: none;
    background: transparent;
    color: #555;
    font-size: 11px;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
}
.sc-driver-items-editor__add {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 10px;
}
.sc-driver-items-editor__select {
    flex: 1 1 160px;
    min-width: 140px;
    font-size: 12px;
}
.sc-driver-items-editor__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}
.sc-driver-items-editor__subtotal {
    font-size: 13px;
}

/* Staff item review approval */
.sc-item-review-panel {
    margin: 0 0 18px;
    padding: 0 0 16px;
    background: transparent;
    border: none;
    border-bottom: 1px solid #eee;
    border-radius: 0;
}
.sc-item-review-panel__head {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 12px;
}
.sc-item-review-panel__head .dashicons {
    color: #e67e22;
    font-size: 22px;
    width: 22px;
    height: 22px;
    margin-top: 2px;
}
.sc-item-review-panel__meta {
    margin: 4px 0 0;
    font-size: 12px;
    color: #666;
}
.sc-item-review-panel__list {
    list-style: none;
    margin: 0 0 10px;
    padding: 0;
}
.sc-item-review-panel__line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 8px 0;
    margin-bottom: 0;
    border-radius: 0;
    font-size: 13px;
    background: transparent;
    border: none;
    border-bottom: 1px solid #f0f0f0;
}
.sc-item-review-panel__line--removed {
    color: #c0392b;
    text-decoration: line-through;
    border-color: #f0d0d0;
}
.sc-item-review-panel__line--added {
    color: #1e7e34;
    border-color: #d4edda;
}
.sc-item-review-panel__sign {
    font-weight: 800;
    min-width: 14px;
}
.sc-item-review-panel__name {
    flex: 1;
    font-weight: 600;
}
.sc-item-review-panel__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.sc-item-review-queue {
    margin: 0 0 24px;
}
.sc-item-review-queue__card {
    margin-bottom: 20px;
    padding: 0 0 16px;
    background: transparent;
    border: none;
    border-bottom: 1px solid #eee;
    border-radius: 0;
}
.sc-item-review-queue__title {
    margin-bottom: 10px;
    font-size: 14px;
}
.sc-item-review-queue__edit {
    font-size: 12px;
    margin-left: 8px;
}
.sc-item-review-queue .sc-item-review-panel {
    margin-bottom: 0;
}

/* Inline circular menu beside section headers */
.sc-portal-screen-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    padding-left: 4px;
    padding-right: 4px;
}
.sc-portal-screen-head__title {
    margin: 0;
    flex: 1 1 auto;
    color: #942428;
    font-size: 24px;
}
.sc-portal-screen-head--native .sc-portal-screen-head__title {
    font-size: 20px;
    color: var(--app-text, #111827);
}
.sc-portal-screen-head__extra {
    flex: 1 1 100%;
}
.sc-portal-screen-head__search {
    min-width: 220px;
    max-width: 320px;
}
/* Portal feed padding — sc-portal-shell.css */
.sc-portal-screen-head--driver .sc-portal-screen-head__title {
    color: #2c3e50;
}
.sc-driver-portal-head-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
}
@media (min-width: 700px) {
    .sc-portal-screen-head__extra {
        flex: 0 1 auto;
        margin-left: auto;
    }
}
/* Inline section tabs — replaces hamburger drawer (all mySencargo dashboards) */
.sc-portal-nav-tabs {
	margin: 0 0 18px;
	width: 100%;
}

.sc-portal-nav-tabs__scroll {
	display: flex;
	flex-wrap: nowrap;
	gap: 8px;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding: 2px 4px 6px;
}

.sc-portal-nav-tabs__scroll::-webkit-scrollbar {
	display: none;
}

.sc-portal-nav-tabs__link {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 14px;
	border-radius: 999px;
	border: 1px solid var(--sc-portal-line, rgba(17, 24, 39, 0.1));
	background: #f9fafb;
	color: #374151;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none !important;
	white-space: nowrap;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.sc-portal-nav-tabs__link:hover {
	background: #fff;
	border-color: #d1d5db;
	color: #111827;
}

.sc-portal-nav-tabs__link.is-active {
	background: #942428;
	border-color: #942428;
	color: #fff;
	box-shadow: 0 2px 8px rgba(148, 36, 40, 0.22);
}

.sc-portal-shell--driver .sc-portal-nav-tabs__link.is-active {
	background: #0d9488;
	border-color: #0d9488;
	box-shadow: 0 2px 8px rgba(13, 148, 136, 0.22);
}

.sc-portal-shell--warehouse_us .sc-portal-nav-tabs__link.is-active {
	background: #2563eb;
	border-color: #2563eb;
	box-shadow: 0 2px 8px rgba(37, 99, 235, 0.22);
}

.sc-portal-shell--warehouse_sn .sc-portal-nav-tabs__link.is-active {
	background: #059669;
	border-color: #059669;
	box-shadow: 0 2px 8px rgba(5, 150, 105, 0.22);
}

.sc-portal-shell--booking_agent .sc-portal-nav-tabs__link.is-active {
	background: #7c3aed;
	border-color: #7c3aed;
	box-shadow: 0 2px 8px rgba(124, 58, 237, 0.22);
}

.sc-portal-nav-tabs__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	margin-left: 6px;
	padding: 0 5px;
	border-radius: 999px;
	background: #ef4444;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	line-height: 1;
}

.sc-portal-nav-tabs__link.is-active .sc-portal-nav-tabs__badge {
	background: rgba(255, 255, 255, 0.92);
	color: #942428;
}

/* Driver/staff/customer mobile: bottom tab bar is primary — hide duplicate header tabs */
@media (max-width: 900px) {
	.sc-driver-portal-shell .sc-portal-nav-tabs,
	.sc-staff-portal-shell .sc-portal-nav-tabs,
	.sc-customer-portal-shell .sc-portal-nav-tabs {
		display: none;
	}
}

.sc-portal-nav--inline {
    position: relative;
    flex: 0 0 auto;
    margin: 0;
}
.sc-portal-nav__fab {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: #942428;
    color: #fff;
    box-shadow: 0 4px 14px rgba(148,36,40,.28);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.sc-portal-nav__fab-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 18px;
}
.sc-portal-nav__fab-icon span {
    display: block;
    height: 2px;
    width: 100%;
    background: #fff;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.sc-portal-nav__fab.is-open .sc-portal-nav__fab-icon span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.sc-portal-nav__fab.is-open .sc-portal-nav__fab-icon span:nth-child(2) {
    opacity: 0;
}
.sc-portal-nav__fab.is-open .sc-portal-nav__fab-icon span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}
.sc-portal-nav__backdrop {
    position: fixed;
    top: var(--sc-impersonation-body-pad, 0);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(17,24,39,.35);
    z-index: 999990;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}
.sc-portal-nav__backdrop.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.sc-portal-nav__menu--drawer {
    position: fixed;
    top: var(--sc-impersonation-body-pad, 0);
    right: 0;
    bottom: 0;
    z-index: 999995;
    display: flex;
    flex-direction: column;
    width: min(88vw, 320px);
    padding: 0;
    background: #fff;
    border-left: 1px solid #ddd;
    box-shadow: -8px 0 32px rgba(0,0,0,.16);
    overflow-y: auto;
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.28s ease, visibility 0.28s ease;
}
.sc-portal-nav__menu--drawer.is-open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
}
.sc-portal-nav__links {
    display: flex;
    flex-direction: column;
    padding: 16px 0;
}
.sc-portal-nav__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    text-decoration: none !important;
    line-height: 1.35;
    border: none;
    background: transparent;
    border-bottom: 1px solid #f0f0f0;
}
.sc-portal-nav__link-text {
    flex: 1 1 auto;
    min-width: 0;
}
.sc-portal-nav__link-chevron {
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    opacity: 0.4;
}
.sc-portal-nav__link:hover {
    color: #942428;
    background: #fdf2f2;
}
.sc-portal-nav__link:hover .sc-portal-nav__link-chevron {
    opacity: 0.85;
}
.sc-portal-nav__link.is-active {
    color: #942428;
    font-weight: 700;
    background: #fdf2f2;
}
.sc-portal-nav__link.is-active .sc-portal-nav__link-chevron {
    opacity: 1;
}
.sc-portal-nav__link .sc-badge {
    display: inline-block;
    margin-left: 4px;
    padding: 1px 6px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: #942428;
    border-radius: 999px;
    vertical-align: middle;
}
body.sc-portal-nav-open {
    overflow: hidden;
}

/* My Shipments — Active / Past sections */
.sc-shipments-section {
    margin-bottom: 28px;
}
.sc-shipments-section__title {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.sc-shipments-section__empty {
    margin: 0 0 8px;
    font-size: 14px;
    color: #888;
}
.sc-shipments-empty {
    text-align: center;
    padding: 40px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px dashed #ccc;
}
.sc-shipments-empty p {
    margin: 0;
    color: #777;
    font-size: 16px;
}
.sc-shipments-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}
.sc-shipments-pagination__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    text-decoration: none !important;
    border: 1px solid #ddd;
    background: #fff;
}
.sc-shipments-pagination__link:hover {
    border-color: #942428;
    color: #942428;
}
.sc-shipments-pagination__link.is-current {
    background: #942428;
    border-color: #942428;
    color: #fff;
}
body.sc-pwa-app-page .sc-pwa-tab-bar {
    display: none !important;
}

/* Hero quick actions (below user name) */
.sc-portal-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 14px;
    width: 100%;
    max-width: 680px;
}
.sc-portal-hero__action {
    padding: 8px 14px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.35);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    line-height: 1.3;
}
.sc-portal-hero__action:hover {
    background: rgba(255,255,255,.24);
    color: #fff;
}
.sc-portal-hero__action-img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Google review prompt (My Shipments) */
.sc-shipments-page {
    display: flex;
    flex-direction: column;
}
.sc-say-thanks--google {
    text-align: center;
}
.sc-say-thanks--shipments {
    width: min(420px, 100%);
    max-width: 420px;
    margin: 36px auto 8px;
}
.sc-say-thanks__card {
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(60, 64, 67, 0.14), 0 1px 3px rgba(60, 64, 67, 0.08);
    padding: 20px 22px 18px;
    text-align: center;
}
.sc-say-thanks__brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 6px 12px;
    background: #f8f9fa;
    border: 1px solid #e8eaed;
    border-radius: 999px;
}
.sc-say-thanks__google-g {
    display: block;
    flex-shrink: 0;
}
.sc-say-thanks__brand-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #5f6368;
    text-transform: uppercase;
}
.sc-say-thanks__title {
    margin: 0 0 6px;
    color: #202124;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
}
.sc-say-thanks__lead {
    margin: 0 0 14px;
    color: #5f6368;
    font-size: 13px;
    line-height: 1.5;
    max-width: 34ch;
    margin-left: auto;
    margin-right: auto;
}
.sc-say-thanks__rating-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 10px;
    margin: 0 0 16px;
}
.sc-say-thanks__stars {
    display: inline-flex;
    gap: 2px;
    line-height: 1;
}
.sc-say-thanks__star {
    color: #dadce0;
    font-size: 18px;
}
.sc-say-thanks__star.is-filled {
    color: #fbbc04;
}
.sc-say-thanks__score {
    font-size: 15px;
    font-weight: 700;
    color: #202124;
}
.sc-say-thanks__count {
    color: #5f6368;
    font-size: 12px;
}
.sc-say-thanks__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    padding: 11px 18px;
    background: #1a73e8;
    border: none;
    border-radius: 999px;
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    box-shadow: 0 1px 2px rgba(26, 115, 232, 0.35);
    transition: background 0.15s ease, box-shadow 0.15s ease;
}
.sc-say-thanks__cta:hover,
.sc-say-thanks__cta:focus {
    background: #1765cc;
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.35);
    color: #fff !important;
}
.sc-say-thanks__cta svg {
    flex-shrink: 0;
    opacity: 0.95;
}
.sc-say-thanks__hint {
    margin: 12px 0 0;
    font-size: 11px;
    color: #80868b;
    line-height: 1.45;
}
.sc-say-thanks__hint strong {
    color: #5f6368;
    font-weight: 600;
}

/* Circular profile photos only */
.sencargo-customer-portal .sc-account-photo-card img,
.sc-portal-hero__avatar,
.sc-portal-hero__avatar-wrap {
    border-radius: 50% !important;
}

/* Squared controls inside customer + driver portals (except profile photos) */
.sencargo-customer-portal .sc-modern-btn,
.sencargo-customer-portal .sc-nav-tab,
.sencargo-customer-portal .sc-native-chip,
.sencargo-staff-portal.sc-staff-portal-shell .sc-modern-btn,
.sc-driver-portal-shell .sc-modern-btn,
.sc-driver-portal-shell .sc-driver-portal-tab {
    border-radius: 0 !important;
}

/* Driver + staff portal shell + bottom tabs */
.sc-staff-portal-shell,
.sc-driver-portal-shell {
    max-width: 920px;
    margin: 0 auto;
    font-family: sans-serif;
    background: transparent;
    padding: 0 0 78px;
    border-radius: 0;
}
.sc-driver-tab-panel:not(.sc-tab-content) {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    min-height: auto;
}
.sc-driver-tab-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999998;
    height: calc(58px + env(safe-area-inset-bottom, 0));
    padding-bottom: env(safe-area-inset-bottom, 0);
    background: #fff;
    border-top: 1px solid rgba(17,24,39,.08);
}
.sc-driver-tab-bar a {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: #9ca3af;
    text-decoration: none !important;
    font-size: 10px;
    font-weight: 500;
    padding: 4px 2px 0;
}
.sc-driver-tab-bar__icon-wrap {
    position: relative;
    display: inline-flex;
    line-height: 0;
}
.sc-driver-tab-bar a svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}
.sc-driver-tab-bar__label {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.15;
    text-align: center;
}
.sc-driver-tab-bar__badge {
    position: absolute;
    top: -4px;
    right: -8px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    box-sizing: border-box;
}
.sc-driver-tab-bar a.active {
    color: #942428;
    font-weight: 600;
}
@media (min-width: 901px) {
    .sc-driver-tab-bar { display: none; }
    .sc-staff-portal-shell,
    .sc-driver-portal-shell,
    .sc-customer-portal-shell { padding-bottom: 20px; }
}

/* RingCentral embeddable phone — corner badge; detailed rules in sc-rc-embed.css (stylesUri) */
#rc-widget-adapter-frame,
#rc-widget,
.ringcentral-widgets-frame-adapter {
	z-index: 99990 !important;
}
.sc-driver-portal-shell ~ #rc-widget-adapter-frame,
.sc-staff-portal-shell ~ #rc-widget-adapter-frame {
	bottom: calc(58px + env(safe-area-inset-bottom, 0) + 10px) !important;
}
@media (min-width: 901px) {
	.sc-driver-portal-shell ~ #rc-widget-adapter-frame,
	.sc-staff-portal-shell ~ #rc-widget-adapter-frame {
		bottom: 16px !important;
	}
}