*{box-sizing:border-box;}
:root{
  --soft-blue:#2f6ea5;
  --black:#17324d;
  --text:#102338;
  --muted:#4c6178;
  --border:#d9e4ef;
  --bg:#f3f7fb;
  --surface:#ffffff;
  --surface-2:#f8fbff;
  --card-shadow:0 16px 40px rgba(16,35,56,.10);
  --red:#c84141;
  --green:#1f8a52;
  --orange:#d48c2f;
  --purple:#5b5fc7;
}
body{
  margin:0;
  font-family:Arial,Helvetica,sans-serif;
  background:linear-gradient(180deg,#eef4fa 0%, #f7fbff 240px, var(--bg) 100%);
  color:var(--text);
  min-height:100vh;
}
a{color:inherit}

/* LOGIN */
.login-wrap{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:16px;}
.card{width:420px;max-width:100%;padding:28px;border-radius:24px;border:1px solid var(--border);box-shadow:var(--card-shadow);background:rgba(255,255,255,.96);backdrop-filter:blur(8px);}
h1{margin:0 0 6px 0;text-align:center;font-size:22px;color:var(--black);}
.subtitle{text-align:center;font-size:13px;margin-bottom:20px;color:var(--muted);}
label{font-size:13px;font-weight:900;display:block;margin-top:12px;color:var(--black);}
input{
  width:100%;height:40px;margin-top:6px;padding:0 12px;border-radius:10px;border:1px solid #ccc;
  font-size:14px;outline:none;background:#fff;
}
input:focus{border-color:var(--soft-blue);box-shadow:0 0 0 3px rgba(74,144,226,.18);}
.btn{
  width:100%;height:42px;margin-top:20px;background:var(--soft-blue);color:#fff;border:none;border-radius:10px;
  font-size:15px;font-weight:900;cursor:pointer;
}
.btn:hover{opacity:.92;}
.btn:disabled{opacity:.55;cursor:not-allowed;}


.btn-link{border:none;background:transparent;color:var(--soft-blue);cursor:pointer;font-size:13px;padding:6px 8px;border-radius:10px;}
.btn-link:hover{background:rgba(74,144,226,.10);}
.btn-sm{
  height:34px;padding:0 14px;border-radius:12px;font-size:12px;font-weight:900;border:none;cursor:pointer;color:#fff;
  background:linear-gradient(135deg,var(--soft-blue),#3c85c4);white-space:nowrap;box-shadow:0 8px 18px rgba(47,110,165,.18);
}
.btn-sm.black{background:var(--black);}
.btn-sm.gray{background:#666;}
.btn-sm.red{background:var(--red);}
.btn-sm.green{background:var(--green);}
.btn-sm.orange{background:var(--orange);}
.btn-sm.purple{background:var(--purple);}
.btn-sm:disabled{background:#bdbdbd;cursor:not-allowed;}

.error{
  margin-top:12px;color:var(--red);background:#fff1f1;padding:8px;border-radius:10px;font-size:13px;display:none;
  text-align:center;border:1px solid #ffd2d2;
}
.help{font-size:12px;color:#555;margin-top:6px;line-height:1.35;}

/* APP */
.app{display:none;min-height:100vh;}
.topbar{width:100%;border-bottom:1px solid rgba(217,228,239,.85);background:rgba(255,255,255,.9);backdrop-filter:blur(10px);position:sticky;top:0;z-index:20;}
.topbar-inner{
  max-width:1180px;margin:0 auto;padding:14px 18px;display:flex;align-items:center;justify-content:space-between;gap:14px;
}
.brand{display:flex;align-items:center;gap:12px;font-weight:900;color:var(--black);white-space:nowrap;min-width:0;}
.dot{display:none;}
.nav{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;}
.nav button{
  background:transparent;border:1px solid transparent;color:var(--black);padding:10px 14px;border-radius:14px;cursor:pointer;
  font-weight:900;font-size:14px;transition:.18s ease;
}
.nav button:hover{background:rgba(47,110,165,.08);border-color:rgba(47,110,165,.16);}
.nav button.active{border-color:rgba(47,110,165,.34);background:rgba(47,110,165,.10);box-shadow:inset 0 0 0 1px rgba(47,110,165,.06);}
.userbox{display:flex;align-items:center;gap:12px;white-space:nowrap;font-size:13px;color:var(--muted);padding:6px 10px;border:1px solid var(--border);border-radius:18px;background:rgba(255,255,255,.82);box-shadow:0 8px 22px rgba(16,35,56,.06);}
.logout-btn{height:36px;padding:0 14px;border-radius:12px;border:none;cursor:pointer;color:#fff;background:linear-gradient(135deg,var(--black),#274f76);font-weight:900;}

.notif-wrap{position:relative;}
.notif-btn{position:relative;height:34px;min-width:40px;padding:0 10px;border-radius:10px;border:1px solid var(--border);background:#fff;cursor:pointer;font-size:16px;}
.notif-badge{position:absolute;top:-6px;right:-6px;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:var(--red);color:#fff;font-size:11px;font-weight:900;display:flex;align-items:center;justify-content:center;}
.notif-dropdown{position:absolute;right:0;top:42px;width:360px;max-width:min(92vw,360px);background:#fff;border:1px solid var(--border);border-radius:14px;box-shadow:0 18px 42px rgba(0,0,0,.16);z-index:70;overflow:hidden;}
.notif-header{display:flex;align-items:center;justify-content:space-between;padding:12px 12px 10px;border-bottom:1px solid var(--border);font-weight:900;color:var(--black);}
.notif-link{border:none;background:transparent;color:var(--soft-blue);cursor:pointer;font-size:12px;font-weight:900;}
.notif-list{max-height:360px;overflow:auto;}
.notif-item{padding:12px;border-bottom:1px solid var(--border);cursor:pointer;background:#fff;}
.notif-item.unread{background:rgba(74,144,226,.08);}
.notif-item:last-child{border-bottom:none;}
.notif-item-title{font-size:13px;font-weight:900;color:var(--black);}
.notif-item-message{margin-top:4px;font-size:12px;line-height:1.35;color:#333;white-space:normal;}
.notif-item-time{margin-top:6px;font-size:11px;color:#666;}
.notif-empty{padding:18px 12px;font-size:13px;color:#666;text-align:center;}

.container{max-width:1100px;margin:0 auto;padding:18px 16px 32px;}
.panel{border:1px solid var(--border);border-radius:22px;padding:22px;background:linear-gradient(180deg,var(--surface) 0%, var(--surface-2) 100%);box-shadow:var(--card-shadow);}
.panel h2{margin:0 0 10px 0;font-size:18px;color:var(--black);}
.muted{color:var(--muted);font-size:14px;line-height:1.5;}

.primary-action{
  margin-top:14px;width:240px;max-width:100%;height:42px;border-radius:10px;border:none;cursor:pointer;
  font-weight:900;background:var(--soft-blue);color:#fff;font-size:14px;
}
.primary-action:disabled{opacity:.55;cursor:not-allowed;}

.toast{
  margin-top:12px;display:none;padding:10px 12px;border-radius:12px;border:1px solid rgba(74,144,226,.35);
  background:rgba(74,144,226,.08);color:var(--black);font-size:13px;
}

.grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px;}
.divider{margin:16px 0;border-top:1px solid var(--border);}
.two-cols{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px;}
.box{border:1px solid var(--border);border-radius:16px;padding:14px;background:rgba(255,255,255,.92);box-shadow:0 10px 24px rgba(16,35,56,.04);}
.box-title{font-weight:900;color:var(--black);margin-bottom:4px;}

.picker-wrap{position:relative;margin-top:6px;}
.picker-input{
  width:100%;height:40px;border-radius:10px;border:1px solid #ccc;padding:0 10px;font-size:14px;outline:none;background:#fff;
  cursor:pointer;display:flex;align-items:center;color:#111;
}
.picker-input:focus{border-color:var(--soft-blue);box-shadow:0 0 0 3px rgba(74,144,226,.18);}
.picker-input.placeholder{color:#666;}
.picker-dropdown{
  position:absolute;top:44px;left:0;right:0;background:#fff;border:1px solid var(--border);border-radius:12px;
  box-shadow:0 18px 42px rgba(0,0,0,.12);padding:10px;display:none;z-index:50;max-height:220px;overflow:auto;
}
.pick-row{display:flex;gap:10px;align-items:flex-start;padding:6px 6px;border-radius:10px;}
.pick-row:hover{background:rgba(0,0,0,.03);}
.pick-row input{width:auto;height:auto;margin:0;}
.pick-row span{font-size:13px;color:#111;line-height:1.25;}

.simple-table{width:100%;border-collapse:collapse;margin-top:10px;font-size:14px;}
.simple-table th,.simple-table td{border-bottom:1px solid var(--border);padding:10px 8px;text-align:left;vertical-align:top;}
.badge{display:inline-block;padding:4px 8px;border-radius:999px;font-size:12px;font-weight:900;background:rgba(74,144,226,.12);border:1px solid rgba(74,144,226,.35);white-space:nowrap;}
.badge.pending{background:rgba(74,144,226,.12);border-color:rgba(74,144,226,.35);}
.badge.rework{background:rgba(217,130,0,.16);border-color:rgba(217,130,0,.45);}
.badge.work{background:rgba(74,144,226,.18);border-color:rgba(74,144,226,.45);}
.badge.wait{background:rgba(120,120,120,.14);border-color:rgba(120,120,120,.40);}
.badge.done{background:rgba(0,0,0,.09);border-color:rgba(0,0,0,.22);}

.row-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center;}
.status-top{
  display:flex;gap:10px;flex-wrap:wrap;align-items:center;justify-content:space-between;margin-top:10px;
  padding-bottom:10px;border-bottom:1px solid var(--border);
}
.status-tabs{display:flex;gap:10px;flex-wrap:wrap;align-items:center;}
.status-tabs button{
  background:transparent;border:1px solid transparent;padding:8px 10px;border-radius:10px;cursor:pointer;font-weight:900;
  font-size:13px;color:var(--black);white-space:nowrap;
}
.status-tabs button.active{border-color:rgba(74,144,226,.55);background:rgba(74,144,226,.10);}
.count{display:inline-block;margin-left:6px;padding:2px 7px;border-radius:999px;font-size:12px;font-weight:900;border:1px solid rgba(0,0,0,.15);background:rgba(0,0,0,.04);}
.tools{display:flex;gap:10px;flex-wrap:wrap;align-items:center;}
.search{width:100%;max-width:100%;height:36px;border-radius:10px;border:1px solid #ccc;padding:0 10px;outline:none;font-size:13px;}
.search:focus{border-color:var(--soft-blue);box-shadow:0 0 0 3px rgba(74,144,226,.18);}

@media(max-width:720px){
  .topbar-inner{flex-direction:column;align-items:stretch;}
  .userbox{justify-content:space-between;}
  .nav{justify-content:space-between;}
  .nav button{flex:1;}
  .grid{grid-template-columns:1fr;}
  .two-cols{grid-template-columns:1fr;}
  .status-top{flex-direction:column;align-items:stretch;}
  .search{width:100%;}
}

/* ===== MODALS (fix: hide "Комментарий для доработки" until opened) ===== */
.modal-backdrop{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.35);
  display:none;
  align-items:flex-start;
  justify-content:center;
  padding:16px;
  z-index:9999;
  overflow:auto;
}
.modal{
  width:720px;
  max-width:100%;
  background:#fff;
  border-radius:16px;
  border:1px solid var(--border);
  box-shadow:0 18px 42px rgba(0,0,0,.18);
  padding:16px;
  margin-top:16px;
}
.modal h3{margin:0 0 10px 0;font-size:16px;color:var(--black);}
.modal textarea{
  width:100%;
  min-height:110px;
  resize:vertical;
  border-radius:12px;
  border:1px solid #ccc;
  padding:10px;
  font-size:13px;
  outline:none;
  margin-top:8px;
}
.modal textarea:focus{border-color:var(--soft-blue);box-shadow:0 0 0 3px rgba(74,144,226,.18);}
.modal-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:12px;flex-wrap:wrap;}

.kv{display:grid;grid-template-columns:220px 1fr;gap:8px 12px;margin-top:10px;font-size:13px;color:#222;}
.kv div:nth-child(odd){color:#555;font-weight:900;}
.pill{display:inline-block;padding:4px 8px;border-radius:999px;font-size:12px;font-weight:900;border:1px solid rgba(0,0,0,.12);background:rgba(0,0,0,.04);margin-left:8px;}

.rework-box{
  margin-top:12px;
  border:1px solid rgba(217,130,0,.35);
  background:rgba(217,130,0,.10);
  padding:10px 12px;
  border-radius:12px;
  font-size:13px;
  color:#222;
}

.file-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:6px;}
.mini{font-size:12px;color:#555;}

.inline-input{
  height:36px;
  border-radius:10px;
  border:1px solid #ccc;
  padding:0 10px;
  font-size:13px;
  outline:none;
  width:100%;
  background:#fff;
}
.inline-input:focus{border-color:var(--soft-blue);box-shadow:0 0 0 3px rgba(74,144,226,.18);}

@media(max-width:720px){
  .kv{grid-template-columns:1fr;}
  .kv div:nth-child(odd){margin-top:6px;}
}

/* Approvers pills */
.pill-row{display:flex;gap:8px;flex-wrap:wrap;}
.pill{
  display:inline-flex;align-items:center;gap:8px;
  border:1px solid var(--border);background:#fff;border-radius:999px;
  padding:6px 10px;font-size:13px;color:#111;
}
.pill button{
  border:none;background:transparent;cursor:pointer;color:#666;font-size:14px;line-height:1;
}
.pill button:hover{color:#000;}
.pick-row.no-check{cursor:pointer;}
.pick-row.no-check span{user-select:none;}


/* Picker input styled like select with caret */
.picker-input.select-like{ position:relative; padding-right:42px; }
.picker-input.select-like::after{
  content:"▾";
  position:absolute;
  right:14px;
  top:50%;
  transform: translateY(-50%);
  opacity:0.75;
  font-size:16px;
  pointer-events:none;
}


/* Multi PDF list */
.file-list{display:flex;flex-direction:column;gap:6px;}
.file-item{display:flex;align-items:center;gap:8px;justify-content:space-between;background:rgba(0,0,0,0.03);border:1px solid var(--border);border-radius:10px;padding:8px 10px;}
.file-item .meta{display:flex;flex-direction:column;gap:2px;}
.file-item .name{font-weight:700;font-size:13px;}
.file-item .size{font-size:12px;color:var(--muted);}
.file-item .xbtn{border:none;background:transparent;color:#b00020;font-weight:900;cursor:pointer;font-size:14px;line-height:1;padding:2px 6px;border-radius:8px;}
.file-item .xbtn:hover{background:rgba(176,0,32,0.08);}

.centered-action{display:flex;align-items:center;justify-content:center;text-align:center;}


.safety-accordion{margin:12px 0;}
.accordion-toggle{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border:1px solid var(--border);border-radius:12px;background:#fff;font-weight:900;cursor:pointer;}
.accordion-arrow{font-size:18px;line-height:1;transition:transform .2s ease;}
.accordion-toggle.open .accordion-arrow{transform:rotate(180deg);}
.accordion-panel{border:1px solid var(--border);border-top:none;border-radius:0 0 12px 12px;padding:14px;background:#fff;}
.safety-grid{display:grid;grid-template-columns:1fr;gap:12px;}
.safety-row label{display:block;margin-bottom:6px;font-weight:700;color:#1f2937;}
.safety-row textarea{width:100%;min-height:74px;resize:vertical;}


.create-steps{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0 8px;}
.create-step-tab{background:transparent;border:1px solid transparent;padding:8px 10px;border-radius:10px;cursor:pointer;font-weight:900;font-size:13px;color:var(--black);white-space:nowrap;}
.create-step-tab.active{border-color:rgba(74,144,226,.55);background:rgba(74,144,226,.10);color:var(--black);}
.create-step-panel{margin-top:8px;}
.risk-card{border:1px solid var(--border);border-radius:16px;padding:18px;background:#fff;}
.risk-card-title{font-weight:900;font-size:18px;color:var(--black);}
.risk-checklist{display:grid;gap:12px;}
.risk-section{border:1px solid var(--border);border-radius:14px;background:#fff;overflow:hidden;}
.risk-section.open{border-color:rgba(217,130,0,.45);}
.risk-section.complete{border-color:rgba(27,143,58,.45);}
.risk-section-header{width:100%;display:flex;justify-content:space-between;align-items:center;gap:12px;background:#fff;border:none;padding:16px;cursor:pointer;text-align:left;}
.risk-header-left{display:flex;align-items:flex-start;gap:12px;}
.risk-icon{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:999px;background:rgba(217,130,0,.12);color:var(--orange);font-weight:900;}
.risk-section.complete .risk-icon{background:rgba(27,143,58,.10);color:var(--green);}
.risk-section-title{display:block;font-weight:900;color:var(--black);}
.risk-section-meta{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:6px;font-size:12px;color:var(--muted);}
.risk-required{display:inline-block;padding:4px 8px;border-radius:999px;background:rgba(217,130,0,.14);color:#b65f00;font-weight:900;text-transform:uppercase;font-size:11px;}
.risk-section-arrow{font-size:18px;transition:transform .2s ease;color:#7a7a7a;}
.risk-section.open .risk-section-arrow{transform:rotate(180deg);}
.risk-section-body{padding:0 16px 16px;border-top:1px solid var(--border);}
.risk-question{padding:14px 0;border-bottom:1px solid #f0f0f0;}
.risk-question:last-child{border-bottom:none;padding-bottom:0;}
.risk-question-text{font-weight:700;line-height:1.45;margin-bottom:10px;}
.risk-answer-row{display:grid;grid-template-columns:auto 1fr;gap:12px;align-items:center;}
.risk-answer-options{display:flex;gap:8px;flex-wrap:wrap;}
.risk-radio{display:inline-flex;align-items:center;gap:6px;padding:7px 10px;border:1px solid var(--border);border-radius:999px;background:#fff;cursor:pointer;font-size:13px;}
.risk-radio.selected{border-color:rgba(74,144,226,.55);background:rgba(74,144,226,.10);}
.risk-radio input{width:auto;height:auto;margin:0;}
.risk-comment{min-width:220px;}
.risk-summary{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 14px;border:1px solid var(--border);border-radius:12px;background:#f8fbff;margin-bottom:12px;}
.risk-subtitle{font-weight:900;color:var(--black);margin:8px 0 6px;}
.risk-item-list{display:grid;gap:12px;}
.risk-item{border:1px solid var(--border);border-radius:14px;background:#fff;overflow:hidden;box-shadow:0 8px 20px rgba(16,35,56,.04);}
.risk-item.inactive{opacity:.68;}
.risk-item-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 14px;background:linear-gradient(180deg,#ffffff 0%, #f8fbff 100%);border-bottom:1px solid var(--border);}
.risk-item-apply{display:inline-flex;align-items:center;gap:8px;font-weight:700;cursor:pointer;}
.risk-item-body{padding:14px;display:grid;gap:12px;}
.risk-item-body.is-disabled{opacity:.6;}
.risk-field{display:grid;gap:6px;}
.risk-field label{font-weight:700;color:var(--black);}
.risk-textarea{width:100%;min-height:74px;border:1px solid var(--border);border-radius:12px;padding:10px 12px;resize:vertical;font:inherit;background:#fff;}
.risk-level-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;}
.risk-custom-actions{margin-bottom:10px;}
.risk-legacy-note{padding:12px 14px;border:1px solid var(--border);border-radius:12px;background:#fff8ea;color:#7b5200;}
.risk-legacy-row{padding:10px 0;border-bottom:1px solid #f0f0f0;}
.risk-legacy-row:last-child{border-bottom:none;}
@media(max-width:720px){.risk-level-grid{grid-template-columns:1fr;}}

@media(max-width:720px){.risk-answer-row{grid-template-columns:1fr;}}


.login-brand{display:flex;flex-direction:column;align-items:center;gap:6px;margin-bottom:8px;}
.login-logo{width:94px;height:94px;object-fit:contain;border-radius:20px;background:rgba(255,255,255,.72);padding:6px;box-shadow:0 8px 26px rgba(16,35,56,.08);}
.brand-logo{width:56px;height:56px;object-fit:contain;border-radius:16px;background:rgba(255,255,255,.94);padding:4px;box-shadow:0 8px 22px rgba(16,35,56,.08);}
.brand-text{display:flex;flex-direction:column;min-width:0;}
.brand-title{font-size:18px;line-height:1.1;}
.brand-subtitle{font-size:12px;font-weight:700;color:var(--muted);line-height:1.2;}
.profile-tabs{justify-content:center;align-items:center;}
.profile-tabs #tabAdmin{margin-left:0;}
.simple-table thead th{background:#eff5fb;color:var(--black);font-weight:900;}
.simple-table tr:hover td{background:rgba(47,110,165,.03);}
.file-row{padding:10px 12px;border:1px solid var(--border);border-radius:14px;background:rgba(255,255,255,.9);}
.risk-section{box-shadow:0 10px 24px rgba(16,35,56,.04);}
.risk-section-header{background:linear-gradient(180deg,#ffffff 0%, #f8fbff 100%);}
.notif-btn{height:36px;min-width:42px;border-radius:12px;background:linear-gradient(180deg,#fff,#f6fbff);}
@media(max-width:720px){.brand-subtitle{display:none}.brand-logo{width:44px;height:44px}}


.admin-toggle-section{margin:10px 0 0 0;}
.admin-toggle-section .accordion-toggle{border-radius:14px;}
.admin-toggle-section .accordion-panel{border-radius:0 0 14px 14px;}


/* ===== DASHBOARD ===== */
.dashboard-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap;}
.dashboard-filter-card{min-width:320px;max-width:100%;padding:14px 16px;border:1px solid var(--border);border-radius:18px;background:rgba(255,255,255,.9);box-shadow:0 10px 24px rgba(16,35,56,.04);}
.dashboard-filter-grid{display:grid;grid-template-columns:repeat(2,minmax(140px,1fr)) auto;gap:10px;align-items:end;}
.dashboard-filter-actions{display:flex;align-items:end;justify-content:flex-end;height:100%;}
.dashboard-cards{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;}
.dashboard-card{padding:16px 14px;border-radius:20px;border:1px solid var(--border);background:linear-gradient(180deg,#ffffff 0%, #f4f9fd 100%);box-shadow:0 14px 28px rgba(16,35,56,.06);min-height:104px;display:flex;flex-direction:column;justify-content:space-between;}
.dashboard-card-label{font-size:13px;line-height:1.35;color:var(--muted);font-weight:800;}
.dashboard-card-value{font-size:34px;line-height:1;color:var(--black);font-weight:900;letter-spacing:-.02em;}
.dashboard-grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:stretch;}
.dashboard-box{min-height:100%;}
.dashboard-box-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px;}
.dashboard-mini-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:10px;margin-bottom:14px;}
.dashboard-mini-stat{padding:12px;border:1px solid var(--border);border-radius:14px;background:rgba(255,255,255,.88);}
.dashboard-mini-label{display:block;font-size:12px;color:var(--muted);margin-bottom:6px;}
.dashboard-mini-stat strong{font-size:22px;color:var(--black);}
.dashboard-bars{display:flex;flex-direction:column;gap:12px;}
.dashboard-bar-row{display:flex;flex-direction:column;gap:6px;}
.dashboard-bar-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:13px;color:var(--black);font-weight:800;}
.dashboard-bar-track{width:100%;height:12px;border-radius:999px;background:rgba(47,110,165,.10);overflow:hidden;}
.dashboard-bar-fill{height:100%;border-radius:999px;background:linear-gradient(90deg,#4a90e2 0%, #1f5f96 100%);}
.dashboard-empty{padding:20px 12px;border:1px dashed var(--border);border-radius:14px;color:var(--muted);text-align:center;background:rgba(255,255,255,.72);}
.dashboard-empty-cell{padding:18px 10px !important;color:var(--muted);text-align:center;}
.dashboard-timeline{display:flex;flex-direction:column;gap:12px;}
.dashboard-timeline-row{display:grid;grid-template-columns:78px 1fr 92px;gap:10px;align-items:center;}
.dashboard-timeline-label{font-size:12px;font-weight:800;color:var(--muted);}
.dashboard-timeline-bars{display:flex;flex-direction:column;gap:5px;}
.dashboard-timeline-track{height:12px;border-radius:999px;background:rgba(47,110,165,.10);overflow:hidden;}
.dashboard-timeline-track.small{height:8px;background:rgba(47,110,165,.08);}
.dashboard-timeline-fill{height:100%;border-radius:999px;}
.dashboard-timeline-fill.created{background:linear-gradient(90deg,#4a90e2 0%, #235a8d 100%);}
.dashboard-timeline-fill.done{background:linear-gradient(90deg,#7aaeea 0%, #4a90e2 100%);}
.dashboard-timeline-fill.rework{background:linear-gradient(90deg,#a3c8f2 0%, #6d9fd6 100%);}
.dashboard-timeline-values{display:flex;gap:8px;justify-content:flex-end;font-size:11px;color:var(--muted);font-weight:800;}
.dashboard-table-wrap{overflow:auto;}
.dashboard-table th:nth-child(1), .dashboard-table td:nth-child(1){white-space:nowrap;}
.dashboard-table th:nth-child(4), .dashboard-table td:nth-child(4){white-space:nowrap;}
@media (max-width: 1100px){
  .dashboard-cards{grid-template-columns:repeat(3,minmax(0,1fr));}
}
@media (max-width: 860px){
  .dashboard-filter-grid{grid-template-columns:1fr 1fr;}
  .dashboard-filter-actions{grid-column:1 / -1;justify-content:stretch;}
  .dashboard-filter-actions .btn-sm{width:100%;}
  .dashboard-grid-2{grid-template-columns:1fr;}
}
@media (max-width: 720px){
  .dashboard-head{flex-direction:column;}
  .dashboard-filter-card{min-width:0;width:100%;}
  .dashboard-cards{grid-template-columns:repeat(2,minmax(0,1fr));}
  .dashboard-card-value{font-size:28px;}
  .dashboard-timeline-row{grid-template-columns:1fr;}
  .dashboard-timeline-values{justify-content:flex-start;}
}
@media (max-width: 520px){
  .dashboard-cards{grid-template-columns:1fr;}
  .dashboard-filter-grid{grid-template-columns:1fr;}
}
