/* ── Design Tokens ───────────────────────────────────────────────── */

:root {
    --rs-primary: #2563eb;
    --rs-primary-hover: #1d4ed8;
    --rs-primary-soft: rgba(37, 99, 235, 0.12);
    --rs-accent: #0ea5e9;
    --rs-success: #16a34a;
    --rs-warning: #d97706;
    --rs-danger: #dc2626;
    --rs-text: #0f172a;
    --rs-text-muted: #64748b;
    --rs-text-subtle: #94a3b8;
    --rs-bg: #f8fafc;
    --rs-surface: #ffffff;
    --rs-surface-alt: #f1f5f9;
    --rs-border: #e2e8f0;
    --rs-sidebar-bg: #1e293b;
    --rs-radius-sm: 6px;
    --rs-radius: 10px;
    --rs-radius-lg: 14px;
    --rs-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
    --rs-shadow-lg: 0 8px 24px rgba(15, 23, 42, 0.1);
    --rs-space-1: 4px;
    --rs-space-2: 8px;
    --rs-space-3: 12px;
    --rs-space-4: 16px;
    --rs-space-5: 20px;
    --rs-space-6: 24px;
}

body.dark {
    --rs-text: #e2e8f0;
    --rs-text-muted: #94a3b8;
    --rs-text-subtle: #64748b;
    --rs-bg: #0f172a;
    --rs-surface: #1e293b;
    --rs-surface-alt: #1e2430;
    --rs-border: #334155;
    --rs-sidebar-bg: #0f172a;
    --rs-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* ── Shared Base Classes ─────────────────────────────────────────── */

.rs-card {
    background: var(--rs-surface);
    border: 1px solid var(--rs-border);
    border-radius: var(--rs-radius);
    box-shadow: var(--rs-shadow);
    padding: var(--rs-space-5);
}

.rs-page-header {
    margin-bottom: var(--rs-space-5);
}

.rs-page-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--rs-text);
    margin: 0;
}

.rs-page-header p {
    font-size: 0.875rem;
    color: var(--rs-text-muted);
    margin: var(--rs-space-1) 0 0 0;
}

.rs-empty-state {
    padding: var(--rs-space-6);
    border: 1px dashed var(--rs-border);
    border-radius: var(--rs-radius);
    text-align: center;
    background: var(--rs-bg);
}

.rs-empty-state i {
    font-size: 1.5rem;
    color: var(--rs-text-subtle);
    margin-bottom: var(--rs-space-2);
    display: block;
}

.rs-empty-state h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--rs-text);
    margin: 0 0 var(--rs-space-1) 0;
}

.rs-empty-state p {
    font-size: 0.85rem;
    color: var(--rs-text-muted);
    margin: 0;
}

.rs-kpi {
    display: flex;
    align-items: center;
    gap: var(--rs-space-3);
    padding: var(--rs-space-4) var(--rs-space-5);
    border-radius: var(--rs-radius);
    background: var(--rs-surface);
    border: 1px solid var(--rs-border);
    box-shadow: var(--rs-shadow);
}

.rs-kpi-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--rs-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--rs-primary-soft);
    color: var(--rs-primary);
    flex: 0 0 auto;
    font-size: 1.1rem;
}

.rs-kpi-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--rs-text-muted);
    margin-bottom: 2px;
}

.rs-kpi-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--rs-text);
}

/* ── /Shared Base Classes ──────────────────────────────────────────── */

