/* Rollin Publipostage — Design System */

:root {
    --rollin-navy: #1B3A57;
    --rollin-navy-dark: #142c42;
    --rollin-green: #53B400;
    --rollin-green-dark: #449600;
    --rollin-blue: #2d7dd2;
    --rollin-blue-light: #e8f2fc;
    --rollin-red: #c0392b;
    --rollin-orange: #e67e22;
    --rollin-grey: #8294a5;
    --rollin-grey-light: #f4f7fa;
    --rollin-grey-border: #dde4ec;
    --rollin-text: #1a2b3c;
    --rollin-muted: #6b7c8f;
    --rollin-white: #ffffff;
    --rollin-radius: 8px;
    --rollin-radius-lg: 12px;
    --rollin-shadow: 0 2px 8px rgba(27, 58, 87, 0.08);
    --rollin-shadow-lg: 0 8px 24px rgba(27, 58, 87, 0.12);
    --rollin-main-max-width: 1440px;
    --rollin-font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body.rollin-page {
    margin: 0;
    font-family: var(--rollin-font);
    font-size: 15px;
    line-height: 1.5;
    color: var(--rollin-text);
    background: var(--rollin-grey-light);
    min-height: 100vh;
}

/* ── Header ── */

.rollin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    height: 64px;
    background: var(--rollin-navy);
    color: var(--rollin-white);
}

.rollin-header__brand {
    display: flex;
    align-items: center;
    gap: 32px;
}

.rollin-header__brand img {
    height: 36px;
    filter: brightness(0) invert(1);
}

.rollin-nav {
    display: flex;
    gap: 8px;
}

.rollin-nav__link {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    padding: 6px 14px;
    border-radius: var(--rollin-radius);
    font-size: 14px;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
}

.rollin-nav__link:hover,
.rollin-nav__link.is-active {
    color: var(--rollin-white);
    background: rgba(255, 255, 255, 0.12);
}

/* ── Main layout ── */

.rollin-main {
    max-width: var(--rollin-main-max-width);
    margin: 0 auto;
    padding: 32px 24px 64px;
}

.rollin-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.rollin-page-header__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.rollin-actions-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.rollin-back {
    display: inline-block;
    color: var(--rollin-muted);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 16px;
}

.rollin-back:hover {
    color: var(--rollin-navy);
}

/* ── Typography ── */

.rollin-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--rollin-muted);
    margin: 0 0 4px;
}

.rollin-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--rollin-navy);
    margin: 0 0 8px;
    line-height: 1.2;
}

.rollin-subtitle {
    font-size: 18px;
    font-weight: 600;
    color: var(--rollin-navy);
    margin: 0 0 16px;
}

.rollin-muted {
    color: var(--rollin-muted);
    font-size: 14px;
}

.rollin-text-sm {
    font-size: 12px;
}

/* ── Cards & panels ── */

.rollin-card-panel {
    background: var(--rollin-white);
    border: 1px solid var(--rollin-grey-border);
    border-radius: var(--rollin-radius-lg);
    padding: 24px;
    box-shadow: var(--rollin-shadow);
    margin-bottom: 20px;
}

.rollin-wizard-panel {
    max-width: 720px;
}

/* ── KPI grid ── */

.rollin-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.rollin-kpi-grid--6 {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.rollin-kpi-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    min-width: 0;
}

.rollin-kpi-card__head {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    flex: 0 0 auto;
}

.rollin-kpi-card__metrics {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    width: 100%;
    flex: 0 0 auto;
    min-width: 0;
}

.rollin-kpi-card__icon {
    width: 22px;
    height: 22px;
    color: var(--rollin-blue);
    flex-shrink: 0;
    margin-top: 1px;
}

.rollin-kpi-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--rollin-muted);
    line-height: 1.3;
    min-width: 0;
}

.rollin-kpi-value {
    display: block;
    font-family: var(--rollin-font-title);
    font-size: 34px;
    font-weight: 700;
    color: var(--rollin-navy);
    line-height: 1;
    flex-shrink: 0;
}

.rollin-kpi-detail {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin: 0;
    font-size: 12px;
    line-height: 1.3;
    flex-shrink: 0;
}

.rollin-kpi-detail__line {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    white-space: nowrap;
}

.rollin-kpi-detail__icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.rollin-kpi-detail__accord {
    color: var(--rollin-green-dark);
}

.rollin-kpi-detail__accord .rollin-kpi-detail__icon {
    color: var(--rollin-green-dark);
}

.rollin-kpi-detail__refus {
    color: var(--rollin-red);
}

.rollin-kpi-detail__refus .rollin-kpi-detail__icon {
    color: var(--rollin-red);
}

/* ── Buttons ── */

.rollin-btn-primary,
.rollin-btn-secondary,
.rollin-btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: var(--rollin-radius);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    white-space: nowrap;
}

.rollin-btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

.rollin-btn-primary {
    background: var(--rollin-green);
    color: var(--rollin-white);
    border-color: var(--rollin-green);
}

.rollin-btn-primary:hover {
    background: var(--rollin-green-dark);
    border-color: var(--rollin-green-dark);
    color: var(--rollin-white);
}

.rollin-btn-secondary {
    background: var(--rollin-white);
    color: var(--rollin-navy);
    border-color: var(--rollin-grey-border);
}

.rollin-btn-secondary:hover {
    border-color: var(--rollin-navy);
    color: var(--rollin-navy);
}

