:root {
    --ink: #172033;
    --muted: #65758b;
    --line: #dbe3ee;
    --surface: #ffffff;
    --soft: #e4ebf1;
    --blue: #2456d6;
    --green: #1f9d6a;
    --amber: #d28a1b;
    --red: #ce3b46;
}

body {
    background: var(--soft);
    color: var(--ink);
    font-family: Arial, sans-serif;
}

body.modal-open {
    overflow: hidden;
}

.home-landing {
    align-items: center;
    background: #0f2730;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    overflow: hidden;
    padding: 20px 18px;
    position: relative;
}

.home-landing::before {
    animation: homeBackgroundPulse 16s ease-in-out infinite;
    background: url("../img/inotacho-header-bg.jpg") center center / cover no-repeat;
    content: "";
    inset: -3%;
    position: absolute;
    transform: scale(1);
    will-change: transform;
}

.home-landing__shade {
    background: rgba(7, 24, 31, .54);
    inset: 0;
    position: absolute;
}

.home-landing__content {
    align-items: center;
    display: flex;
    flex-direction: column;
    max-width: 980px;
    position: relative;
    text-align: center;
    width: min(100%, 980px);
    z-index: 1;
}

body.home-is-loading .home-landing__content {
    filter: blur(7px);
    transform: scale(.99);
}

.home-landing__logo {
    height: auto;
    margin-bottom: 10px;
    max-width: 44px;
    width: 14vw;
}

.home-landing h1 {
    color: #ffffff;
    font-size: clamp(1.15rem, 1.85vw, 1.65rem);
    font-weight: 300;
    letter-spacing: 0;
    line-height: 1.22;
    margin: 0 0 34px;
    max-width: 520px;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .34);
}

.home-alert {
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(206, 59, 70, .28);
    border-radius: 8px;
    color: #b4232f;
    font-weight: 700;
    margin-bottom: 14px;
    padding: 11px 14px;
    width: min(100%, 520px);
}

.home-upload {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    width: min(100%, 460px);
}

.home-upload__drop {
    align-items: center;
    background: rgba(255, 255, 255, .94);
    border: 0;
    border-radius: 10px;
    box-shadow: 0 18px 34px rgba(0, 0, 0, .14);
    cursor: pointer;
    display: flex;
    min-height: 58px;
    justify-content: center;
    padding: 13px 18px;
    text-align: center;
    transition: background .18s ease, transform .18s ease;
    width: 100%;
}

.home-upload__drop:hover {
    background: #ffffff;
    transform: translateY(-1px);
}

.home-upload__drop.is-dragging {
    background: #ffffff;
    outline: 2px solid rgba(247, 170, 0, .78);
    outline-offset: 4px;
    transform: translateY(-1px) scale(1.01);
}

.home-upload__drop input {
    display: none;
}

.home-upload__title {
    color: #575757;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.2;
}

.home-upload__title span {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.home-upload__file {
    color: rgba(255, 255, 255, .86);
    font-size: .82rem;
}

.home-upload__file {
    display: none;
    margin: 12px 0 0;
}

.home-loading {
    align-items: center;
    backdrop-filter: blur(4px);
    background: rgba(7, 24, 31, .26);
    color: #ffffff;
    display: none;
    inset: 0;
    justify-content: center;
    position: absolute;
    z-index: 4;
}

body.home-is-loading .home-loading {
    display: flex;
}

.home-loading__box {
    align-items: center;
    background: rgba(255, 255, 255, .94);
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .2);
    color: #172033;
    display: inline-flex;
    font-size: .72rem;
    font-weight: 700;
    gap: 7px;
    padding: 6px 14px;
}

.home-loading__spinner {
    animation: homeLoadingSpin .7s linear infinite;
    border: 2px solid rgba(23, 32, 51, .18);
    border-top-color: #172033;
    border-radius: 999px;
    height: 13px;
    width: 13px;
}

@keyframes homeBackgroundPulse {
    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.075);
    }
}

@keyframes homeLoadingSpin {
    to {
        transform: rotate(360deg);
    }
}

.upload-hero {
    min-height: calc(100vh - 58px);
    display: flex;
    align-items: center;
    padding: 48px 0;
}

