:root{
  --ohse-yellow:#F8F000;
  --ohse-red:#E83830;
  --ohse-black:#000000;

  --bg:#FFFDE6;
  --card:#FFFFFF;
  --text:#121212;
  --muted:#5A5A5A;
  --border: rgba(0,0,0,.14);
  --shadow: 0 6px 18px rgba(0,0,0,.12);
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial;
  color:var(--text);
  background:var(--bg);
}

a{color:#0b57d0; text-decoration:none}
a:hover{text-decoration:underline}

.container{
  max-width:1100px;
  margin:18px auto;
  padding:0 14px;
}

.site-header{
  background:var(--ohse-black);
  border-bottom:6px solid var(--ohse-yellow);
}
.header-inner{
  max-width:1100px;
  margin:0 auto;
  padding:10px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.logo-block{
  display:flex;
  align-items:center;
  gap:10px;
}
.logo-block img{height:60px; width:auto; display:block}
.brand-title{
  color:var(--ohse-yellow);
  font-weight:900;
  font-size:26px;
  letter-spacing:.3px;
  line-height:1.05;
}
.user-block{
  color:var(--ohse-yellow);
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:700;
}
.user-block .role{
  font-weight:800;
  padding:4px 10px;
  border:2px solid var(--ohse-yellow);
  border-radius:999px;
}

.nav{
  background:#111;
  border-bottom:2px solid rgba(248,240,0,.35);
}
.nav-inner{
  max-width:1100px;
  margin:0 auto;
  padding:8px 14px;
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}
.nav a{
  color:var(--ohse-yellow);
  padding:6px 10px;
  border-radius:10px;
  border:1px solid rgba(248,240,0,.25);
}
.nav a:hover{background:rgba(248,240,0,.12); text-decoration:none}
.nav a.active{background:rgba(248,240,0,.18); border-color:rgba(248,240,0,.55)}

.card{
  background:var(--card);
  border:2px solid rgba(248,240,0,.55);
  border-radius:16px;
  box-shadow:var(--shadow);
  padding:14px;
}

.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
@media (max-width: 980px){ .grid{grid-template-columns: repeat(2,1fr);} }
@media (max-width: 640px){ .grid{grid-template-columns: 1fr;} }

.h1{font-size:26px; font-weight:900; margin:10px 0 14px}
.h2{font-size:18px; font-weight:900; margin:0 0 8px}
.muted{color:var(--muted)}

.badge{
  display:inline-block;
  padding:4px 10px;
  border-radius:999px;
  font-weight:900;
  font-size:12px;
  border:2px solid #000;
}
.badge.active{background:var(--ohse-yellow)}
.badge.complete{background:#000;color:var(--ohse-yellow); border-color:var(--ohse-yellow)}

.btn{
  display:inline-block;
  padding:9px 12px;
  border-radius:12px;
  font-weight:900;
  border:2px solid #000;
  background:#fff;
  color:#000;
  cursor:pointer;
}
.btn-primary{
  background:var(--ohse-red);
  color:var(--ohse-yellow);
  border-color:var(--ohse-yellow);
}
.btn-danger{
  background:#000;
  color:var(--ohse-yellow);
  border-color:var(--ohse-yellow);
}
.btn:disabled{opacity:.55; cursor:not-allowed}

.table{
  width:100%;
  border-collapse:collapse;
  background:#fff;
  border:2px solid rgba(0,0,0,.12);
  border-radius:12px;
  overflow:hidden;
}
.table th,.table td{
  padding:10px 10px;
  border-bottom:1px solid rgba(0,0,0,.08);
  text-align:left;
  vertical-align:top;
}
.table th{
  background:rgba(248,240,0,.18);
  font-weight:900;
}
.row-actions{display:flex; gap:8px; flex-wrap:wrap}

.form-row{display:grid; grid-template-columns: 1fr 1fr; gap:12px}
@media (max-width: 640px){ .form-row{grid-template-columns:1fr} }

label{display:block; font-weight:900; margin:10px 0 6px}
input, select, textarea{
  width:100%;
  padding:10px;
  border-radius:12px;
  border:2px solid rgba(0,0,0,.18);
  background:#fff;
}
textarea{min-height:90px}
.small{font-size:12px}

.alert{
  padding:10px 12px;
  border-radius:14px;
  border:2px solid #000;
  margin:10px 0;
  font-weight:800;
}
.alert.ok{background:rgba(248,240,0,.25)}
.alert.err{background:rgba(232,56,48,.16); border-color:var(--ohse-red)}

.kpis{display:flex; gap:12px; flex-wrap:wrap}
.kpi{
  background:#fff;
  border:2px solid rgba(248,240,0,.55);
  border-radius:16px;
  padding:10px 12px;
  box-shadow:var(--shadow);
  min-width:170px;
}
.kpi .v{font-size:22px; font-weight:950}
.kpi .l{color:var(--muted); font-weight:800}
