:root {
    --orange: #ff7a00;
    --orange-dark: #e56a00;
    --orange-light: #fff1e3;
    --white: #ffffff;
    --text: #333333;
    --muted: #777777;
    --border: #f0d9c4;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: "Segoe UI", Arial, sans-serif; background: #fffaf5; color: var(--text); }
a { text-decoration: none; color: inherit; }

/* Layout */
.layout { display: flex; min-height: 100vh; }
.sidebar { width: 260px; background: #151d33; color: #cfd6e4; display: flex; flex-direction: column; position: fixed; top: 0; bottom: 0; left: 0; overflow-y: auto; }
.sidebar .brand { padding: 22px 20px; color: var(--white); font-size: 20px; font-weight: 800; }
.sidebar ul { list-style: none; padding: 0 14px; margin-top: 10px; flex: 1; }
.sidebar li a { display: block; padding: 12px 14px; margin-bottom: 4px; border-radius: 10px; color: #cfd6e4; font-size: 15px; font-weight: 500; }
.sidebar li a:hover { background: #1f2a47; color: var(--white); }
.sidebar li a.active { background: #e5762f; color: var(--white); font-weight: 700; }
.sidebar .logout { margin: 18px 16px; padding-top: 14px; border-top: 1px solid #28324d; }
.sidebar .logout a { color: #ff8b6b; font-weight: 600; }

.main { margin-left: 260px; flex: 1; }
.topbar { background: var(--white); padding: 16px 28px; display: flex; justify-content: space-between; align-items: center; border-bottom: 3px solid var(--orange); }
.topbar h1 { font-size: 22px; color: var(--orange); }
.topbar .user { color: var(--muted); font-size: 14px; }
.content { padding: 28px; }

/* Cards */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin-bottom: 26px; }
.stat { background: var(--white); border-left: 6px solid var(--orange); border-radius: 8px; padding: 20px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.stat .label { color: var(--muted); font-size: 13px; text-transform: uppercase; }
.stat .value { font-size: 28px; font-weight: 700; color: var(--orange); margin-top: 6px; }
.card { background: var(--white); border-radius: 8px; padding: 22px; box-shadow: 0 2px 8px rgba(0,0,0,.06); margin-bottom: 24px; }
.card h2 { font-size: 17px; color: var(--orange); margin-bottom: 16px; border-bottom: 1px solid var(--border); padding-bottom: 10px; }

/* Tables */
.toolbar { display: flex; justify-content: space-between; margin-bottom: 14px; gap: 10px; flex-wrap: wrap; }
table { width: 100%; border-collapse: collapse; background: var(--white); }
th { background: var(--orange); color: var(--white); text-align: left; padding: 12px; font-size: 14px; }
td { padding: 12px; border-bottom: 1px solid var(--border); font-size: 14px; }
tr:hover td { background: var(--orange-light); }

/* Buttons / forms */
.btn { display: inline-block; background: var(--orange); color: var(--white); border: none; padding: 10px 20px; border-radius: 5px; cursor: pointer; font-size: 14px; }
.btn:hover { background: var(--orange-dark); }
.btn-outline { background: var(--white); color: var(--orange); border: 1px solid var(--orange); }
.btn-outline:hover { background: var(--orange-light); }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.form-group label { display: block; font-size: 13px; margin-bottom: 6px; color: var(--muted); }
.form-group input, .form-group select, .form-group textarea, .search {
    width: 100%; padding: 10px; border: 1px solid var(--border); border-radius: 5px; font-size: 14px; background: var(--white);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus, .search:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 2px var(--orange-light); }
.search { width: 260px; }
.actions { margin-top: 22px; display: flex; gap: 10px; }

/* Badges */
.badge { padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; }
.badge.pending { background: var(--orange-light); color: var(--orange-dark); }
.badge.approved { background: #e6f6e9; color: #2e7d32; }
.badge.rejected { background: #fdeaea; color: #c62828; }

/* Details */
.details { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.details .item span { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; }
.details .item strong { font-size: 16px; }

/* Login */
.login-body { background: linear-gradient(135deg, var(--orange) 50%, var(--white) 50%); min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.login-box { background: var(--white); width: 380px; padding: 36px; border-radius: 10px; box-shadow: 0 8px 30px rgba(0,0,0,.2); border-top: 6px solid var(--orange); }
.login-box h2 { color: var(--orange); text-align: center; margin-bottom: 4px; }
.login-box p.sub { text-align: center; color: var(--muted); margin-bottom: 24px; font-size: 14px; }
.login-box .form-group { margin-bottom: 16px; }
.login-box .btn { width: 100%; padding: 12px; }
.error { background: #fdeaea; color: #c62828; padding: 8px 12px; border-radius: 5px; margin-bottom: 14px; font-size: 13px; }








/* only budget-table specific styles; layout/card/topbar come from style.css */
table.budget-table { width: 100%; border-collapse: collapse; font-size: 13px; }
table.budget-table th, table.budget-table td { border: 1px solid #333; padding: 6px 8px; }
table.budget-table thead tr { background: #12324a; color: #fff; font-weight: bold; text-align: center; }
table.budget-table thead th { color: #fff; }

.part-row  td { background: #f7e6d9; font-weight: bold; }
.acct-row  td { background: #e8f5ff; font-weight: bold; }
.cat-row   td { background: #f4f4f4; font-weight: bold; }
.total-row td { background: #e9e2ee; font-weight: bold; border-top: 2px solid #000; }

.num     { text-align: right; }
.indent1 { padding-left: 12px !important; }
.indent2 { padding-left: 28px !important; }
.muted   { color: #777; }

table.budget-table th:nth-child(1), table.budget-table td:nth-child(1) { width: 32%; }
table.budget-table th:nth-child(2), table.budget-table td:nth-child(2),
table.budget-table th:nth-child(3), table.budget-table td:nth-child(3) { width: 10%; }
table.budget-table th:nth-child(n+4), table.budget-table td:nth-child(n+4) { width: 12%; }








/* ---------- Approver Details ---------- */
.approver-card { background:#fff; border:1px solid #e5e7eb;  border-radius: 10px; padding:8px 12px; margin-top:20px; }
.approver-title { display:flex; align-items:center; gap:8px; padding-bottom:14px; border-bottom:1px solid #e5e7eb; margin-bottom:22px; }
.approver-title .bar { width:6px; height:36px; background:#ea8335; border-radius:4px; }
.approver-title h3 { margin:0; font-size:22px; font-weight:200; color:#2b2b2b; }
.approver-card textarea { width:100%; min-height:110px; padding:16px 20px; border:1px solid #d4d7de; border-radius:16px; font-size:16px; font-family:inherit; resize:vertical; box-sizing:border-box; }
.approver-card textarea:focus { outline:none; border-color:#ea8335; }
.approver-actions { display:flex; justify-content:center; gap:10px; margin-top:8px; flex-wrap:wrap; }
.approver-actions button { display:inline-flex; align-items:center; justify-content:center; gap:12px; min-width:6px; padding:16px 28px; border-radius:10px; font-size:15px; font-weight:100; cursor:pointer; border:2px solid #ea8335; }
.btn-approve { background:#ea8335; color:#fff; }
.btn-reject { background:#fff; color:#ea8335; }

/* ---------- Confirmation popup ---------- */
.modal-overlay { display:none; position:fixed; inset:0; background:rgba(0,0,0,.45); z-index:1000; align-items:center; justify-content:center; }
.modal-overlay.show { display:flex; }
.modal-box { background:#fff; border-radius:10px; padding:32px; width:420px; max-width:90%; text-align:center; box-shadow:0 10px 40px rgba(0,0,0,.25); }
.modal-box h4 { margin:0 0 10px; font-size:22px; color:#2b2b2b; }
.modal-box p { margin:0 0 24px; font-size:16px; color:#555; }
.modal-actions { display:flex; gap:14px; justify-content:center; }
.modal-actions button { min-width:130px; padding:12px 20px; border-radius:10px; font-size:16px; font-weight:700; cursor:pointer; border:2px solid #ea8335; }
.modal-yes { background:#ea8335; color:#fff; }
.modal-no { background:#fff; color:#ea8335; }
.modal-yes:disabled { opacity:.6; cursor:not-allowed; }