body{
    font-family: "DM Sans", sans-serif;
    font-style: normal;
    font-weight: 400;
}
.no-padding {
    padding: 0 !important;
}
.hidden{
    display: none !important;
}
.box{
    background-color: #FDFDFD;
    width: 100%;
    border-radius: 15px;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
}
.login-page{
    background-color: #F8F9FA;
}
.login-page .details{
    background-color: #1D2735;
    height: 100%;
}
.login-page .details .overlay{
    background-image: url("data:image/svg+xml,%3Csvg width='60' opacity='0.04' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    padding: 3rem;
    min-height: 100vh;
    height: 100%;
}
.login-page .details .logo{
    margin-bottom: 20px;
}
.login-page .details .logo img{
    width: 100%;
}
.login-page .details .text-wrap h1{
    color: #C4CCD4;
    font-size: 2.25rem;
    line-height: 44px;
    margin-bottom: 20px;
    font-weight: bold;
}
.login-page .details .text-wrap h1 span{
    color: #28ACE2;
    display: block;
}
.login-page .details .text-wrap p{
    color: #52637a;
    font-size: 1.125rem;
    line-height: 28px;
    line-height: 1.625;
}
.login-page .details .stats-box{
    display: flex;
    gap: 20px;
    padding: 20px;
    margin-top: 20px;
    background-color: #2a3646;
    border-radius: 10px;
}
.login-page .details .stats-box .icon i{
    color: #28ACE2;
    font-size: 40px;
}
.login-page .details .stats-box .detail h2{
    color: #28ACE2;
    font-size: 24px;
    font-weight: bold;
    margin: 0;

}
.login-page .details .stats-box .detail p{
    color: #52637a;
    font-size: 14px;
    margin: 0;
}
.login-page .details .copyright p{
    color: #52637a;
    font-size: 14px;
    margin: 0;
    margin-top: 20px;
}
.login-page .register-box{
    margin: 10px 0;
}
.login-page .register-box .icon{
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    margin-bottom: 20px;
    background-color: #2a3646;
    border-radius: 50%;
    color: #28ACE2;
    font-size: 20px;
}
.login-page .register-box h2{
    text-align: center;
    color: #1D2735;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    margin: 0;
}
.login-page .register-box p{
    text-align: center;
    color: #52637a;
    font-size: 14px;
    margin: 0;
}
.login-page .register-box form{
    margin-top: 20px;
}
.login-page .register-box form label{
    color: #52637a;
    font-size: 14px;
}
.login-page .register-box form .form-control{
    background-color: #f9fafb;
    border: 1px solid #dae0e7;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: none;
    outline: none;
}
.login-page .register-box form button{
    outline: none;
}
.btn-custom{
    background-color: #1D2735;
    border-color: #1D2735;
    color: #FDFDFD;
}
.btn-custom:hover{
    background-color: #28ACE2;
    border-color: #28ACE2;
    color: #1D2735;
}
.login-page .register-box input.is-invalid{
    border-color: #dc3545;
}
.login-page .register-box input.is-invalid:focus{
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}
.login-page .register-box input.is_valid{
    border-color: #28ACE2;
}
.login-page .register-box input.is_valid:focus{
    box-shadow: 0 0 0 0.2rem rgba(40, 172, 226, 0.25);
}
.login-page .register-box #selected-package.show{
    background-color: #1D2735;
    border-radius: 8px;
    color: #FDFDFD;
    padding: 20px;
}
.login-page .register-box #selected-package .package-detail{
    font-size: 16px;
}
.login-page .register-box #selected-package .package-detail h2{
    margin: 0;
    color: #28ACE2;
    text-align: left;
}
.login-page .register-box #selected-package .package-detail h2 span{
    color: #FDFDFD;
    font-size: 16px;
}
.login-page .register-box #selected-package .discount{
    background-color: #28ACE2;
    color: #FDFDFD;
    font-size: 14px;
    padding: 2px 6px;
    border-radius: 4px;
}
.login-page .register-box .forget{
    padding: 10px 0;
}
.login-page .register-box .forget a{
    color: #28ACE2;
    text-decoration: none;
    font-size: 14px;
}
.login-page .register-box .nav-tabs{
    background-color: #EAEDF0;
    border: none;
    border-radius: 8px;
    padding: 5px;
    margin-top: 20px;
}
.login-page .register-box .nav-tabs .nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 33%;
    flex: 0 0 33%;
}
.login-page .register-box .nav-tabs .nav-link{
    color: #9a9a9a;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    flex-flow: column;
}
.login-page .register-box .nav-tabs .nav-link.active{
    background-color: #28ACE2;
    border-radius: 8px;
    width: 100%;
    color: #FDFDFD;
}
.header{
    padding: 15px 0;
}
.header .welcome h3{
    font-size: 18px;
    font-weight: bold;
    margin: 0;
}
.header .welcome p{
    font-size: 12px;
    margin: 0;
}
.header .search{
    padding: 0 10px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header .search i{
    font-size: 14px;
}
.header .search input{
    background-color: transparent !important;
    border: none !important;
    outline: none;
    width: 100%;
    padding: 8px 10px;
    font-size: 14px;
    box-shadow: none;
    outline: none;
}
.btn-transparent{
    background-color: transparent;
    border: none;
}
.header .dropdown button{
    font-size: 14px;
    padding: 8px;
}
.header .dropdown button.profile{
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
}
.header .dropdown button.profile .img-placeholder{
    color: #FDFDFD;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 13px;
    font-weight: bold;
}
.header .dropdown button.profile img.profile-pic{
    width: 30px;
    height: 30px;
    border-radius: 50%;
}
.header .dropdown button.profile .details{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.header .dropdown button.profile .details h3{
    font-size: 16px;
    font-weight: bold;
    margin: 0;
}
.header .dropdown button.profile .details p{
    font-size: 12px;
    margin: 0;
}
.sidebar{
    background-color: #1D2735;
    min-height: 100vh;
}
.sidebar .sidebar-header{
    padding: 22px;
    border-bottom: 1px solid #2a3646;
}
.sidebar .sidebar-header .logo img{
    width: 100%;
}
.sidebar ul{
    padding: 15px 7px;
}
.sidebar .nav-item{
    padding: 3px 0;
}
.sidebar .nav-link{
    color: #b6bfc9;
    font-size: 15px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 10px;
}
.sidebar .nav-link.active{
    background-color: #28ACE2;
    color: #FDFDFD;
}
.sidebar .nav-link:hover{
    background-color: #2a3646;
    color: #FDFDFD;
}
.sidebar-section-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #5a6a80;
    font-weight: 700;
    padding: 14px 10px 6px 10px;
}
.sidebar-link-muted {
    cursor: default !important;
    opacity: 0.55;
}
.sidebar-link-muted:hover {
    background-color: transparent !important;
    color: #b6bfc9 !important;
}
.sidebar-badge-addon, .sidebar-badge-coming {
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1px 5px;
    border-radius: 4px;
    margin-left: auto;
    white-space: nowrap;
}
.sidebar-badge-addon {
    background: rgba(255,255,255,0.1);
    color: #8ea0b5;
}
.sidebar-badge-coming {
    background: rgba(40,172,226,0.15);
    color: #28ACE2;
}
.section{
    padding: 20px;
}
.section .section-header{
    margin-bottom: 20px;
}
.section .section-header h4{
    font-size: 24px;
    font-weight: bold;
    margin: 0;
}
.section .section-header p{
    font-size: 14px;
    margin: 0;
}
.section .section-header a{
    font-size: 14px;
    color: #707d8f;
    text-decoration: none;
    font-weight: 500;
}
.section .section-header a i{
    margin-right: 5px;
    font-size: 12px;
}
.section .nav-tabs{    
    border: none;
    border-radius: 8px;
    padding: 5px;
    margin-bottom: 20px;
}
.section .nav-tabs .nav-item .nav-link{    
    border: none;
    border-radius: 8px;
    padding: 5px 20px;
    display: flex;
    align-items: center;
    flex-flow: column;
    font-weight: bold;
    font-size: 14px;
}
.section .card{
    border-radius: 12px;
    border: 1px solid #dae0e7;
}
.section .card .table{
    margin-bottom: 0 !important;
    border-radius: 8px;
}
.section .card .table tr th{
    background-color: #F4F6F7;
    color: #707d8f;
    font-size: 14px;
    padding: 15px;
}
.section .search-box{
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid #dae0e7;
    border-radius: 8px;
}
.section .search-box i{
    color: #707d8f;
    margin: 0 10px;
}
.section .search-box input{
    border: none !important;
    outline: none !important;
    width: 100%;
    padding: 8px 10px;
    font-size: 14px;
    box-shadow: none;
    outline: none;
    background-color: transparent;
}
.section .nav-tabs.sub-tabs .nav-link{
    font-size: 14px;
    flex-direction: row;
    gap: 5px;
    padding: 5px 15px;
    border-radius: 5px;
}
.tab-pane{
    display: none;
}
.tab-pane.active{
    display: block;
}
.form-control{    
    border-radius: 8px;
    box-shadow: none;
    outline: none;
}
.form-label{
    font-size: 14px;
}
.dropify-wrapper{
    border-radius: 8px;
    border: 2px dashed #dae0e7 !important;
    background-color: #F8F9FA !important;
}
.dropify-wrapper .dropify-message p{
    font-size: 14px;
    color: #707d8f;
}
.section #staff-list .card{
    padding: 20px;
    text-decoration: none;
}
.section #staff-list .card img{
    width: 40px;
    height: 40px;
}
.section #staff-list .card .placeholder-image{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #E7EDF3;
    color: #18528b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}