.rollin-btn-danger {
    background: var(--rollin-white);
    color: var(--rollin-red);
    border-color: var(--rollin-red);
}

.rollin-btn-danger:hover {
    background: var(--rollin-red);
    color: var(--rollin-white);
}

button.rollin-btn-primary,
button.rollin-btn-secondary,
button.rollin-btn-danger {
    font-family: inherit;
}

/* ── Icon buttons ── */

.rollin-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
}

.rollin-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--rollin-radius);
    border: 1px solid var(--rollin-grey-border);
    background: var(--rollin-white);
    color: var(--rollin-navy);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.rollin-icon-btn:hover {
    border-color: var(--rollin-navy);
    background: var(--rollin-blue-light);
}

.rollin-icon-btn--primary {
    background: var(--rollin-green);
    border-color: var(--rollin-green);
    color: var(--rollin-white);
}

.rollin-icon-btn--primary:hover {
    background: var(--rollin-green-dark);
    border-color: var(--rollin-green-dark);
    color: var(--rollin-white);
}

.rollin-icon-btn--danger {
    color: var(--rollin-red);
    border-color: #f5c6c2;
}

.rollin-icon-btn--danger:hover {
    background: #fdf0ef;
    border-color: var(--rollin-red);
}

.rollin-icon-btn--disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.rollin-icon-actions {
    display: flex;
    gap: 6px;
}

.rollin-icon-btn svg,
.rollin-icon-btn .rollin-icon {
    width: 18px;
    height: 18px;
}

/* ── Badges ── */

