/* =====================================================
   GLOBAL RESET
===================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', Arial, sans-serif;
}

body {
    background: #f5f6f8;
    min-height: 100vh;
}

/* =====================================================
   STAFF LAYOUT & WRAPPERS
===================================================== */
.staff-body {
    background-color: #f4f6f9;
}

.staff-wrapper {
    display: flex;
    min-height: 100vh;
}

.staff-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.staff-content {
    padding: 40px;
    flex: 1;
}

/* =====================================================
   SIDEBAR
===================================================== */
.sidebar {
    width: 240px;
    background-color: #013151;
    color: #ffffff;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 25px 20px;
    background-color: #013151;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.sidebar-nav {
    padding: 10px 0;
    flex: 1;
}

.nav-section {
    padding: 15px 25px 5px;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 900;
    color: #E87924;
    letter-spacing: 1px;
}

.nav-item {
    display: block;
    padding: 12px 25px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.nav-item:hover {
    background-color: rgba(255,255,255,0.08);
}

.nav-item.active {
    background-color: rgba(232, 121, 36, 0.2) !important;
    color: #ffffff !important;
    border-left: 5px solid #E87924 !important;
    font-weight: 700;
}

/* =====================================================
   TOPBAR
===================================================== */
.topbar {
    height: 70px;
    background-color: #ffffff;
    color: #013151;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    border-bottom: 1px solid #e2e6ea;
}

.topbar-left, .topbar-center, .topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.branch-display {
    font-size: 14px;
}

.badge {
    background-color: #E87924;
    color: #ffffff;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.logout-btn {
    text-decoration: none;
    color: #d9534f;
    font-weight: bold;
}

/* =====================================================
   UI COMPONENTS
===================================================== */
.page-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 30px; 
}

.btn-primary { 
    padding: 10px 20px; 
    background: #013151; 
    color: #fff; 
    border: none; 
    border-radius: 4px; 
    cursor: pointer; 
    text-decoration: none; 
    font-weight: bold;
}

.btn-secondary { 
    padding: 5px 12px; 
    border: 1px solid #ccc; 
    background: #fff; 
    cursor: pointer; 
    border-radius: 3px; 
}

.btn-action { 
    padding: 5px 12px; 
    border: 1px solid #013151; 
    background: #e3f2fd; 
    color: #013151; 
    cursor: pointer; 
    border-radius: 3px; 
    font-weight: bold;
}

.filter-bar { 
    background: #fff; 
    padding: 15px; 
    border-radius: 8px; 
    margin-bottom: 25px; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.05); 
    display: flex; 
    gap: 12px; 
}

.form-control { 
    flex: 1; 
    padding: 10px; 
    border: 1px solid #ccc; 
    border-radius: 4px; 
}

.table-container { 
    background: #fff; 
    border-radius: 8px; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); 
    overflow: hidden; 
}

.data-table { 
    width: 100%; 
    border-collapse: collapse; 
}

.data-table th { 
    background: #f8f9fa; 
    padding: 15px; 
    text-align: left; 
    border-bottom: 2px solid #eee; 
}

.data-table td { 
    padding: 15px; 
    border-bottom: 1px solid #eee; 
}

.text-success { color: #28a745; font-weight: bold; }
.text-warning { color: #ffc107; font-weight: bold; }
.text-muted { color: #666; font-size: 0.85em; }