body {
    background-color: #f5f7fb;
}

#app-shell {
    min-height: 100vh;
}

.sidebar {
    width: 240px;
    min-height: 100vh;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    flex-shrink: 0;
}

.sidebar .nav-link {
    border-radius: 0.5rem;
    font-size: 0.875rem;
    padding: 0.45rem 0.75rem;
    transition: background 0.15s;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.18);
}

.sidebar .nav-link.active {
    font-weight: 600;
    background-color: rgba(255, 255, 255, 0.22) !important;
}

.nav-section-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    padding-top: 0.25rem;
}

.main-content {
    width: calc(100% - 240px);
    min-width: 0;
}

.company-logo-sidebar {
    width: 38px;
    height: 38px;
    object-fit: contain;
    border-radius: 0.45rem;
    background: #fff;
    padding: 3px;
    flex-shrink: 0;
}

.company-logo-navbar {
    width: 30px;
    height: 30px;
    object-fit: contain;
    border-radius: 0.35rem;
}

.company-logo-login {
    width: 300px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.report-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.card {
    border-radius: 0.8rem;
}

.stat-card h3 {
    margin-bottom: 0;
}

.table td, .table th {
    vertical-align: middle;
}

/* Equipment project cards */
.project-card {
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    transition: box-shadow 0.15s;
}

.project-card:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.07) !important;
}

.btn-xs {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 0.35rem;
}

/* Billing summary list */
.billing-item {
    border-bottom: 1px solid #f0f0f0;
    padding: 0.5rem 0;
}

.billing-item:last-child {
    border-bottom: none;
}

/* Visit calendar */
.visit-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.5rem;
}

.visit-calendar-weekday {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 600;
    text-align: center;
}

.visit-calendar-cell {
    min-height: 120px;
    border: 1px solid #e6e9f0;
    border-radius: 0.6rem;
    background: #fff;
    padding: 0.45rem;
}

.visit-calendar-cell.is-muted {
    background: #f8f9fb;
    opacity: 0.75;
}

.visit-calendar-date {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.visit-calendar-event {
    font-size: 0.75rem;
    background: #e9f2ff;
    border: 1px solid #d4e5ff;
    border-radius: 0.4rem;
    padding: 0.12rem 0.35rem;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.visit-calendar-event.is-auto-oil {
    background: #fff3cd;
    border-color: #ffe69c;
}

@media (max-width: 991.98px) {
    .sidebar {
        position: fixed;
        left: -260px;
        top: 0;
        z-index: 1040;
        width: 240px;
        height: 100vh;
        transition: left 0.25s ease;
    }

    .sidebar.sidebar-open {
        left: 0;
        box-shadow: 4px 0 20px rgba(0,0,0,0.25);
    }

    #app-shell {
        flex-direction: column;
    }

    .main-content {
        width: 100%;
    }
}

@media print {
    .no-print {
        display: none !important;
    }

    body {
        background-color: #fff;
    }

    .card {
        box-shadow: none !important;
        border: 1px solid #dcdcdc !important;
    }
}
