* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
}

/* 1. Global 80% Zoom Scaling */
html, body { 
    width: 100%; 
    min-height: 100vh; 
    background-color: #F0F2F5; 
    color: #333;
    zoom: 0.90; /* Simulates 80% browser zoom globally */
}

/* 2. Main Outer Layout Wrapper (Vertical Stack) */
.app-container { 
    display: flex;
    flex-direction: column;
    padding: 24px 35px;
    width: 100%;
    min-height: 100vh;
}

/* 3. Top Header Branding */
.header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding-bottom: 25px; 
    border-bottom: 1px solid #EAEAEA; 
    width: 100%;
}
.logo-container { display: flex; flex-direction: column; }
.logo-main { color: #E85A1C; font-weight: 800; font-size: 34px; font-style: italic; letter-spacing: -0.5px; }
.logo-sub { color: #555; font-size: 16px; font-weight: 700; font-style: italic; margin-top: -8px; padding-left: 68px; letter-spacing: 1px; }
.user-badge { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 16px; }
.avatar-icon { width: 38px; height: 38px; background: #111; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; }

/* 4. Horizontal Flex Section (Sidebar + Content Area) */
.main-layout { 
    display: flex; 
    align-items: flex-start;
    gap: 24px; /* Fixed distance between sidebar and white content box */
    margin-top: 25px; 
    width: 100%; 
    flex: 1; 
}

/* 5. Fixed Left Sidebar */
.sidebar { 
    width: 240px; 
    flex-shrink: 0; /* Keeps sidebar fixed width on left */
    background: #F4F5F7;
    padding: 20px;
    border-radius: 16px;
}
.menu-section { margin-bottom: 25px; }
.menu-header { font-weight: 700; font-size: 17px; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; color: #222; }
.menu-items { list-style: none; padding-left: 10px; }
.menu-items li a { color: #555; text-decoration: none; font-size: 15px; display: block; margin-bottom: 8px; transition: color 0.2s; font-weight: 500; }
.menu-items li a:hover, .menu-items li a.active { color: #E85A1C; font-weight: 700; }

/* 6. Expandable Right Content Area & White Box */
.content-area { 
    flex: 1; /* Takes remaining width on the right */
    display: flex; 
    flex-direction: column; 
    gap: 25px; 
    min-width: 0; 
}

.data-box { 
    background: #FFFFFF; 
    border: 1.5px solid #E5E7EB; 
    border-radius: 20px; 
    padding: 30px; 
    width: 100%; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
.data-box h3 { font-size: 20px; margin-bottom: 20px; color: #222; display: flex; justify-content: space-between; align-items: center; }

/* Dashboard Cards */
.cards-row { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
.stat-card { background: #E85A1C; color: #fff; border-radius: 20px; padding: 30px 25px; text-align: center; box-shadow: 0 4px 15px rgba(232, 90, 28, 0.2); }
.stat-card h3 { font-size: 24px; font-weight: 700; margin-bottom: 10px; }
.stat-card .count { font-size: 64px; font-weight: 800; line-height: 1; }

/* Data Tables */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 14px 12px; border-bottom: 1px solid #EAEAEA; font-size: 14px; }
th { color: #555; font-weight: 700; background: #F0F2F5; }

/* Forms & Controls */
.btn { padding: 8px 16px; border-radius: 8px; border: none; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-block; font-size: 13px; }
.btn-orange { background: #E85A1C; color: white; }
.btn-orange:hover { background: #d04d13; }
.btn-success { background: #10B981; color: white; }
.btn-dark { background: #333; color: white; }
.form-control { padding: 10px 12px; border: 1px solid #CCC; border-radius: 8px; font-size: 14px; width: 100%; }
.input-sm { padding: 6px 10px; border: 1px solid #ccc; border-radius: 6px; font-size: 13px; width: 120px; }

/* Badges & Status Pills */
.status-badge { padding: 5px 10px; border-radius: 12px; font-size: 12px; font-weight: 700; }
.status-SUBMITTED { background: #FEF3C7; color: #92400E; }
.status-QUOTED { background: #DBEAFE; color: #1E40AF; }
.status-IN_PRODUCTION { background: #E0E7FF; color: #3730A3; }
.status-COMPLETED { background: #D1FAE5; color: #065F46; }

.status-tabs { display: flex; gap: 15px; margin-bottom: 25px; flex-wrap: wrap; }
.tab-pill {
    padding: 12px 24px;
    background: #FFEDE6;
    color: #333;
    font-weight: 700;
    border-radius: 16px;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}
.tab-pill:hover { background: #FCD8C8; }
.tab-pill.active { background: #E85A1C; color: white; }
.badge-pill { background: rgba(0, 0, 0, 0.08); padding: 2px 10px; border-radius: 12px; font-size: 13px; }
.tab-pill.active .badge-pill { background: rgba(255, 255, 255, 0.25); color: white; }

/* Alerts & Modals */
.alert { padding: 12px 18px; border-radius: 10px; margin-bottom: 20px; font-size: 15px; font-weight: 500; }
.alert-success { background: #D1FAE5; color: #065F46; }
.alert-danger { background: #FEE2E2; color: #991B1B; }
.alert-info { background: #E0F2FE; color: #075985; }

.modal-backdrop { position: fixed; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.5); display:flex; align-items:center; justify-content:center; }
.modal-content { background: #fff; border-radius: 12px; width: 600px; max-height: 90vh; overflow-y: auto; padding: 20px; }
.modal-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #e2e8f0; }
.close-btn { background: none; border: none; font-size: 24px; cursor: pointer; }
.hidden { display: none !important; }