:root {
    --app-bg: #f5f7fb;
    --app-surface: #ffffff;
    --app-text: #172033;
    --app-muted: #64748b;
    --app-border: #d9e2ec;
    --app-primary: #0f766e;
    --app-primary-dark: #115e59;
    --app-blue: #2563eb;
    --app-amber: #d97706;
    --app-red: #dc2626;
}

body {
    background: var(--app-bg);
    color: var(--app-text);
}

.app-navbar {
    border-bottom: 1px solid var(--app-border);
}

.app-navbar .navbar-brand {
    color: var(--app-text);
    font-weight: 700;
    letter-spacing: 0;
}

.app-navbar .navbar-brand img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    margin-right: 8px;
}

.app-navbar .nav-link {
    border-radius: 8px;
    color: #334155;
    font-weight: 600;
    padding: 0.6rem 0.8rem;
}

.app-navbar .nav-link.active,
.app-navbar .nav-link:hover,
.app-navbar .nav-link:focus {
    background: #e7f7f5;
    color: var(--app-primary-dark);
}

.page-heading {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.page-heading h1 {
    color: var(--app-text);
    font-size: clamp(1.5rem, 2vw, 2rem);
    margin: 0;
}

.page-heading p {
    color: var(--app-muted);
    margin: 0.25rem 0 0;
}

.stat-card {
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    min-height: 132px;
}

.stat-card .stat-icon {
    align-items: center;
    border-radius: 8px;
    color: #ffffff;
    display: inline-flex;
    height: 42px;
    justify-content: center;
    margin-bottom: 0.75rem;
    width: 42px;
}

.stat-card .stat-label {
    color: var(--app-muted);
    font-size: 0.84rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

.stat-card .stat-value {
    color: var(--app-text);
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.filter-panel,
.form-panel,
.table-panel {
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.filter-panel,
.form-panel {
    padding: 1rem;
}

.table-panel {
    overflow: hidden;
}

.table-panel .table {
    margin-bottom: 0;
}

.table thead th {
    white-space: nowrap;
}

.status-badge {
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1;
    padding: 0.4rem 0.65rem;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-scheduled {
    background: #dbeafe;
    color: #1d4ed8;
}

.status-delivered {
    background: #dcfce7;
    color: #166534;
}

.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.btn-install {
    border: 1px solid var(--app-primary);
    color: var(--app-primary-dark);
    font-weight: 700;
}

.btn-install:hover,
.btn-install:focus {
    background: #e7f7f5;
    color: var(--app-primary-dark);
}

.app-shell {
    align-items: center;
    display: flex;
    min-height: 100vh;
    justify-content: center;
    padding: 1rem;
}

.offline-panel {
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 8px;
    max-width: 440px;
    padding: 2rem;
    text-align: center;
}

.offline-logo {
    height: 78px;
    object-fit: contain;
    width: 78px;
}

.btn-like {
    background: var(--app-primary);
    border-radius: 8px;
    color: #ffffff;
    display: inline-block;
    font-weight: 700;
    margin-top: 1rem;
    padding: 0.7rem 1rem;
    text-decoration: none;
}

@media (max-width: 767.98px) {
    .page-heading {
        display: block;
    }

    .page-heading .quick-actions {
        margin-top: 0.75rem;
    }

    .app-navbar .nav-link {
        padding: 0.7rem;
    }

    .stat-card .stat-value {
        font-size: 1.25rem;
    }
}