.section #staff-list .card .title{
    display: flex;
    gap: 10px;
}
.section #staff-list .card .title h5{
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}
.section #staff-list .card .title .badges{
    display: flex;
    gap: 5px;
    font-size: 12px;
}
.section #staff-list .card .title .badges p{
    margin: 0;
}
.section #staff-list .card .details{
    display: flex;
    gap: 5px;
    font-size: 12px;
    color: #707d8f;
}
.section #staff-list .card .details p{
    margin: 0;
    font-size: 12px;
}
.section #staff-list .card .contact{
    display: block;
}
.section #staff-list .card .contact p{
    font-size: 12px;
    color: #707d8f;
    text-align: right;
    margin: 0;
}
.section .profile .box{
    padding: 30px 20px;
    position: relative;
    overflow: hidden;
    margin: 15px 0;
}
.section .profile .box .cover{
    background-image: linear-gradient(to top right, rgba(24, 82, 139, 0.8),rgba(71, 174, 164, 0.6));
    height: 120px;
    width: 100%;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
}
.section .profile .box .details{
    position: relative;
    z-index: 2;
    top: 30px;
    height: 130px;
}
.section .profile .box .details .img-container{
    width: 100px;
    height: 100px;
    border-radius: 15px;
    background-color: #FDFDFD;
    color: #18528b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);
}
.section .profile .box .details .img-container img{
    width: 100%;
    height: 100%;
    border-radius: 15px;
    object-fit: cover;
}
.section .profile .box .details .title{
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    height: 100%;
    padding: 35px 0;
}
.section .profile .box .details .title h2{
    margin-bottom: 0;
    font-size: 20px;
    font-weight: bold;
}
.section .profile .box .details .title p{
    margin-bottom: 5px;
    font-size: 14px;
    color: #707d8f;
}
.section .profile .box .details .btn-set{
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}
.section .profile .box .details .btn-set a{
    font-size: 14px;
    margin-top: 45px;
}
.section .profile .box .box-header h3{
    font-size: 14px;
    font-weight: bold;
    color: #1D2530;
}
.section .profile .box .box-body{
    margin-top: 10px;
}
.section .profile .box .box-body p{
    font-size: 15px;
    color: #707d8f;
    margin-top: 5px;
    margin-bottom: 0;
}
.section .profile .box .box-body p i{
    margin-right: 5px;
}
.padding-tb-20{
    padding-top: 20px !important;
    padding-bottom: 0 !important;
}
.h-100-percent{
    height: 100%;
}
#stepNav{
    margin: 20px 0;
    gap: 20px;
}
#stepNav .nav-link{
    border-radius: 12px;
    font-size: 14px;
}
#stepNav .nav-link.active{
    background-color: #28ACE2 !important;
    color: #FDFDFD !important;
}
.card-body .title{
    padding: 20px 0 10px;
}

