:root {
    --sidebar-width: 270px;
    --brand: #1c4ed8;
    --brand-dark: #173ea5;
}

body {
    background: #f4f7fb;
    color: #243047;
    min-height: 100vh;
}

.sidebar {
    background: linear-gradient(180deg, #14213d 0%, #0f172a 100%);
    bottom: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    left: 0;
    max-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    position: fixed;
    top: 0;
    width: var(--sidebar-width);
    z-index: 1030;
}

.sidebar .nav {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    min-height: max-content;
    overflow: visible;
    padding-right: .35rem;
}

.sidebar .brand {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: .02em;
}

.sidebar .nav-link {
    align-items: center;
    border-radius: .65rem;
    box-sizing: border-box;
    color: #b8c2d8;
    display: flex;
    flex: 0 0 auto;
    margin: .15rem .75rem;
    min-width: 0;
    padding: .72rem 1rem;
    width: calc(100% - 1.5rem);
}

.sidebar .nav-link i {
    flex: 0 0 auto;
}

.sidebar .nav-link .menu-label {
    display: block;
    min-width: 0;
    overflow-wrap: break-word;
    white-space: normal;
    word-break: normal;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: rgba(255, 255, 255, .1);
    color: #fff;
}
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

.topbar {
    background: #fff;
    border-bottom: 1px solid #e5eaf2;
}

.stat-card,
.content-card {
    border: 0;
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
}

.stat-icon {
    align-items: center;
    border-radius: .8rem;
    display: flex;
    height: 48px;
    justify-content: center;
    width: 48px;
}

.table thead th {
    color: #65718a;
    font-size: .75rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.login-page {
    background: radial-gradient(circle at top right, #dbeafe, transparent 35%), #f4f7fb;
}

.signature-pad {
    background: #fff;
    cursor: crosshair;
    touch-action: none;
}

.evidence-thumb {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    width: 100%;
}

.service-data dt {
    color: #6b7280;
    font-weight: 500;
}

@media (max-width: 991.98px) {
    .sidebar {
        overflow-x: hidden;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform .2s ease;
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }
}
