/* Dobrun Control: operational legibility, keeping the approved green/neutral design.
   Reference: local BSC CRM bsc-theme.css / ergonomic.css. No BSC identities or data. */
:root {
  --muted: #536a60;
  --readable-secondary: #566c60;
  --readable-line: #cbd6c6;
  --readable-focus: #326b5e;
}

body { font-size: 14px; line-height: 1.5; }
button, input, select, textarea { line-height: 1.4; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: #326b5e22; }
:is(button, a, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--readable-focus);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px #fff;
}
.sidebar :is(button, a, input, select, summary):focus-visible {
  outline-color: #d4e4b1;
  box-shadow: 0 0 0 5px #142e2c;
}
button:disabled { opacity: .62; }

.brand small { color: #b6ccc0; font-size: 10px; letter-spacing: 1.8px; }
.site-switch small { color: #b7cabe; font-size: 11px; }
.site-switch strong { font-size: 13px; }
.nav-label { color: #a8c2b4; font-size: 10px; }
.nav-item { min-height: 44px; font-size: 13px; padding-block: 10px; }
.nav-item .count { color: #edf4e8; font-size: 11px; min-width: 22px; text-align: center; }
.sidebar-bottom small { color: #adc7b8; font-size: 11px; }
.sidebar-bottom strong { font-size: 12px; }
.avatar { font-size: 11px; }
.breadcrumb { color: var(--readable-secondary); font-size: 12px; }
.breadcrumb strong { color: #3d5b4e; }
.top-tools { gap: 11px; }
.search-box { border-color: var(--readable-line); padding: 0 11px; min-height: 44px; color: var(--readable-secondary); }
.search-box input { font-size: 13px; min-height: 42px; }
.search-box:focus-within { outline: 3px solid var(--readable-focus); outline-offset: 2px; }
.icon-btn { width: 44px; height: 44px; min-width: 44px; min-height: 44px; flex-shrink: 0; }
.test-tag { color: #705822; font-size: 10px; letter-spacing: .6px; }
.eyebrow { color: #536a56; font-size: 10px; letter-spacing: 1.35px; }
.subtitle { font-size: 13px; line-height: 1.65; }
.btn, .btn.small, .btn.text, .period-button { min-height: 44px; font-size: 13px; }
.btn { border-color: #c6d2bf; }
.btn.small { padding: 8px 11px; }
.btn.text { padding-inline: 5px; color: #3b6238; }
.btn.soft { color: #3f603d; }
.btn.danger { color: #934538; }
.period-button { padding-block: 9px; }

.hero p { color: #52664b; font-size: 13px; }
.hero .eyebrow { color: #536b47; }
.hero-right small { color: #53654a; font-size: 12px; }
.hero-right strong { font-size: 13px; }
.metric { min-height: 145px; }
.metric-top { color: #52694f; font-size: 12px; gap: 7px; }
.metric-value { color: var(--ink); flex-wrap: wrap; row-gap: 0; font-variant-numeric: tabular-nums; }
.metric-value small { color: #5d6e5a; font-size: 13px; }
.metric-foot { color: #5b6b53; font-size: 11px; line-height: 1.5; flex-wrap: wrap; }
.metric-foot strong { color: #476337; font-weight: 600; }
.card h2 { font-size: 15px; line-height: 1.4; }
.card-sub { color: var(--readable-secondary); font-size: 12px; line-height: 1.5; }
.chart-legend { color: #55684b; font-size: 11px; flex-wrap: wrap; gap: 9px 13px; }
.chart-axis { fill: #566a4e; font-size: 11px; }
.chart-summary { color: #566a49; font-size: 11px; gap: 10px; line-height: 1.5; flex-wrap: wrap; }
.chart-summary strong { color: #3d5b35; font-weight: 600; }
.donut-label small { color: #5b6c51; font-size: 11px; }
.donut-legend { font-size: 12px; }
.legend-row span { color: #5a6c4f; }
.legend-row strong { color: #3c5833; font-weight: 600; font-variant-numeric: tabular-nums; }
.soft-note { color: #526648; font-size: 12px; line-height: 1.65; }
.work-row { grid-template-columns: 30px minmax(0, 1fr) 48px; }
.work-row strong { font-size: 13px; font-weight: 600; }
.work-row small { color: #5d6e50; font-size: 11px; }
.work-percent { color: #496d33; font-size: 13px; font-variant-numeric: tabular-nums; }
.progress-track { height: 7px; }
.progress-fill { background: #789a56; }
.alert-row { min-height: 60px; }
.alert-row strong { font-size: 13px; font-weight: 600; line-height: 1.45; }
.alert-row small { color: #5c6c50; font-size: 11px; }
.alert-row .arrow { color: #5c7150; }
.date-tile { min-width: 42px; }
.date-tile small { color: #5b6c49; font-size: 10px; }
.mini-task h3 { font-size: 13px; line-height: 1.45; }
.mini-task p { color: #596b48; font-size: 11px; line-height: 1.5; }
.footer { color: #5e6e53; font-size: 11px; line-height: 1.6; }

.badge { background: #eef3e5; color: #476334; font-size: 11px; line-height: 1.4; font-weight: 600; padding: 5px 8px; }
.badge.red { background: #faefeb; color: #984633; }
.badge.amber { background: #faf3e5; color: #795a1f; }
.badge.gray { background: #f0f3ef; color: #54664b; }
.badge.blue { background: #edf2f7; color: #3f6281; }
.toolbar { align-items: center; }
.toolbar input, .toolbar select, .filter-input {
  color: #3f5a37; font-size: 13px; min-height: 44px;
  border-color: #bbcbb0; padding-block: 9px;
}
input::placeholder, textarea::placeholder { color: #62735b; opacity: 1; }
.toolbar .muted { color: var(--readable-secondary); font-size: 12px; }
.tabs { gap: 18px; }
.tab { font-size: 13px; min-height: 44px; color: #5c7150; }
.tab.active { color: #315d3b; border-color: #517f47; font-weight: 600; }
.table-scroll, .gantt-wrap { overscroll-behavior-x: contain; scrollbar-color: #9bae8d #eef2e8; scrollbar-width: thin; }
th { font-size: 11px; color: #526548; font-weight: 600; letter-spacing: .45px; padding-block: 14px; }
td { font-size: 13px; color: var(--ink); line-height: 1.5; padding-block: 15px; }
td strong { font-size: 13px; line-height: 1.4; }
td small { font-size: 11px; color: #5c6c51; line-height: 1.5; }
.table-progress span { font-size: 11px; gap: 8px; color: #49653c; font-variant-numeric: tabular-nums; }
.row-actions { gap: 8px; }
.empty { color: #5e714e; font-size: 13px; }
.info-strip { color: #4f633b; font-size: 13px; }
.info-strip.warn { color: #765c2b; }
.asset-top h3 { font-size: 14px; }
.asset-top small { color: #5b6e4b; font-size: 12px; }
.asset-data { font-size: 12px; }
.asset-data small { color: #596d49; font-size: 11px; }
.expiry { color: #536d43; font-size: 12px; gap: 9px; line-height: 1.5; }
.gantt-label strong { font-size: 12px; line-height: 1.4; }
.gantt-label small { color: #5d6e4d; font-size: 11px; line-height: 1.45; }
.gantt-weeks { font-size: 11px; color: #5b6e49; }
.gantt-head, .gantt-row { min-height: 72px; }
.gantt-bar { height: 32px; font-size: 11px; font-weight: 600; color: #294f24; }
.gantt-bar.late { color: #5d452b; }
.today-label { color: #795a2a; font-size: 11px; }
.settings-block p { color: #566b47; font-size: 13px; line-height: 1.7; }
.settings-list div { font-size: 13px; line-height: 1.5; }
.settings-list span { color: #596d4a; }
.settings-list b { font-weight: 600; text-align: right; }
.journal-card h3 { font-size: 15px; }
.journal-card p { color: #566b47; font-size: 13px; line-height: 1.7; }
.journal-card .journal-foot { color: #5a6e49; font-size: 12px; gap: 10px; flex-wrap: wrap; }
.sources-list a { font-size: 13px; text-underline-offset: 3px; }
.modal-head p { color: #586e47; font-size: 12px; }
.field label { color: #526943; font-size: 12px; font-weight: 600; }
.field input, .field select, .field textarea {
  min-height: 44px; font-size: 14px; color: #34512c;
  border-color: #b8c9ab; background: #fcfdf9;
}
.field textarea { min-height: 92px; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--readable-focus); outline-offset: 2px; background: #fff;
}
.detail-pairs div { font-size: 13px; }
.detail-pairs small { color: #596d49; font-size: 12px; }
.file-zone p { color: #526b3c; font-size: 13px; }
.file-item { font-size: 13px; }
.form-error { color: #8e4430; font-size: 13px; }
.sim-state { font-size: 14px; }
.danger-text { color: #984a34; }
.muted { color: #5b6e4d; }
.inline-stat { color: #596d49; font-size: 12px; gap: 12px 20px; flex-wrap: wrap; }
.inline-stat strong { color: #395c2a; }
.num, .metric-value, .detail-pairs, .asset-data { font-variant-numeric: tabular-nums; }
#toast { font-size: 13px; line-height: 1.55; }

@media (max-width: 1000px) {
  .topbar { gap: 10px; }
  .top-tools { gap: 6px; }
  .hero p { max-width: 340px; }
  .metric { min-height: 146px; }
}
@media (max-width: 730px) {
  .topbar { height: 68px; }
  .top-tools .icon-btn { width: 44px; min-width: 44px; }
  .breadcrumb { font-size: 11px; }
  .test-tag { font-size: 9px; padding: 5px 6px; }
  .content { padding-top: 21px; }
  .page-head h1 { font-size: 25px; }
  .subtitle { font-size: 13px; }
  .hero { flex-wrap: wrap; gap: 13px; padding: 20px 18px; }
  .hero h2 { font-size: 19px; }
  .hero p { max-width: none; font-size: 12px; }
  .hero .eyebrow { font-size: 10px; }
  .hero-right { margin-left: 0; }
  .hero-progress { width: 60px; height: 60px; }
  .hero-progress span { font-size: 16px; }
  .metric { min-height: 146px; padding: 14px 12px; }
  .metric-top { font-size: 12px; align-items: flex-start; }
  .metric-icon { flex-shrink: 0; }
  .metric-value { font-size: 26px; letter-spacing: -.8px; }
  .metric-foot { font-size: 11px; }
  .sparkline { display: none; }
  .card h2 { font-size: 14px; }
  .card-sub { font-size: 12px; }
  .card-head { flex-wrap: wrap; gap: 10px; }
  .chart-legend, .chart-summary { font-size: 11px; }
  .donut-wrap { gap: 15px; }
  .donut { width: 126px; height: 126px; }
  .donut-legend { font-size: 11px; gap: 12px; }
  .btn, .btn.small, .btn.text { min-height: 44px; font-size: 13px; }
  .btn.small { padding: 8px 10px; }
  .toolbar input, .toolbar select, .filter-input { font-size: 16px; min-height: 44px; }
  .field input, .field select, .field textarea { font-size: 16px; }
  td, th { padding-inline: 13px; }
  td { font-size: 13px; }
  .row-actions { flex-wrap: nowrap; }
  .gantt { --label: 210px; }
  .gantt-row { min-height: 82px; }
  .gantt-bar { height: 44px; font-size: 12px; }
  .gantt-baseline { bottom: 7px; }
  .modal-shade { padding: 10px; }
  .modal { max-height: calc(100dvh - 20px); }
  .modal-head { padding: 19px 16px; }
  .modal-body { padding: 19px 16px; }
  .modal-foot { padding: 13px 16px max(13px, env(safe-area-inset-bottom)); flex-wrap: wrap; }
  .settings-list div { gap: 12px; }
  .settings-list b { overflow-wrap: anywhere; }
  .footer { font-size: 11px; }
}
@media (max-width: 359px) {
  .content { padding-inline: 12px; }
  .topbar { padding-inline: 10px; }
  .top-tools { gap: 0; }
  .breadcrumb { gap: 4px; }
  .metric-top { font-size: 11px; }
  .metric-icon { width: 21px; height: 25px; background: none; }
  .metric-value { font-size: 24px; }
  .donut-wrap { flex-wrap: wrap; justify-content: center; }
  .donut-legend { min-width: 180px; max-width: 100%; }
  .settings-list div { flex-wrap: wrap; gap: 4px; }
  .settings-list b { text-align: left; }
}
@media print {
  body { font-size: 11px; }
  .metric { min-height: 120px; }
  .metric-top, .metric-foot, .card-sub, .soft-note { font-size: 10px; }
  td, th { font-size: 10px; }
}

/* Form controls: explicit native-menu colors, readable selected values and
   space for the arrow. Scoped to the workspace and dialogs, outside login. */
.shell select:not([multiple]),
.modal select:not([multiple]) {
  appearance: none;
  -webkit-appearance: none;
  color-scheme: light;
  color: #213d3b;
  -webkit-text-fill-color: #213d3b;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='m2 2 5 5 5-5' fill='none' stroke='%23326b5e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px 9px;
  border: 1px solid #b7c9ad;
  border-radius: 7px;
  min-height: 46px;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  padding: 10px 42px 10px 12px;
  font-size: 14px;
  font-weight: 550;
  line-height: 1.5;
  text-overflow: ellipsis;
  cursor: pointer;
}
.shell select option,
.modal select option,
.shell select optgroup,
.modal select optgroup {
  color: #213d3b;
  -webkit-text-fill-color: #213d3b;
  background-color: #fff;
  font-size: 14px;
  line-height: 1.6;
}
.shell select option:checked,
.modal select option:checked {
  color: #fff;
  -webkit-text-fill-color: #fff;
  background-color: #326b5e;
}
.shell select option:disabled,
.modal select option:disabled {
  color: #5d7064;
  -webkit-text-fill-color: #5d7064;
  background-color: #f1f5ed;
  opacity: 1;
}
.shell :is(input, select, textarea):disabled,
.modal :is(input, select, textarea):disabled {
  opacity: 1;
  color: #4d6258;
  -webkit-text-fill-color: #4d6258;
  background-color: #edf2ed;
  border-color: #c5d1c2;
  cursor: not-allowed;
}
.shell button:disabled,
.modal button:disabled {
  opacity: 1;
  color: #52675d;
  -webkit-text-fill-color: #52675d;
  background: #e6ede6;
  border-color: #c5d1c2;
  box-shadow: none;
  filter: none;
  cursor: not-allowed;
}
.shell :is(input, textarea)[readonly],
.modal :is(input, textarea)[readonly] {
  color: #3e5b4b;
  -webkit-text-fill-color: #3e5b4b;
  background-color: #f4f7f0;
  opacity: 1;
}
.shell :is(input, select, textarea):focus-visible,
.modal :is(input, select, textarea):focus-visible {
  outline: 3px solid #326b5e;
  outline-offset: 2px;
  border-color: #648b66;
}
.shell :is(input, select, textarea)[aria-invalid="true"],
.modal :is(input, select, textarea)[aria-invalid="true"] {
  border-color: #b35c49;
  background-color: #fffaf7;
}
.shell .field,
.modal .field,
.shell .form-grid > *,
.modal .form-grid > * { min-width: 0; }
.shell .form-grid,
.modal .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field-current-value {
  display: block;
  margin-top: 6px;
  min-width: 0;
  max-width: 100%;
  color: #526b5f;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.shell .toolbar { gap: 10px 12px; flex-wrap: wrap; }
.shell .toolbar > select { flex: 1 1 180px; width: auto; min-width: 0; max-width: 100%; }
.shell .toolbar > input { flex: 2 1 220px; width: auto; min-width: 0; max-width: 100%; }
.shell .toolbar > label { flex: 1 1 160px; min-width: 0; max-width: 100%; }
.shell .toolbar > label :is(input, select) { width: 100%; min-width: 0; max-width: 100%; }
.shell .av2-notif-search { display: flex; flex-wrap: wrap; gap: 10px; }
.shell .av2-notif-search input { flex: 2 1 220px; min-width: 0; max-width: 100%; }
.shell .av2-notif-search select { flex: 1 1 200px; min-width: 0; max-width: 100%; }
.shell .head-actions { flex-wrap: wrap; min-width: 0; }
.shell .head-actions .btn { white-space: normal; }
.shell .card-head { flex-wrap: wrap; }
.shell .card-head > div { min-width: 0; }

/* Quiet color accents retain the approved green and neutral palette. */
.shell .card { border-color: #dce5d7; box-shadow: 0 3px 14px #17382d04; }
.shell .metric { border-top: 3px solid #6d9460; background: linear-gradient(145deg, #fff, #fbfdf8); }
.shell .metric:nth-child(2) { border-top-color: #6b91b5; }
.shell .metric:nth-child(3) { border-top-color: #bd9652; }
.shell .metric:nth-child(4) { border-top-color: #5d9b8b; }
.shell .metric-icon { background: #edf4e4; color: #51773e; }
.shell .metric:nth-child(2) .metric-icon { background: #eaf2fa; color: #3e6c96; }
.shell .metric:nth-child(3) .metric-icon { background: #fff3db; color: #886423; }
.shell .metric:nth-child(4) .metric-icon { background: #e7f4ee; color: #3c7b68; }
.shell .badge { border: 1px solid #d9e5c8; }
.shell .badge.blue { background: #eaf2fa; color: #355d82; border-color: #d1e1f0; }
.shell .badge.amber { background: #fff3db; color: #7a551e; border-color: #efd9af; }
.shell .badge.red { background: #fbece9; color: #9a4232; border-color: #edcbc2; }
.shell .badge.gray { background: #eff3f0; color: #54685b; border-color: #dce5db; }
.shell .work-icon { background: #eef4e6; color: #67874b; }
.shell .progress-fill { background: linear-gradient(90deg, #6b9050, #91ac68); }
.shell .table-scroll th { background: #f4f8ef; color: #49633e; }
.shell .table-scroll tbody tr:nth-child(even) { background-color: #fcfdf9; }
.shell .nav-item.active { box-shadow: inset 3px 0 #8aa75e; }
.modal .modal-head { background: linear-gradient(110deg, #fff, #f5f8ef); }
.modal .modal-foot { background: #f5f8ef; }
@media (hover: hover) {
  .shell select:not(:disabled):hover,
  .modal select:not(:disabled):hover { border-color: #8ba77d; }
  .shell .table-scroll tbody tr:hover { background-color: #f1f7e9; }
  .shell .btn:not(.primary):not(.danger):not(:disabled):hover,
  .modal .btn:not(.primary):not(.danger):not(:disabled):hover {
    border-color: #9cb48b;
    background-color: #eef5e7;
    box-shadow: 0 3px 10px #244d2f0b;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .shell select,
  .modal select { transition: border-color .16s ease, background-color .16s ease; }
}
@media (max-width: 730px) {
  .shell select:not([multiple]),
  .modal select:not([multiple]),
  .shell input[type="search"],
  .modal input[type="search"] { font-size: 16px; min-height: 46px; }
  .shell select option,
  .modal select option,
  .shell select optgroup,
  .modal select optgroup { font-size: 16px; }
  .shell .form-grid,
  .modal .form-grid { grid-template-columns: minmax(0, 1fr); }
  .shell .av2-notif-search { display: grid; grid-template-columns: minmax(0, 1fr); }
  .shell .av2-notif-search :is(input, select) { width: 100%; min-width: 0; }
  .shell .toolbar > :is(select, input, label) { flex-basis: 100%; width: 100%; }
  .shell .head-actions { gap: 9px; }
  .shell .head-actions .btn { flex: 1 1 140px; }
  .shell .card-head { gap: 10px 12px; }
  .shell .modal-foot > .btn,
  .modal .modal-foot > .btn { flex: 1 1 140px; white-space: normal; }
}
@media (max-width: 440px) {
  .shell .rv2-toolbar { grid-template-columns: minmax(0, 1fr); }
}
@media print {
  .shell .card { box-shadow: none; }
  .shell select:not([multiple]),
  .modal select:not([multiple]) { background-image: none; padding-right: 12px; }
}

.field-current-value[hidden]{display:none}