/* Light Theme */
body.light{
    background-color: #F9FAFB;
}
body.light .form-control{
    background-color: #f9fafb;
    border: 1px solid #dae0e7;
}
body.light .header{
    background-color: #FDFDFD;
    border-bottom: 1px solid #e0e0e0;
}
body.light.header .welcome h3{
    color: #1D2735;
}
body.light .header .welcome p{
    color: #52637a;
}
body.light .header .search{
    background-color: #EAEDF0;
}
body.light .header .search i{
    color: #707d8f;
}
body.light .btn-transparent{
    color: #707d8f;
}
body.light .header .dropdown button{
    color: #707d8f;
}
body.light .header .dropdown button:hover{
    background-color: #EAEDF0;
}
body.light .header .dropdown button.profile .img-placeholder{
    background-color: #18528b;
}
body.light .header .dropdown button.profile .details h3{
    color: #1D2735;
}
body.light .header .dropdown button.profile .details p{
    color: #52637a;
}
body.light .section .nav-tabs{
    background-color: #EAEDF0;
}
body.light .section .nav-tabs .nav-item .nav-link{
    color: #9a9a9a;
}
body.light .section .nav-tabs .nav-item .nav-link.active{
    background-color: #f9fafb;
    color: #1D2530;
}
body.light .section .section-header p{
    color: #52637a;
}
body.light .no-record{
    color: #121821;
}
body.light #stepNav .nav-link{
    background-color: #EAEDF0;
    color: #707d8f;
}
body.light #stepNav .nav-link.done{
    background-color: rgba(71, 174, 164, 0.2);
    color: #28ACE2;
}
body.light .section .card{
    background-color: #FDFDFD;
    border: 1px solid #dae0e7; 
    color: #1D2735;
}
body.light .table>:not(caption)>*>*{
    background-color: transparent;
}
body.light .list-group-item{
    background-color: #fdfdfd;
}

