
:root{
  --bg:#050606;
  --panel:#0d0f10;
  --panel2:#111314;
  --gold:#e5a91a;
  --gold2:#f2bb33;
  --gold-dim:#7b5a18;
  --line:#6f5117;
  --text:#f2f2ed;
  --muted:#a3a5a2;
  --green:#35c969;
  --red:#d84c45;
  --blue:#65a7ff;
}
*{box-sizing:border-box}
html,body{margin:0;background:#040505;color:var(--text);font-family:Arial,Helvetica,sans-serif}
body{
  background:
    radial-gradient(circle at 70% 0,rgba(229,169,26,.05),transparent 26%),
    linear-gradient(#030404,#080909);
}
a{color:inherit;text-decoration:none}
button,input,textarea,select{font:inherit}
button{cursor:pointer}
.page{
  width:min(1440px,100%);
  min-height:100vh;
  margin:0 auto;
  background:
    linear-gradient(rgba(255,255,255,.008),rgba(255,255,255,.008)),
    repeating-linear-gradient(0deg,rgba(255,255,255,.012) 0 1px,transparent 1px 3px),
    #060707;
  border-left:1px solid #201b11;
  border-right:1px solid #201b11;
}
.topbar{
  height:100px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 24px 10px 18px;
  border-bottom:1px solid var(--line);
  background:#040505;
}
.brand-image{
  display:block;
  width:min(520px,52vw);
  height:74px;
  object-fit:contain;
  object-position:left center;
}
.top-right{display:flex;flex-direction:column;align-items:flex-end;gap:8px}
.command-badge{
  border:1px solid #976c17;
  color:var(--gold2);
  border-radius:6px;
  padding:10px 14px;
  font-family:Georgia,'Times New Roman',serif;
  font-weight:900;
  letter-spacing:.04em;
  background:#090a0a;
}
.company-name{font-weight:800;letter-spacing:.04em}
.shell{display:grid;grid-template-columns:215px 1fr;min-height:calc(100vh - 100px)}
.sidebar{
  border-right:1px solid var(--line);
  background:#070808;
  padding:12px;
  display:flex;
  flex-direction:column;
}
.side-title{
  color:var(--gold2);
  font-family:Georgia,'Times New Roman',serif;
  font-weight:900;
  font-size:14px;
  letter-spacing:.03em;
  padding:10px 12px 12px;
  border-bottom:1px solid #4f3d18;
}
.nav{display:flex;align-items:center;gap:11px;padding:12px 10px;border:1px solid transparent;border-radius:4px;color:#e8e8e4;font-weight:800}
.nav:hover{background:#101212;border-color:#302817}
.nav.active{color:var(--gold2);background:linear-gradient(90deg,#3d2c0a,#17130a);border-color:#9a6c12}
.ico{width:22px;text-align:center;opacity:.95}
.help{
  margin-top:auto;
  border:1px solid #6e511b;
  border-radius:5px;
  padding:14px 10px;
  text-align:center;
  background:#0b0d0d;
}
.help h4{margin:0 0 6px;font-family:Georgia,serif;color:var(--gold2)}
.help p,.help small{color:#bbbdb9}
.content{padding:18px 22px 12px}
.title{
  font-family:Georgia,'Times New Roman',serif;
  font-size:38px;
  line-height:1;
  letter-spacing:.02em;
  margin:0;
  color:#f0f0ec;
  text-shadow:0 1px 0 #fff,0 2px 0 #777,0 4px 8px #000;
}
.subtitle{margin:7px 0 16px;color:var(--gold2);font-family:Georgia,serif;font-weight:900;letter-spacing:.04em}
.card{
  border:1px solid var(--line);
  border-radius:5px;
  background:linear-gradient(#111314,#0a0c0d);
}
.kpis{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}
.kpi{padding:16px;min-height:112px;display:flex;flex-direction:column;justify-content:space-between}
.kpi-head{display:flex;align-items:center;gap:10px;color:#ddd}
.kpi .num{font-family:Georgia,serif;font-size:28px;font-weight:900;text-align:center}
.kpi .hint{text-align:center;color:#ddd;font-size:12px}
.grid2{display:grid;grid-template-columns:1.25fr 1fr;gap:12px;margin-top:12px}
.section-card{padding:14px}
.section-head{display:flex;justify-content:space-between;align-items:center;color:var(--gold2);font-family:Georgia,serif;font-weight:900;border-bottom:1px solid #302617;padding-bottom:8px;margin-bottom:8px}
.table{width:100%;border-collapse:collapse}
.table th{color:#c8c8c3;font-size:11px;text-align:left;padding:8px;border-bottom:1px solid #302617}
.table td{padding:10px 8px;border-bottom:1px solid #232018}
.status{display:inline-block;padding:5px 8px;border-radius:4px;font-size:11px;font-weight:900;border:1px solid #46637b;color:#8fc8f3;background:#0a1a26}
.status.active{border-color:#347444;color:#7af09a;background:#0d2413}
.action-row{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0}
.btn{border-radius:4px;padding:12px 18px;font-family:Georgia,serif;font-weight:900;border:1px solid #795a1e;background:#0d0f10;color:#eee}
.btn.gold{background:linear-gradient(#eab333,#b97907);border-color:#f2bf42;color:#15100a}
.btn.green{background:linear-gradient(#1f6d37,#104322);border-color:#4fcf78}
.btn.red{background:linear-gradient(#7a231f,#3d1010);border-color:#db514b}
.btn.blue{background:#0d1c2a;border-color:#456f98;color:#a9d3ff}
.summary-box{padding:14px}
.summary-head{display:flex;justify-content:space-between;gap:12px;align-items:start}
.employee-name{font-family:Georgia,serif;font-size:27px;font-weight:900}
.summary-stats{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin-top:16px}
.stat{
  border:1px solid #393225;
  border-radius:4px;
  padding:10px;
  text-align:center;
  background:#0d0f0f;
}
.stat span{display:block;color:#bdbdb9;font-size:9px}
.stat b{display:block;font-family:Georgia,serif;font-size:20px;margin-top:4px}
.timesheet-grid{display:grid;grid-template-columns:1.35fr .65fr;gap:12px}
.note-panel{padding:13px}
.note-panel h3,.section-label{font-family:Georgia,serif;color:var(--gold2);margin:0 0 8px}
.note-panel textarea{width:100%;height:155px;resize:vertical;background:#090b0c;color:#eee;border:1px solid #66511e;border-radius:4px;padding:10px}
.profile-hero{display:flex;align-items:center;gap:18px;padding:14px}
.avatar{
  width:92px;height:92px;border-radius:50%;
  border:2px solid #9a6e1b;
  display:grid;place-items:center;
  font-family:Georgia,serif;font-size:40px;font-weight:900;color:#e0a91f;
  background:radial-gradient(circle,#1c1c1c,#080909 70%);
}
.tabs{display:flex;border:1px solid var(--line);margin:10px 0 12px;border-radius:4px;overflow:hidden}
.tab{flex:1;text-align:center;padding:10px;border-right:1px solid #4d3b18;font-family:Georgia,serif;font-size:12px}
.tab:last-child{border-right:0}
.tab.active{color:var(--gold2);background:#151108}
.profile-grid{display:grid;grid-template-columns:1.25fr .8fr .65fr;gap:12px}
.panel{padding:13px}
.panel h3{font-family:Georgia,serif;color:var(--gold2);margin:0 0 10px}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
label{display:block;font-size:11px;color:#c5c7c3;font-weight:700}
input,textarea,select{
  width:100%;margin-top:5px;padding:9px 10px;background:#0a0c0d;border:1px solid #3f392b;border-radius:4px;color:#eee
}
.span2{grid-column:1/-1}
.footer{
  margin-top:14px;border-top:1px solid #5e4618;
  min-height:42px;display:flex;align-items:center;justify-content:center;
  font-family:Georgia,serif;color:var(--gold2);letter-spacing:.18em;font-weight:900
}
@media(max-width:1000px){
  .kpis{grid-template-columns:repeat(2,1fr)}
  .grid2,.timesheet-grid,.profile-grid{grid-template-columns:1fr}
  .shell{grid-template-columns:190px 1fr}
}
@media(max-width:720px){
  .topbar{height:82px;padding:8px 10px}
  .brand-image{height:60px;width:58vw}
  .command-badge{display:none}
  .shell{grid-template-columns:1fr}
  .sidebar{flex-direction:row;overflow-x:auto;border-right:0;border-bottom:1px solid var(--line);padding:6px}
  .side-title,.help{display:none}
  .nav{min-width:max-content}
  .content{padding:14px}
  .kpis{grid-template-columns:1fr 1fr}
  .summary-stats{grid-template-columns:1fr 1fr}
  .form-grid{grid-template-columns:1fr}
  .span2{grid-column:auto}
  .title{font-size:30px}
}
