*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html,body{
    width:100%;
    overflow-x:hidden;
}

body{
    font-family:Arial, Helvetica, sans-serif;
    background:#f4f6f8;
    color:#222;
    font-size:15px;
    line-height:1.5;
}

img{
    max-width:100%;
    height:auto;
}

/* HEADER */

.topbar{
    background:#1f4e79;
    color:#fff;
    padding:14px 18px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    flex-wrap:wrap;
}

.brand{
    font-size:18px;
    font-weight:700;
}

.nav{
    display:flex;
    flex-wrap:wrap;
    gap:8px 12px;
}

.nav a{
    color:#fff;
    text-decoration:none;
    font-size:14px;
}

/* CONTAINER */

.container{
    width:100%;
    max-width:100%;
    margin:16px auto;
    background:#fff;
    padding:10px 20px;
    border-radius:12px;
    box-shadow:0 2px 10px rgba(0,0,0,.08);
}

/* HEADINGS */

h1,h2,h3,h4{
    margin-bottom:14px;
    color:#111;
}

h2{
    font-size:22px;
}

/* FORM */

label{
    display:block;
    margin-bottom:6px;
    font-weight:600;
}

input,select,textarea{
    width:100%;
    padding:10px 12px;
    border:1px solid #cfcfcf;
    border-radius:8px;
    margin-bottom:12px;
    font-size:14px;
}

input:focus,
select:focus,
textarea:focus{
    border-color:#1f4e79;
    box-shadow:0 0 0 2px rgba(31,78,121,.08);
}

textarea{
    min-height:90px;
    resize:vertical;
}

/* BUTTONS */

button,.btn{
    background:#1f4e79;
    color:#fff;
    border:none;
    padding:10px 14px;
    border-radius:8px;
    cursor:pointer;
    text-decoration:none;
    font-size:13px;
}

.btn-danger{
    background:#b02a37;
}

.btn-secondary{
    background:#6c757d;
}

/* GRID */

.grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:14px;
}

/* CARDS */

.card{
    background:#fafafa;
    border:1px solid #ddd;
    border-radius:10px;
    padding:14px;
}

/* MESSAGE */

.msg{
    padding:10px 12px;
    background:#e9f7ef;
    border:1px solid #b7ebc6;
    margin-bottom:12px;
    border-radius:8px;
}

.err{
    padding:10px 12px;
    background:#fdeaea;
    border:1px solid #efb9b9;
    margin-bottom:12px;
    border-radius:8px;
}

.small{
    font-size:12px;
    color:#666;
}

/* TABLE */

.table-responsive{
    width:100%;
    overflow-x:auto;
}

table{
    width:100%;
    border-collapse:collapse;
    margin-top:12px;
}

table th,
table td{
    border:1px solid #ddd;
    padding:8px;
    text-align:left;
}

table th{
    background:#f0f0f0;
}

/* STATUS */

.status-badge{
    padding:4px 10px;
    border-radius:20px;
    font-size:12px;
    font-weight:600;
}

.status-pending{
    background:#fff3cd;
}

.status-processing{
    background:#d1ecf1;
}

.status-completed{
    background:#d4edda;
}

.status-rejected{
    background:#f8d7da;
}

/* ACTION BUTTONS */

.action-wrap{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
}

.icon-btn{
    width:32px;
    height:32px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:6px;
    color:#fff;
    font-size:14px;
}