/* Dark Theme */
body.dark{
    background-color: #121821;
}
body.dark .header{
    background-color: #1B222D;
    border-bottom: 1px solid #2d3643;
}
body.dark .header .welcome h3{
    color: #e2e6e9;
}
body.dark .header .welcome p{
    color: #8d97a5;
}
body.dark .header .search{
    background-color: #29313D;
}
body.dark .header .search i{
    color: #8d97a5;
}
body.dark .header .search input::placeholder{
    color: #8d97a5;
}
body.dark .btn-transparent{
    color: #8d97a5;
}
body.dark .btn-custom{
    background-color: #28ACE2;
    border-color: #28ACE2;
    color: #1D2735;
}
body.dark .btn-custom:hover{
    background-color: #1D2735;
    border-color: #1D2735;
    color: #28ACE2;
}
body.dark .header .dropdown button.profile .img-placeholder{
    background-color: #28ACE2;
}
body.dark .header .dropdown button.profile .details h3{
    color: #e2e6e9;
}
body.dark .header .dropdown button.profile .details p{
    color: #8d97a5;
}
body.dark .section .nav-tabs{
    background-color: #1F2832;
}
body.dark .section .nav-tabs .nav-item .nav-link{
    color: #8d97a5;
}
body.dark .section .nav-tabs .nav-item .nav-link.active{
    background-color: #28ACE2;
    color: #FDFDFD;
}
body.dark .section .section-header h4{
    color: #e2e6e9;
}
body.dark .section .section-header p{
    color: #8d97a5;
}
body.dark .section .card{
    background-color: #1F2832;
    border: 1px solid #2d3643; 
    color: #e2e6e9;
}
body.dark .section .card .table tr td{
    color: #dae0e7;
    background-color: #1F2832;
    border-color: #2d3643;
}
body.dark .section .card .table tr th{
    background-color: #1B222D;
    color: #8d97a5;
}
body.dark .section .search-box{
    background-color: transparent !important;
    border: 1px solid #2d3643;
}
body.dark .section .search-box input{
    background-color: transparent;
    border: none;
}
body.dark .section .search-box i{
    color: #8d97a5;
}
body.dark .section .search-box input,body.dark .section .search-box input::placeholder{
    color: #e2e6e9;
}
body.dark .modal-content .modal-header{
    background-color: #28ACE2;
    color: #e2e6e9;
}
body.dark .modal-content{
    background-color: #1B222D;
    color: #e2e6e9;
}
body.dark input, body.dark textarea, body.dark select, body.dark .form-control,body.dark .selectpicker button{
    background-color: #29313D;
    border: 1px solid #52637a;
    color: #e2e6e9 !important;
    outline: none;
    box-shadow: none;
}
body.dark .no-record{
    color: var(--rs-text-muted);
}
body.dark .text-muted{
    color: #8d97a5 !important;
}
body.dark .list-group-item{
    background-color: #1F2832;
    color: #e2e6e9;
}
body.dark .bootstrap-select>.dropdown-toggle.bs-placeholder, body.dark .bootstrap-select>.dropdown-toggle.bs-placeholder:active, body.dark .bootstrap-select>.dropdown-toggle.bs-placeholder:focus, body.dark .bootstrap-select>.dropdown-toggle.bs-placeholder:hover,body.dark .dropdown-menu,body.dark body.dark .bootstrap-select input,body.dark .dropify-wrapper{
    background-color: #29313D !important;
    border-color: #52637a !important;
    color: #e2e6e9 !important;
}
body.dark .dropdown-item{
    color: #e2e6e9;
}
body.dark #stepNav .nav-link {
    background-color: #29313D !important;
    color: #707d8f ;
}
body.dark #stepNav .nav-link.active{
    background-color: #28ACE2 !important;
    color: #FDFDFD !important;
}
body.dark .table>:not(caption)>*>*{
    background-color: #29313D;
    color: #e2e6e9 !important;
}
body.dark .box{
    background-color: #29313D;
}
body.dark .form-label{
    color: #e2e6e9;
}
body.dark input::placeholder, body.dark textarea::placeholder{
    color: #8d97a5;
}
body.dark h1, body.dark h2, body.dark h3, body.dark h4, body.dark h5, body.dark h6{
    color: #e2e6e9;
}
body.dark .box-body{
    background-color: #29313D;
    color: #e2e6e9;
}

