[hidden] { display: none !important; }
body { color: #202925; }
.admin-wrap { max-width: 1320px; width: calc(100% - 48px); padding-top: 28px; }
.management-tabs { display: flex; gap: 24px; border-bottom: 1px solid #d4ded8; margin-bottom: 24px; overflow-x: auto; }
.management-tabs button { padding: 14px 0; flex: 0 0 auto; border: 0; border-bottom: 3px solid transparent; background: none; color: #64746b; cursor: pointer; }
.management-tabs button[aria-selected="true"] { color: #176750; border-bottom-color: #176750; font-weight: 700; }
.management-view { min-width: 0; }
.management-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.management-toolbar h2 { margin: 0; font-size: 20px; }
.management-view .button-primary, dialog .button-primary { background: #176750; box-shadow: none; }
.metric-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid #d8e1db; margin-block: 20px; background: #fff; }
.metric { min-width: 0; padding: 20px 18px; border-right: 1px solid #e2e8e4; }
.metric:last-child { border-right: 0; }
.metric span { display: block; color: #617066; font-size: 13px; }
.metric strong { display: block; margin-top: 10px; font-size: 23px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.metric small { display: block; color: #64746b; font-size: 12px; margin-top: 8px; }
.compact-filters { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; margin: 18px 0; }
.compact-filters .field-group { flex: 1 1 145px; min-width: 0; max-width: 280px; }
.compact-filters select { text-overflow: ellipsis; }
.management-message { min-height: 22px; color: #a43d33; font-size: 13px; overflow-wrap: anywhere; }
.management-message.ok, .account-basis { color: #637369; font-size: 13px; }
.table-scroll { width: 100%; overflow-x: auto; background: #fff; border-block: 1px solid #d8e1db; }
.management-table { border-collapse: collapse; width: 100%; min-width: 720px; font-size: 13px; }
.management-table th { background: #eef3f0; color: #4a5d51; font-weight: 600; text-align: left; white-space: nowrap; }
.management-table th, .management-table td { padding: 13px 14px; border-bottom: 1px solid #e5eae7; vertical-align: middle; }
.management-table tr:last-child td { border-bottom: none; }
.management-table td { max-width: 320px; overflow-wrap: anywhere; }
#usageView .management-table td:first-child { min-width: 150px; }
.management-table td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.management-table tbody tr:hover { background: #f7faf8; }
.project-name-main { display: block; font-weight: 700; min-width: 120px; }
.project-blocker { display: block; margin-top: 5px; max-width: 270px; color: #a43d33; font-size: 12px; }
.stage-badge { white-space: nowrap; color: #176750; }
.overdue { color: #a43d33; }
.progress-cell { min-width: 125px; }
.progress-cell progress { width: 85px; height: 7px; accent-color: #208365; margin-right: 8px; }
.actions-cell { white-space: nowrap; }
.icon-button { width: 38px; height: 38px; flex: 0 0 38px; border: 1px solid #ced8d1; border-radius: 5px; background: #fff; color: #395345; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.icon-button:hover { background: #eaf3ed; }
.icon-button:disabled { opacity: .4; cursor: default; }
button svg { width: 17px; height: 17px; pointer-events: none; }
.candidate-list { display: flex; flex-wrap: wrap; gap: 12px; padding: 16px 0; }
.candidate-item { display: flex; align-items: center; gap: 8px; font-size: 13px; max-width: 100%; overflow-wrap: anywhere; }
.candidate-item { flex-wrap: wrap; padding: 10px; border: 1px solid #d8e1db; background: #fff; }
.candidate-item .button { padding: 8px 10px; min-height: 38px; font-size: 13px; }
.project-aliases { display: block; margin-top: 5px; color: #637369; }
#aliasSource { overflow-wrap: anywhere; }
#aliasTarget { width: 100%; min-width: 0; }
details { margin-top: 20px; }
summary { cursor: pointer; color: #53665a; font-size: 13px; }
.chart-wrap { height: 240px; width: 100%; background: #fff; padding: 12px 4px; }
.chart-wrap canvas { display: block; width: 100%; height: 100%; }
.pagination { display: flex; align-items: center; justify-content: end; gap: 14px; margin-top: 16px; font-size: 13px; }
.negative { color: #a43d33; }
dialog { width: min(680px, calc(100% - 28px)); max-height: calc(100dvh - 40px); overflow-y: auto; overscroll-behavior: contain; border: 1px solid #cdd8d0; border-radius: 8px; padding: 26px; color: #202925; }
dialog::backdrop { background: rgb(13 28 20 / 40%); }
.editor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.editor-grid .wide { grid-column: 1 / -1; }
.editor-grid textarea { min-height: 76px; }
.checkbox-field { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.checkbox-field input { width: 18px; height: 18px; accent-color: #176750; }
.dialog-actions { display: flex; justify-content: end; gap: 12px; }
.project-report-entry { border-top: 1px solid #dae3dd; padding: 16px 0; }
.project-report-entry p { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; margin: 8px 0 0; }
.project-report-entry small { color: #65766b; }
.empty-row { padding: 32px !important; text-align: center; color: #77867d; }
.work-export-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.work-groups { display: grid; gap: 16px; }
.work-bucket { border: 1px solid #d8e1db; background: #fff; overflow-wrap: anywhere; }
.work-bucket > summary { padding: 20px; cursor: pointer; }
.work-bucket > summary:focus-visible { outline: 2px solid #258065; outline-offset: -3px; }
.work-bucket-heading { display: inline-flex; flex-direction: column; gap: 8px; vertical-align: top; }
.work-bucket-heading > strong { font-size: 19px; }
.work-bucket-heading > span, .work-expand-label { color: #637369; font-size: 13px; }
.work-bucket > summary > .work-quantities, .work-expand-label { display: block; margin-top: 12px; }
.work-bucket[open] > summary .work-expand-label { display: none; }
.work-bucket-children { display: grid; gap: 12px; padding: 0 16px 16px; }
.work-group { background: #fff; border: 1px solid #d8e1db; padding: 20px; overflow-wrap: anywhere; }
.work-group header { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.work-group h3 { font-size: 17px; margin: 0 0 10px; }
.work-group h3 small { color: #a43d33; font-size: 12px; }
.work-count { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.work-count span { color: #637369; font-size: 12px; }
.work-types { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.work-types span { background: #eef3f0; padding: 5px 9px; font-size: 13px; }
.work-quantities { margin: 14px 0 0; color: #315c46; font-size: 14px; line-height: 1.7; }
#reportsView .filters, #reportsView .records-panel { border-radius: 0; box-shadow: none; }
@media (max-width: 720px) {
  .admin-wrap { width: calc(100% - 28px); }
  .metric-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric { padding: 16px 12px; border-bottom: 1px solid #e2e8e4; }
  .metric strong { font-size: 20px; }
  .management-toolbar h2 { font-size: 18px; }
  .management-tabs { gap: 20px; }
  .management-tabs button { font-size: 14px; }
  .compact-filters .field-group { flex-basis: calc(50% - 12px); max-width: none; }
  .topbar { height: auto; min-height: 64px; flex-wrap: wrap; gap: 10px; padding-block: 12px; }
  .header-actions { flex-wrap: wrap; }
  .editor-grid { grid-template-columns: minmax(0, 1fr); }
  dialog { padding: 18px; }
}