.eyebrow {
    color: var(--green);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.upload-hero h1 {
    font-weight: 800;
    line-height: 1.08;
    max-width: 720px;
}

.upload-panel,
.summary-card,
.metric-card,
.day-block,
.empty-state {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 16px 44px rgba(23, 32, 51, .07);
}

.upload-panel {
    padding: 24px;
}

.drop-zone {
    align-items: center;
    border: 2px dashed #9fb0c8;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 220px;
    justify-content: center;
    padding: 24px;
    text-align: center;
}

.drop-zone i {
    color: var(--blue);
    font-size: 3rem;
}

.drop-zone input {
    display: none;
}

.drop-title {
    font-weight: 800;
}

.drop-subtitle,
.selected-file {
    color: var(--muted);
}

.selected-file {
    margin: 14px 0;
}

.expiry-box {
    align-items: center;
    background: #eef7f3;
    border: 1px solid #bfe4d2;
    border-radius: 8px;
    display: flex;
    gap: 10px;
    padding: 12px 16px;
}

.summary-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.summary-card,
.metric-card {
    padding: 16px;
}

.summary-card span,
.metric-card span {
    color: var(--muted);
    display: block;
    font-size: .82rem;
}

.summary-card strong,
.metric-card strong {
    display: block;
    font-size: 1.08rem;
    margin-top: 5px;
}

.metric-card strong {
    font-size: 1.5rem;
}

.metric-card.muted {
    box-shadow: none;
}

.metric-card .metric-label {
    align-items: center;
    display: inline-flex;
    gap: 8px;
}

.metric-label img,
.activity-legend img {
    height: 16px;
    object-fit: contain;
    width: 16px;
}

.metric-label img {
    opacity: .72;
}

.period-filter {
    align-items: end;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px;
}

.period-filter div {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 190px;
}

.period-filter label {
    color: #344054;
    font-size: 11px;
    font-weight: 700;
}

.period-filter input,
.period-filter select {
    border: 1px solid #ccd6e3;
    border-radius: 999px;
    color: #344054;
    font-size: 13px;
    min-height: 38px;
    padding: 0 14px;
}

.period-filter select {
    background: #ffffff;
    min-width: 260px;
}

.period-filter button,
.period-filter a {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    justify-content: center;
    min-height: 38px;
    padding: 0 28px;
}

.period-filter button {
    background: #f4d47d;
    color: #101828;
}

.period-filter a {
    border: 1px solid var(--line);
    color: #667085;
}

.activity-skeleton {
    display: grid;
    gap: 14px;
}

.violations-panel {
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 18px;
    overflow: hidden;
    padding: 0;
}

.violation-count {
    background: #fff5f5;
    border: 1px solid #fecaca;
    border-radius: 999px;
    color: #b42318;
    font-size: 12px;
    font-weight: 800;
    padding: 7px 12px;
}

.violation-badge {
    border-radius: 999px;
    display: inline-block;
    height: 9px;
    margin-right: 8px;
    width: 9px;
}

.violation-danger {
    background: #e74c3c;
}

.violation-warning {
    background: #f39c12;
}

.skeleton-filter,
.skeleton-metrics span,
.skeleton-chart {
    animation: skeletonPulse 1.25s ease-in-out infinite;
    background: linear-gradient(90deg, #eef3f8 0%, #f8fafc 42%, #eef3f8 78%);
    background-size: 220% 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.skeleton-filter {
    height: 72px;
}

.skeleton-metrics {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.skeleton-metrics span {
    height: 82px;
}

.skeleton-chart {
    height: 220px;
    position: relative;
}

.skeleton-chart i,
.skeleton-chart b {
    background: rgba(148, 163, 184, .28);
    border-radius: 999px;
    left: 18px;
    position: absolute;
    right: 18px;
}

.skeleton-chart i {
    height: 18px;
    top: 95px;
}

.skeleton-chart b {
    height: 10px;
    top: 148px;
}

@keyframes skeletonPulse {
    0% {
        background-position: 120% 0;
    }
    100% {
        background-position: -120% 0;
    }
}

.view-tabs {
    align-self: stretch;
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: 18px;
    box-shadow: none;
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    list-style: none;
    margin-left: 0;
    overflow-x: auto;
    padding: 5px;
    width: 100%;
}

.view-tabs li {
    flex: 1 1 0;
    min-width: 0;
}

.view-tabs .nav-link {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 13px;
    color: rgba(47, 55, 69, .78);
    cursor: pointer;
    display: flex;
    font-size: 12px;
    font-weight: 700;
    gap: 8px;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;
    position: relative;
    white-space: nowrap;
    width: 100%;
}

.view-tabs li:first-child .nav-link {
    border-radius: 13px;
}

.view-tabs li:last-child .nav-link {
    border-radius: 13px;
}

.view-tabs .nav-link i {
    color: inherit;
    font-size: 15px;
    line-height: 1;
}

.view-tabs .nav-link.active {
    background: #e6f3ef;
    box-shadow: none;
    color: #36876f;
}

.view-tabs .nav-link.active::after {
    display: none;
}

.tab-pane {
    display: none;
}

.tab-pane.active,
.tab-pane.show {
    display: block;
}

.table-responsive {
    overflow-x: auto;
}

.table {
    border-collapse: collapse;
    width: 100%;
}

.table th,
.table td {
    border-bottom: 1px solid var(--line);
    padding: 10px 12px;
    text-align: left;
    white-space: nowrap;
}

.table th {
    color: #334155;
    font-size: .78rem;
    font-weight: 900;
    text-transform: none;
}

.table td {
    color: #172033;
    font-size: .86rem;
}

.btn {
    align-items: center;
    border-radius: 8px;
    display: inline-flex;
    font-weight: 800;
    justify-content: center;
    padding: 9px 13px;
}

.btn-primary {
    background: #2563eb;
    color: #ffffff;
}

.btn-outline-primary,
.btn-outline-secondary {
    border: 1px solid var(--line);
    color: #2563eb;
}

.btn-sm {
    font-size: .82rem;
    padding: 6px 10px;
}

.btn:disabled {
    cursor: not-allowed;
    opacity: .45;
}

.d-none {
    display: none !important;
}

.d-flex {
    display: flex;
}

.justify-content-between {
    justify-content: space-between;
}

.align-items-center {
    align-items: center;
}

.gap-2 {
    gap: .5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.text-secondary {
    color: var(--muted);
}

.day-block {
    margin-bottom: 16px;
    padding: 16px;
}

.timeline-strip {
    background: #edf1f7;
    border-radius: 999px;
    display: flex;
    height: 18px;
    margin: 12px 0 16px;
    overflow: hidden;
}

.timeline-strip span {
    min-width: 1px;
}

.activity-dot {
    border-radius: 999px;
    display: inline-block;
    height: 10px;
    margin-right: 8px;
    width: 10px;
}

.activity-rest { background: #7a8da6; }
.activity-availability { background: #2c7be5; }
.activity-work { background: #F7AA00; }
.activity-driving { background: #1f9d6a; }
.activity-unknown { background: #ce3b46; }

.view-page__top {
    display: flex;
    flex-direction: column;
    gap: 46px;
    margin-bottom: 28px;
    padding: 10px 0 20px;
    position: relative;
}

.view-page__top::before {
    background:
        radial-gradient(circle, rgba(100, 116, 139, .24) 1px, transparent 1.35px);
    background-size: 10px 10px;
    content: "";
    inset: -12px -8px 54px;
    mask-image: radial-gradient(ellipse at center, #000 0%, rgba(0, 0, 0, .74) 52%, transparent 86%);
    opacity: .6;
    pointer-events: none;
    position: absolute;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, rgba(0, 0, 0, .74) 52%, transparent 86%);
}

.view-page__top > * {
    position: relative;
    z-index: 1;
}

.driver-profile {
    display: grid;
    gap: 16px;
}

.driver-profile--console {
    display: block;
    overflow-x: clip;
}

.driver-console {
    align-items: start;
    background: transparent;
    border: 0;
    border-radius: 0;
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(350px, 390px) minmax(0, 1fr);
    min-height: 0;
    overflow: clip;
}

.driver-console__column {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.driver-console__column-head,
.driver-console__heading {
    min-height: 70px;
}

.driver-console__column-head {
    margin: 0 0 14px;
    padding: 0;
}

.driver-console__column-head > .driver-console__eyebrow {
    margin: 0 0 4px;
}

.driver-console__identity {
    align-self: start;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, .42)),
        linear-gradient(135deg, rgba(72, 197, 180, .04), transparent 58%);
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 32px;
    box-sizing: border-box;
    min-height: 0;
    padding: 34px 34px 32px;
    width: 100%;
}

.driver-console__eyebrow,
.driver-console__heading > div > span,
.driver-console__facts span,
.driver-console__metrics span,
.driver-console__insights span {
    color: rgba(100, 116, 139, .78);
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.driver-console__column-head > .driver-console__eyebrow,
.driver-console__heading > div > span {
    font-size: 15px;
}

.driver-console__subhead {
    color: rgba(100, 116, 139, .72);
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.25;
    margin: 0;
}

.driver-console__heading .driver-console__subhead {
    margin: 4px 0 0;
}

.driver-console__profile-line {
    align-items: center;
    display: flex;
    gap: 14px;
    margin: 0 0 34px;
    max-width: 520px;
}

.driver-console__avatar {
    align-items: center;
    background: rgba(17, 17, 17, .92);
    border-radius: 18px;
    color: #ffffff;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 1.05rem;
    font-weight: 750;
    height: 54px;
    justify-content: center;
    width: 54px;
}

.driver-console__profile-line span {
    color: rgba(100, 116, 139, .82);
    display: block;
    font-size: 12px;
}

.driver-console__profile-line strong {
    color: #111111;
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.2;
    margin-bottom: 4px;
}

.driver-console__facts {
    display: grid;
    gap: 18px 42px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
}

.driver-console__facts div {
    min-width: 0;
}

.driver-console__facts .is-wide {
    grid-column: 1 / -1;
}

.driver-console__facts span {
    letter-spacing: 0;
    margin-bottom: 7px;
    text-transform: none;
}

.driver-console__facts strong {
    color: #111111;
    display: block;
    font-size: 15px;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.driver-console__main {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .88), rgba(248, 251, 252, .64)),
        linear-gradient(180deg, rgba(72, 197, 180, .045), transparent 54%);
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 36px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: visible;
    padding: 28px 38px 34px;
}

.driver-console__heading {
    align-items: flex-start;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin: 0 0 14px;
    padding: 0;
}

.driver-console__heading h3 {
    color: #111111;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 8px 0 0;
}

.driver-console__period-picker {
    position: relative;
}

.driver-console__period-picker summary {
    align-items: center;
    background: rgba(255, 255, 255, .62);
    border: 1px solid rgba(148, 163, 184, .14);
    border-radius: 16px;
    color: rgba(17, 17, 17, .76);
    cursor: pointer;
    display: flex;
    gap: 10px;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.25;
    list-style: none;
    padding: 9px 16px;
    text-align: left;
    white-space: nowrap;
}

.driver-console__period-picker summary::-webkit-details-marker {
    display: none;
}

.driver-console__period-picker summary > i {
    align-items: center;
    background: rgba(17, 17, 17, .06);
    border-radius: 10px;
    color: rgba(17, 17, 17, .78);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 13px;
    height: 30px;
    justify-content: center;
    width: 30px;
}

.driver-console__period-picker summary b {
    color: #111111;
    display: block;
    font-size: 12px;
    font-weight: 760;
    letter-spacing: 0;
    text-transform: none;
}

.driver-console__period-picker summary small {
    color: rgba(100, 116, 139, .8);
    display: block;
    font-size: 10px;
    font-weight: 650;
    letter-spacing: 0;
    margin-top: 3px;
    text-transform: none;
}

.driver-console__period-form {
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(148, 163, 184, .2);
    border-radius: 18px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, .12);
    display: grid;
    gap: 12px;
    min-width: 260px;
    padding: 14px;
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    z-index: 30;
}

.driver-console__period-form label {
    display: grid;
    gap: 6px;
}

.driver-console__period-form label span {
    color: rgba(100, 116, 139, .82);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0;
    text-transform: none;
}

.driver-console__period-form input {
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 12px;
    color: #111111;
    font-size: 13px;
    font-weight: 650;
    padding: 10px 11px;
}

.driver-console__period-form button {
    background: #101828;
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    padding: 10px 12px;
}

.driver-console__metrics {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 14px;
}

.driver-console__metrics > div {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .48));
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    min-height: 146px;
    min-width: 0;
    padding: 13px 16px;
}

.driver-console__metrics > div > span {
    align-items: center;
    display: flex;
    gap: 8px;
}

.driver-console__metrics > div > span img,
.driver-console__metrics > div > span i {
    color: #111111;
    display: block;
    flex: 0 0 auto;
    font-size: 13px;
    height: 14px;
    object-fit: contain;
    width: 14px;
}

.driver-console__metrics strong {
    color: #111111;
    display: block;
    font-size: clamp(1.45rem, 1.85vw, 2.1rem);
    font-weight: 390;
    letter-spacing: 0;
    line-height: 1;
    margin-top: 9px;
}

.driver-console__spark-wrap {
    height: 46px;
    margin-bottom: 0;
    margin-top: 10px;
    position: relative;
}

.driver-console__spark {
    display: block;
    height: 100%;
    width: 100%;
}

.driver-console__spark path {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.driver-console__spark .is-ghost {
    opacity: 0;
    stroke: var(--spark-color, #101828);
    stroke-width: 3;
}

.driver-console__spark .is-main {
    filter: none;
    stroke: var(--spark-color, #101828);
    stroke-width: 2.4;
}

.driver-console__spark-hit {
    cursor: crosshair;
    height: 100%;
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    width: max(10px, 4%);
    z-index: 2;
}

.driver-console__spark-hit::before {
    background: var(--spark-color, #101828);
    border-radius: 999px;
    bottom: 3px;
    content: "";
    opacity: 0;
    position: absolute;
    top: 3px;
    left: 50%;
    transform: translateX(-50%);
    transition: opacity .15s ease;
    width: 1px;
}

.driver-console__spark-hit::after {
    background: #101828;
    border-radius: 10px;
    bottom: calc(100% + 8px);
    color: #ffffff;
    content: attr(data-tooltip);
    font-size: 10px;
    font-weight: 650;
    left: 50%;
    opacity: 0;
    padding: 7px 9px;
    pointer-events: none;
    position: absolute;
    transform: translate(-50%, 4px);
    transition: opacity .15s ease, transform .15s ease;
    white-space: nowrap;
    z-index: 20;
}

.driver-console__spark-hit:first-of-type::after {
    left: 0;
    transform: translate(0, 4px);
}

.driver-console__spark-hit:last-of-type::after {
    left: auto;
    right: 0;
    transform: translate(0, 4px);
}

.driver-console__spark-hit:hover::after {
    opacity: 1;
    transform: translate(-50%, 0);
}

.driver-console__spark-hit:hover::before {
    opacity: .55;
}

.driver-console__spark-hit:first-of-type:hover::after,
.driver-console__spark-hit:last-of-type:hover::after {
    transform: translate(0, 0);
}

.driver-console__activity-bar {
    background: rgba(15, 23, 42, .06);
    border-radius: 999px;
    display: flex;
    height: 12px;
    margin-bottom: 18px;
    overflow: hidden;
}

.driver-console__activity-bar span {
    min-width: 2px;
}

.driver-console__chart {
    align-items: end;
    background: transparent;
    border: 0;
    border-radius: 0;
    display: flex;
    gap: clamp(2px, .42vw, 7px);
    height: 164px;
    justify-content: space-between;
    min-width: 0;
    overflow: visible;
    padding: 18px 18px 46px;
    position: relative;
    width: 100%;
}

.driver-console__chart::before {
    background: rgba(17, 17, 17, .16);
    border-radius: 999px;
    bottom: 46px;
    content: "";
    height: 2px;
    left: 18px;
    position: absolute;
    right: 18px;
}

.driver-console__chart-day {
    background: transparent;
    border-radius: 0;
    cursor: pointer;
    display: flex;
    flex: 1;
    flex-direction: column-reverse;
    max-width: 12px;
    min-width: 2px;
    overflow: visible;
    position: relative;
    z-index: 1;
}

.driver-console__chart-day.is-empty {
    height: 0 !important;
}

.driver-console__chart-day:hover {
    z-index: 40;
}

.driver-console__chart-day i {
    display: block;
    font-style: normal;
    min-height: 2px;
    position: relative;
    width: 100%;
    z-index: 1;
}

.driver-console__chart-day i:last-child {
    border-radius: 8px 8px 0 0;
}

.driver-console__chart-day i::after {
    background: #101828;
    border-radius: 8px;
    bottom: calc(100% + 8px);
    color: #ffffff;
    content: attr(data-tooltip);
    font-style: normal;
    font-size: 11px;
    font-weight: 700;
    left: 50%;
    opacity: 0;
    padding: 7px 9px;
    pointer-events: none;
    position: absolute;
    transform: translateX(-50%);
    transition: opacity .12s ease;
    white-space: nowrap;
    z-index: 80;
}

.driver-console__chart-day i::before {
    border-color: #101828 transparent transparent;
    border-style: solid;
    border-width: 5px 5px 0;
    bottom: calc(100% + 3px);
    content: "";
    left: 50%;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    transform: translateX(-50%);
    transition: opacity .12s ease;
    z-index: 81;
}

.driver-console__chart-day i:hover {
    z-index: 82;
}

.driver-console__chart-day i:hover::after,
.driver-console__chart-day i:hover::before {
    opacity: 1;
}

.driver-console__chart-axis {
    bottom: 18px;
    left: 18px;
    position: absolute;
    right: 18px;
}

.driver-console__chart-axis i {
    color: rgba(100, 116, 139, .72);
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    white-space: nowrap;
}

.driver-console__chart-axis i:first-child {
    transform: translateX(0);
}

.driver-console__chart-axis i:last-child {
    right: 0;
    left: auto !important;
    transform: translateX(0);
}

.driver-console__chart-axis i::before {
    background: rgba(100, 116, 139, .28);
    border-radius: 999px;
    content: "";
    height: 4px;
    left: 50%;
    position: absolute;
    top: -7px;
    transform: translateX(-50%);
    width: 1px;
}

.driver-console__chart p {
    color: rgba(100, 116, 139, .82);
    font-size: 13px;
    margin: auto;
}

.driver-console__insights {
    display: grid;
    gap: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 20px;
    padding-top: 16px;
    position: relative;
}

.driver-console__insights::before {
    background: rgba(100, 116, 139, .14);
    content: "";
    height: 1px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.driver-console__insights div {
    background: transparent;
    border-radius: 0;
    min-width: 0;
    padding: 4px 24px 2px 0;
}

.driver-console__insights div + div {
    border-left: 1px solid rgba(100, 116, 139, .14);
    padding-left: 24px;
}

.driver-console__insights strong {
    color: #111111;
    display: block;
    font-size: 2rem;
    font-weight: 360;
    line-height: 1;
    margin-top: 10px;
}

.driver-console__insights small {
    color: rgba(100, 116, 139, .78);
    display: block;
    font-size: 12px;
    margin-top: 10px;
}

.vehicles-panel {
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 18px;
    overflow: hidden;
}

.vehicles-panel__head {
    align-items: flex-start;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-bottom: 28px;
}

.vehicles-panel__head span {
    color: rgba(100, 116, 139, .78);
    display: block;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.vehicles-panel__head small {
    color: rgba(100, 116, 139, .72);
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.25;
    margin-top: 4px;
}

.vehicles-panel__head b {
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(226, 232, 240, .92);
    border-radius: 999px;
    color: #111111;
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 800;
    padding: 10px 15px;
}

.vehicles-panel__toolbar {
    align-items: center;
    border-bottom: 1px solid rgba(148, 163, 184, .2);
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding: 13px 16px;
}

.vehicles-panel__search {
    align-items: center;
    color: #94a3b8;
    display: flex;
    flex: 1 1 auto;
    gap: 10px;
    min-width: 0;
}

.vehicles-panel__search svg {
    flex: 0 0 auto;
    height: 20px;
    width: 20px;
}

.vehicles-panel__search input {
    background: transparent;
    border: 0;
    color: #475569;
    flex: 1 1 auto;
    font-size: 12px;
    font-weight: 500;
    min-width: 0;
    outline: 0;
    padding: 3px 0;
}

.vehicles-panel__search input::placeholder {
    color: #94a3b8;
}

.vehicles-panel__toolbar-actions {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
}

.vehicles-panel__toolbar-actions span {
    color: #64748b;
    font-size: 12px;
    font-weight: 500;
}

.vehicles-panel__toolbar-actions select {
    appearance: none;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, .42);
    border-radius: 8px;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    height: 32px;
    outline: 0;
    padding: 0 26px 0 10px;
}

.vehicles-panel__table {
    overflow-x: auto;
}

.vehicles-panel__table table {
    border-collapse: collapse;
    min-width: 940px;
    width: 100%;
}

.vehicles-panel__table th {
    background: #f8fafc;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    padding: 13px 18px;
    text-align: left;
    white-space: nowrap;
}

.vehicles-panel__table th button {
    align-items: center;
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    gap: 6px;
    padding: 0;
    text-align: left;
    white-space: nowrap;
}

.vehicles-panel__table th button span {
    color: #94a3b8;
    display: inline-flex;
    font-size: 10px;
    line-height: 1;
    min-width: 9px;
}

.vehicles-panel__table th button span::before {
    content: "↕";
}

.vehicles-panel__table th button[data-sort-direction="asc"] span::before {
    content: "↑";
}

.vehicles-panel__table th button[data-sort-direction="desc"] span::before {
    content: "↓";
}

.vehicles-panel__table th button:hover {
    color: #111827;
}

.vehicles-panel__table td {
    border-top: 1px solid rgba(148, 163, 184, .2);
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
    padding: 14px 18px;
    vertical-align: top;
    white-space: nowrap;
}

.vehicles-panel__table td strong {
    color: #111111;
    font-weight: 800;
}

.vehicles-panel__table tr:hover td {
    background: rgba(248, 250, 252, .72);
}

.vehicles-panel__empty {
    color: #94a3b8;
    padding: 22px 18px !important;
    text-align: center;
}

.vehicles-panel__pagination {
    align-items: center;
    border-top: 1px solid rgba(148, 163, 184, .2);
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr auto 1fr;
    padding: 12px 16px;
}

.vehicles-panel__pagination > span {
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
}

.vehicles-panel__pagination > div {
    align-items: center;
    display: flex;
    gap: 8px;
    grid-column: 2;
    justify-content: center;
}

.vehicles-panel__pagination button {
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, .34);
    border-radius: 999px;
    color: #64748b;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    transition: background-color .18s ease, color .18s ease, opacity .18s ease;
    width: 34px;
}

.vehicles-panel__pagination button:hover:not(:disabled) {
    background: #f8fafc;
    color: #111827;
}

.vehicles-panel__pagination button:disabled {
    cursor: not-allowed;
    opacity: .42;
}

.vehicles-panel__pagination svg {
    height: 17px;
    width: 17px;
}

.vehicles-panel__pages {
    align-items: center;
    display: inline-flex;
    gap: 6px;
}

.vehicles-panel__page-number {
    font-size: 12px;
    font-weight: 700;
}

.vehicles-panel__page-number.is-active {
    background: #111827;
    border-color: #111827;
    color: #ffffff;
}

.vehicles-panel__page-ellipsis {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 800;
    padding: 0 2px;
}

.violations-panel__head {
    align-items: flex-start;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-bottom: 28px;
}

.violations-panel__head span {
    color: rgba(100, 116, 139, .78);
    display: block;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.violations-panel__head small {
    color: rgba(100, 116, 139, .72);
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.25;
    margin-top: 4px;
}

.violations-panel__head b {
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(226, 232, 240, .92);
    border-radius: 999px;
    color: #111111;
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 800;
    padding: 10px 15px;
}

.violations-panel__toolbar {
    align-items: center;
    border-bottom: 1px solid rgba(148, 163, 184, .2);
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding: 13px 16px;
}

.violations-panel__search {
    align-items: center;
    color: #94a3b8;
    display: flex;
    flex: 1 1 auto;
    gap: 10px;
    min-width: 0;
}

.violations-panel__search svg {
    flex: 0 0 auto;
    height: 20px;
    width: 20px;
}

.violations-panel__search input {
    background: transparent;
    border: 0;
    color: #475569;
    flex: 1 1 auto;
    font-size: 12px;
    font-weight: 500;
    min-width: 0;
    outline: 0;
    padding: 3px 0;
}

.violations-panel__search input::placeholder {
    color: #94a3b8;
}

.violations-panel__toolbar-actions {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
}

.violations-panel__toolbar-actions span {
    color: #64748b;
    font-size: 12px;
    font-weight: 500;
}

.violations-panel__toolbar-actions select {
    appearance: none;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, .42);
    border-radius: 8px;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    height: 32px;
    outline: 0;
    padding: 0 26px 0 10px;
}

.violations-panel__table {
    overflow-x: auto;
}

.violations-panel__table table {
    border-collapse: collapse;
    min-width: 940px;
    width: 100%;
}

.violations-panel__table th {
    background: #f8fafc;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    padding: 13px 18px;
    text-align: left;
    white-space: nowrap;
}

.violations-panel__table td {
    border-top: 1px solid rgba(148, 163, 184, .2);
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
    padding: 14px 18px;
    vertical-align: top;
}

.violations-panel__table tr:hover td {
    background: rgba(248, 250, 252, .72);
}

.violations-panel__empty {
    color: #94a3b8;
    padding: 22px 18px !important;
    text-align: center;
}

.violations-panel__pagination {
    align-items: center;
    border-top: 1px solid rgba(148, 163, 184, .2);
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr auto 1fr;
    padding: 12px 16px;
}

.violations-panel__pagination > span {
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
}

.violations-panel__pagination > div {
    align-items: center;
    display: flex;
    gap: 8px;
    grid-column: 2;
    justify-content: center;
}

.violations-panel__pagination button {
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, .34);
    border-radius: 999px;
    color: #64748b;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    transition: background-color .18s ease, color .18s ease, opacity .18s ease;
    width: 34px;
}

.violations-panel__pagination button:hover:not(:disabled) {
    background: #f8fafc;
    color: #111827;
}

.violations-panel__pagination button:disabled {
    cursor: not-allowed;
    opacity: .42;
}

.violations-panel__pagination svg {
    height: 17px;
    width: 17px;
}

.violations-panel__pages {
    align-items: center;
    display: inline-flex;
    gap: 6px;
}

.violations-panel__page-number {
    font-size: 12px;
    font-weight: 700;
}

.violations-panel__page-number.is-active {
    background: #111827;
    border-color: #111827;
    color: #ffffff;
}

.violations-panel__page-ellipsis {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 800;
    padding: 0 2px;
}

.driver-day-modal[hidden],
.driver-day-modal__row[hidden],
.driver-day-modal__empty[hidden] {
    display: none;
}

.driver-day-modal {
    inset: 0;
    position: fixed;
    z-index: 80;
}

.driver-day-modal__backdrop {
    background: rgba(15, 23, 42, .42);
    backdrop-filter: blur(6px);
    inset: 0;
    position: absolute;
}

.driver-day-modal__panel {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, .95);
    border-radius: 28px;
    box-shadow: 0 30px 90px rgba(15, 23, 42, .24);
    box-sizing: border-box;
    left: 50%;
    max-height: min(92vh, 960px);
    max-width: calc(100vw - 32px);
    overflow-x: clip;
    overflow-y: auto;
    padding: 24px;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(1380px, calc(100vw - 32px));
}

.driver-day-modal__head {
    align-items: center;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-bottom: 18px;
}

.driver-day-modal__head span {
    color: rgba(100, 116, 139, .78);
    display: block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.driver-day-modal__head h3 {
    color: #101828;
    font-size: 1.35rem;
    font-weight: 800;
    margin: 4px 0 0;
}

.driver-day-modal__head-actions {
    align-items: center;
    display: inline-flex;
    gap: 8px;
}

.driver-day-modal__head-actions a,
.driver-day-modal__head button {
    align-items: center;
    background: rgba(17, 17, 17, .08);
    border: 0;
    border-radius: 14px;
    color: #101828;
    cursor: pointer;
    display: inline-flex;
    height: 38px;
    justify-content: center;
    text-decoration: none;
    width: 38px;
}

.driver-day-modal__head-actions a:hover {
    color: #101828;
}

.driver-day-modal .activity-day-row {
    margin: 0;
    max-width: 100%;
    overflow-x: clip;
}

.driver-day-modal .tacho-timeline {
    max-width: 100%;
    overflow-x: clip;
}

.driver-day-modal .tacho-plot {
    max-width: 100%;
    overflow: visible;
}

.driver-day-modal__details {
    border-top: 1px solid #edf2f7;
    margin-top: 18px;
    padding-top: 18px;
}

.driver-day-modal__details-head {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 10px;
}

.driver-day-modal__details-head h4 {
    color: #8a97aa;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: .04em;
    margin: 0;
    text-transform: uppercase;
}

.driver-day-modal__details-head small {
    color: #8a97aa;
    display: block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    margin-top: 4px;
}

.driver-day-modal__details-head span {
    color: #98a2b3;
    font-size: 12px;
    font-weight: 800;
}

.driver-day-modal__table-wrap {
    border: 1px solid #edf2f7;
    border-radius: 18px;
    max-height: 360px;
    overflow: auto;
}

.driver-day-modal__table {
    border-collapse: separate;
    border-spacing: 0;
    font-size: 12px;
    min-width: 1120px;
    width: 100%;
}

.driver-day-modal__table th {
    background: #f8fafc;
    color: #667085;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    padding: 11px 14px;
    position: sticky;
    text-align: left;
    text-transform: none;
    top: 0;
    z-index: 1;
}

.driver-day-modal__table td {
    border-top: 1px solid #edf2f7;
    color: #101828;
    font-weight: 700;
    padding: 11px 14px;
    vertical-align: middle;
}

.driver-day-modal__table td:nth-child(7) {
    color: #667085;
    font-weight: 600;
    word-break: break-all;
}

.driver-day-modal__datetime {
    white-space: nowrap;
}

.driver-day-modal__datetime span {
    color: #b7c0cd;
    font-weight: 400;
    margin-right: 6px;
}

.driver-day-modal__datetime b {
    color: #101828;
    font-weight: 800;
}

.driver-day-modal__activity {
    align-items: center;
    display: inline-flex;
    gap: 8px;
    white-space: nowrap;
}

.driver-day-modal__activity i {
    border-radius: 999px;
    display: inline-block;
    height: 8px;
    width: 8px;
}

.driver-profile__hero {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    padding: 0;
    position: relative;
}

.driver-profile__hero::before {
    content: "";
    display: none;
}

.driver-profile__hero > * {
    position: relative;
    z-index: 1;
}

.driver-profile__hero h2 {
    color: #111111;
    font-size: clamp(2rem, 4vw, 3.15rem);
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.05;
    margin: 0;
}

.driver-activity-share {
    align-items: end;
    display: flex;
    gap: 8px;
    margin-top: 14px;
    max-width: 760px;
}

.driver-activity-share__item {
    display: grid;
    gap: 10px;
    position: relative;
}

.driver-activity-share__item span {
    color: #111111;
    font-size: 12px;
}

.driver-activity-share__item b {
    align-items: center;
    border-radius: 999px;
    color: #111111;
    display: inline-flex;
    font-size: 12px;
    font-weight: 400;
    gap: 6px;
    height: 34px;
    justify-content: flex-start;
    min-width: 74px;
    padding: 0 18px;
}

.driver-activity-share__item b img {
    display: block;
    flex: 0 0 auto;
    height: 15px;
    object-fit: contain;
    transform: translateY(-1px);
    width: 15px;
}

.driver-activity-share__unknown-icon {
    align-items: center;
    color: #ffffff !important;
    display: inline-flex !important;
    flex: 0 0 15px;
    font-size: 13px !important;
    font-weight: 600;
    height: 15px;
    justify-content: center;
    line-height: 1;
    transform: translateY(-1px);
    width: 15px;
}

.driver-activity-share__item.is-rest {
    flex: 1;
    min-width: 220px;
}

.driver-activity-share__item.is-rest b {
    background: #48c5b4;
    width: 100%;
}

.driver-activity-share__item.is-availability b {
    background: #4aaee8;
}

.driver-activity-share__item.is-work b {
    background: #F7AA00;
}

.driver-activity-share__item.is-driving b {
    background: #f2484b;
}

.driver-activity-share__item.is-unknown b {
    background: #101828;
    color: #ffffff;
}

.driver-activity-share__item::after {
    background: #101828;
    border-radius: 8px;
    bottom: calc(100% + 10px);
    color: #ffffff;
    content: attr(data-tooltip);
    font-size: 11px;
    left: 50%;
    opacity: 0;
    padding: 7px 9px;
    pointer-events: none;
    position: absolute;
    transform: translateX(-50%);
    transition: opacity .12s ease;
    white-space: nowrap;
    z-index: 30;
}

.driver-activity-share__item::before {
    border: 6px solid transparent;
    border-top-color: #101828;
    bottom: calc(100% - 2px);
    content: "";
    left: 50%;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    transform: translateX(-50%);
    transition: opacity .12s ease;
    z-index: 31;
}

.driver-activity-share__item:hover::after,
.driver-activity-share__item:hover::before {
    opacity: 1;
}

.driver-activity-share__item.is-first::after {
    left: 0;
    transform: none;
}

.driver-activity-share__item.is-first::before {
    left: 32px;
}

.driver-activity-share__item.is-last::after {
    left: auto;
    right: 0;
    transform: none;
}

.driver-activity-share__item.is-last::before {
    left: auto;
    right: 32px;
    transform: none;
}

.driver-profile__hero p,
.driver-profile__panel-head p,
.driver-profile__hint {
    color: rgba(17, 17, 17, .58);
    font-size: 12px;
    margin: 6px 0 0;
}

.driver-profile__hero-stats {
    align-items: center;
    display: grid;
    column-gap: 32px;
    grid-template-columns: repeat(3, 126px);
}

.driver-profile__hero-stats div {
    align-items: center;
    display: grid;
    justify-items: center;
    width: 126px;
}

.driver-profile__stat-content {
    display: grid;
    justify-items: start;
    width: max-content;
}

.driver-profile__stat-value {
    align-items: center;
    display: grid;
    grid-template-columns: 24px max-content;
    column-gap: 8px;
    justify-content: start;
    width: max-content;
}

.driver-profile__stat-value i {
    align-items: center;
    background: rgba(17, 17, 17, .08);
    border-radius: 9px;
    color: #222222;
    display: inline-flex;
    flex: 0 0 auto;
    height: 24px;
    justify-content: center;
    transform: translateY(8px);
    width: 24px;
}

.driver-profile__stat-value strong {
    color: #050505;
    display: inline-block;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-variant-numeric: tabular-nums;
    font-weight: 300;
    letter-spacing: 0;
    line-height: .95;
    min-width: 0;
    text-align: left;
}

.driver-profile__stat-content > span:not(.driver-profile__stat-value) {
    color: #292929;
    font-size: 12px;
    text-align: left;
    width: 100%;
}

.driver-profile__grid {
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(300px, .82fr) minmax(0, 1.18fr);
}

.driver-dashboard-split {
    display: grid;
    gap: 38px;
    grid-template-columns: minmax(320px, .62fr) minmax(0, 1fr);
    min-height: 520px;
}

.driver-dashboard-intro {
    background:
        radial-gradient(circle at 86% 100%, rgba(72, 197, 180, .14), transparent 38%),
        radial-gradient(circle at 18% 20%, rgba(247, 170, 0, .08), transparent 26%);
    border-radius: 34px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
    padding: 10px 0 0;
}

.driver-dashboard-copy {
    max-width: 620px;
    padding: 8px 0 18px;
}

.driver-dashboard-copy > span {
    color: rgba(100, 116, 139, .8);
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.driver-dashboard-copy h2 {
    color: #151515;
    font-size: clamp(2.3rem, 4vw, 4.4rem);
    font-weight: 340;
    letter-spacing: 0;
    line-height: .98;
    margin: 0;
}

.driver-dashboard-copy p {
    color: rgba(17, 17, 17, .58);
    font-size: 13px;
    margin: 12px 0 28px;
}

.driver-activity-share--inline {
    max-width: 720px;
}

.driver-dashboard-info {
    display: grid;
    gap: 18px 34px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 0 10px;
}

.driver-dashboard-info div {
    min-width: 0;
}

.driver-dashboard-info .is-wide {
    grid-column: 1 / -1;
}

.driver-dashboard-info span {
    color: rgba(100, 116, 139, .9);
    display: block;
    font-size: 11px;
    margin-bottom: 7px;
}

.driver-dashboard-info strong {
    color: #111111;
    display: block;
    font-size: 13px;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.driver-dashboard-stats {
    min-width: 0;
}

.driver-profile__panel--analytics {
    min-height: 100%;
    padding: 30px;
}

.driver-profile__grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.driver-profile__grid--three .driver-profile__panel {
    background: rgba(255, 255, 255, .72);
    border-color: rgba(255, 255, 255, .78);
    padding: 18px;
}

.driver-profile__panel {
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: 22px;
    box-shadow: 0 16px 42px rgba(16, 24, 40, .08);
    padding: 18px;
}

.driver-profile__panel--identity {
    overflow: hidden;
    padding: 0;
}

.driver-profile__panel h3 {
    color: #141414;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0;
    margin: 0 0 14px;
}

.driver-profile__avatar-card {
    align-items: end;
    background:
        linear-gradient(to top, rgba(0, 0, 0, .72), rgba(0, 0, 0, .08) 62%),
        url("../img/driver-card-header.png") center / cover;
    border-radius: 0;
    display: flex;
    gap: 12px;
    min-height: 190px;
    margin-bottom: 0;
    overflow: hidden;
    padding: 18px;
    position: relative;
}

.driver-profile__identity-body {
    padding: 16px 18px 18px;
}

.driver-profile__avatar-card::before {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .08), transparent 42%);
    content: "";
    inset: 0;
    position: absolute;
}

.driver-profile__avatar {
    align-items: center;
    background: rgba(255, 255, 255, .92);
    border-radius: 18px;
    color: #111111;
    display: inline-flex;
    font-size: 1.25rem;
    font-weight: 700;
    height: 54px;
    justify-content: center;
    position: relative;
    width: 54px;
    z-index: 1;
}

.driver-profile__avatar-card strong,
.driver-profile__avatar-card span {
    color: #ffffff;
    display: block;
    position: relative;
    z-index: 1;
}

.driver-profile__avatar-card strong {
    font-size: 1.18rem;
    font-weight: 600;
}

.driver-profile__avatar-card span {
    font-size: 12px;
    opacity: .86;
}

.driver-profile__subheading {
    border-top: 1px dashed rgba(17, 17, 17, .2);
    color: #141414;
    font-size: .82rem;
    font-weight: 700;
    margin: 14px 0 10px;
    padding-top: 12px;
    text-transform: uppercase;
}

.driver-profile__panel dl {
    display: grid;
    gap: 10px;
    margin: 0;
}

.driver-profile__panel dl div,
.driver-signal-list li {
    align-items: center;
    border-bottom: 1px dashed rgba(17, 17, 17, .16);
    display: flex;
    justify-content: space-between;
    padding-bottom: 9px;
}

.driver-profile__panel dl div:last-child,
.driver-signal-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.driver-profile__panel dt,
.driver-signal-list span {
    color: rgba(17, 17, 17, .62);
    font-size: 12px;
}

.driver-profile__panel dd,
.driver-signal-list strong {
    color: #111111;
    font-size: 12px;
    font-weight: 700;
    margin: 0;
    text-align: right;
}

.driver-profile__panel-head {
    align-items: flex-start;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.driver-profile__panel-head h3 {
    margin-bottom: 0;
}

.driver-profile__panel-head span {
    background: #ffffff;
    border: 1px solid rgba(17, 17, 17, .1);
    border-radius: 999px;
    color: #2a2a2a;
    font-size: 12px;
    font-weight: 600;
    padding: 7px 12px;
    white-space: nowrap;
}

.driver-profile__metrics {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.driver-profile__metrics div {
    background: rgba(255, 255, 255, .86);
    border: 1px solid rgba(17, 17, 17, .08);
    border-radius: 18px;
    padding: 14px;
}

.driver-profile__metrics span {
    color: rgba(17, 17, 17, .62);
    display: block;
    font-size: .76rem;
}

.driver-profile__metrics strong {
    color: #111111;
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 4px;
}

.driver-distribution {
    background: rgba(17, 17, 17, .08);
    border-radius: 999px;
    display: flex;
    height: 42px;
    margin: 14px 0 12px;
    overflow: hidden;
}

.driver-distribution span {
    min-width: 2px;
}

.driver-mini-chart {
    align-items: end;
    background:
        radial-gradient(circle, rgba(17, 17, 17, .16) 1px, transparent 1.6px) 0 0 / 13px 13px,
        rgba(255, 255, 255, .5);
    border: 1px solid rgba(17, 17, 17, .08);
    border-radius: 20px;
    display: flex;
    gap: 3px;
    height: 160px;
    padding: 16px 14px 24px;
}

.driver-mini-chart span {
    background: #2d2d2d;
    border-radius: 999px;
    flex: 1;
    min-width: 4px;
    position: relative;
}

.driver-mini-chart b {
    bottom: -17px;
    color: rgba(17, 17, 17, .55);
    font-size: 9px;
    font-weight: 700;
    left: 50%;
    position: absolute;
    transform: translateX(-50%);
}

.driver-mini-chart p,
.driver-short-list {
    color: var(--muted);
    font-size: .84rem;
    margin: 0;
}

.driver-signal-list,
.driver-short-list {
    display: grid;
    gap: 9px;
    list-style: none;
    padding: 0;
}

.driver-violation-score {
    align-items: center;
    border-radius: 18px;
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    padding: 12px;
}

.driver-violation-score.is-ok {
    background: rgba(161, 212, 113, .34);
    color: #3d6f1f;
}

.driver-violation-score.is-warning {
    background: rgba(247, 170, 0, .24);
    color: #7c5200;
}

.driver-violation-score strong {
    font-size: 1.6rem;
    line-height: 1;
}

.driver-violation-score span {
    font-size: .84rem;
    font-weight: 800;
}

.driver-profile__hint {
    color: rgba(17, 17, 17, .58);
    font-size: 12px;
    margin: 6px 0 0;
}

.activity-day-chart {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 16px 44px rgba(23, 32, 51, .07);
    overflow-x: auto;
    padding: 18px 18px 12px;
}

.activity-day-chart--timeline {
    overflow: visible;
}

.activity-day-list {
    display: grid;
    gap: 12px;
}

.activity-day-row {
    border-top: 1px solid #edf2f7;
    padding-top: 14px;
}

.activity-day-row:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.activity-day-row + .activity-day-row {
    margin-top: 18px;
}

.activity-legend {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.activity-legend span {
    align-items: center;
    color: #344054;
    display: inline-flex;
    font-size: 11px;
    font-weight: 700;
    gap: 8px;
}

.activity-legend i {
    border-radius: 999px;
    display: inline-block;
    height: 13px;
    width: 13px;
}

.activity-chart-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.timeline-zoom {
    display: inline-flex;
}

.timeline-zoom button {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: #334155;
    cursor: pointer;
    display: inline-flex;
    font-size: 11px;
    font-weight: 800;
    gap: 6px;
    height: 28px;
    justify-content: center;
    padding: 0 10px;
}

.timeline-zoom button:hover {
    background: #f8fafc;
}

.timeline-zoom button:disabled {
    cursor: not-allowed;
    opacity: .42;
}

.timeline-zoom i {
    font-size: 13px;
    line-height: 1;
}

.tacho-color-rest { background: #48c5b4; }
.tacho-color-availability { background: #4aaee8; }
.tacho-color-work { background: #F7AA00; }
.tacho-color-driving { background: #f2484b; }
.tacho-color-unknown { background: #101828; }
.tacho-color-card { background: #7c3aed; }
.tacho-color-card-out { background: #94a3b8; }

.tacho-timeline {
    min-width: 0;
    padding-top: 0;
    width: 100%;
}

.tacho-plot {
    background: #ffffff;
    cursor: crosshair;
    height: 166px;
    overflow: visible;
    position: relative;
    user-select: none;
}

.tacho-plot::before {
    background:
        radial-gradient(circle, rgba(100, 116, 139, .2) 1px, transparent 1.2px);
    background-color: #fbfcfe;
    background-size: 9px 9px;
    content: "";
    height: 92px;
    left: 0;
    opacity: .72;
    position: absolute;
    right: 0;
    top: 39px;
}

.tacho-plot::after {
    background:
        radial-gradient(ellipse at center, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .32) 46%, rgba(255, 255, 255, .95) 100%),
        linear-gradient(90deg, rgba(255, 255, 255, .98), rgba(255, 255, 255, .14) 18%, rgba(255, 255, 255, .14) 82%, rgba(255, 255, 255, .98));
    content: "";
    height: 92px;
    left: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 39px;
    z-index: 1;
}

.tacho-segment {
    align-items: center;
    display: flex;
    height: 30px;
    justify-content: center;
    min-width: 2px;
    position: absolute;
    transition: left .14s ease, width .14s ease;
    z-index: 2;
}

.tacho-segment b {
    align-items: center;
    color: #101828;
    display: inline-flex;
    font-size: 11px;
    font-weight: 400;
    gap: 4px;
    pointer-events: none;
}

.tacho-segment b img {
    height: 13px;
    object-fit: contain;
    width: 13px;
}

.tacho-work-period {
    align-items: center;
    background: #A1D471;
    color: #101828;
    display: flex;
    height: 14px;
    justify-content: center;
    min-width: 2px;
    position: absolute;
    top: 38px;
    transition: left .14s ease, width .14s ease;
    z-index: 3;
}

.tacho-work-period b {
    color: #101828;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
}

.tacho-rest { background: #48c5b4; }
.tacho-availability { background: #4aaee8; }
.tacho-work { background: #F7AA00; }
.tacho-driving { background: #f2484b; }
.tacho-unknown { background: #101828; }

.tacho-vehicle-segment {
    align-items: center;
    background: #48aee0;
    bottom: 32px;
    color: #101828;
    display: flex;
    height: 18px;
    justify-content: center;
    position: absolute;
    transition: left .14s ease, width .14s ease;
    z-index: 2;
}

.tacho-vehicle-segment b {
    font-size: 11px;
    font-weight: 800;
    pointer-events: none;
}

.tacho-vehicle-segment::after {
    background: #101828;
    border-radius: 6px;
    bottom: calc(100% + 8px);
    color: #ffffff;
    content: attr(data-tooltip);
    font-size: 11px;
    font-weight: 700;
    left: 50%;
    opacity: 0;
    padding: 7px 9px;
    pointer-events: none;
    position: absolute;
    transform: translateX(-50%);
    transition: opacity .12s ease;
    white-space: nowrap;
    z-index: 20;
}

.tacho-vehicle-segment.is-edge-left::after {
    left: 0;
    transform: translateX(0);
}

.tacho-vehicle-segment.is-edge-left::before {
    left: 14px;
    transform: translateX(0);
}

.tacho-vehicle-segment.is-edge-right::after {
    left: auto;
    right: 0;
    transform: translateX(0);
}

.tacho-vehicle-segment.is-edge-right::before {
    left: auto;
    right: 14px;
    transform: translateX(0);
}

.tacho-vehicle-segment::before {
    border: 6px solid transparent;
    border-top-color: #101828;
    bottom: calc(100% - 3px);
    content: "";
    left: 50%;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    transform: translateX(-50%);
    transition: opacity .12s ease;
    z-index: 20;
}

.tacho-vehicle-segment:hover {
    filter: brightness(.96);
    z-index: 10;
}

.tacho-vehicle-segment:hover::after,
.tacho-vehicle-segment:hover::before {
    opacity: 1;
}

.tacho-axis {
    border-top: 2px solid #101828;
    bottom: 8px;
    height: 24px;
    left: 0;
    position: absolute;
    right: 0;
    z-index: 4;
}

.tacho-axis span {
    color: #667085;
    font-size: 11px;
    font-weight: 800;
    position: absolute;
    top: 10px;
    transform: translateX(-50%);
    white-space: nowrap;
}

.tacho-axis span::before {
    background: #101828;
    content: "";
    height: 6px;
    left: 50%;
    position: absolute;
    top: -9px;
    transform: translateX(-50%);
    width: 1px;
}

.tacho-axis span:first-child::before {
    left: 0;
    transform: none;
}

.tacho-axis span:last-child::before {
    left: 100%;
    transform: none;
}

.tacho-axis span:first-child {
    transform: translateX(0);
}

.tacho-axis span:last-child {
    transform: translateX(-100%);
}

.tacho-marker {
    border-left: 2px solid #101828;
    bottom: 15px;
    position: absolute;
    top: 8px;
    transition: left .14s ease;
    z-index: 3;
}

.tacho-selection {
    background: rgba(37, 99, 235, .12);
    border: 1px solid rgba(37, 99, 235, .45);
    bottom: 34px;
    left: 0;
    pointer-events: none;
    position: absolute;
    top: 14px;
    z-index: 30;
}

.tacho-marker::before {
    background: #101828;
    border-radius: 999px;
    content: "";
    height: 9px;
    left: -5px;
    position: absolute;
    top: 17px;
    width: 9px;
}

.tacho-marker b {
    color: #101828;
    font-size: 11px;
    left: -10px;
    position: absolute;
    top: 0;
    white-space: nowrap;
}

.tacho-segment::after,
.tacho-work-period::after {
    background: #101828;
    border-radius: 6px;
    bottom: calc(100% + 8px);
    color: #ffffff;
    content: attr(data-tooltip);
    font-size: 11px;
    font-weight: 700;
    left: 50%;
    opacity: 0;
    padding: 7px 9px;
    pointer-events: none;
    position: absolute;
    transform: translateX(-50%);
    transition: opacity .12s ease;
    white-space: nowrap;
    z-index: 20;
}

.tacho-segment.is-edge-left::after,
.tacho-work-period.is-edge-left::after {
    left: 0;
    transform: translateX(0);
}

.tacho-segment.is-edge-left::before,
.tacho-work-period.is-edge-left::before {
    left: 14px;
    transform: translateX(0);
}

.tacho-segment.is-edge-right::after,
.tacho-work-period.is-edge-right::after {
    left: auto;
    right: 0;
    transform: translateX(0);
}

.tacho-segment.is-edge-right::before,
.tacho-work-period.is-edge-right::before {
    left: auto;
    right: 14px;
    transform: translateX(0);
}

.tacho-segment::before,
.tacho-work-period::before {
    border: 6px solid transparent;
    border-top-color: #101828;
    bottom: calc(100% - 3px);
    content: "";
    left: 50%;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    transform: translateX(-50%);
    transition: opacity .12s ease;
    z-index: 20;
}

.tacho-segment:hover,
.tacho-work-period:hover {
    filter: brightness(.96);
    z-index: 10;
}

.tacho-segment:hover::after,
.tacho-segment:hover::before,
.tacho-work-period:hover::after,
.tacho-work-period:hover::before {
    opacity: 1;
}

.month-chart {
    align-items: end;
    display: grid;
    gap: 8px;
    grid-auto-columns: minmax(28px, 1fr);
    grid-auto-flow: column;
    height: 230px;
    min-width: 980px;
    padding: 14px 2px 0;
}

.month-day {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
    justify-content: flex-end;
    position: relative;
}

.month-stack {
    background: #f1f5f9;
    border-radius: 4px 4px 2px 2px;
    box-shadow: inset 0 0 0 1px #e2e8f0;
    display: flex;
    flex-direction: column-reverse;
    height: 176px;
    justify-content: flex-start;
    max-width: 34px;
    overflow: hidden;
    width: 100%;
}

.month-stack span {
    display: block;
    min-height: 2px;
    width: 100%;
}

.month-day b {
    color: #667085;
    font-size: 11px;
    font-weight: 800;
}

.month-day::after {
    background: #101828;
    border-radius: 6px;
    bottom: 32px;
    color: #ffffff;
    content: attr(data-tooltip);
    font-size: 11px;
    font-weight: 700;
    left: 50%;
    opacity: 0;
    padding: 7px 9px;
    pointer-events: none;
    position: absolute;
    transform: translateX(-50%);
    transition: opacity .12s ease;
    white-space: nowrap;
    z-index: 20;
}

.month-day:hover .month-stack {
    filter: brightness(.96);
}

.month-day:hover::after {
    opacity: 1;
}

.map-surface,
.chart-surface {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    min-height: 340px;
    width: 100%;
}

.json-box {
    background: #101828;
    border-radius: 8px;
    color: #e6edf7;
    max-height: 65vh;
    overflow: auto;
    padding: 16px;
}

.empty-state {
    margin: 0 auto;
    max-width: 560px;
    padding: 48px;
    text-align: center;
}

.empty-state i {
    color: var(--amber);
    font-size: 3rem;
}

.empty-inline {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    padding: 24px;
}

@media (max-width: 640px) {
    .home-landing {
        align-items: flex-start;
        padding-top: 30px;
    }

    .home-landing__logo {
        max-width: 38px;
    }

    .home-landing h1 {
        margin-bottom: 24px;
    }

    .home-upload__drop {
        border-radius: 10px;
        min-height: 54px;
        padding: 12px 14px;
    }

    .upload-panel,
    .day-block {
        padding: 14px;
    }

    .upload-hero {
        padding: 28px 0;
    }

}

@media (max-width: 900px) {
    .driver-profile__hero,
    .driver-profile__panel-head {
        flex-direction: column;
    }

    .driver-activity-share {
        align-items: stretch;
        flex-wrap: wrap;
    }

    .driver-activity-share__item.is-rest {
        flex-basis: 100%;
        min-width: 0;
    }

    .driver-activity-share__item::after {
        max-width: min(280px, 80vw);
        white-space: normal;
    }

    .driver-dashboard-split,
    .driver-console,
    .driver-profile__grid,
    .driver-profile__grid--three {
        grid-template-columns: 1fr;
    }

    .driver-profile__metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .driver-console__metrics,
    .driver-console__insights {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 640px) {
    .driver-profile__metrics {
        grid-template-columns: 1fr;
    }

    .driver-console__identity,
    .driver-console__main {
        padding: 24px;
    }

    .driver-console__facts,
    .driver-console__metrics,
    .driver-console__insights {
        grid-template-columns: 1fr;
    }

    .driver-console__heading {
        flex-direction: column;
        padding: 0 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-landing::before {
        animation: none;
    }
}
