*{box-sizing:border-box}body{margin:0;background:#f5f7fb;color:#1b2735;font:15px system-ui,-apple-system,Segoe UI,sans-serif}header{background:#152d50;color:white;padding:12px max(18px,calc((100vw - 1100px)/2));display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px}header h2{margin:8px 0}nav{display:flex;flex-wrap:wrap;gap:16px}nav a{color:white;text-decoration:none}main{max-width:1100px;margin:28px auto;padding:0 16px}h1{font-size:27px}.toolbar{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:25px}.inline{display:inline-flex;gap:8px;align-items:center;flex-wrap:wrap}.panel,.cards article{background:white;border:1px solid #e0e6ee;border-radius:12px;padding:20px;margin:16px 0;box-shadow:0 2px 8px #14263b0a}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px}.cards article{margin:0}.cards h2{margin-bottom:0}input,select,textarea{font:inherit;border:1px solid #bcc9d9;border-radius:7px;padding:10px;max-width:100%;background:white}label{display:flex;flex-direction:column;gap:5px;font-weight:600}label input,label textarea,label select{width:100%;font-weight:400}button,.button{border:0;background:#155cc3;color:white;border-radius:7px;padding:11px 15px;cursor:pointer;text-decoration:none;display:inline-block;font:inherit}button:hover,.button:hover{background:#0e489b}.formgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;align-items:end}.stack{display:grid;gap:16px}.check{flex-direction:row;align-items:center}.check input{width:auto}.scroll{overflow-x:auto}table{border-collapse:collapse;width:100%}th,td{padding:11px;border-bottom:1px solid #e3e8ef;text-align:left;white-space:nowrap}th{background:#f0f4fa}.alert{background:#ffebeb;padding:12px;border-radius:8px}.notice{background:#e9f6e9;padding:12px;border-radius:8px}footer{text-align:center;color:#68798b;padding:25px}.login{max-width:420px;background:white;margin:10vh auto;padding:30px;border-radius:12px}.login form{display:grid;gap:15px}@media(max-width:650px){header{display:block}nav{margin:12px 0}.toolbar form{width:100%}.toolbar select,.toolbar input{flex:1}}

/* Reference-inspired blue government-portal layout; independent Digital Khata branding */
body{background:#eef2f8;color:#172b46;font-family:Arial,Helvetica,sans-serif}
.portal-header{display:block;max-width:1320px;margin:0 auto;padding:0;background:#fff;color:#163a6e;border:1px solid #a5b8d3;box-shadow:0 4px 22px #1b3f6816}
.portal-masthead{min-height:148px;position:relative;display:grid;grid-template-columns:260px 1fr 130px;align-items:center;gap:15px;padding:15px 24px;background:linear-gradient(110deg,#fff 72%,#f1f6fd)}
.portal-brand{display:flex;align-items:center;min-width:0;max-width:260px;background:#213b88;color:#fff;min-height:74px}
.brand-symbol{font-size:27px;font-weight:900;letter-spacing:-2px;background:#fff;color:#ec7e19;padding:14px 10px;border-radius:0 0 40px 0;position:relative}
.brand-symbol span{font-size:18px;color:#2369c5;vertical-align:top}
.brand-copy{padding:8px 10px}.brand-copy strong{font-size:13px;letter-spacing:.5px}.brand-copy small{display:block;font-size:10px;line-height:1.5;margin-top:5px}
.masthead-title{text-align:center}.masthead-title h1{font-size:clamp(23px,3vw,40px);color:#1661bc;margin:0;font-weight:800;text-shadow:2px 3px 3px #b7c8de}.masthead-title p{font-size:14px;color:#6c7b90;margin:8px 0 0}
.masthead-art{display:flex;flex-wrap:wrap;gap:5px;justify-content:center;transform:rotate(-8deg)}.masthead-art span{display:grid;place-items:center;width:39px;height:37px;border-radius:7px;background:#1e73c9;color:white;font-weight:bold;font-size:24px;box-shadow:3px 4px #d2e1f4}.masthead-art span:nth-child(2){background:#e59d25}.masthead-art span:nth-child(3){background:#15a38a}
.portal-nav{display:flex;flex-wrap:wrap;gap:0;background:#1664c5;border-top:4px double #fff;border-bottom:1px solid #0e499c;padding:0 4px}
.portal-nav a{padding:14px 13px;border-right:1px solid #ffffffa0;color:#fff;text-decoration:none;font-size:14px;font-weight:700}.portal-nav a:hover,.portal-nav a.active{background:#0c4694}
.portal-welcome{display:flex;justify-content:space-between;gap:12px;padding:9px 14px;background:#fff;border-bottom:1px solid #9caec5;font-size:16px;font-weight:700;color:#123c98}.portal-welcome strong{color:#248944}.welcome-business{color:#164d92}
.portal-info{min-height:150px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 22px;background:linear-gradient(130deg,#fff 0%,#fff 64%,#79a8e4 64.2%,#79a8e4 100%);border-bottom:2px solid #4a77b1}
.portal-info>div:first-child{max-width:65%}.portal-info strong{color:#a93283;font-size:16px}.portal-info p{margin:10px 0;color:#4c6481;font-weight:600}.portal-info .info-emphasis{color:#b76612}.portal-info-title{font-size:clamp(20px,2.5vw,34px);line-height:1.35;font-weight:800;color:white;text-align:right;text-shadow:2px 2px 2px #14529c}.portal-info-title span{font-size:.85em}
main{max-width:1290px;margin:0 auto;padding:24px 18px 45px;background:#fff;min-height:360px;border-left:1px solid #d5deeb;border-right:1px solid #d5deeb}
.panel,.cards article{border-radius:6px;box-shadow:0 2px 9px #1d4c8110;border-color:#cbd9e9}.panel h2,.panel h3{color:#1554a4}th{background:#e4efff;color:#174780}tr:hover td{background:#f7faff}button,.button{background:#1664c5;border-radius:4px}button:hover,.button:hover{background:#0d4896}input:focus,select:focus,textarea:focus{outline:2px solid #91baff;outline-offset:1px}.login{margin:10vh auto;border-top:5px solid #1664c5}
.invoice-actions a{border-radius:4px!important;background:#e6effc!important;color:#1453a3!important;font-weight:700}
@media(max-width:760px){.portal-masthead{grid-template-columns:1fr;justify-items:center;padding:15px;gap:15px}.masthead-art{display:none}.portal-brand{justify-self:start}.masthead-title h1{font-size:25px}.portal-nav a{flex:1 1 auto;text-align:center;padding:12px 8px;font-size:13px}.portal-info{background:linear-gradient(125deg,#fff 0%,#fff 72%,#79a8e4 72%);padding:16px}.portal-info>div:first-child{max-width:80%}.portal-info-title{display:none}.portal-welcome{font-size:13px;flex-wrap:wrap}main{padding:16px 12px}.portal-info strong{font-size:14px}}

/* Modern dark sidebar, matching supplied navigation reference */
body:has(.dk-sidebar){background:#f3f6fb!important;color:#17253c!important}
.dk-sidebar{position:fixed;left:0;top:0;bottom:0;width:266px;background:#0e1929;color:#8db5ed;overflow-y:auto;z-index:1000;padding:18px 14px;box-sizing:border-box;font-family:Arial,sans-serif}
.dk-sidebar .dk-logo{color:#fff;font-size:19px;padding:9px 12px 23px;letter-spacing:.3px}.dk-logo small{display:block;color:#8ca4c8;font-size:11px;margin:5px 0 0 28px}
.dk-section{color:#4585d8;font-size:14px;font-weight:700;letter-spacing:.5px;margin:19px 10px 8px}
.dk-sidebar a{display:block;color:#8fb8f1;text-decoration:none;font-size:16px;padding:12px 14px;margin:2px 0;border-radius:6px;line-height:1.2}
.dk-sidebar a:hover,.dk-sidebar a:focus{background:#1c3154;color:#fff}.dk-sidebar a[href*="invoices.php"]{background:#1c3154;color:white;font-weight:700}
.dk-work{margin-left:266px;min-height:100vh}.dk-work main{max-width:1200px;margin:0 auto;padding:22px}.dk-work .portal-header{background:white}.dk-work .portal-masthead{min-height:110px}.dk-work .portal-nav{display:none}
.dk-work .portal-info{display:none}.dk-work .portal-welcome{padding:9px 20px}.dk-work .panel{background:#fff;border-radius:10px;box-shadow:0 2px 10px #102a4810}
@media(max-width:850px){.dk-sidebar{position:relative;width:auto;height:auto;max-height:340px}.dk-work{margin-left:0}.dk-sidebar a{display:inline-block;font-size:13px;padding:8px}.dk-section{margin:9px 5px}.dk-work .portal-masthead{min-height:80px}}
