:root {
    --primary-color: #2b579a;
    --background-grey: #f4f6f9;
    --border-grey: #d2d6de;
    --text-dark: #333333;
    --light-blue-input: #e6f2ff;
    --success-green: #2eb82e;
    --excel-yellow: #ffeb3b;
    --excel-bg-light: #fffde7;
    --excel-border: #fbc02d;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, sans-serif;
    background-color: var(--background-grey);
    color: var(--text-dark);
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 1500px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

header {
    border-bottom: 3px solid var(--primary-color);
    margin-bottom: 25px;
    padding-bottom: 10px;
}

header h1 { margin: 0; color: var(--primary-color); }

section {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid var(--border-grey);
    border-radius: 6px;
    background-color: #fff;
}

h3 {
    margin-top: 0;
    color: #444;
    border-bottom: 1px dashed var(--border-grey);
    padding-bottom: 5px;
}

.flex-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.two-column-split { display: flex; gap: 30px; }
.form-column { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.border-left-divider { border-left: 2px solid #eee; padding-left: 30px; }
.column-title { margin: 0 0 10px 0; color: var(--primary-color); font-size: 16px; border-bottom: 1px solid #ddd; padding-bottom: 5px; }
.sub-section-title { margin: 10px 0 5px 0; color: #666; font-size: 13px; text-transform: uppercase; font-weight: bold; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 15px; }

.form-group { display: flex; flex-direction: column; }
.form-group label { font-size: 12px; font-weight: 600; margin-bottom: 4px; color: #555; }
.form-group input, .form-group select { padding: 8px; border: 1px solid var(--border-grey); border-radius: 4px; font-size: 13px; background-color: var(--light-blue-input); }

.checklists { background: #f8f9fa; padding: 10px; border-radius: 4px; }
.checklists label { font-size: 12px; font-weight: 500; cursor: pointer; display: block; margin-bottom: 4px; }
.overhead-toggle-row { display: flex; gap: 10px; background-color: #f1f7ff; padding: 10px; border-radius: 4px; }
.scrollable-tasks-panel { max-height: 250px; overflow-y: auto; border: 1px solid #eee; padding: 10px; border-radius: 4px; }

button { background-color: var(--primary-color); color: white; border: none; padding: 10px 20px; font-weight: bold; border-radius: 4px; cursor: pointer; }
button:hover { background-color: #1e3d6b; }
.btn-clear { background-color: #6c757d; font-size: 13px; padding: 6px 15px; }
.btn-delete { background-color: #dc3545; padding: 6px 10px; font-size: 12px; margin-left: 5px; }
.btn-delete:hover { background-color: #bd2130; }
.btn-view { background-color: #17a2b8; padding: 6px 10px; font-size: 12px; }
.btn-view:hover { background-color: #138496; }

.table-wrapper { overflow-x: auto; margin-top: 15px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
table th, table td { border: 1px solid var(--border-grey); padding: 10px; text-align: left; }
table th { background-color: var(--primary-color); color: white; }
table tr:nth-child(even) { background-color: #f9f9f9; }

/* Enhanced Dynamic Breakdown View / Drawer Drawer Style */
.breakdown-drawer-row td {
    background-color: #fffde7 !important;
    padding: 0 !important;
}

.drawer-inner-container {
    padding: 15px;
    border: 2px solid var(--excel-border);
    border-top: none;
    box-shadow: inset 0 3px 6px rgba(0,0,0,0.08);
}

.drawer-title {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #b78103;
    border-bottom: 1px solid #ffe082;
    padding-bottom: 4px;
}

.drawer-inputs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.drawer-inputs-grid .form-group input {
    background-color: #ffffff;
    border: 1px solid #ccc;
}

/* Dashboard Summary Module Layout CSS */
.grand-summary { background-color: var(--excel-bg-light); border: 2px solid var(--excel-border); }
.summary-layout { display: flex; flex-direction: column; gap: 25px; }
.summary-cards.primary-metrics { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 15px; }
.summary-cards .card { background: #fff; padding: 18px; border-radius: 6px; box-shadow: 0 2px 5px rgba(0,0,0,0.06); display: flex; justify-content: space-between; align-items: center; border: 1px solid #e0e0e0; }
.summary-cards .bg-total { background-color: #fff9c4; border: 1.5px solid var(--excel-border); }

.card-title { font-size: 14px; color: #222; font-weight: 700; }
.card-value { font-size: 22px; font-weight: 800; color: #111; }
.text-orange { color: #e65100; }
.status-profit { color: #1b5e20; }

.detailed-breakdown-panel { background-color: #ffffff; border: 1px solid #e0e0e0; border-radius: 6px; padding: 15px; }
.detailed-breakdown-panel h4 { margin: 0 0 12px 0; color: #444; font-size: 14px; border-bottom: 2px solid #ddd; padding-bottom: 5px; }
.breakdown-row { display: flex; justify-content: space-between; padding: 6px 12px; border-bottom: 1px solid #eeeeee; font-size: 13px; gap: 20px;}
.highlight-row { background-color: var(--excel-bg-light); font-weight: bold; border-left: 4px solid var(--excel-border); }
.erec-panel { max-height: 380px; overflow-y: auto; }