.rollin-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.rollin-badge--active { background: var(--rollin-blue-light); color: var(--rollin-blue); }
.rollin-badge--sent { background: #e8f5e0; color: var(--rollin-green-dark); }
.rollin-badge--closed { background: #eef0f3; color: var(--rollin-muted); }
.rollin-badge--accord { background: #e8f5e0; color: var(--rollin-green-dark); }
.rollin-badge--refus { background: #fdecea; color: var(--rollin-red); }
.rollin-badge--repondu { background: var(--rollin-blue-light); color: var(--rollin-blue); }
.rollin-badge--pending { background: #eef0f3; color: var(--rollin-grey); }
.rollin-badge--overdue { background: #fef3e2; color: var(--rollin-orange); }
.rollin-badge--muted { background: #eef0f3; color: var(--rollin-muted); font-weight: 500; font-size: 10.5px; padding: 2px 8px; margin-left: 4px; }

/* ── Tabs ── */

.rollin-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid var(--rollin-grey-border);
    margin-bottom: 24px;
}

.rollin-tabs__item {
    display: inline-block;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--rollin-muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.15s, border-color 0.15s;
}

.rollin-tabs__item:hover {
    color: var(--rollin-navy);
}

.rollin-tabs__item.is-active {
    color: var(--rollin-navy);
    border-bottom-color: var(--rollin-green);
    font-weight: 600;
}

/* ── Filter bar ── */

.rollin-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.rollin-input,
.rollin-filter-bar select {
    padding: 8px 12px;
    border: 1px solid var(--rollin-grey-border);
    border-radius: var(--rollin-radius);
    font-size: 14px;
    font-family: inherit;
    color: var(--rollin-text);
    background: var(--rollin-white);
    min-width: 140px;
}

.rollin-input:focus,
.rollin-filter-bar select:focus {
    outline: none;
    border-color: var(--rollin-blue);
    box-shadow: 0 0 0 3px rgba(45, 125, 210, 0.15);
}

.rollin-map-subtitle {
    margin: 0 0 12px;
}

/* ── Tables ── */

.rollin-table-wrap {
    overflow-x: auto;
}

.rollin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.rollin-table th {
    text-align: left;
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--rollin-muted);
    border-bottom: 2px solid var(--rollin-grey-border);
    white-space: nowrap;
}

.rollin-table td {
    padding: 12px;
    border-bottom: 1px solid var(--rollin-grey-border);
    vertical-align: middle;
}

.rollin-table tbody tr:hover {
    background: #fafbfc;
}

.rollin-table tbody tr.is-overdue {
    background: #fffbf5;
}

.rollin-table tbody tr.is-refus,
.rollin-table tbody tr.is-refus td {
    background-color: #fce8ec;
}

.rollin-table tbody tr.is-refus:hover,
.rollin-table tbody tr.is-refus:hover td {
    background-color: #f8d0d8;
}

.rollin-table tbody tr.is-refus.is-route-ineligible,
.rollin-table tbody tr.is-refus.is-route-ineligible td {
    background-color: #fce8ec;
}

.rollin-table tbody tr.is-refus.is-route-ineligible td {
    color: inherit;
}

.rollin-table__cell--gpo {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 13px;
    white-space: nowrap;
    min-width: 110px;
}

.rollin-input--gpo {
    max-width: 140px;
}

.rollin-table__cell--nowrap {
    white-space: nowrap;
}

.rollin-table__cell--actions {
    white-space: nowrap;
}

.rollin-table-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

.rollin-sort-link {
    color: inherit;
    text-decoration: none;
}

.rollin-sort-link:hover {
    color: var(--rollin-navy);
}

/* ── Forms ── */

.rollin-form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.rollin-form-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--rollin-navy);
}

.rollin-form-field input,
.rollin-form-field select,
.rollin-form-field textarea {
    border: 1px solid var(--rollin-grey-border);
    border-radius: var(--rollin-radius);
    padding: 10px 12px;
    font: inherit;
    background: var(--rollin-white);
    color: var(--rollin-text);
}

.rollin-form-field input:focus,
.rollin-form-field select:focus,
.rollin-form-field textarea:focus {
    outline: none;
    border-color: var(--rollin-green);
    box-shadow: 0 0 0 3px rgba(83, 180, 0, 0.15);
}

.rollin-form-field--inline {
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.rollin-form-field--inline input[type="checkbox"] {
    width: 18px;
    height: 18px;
    padding: 0;
    margin: 0;
    flex-shrink: 0;
    accent-color: var(--rollin-green);
}

.rollin-form-field--inline label {
    margin: 0;
    cursor: pointer;
}

.rollin-form-field input[type="file"] {
    padding: 10px 0;
    border: none;
    background: transparent;
}

.rollin-form-field .form-help,
.rollin-form-field .help-text {
    font-size: 13px;
    color: var(--rollin-muted);
    margin: 0;
}

.rollin-form-field ul {
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
    font-size: 13px;
    color: var(--rollin-red);
}

.rollin-form-grid {
    display: grid;
    gap: 18px;
    margin-bottom: 18px;
}

.rollin-form-grid--2 {
    grid-template-columns: 1fr 1fr;
}

.rollin-locked-block {
    background: #f8fafb;
    border: 1px solid var(--rollin-grey-border);
    border-radius: var(--rollin-radius);
    padding: 16px;
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.6;
}

.rollin-option-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.rollin-option-code {
    font-size: 12px;
    font-weight: 700;
    color: var(--rollin-muted);
    text-transform: uppercase;
}

.rollin-radio-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rollin-radio-card {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 14px;
    border: 1px solid var(--rollin-grey-border);
    border-radius: var(--rollin-radius);
    cursor: pointer;
    background: var(--rollin-white);
}

.rollin-radio-card:has(input:checked) {
    border-color: var(--rollin-green);
    background: #e8f5e0;
}

.rollin-input,
select.rollin-input,
textarea.rollin-input {
    border: 1px solid var(--rollin-grey-border);
    border-radius: var(--rollin-radius);
    padding: 10px 12px;
    font: inherit;
    min-width: 160px;
    background: var(--rollin-white);
    color: var(--rollin-text);
}

.rollin-input:focus,
select.rollin-input:focus,
textarea.rollin-input:focus {
    outline: none;
    border-color: var(--rollin-blue);
    box-shadow: 0 0 0 3px rgba(45, 125, 210, 0.15);
}

.rollin-alert-error {
    background: #fdecea;
    color: var(--rollin-red);
    border-radius: var(--rollin-radius);
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 14px;
}

.rollin-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.rollin-dropzone {
    border: 2px dashed var(--rollin-grey-border);
    border-radius: var(--rollin-radius-lg);
    padding: 24px;
    margin-bottom: 16px;
    text-align: center;
}

/* ── Flash messages ── */

.rollin-flash {
    padding: 12px 16px;
    border-radius: var(--rollin-radius);
    margin-bottom: 16px;
    font-size: 14px;
}

.rollin-flash--success { background: #e8f5e0; color: var(--rollin-green-dark); border: 1px solid #c5e8a8; }
.rollin-flash--error { background: #fdecea; color: var(--rollin-red); border: 1px solid #f5c6c2; }
.rollin-flash--warning { background: #fef3e2; color: #b35c00; border: 1px solid #fad9a0; }

/* ── Progress ── */

.rollin-progress-panel {
    margin-top: 20px;
}

.rollin-progress-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 8px;
}

.rollin-progress-track {
    height: 8px;
    background: var(--rollin-grey-border);
    border-radius: 4px;
    overflow: hidden;
}

.rollin-progress-bar {
    height: 100%;
    background: var(--rollin-green);
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
}

/* ── Stepper ── */

.rollin-stepper {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.rollin-stepper__item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: var(--rollin-radius);
    font-size: 13px;
    color: var(--rollin-muted);
    text-decoration: none;
    border: 1px solid var(--rollin-grey-border);
    background: var(--rollin-white);
}

.rollin-stepper__item.is-active {
    border-color: var(--rollin-green);
    color: var(--rollin-navy);
    font-weight: 600;
}

.rollin-stepper__item.is-done {
    color: var(--rollin-green-dark);
    border-color: #c5e8a8;
}

.rollin-stepper__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--rollin-grey-border);
    font-size: 12px;
    font-weight: 700;
}

.rollin-stepper__item.is-active .rollin-stepper__num {
    background: var(--rollin-green);
    color: var(--rollin-white);
}

.rollin-stepper__item.is-done .rollin-stepper__num {
    background: var(--rollin-green);
    color: var(--rollin-white);
}

/* ── Import report ── */

.rollin-import-report {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: var(--rollin-radius);
    font-size: 14px;
}

.rollin-import-report.is-success { background: #e8f5e0; color: var(--rollin-green-dark); }
.rollin-import-report.is-error { background: #fdecea; color: var(--rollin-red); }

/* ── Modals ── */

.rollin-modal-overlay[hidden],
.rollin-modal[hidden] {
    display: none !important;
}

.rollin-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(27, 58, 87, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 24px;
}

turbo-frame#response-modal {
    display: block;
}

turbo-frame#response-modal:not(:empty) {
    position: fixed;
    inset: 0;
    z-index: 1000;
    pointer-events: none;
}

turbo-frame#response-modal:not(:empty) .rollin-modal-overlay {
    pointer-events: auto;
}

.rollin-modal {
    background: var(--rollin-white);
    border-radius: var(--rollin-radius-lg);
    box-shadow: var(--rollin-shadow-lg);
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.rollin-modal--large {
    max-width: 90vw;
    width: 90vw;
    height: 80vh;
    max-height: 80vh;
}

.rollin-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--rollin-grey-border);
}

.rollin-modal__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--rollin-navy);
    margin: 0;
}

