:root { font-family: Arial, sans-serif; color: #102f52; background: #f4f8fc; --yosivoy-navy: #102f52; --yosivoy-blue: #2878b7; --yosivoy-sky: #bfe5fb; --yosivoy-pale: #eaf5fc; --yosivoy-green: #2a9a78; --yosivoy-border: #cbddea; }
* { box-sizing: border-box; }
body { margin: 0; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 12px 7%; background: var(--yosivoy-navy); color: white; }
.brand, nav a { color: white; text-decoration: none; }
.brand { display: inline-flex; align-items: center; height: 52px; font-size: 1.35rem; font-weight: 700; letter-spacing: .08em; }
.brand img { display: block; width: auto; height: 50px; object-fit: contain; }
.session-user { display: flex; flex-direction: column; align-items: flex-end; margin-left: auto; line-height: 1.2; }
.session-user span { font-weight: 700; }
.session-user small { color: var(--yosivoy-sky); margin-top: 3px; }
.notification-center { position: relative; }
.notification-button { position: relative; padding: 8px 11px; background: transparent; color: white; font-size: 1.1rem; }
.notification-button b { position: absolute; top: -3px; right: -2px; min-width: 18px; padding: 2px 5px; border-radius: 999px; background: #e45d45; color: white; font-size: .7rem; }
.notification-panel { position: absolute; z-index: 20; top: 44px; right: 0; width: min(380px, 90vw); max-height: 420px; overflow: auto; padding: 14px; border: 1px solid var(--yosivoy-border); border-radius: 12px; background: white; color: var(--yosivoy-navy); box-shadow: 0 12px 30px rgba(16,47,82,.2); }
.notification-panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid #dbe6dc; }
.notification-mark-all { padding: 5px 8px; background: var(--yosivoy-pale); color: var(--yosivoy-blue); font-size: .72rem; }
.notification-card { padding: 11px 4px; border-bottom: 1px solid #edf1ec; cursor: pointer; }
.notification-card:last-child { border-bottom: 0; }
.notification-card.unread { padding-left: 8px; border-left: 3px solid var(--yosivoy-blue); background: var(--yosivoy-pale); }
.notification-card strong, .notification-card small { display: block; }
.notification-card small { margin-top: 4px; color: #6d7f78; line-height: 1.35; }
.notification-toast { position: fixed; z-index: 30; right: 22px; bottom: 22px; width: min(360px, calc(100vw - 44px)); padding: 14px 16px; border-radius: 12px; background: var(--yosivoy-navy); color: white; box-shadow: 0 10px 24px rgba(16,47,82,.25); }
.notification-toast strong, .notification-toast span { display: block; }
.notification-toast span { margin-top: 4px; font-size: .9rem; }
nav { display: flex; gap: 18px; flex-wrap: wrap; }
nav a { font-size: .9rem; opacity: .9; }
.nav-logout { padding: 7px 10px; background: var(--yosivoy-pale); color: var(--yosivoy-blue); font-size: .8rem; }
.page-shell { max-width: 1040px; margin: 0 auto; padding: 42px 24px 72px; min-height: calc(100vh - 126px); }
.card { background: white; border: 1px solid var(--yosivoy-border); border-radius: 16px; padding: 24px; box-shadow: 0 10px 26px rgba(16,47,82,.07); margin-bottom: 18px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
h1, h2 { margin-top: 0; }
label { display: block; font-size: .85rem; font-weight: 700; margin: 14px 0 6px; }
input, select { width: 100%; padding: 11px 12px; border: 1px solid #cdd8d0; border-radius: 9px; background: white; }
.driver-photo-capture-grid { display: grid; grid-template-columns: repeat(2, minmax(260px, 1fr)); gap: 16px; margin-top: 12px; }
.driver-photo-pane { min-width: 0; }
.driver-photo-pane h3 { margin: 0 0 8px; font-size: 1rem; }
.driver-photo-capture, .driver-photo-preview-frame { position: relative; width: 100%; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px dashed #b8c9d3; border-radius: 12px; background: #f4f8fa; }
.driver-photo-capture video, .driver-photo-preview-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.driver-photo-capture video { transform: scaleX(-1); }
.driver-photo-preview-frame span { padding: 20px; color: #617282; text-align: center; }
.driver-face-guide { position: absolute; inset: 10% 22%; border: 3px solid #e3a11b; border-radius: 48% 48% 42% 42%; box-shadow: 0 0 0 999px rgba(7, 31, 49, .25); pointer-events: none; }
.driver-face-guide span { position: absolute; inset: 0; border-radius: inherit; }
.driver-face-guide.ready { border-color: #1b9b6c; box-shadow: 0 0 0 999px rgba(7, 31, 49, .16); }
.driver-photo-section { margin-top: 24px; padding-top: 18px; border-top: 1px solid #e2e9ed; }
.driver-photo-section .actions { align-items: center; }
@media (max-width: 720px) { .driver-photo-capture-grid { grid-template-columns: 1fr; } }
.location-search-field { position: relative; }
.location-suggestions { position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; right: 0; max-height: 280px; overflow-y: auto; background: #fff; border: 1px solid #cdd8d0; border-radius: 9px; box-shadow: 0 8px 20px rgba(15, 45, 68, .16); }
.location-suggestion { width: 100%; display: flex; flex-direction: column; gap: 3px; align-items: flex-start; padding: 10px 12px; border: 0; border-bottom: 1px solid #edf1f3; border-radius: 0; background: #fff; color: #12324b; text-align: left; cursor: pointer; }
.location-suggestion:last-child { border-bottom: 0; }
.location-suggestion:hover, .location-suggestion:focus { background: #eef7ff; }
.location-suggestion span { font-weight: 600; }
.location-suggestion small, .location-suggestion-empty { color: #617282; font-size: .84rem; }
.location-suggestion-empty { padding: 12px; }
button, .button { display: inline-block; border: 0; border-radius: 9px; padding: 11px 16px; background: #0d765d; color: white; font-weight: 700; cursor: pointer; text-decoration: none; }
button.secondary, .button.secondary { background: #e4f1e5; color: #0d765d; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.message { padding: 12px; border-radius: 9px; background: #edf6ed; margin-top: 16px; }
.error { background: #fde8e2; color: #9f4936; }
.offer { display: flex; justify-content: space-between; gap: 16px; align-items: center; border: 1px solid var(--yosivoy-border); border-radius: 12px; padding: 14px; margin-top: 10px; }
.offer strong, .offer small { display: block; }
.offer small { color: #6d7f78; margin-top: 4px; }
.driver-request { align-items: flex-start; }
.driver-request > div:first-child { flex: 1; }
.documents { margin-top: 10px; padding: 10px; background: #f7f6f0; border-radius: 9px; }
.document-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid #dbe6dc; }
.document-item:last-child { border-bottom: 0; }
.document-table-wrap { overflow-x: auto; margin: 10px 0; }
.document-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.document-table th, .document-table td { padding: 9px; border-bottom: 1px solid #dbe6dc; text-align: left; vertical-align: top; }
.document-table th { background: #f7f6f0; }
.document-table small { display: block; color: #6d7f78; margin-top: 3px; }
.document-history { margin-top: 14px; padding-top: 12px; border-top: 1px solid #dbe6dc; }
.notification-settings { display: flex; gap: 14px; flex-wrap: wrap; margin: 10px 0 16px; }
.notification-settings label { margin: 0; font-weight: 400; }
.notification-settings input { width: auto; }
.document-item small { display: block; }
.document-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.pending-drivers-table th:first-child,
.pending-drivers-table td:first-child { min-width: 220px; }
.pending-drivers-table .document-actions { justify-content: flex-start; align-items: flex-start; }
.pending-drivers-table input[data-reason] { width: 100%; min-width: 150px; margin-top: 8px; }
.pending-drivers-table .document-actions button { padding: 9px 12px; font-size: .82rem; }
.document-rejection { color: #9f4936; }
.danger { background: #a34b39; }
.document-item button, .driver-request [data-documents] { margin-top: 8px; padding: 8px 11px; font-size: .82rem; }
.document-preview { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 24px; background: rgba(10, 30, 27, .72); }
.document-preview[hidden] { display: none; }
.document-preview-card { width: min(1000px, 96vw); height: min(90vh, 760px); overflow: hidden; display: flex; flex-direction: column; background: white; border-radius: 14px; padding: 18px; }
.document-preview-close { float: right; }
#document-preview-content { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: auto; }
.document-frame { width: 100%; height: 100%; min-height: 0; flex: 1; border: 0; }
.document-image { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.offer-form { display: flex; gap: 8px; align-items: end; flex-wrap: wrap; }
.offer-form label { margin: 0; min-width: 130px; }
.offer-form input { padding: 8px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.passenger-offer { align-items: center; }
.offer-driver-photo { width: 58px; height: 58px; flex: 0 0 58px; overflow: hidden; border-radius: 50%; background: #eaf2f7; }
.driver-offer-photo { width: 100%; height: 100%; object-fit: cover; }
.driver-offer-photo-placeholder { display: grid; width: 100%; height: 100%; place-items: center; font-size: 1.7rem; }
.hint { color: #6d7f78; font-size: .9rem; }
.trip-summary { margin: 18px 0; padding: 16px; border: 1px solid #dbe6dc; border-radius: 12px; background: #f7f6f0; }
.driver-operating-zone { display: flex; flex-direction: column; gap: 5px; max-width: 520px; }
.driver-operating-zone span { font-size: 1.1rem; font-weight: 700; color: #0d765d; }
.driver-operating-zone small { color: #6d7f78; }
.trip-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.trip-details strong, .trip-details span { display: block; }
.trip-details span { margin-top: 4px; }
.trip-driver-summary { grid-column: 1 / -1; padding: 12px 14px; border-left: 4px solid #1c6fa8; border-radius: 8px; background: #eef7ff; }
.trip-driver-summary span { font-weight: 700; color: #123d5a; }
.trip-driver-summary small { display: block; margin-top: 4px; color: #496577; }
.status-badge { padding: 6px 10px; border-radius: 999px; background: #dcefe2; color: #0d765d; font-size: .85rem; font-weight: 700; }
.status-accepted { background: #dcefe2; color: #0d765d; }
.status-rejected { background: #fde8e2; color: #9f4936; }
.driver-offer-status { margin-top: 24px; }
.driver-offer-card { display: block; }
.historical-offer-card { background: #fafcf9; }
.driver-offer-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.simulated-map { position: relative; min-height: 150px; margin: 14px 0; overflow: hidden; border: 1px solid #b9cfc1; border-radius: 12px; background: #dfe9dc; background-image: linear-gradient(25deg, transparent 45%, rgba(255,255,255,.8) 46%, rgba(255,255,255,.8) 50%, transparent 51%), linear-gradient(155deg, transparent 47%, rgba(255,255,255,.65) 48%, rgba(255,255,255,.65) 52%, transparent 53%); }
.real-map { min-height: 300px; width: 100%; margin: 14px 0; border: 1px solid #b9cfc1; border-radius: 12px; overflow: hidden; background: #e8f0e7; }
.real-map-loading { display: grid; place-items: center; color: #6d7f78; }
.real-map-error { display: grid; place-items: center; padding: 22px; color: #9f4936; background: #fde8e2; }
.map-section { margin-top: 18px; }
.map-route-message { display: block; color: #6d7f78; margin: 4px 0 12px; }
.driver-route-map { min-height: 260px; }
.simulated-map::before, .simulated-map::after { content: ''; position: absolute; background: rgba(145, 177, 154, .55); }
.simulated-map::before { width: 180%; height: 18px; left: -35%; top: 48%; transform: rotate(-18deg); }
.simulated-map::after { width: 16px; height: 180%; left: 53%; top: -35%; transform: rotate(24deg); }
.map-route-line { position: absolute; z-index: 2; left: 21%; right: 21%; top: 49%; height: 5px; border-radius: 8px; background: #0d765d; transform: rotate(-17deg); box-shadow: 0 0 0 3px rgba(255,255,255,.55); }
.map-label { position: absolute; z-index: 3; padding: 7px 9px; border-radius: 999px; background: white; color: #17332f; font-size: .78rem; font-weight: 700; box-shadow: 0 2px 7px rgba(20,55,48,.2); }
.map-start { left: 8%; top: 58%; }
.map-end { right: 8%; top: 17%; }
.simulated-map small { position: absolute; z-index: 3; left: 12px; bottom: 10px; color: #17332f; font-weight: 700; }
.assignment-card { height: auto; max-height: 90vh; }
.assignment-highlight { margin: 12px 0 20px; padding: 18px; border-radius: 12px; background: #dcefe2; text-align: center; }
.assignment-highlight strong, .assignment-highlight span { display: block; }
.assignment-highlight strong { font-size: 1.35rem; }
.assignment-highlight span { margin-top: 5px; color: #0d765d; }
.assignment-highlight { display: flex; align-items: center; gap: 12px; text-align: left; }
.assignment-driver-photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: #eaf2f7; }
.assignment-highlight > div { flex: 1; }
.history-trip { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px; margin-top: 10px; border: 1px solid #dbe6dc; border-radius: 12px; }
.history-trip strong, .history-trip small { display: block; }
.history-trip small { color: #6d7f78; margin-top: 4px; }
.history-trip-summary { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.admin-fares { margin-top: 26px; padding-top: 20px; border-top: 1px solid #dbe6dc; }
.fare-form { margin: 14px 0; padding: 16px; border: 1px solid #dbe6dc; border-radius: 12px; background: #f7f6f0; }
.fare-form[hidden] { display: none; }
.fare-filter { display: flex; align-items: end; gap: 10px; flex-wrap: wrap; margin: 14px 0; }
.fare-filter label { flex: 1; min-width: 220px; margin: 0; }
.fare-filter button { margin-bottom: 0; }
.fare-rule { display: flex; justify-content: space-between; align-items: center; gap: 14px; border: 1px solid #dbe6dc; border-radius: 10px; padding: 12px; margin-top: 9px; }
.fare-rule strong, .fare-rule small { display: block; }
.fare-rule small { color: #6d7f78; margin-top: 4px; }
.admin-settings { margin-top: 26px; padding-top: 20px; border-top: 1px solid #dbe6dc; }
.admin-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 22px 0; padding-bottom: 10px; border-bottom: 1px solid #dbe6dc; }
.admin-tab { background: #e4f1e5; color: #0d765d; }
.admin-tab.active { background: #0d765d; color: white; }
.config-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; padding-bottom: 10px; border-bottom: 1px solid #dbe6dc; }
.config-tab { background: #eef5fb; color: #12395a; border: 1px solid #c8d9e8; }
.config-tab.active { background: #1769aa; color: white; border-color: #1769aa; }
.crud-actions { white-space: nowrap; display: flex; gap: 5px; align-items: center; }
.icon-button { width: 34px; height: 34px; padding: 0; border: 1px solid #c8d9e8; border-radius: 6px; background: white; cursor: pointer; }
.icon-button:hover { background: #eef5fb; }
.icon-button.danger:hover { background: #fff0f0; border-color: #e08b8b; }
.admin-panel { margin-top: 12px; }
.admin-pending-drivers { width: 100%; }
.admin-fare-summary { margin-top: 24px; padding: 18px 0 4px; border-top: 1px solid #dbe6dc; }
.admin-active-drivers { margin-top: 28px; padding-top: 20px; border-top: 1px solid #dbe6dc; }
.admin-active-drivers .section-heading { align-items: flex-start; }
.admin-active-drivers .document-table td:last-child { min-width: 180px; }
.settings-form { max-width: 560px; }
.settings-inline { display: flex; gap: 10px; align-items: end; }
.settings-inline input { max-width: 180px; }
footer { text-align: center; padding: 18px; color: #6d7f78; font-size: .8rem; }
pre { white-space: pre-wrap; word-break: break-word; }
@media (max-width: 650px) { .topbar { align-items: flex-start; gap: 12px; flex-direction: column; } .session-user { align-items: flex-start; margin-left: 0; } .notification-panel { left: 0; right: auto; } nav { gap: 10px; } .page-shell { padding-top: 28px; } }
.topbar button:not(.notification-button), button:not(.notification-button), .button { background: var(--yosivoy-blue); color: white; }
.topbar button:not(.notification-button):hover, button:not(.notification-button):hover, .button:hover { background: #1f6298; }
button.secondary, .button.secondary, .notification-mark-all, .nav-logout { background: var(--yosivoy-pale); color: var(--yosivoy-blue); }
.danger, .sos-btn { background: #c95d4c; color: white; }
.notification-button { background: transparent; color: white; }
.driver-app-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 8px; }
.driver-app-heading h1 { margin-bottom: 6px; }
.eyebrow { margin: 0 0 8px; color: var(--yosivoy-blue); font-size: .75rem; font-weight: 800; letter-spacing: .12em; }
.install-app-button { white-space: nowrap; }
@media (max-width: 650px) {
    .driver-app-shell { padding: 16px; border-radius: 12px; }
    .driver-app-heading { align-items: stretch; flex-direction: column; gap: 8px; }
    .driver-app-heading h1 { font-size: 1.55rem; }
    .install-app-button { width: 100%; }
    .driver-tabs { position: sticky; top: 0; z-index: 5; flex-wrap: nowrap; overflow-x: auto; margin: 14px -16px 16px; padding: 8px 16px; background: rgba(255,255,255,.96); }
    .driver-tabs .admin-tab { flex: 0 0 auto; padding: 9px 12px; font-size: .82rem; }
    .driver-app-shell .actions { gap: 8px; }
    .driver-app-shell .actions > button, .driver-app-shell .actions > .button { flex: 1 1 45%; min-height: 44px; }
    .driver-app-shell .offer { padding: 12px; }
    .driver-app-shell .real-map { min-height: 220px; }
    .driver-app-shell .settings-inline { flex-wrap: wrap; }
    .driver-app-shell .settings-inline input, .driver-app-shell .settings-inline select { max-width: none; flex: 1 1 42%; }
}
