/* ============================================================
 * Driver mobile-web portal (/driver/)
 *
 * Designed phone-first; readable on tablets but the desktop nav
 * is intentionally absent here. App-bar at top, scroll body in
 * the middle, tab bar pinned to bottom (thumb zone).
 *
 * All rules scoped under .driver-portal so nothing here can
 * leak into the dispatcher views.
 * ============================================================ */

.driver-portal {
    background: #f3f4f6;
    color: #1f2937;
    font-size: 15px;
    min-height: 100vh;
    margin: 0;
    /* Lock at viewport; main scrolls. */
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* ── App bar ───────────────────────────────────────────────── */
.driver-portal .driver-appbar {
    flex: 0 0 auto;
    height: 56px;
    background: var(--dark_blue);
    color: #fff;
    display: flex;
    align-items: center;
    padding: 0 8px;
    /* Account for iOS notch / status bar. */
    padding-top: env(safe-area-inset-top);
    height: calc(56px + env(safe-area-inset-top));
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    z-index: 10;
}
.driver-portal .driver-appbar-back,
.driver-portal .driver-appbar-action {
    color: #fff;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 22px;
    border-radius: 50%;
}
.driver-portal .driver-appbar-back:hover,
.driver-portal .driver-appbar-action:hover { background: rgba(255, 255, 255, 0.12); }
.driver-portal .driver-appbar-title {
    flex: 1;
    text-align: center;
    font-weight: 600;
    font-size: 17px;
    /* Account for the 44px buttons on either side so the title is
     * actually centered visually. */
    padding: 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Main scroll area ──────────────────────────────────────── */
.driver-portal .driver-main {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px 12px 16px;
}

/* ── Tab bar ───────────────────────────────────────────────── */
.driver-portal .driver-tabbar {
    flex: 0 0 auto;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    display: flex;
    /* Account for iOS home indicator. */
    padding-bottom: env(safe-area-inset-bottom);
}
.driver-portal .driver-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 56px;
    color: #6b7280;
    text-decoration: none;
    font-size: 11px;
    gap: 2px;
}
.driver-portal .driver-tab i { font-size: 20px; }
.driver-portal .driver-tab.active {
    color: var(--dark_blue);
    font-weight: 600;
}

/* ── Cards / list items ─────────────────────────────────────── */
.driver-portal .driver-card {
    background: #fff;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 10px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    display: block;
    color: inherit;
    text-decoration: none;
}
.driver-portal a.driver-card:active { background: #f9fafb; }

.driver-portal .driver-card-title {
    font-weight: 600;
    font-size: 16px;
    color: var(--dark_blue);
    margin: 0 0 4px;
}
.driver-portal .driver-card-meta {
    color: #6b7280;
    font-size: 12px;
}
.driver-portal .driver-card-route {
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.4;
}
.driver-portal .driver-card-route .marker {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}
.driver-portal .driver-card-route .marker.from { background: #10b981; }
.driver-portal .driver-card-route .marker.to   { background: #ef4444; }
.driver-portal .driver-card-route .marker.via  { background: #6b7280; }

/* ── Section heading ───────────────────────────────────────── */
.driver-portal .driver-section-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
    font-weight: 600;
    margin: 12px 0 6px 4px;
}
.driver-portal .driver-section-title:first-child { margin-top: 0; }

/* ── Empty state ───────────────────────────────────────────── */
.driver-portal .driver-empty {
    text-align: center;
    color: #9ca3af;
    padding: 32px 16px;
    font-size: 14px;
}
.driver-portal .driver-empty i {
    display: block;
    font-size: 40px;
    margin-bottom: 8px;
    opacity: 0.6;
}

/* ── Status pills (delivery + trip) ────────────────────────── */
.driver-portal .driver-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
/* Delivery statuses */
.driver-portal .driver-status.PENDING                { background: #fef3c7; color: #92400e; }
.driver-portal .driver-status.ASSIGNED               { background: #dbeafe; color: #1e40af; }
.driver-portal .driver-status.ACCEPTED               { background: #dbeafe; color: #1e40af; }
.driver-portal .driver-status.IN_TRANSIT_TO_PICKUP   { background: #ede9fe; color: #5b21b6; }
.driver-portal .driver-status.AT_PICKUP              { background: #fef3c7; color: #92400e; }
.driver-portal .driver-status.LOADED                 { background: #d1fae5; color: #065f46; }
.driver-portal .driver-status.IN_TRANSIT_TO_DROPOFF  { background: #ede9fe; color: #5b21b6; }
.driver-portal .driver-status.AT_DROPOFF             { background: #fef3c7; color: #92400e; }
.driver-portal .driver-status.DELIVERED              { background: #d1fae5; color: #065f46; }
.driver-portal .driver-status.COMPLETED              { background: #d1fae5; color: #065f46; }
.driver-portal .driver-status.CANCELLED              { background: #f3f4f6; color: #4b5563; }
/* Trip statuses */
.driver-portal .driver-status.PLANNING               { background: #f3f4f6; color: #4b5563; }
.driver-portal .driver-status.SCHEDULED              { background: #dbeafe; color: #1e40af; }
.driver-portal .driver-status.IN_PROGRESS            { background: #ede9fe; color: #5b21b6; }

/* ── Filter pills ──────────────────────────────────────────── */
.driver-portal .driver-filter-row {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-bottom: 10px;
    /* iOS momentum scroll for the horizontal filter row. */
    -webkit-overflow-scrolling: touch;
}
.driver-portal .driver-filter-row::-webkit-scrollbar { display: none; }
.driver-portal .driver-filter {
    flex: 0 0 auto;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 16px;
    padding: 6px 12px;
    font-size: 13px;
    color: #4b5563;
    text-decoration: none;
}
.driver-portal .driver-filter.active {
    background: var(--dark_blue);
    color: #fff;
    border-color: var(--dark_blue);
    font-weight: 600;
}

/* ── Stop list (trip detail) ──────────────────────────────── */
.driver-portal .stop-list { padding-left: 0; list-style: none; margin: 0; }
.driver-portal .stop-list .stop {
    background: #fff;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    display: grid;
    grid-template-columns: 32px 1fr auto;
    grid-template-rows: auto auto;
    gap: 2px 8px;
    align-items: center;
    color: inherit;
    text-decoration: none;
}
.driver-portal .stop-list a.stop:active { background: #f9fafb; }
.driver-portal .stop-num {
    grid-row: 1 / 3;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--dark_blue);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
}
.driver-portal .stop-num.pickup  { background: #10b981; }
.driver-portal .stop-num.dropoff { background: #ef4444; }
.driver-portal .stop-action {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
}
.driver-portal .stop-where {
    font-weight: 600;
    color: #1f2937;
    grid-column: 2 / 4;
    grid-row: 2;
}
.driver-portal .stop-job {
    font-size: 11px;
    color: #6b7280;
    text-align: right;
}

/* ── Big primary action button (used on delivery view) ─────── */
.driver-portal .driver-action {
    display: block;
    width: 100%;
    background: var(--dark_blue);
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    margin-bottom: 8px;
}
.driver-portal .driver-action.secondary {
    background: #fff;
    color: var(--dark_blue);
    border: 1px solid var(--dark_blue);
}
.driver-portal .driver-action:active { opacity: 0.85; }

/* ── Definition list (key/value pairs on delivery view) ───── */
.driver-portal .driver-dl {
    background: #fff;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 10px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.driver-portal .driver-dl-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 4px 0;
    border-bottom: 1px solid #f3f4f6;
}
.driver-portal .driver-dl-row:last-child { border-bottom: none; }
.driver-portal .driver-dl-row .label {
    color: #6b7280;
    font-size: 12px;
    flex: 0 0 auto;
}
.driver-portal .driver-dl-row .value {
    color: #1f2937;
    font-weight: 500;
    text-align: right;
    min-width: 0;
    word-break: break-word;
}

/* ── Endpoint cards on delivery view ──────────────────────── */
.driver-portal .endpoint {
    background: #fff;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    border-left: 4px solid #6b7280;
}
.driver-portal .endpoint.from { border-left-color: #10b981; }
.driver-portal .endpoint.to   { border-left-color: #ef4444; }
.driver-portal .endpoint .endpoint-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
    font-weight: 600;
    margin-bottom: 2px;
}
.driver-portal .endpoint .endpoint-name {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2px;
}
.driver-portal .endpoint .endpoint-addr {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.35;
}
.driver-portal .endpoint .endpoint-contact {
    font-size: 13px;
    margin-top: 4px;
}
.driver-portal .endpoint .endpoint-contact a {
    color: var(--dark_blue);
    text-decoration: none;
    font-weight: 500;
}

/* ── Sticky bottom action bar (delivery view) ─────────────── */
/* Floats above the tab bar; the view appends an 80px spacer so
 * scroll content isn't covered. */
.driver-portal .driver-action-bar {
    position: fixed;
    left: 0;
    right: 0;
    /* 56px tabbar + iOS safe area inset. */
    bottom: calc(56px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid #e5e7eb;
    padding: 8px 12px;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
    z-index: 20;
}
.driver-portal .driver-action-bar .driver-action { margin-bottom: 6px; }
.driver-portal .driver-action-bar .driver-action:last-child { margin-bottom: 0; }

.driver-portal .driver-action.danger-outline {
    background: #fff;
    color: #b91c1c;
    border: 1px solid #fecaca;
}
.driver-portal .driver-action.danger-outline:active { background: #fee2e2; }

.driver-portal .driver-action-error {
    background: #fee2e2;
    color: #991b1b;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 13px;
    margin-bottom: 8px;
    cursor: pointer;
}

/* Subtle outline button — used for Undo. Lower visual priority than the
 * primary action; pairs with cancel in a horizontal row. */
.driver-portal .driver-action.subtle-outline {
    background: #fff;
    color: #4b5563;
    border: 1px solid #d1d5db;
    font-weight: 500;
}
.driver-portal .driver-action.subtle-outline:active { background: #f3f4f6; }

/* Row of secondary actions under the primary button. */
.driver-portal .driver-action-row {
    display: flex;
    gap: 6px;
}
.driver-portal .driver-action-row .driver-action {
    flex: 1;
    margin-bottom: 0;
    padding: 10px;
    font-size: 14px;
}

/* ── Notes panel (collapsible) ───────────────────────────── */
.driver-portal .notes-panel { margin-bottom: 8px; }
.driver-portal .notes-toggle {
    background: transparent;
    border: 0;
    color: #6b7280;
    font-size: 13px;
    padding: 4px 0;
    cursor: pointer;
}
.driver-portal .notes-toggle:hover { color: var(--dark_blue); }
.driver-portal .notes-input {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 14px;
    font-family: inherit;
    margin-top: 4px;
    resize: vertical;
}
.driver-portal .notes-input:focus {
    outline: none;
    border-color: var(--dark_blue);
    box-shadow: 0 0 0 2px rgba(9, 53, 80, 0.15);
}

/* ── Photo gallery ───────────────────────────────────────── */
.driver-portal .photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 8px;
    margin-bottom: 10px;
}
.driver-portal .photo-gallery-empty {
    grid-column: 1 / -1;
    background: #fff;
    color: #9ca3af;
    padding: 16px;
    text-align: center;
    font-size: 13px;
    border-radius: 8px;
    border: 1px dashed #e5e7eb;
}
.driver-portal .photo-thumb {
    position: relative;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    aspect-ratio: 1 / 1;
}
.driver-portal .photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.driver-portal .photo-thumb a { display: block; height: 100%; }
.driver-portal .photo-thumb-meta {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0));
    padding: 4px 6px 4px 6px;
    color: #fff;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.driver-portal .photo-thumb-type { font-weight: 600; }
.driver-portal .photo-thumb-delete {
    background: rgba(0, 0, 0, 0.4);
    border: 0;
    color: #fff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}
.driver-portal .photo-thumb-delete:active { background: rgba(220, 38, 38, 0.85); }

/* ── Photo upload buttons ────────────────────────────────── */
.driver-portal .photo-upload { margin-bottom: 10px; }
.driver-portal .photo-upload-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}
.driver-portal .photo-take {
    background: #fff;
    color: var(--dark_blue);
    border: 1px solid var(--dark_blue);
    border-radius: 6px;
    padding: 10px 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}
.driver-portal .photo-take:active { background: #e6eef3; }
.driver-portal .photo-take i { display: block; font-size: 18px; margin-bottom: 2px; }

.driver-portal .photo-upload-status {
    background: #fffbeb;
    color: #92400e;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 13px;
    margin-top: 8px;
    text-align: center;
}

/* ── GPS tracking — home toggle card + app-bar pulse ─────── */
.driver-portal .tracking-card { border-left: 4px solid #6b7280; }
.driver-portal .tracking-card #driver_tracking_status.on {
    color: #059669;
    font-weight: 600;
}
.driver-portal .tracking-toggle {
    background: #fff;
    color: var(--dark_blue);
    border: 1.5px solid var(--dark_blue);
    border-radius: 18px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    min-width: 130px;
}
.driver-portal .tracking-toggle.on {
    background: #059669;
    color: #fff;
    border-color: #059669;
}
.driver-portal .tracking-toggle:disabled {
    background: #f3f4f6;
    color: #9ca3af;
    border-color: #d1d5db;
    cursor: not-allowed;
}

/* App-bar pulse — green dot when tracking is on, invisible when off. */
.driver-portal .tracking-pulse {
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    vertical-align: middle;
    opacity: 0;
    transition: opacity 0.2s;
}
.driver-portal .tracking-pulse.on { opacity: 1; }
.driver-portal .tracking-pulse .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
    animation: tracking-pulse 1.8s ease-out infinite;
}
@keyframes tracking-pulse {
    0%   { box-shadow: 0 0 0 0  rgba(52, 211, 153, 0.7); }
    70%  { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0);   }
    100% { box-shadow: 0 0 0 0  rgba(52, 211, 153, 0);   }
}

/* ── Install pill (PWA prompt) ───────────────────────────── */
.driver-portal .install-pill {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #093550, #138d87);
    color: #fff;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 12px;
    box-shadow: 0 2px 6px rgba(9, 53, 80, 0.15);
}
.driver-portal .install-pill.ios {
    background: linear-gradient(135deg, #1f2937, #374151);
}
.driver-portal .install-pill-title {
    font-weight: 600;
    margin-bottom: 2px;
}
.driver-portal .install-pill-meta {
    font-size: 12px;
    opacity: 0.9;
    line-height: 1.3;
}
.driver-portal .install-pill-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    flex: 0 0 auto;
}
.driver-portal .install-pill-dismiss {
    background: rgba(255, 255, 255, 0.15);
    border: 0;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
}
.driver-portal .install-pill-dismiss:active { background: rgba(255, 255, 255, 0.3); }
.driver-portal .install-pill-go {
    background: #fff;
    color: var(--dark_blue);
    border: 0;
    border-radius: 18px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}
.driver-portal .install-pill-go:active { background: #e6eef3; }

/* ── Signature modal ─────────────────────────────────────── */
/* Full-viewport overlay with a centered card. The card stretches to the
 * viewport on small phones so the canvas has the most room possible to
 * sign on. touch-action:none on the canvas itself lets us swallow the
 * gesture cleanly without iOS scrolling the page mid-signature. */
.driver-portal .signature-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    padding-top: max(12px, env(safe-area-inset-top));
    padding-bottom: max(12px, env(safe-area-inset-bottom));
}
.driver-portal .signature-modal-card {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 600px;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}
.driver-portal .signature-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 14px 16px;
    border-bottom: 1px solid #f3f4f6;
}
.driver-portal .signature-modal-title {
    font-weight: 700;
    color: var(--dark_blue);
    font-size: 16px;
}
.driver-portal .signature-modal-sub {
    color: #6b7280;
    font-size: 12px;
    margin-top: 2px;
}
.driver-portal .signature-close {
    background: transparent;
    border: 0;
    color: #6b7280;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}
.driver-portal .signature-modal-body {
    padding: 14px 16px;
    flex: 1 1 auto;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* Printed name input */
.driver-portal .signature-name-input {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 15px;
    font-family: inherit;
    margin-bottom: 10px;
}
.driver-portal .signature-name-input:focus {
    outline: none;
    border-color: var(--dark_blue);
    box-shadow: 0 0 0 2px rgba(9, 53, 80, 0.15);
}

/* Canvas wrap — provides the visible signing area + baseline guide.
 * Aspect ratio 16:7 keeps it landscape on portrait phones (~280×120 on
 * a typical 6" phone). The canvas itself fills 100% of this. */
.driver-portal .signature-canvas-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 7;
    background: #fafafa;
    border: 1.5px dashed #cbd5e1;
    border-radius: 8px;
    overflow: hidden;
}
.driver-portal .signature-canvas-wrap canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    /* Disable native gestures so iOS doesn't scroll the page when you
     * try to sign — Pointer Events still fire. */
    touch-action: none;
    cursor: crosshair;
}
.driver-portal .signature-baseline {
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: 28%;
    height: 1px;
    background: #cbd5e1;
    pointer-events: none;
}
.driver-portal .signature-baseline-label {
    position: absolute;
    left: 8%;
    bottom: calc(28% - 18px);
    font-size: 10px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    pointer-events: none;
}
.driver-portal .signature-clear {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #d1d5db;
    color: #6b7280;
    border-radius: 4px;
    font-size: 11px;
    padding: 4px 8px;
    cursor: pointer;
}
.driver-portal .signature-clear:active { background: #f3f4f6; }

.driver-portal .signature-status {
    background: #fffbeb;
    color: #92400e;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 13px;
    margin-top: 10px;
    text-align: center;
}

.driver-portal .signature-modal-footer {
    display: flex;
    /* Phone-first: stack Save on top of Skip. The DOM order is
     * Skip-then-Save so column-reverse promotes Save to the visual top
     * where the primary action belongs. */
    flex-direction: column-reverse;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid #f3f4f6;
    background: #f9fafb;
}
.driver-portal .signature-modal-footer .driver-action {
    margin-bottom: 0;
    width: 100%;
}
/* On wider viewports flip back to a single row with Skip compact + Save
 * filling the remainder — the original desktop layout. */
@media (min-width: 480px) {
    .driver-portal .signature-modal-footer {
        flex-direction: row;
    }
    .driver-portal .signature-modal-footer .driver-action {
        flex: 1;
        width: auto;
    }
    .driver-portal .signature-modal-footer .driver-action.subtle-outline {
        flex: 0 0 auto;
        min-width: 140px;
    }
}