.rollin-modal__close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--rollin-muted);
    line-height: 1;
    padding: 0 4px;
}

.rollin-modal__close:hover {
    color: var(--rollin-navy);
}

.rollin-modal__body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.rollin-modal__footer {
    padding: 16px 24px;
    border-top: 1px solid var(--rollin-grey-border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ── Map ── */

.rollin-map-container {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border-radius: var(--rollin-radius);
    overflow: hidden;
}

.rollin-map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 10px 0;
    font-size: 13px;
    color: var(--rollin-muted);
}

.rollin-map-legend__item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rollin-map-legend__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.rollin-map-legend__dot--pending { background: var(--rollin-grey); }
.rollin-map-legend__dot--accord { background: var(--rollin-green); }
.rollin-map-legend__dot--refus { background: var(--rollin-red); }

/* ── Login page ── */

body.rollin-page:has(.rollin-login) {
    background: #f4f4f4;
}

.rollin-login {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    min-height: 100vh;
}

.rollin-login__hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 56px;
    overflow: hidden;
    background: linear-gradient(155deg, #04294c 0%, #001942 100%);
    color: var(--rollin-white);
}

.rollin-login__hero::after {
    content: '';
    position: absolute;
    right: -120px;
    bottom: -80px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(83, 180, 0, 0.22), transparent 68%);
    pointer-events: none;
}

.rollin-login__logo {
    position: relative;
    z-index: 1;
    height: 34px;
    width: auto;
    align-self: flex-start;
    filter: brightness(0) invert(1);
}

.rollin-login__hero-content {
    position: relative;
    z-index: 1;
    max-width: 430px;
}

.rollin-login__kicker {
    margin: 0 0 18px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--rollin-green);
}

.rollin-login__hero h1 {
    margin: 0 0 18px;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--rollin-white);
}

.rollin-login__desc {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #a7bbd0;
}

.rollin-login__footer {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 13px;
    color: #6e86a2;
}

.rollin-login__panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: #f4f4f4;
}

.rollin-login__form {
    width: 100%;
    max-width: 380px;
}

.rollin-login__form h2 {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 700;
    color: #04294c;
}

.rollin-login__subtitle {
    margin: 0 0 30px;
    font-size: 15px;
    color: var(--rollin-grey);
}

.rollin-login__form .rollin-form-field label {
    color: #04294c;
}

.rollin-login__form .rollin-form-field input {
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 15px;
}

