/* =====================================================
   GLOBAL RESET
===================================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

body {
    background: #f5f6f8;
    min-height: 100vh;
}

/* =====================================================
   PUBLIC LAYOUT
===================================================== */

.topbar {
    height: 60px;
    background: #013151;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.content {
    padding: 30px;
}

/* =====================================================
   STAFF LAYOUT
===================================================== */

.staff-body {
    background-color: #f4f6f9;
}

.staff-wrapper {
    display: flex;
    min-height: 100vh;
}

.staff-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* =====================================================
   SIDEBAR
===================================================== */

.sidebar {
    width: 240px;
    background-color: #013151;
    color: #ffffff;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.company-name {
    font-size: 18px;
    font-weight: bold;
}

.erp-label {
    font-size: 12px;
    opacity: 0.7;
}

.sidebar-nav {
    padding: 10px 0;
    flex: 1;
}

.nav-section {
    padding: 12px 20px 6px;
    font-size: 11px;
    text-transform: uppercase;
    opacity: 0.6;
}

.nav-item {
    display: block;
    padding: 10px 20px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
}

.nav-item:hover {
    background-color: rgba(255,255,255,0.08);
}

/* =====================================================
   STAFF TOPBAR OVERRIDE
===================================================== */

.staff-main .topbar {
    background-color: #ffffff;
    color: #013151;
    border-bottom: 1px solid #e2e6ea;
}

.topbar-left,
.topbar-center,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.branch-display {
    font-size: 14px;
}

.notifications .badge {
    background-color: #E87924;
    color: #ffffff;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.logout-btn {
    text-decoration: none;
    color: #013151;
    font-weight: bold;
}

/* =====================================================
   STAFF CONTENT
===================================================== */

.staff-content {
    padding: 30px;
    flex: 1;
}

/* =====================================================
   DASHBOARD
===================================================== */

.page-title {
    margin-bottom: 25px;
    font-size: 22px;
    color: #013151;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #e5e5e5;
}

.stat-title {
    font-size: 13px;
    opacity: 0.7;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #013151;
}

/* =====================================================
   WORKFLOW TIMELINE
===================================================== */

.workflow-section {
    margin-bottom: 40px;
}

.status-timeline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.status-step {
    padding: 8px 14px;
    background-color: #ffffff;
    border: 1px solid #dcdcdc;
    border-radius: 20px;
    font-size: 12px;
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1024px) {
    .sidebar {
        width: 200px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        display: none;
    }

    .staff-wrapper {
        flex-direction: column;
    }
}