
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

body{
    font-family: 'Poppins', Arial, sans-serif;
    background:#f4f4f4;
    overflow-x:hidden;
    color:#17202a;
    font-size:14px;
    line-height:1.5;
}
*{
    box-sizing:border-box;
}
.sidebar{
    width:250px;
    min-height:100vh;
    background:#171d24;
    position:fixed;
    left:0;
    top:0;
}
.sidebar .logo{
    background:#171d24;
    padding:24px 18px 36px;
    border-bottom:0;
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:112px;
}
.brand-logo{
    display:block;
    max-width:165px;
    max-height:70px;
    object-fit:contain;
    /* background:rgba(255,255,255,1); */
    border:0;
    border-radius:8px;
    padding:6px 8px;
}
.sidebar-user{
    display:flex;
    align-items:center;
    gap:12px;
    background:#c92722;
    color:#fff;
    margin:0 12px 4px;
    padding:14px 14px;
    border-radius:10px;
    font-weight:600;
    border:0;
    width:calc(100% - 24px);
    cursor:pointer;
    text-align:left;
}
.sidebar-user span{
    flex:1;
}
.sidebar-user .fa-angle-down{
    font-size:20px;
    transition:transform .2s ease;
}
.sidebar-user.open .fa-angle-down{
    transform:rotate(180deg);
}
.sidebar-logout-panel{
    display:none;
    background:#fff;
    border-radius:9px;
    margin:0 16px 18px 12px;
    padding:14px 16px;
    box-shadow:0 10px 24px rgba(0,0,0,.14);
    grid-template-columns:1fr 1fr;
    gap:10px;
}
.sidebar-logout-panel.show{
    display:grid;
}
.sidebar-logout-panel a{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    color:#e01f1a;
    text-decoration:none;
    font-size:13px;
    font-weight:500;
    padding:9px 6px;
    border-radius:8px;
    white-space:nowrap;
}
.sidebar-logout-panel a:hover{
    background:#fff1f1;
    color:#b91814;
}
.sidebar-logout-panel a.active{
    background:#fff1f1;
    color:#e01f1a;
}
.sidebar ul{
    list-style:none;
    padding:12px 0;
    margin:0;
}
.sidebar ul li a{
    display:block;
    color:#f1f4f8;
    padding:13px 18px;
    text-decoration:none;
    white-space:normal;
    font-size:14px;
    /* font-weight:600; */
    transition:all .2s ease;
}
.sidebar ul li a:hover{
    background:#242b34;
    font-weight:500;
    color:#fff;
}
.sidebar ul li a.active{
    background:#f5f4f2;
    color:#af0f0b;
    border-left:0;
    border-radius:10px 0 0 10px;
    margin-left:14px;
    font-weight:500;
    padding-left:14px;
}
.sidebar ul li{
    margin-bottom:7px;
}
.main-content{
    margin-left:250px;
    padding:38px 22px 24px;
}
.sidebar-backdrop{
    display:none;
}
.topbar{
    background:#fff;
    padding:22px 24px;
    border-top:0;
    margin-bottom:24px;
    box-shadow:none;
    border:1px solid #e7e7e7;
    display:flex;
    align-items:center;
    gap:12px;
}
.topbar h4{
    margin:0;
    font-size:21px;
    font-weight:700;
    color:#07111f;
    letter-spacing:0;
}
.menu-toggle{
    display:none;
    border:0;
    background:#171d24;
    color:#fff;
    border-radius:4px;
    width:40px;
    height:40px;
    cursor:pointer;
}
.card-box{
    background:#fff;
    border-radius:12px;
    padding:22px;
    margin-bottom:24px;
    box-shadow:0 8px 22px rgba(15,23,42,.06);
    border:1px solid #ececec;
    overflow-x:auto;
}
.card-box h5{
    font-size:16px;
    font-weight:700;
    color:#111827;
    margin-bottom:16px;
}
.profile-card{
    max-width:880px;
}
.profile-heading{
    display:flex;
    align-items:center;
    gap:14px;
    padding-bottom:18px;
    margin-bottom:18px;
    border-bottom:1px solid #ececec;
}
.profile-heading h5{
    margin:0 0 4px;
}
.profile-heading span{
    color:#667085;
    font-size:13px;
}
.profile-avatar{
    width:52px;
    height:52px;
    border-radius:50%;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:#171d24;
    color:#fff;
    font-size:22px;
    flex:0 0 52px;
}
.profile-card .form-control[readonly]{
    background:#f8fafc;
    color:#17202a;
}
label{
    font-size:13px;
    font-weight:600;
    color:#303846;
    margin-bottom:7px;
}
.form-control{
    font-size:13px;
    font-weight:400;
    color:#182230;
    border-radius:10px;
    border-color:#d8dde6;
    min-height:42px;
}
.form-control:focus{
    border-color:#df241f;
    box-shadow:0 0 0 .15rem rgba(223,36,31,.12);
}
.btn{
    font-size:13px;
    font-weight:600;
    border-radius:10px;
}
.stat-card{
    color:#fff;
    padding:20px 18px;
    border-radius:10px;
    margin-bottom:20px;
    min-height:118px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    width:100%;
}
.stat-card h5{
    font-size:14px;
    line-height:1.3;
    margin-bottom:10px;
    font-weight:600;
}
.stat-card h2{
    font-size:30px;
    font-weight:700;
    margin:0;
}
.stat-icon{
    font-size:38px;
    opacity:.35;
    flex:0 0 auto;
}
.bg-red{background:#dc2626;}
.bg-blue{background:#1f7ed0;}
.bg-green{background:#2f8a37;}
.bg-orange{background:#f07a00;}
.btn-theme{
    background:#df241f;
    color:#fff;
    border-color:#df241f;
    border-radius:10px;
    font-weight:600;
    padding:10px 18px;
}
.btn-theme:hover{
    background:#c91f1a;
    border-color:#c91f1a;
    color:#fff;
}
.login-page{
    background:#111827;
    height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
}
.login-card{
    background:#fff;
    width:400px;
    max-width:calc(100% - 30px);
    padding:30px;
    border-radius:8px;
}
.login-logo{
    max-width:150px;
    max-height:70px;
    object-fit:contain;
    margin-bottom:18px;
}
.mapping-page{
    background:#f4f4f4;
    min-height:100vh;
}
.mapping-wrapper{
    width:100%;
    max-width:1100px;
    margin:0 auto;
}
.mapping-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:15px;
}
.mapping-header h4{
    margin:0;
}
.mapping-title{
    display:flex;
    align-items:center;
    gap:12px;
}
.mapping-logo{
    max-width:120px;
    max-height:52px;
    object-fit:contain;
    background:#fff;
    border-radius:5px;
    padding:8px 10px;
}
.latest-mapping-box{
    overflow-x:hidden;
}
.latest-list{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:10px;
    margin-top:15px;
}
.latest-item{
    display:flex;
    align-items:center;
    gap:10px;
    border:1px solid #e3e6ee;
    border-radius:10px;
    padding:12px;
    background:#fff;
}
.latest-count{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:30px;
    height:30px;
    border-radius:50%;
    background:#171d24;
    color:#fff;
    font-size:13px;
    flex:0 0 30px;
}
.latest-item div{
    min-width:0;
    flex:1;
}
.latest-item strong,
.latest-item small{
    display:block;
}
.latest-item small{
    color:#666;
    word-break:break-word;
}
.status-badge{
    border-radius:12px;
    padding:4px 8px;
    font-size:12px;
    white-space:nowrap;
}
.status-badge.active{
    background:#e7f5eb;
    color:#2e7d32;
}
.status-badge.inactive{
    background:#fdeceb;
    color:#c62828;
}
.toggle-user-status{
    min-width:44px;
    height:38px;
    padding:8px 10px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:10px;
    font-size:14px;
}
.toggle-user-status i{
    line-height:1;
}
.password-field{
    position:relative;
}
.password-field .form-control{
    padding-right:42px;
}
.password-toggle{
    position:absolute;
    right:10px;
    top:50%;
    transform:translateY(-50%);
    border:0;
    background:transparent;
    color:#555;
    cursor:pointer;
    height:32px;
    width:32px;
}
.password-toggle:focus{
    outline:none;
    color:#d32f2f;
}
.table thead{
    background:#e9e9e9;
    color:#252b33;
}
.table th{
    font-size:13px;
    font-weight:600;
    border-bottom:1px solid #cfcfcf !important;
}
.table td{
    font-size:13px;
    vertical-align:middle;
    padding:18px 8px;
}
.table{
    min-width:650px;
}
.dataTables_wrapper{
    width:100%;
    overflow-x:auto;
}

@media (max-width: 991px){
    body{
        font-size:14px;
    }
    .sidebar{
        width:260px;
        min-height:100vh;
        position:fixed;
        transform:translateX(-100%);
        transition:transform .25s ease;
        z-index:1000;
    }
    body.sidebar-open .sidebar{
        transform:translateX(0);
        box-shadow:4px 0 18px rgba(0,0,0,.25);
    }
    body.sidebar-open .sidebar-backdrop{
        display:block;
        position:fixed;
        inset:0;
        background:rgba(0,0,0,.35);
        z-index:999;
    }
    .sidebar .logo{
        padding:20px 15px;
        min-height:96px;
    }
    .brand-logo{
        max-width:170px;
        max-height:52px;
    }
    .sidebar ul li a{
        padding:15px 16px;
        border-bottom:1px solid rgba(255,255,255,.08);
    }
    .sidebar ul li a.active{
        margin-left:10px;
        border-radius:9px 0 0 9px;
    }
    .main-content{
        margin-left:0;
        padding:12px;
        width:100%;
        max-width:100%;
    }
    .menu-toggle{
        display:inline-flex;
        align-items:center;
        justify-content:center;
        flex:0 0 40px;
    }
    .topbar{
        padding:14px;
        margin-bottom:12px;
        position:sticky;
        top:0;
        z-index:900;
        border-radius:0;
    }
    .topbar h4,
    .mapping-header h4{
        font-size:20px;
    }
    .card-box{
        padding:14px;
        margin-bottom:12px;
        border-radius:10px;
        width:100%;
    }
    .stat-card{
        padding:16px;
        margin-bottom:12px;
        min-height:105px;
        gap:8px;
    }
    .stat-card h5{
        font-size:13px;
        min-height:34px;
    }
    .stat-card h2{
        font-size:26px;
    }
    .stat-icon{
        font-size:28px;
    }
    .login-page{
        padding:15px;
        height:auto;
        min-height:100vh;
    }
    .login-card{
        padding:20px;
    }
}
.login-card h3{
    font-size:22px;
    font-weight:700;
    color:#111827;
}
.login-card label{
    font-size:13px;
}
.mapping-title h4{
    font-size:21px;
    font-weight:700;
    color:#07111f;
}
.mapping-header .mapping-title h4{
    color:#07111f;
}
.latest-item strong{
    font-size:14px;
    font-weight:700;
    color:#111827;
}
.latest-item small{
    font-size:12px;
}
.status-badge{
    font-weight:600;
}
.dataTables_wrapper{
    font-size:13px;
}
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate{
    font-size:13px;
}
.dataTables_wrapper select,
.dataTables_wrapper input{
    font-size:13px;
    border-radius:10px;
    border:1px solid #d8dde6;
    min-height:38px;
    padding:6px 10px;
}
.dataTables_wrapper .dataTables_length select{
    margin:0 8px;
    min-width:62px;
    padding-left:10px;
    padding-right:22px;
}
.input-group-text{
    border-color:#d8dde6;
    background:#fff;
    color:#303846;
    border-radius:10px 0 0 10px;
}
.input-group .form-control{
    border-radius:0 10px 10px 0;
}
.daterangepicker .ranges li.active{
    background:#0b8dcc;
}
.daterangepicker td.active,
.daterangepicker td.active:hover{
    background:#2f7dbd;
}
#resetFilterBtn{
    min-width:86px;
    padding-left:12px;
    padding-right:12px;
    white-space:nowrap;
}
.user-filter-wrap{
    position:relative;
}
.card-box:has(.user-filter-wrap){
    overflow:visible;
}
.user-suggestion-list{
    display:none;
    position:absolute;
    top:calc(100% + 4px);
    left:0;
    right:0;
    z-index:1050;
    max-height:180px;
    min-height:40px;
    overflow-y:auto;
    overscroll-behavior:contain;
    background:#fff;
    border:1px solid #d8dde6;
    border-radius:8px;
    box-shadow:0 10px 24px rgba(17,24,39,.12);
    padding:4px 0;
}
.user-suggestion-list::-webkit-scrollbar{
    width:8px;
}
.user-suggestion-list::-webkit-scrollbar-track{
    background:#f4f4f4;
    border-radius:8px;
}
.user-suggestion-list::-webkit-scrollbar-thumb{
    background:#b9c0cc;
    border-radius:8px;
}
.user-suggestion-list::-webkit-scrollbar-thumb:hover{
    background:#8f98a8;
}
.user-suggestion-list.show{
    display:block;
}
.user-suggestion-item{
    display:block;
    width:100%;
    border:0;
    background:#fff;
    color:#17202a;
    text-align:left;
    padding:8px 12px;
    font-size:13px;
    line-height:1.35;
    cursor:pointer;
}
.user-suggestion-item:hover,
.user-suggestion-item.active{
    background:#f5f4f2;
    color:#af0f0b;
}
.user-suggestion-empty{
    display:none;
    padding:9px 12px;
    color:#6b7280;
    font-size:13px;
}
.user-suggestion-list.is-empty .user-suggestion-empty{
    display:block;
}

@media (max-width: 991px){
    .topbar h4,
    .mapping-title h4{
        font-size:18px;
    }
    .card-box h5{
        font-size:15px;
    }
    .form-control,
    .btn{
        font-size:13px;
    }
    .mapping-page{
        padding:0;
    }
    .mapping-header{
        align-items:center;
        flex-direction:row;
    }
    .mapping-title{
        align-items:center;
        flex-direction:row;
        gap:8px;
        min-width:0;
    }
    .mapping-logo{
        max-width:90px;
        max-height:42px;
    }
    .mapping-title h4{
        font-size:17px;
        line-height:1.25;
    }
    .latest-list{
        grid-template-columns:1fr;
    }
    .btn{
        white-space:normal;
    }
    .form-control,
    .btn{
        min-height:42px;
    }
    .row > [class*="col-"]{
        margin-bottom:12px;
    }
    .row > [class*="col-"]:last-child{
        margin-bottom:0;
    }
    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter,
    .dataTables_wrapper .dataTables_info,
    .dataTables_wrapper .dataTables_paginate{
        float:none;
        text-align:left;
        width:100%;
        margin-bottom:10px;
    }
    .dataTables_wrapper .dataTables_filter input{
        width:100%;
        margin-left:0;
        margin-top:6px;
    }
    .dataTables_wrapper .dataTables_paginate .paginate_button{
        padding:4px 7px;
    }
}

@media (max-width: 575px){
    .dashboard-stats > [class*="col-"]{
        padding-left:15px;
        padding-right:15px;
    }
    .dashboard-stats{
        margin-left:-15px;
        margin-right:-15px;
    }
    .stat-card{
        padding:16px;
        min-height:96px;
    }
    .stat-card h5{
        font-size:14px;
        min-height:auto;
    }
    .stat-card h2{
        font-size:28px;
    }
    .stat-icon{
        font-size:30px;
    }
}