.rollin-login__submit {
    width: 100%;
    margin-top: 8px;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    background: linear-gradient(258deg, var(--rollin-green), #005baf);
    border-color: transparent;
    box-shadow: 0 6px 18px rgba(0, 91, 175, 0.25);
}

.rollin-login__submit:hover {
    background: linear-gradient(258deg, var(--rollin-green-dark), #004a8f);
    border-color: transparent;
    box-shadow: 0 8px 22px rgba(0, 91, 175, 0.3);
}

.rollin-login__note {
    margin: 26px 0 0;
    font-size: 12px;
    text-align: center;
    color: #a9b3be;
}

@media (max-width: 900px) {
    .rollin-login {
        grid-template-columns: 1fr;
    }

    .rollin-login__hero {
        min-height: auto;
        padding: 32px 24px;
        gap: 32px;
    }

    .rollin-login__hero h1 {
        font-size: 28px;
    }

    .rollin-login__panel {
        padding: 32px 24px 48px;
    }
}

/* ── Public pages ── */

.rollin-page--public {
    background: var(--rollin-grey-light);
}

.rollin-public-header {
    background: var(--rollin-navy);
    padding: 16px 24px;
    text-align: center;
}

.rollin-public-header img {
    height: 40px;
    filter: brightness(0) invert(1);
}

.rollin-public-main {
    max-width: 560px;
    margin: 32px auto;
    padding: 0 16px 64px;
}

.rollin-public-form fieldset {
    border: none;
    padding: 0;
    margin: 0 0 20px;
}

.rollin-public-form legend {
    font-weight: 600;
    color: var(--rollin-navy);
    margin-bottom: 10px;
    font-size: 15px;
}

.rollin-choice-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rollin-info-box {
    background: var(--rollin-blue-light);
    border-left: 4px solid var(--rollin-blue);
    padding: 12px 16px;
    border-radius: 0 var(--rollin-radius) var(--rollin-radius) 0;
    font-size: 14px;
    margin-bottom: 20px;
}

.rollin-public-footer {
    margin-top: 32px;
    font-size: 13px;
    color: var(--rollin-muted);
    text-align: center;
}

/* ── Responsive ── */

@media (max-width: 768px) {
    .rollin-header {
        padding: 0 16px;
        flex-wrap: wrap;
        height: auto;
        padding-top: 12px;
        padding-bottom: 12px;
        gap: 12px;
    }

    .rollin-main {
        padding: 20px 16px 48px;
    }

    .rollin-page-header {
        flex-direction: column;
    }

    .rollin-kpi-value {
        font-size: 24px;
    }

    .rollin-form-grid--2 {
        grid-template-columns: 1fr;
    }

    .rollin-option-row {
        grid-template-columns: 1fr;
    }

    .rollin-modal--large {
        width: 100%;
        max-width: 100%;
        height: 90vh;
    }

    .rollin-route-sheet-layout {
        grid-template-columns: 1fr;
    }
}

/* ── Route sheets ── */

.rollin-table tr.is-route-ineligible {
    background: #f8f9fb;
}

.rollin-table tr.is-route-ineligible td {
    color: var(--rollin-muted);
}

.rollin-table__cell--select {
    width: 44px;
    min-width: 44px;
    text-align: center;
}

.rollin-table__cell--tech {
    width: 56px;
    min-width: 56px;
    text-align: center;
    border-left: 1px solid var(--rollin-border, #e8ecf0);
    font-size: 12px;
    font-weight: 600;
    color: var(--rollin-muted);
}

.rollin-tech-badge-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.rollin-route-select-cell,
.rollin-map-cell-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.rollin-intervention-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.rollin-table__cell--intervention {
    white-space: nowrap;
}

.rollin-route-select {
    width: 18px;
    height: 18px;
    accent-color: var(--rollin-green);
    cursor: pointer;
}

.rollin-route-select:disabled {
    cursor: not-allowed;
    opacity: 0.35;
}

.rollin-tech-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(258deg, var(--rollin-green), #005baf);
    color: var(--rollin-white);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.rollin-tech-badge:hover {
    color: var(--rollin-white);
    box-shadow: 0 4px 12px rgba(0, 91, 175, 0.25);
}

.rollin-tech-badge--sm {
    width: 26px;
    height: 26px;
    font-size: 10px;
}

.rollin-route-sheet-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: var(--rollin-white);
    border: 1px solid var(--rollin-grey-border);
    border-radius: var(--rollin-radius-lg);
    box-shadow: var(--rollin-shadow);
}

.rollin-route-sheet-toolbar[hidden] {
    display: none !important;
}

.rollin-table__checkbox-col {
    width: 2.5rem;
}

.rollin-page-header--section {
    margin-top: 2rem;
}

.rollin-intervention-form {
    margin: 0;
    display: inline;
}

.rollin-intervention {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    background: transparent;
    padding: 0;
    font: inherit;
    cursor: default;
}

.rollin-intervention--pending {
    cursor: pointer;
    color: var(--rollin-grey);
}

.rollin-intervention--pending .rollin-intervention__icon {
    color: var(--rollin-grey);
}

.rollin-intervention--pending:hover {
    color: var(--rollin-navy);
}

.rollin-intervention--done {
    color: var(--rollin-green-dark);
}

.rollin-intervention--done .rollin-intervention__icon {
    color: var(--rollin-green-dark);
}

.rollin-intervention__icon {
    width: 18px;
    height: 18px;
}

.rollin-route-sheet-modal form {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.rollin-route-sheet-modal .rollin-modal__footer {
    flex-shrink: 0;
    background: var(--rollin-white);
}

.rollin-route-sheet-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.rollin-route-sheet-modal .rollin-route-sheet-form-grid {
    grid-template-columns: repeat(2, 1fr);
}

.rollin-route-sheet-create {
    margin-bottom: 24px;
}

.rollin-route-sheet-create-form .rollin-form-actions {
    margin-top: 16px;
}

.rollin-route-sheet-preview-list {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 220px;
    overflow: auto;
    font-size: 14px;
}

.rollin-route-sheet-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 20px;
    align-items: start;
}

.rollin-route-sheet-map-wrap {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.rollin-route-sheet-list-wrap {
    min-width: 0;
}

.rollin-route-sheet-dnd-hint {
    margin: 0 0 8px;
    font-size: 13px;
}

.rollin-route-sheet-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 420px;
    overflow-y: auto;
}

.rollin-route-sheet-item {
    display: grid;
    grid-template-columns: 28px 32px 1fr;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid var(--rollin-grey-border);
    border-radius: var(--rollin-radius);
    background: var(--rollin-white);
    position: relative;
    transition: box-shadow 0.15s, opacity 0.15s;
}

.rollin-route-sheet-item.is-dragging {
    opacity: 0.45;
    box-shadow: var(--rollin-shadow-lg);
}

.rollin-route-sheet-item.is-drag-over-above::before,
.rollin-route-sheet-item.is-drag-over-below::after {
    content: '';
    position: absolute;
    left: 8px;
    right: 8px;
    height: 3px;
    border-radius: 2px;
    background: var(--rollin-green);
}

.rollin-route-sheet-item.is-drag-over-above::before {
    top: -6px;
}

.rollin-route-sheet-item.is-drag-over-below::after {
    bottom: -6px;
}

.rollin-route-sheet-item__handle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    border-radius: var(--rollin-radius);
    background: transparent;
    color: var(--rollin-muted);
    cursor: grab;
    touch-action: none;
}

.rollin-route-sheet-item__handle svg {
    width: 18px;
    height: 18px;
}

.rollin-route-sheet-item__handle:hover {
    background: var(--rollin-grey-light);
    color: var(--rollin-navy);
}

.rollin-route-sheet-item__handle:active {
    cursor: grabbing;
}

.rollin-route-sheet-item__order {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--rollin-blue-light);
    color: var(--rollin-navy);
    font-size: 12px;
    font-weight: 700;
}

.rollin-route-sheet-item__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.rollin-route-sheet-item__body strong {
    font-size: 14px;
}

.rollin-route-sheet-item__no-gps {
    font-size: 11px;
    color: var(--rollin-orange);
    font-weight: 600;
}

.rollin-route-sheet-item__same-gps {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: var(--rollin-blue);
    font-weight: 600;
}

.rollin-route-sheet-item__status {
    justify-self: end;
}

.rollin-route-sheet-layout .rollin-map-container {
    height: 420px;
    min-height: 280px;
    max-height: 420px;
}

.rollin-route-sheet-map {
    height: 420px;
    min-height: 280px;
    max-height: 420px;
    flex-shrink: 0;
}

.rollin-route-sheet-warning {
    margin: 0 0 12px;
}

.rollin-leaflet-marker--numbered {
    background: transparent;
    border: none;
}

.rollin-leaflet-marker__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--rollin-green);
    color: var(--rollin-white);
    font-size: 12px;
    font-weight: 700;
    border: 2px solid var(--rollin-white);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.rollin-leaflet-marker__num--grouped {
    min-width: 26px;
    width: auto;
    padding: 0 6px;
    font-size: 11px;
}