/* ── rs-avatar: Global profile image / initials avatar ─────────────────── */
.rs-avatar {
    align-items: center;
    background: #dbeafe;
    border-radius: 50%;
    color: #1d4ed8;
    display: flex;
    flex-shrink: 0;
    font-size: 0.85rem;
    font-weight: 800;
    justify-content: center;
    overflow: hidden;
    user-select: none;
    width: 42px;
    height: 42px;
}
.rs-avatar-sm  { width: 30px;  height: 30px;  font-size: 0.7rem; }
.rs-avatar-md  { width: 42px;  height: 42px;  font-size: 0.85rem; }
.rs-avatar-lg  { width: 64px;  height: 64px;  font-size: 1.1rem; border-radius: 14px; }
.rs-avatar-xl  { width: 100px; height: 100px; font-size: 1.55rem; border-radius: 16px; }
.rs-avatar-rounded { border-radius: 14px !important; }
.rs-avatar-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rs-avatar-initials { cursor: default; }
body.dark .rs-avatar           { background: #1e3a5f; color: #93c5fd; }
body.dark .rs-avatar-initials  { background: #1e3a5f; color: #93c5fd; }

/* ── Previous-session banner dark mode ─────────────────────── */
body.dark .prev-session-banner--previous {
    border-color: #a3871a !important;
    background: #1f2a1a !important;
    color: #e2d48a !important;
}
body.dark .prev-session-banner--locked {
    border-color: #b02a37 !important;
    background: #2a1a1d !important;
    color: #f0b3b3 !important;
}
body.dark .prev-session-banner--reopened {
    border-color: #3b82f6 !important;
    background: #1a2235 !important;
    color: #a3c4ff !important;
}

/* ── Dashboard Stat Cards (UI-DESIGN-P1B) ──────────────────── */

.rs-dashboard-stat {
    background: var(--rs-surface);
    border: 1px solid var(--rs-border);
    border-radius: var(--rs-radius);
    box-shadow: var(--rs-shadow);
    padding: var(--rs-space-5);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.rs-dashboard-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--rs-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-size: 1.1rem;
    margin-bottom: var(--rs-space-3);
}

.rs-dashboard-stat-icon--primary  { background: var(--rs-primary-soft); color: var(--rs-primary); }
.rs-dashboard-stat-icon--accent   { background: rgba(14, 165, 233, 0.12); color: var(--rs-accent); }
.rs-dashboard-stat-icon--success  { background: rgba(22, 163, 74, 0.12); color: var(--rs-success); }
.rs-dashboard-stat-icon--warning  { background: rgba(217, 119, 6, 0.12); color: var(--rs-warning); }

.rs-dashboard-stat-body {
    flex: 1;
}

.rs-dashboard-stat-label {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--rs-text-muted);
    margin-bottom: var(--rs-space-1);
}

.rs-dashboard-stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--rs-text);
    line-height: 1.2;
    margin-bottom: var(--rs-space-1);
}

