*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial,Helvetica,sans-serif;
}

html,
body{
    width:100%;
    min-height:100%;
    background:#eef3f7;
}

/* ===================================
   LAYOUT
=================================== */

.outer{
    display:flex;
    width:100%;
    min-height:100vh;
}

/* ===================================
   SIDEBAR
=================================== */

.sidebar{
    width:250px;
    flex-shrink:0;
    background:#0077b6;
    color:#fff;
    display:flex;
    flex-direction:column;
    padding:20px 10px;
    position:fixed;
    left:0;
    top:0;
    bottom:0;
}

.sidebar h2{
    margin-bottom:30px;
}

.sidebar a{
    display:flex;
    align-items:center;
    gap:15px;
    padding:14px 18px;
    margin:4px 12px;
    text-decoration:none;
    color:#fff;
    border-radius:10px;
    transition:.25s;
}

.sidebar a:hover{
    background:rgba(255,255,255,.15);
}

.sidebar a.active{
    background:#fff;
    color:#0077b6;
    font-weight:bold;
}

.sidebar a i{
    width:22px;
    text-align:center;
    font-size:18px;
}

.sidebar a span{
    flex:1;
}

/* ===================================
   LOGOUT
=================================== */

.btn-logout{
    margin-top:auto;
    border:none;
    padding:14px;
    border-radius:10px;
    background:#dc3545;
    color:#fff;
    cursor:pointer;
    font-size:15px;
    font-weight:bold;
}

.btn-logout:hover{
    background:#bb2d3b;
}

/* ===================================
   RIGHT CONTENT
=================================== */

.inner{
    flex:1;
    margin-left:250px;
    display:flex;
    flex-direction:column;
    min-width:0;
}

/* ===================================
   HEADER
=================================== */

.header{
    height:70px;
    background:#fff;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:0 30px;
    box-shadow:0 2px 10px rgba(0,0,0,.08);
    position:sticky;
    top:0;
    z-index:100;
}

.header h1{
    font-size:24px;
    color:#333;
}

.user{
    font-weight:bold;
}

/* ===================================
   MAIN
=================================== */

.main{
    flex:1;
    padding:5px 10px;
    background:#eef3f7;
}

/* ===================================
   CARD
=================================== */

.cards{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
}

.card{
    background:#fff;
    padding:25px;
    border-radius:15px;
    box-shadow:0 5px 15px rgba(0,0,0,.08);
}

.card h3{
    color:#666;
    margin-bottom:10px;
}

.card h1{
    color:#0077b6;
}

/* ===================================
   TABLE
=================================== */

table{
    width:100%;
    margin:20px 0px;
    border-collapse:collapse;
    background:#fff;
    border-radius:5px;
    overflow:hidden;
    box-shadow:0 5px 15px rgba(0,0,0,.08);
}

table th{
    background:#0077b6;
    color:#fff;
    padding:5px;
    text-align:center;
    font-weight: 400;
}

table td{
    padding:5px;
    border-bottom:1px solid #eee;
}

table tr:hover{
    background:#f8f8f8;
}

td {
    text-align: center;
}

td p {
    padding: 5px 0px;
}

/* ===================================
   BADGE
=================================== */

.success{
    display:inline-block;
    padding:5px 10px;
    background:#2ecc71;
    color:#fff;
    border-radius:5px;
}

.warning{
    display:inline-block;
    padding:5px 10px;
    background:#f39c12;
    color:#fff;
    border-radius:5px;
}

/* ===================================
   BUTTON
=================================== */

.btn-primary, .main-menu-option, .main-popup-option{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding:0 20px;
    height:30px;
    border:none;
    border-radius:8px;
    background:#0077b6;
    color:#fff;
    cursor:pointer;
    transition:.2s;
}

.btn-primary:hover, .main-menu-option:hover, .main-popup-option:hover{
    background:#005f8f;
}

.btn-secondary{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding:0 20px;
    height:30px;
    border:1px solid #ddd;
    border-radius:8px;
    background:#fff;
    cursor:pointer;
}

.btn-secondary:hover{
    background:#f5f5f5;
}

.btn-warning{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding:0 20px;
    height:30px;
    border:1px solid #e99713;
    border-radius:8px;
    background:#f39c12;
    cursor:pointer;
}

.btn-warning:hover{
    background:#f39c10;
}

.apps-menu-sub{
	padding: 1vh 0;
	text-align: right;
}
.menu-sub-title{
	font-size: 24px;
	font-weight: bold;
}

.tac {
    text-align: center;
}

.tal {
    text-align: left;
}

.tar {
    text-align: right;
}

.d-none {
    display: none;
}

.menu-toggle{
    display:none;
    width:42px;
    height:42px;
    border:none;
    border-radius:8px;
    background:#0077b6;
    color:#fff;
    cursor:pointer;
    font-size:18px;
}

@media (max-width:768px){

    .sidebar{
        left:-250px;
        transition:.3s;
        z-index:9999;
        margin-top: 70px;
    }

    .sidebar.show{
        left:0;
    }

    .inner{
        margin-left:0;
    }

    .header{
        padding:0 15px;
    }

    .header h1{
        font-size:20px;
    }

    .main{
        padding:15px;
    }

    .menu-toggle{
        display:flex;
        justify-content:center;
        align-items:center;
    }
}