.leaflet-popup-content ul {
    margin: 8px 0 0;
    padding-left: 18px;
}

.leaflet-popup-content li {
    margin-bottom: 4px;
}

.rollin-route-sheet-list--readonly .rollin-route-sheet-item {
    grid-template-columns: 32px 1fr auto;
}

/* ── Technician interface (mobile-first) ── */

.rollin-page--technician {
    --rollin-tech-navy: #04294C;
    --rollin-tech-navy-deep: #001942;
    --rollin-tech-green: #53B400;
    --rollin-tech-blue: #005BAF;
    --rollin-tech-bg: #E9EDF1;
    --rollin-tech-text: #1D1D29;
    --rollin-tech-muted: #6A7480;
    --rollin-tech-border: #E1E6EB;
    --rollin-tech-label: #A7BBD0;
    background: var(--rollin-tech-bg);
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--rollin-tech-text);
    -webkit-font-smoothing: antialiased;
}

.rollin-tech-shell {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    padding: 0;
}

.rollin-tech-phone {
    width: 100%;
    max-width: 390px;
    min-height: 100vh;
    min-height: 100dvh;
    background: #fff;
    display: flex;
    flex-direction: column;
}

@media (min-width: 420px) {
    .rollin-tech-shell {
        padding: 32px 16px;
    }

    .rollin-tech-phone {
        min-height: calc(100dvh - 64px);
        border-radius: 30px;
        overflow: hidden;
        border: 1px solid var(--rollin-tech-border);
        box-shadow: 0 18px 60px rgba(4, 41, 76, 0.22);
    }
}