.icon-edit{background:#6c757d;}
.icon-delete{background:#dc3545;}
.icon-amount{background:#0d6efd;}
.icon-process{background:#1f4e79;}
.icon-dl{background:#20c997;}

/* SEARCH */

.search-bar{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.search-bar input,
.search-bar select{
    padding:6px;
    min-width:150px;
}

.btn-search{
    background:#2c5d87;
}

.btn-reset{
    background:#6c757d;
}

/* DASHBOARD */

.dashboard-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:14px;
}

.dashboard-card{
    background:#fff;
    border:1px solid #ddd;
    border-radius:12px;
    padding:16px;
}

.dashboard-card .count{
    font-size:24px;
    font-weight:700;
    color:#1f4e79;
}

/* INFO GRID */

.app-info-card{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:10px;
}

.process-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:15px;
}

/* TABLET */

@media(max-width:991px){

.container{
    width:96%;
}

.dashboard-grid{
    grid-template-columns:repeat(2,1fr);
}

}

/* MOBILE */

@media(max-width:768px){

body{
    font-size:14px;
}

.container{
    width:94%;
}

.grid{
    grid-template-columns:1fr;
}

.dashboard-grid{
    grid-template-columns:1fr;
}

.app-info-card{
    grid-template-columns:1fr;
}

.process-grid{
    grid-template-columns:1fr;
}

table{
    font-size:12px;
}

}

/* APPLICATION LIST PROFESSIONAL FIX */

.container{
    overflow:hidden;
}

.table-responsive{
    width:100%;
    overflow-x:auto;
    overflow-y:hidden;
    -webkit-overflow-scrolling:touch;
    border:1px solid #ddd;
    border-radius:12px;
    background:#fff;
}

.app-table{
    width:100%;
    min-width:1250px;
    border-collapse:collapse;
    table-layout:auto;
    margin-top:0;
}

.app-table th,
.app-table td{
    padding:10px 8px;
    font-size:13px;
    vertical-align:middle;
    white-space:nowrap;
}

.app-table th{
    background:#f3f4f6;
    font-weight:700;
    color:#111827;
}

.app-table tbody tr:hover{
    background:#f9fbff;
}

.action-col{
    min-width:230px;
    width:230px;
}

.action-wrap{
    display:flex;
    flex-wrap:nowrap;
    gap:8px;
    align-items:center;
    justify-content:flex-start;
    min-width:210px;
}

.icon-btn{
    width:32px;
    min-width:32px;
    height:32px;
    border-radius:8px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    font-size:13px;
    text-decoration:none;
    transition:.2s ease;
}

.icon-btn:hover{
    transform:translateY(-1px);
    opacity:.92;
}

.status-badge{
    display:inline-block;
    padding:6px 10px;
    border-radius:20px;
    font-size:11px;
    font-weight:700;
    white-space:nowrap;
}

.table-total-row td{
    font-weight:700;
    background:#f9fafb;
    white-space:nowrap;
}

.pagination-wrap{
    margin-top:16px;
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:8px;
}

.pagination-wrap a,
.pagination-wrap span{
    min-width:38px;
    height:38px;
    padding:0 12px;
    border-radius:10px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    font-weight:600;
    border:1px solid #d1d5db;
    background:#fff;
    color:#111827;
    font-size:13px;
}

.pagination-wrap a:hover{
    background:#f3f4f6;
}

.pagination-wrap .active{
    background:#0d6efd;
    color:#fff;
    border-color:#0d6efd;
}

.pagination-info{
    margin-top:10px;
    text-align:center;
    color:#6b7280;
    font-size:12px;
}

@media(max-width:1200px){
    .app-table{
        min-width:1200px;
    }
}

@media(max-width:768px){
    .app-table{
        min-width:1150px;
    }

    .app-table th,
    .app-table td{
        font-size:12px;
        padding:8px 7px;
    }

    .action-col{
        min-width:220px;
        width:220px;
    }
}
.btn-save{
    background: var(--theme-color) !important;
    color:#fff;
}

.btn-edit{
    background: #0ea5e9 !important;
}

.btn-delete{
    background: #dc2626 !important;
}
.chat-badge{
    position:absolute;
    top:-6px;
    right:-12px;
    background:#ef4444;
    color:#fff;
    font-size:10px;
    font-weight:700;
    padding:2px 6px;
    border-radius:50px;
    min-width:18px;
    text-align:center;
}