.rs-dashboard-stat-helper {
    font-size: 0.8rem;
    color: var(--rs-text-subtle);
}

.rs-dashboard-stat-footer {
    margin-top: var(--rs-space-3);
    padding-top: var(--rs-space-3);
    border-top: 1px solid var(--rs-border);
}

.rs-dashboard-stat-footer a {
    font-size: 0.8rem;
    color: var(--rs-primary);
    text-decoration: none;
    font-weight: 600;
}

.rs-dashboard-stat-footer a:hover {
    color: var(--rs-primary-hover);
    text-decoration: underline;
}

.rs-dashboard-stat-footer a i {
    font-size: 0.7rem;
    margin-left: 4px;
}

/* ── card variant tints ── */
.rs-dashboard-stat--primary {
    background: linear-gradient(135deg, rgba(37,99,235,0.10), rgba(255,255,255,0.92) 55%);
    border-color: rgba(37,99,235,0.18);
}
.rs-dashboard-stat--accent {
    background: linear-gradient(135deg, rgba(14,165,233,0.12), rgba(255,255,255,0.92) 55%);
    border-color: rgba(14,165,233,0.20);
}
.rs-dashboard-stat--success {
    background: linear-gradient(135deg, rgba(22,163,74,0.12), rgba(255,255,255,0.92) 55%);
    border-color: rgba(22,163,74,0.20);
}
.rs-dashboard-stat--warning {
    background: linear-gradient(135deg, rgba(217,119,6,0.14), rgba(255,255,255,0.92) 55%);
    border-color: rgba(217,119,6,0.22);
}

body.dark .rs-dashboard-stat--primary {
    background: linear-gradient(135deg, rgba(37,99,235,0.22), var(--rs-surface) 62%);
    border-color: rgba(96,165,250,0.28);
}
body.dark .rs-dashboard-stat--accent {
    background: linear-gradient(135deg, rgba(14,165,233,0.22), var(--rs-surface) 62%);
    border-color: rgba(56,189,248,0.28);
}
body.dark .rs-dashboard-stat--success {
    background: linear-gradient(135deg, rgba(22,163,74,0.22), var(--rs-surface) 62%);
    border-color: rgba(74,222,128,0.28);
}
body.dark .rs-dashboard-stat--warning {
    background: linear-gradient(135deg, rgba(217,119,6,0.24), var(--rs-surface) 62%);
    border-color: rgba(251,191,36,0.30);
}
body.dark .rs-dashboard-stat-value {
    color: #e2e8f0;
}
body.dark .rs-dashboard-stat-footer a {
    color: #60a5fa;
}
body.dark .rs-dashboard-stat-footer a:hover {
    color: #93c5fd;
}

/* ══════════════════════════════════════════════════════════════════════
   CI3-UX-FONT-SIZE-AND-STAFF-SCHEDULE-SLOTS-P1 — Global font-size control
   Scales the html root font-size (%) so every rem-based Bootstrap/typography
   rule scales with it. Level 0 == current app size (unchanged baseline).
   Kept modest (max +18%) and applied to <html>, not individual selectors,
   so it does not fight px-based component sizing (icons, avatars, fixed
   badges) that would otherwise clip/overflow at larger sizes.
   ══════════════════════════════════════════════════════════════════════ */
html.rs-font-scale-0 { font-size: 100%; }
html.rs-font-scale-1 { font-size: 106%; }
html.rs-font-scale-2 { font-size: 112%; }
html.rs-font-scale-3 { font-size: 118%; }

.rs-font-scale-control {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 2px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.04);
}
.rs-font-scale-control .rs-font-scale-btn {
    border: none;
    background: transparent;
    color: inherit;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
}
.rs-font-scale-control .rs-font-scale-btn:hover:not(:disabled) {
    background: rgba(0, 0, 0, 0.08);
}
.rs-font-scale-control .rs-font-scale-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}
.rs-font-scale-control .rs-font-scale-label {
    font-size: 11px;
    min-width: 20px;
    text-align: center;
    opacity: 0.7;
    user-select: none;
}
body.dark .rs-font-scale-control {
    background: rgba(255, 255, 255, 0.08);
}
body.dark .rs-font-scale-control .rs-font-scale-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.14);
}