.rollin-tech-topbar {
    background: var(--rollin-tech-navy);
    padding: 14px 22px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.rollin-tech-topbar__logo {
    height: 24px;
    width: auto;
    filter: brightness(0) invert(1);
    object-fit: contain;
}

.rollin-tech-topbar__divider {
    width: 1px;
    height: 22px;
    background: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.rollin-tech-topbar__label {
    color: var(--rollin-tech-label);
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.3;
}

.rollin-tech-main {
    flex: 1;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.rollin-tech-flash {
    margin: 16px 18px 0;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
}

.rollin-tech-flash--success {
    background: #F1FAEA;
    border: 1px solid #CFE9B8;
    color: #3A7A00;
}

.rollin-tech-flash--error {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #B91C1C;
}

.rollin-tech-login {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.rollin-tech-login__hero {
    background: linear-gradient(160deg, var(--rollin-tech-navy), var(--rollin-tech-navy-deep));
    padding: 28px 22px 32px;
    color: #fff;
}

.rollin-tech-login__eyebrow {
    font-family: 'Switzer', system-ui, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    color: #7FD13B;
    font-size: 11.5px;
    letter-spacing: 0.09em;
    margin: 0 0 10px;
}

.rollin-tech-login__title {
    font-family: 'Switzer', system-ui, sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
    margin: 0 0 10px;
}

.rollin-tech-login__lead {
    font-size: 15px;
    line-height: 1.55;
    color: var(--rollin-tech-label);
    margin: 0;
}

.rollin-tech-login__body {
    padding: 24px 22px 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.rollin-tech-login__form {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.rollin-tech-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.rollin-tech-field__label {
    font-family: 'Switzer', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--rollin-tech-green);
}

.rollin-tech-field__input {
    width: 100%;
    border: 1.5px solid #D5DAE0;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 16px;
    font-family: inherit;
    color: var(--rollin-tech-text);
    background: #fff;
    -webkit-appearance: none;
    appearance: none;
}

.rollin-tech-field__input:focus {
    outline: none;
    border-color: var(--rollin-tech-green);
    box-shadow: 0 0 0 3px rgba(83, 180, 0, 0.18);
}

.rollin-tech-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 14px;
    padding: 16px 18px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.15s, transform 0.1s;
    line-height: 1.2;
}

.rollin-tech-btn:active {
    opacity: 0.9;
    transform: scale(0.98);
}

.rollin-tech-btn--primary {
    width: 100%;
    background: linear-gradient(258deg, var(--rollin-tech-green), var(--rollin-tech-blue));
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 91, 175, 0.25);
}

.rollin-tech-btn--sm {
    width: auto;
    padding: 10px 14px;
    font-size: 14px;
    border-radius: 11px;
}

.rollin-tech-btn--ghost {
    background: #F6F8FA;
    color: var(--rollin-tech-navy);
    border: 1px solid var(--rollin-tech-border);
}

.rollin-tech-login__footer {
    margin-top: auto;
    padding-top: 24px;
    text-align: center;
    font-size: 12px;
    color: #A9B3BE;
    line-height: 1.5;
}

.rollin-tech-select {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.rollin-tech-select__body {
    padding: 24px 22px 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.rollin-tech-select__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rollin-tech-select__item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border: 1.5px solid var(--rollin-tech-border);
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.rollin-tech-select__item:active {
    border-color: var(--rollin-tech-green);
    box-shadow: 0 4px 16px rgba(4, 41, 76, 0.08);
}

.rollin-tech-select__name {
    font-family: 'Switzer', system-ui, sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--rollin-tech-navy);
}

.rollin-tech-select__chevron {
    font-size: 22px;
    line-height: 1;
    color: var(--rollin-tech-blue);
    flex-shrink: 0;
}

.rollin-tech-select__footer {
    margin-top: auto;
    padding-top: 24px;
    text-align: center;
}

.rollin-tech-hub {
    padding: 20px 18px 32px;
    flex: 1;
}

.rollin-tech-hub__title {
    font-family: 'Switzer', system-ui, sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--rollin-tech-navy);
    margin: 0 0 4px;
}

.rollin-tech-hub__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
}

.rollin-tech-hub__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.rollin-tech-hub__date {
    margin: 0;
    font-size: 14px;
    color: var(--rollin-tech-muted);
}

.rollin-tech-link-btn {
    background: none;
    border: none;
    color: var(--rollin-tech-blue);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 0;
    font-family: inherit;
    white-space: nowrap;
}

.rollin-tech-hub__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rollin-tech-hub-card {
    display: block;
    padding: 16px;
    border: 1.5px solid var(--rollin-tech-border);
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.rollin-tech-hub-card:active {
    border-color: var(--rollin-tech-green);
    box-shadow: 0 4px 16px rgba(4, 41, 76, 0.08);
}

.rollin-tech-hub-card__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.rollin-tech-hub-card__name {
    font-family: 'Switzer', system-ui, sans-serif;
    font-size: 16px;
    color: var(--rollin-tech-navy);
}

.rollin-tech-hub-card__progress {
    font-size: 13px;
    font-weight: 600;
    color: var(--rollin-tech-green);
    background: #F1FAEA;
    padding: 4px 10px;
    border-radius: 999px;
    flex-shrink: 0;
}

.rollin-tech-hub-card__meta {
    margin: 0;
    font-size: 13.5px;
    color: var(--rollin-tech-muted);
    line-height: 1.45;
}

.rollin-tech-route {
    padding: 18px 18px 32px;
    flex: 1;
}

.rollin-tech-back {
    display: inline-block;
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--rollin-tech-blue);
    text-decoration: none;
}

.rollin-tech-header-card {
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 18px;
    background: #fff;
    border: 1.5px solid var(--rollin-tech-navy);
    color: var(--rollin-tech-navy);
}

.rollin-tech-header-card__toggle {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    background: transparent;
    border: none;
    color: inherit;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}

.rollin-tech-header-card__name {
    display: block;
    font-family: 'Switzer', system-ui, sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--rollin-tech-navy);
}

.rollin-tech-header-card__summary {
    margin: 0;
    font-size: 13.5px;
    color: var(--rollin-tech-muted);
}

.rollin-tech-header-card__chevron {
    font-size: 10px;
    color: var(--rollin-tech-blue);
    transition: transform 0.2s;
    margin-top: 6px;
    flex-shrink: 0;
}

.rollin-tech-header-card__chevron--open {
    transform: rotate(180deg);
}

.rollin-tech-header-card__details {
    padding: 0 18px 16px;
    border-top: 1px solid var(--rollin-tech-border);
}

.rollin-tech-header-card__row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    font-size: 13.5px;
}

.rollin-tech-header-card__row span:first-child {
    color: var(--rollin-tech-muted);
    flex-shrink: 0;
}

.rollin-tech-header-card__row span:last-child {
    text-align: right;
    color: var(--rollin-tech-text);
}

.rollin-tech-header-card__switch {
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--rollin-tech-border);
}

.rollin-tech-header-card__switch-label {
    display: block;
    font-size: 11px;
    color: var(--rollin-tech-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.rollin-tech-header-card__switch-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rollin-tech-header-card__switch-list a {
    color: var(--rollin-tech-blue);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.rollin-tech-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1.5px solid var(--rollin-tech-border);
    margin-bottom: 16px;
}

.rollin-tech-tabs__tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 8px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--rollin-tech-muted);
    text-decoration: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -1.5px;
}

.rollin-tech-tabs__tab--active {
    color: var(--rollin-tech-navy);
    border-bottom-color: var(--rollin-tech-green);
}

.rollin-tech-tabs__count {
    font-size: 12px;
    font-weight: 700;
    background: #F1FAEA;
    color: var(--rollin-tech-green);
    padding: 2px 8px;
    border-radius: 999px;
}

