@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--ink:#172334;--muted:#718096;--line:#e7ebf1;--bg:#f5f7fb;--navy:#101c2e;--blue:#3569e8;--blue2:#eaf0ff;--green:#16866b;--amber:#a86a0b;--red:#bd4545;--white:#fff}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:'DM Sans',sans-serif;font-size:14px}.app-shell{display:flex;min-height:100vh}.sidebar{width:244px;background:var(--navy);color:#d7dfec;padding:25px 15px 16px;display:flex;flex-direction:column;flex-shrink:0}.brand{display:flex;align-items:center;gap:11px;padding:0 10px 27px;color:#fff;letter-spacing:.8px}.brand-mark{width:39px;height:39px;border-radius:12px;background:#f4c94a;color:#122039;display:grid;place-items:center;font:800 25px Manrope}.brand b{display:block;font:800 15px Manrope;letter-spacing:1.3px}.brand small{display:block;font-size:9px;letter-spacing:2.3px;color:#9ba9bf;margin-top:3px}.workspace{font-size:10px;letter-spacing:1.6px;color:#8b9ab1;padding:0 12px 13px}.workspace span{float:right;color:#f2cf59;letter-spacing:.7px}.nav-item{border:0;background:transparent;color:#b8c4d7;width:100%;padding:12px 13px;border-radius:9px;text-align:left;display:flex;align-items:center;gap:13px;margin:2px 0;cursor:pointer;font:500 13px 'DM Sans'}.nav-item span{width:18px;font-size:18px;text-align:center;color:#8fa5c4}.nav-item:hover{background:#1a2b44;color:#fff}.nav-item.active{background:#263b5c;color:#fff;box-shadow:inset 3px 0 #f4c94a}.nav-item.active span{color:#f4c94a}.sidebar-bottom{margin-top:auto;border-top:1px solid #2b3b52;padding:19px 7px 4px;display:flex;align-items:center;gap:10px;font-size:12px}.avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#dce6ff;color:#254eae;font-weight:700}.sidebar-bottom small{display:block;color:#8ea0b8;font-size:11px;margin-top:3px}.dot{width:7px;height:7px;border-radius:50%;background:#42d3a5;margin-left:auto}.main{flex:1;min-width:0;padding:28px 34px 18px;max-width:1700px;margin:0 auto}.topbar{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:22px}.eyebrow{font-size:10px;letter-spacing:1.5px;color:#8a96a9;font-weight:700;margin-bottom:7px}.eyebrow span{color:#53657d}h1{font:800 27px Manrope;margin:0;letter-spacing:-.7px}.top-actions{display:flex;align-items:center;gap:9px}.demo-pill{font-size:10px;color:#966b09;background:#fff5d7;border:1px solid #f3e5b7;border-radius:30px;padding:8px 11px;font-weight:700;letter-spacing:.5px}.btn{border:1px solid transparent;border-radius:8px;padding:10px 14px;font:600 12px 'DM Sans';cursor:pointer;white-space:nowrap}.btn-primary{background:var(--blue);color:white;box-shadow:0 3px 8px #3569e826}.btn-primary:hover{background:#2859d1}.btn-light{background:white;border-color:#dfe5ed;color:#43536a}.notice{padding:11px 14px;background:#fff9e9;border:1px solid #f3e7bf;border-radius:9px;color:#7d641f;font-size:12px;margin-bottom:23px}.notice strong{color:#614b0d}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:20px}.stat,.panel,.table-panel{background:#fff;border:1px solid var(--line);border-radius:12px}.stat{padding:19px 19px 17px;position:relative;overflow:hidden}.stat-label{color:#78869a;font-size:12px}.stat-value{font:800 29px Manrope;letter-spacing:-.8px;margin:9px 0 8px}.stat-foot{font-size:11px;color:#8794a7}.stat-icon{position:absolute;right:17px;top:18px;width:35px;height:35px;display:grid;place-items:center;background:#edf2ff;color:#426be0;border-radius:10px;font-size:17px}.green{color:var(--green)}.amber{color:var(--amber)}.red{color:var(--red)}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,1fr);gap:18px;margin-bottom:20px}.panel{padding:20px}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.panel h2,.table-title{font:700 15px Manrope;margin:0}.muted{color:var(--muted);font-size:11px}.link-btn{border:0;background:transparent;color:var(--blue);font-weight:700;font-size:11px;cursor:pointer}.activity{display:flex;gap:12px;padding:12px 0;border-bottom:1px solid #edf0f4}.activity:last-child{border:0}.activity-icon{width:34px;height:34px;flex-shrink:0;border-radius:10px;background:#eef2ff;color:#4269d6;display:grid;place-items:center}.activity b{display:block;font-size:12px;font-weight:600;margin:2px 0 5px}.activity small{color:#8490a2;font-size:11px}.bar-row{display:grid;grid-template-columns:95px 1fr 26px;gap:10px;align-items:center;margin:16px 0;font-size:11px;color:#65748a}.bar{height:7px;border-radius:10px;background:#edf0f5;overflow:hidden}.bar span{display:block;height:100%;background:#5d7feb;border-radius:10px}.bar-row strong{font-size:11px;color:#25364b;text-align:right}.quick-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.quick{border:1px solid #e8edf5;border-radius:10px;background:#fff;text-align:left;padding:14px;cursor:pointer}.quick:hover{border-color:#9bb3fb;background:#f9faff}.quick .qicon{font-size:19px;color:#416ce2;margin-bottom:10px}.quick b{display:block;font-size:12px;margin-bottom:4px}.quick small{font-size:10px;color:#8793a4}.table-panel{overflow:hidden;margin-bottom:20px}.table-toolbar{padding:18px 20px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line)}.table-actions{display:flex;gap:8px;align-items:center}.search{border:1px solid #e1e6ee;border-radius:7px;padding:9px 11px;font:12px 'DM Sans';outline:none;min-width:190px}.search:focus,input:focus,select:focus{border-color:#7191f4;box-shadow:0 0 0 3px #3569e817;outline:none}table{border-collapse:collapse;width:100%;text-align:left}th{font-size:10px;color:#8a96a8;letter-spacing:.7px;font-weight:700;background:#fbfcfe;padding:12px 20px;white-space:nowrap}td{padding:14px 20px;border-top:1px solid #edf0f4;font-size:12px;color:#46566b;vertical-align:middle}td b{color:#1e2b3d;font-weight:600}.person{display:flex;align-items:center;gap:10px}.mini-avatar{width:32px;height:32px;border-radius:9px;background:#eaf0ff;color:#3b60c7;display:grid;place-items:center;font-size:11px;font-weight:700;flex-shrink:0}.person small{display:block;font-size:10px;color:#8a96a8;margin-top:4px}.badge{display:inline-flex;padding:5px 8px;border-radius:20px;font-size:10px;font-weight:700;white-space:nowrap;background:#e8f8f1;color:#187b5d}.badge.pending{background:#fff3d8;color:#a36c0a}.badge.neutral{background:#eef1f5;color:#66758a}.badge.danger{background:#ffebeb;color:#b34242}.badge.blue{background:#eaf0ff;color:#3c62c7}.row-actions{border:0;background:transparent;color:#718096;cursor:pointer;font-size:18px}.section-intro{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:18px}.section-intro p{margin:7px 0 0;color:#7a8799;font-size:12px;line-height:1.5}.cards-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-bottom:20px}.info-card{background:white;border:1px solid var(--line);border-radius:12px;padding:19px}.info-card .card-icon{font-size:21px;color:#426de1;margin-bottom:15px}.info-card h3{font:700 14px Manrope;margin:0 0 7px}.info-card p{font-size:11px;color:#8490a2;line-height:1.6;margin:0 0 14px}.progress{height:6px;background:#edf0f5;border-radius:9px;overflow:hidden;margin:10px 0}.progress span{height:100%;display:block;background:#5d7feb}.check-list{list-style:none;padding:0;margin:0}.check-list li{display:flex;align-items:center;gap:10px;padding:13px 0;border-bottom:1px solid #edf0f4;font-size:12px}.check-list li:last-child{border:0}.check-list input{accent-color:#3569e8}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.field{display:flex;flex-direction:column;gap:7px;font-size:11px;color:#67758a;font-weight:600}.field input,.field select,.field textarea{width:100%;border:1px solid #dfe5ed;border-radius:7px;padding:10px 11px;background:#fff;color:#25364b;font:12px 'DM Sans'}.field textarea{min-height:80px;resize:vertical}.empty{padding:36px;text-align:center;color:#8b96a7}.empty b{display:block;color:#44546a;margin-bottom:6px}.modal-backdrop{position:fixed;inset:0;background:#101c2e8c;display:grid;place-items:center;padding:20px;z-index:10}.hidden{display:none!important}.modal{width:min(600px,100%);background:white;border-radius:15px;box-shadow:0 25px 70px #0a162a40;padding:24px}.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.modal-head h2{font:800 20px Manrope;margin:0}.icon-btn{border:0;background:#f1f4f8;border-radius:8px;width:31px;height:31px;font-size:22px;cursor:pointer;color:#5c687a}.modal form label{display:flex;flex-direction:column;gap:7px;font-size:11px;color:#67758a;font-weight:600;margin-bottom:13px}.modal input,.modal select{border:1px solid #dfe5ed;border-radius:7px;padding:10px 11px;font:12px 'DM Sans';color:#25364b;background:white}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:12px}.modal-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:20px}footer{display:flex;justify-content:space-between;gap:20px;color:#8490a2;font-size:10px;padding:10px 2px 0}footer span{text-align:right}
@media(max-width:1050px){.sidebar{width:210px}.main{padding:24px 20px}.stats{grid-template-columns:repeat(2,1fr)}.dashboard-grid{grid-template-columns:1fr}.cards-3{grid-template-columns:repeat(2,1fr)}}
@media(max-width:720px){.app-shell{display:block}.sidebar{width:100%;padding:12px;display:block}.brand{padding:0 5px 12px}.workspace,.sidebar-bottom{display:none}#nav{display:flex;overflow:auto;gap:5px;padding-bottom:3px}.nav-item{width:auto;white-space:nowrap;padding:9px 11px;margin:0;font-size:11px}.nav-item span{display:none}.main{padding:20px 13px}.topbar{align-items:flex-start;flex-direction:column}.top-actions{flex-wrap:wrap}.stats{gap:9px}.stat{padding:14px}.stat-value{font-size:24px}.stat-icon{display:none}.cards-3{grid-template-columns:1fr}.table-toolbar{align-items:flex-start;flex-direction:column}.table-actions{width:100%;flex-wrap:wrap}.search{min-width:0;flex:1}table{min-width:760px}.table-panel{overflow:auto}.form-grid,.two-col{grid-template-columns:1fr}footer{flex-direction:column}footer span{text-align:left}}
\n.table-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.danger-action{color:#b34242;border-color:#f0d2d2}.hidden{display:none!important}\n

/* Usability refinements — preserve the original Credeksa palette and component styling. */
:focus-visible{outline:3px solid #f4c94a;outline-offset:2px}
button:disabled{opacity:.55;cursor:not-allowed}
.modal-backdrop{overflow-y:auto;align-items:start}
.modal{max-height:calc(100vh - 40px);overflow-y:auto;margin:auto}
#nav{min-width:0}
.table-panel table{background:#fff}
@media(max-width:720px){
  .sidebar{position:sticky;top:0;z-index:5;box-shadow:0 3px 14px #0b172610}
  #nav{scrollbar-width:thin;overscroll-behavior-x:contain}
  .nav-item{flex:0 0 auto}
  .main{width:100%;overflow:hidden}
  .top-actions{width:100%;gap:8px}
  .top-actions .btn{flex:0 0 auto}
  .demo-pill{margin-right:auto}
  .notice{line-height:1.55}
  .stat-value{overflow-wrap:anywhere}
  .dashboard-grid{grid-template-columns:minmax(0,1fr)}
  .panel{padding:16px}
  .section-intro{flex-direction:column}
  .section-intro .btn{align-self:flex-start}
  .modal-backdrop{padding:10px}
  .modal{padding:18px;max-height:calc(100vh - 20px)}
}
@media(max-width:420px){
  h1{font-size:23px}
  .stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .stat-label{font-size:11px}
  .stat-value{font-size:22px}
  .quick-grid{grid-template-columns:1fr}
  .top-actions .btn{padding:9px 10px;font-size:11px}
  .table-toolbar{padding:14px}
  td,th{padding-left:12px;padding-right:12px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}
@media print{
  .sidebar,.topbar,.notice,footer,.no-print{display:none!important}
  .main{padding:0;max-width:none}
  body{background:#fff}
  .panel,.table-panel,.stat{box-shadow:none;break-inside:avoid}
}
