body {
    background: #f3f5f9;
    color: #1f2937;
}

.app-shell {
    min-height: 100vh;
    /* TrÃƒÂ¡nh co sidebar khi main cÃƒÂ³ nÃ¡Â»â„¢i dung rÃ¡Â»â„¢ng (bÃ¡ÂºÂ£ng, form). */
    align-items: stretch;
}

.sidebar {
    flex: 0 0 288px;
    width: 288px;
    min-width: 288px;
    max-width: 288px;
    background: #fff;
    border-right: 1px solid #e7ebf3;
    padding: 1.1rem 1rem 1.25rem;
    box-sizing: border-box;
}

/* CÃ¡Â»â„¢t nÃ¡Â»â„¢i dung: chiÃ¡ÂºÂ¿m phÃ¡ÂºÂ§n cÃƒÂ²n lÃ¡ÂºÂ¡i; min-width 0 Ã„â€˜Ã¡Â»Æ’ overflow cuÃ¡Â»â„¢n trong main thay vÃƒÂ¬ nÃƒÂ©n sidebar. */
.app-shell > section.flex-grow-1 {
    flex: 1 1 0%;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.brand {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f4c81;
    margin-bottom: 1rem;
    padding-left: .5rem;
}

.menu-group-title {
    font-size: .72rem;
    text-transform: uppercase;
    color: #94a3b8;
    margin: .85rem .5rem .35rem;
}

.sidebar .nav-link {
    color: #374151;
    border-radius: .5rem;
    padding: .5rem .75rem;
    font-size: .92rem;
    margin-bottom: .15rem;
    display: flex;
    align-items: center;
    gap: .45rem;
}

    .sidebar .nav-link:hover,
    .sidebar .nav-link.active {
        background: #e8f0fb;
        color: #0f4c81;
    }

.app-shell > section.flex-grow-1 > main {
    flex: 1 1 auto;
    min-width: 0;
}

.topbar {
    flex: 0 0 auto;
    background: #fff;
    border-bottom: 1px solid #e7ebf3;
    padding: .75rem 1.25rem;
}

.top-user {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .9rem;
    color: #475569;
}

.avatar-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #dbeafe;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1e3a8a;
    font-size: .8rem;
    font-weight: 700;
}

.panel-card {
    border: 1px solid #e7ebf3;
    border-radius: 0;
    background: #fff;
}

/* Use square corners for card-like containers in admin pages. */
.app-shell .card,
.app-shell .card-header,
.app-shell .card-footer,
.app-shell .form-control,
.app-shell .form-select,
.app-shell .btn,
.app-shell .pagination .page-link {
    border-radius: 0 !important;
}

.panel-title {
    font-size: .95rem;
    font-weight: 600;
    color: #0f172a;
}

.mini-muted {
    color: #64748b;
    font-size: .85rem;
}

.schedule-item {
    border-radius: .5rem;
    background: #f8fafc;
    padding: .55rem .7rem;
    margin-bottom: .4rem;
    border: 1px solid #eef2f7;
}

.badge-soft {
    background: #fef3c7;
    color: #92400e;
    font-size: .72rem;
    padding: .2rem .4rem;
    border-radius: .35rem;
}

.dashboard-tabs .nav-link {
    color: #64748b;
    font-weight: 500;
    font-size: .9rem;
}

    .dashboard-tabs .nav-link.active {
        color: #0f4c81;
        border-color: #dbeafe #dbeafe #fff;
        background: #fff;
    }

.app-alert {
    border: 0;
    border-left: 4px solid currentColor;
}

.app-validation-summary ul {
    margin-bottom: 0;
    padding-left: 1rem;
}

.app-pagination .pagination .page-link {
    margin: 0 .1rem;
}

/* Table style aligned with legacy admin grid sample. */
.app-shell .table {
    margin-bottom: 0;
    width: 100%;
    font-size: .8125rem;
    line-height: 1.25;
    color: #374151;
    border: 1px solid #e5e7eb;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
}

    .app-shell .table > :not(caption) > * > * {
        padding: .42rem .5rem;
        vertical-align: middle;
        border-right: 1px solid #eceff3;
        border-bottom: 1px solid #eceff3;
    }

    .app-shell .table thead th {
        padding-top: .48rem;
        padding-bottom: .48rem;
        font-size: .875rem;
        font-weight: 600;
        color: #4b5563;
        background: #f6f7f9;
        border-bottom: 1px solid #d8dee6;
        white-space: nowrap;
        text-transform: none;
    }

        .app-shell .table thead th:last-child,
        .app-shell .table tbody td:last-child {
            border-right: 0;
        }

    .app-shell .table tbody tr:last-child td {
        border-bottom: 0;
    }

    .app-shell .table tbody tr:hover {
        background: #f9fbff;
    }

    .app-shell .table a {
        color: #2b6cb0;
        text-decoration: none;
    }

        .app-shell .table a:hover {
            text-decoration: underline;
        }

.app-shell .table-responsive {
    /* border: 1px solid #e5e7eb; */
    background: #fff;
}

    .app-shell .table-responsive > .table {
        border: 0;
    }