.rollin-tech-stops {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rollin-tech-stop {
    display: flex;
    gap: 12px;
    padding: 14px;
    border: 1.5px solid var(--rollin-tech-border);
    border-radius: 14px;
    background: #fff;
}

.rollin-tech-stop--done {
    background: #F6F8FA;
}

.rollin-tech-stop__order {
    flex: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--rollin-tech-navy);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rollin-tech-stop--done .rollin-tech-stop__order {
    background: var(--rollin-tech-green);
}

.rollin-tech-stop__body {
    flex: 1;
    min-width: 0;
}

.rollin-tech-stop__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.rollin-tech-reference {
    margin: 16px 0 20px;
}

.rollin-tech-reference__title {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 600;
    color: var(--rollin-tech-muted, #667788);
}

.rollin-tech-gdo-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}

.rollin-tech-gdo-card {
    border-radius: 14px;
    background: #fff;
    border: 1.5px solid var(--rollin-tech-border);
    overflow: hidden;
}

.rollin-tech-gdo-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(160deg, var(--rollin-tech-navy), var(--rollin-tech-navy-deep));
    color: #fff;
}

.rollin-tech-gdo-card__title {
    display: block;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 4px;
}

.rollin-tech-gdo-card__post {
    margin: 0 0 6px;
    font-size: 14px;
    color: var(--rollin-tech-label);
}

.rollin-tech-gdo-card__counts {
    margin: 0;
    font-size: 13px;
    color: var(--rollin-tech-label);
}

.rollin-tech-gdo-card__head .rollin-tech-btn--ghost {
    flex-shrink: 0;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
}

.rollin-tech-gdo-card__body {
    padding: 4px 0;
}

.rollin-tech-gdo-card__group + .rollin-tech-gdo-card__group {
    border-top: 1.5px solid var(--rollin-tech-border);
}

.rollin-tech-gdo-card__label {
    margin: 0;
    padding: 12px 16px 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--rollin-tech-muted);
}

.rollin-tech-stop--nested {
    border: none;
    border-radius: 0;
    border-bottom: 1px solid var(--rollin-tech-border);
    margin: 0;
}

.rollin-tech-gdo-card__group .rollin-tech-stop--nested:last-child {
    border-bottom: none;
}

.rollin-tech-plan-action {
    margin-bottom: 16px;
}

.rollin-tech-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.rollin-tech-table-wrap .rollin-table {
    min-width: 900px;
}

.rollin-tech-route .rollin-kpi-grid {
    margin-bottom: 16px;
}

.rollin-tech-route .rollin-filter-bar {
    margin-bottom: 16px;
}

.rollin-tech-stop__name {
    display: block;
    font-size: 15px;
    color: var(--rollin-tech-navy);
    margin-bottom: 4px;
}

.rollin-tech-stop__parcel,
.rollin-tech-stop__address {
    margin: 0 0 4px;
    font-size: 13.5px;
    color: var(--rollin-tech-muted);
    line-height: 1.45;
}

.rollin-tech-stop__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.rollin-tech-stop__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rollin-tech-stop__work-done {
    width: 100%;
    margin-top: 12px;
}

.rollin-tech-stop__form {
    margin: 0;
    width: 100%;
}

.rollin-tech-work-done {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    background: transparent;
    color: var(--rollin-tech-muted);
    font-family: inherit;
    text-align: center;
    padding: 0;
    line-height: 1.2;
}

.rollin-tech-work-done--pending {
    cursor: pointer;
}

.rollin-tech-work-done--pending:active {
    transform: scale(0.98);
}

.rollin-tech-work-done__circle {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 2px solid #D5DAE0;
    color: #9AA3AC;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F6F8FA;
}

.rollin-tech-work-done__circle svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.rollin-tech-work-done__label {
    font-size: 13.5px;
    font-weight: 600;
}

.rollin-tech-work-done__date {
    width: 100%;
    font-size: 12px;
    color: var(--rollin-tech-muted);
}

.rollin-tech-work-done--done {
    color: #3A7A00;
}

.rollin-tech-work-done--done .rollin-tech-work-done__circle {
    border-color: var(--rollin-tech-green);
    color: var(--rollin-tech-green);
    background: #F1FAEA;
}

.rollin-tech-empty {
    padding: 32px 16px;
    text-align: center;
    color: var(--rollin-tech-muted);
    font-size: 14.5px;
    border: 1.5px dashed var(--rollin-tech-border);
    border-radius: 14px;
}

/* GDO plan lightbox */
.rollin-gdo-plan-lightbox__overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(15, 23, 42, 0.88);
    touch-action: manipulation;
}

.rollin-gdo-plan-lightbox__overlay[hidden] {
    display: none !important;
}

.rollin-gdo-plan-lightbox__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.rollin-gdo-plan-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.rollin-gdo-plan-lightbox__image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    touch-action: pinch-zoom;
}

.rollin-table__cell--gpo {
    white-space: nowrap;
}

.rollin-gpo-cell {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.rollin-route-sheet-item__plan {
    display: inline-flex;
    margin-top: 4px;
    padding: 0;
    border: none;
    background: none;
    color: var(--rollin-primary, #53B400);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

.rollin-route-sheet-item__plan:hover {
    color: #3A7A00;
}

.rollin-route-sheet-show-plan {
    display: inline-block;
    margin-top: 4px;
    padding: 0;
    border: none;
    background: none;
    color: var(--rollin-primary, #53B400);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

.rollin-route-sheet-show-plan:hover {
    color: #3A7A00;
}

