/* Unified internal dashboard visual system */
:root{
  --ui-green:#087a43;
  --ui-green-dark:#065b32;
  --ui-green-soft:#eef8f2;
  --ui-ink:#173c2c;
  --ui-muted:#6f7d76;
  --ui-line:#dfe8e2;
  --ui-line-strong:#cddbd3;
  --ui-surface:#ffffff;
  --ui-surface-soft:#f8fbf9;
  --ui-shadow:0 8px 28px rgba(23,60,44,.055);
  --ui-shadow-hover:0 14px 34px rgba(23,60,44,.09);
}

.dashboard-content{
  background:
    radial-gradient(circle at 8% 0%,rgba(8,122,67,.035),transparent 28%),
    #f4f7f5;
}
.dashboard-content > .page-head,
.dashboard-content > .panel,
.dashboard-content > .cards,
.dashboard-content > .kpi-grid,
.dashboard-content > .chart-grid,
.dashboard-content > .transport-grid,
.dashboard-content > .workspace-section,
.dashboard-content > .empty{
  width:100%;
  max-width:1500px;
  margin-left:auto;
  margin-right:auto;
}
.dashboard-content > .narrow,
.dashboard-content > .panel.narrow{
  max-width:780px;
}

.page-head{
  position:relative;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-bottom:18px;
  padding:21px 23px;
  border:1px solid var(--ui-line);
  border-radius:18px;
  background:var(--ui-surface);
  box-shadow:var(--ui-shadow);
}
.page-head::before{
  content:"";
  position:absolute;
  right:0;
  top:18px;
  bottom:18px;
  width:4px;
  border-radius:4px 0 0 4px;
  background:linear-gradient(180deg,#15945a,var(--ui-green));
}
.page-head > div:first-child{padding-right:5px}
.page-head h1{
  margin:0 0 6px!important;
  color:var(--ui-ink)!important;
  font-size:22px;
  line-height:1.45;
  letter-spacing:-.2px;
}
.page-head h2,.page-head h3{margin:0 0 5px;color:var(--ui-ink)}
.page-head p{margin:0;color:var(--ui-muted);font-size:12px;line-height:1.9}
.page-head .button,.page-head button{white-space:nowrap}

.panel{
  margin-bottom:16px;
  padding:19px 20px;
  border:1px solid var(--ui-line)!important;
  border-radius:16px!important;
  background:var(--ui-surface)!important;
  box-shadow:var(--ui-shadow)!important;
}
.panel > h1:first-child{
  margin:0 0 8px;
  color:var(--ui-ink);
  font-size:21px;
}
.panel > h2:first-child,.panel > h3:first-child{
  margin-top:0;
  margin-bottom:12px;
  color:var(--ui-ink);
  font-size:16px;
}
.panel > p{color:#5f6f67;line-height:1.9}
.panel-heading{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:14px;
}
.panel-heading h2,.panel-heading h3{margin:0 0 5px;color:var(--ui-ink);font-size:16px}
.panel-heading p{margin:0;color:var(--ui-muted);font-size:11px;line-height:1.8}

.button,button{
  min-height:40px;
  padding:10px 15px;
  border-radius:9px!important;
  box-shadow:0 2px 7px rgba(8,122,67,.08);
  transition:transform .15s ease,box-shadow .15s ease,background .15s ease;
}
.button:hover,button:hover{transform:translateY(-1px);box-shadow:0 6px 14px rgba(8,122,67,.13)}
.button.secondary,.secondary{background:#eef4f1!important;color:#315646!important;border:1px solid #d7e4dd!important;box-shadow:none}
.button.secondary:hover,.secondary:hover{background:#e4f0e9!important}
.danger{background:#fff2f1!important;color:#b42318!important;border:1px solid #f2c5c0!important;box-shadow:none!important}

label{color:#43564c;font-size:12px}
input,select,textarea{
  min-height:42px;
  border:1px solid var(--ui-line-strong)!important;
  border-radius:9px!important;
  background:#fff!important;
  color:#253a30;
}
input::placeholder,textarea::placeholder{color:#98a59e}
input[type="file"]{padding:8px;background:#fbfdfc!important}
input[type="file"]::file-selector-button{
  margin-left:10px;
  border:0;
  border-radius:7px;
  padding:8px 11px;
  background:#edf7f1;
  color:var(--ui-green);
  font:inherit;
  font-weight:700;
  cursor:pointer;
}
.note{
  border:1px solid #d7eadf;
  background:#f0f8f3!important;
  color:#315d46!important;
  line-height:1.85;
}
.alert{border:1px solid #f0c7c4;line-height:1.85}
.help-text{margin:6px 0 0;color:var(--ui-muted);font-size:11px;line-height:1.85}

.kpi-grid{gap:12px!important}
.kpi-grid>div{
  min-height:112px;
  padding:16px 17px!important;
  border:1px solid var(--ui-line)!important;
  border-radius:15px!important;
  background:var(--ui-surface)!important;
  box-shadow:0 5px 18px rgba(23,60,44,.04)!important;
}
.kpi-grid>div span{font-size:11px;color:var(--ui-muted)!important}
.kpi-grid>div b{font-size:21px!important;color:var(--ui-ink)!important}

.cards{gap:13px!important}
.report-card{
  border:1px solid var(--ui-line)!important;
  border-radius:16px!important;
  padding:18px!important;
  box-shadow:0 6px 22px rgba(23,60,44,.045)!important;
  transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease;
}
.report-card:hover{transform:translateY(-2px);border-color:#b9d5c6!important;box-shadow:var(--ui-shadow-hover)!important}
.report-card h3{font-size:16px!important;color:var(--ui-ink)!important;margin-bottom:12px!important}
.report-card .kpi{font-size:12px;border-color:#edf2ef!important}
.report-card .kpi b{color:#315646}
.report-card .actions{margin-top:14px}

.table-wrap{
  border:1px solid var(--ui-line)!important;
  border-radius:12px!important;
  box-shadow:none!important;
  background:#fff;
}
table{font-size:12px}
th,td{padding:11px 10px!important;border-bottom:1px solid #edf2ef!important}
th{
  background:#f0f7f3!important;
  color:#36594a!important;
  font-size:11px;
  font-weight:800;
}
tbody tr:nth-child(even){background:#fcfdfc}
tbody tr:hover{background:#f5faf7!important}
.table-tools{margin-bottom:10px!important}
.table-global-search,.table-column-filter{border-color:var(--ui-line-strong)!important;background:#fff!important}
.table-column-filters th{background:#f8fbf9!important}
.table-link{color:var(--ui-green)!important}

.chart-grid{gap:13px!important}
.chart-grid section{
  border:1px solid var(--ui-line)!important;
  border-radius:16px!important;
  padding:18px!important;
  box-shadow:0 6px 22px rgba(23,60,44,.045)!important;
}
.chart-grid section h3{margin:0 0 14px;color:var(--ui-ink);font-size:14px}

.empty{
  border:1px dashed var(--ui-line-strong)!important;
  border-radius:15px!important;
  background:#fbfdfc!important;
  color:var(--ui-muted)!important;
}

.form-panel{max-width:820px}
.form-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:4px}
.section-divider{height:1px;background:#edf2ef;margin:18px 0}
.soft-badge{display:inline-flex;align-items:center;padding:5px 9px;border-radius:999px;background:#eef8f2;color:var(--ui-green);font-size:10px;font-weight:800}
.status-card{padding:12px 14px;border:1px solid #e1ebe5;border-radius:11px;background:#fbfdfc;color:#52675c;font-size:11px;line-height:1.9}

/* Active branch must be unmistakable. This sits directly under the brand so
   users always know which branch all dashboard numbers/actions belong to. */
.dashboard-scope{
  margin:10px 12px 4px!important;
  padding:12px 13px!important;
  border:1px solid rgba(126,226,170,.42)!important;
  border-right:4px solid #58d18e!important;
  border-radius:11px!important;
  background:rgba(255,255,255,.09)!important;
  color:#fff!important;
  font-size:13px!important;
  font-weight:800!important;
  line-height:1.8!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.025);
}
.dashboard-scope::before{
  content:"●";
  color:#65df9e;
  margin-left:7px;
  font-size:10px;
  vertical-align:1px;
}
.dashboard-scope a{
  display:block!important;
  margin:5px 0 0!important;
  color:#aeecc9!important;
  font-size:10.5px!important;
  font-weight:700!important;
  text-decoration:none!important;
}
.dashboard-scope a:hover{color:#fff!important;text-decoration:underline!important}

@media(max-width:800px){
  .page-head{padding:18px 17px;align-items:flex-start;flex-direction:column;border-radius:15px}
  .page-head::before{top:14px;bottom:14px}
  .page-head h1{font-size:19px}
  .page-head .button,.page-head button{width:100%;text-align:center}
  .panel{padding:16px!important;border-radius:14px!important}
  .panel-heading{flex-direction:column}
  .form-actions{align-items:stretch;flex-direction:column}
  .form-actions .button,.form-actions button{width:100%;text-align:center}
  .report-card:hover,.button:hover,button:hover{transform:none}
}
