:root {
    --ink: #22312e;
    --muted: #78827f;
    --canvas: #f4f6f4;
    --surface: #fff;
    --line: #e8ece9;
    --forest: #244f46;
    --forest-deep: #172b28;
    --mint: #e6f0ed;
    --teal: #518779;
    --amber: #b78537;
    --coral: #b86b5b;
    --blue: #597c91;
    --shadow: 0 2px 10px rgba(27, 45, 40, .035), 0 1px 2px rgba(27, 45, 40, .025);
}

* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; }
body { margin: 0; overflow-x: clip; background: var(--canvas); color: var(--ink); font-family: 'DM Sans', sans-serif; font-size: 18px; -webkit-font-smoothing: antialiased; }
button, select { font: inherit; }
a { color: inherit; text-decoration: none; }
.app-layout { min-height: 100vh; overflow-x: clip; }
.app-sidebar { position: fixed; z-index: 1040; inset: 0 auto 0 0; display: flex; width: 250px; flex-direction: column; padding: 25px 15px 15px; background: var(--forest-deep); color: #dce7e3; }
.brand-lockup { display: flex; align-items: center; gap: 11px; padding: 0 9px; color: #fff; }
.brand-mark { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid rgba(209, 231, 222, .22); border-radius: 10px; background: rgba(255,255,255,.08); color: #b9d6cb; font-size: 25px; }
.brand-copy { display: grid; font-family: 'Manrope', sans-serif; font-size: 18px; line-height: 1.3; }
.brand-copy strong:last-child { color: #b8d2c8; }
.sidebar-caption { margin: 37px 9px 10px; color: #829891; font-size: 12px; font-weight: 700; letter-spacing: 1.15px; }
.sidebar-nav { display: grid; gap: 3px; }
.sidebar-nav .nav-link, .sidebar-bottom > .nav-link { display: flex; min-height: 40px; align-items: center; gap: 12px; padding: 0 11px; border-radius: 6px; color: #aebeb9; font-size: 15px; font-weight: 500; transition: background .18s ease, color .18s ease; }
.sidebar-nav .nav-link i, .sidebar-bottom > .nav-link i { width: 17px; color: #8ea69f; font-size: 20px; }
.sidebar-nav .nav-link:hover, .sidebar-bottom > .nav-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar-nav .nav-link.active { background: #2e5b50; color: #fff; font-weight: 600; box-shadow: inset 2px 0 #a8cabc; }
.sidebar-nav .nav-link.active i { color: #c6dfd4; }
.nav-count { display: grid; min-width: 22px; height: 20px; margin-left: auto; place-items: center; border-radius: 5px; background: rgba(255,255,255,.10); color: #dae8e2; font-size: 13px; }
.sidebar-bottom { margin-top: auto; }
.sidebar-bottom .sidebar-caption { margin-top: 0; }
.sidebar-profile { display: flex; align-items: center; gap: 9px; margin-top: 17px; padding: 14px 4px 2px; border-top: 1px solid rgba(255,255,255,.10); }
.avatar { display: grid; flex: 0 0 auto; place-items: center; border-radius: 50%; font-weight: 700; }
.avatar-sidebar { width: 34px; height: 34px; background: #c4d7ce; color: #294d42; font-size: 13px; }
.profile-copy { display: grid; min-width: 0; gap: 3px; }
.profile-copy strong { color: #f3f6f4; font-size: 14px; font-weight: 600; }
.profile-copy span { overflow: hidden; color: #94a8a1; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.icon-button { display: inline-grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; padding: 0; border: 0; border-radius: 6px; background: transparent; color: #687671; font-size: 21px; transition: background .18s ease, color .18s ease; }
.icon-button:hover { background: #eef2ef; color: var(--forest); }
.sidebar-signout { margin-left: auto; color: #99aaa4; font-size: 19px; }
.sidebar-signout:hover { background: rgba(255,255,255,.08); color: #fff; }
.app-main { min-height: 100vh; margin-left: 250px; }
.topbar { position: sticky; z-index: 10; top: 0; display: flex; height: 62px; align-items: center; justify-content: space-between; padding: 0 34px; border-bottom: 1px solid #e9edea; background: rgba(255,255,255,.94); backdrop-filter: blur(12px); }
.topbar-left, .topbar-actions { display: flex; align-items: center; }
.breadcrumb-line { display: flex; align-items: center; gap: 10px; color: #969f9c; font-size: 14px; }
.breadcrumb-line i { color: #b6bfbb; font-size: 12px; }
.breadcrumb-line strong { color: #384742; font-weight: 600; }
.topbar-actions { gap: 17px; }
.notification-button { position: relative; color: #596661; }
.notification-dot { position: absolute; top: 7px; right: 7px; width: 6px; height: 6px; border: 1px solid #fff; border-radius: 50%; background: #c87a67; }
.topbar-divider { width: 1px; height: 26px; background: var(--line); }
.topbar-user { display: flex; align-items: center; gap: 9px; }
.avatar-topbar { width: 31px; height: 31px; background: #e5eee9; color: #36594d; font-size: 13px; }
.topbar-user-copy { display: grid; gap: 2px; }
.topbar-user-copy strong { color: #34423e; font-size: 14px; font-weight: 600; }
.topbar-user-copy span { color: #8b9591; font-size: 12px; }
.user-chevron { margin-left: 3px; color: #87918d; font-size: 12px; }
.menu-toggle { display: none; margin-right: 9px; }
.dashboard-content { width: min(100%, 1600px); margin: 0 auto; padding: 29px 34px 19px; }
.page-intro { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 21px; }
.eyebrow { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; color: #6c817a; font-size: 12px; font-weight: 700; letter-spacing: .9px; }
.eyebrow-mark { width: 6px; height: 6px; border-radius: 2px; background: #71988b; }
h1, h2, p { margin-top: 0; }
.page-intro h1 { margin-bottom: 6px; color: #243530; font-family: 'Manrope', sans-serif; font-size: 31px; font-weight: 700; letter-spacing: 0; }
.page-intro p { margin-bottom: 0; color: #818c88; font-size: 15px; }
.period-control { display: grid; min-width: 160px; gap: 5px; }
.period-control label { color: #77827e; font-size: 13px; font-weight: 600; }
.select-wrap { position: relative; }
.select-wrap > .bi-calendar3 { position: absolute; z-index: 1; top: 50%; left: 11px; color: #74817b; font-size: 18px; transform: translateY(-50%); pointer-events: none; }
.select-wrap .form-select { height: 36px; padding: 0 31px 0 32px; border: 1px solid #e3e9e5; border-radius: 6px; background-color: #fff; color: #35443e; font-size: 14px; box-shadow: none; appearance: none; }
.select-chevron { position: absolute; top: 50%; right: 11px; color: #73817b; font-size: 12px; transform: translateY(-50%); pointer-events: none; }
.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.metric-card { position: relative; display: block; min-width: 0; min-height: 125px; padding: 15px 16px 12px; overflow: hidden; border: 1px solid #e9eeeb; border-radius: 7px; background: var(--surface); box-shadow: var(--shadow); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.metric-card:hover { transform: translateY(-2px); border-color: #c9d8d2; box-shadow: 0 6px 18px rgba(27, 45, 40, .07); }
.metric-top { display: flex; min-height: 25px; align-items: center; justify-content: space-between; gap: 8px; color: #6d7974; font-size: 14px; font-weight: 600; }
.metric-icon { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; border-radius: 7px; font-size: 19px; }
.tone-teal { background: #e9f2ef; color: #4e8275; }
.tone-blue { background: #edf2f5; color: #5f7f92; }
.tone-amber { background: #f6f0e5; color: #a57b37; }
.tone-green { background: #edf3e9; color: #657f50; }
.metric-value { margin-top: 6px; color: #253530; font-family: 'Manrope', sans-serif; font-size: 35px; font-weight: 700; line-height: 1.05; }
.metric-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; color: #929b97; font-size: 12px; }
.metric-trend { flex: 0 0 auto; font-size: 12px; font-weight: 700; }
.tone-text-teal { color: #4b8274; }
.tone-text-blue { color: #5f7f92; }
.tone-text-amber { color: #ad7d31; }
.tone-text-green { color: #688355; }
.metric-period-note { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.dashboard-inventory-panel { margin-bottom: 14px; padding: 18px; }
.dashboard-inventory-heading { align-items: center; margin-bottom: 15px; }
.dashboard-inventory-heading .eyebrow { margin-bottom: 5px; font-size: 10px; }
.dashboard-inventory-heading h2 { margin-bottom: 4px; color: #2e3d38; font-family: 'Manrope', sans-serif; font-size: 19px; font-weight: 700; }
.dashboard-inventory-heading p { margin: 0; color: #8b9591; font-size: 13px; }
.dashboard-inventory-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.dashboard-inventory-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.dashboard-inventory-kpis article { position: relative; display: grid; min-width: 0; gap: 7px; padding: 12px 13px; border: 1px solid #edf0ee; border-radius: 6px; background: #fbfcfb; }
.dashboard-inventory-kpis article > span { color: #7c8882; font-size: 12px; }
.dashboard-inventory-kpis article > strong { color: #2e4039; font-family: 'Manrope', sans-serif; font-size: clamp(19px, 2vw, 25px); font-weight: 700; line-height: 1.1; }
.dashboard-inventory-kpis article > strong small { color: #87928c; font: 500 13px 'DM Sans', sans-serif; }
.dashboard-inventory-kpis article > i { position: absolute; top: 12px; right: 12px; color: #a2b5ac; font-size: 16px; }
.dashboard-inventory-trend { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(220px, .8fr); gap: 14px; margin-top: 14px; padding-top: 14px; border-top: 1px solid #edf0ee; }
.dashboard-inventory-chart .panel-heading { align-items: center; }
.dashboard-inventory-chart .panel-heading h3 { margin: 0 0 3px; color: #394842; font-size: 14px; font-weight: 700; }
.dashboard-inventory-chart .panel-heading p { margin: 0; color: #8b9591; font-size: 11px; }
.dashboard-inventory-canvas { position: relative; height: 175px; margin-top: 8px; }
.dashboard-inventory-empty { display: grid; min-height: 125px; margin: 0; place-items: center; color: #8a9690; font-size: 12px; text-align: center; }
.dashboard-inventory-coverage { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 13px 15px; border: 1px solid #edf0ee; border-radius: 6px; background: #fbfcfb; }
.dashboard-inventory-coverage-icon { display: grid; width: 31px; height: 31px; margin-bottom: 9px; place-items: center; border-radius: 7px; background: #e9f2ef; color: #518779; font-size: 17px; }
.dashboard-inventory-coverage > strong { color: #43534b; font-size: 14px; }
.dashboard-inventory-coverage > p { margin: 5px 0 11px; color: #828e87; font-size: 12px; line-height: 1.5; }
.dashboard-inventory-coverage .progress { width: 100%; height: 6px; margin-bottom: 11px; background: #e9eeeb; }
.dashboard-inventory-coverage .progress-bar { background: #6c9688; }
.dashboard-inventory-coverage .text-action { font-size: 12px; }
.insight-grid { display: grid; grid-template-columns: minmax(0, .91fr) minmax(0, 1.35fr); gap: 14px; margin-bottom: 14px; }
.panel { min-width: 0; border: 1px solid #e8edea; border-radius: 7px; background: var(--surface); box-shadow: var(--shadow); }
.chart-panel, .trend-panel, .branch-panel, .activity-panel { padding: 17px 18px 15px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.panel-heading h2 { margin-bottom: 4px; color: #2e3d38; font-family: 'Manrope', sans-serif; font-size: 18px; font-weight: 700; letter-spacing: 0; }
.panel-heading p { margin-bottom: 0; color: #8b9591; font-size: 13px; }
.subtle-button { width: 28px; height: 28px; color: #7d8984; }
.status-chart-layout { display: flex; min-height: 177px; align-items: center; justify-content: center; gap: clamp(12px, 3vw, 43px); padding: 10px 8px 2px; }
.doughnut-wrap { position: relative; width: 152px; height: 152px; flex: 0 0 152px; }
.doughnut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.doughnut-center strong { color: #2e4039; font-family: 'Manrope', sans-serif; font-size: 30px; line-height: 1.2; }
.doughnut-center span { margin-top: 2px; color: #909a96; font-size: 12px; }
.chart-legend { display: grid; min-width: 124px; gap: 10px; }
.chart-legend > div { display: grid; grid-template-columns: 8px 1fr auto; align-items: center; gap: 8px; color: #707c77; font-size: 13px; }
.chart-legend strong { color: #384640; font-size: 13px; font-weight: 700; }
.legend-dot { width: 7px; height: 7px; border-radius: 2px; }
.dot-pending { background: #c5d7d2; }.dot-progress { background: #5c9286; }.dot-review { background: #d5a85d; }.dot-closed { background: #244f46; }.dot-overdue { background: #c97866; }
.chart-period-label { padding: 5px 8px; border: 1px solid #edf0ee; border-radius: 5px; color: #7d8883; font-size: 12px; white-space: nowrap; }
.line-chart-wrap { height: 169px; margin-top: 14px; }
.line-legend { display: flex; justify-content: center; gap: 19px; margin-top: 6px; color: #74807a; font-size: 12px; }
.line-legend > span { display: flex; align-items: center; gap: 6px; }
.legend-line { width: 15px; height: 2px; border-radius: 2px; }
.line-generated { background: #638e83; }.line-resolved { background: repeating-linear-gradient(90deg, #d2a256 0 5px, transparent 5px 8px); }
.operations-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin-bottom: 14px; }
.branch-panel, .activity-panel { min-height: 290px; }
.text-action { color: #4d7c6f; font-size: 13px; font-weight: 600; white-space: nowrap; }
.text-action:hover { color: #274f45; }
.text-action i { margin-left: 3px; font-size: 12px; }
.branch-list { display: grid; gap: 14px; margin-top: 16px; }
.branch-row { display: flex; align-items: center; gap: 10px; }
.branch-symbol { display: grid; width: 31px; height: 31px; flex: 0 0 auto; place-items: center; border-radius: 6px; background: #f0f4f1; color: #64877a; font-size: 18px; }
.branch-info { min-width: 0; flex: 1; }
.branch-name-line { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.branch-name-line strong { overflow: hidden; color: #394842; font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.branch-name-line > span { flex: 0 0 auto; color: #8a9590; font-size: 12px; }
.branch-progress { height: 4px; overflow: visible; border-radius: 4px; background: #edf1ee; }
.branch-progress .progress-bar { border-radius: 4px; background: #6c9688; }
.branch-progress .progress-low { background: #c69a57; }
.compliance-label { display: block; margin-top: 4px; color: #98a19d; font-size: 11px; }
.compliance-label strong { color: #67766f; font-weight: 600; }
.activity-list { position: relative; display: grid; gap: 0; margin-top: 12px; }
.activity-list::before { position: absolute; top: 15px; bottom: 17px; left: 13px; width: 1px; background: #e8eeeb; content: ''; }
.activity-item { position: relative; display: flex; gap: 10px; padding: 7px 0; }
.activity-icon { z-index: 1; display: grid; width: 27px; height: 27px; flex: 0 0 auto; place-items: center; border: 2px solid #fff; border-radius: 50%; font-size: 13px; }
.activity-copy { min-width: 0; flex: 1; padding-top: 1px; }
.activity-copy p { margin-bottom: 5px; color: #47554f; font-size: 13px; line-height: 1.35; }
.activity-copy > div { display: flex; justify-content: space-between; gap: 8px; color: #9aa39f; font-size: 11px; }
.activity-copy time { flex: 0 0 auto; }
.alerts-strip { display: grid; grid-template-columns: 1.02fr repeat(3, 1fr); align-items: center; gap: 8px; margin-bottom: 14px; padding: 12px 15px; border: 1px solid #e8edea; border-radius: 7px; background: #fff; box-shadow: var(--shadow); }
.alerts-heading { display: flex; align-items: center; gap: 9px; }
.alerts-icon { display: grid; width: 31px; height: 31px; flex: 0 0 auto; place-items: center; border-radius: 7px; background: #f5eee3; color: #a77c3a; font-size: 18px; }
.alerts-heading > div { display: grid; gap: 3px; }
.alerts-heading strong { color: #394740; font-size: 13px; font-weight: 700; }
.alerts-heading span:last-child { color: #929c97; font-size: 11px; }
.alert-item { display: flex; min-width: 0; align-items: center; gap: 8px; padding: 4px 8px; border-left: 1px solid #edf0ee; transition: background .15s ease; }
.alert-item:hover { border-radius: 5px; background: #f8faf8; }
.alert-number { display: grid; width: 27px; height: 27px; flex: 0 0 auto; place-items: center; border-radius: 6px; background: #f8eeeb; color: #b56d5c; font-family: 'Manrope', sans-serif; font-size: 18px; font-weight: 700; }
.alert-due .alert-number { background: #f7f2e7; color: #a88242; }
.alert-review .alert-number { background: #edf2f4; color: #668196; }
.alert-item > span:nth-child(2) { display: grid; min-width: 0; gap: 3px; }
.alert-item strong { overflow: hidden; color: #4b5752; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.alert-item small { overflow: hidden; color: #929c97; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.alert-item > i { margin-left: auto; color: #9ca7a2; font-size: 12px; }
.findings-panel { overflow: hidden; }
.findings-heading { align-items: center; padding: 17px 18px 14px; }
.table-actions { display: flex; flex: 0 0 auto; gap: 7px; }
.button-secondary, .button-primary { display: inline-flex; min-height: 32px; align-items: center; justify-content: center; gap: 6px; padding: 0 10px; border: 1px solid #e1e8e4; border-radius: 5px; background: #fff; color: #596861; font-size: 12px; font-weight: 600; white-space: nowrap; transition: all .15s ease; }
.button-secondary:hover { border-color: #b8cbc2; background: #f7faf8; }
.button-primary { border-color: var(--forest); background: var(--forest); color: #fff; }
.button-primary:hover { border-color: #1b4038; background: #1b4038; color: #fff; }
.findings-table { min-width: 1120px; border-top: 1px solid #edf0ee; }
.findings-table thead th { padding: 10px 12px; border-bottom: 1px solid #edf0ee; background: #fafbfa; color: #84908a; font-size: 11px; font-weight: 700; white-space: nowrap; }
.findings-table thead th:first-child, .findings-table tbody td:first-child { padding-left: 18px; }
.findings-table tbody td { padding: 11px 12px; border-bottom: 1px solid #f0f2f1; color: #59655f; font-size: 12px; vertical-align: middle; }
.findings-table tbody tr:last-child td { border-bottom: 0; }
.findings-table tbody tr:hover { background: #fbfcfb; }
.finding-code { color: #477969; font-size: 12px; font-weight: 700; white-space: nowrap; }
.finding-code:hover { color: #244f46; text-decoration: underline; text-underline-offset: 2px; }
.nowrap-cell { white-space: nowrap; }
.description-cell { max-width: 195px; line-height: 1.45; }
.priority-badge, .status-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 4px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.priority-badge i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.priority-baja { background: #eef3ed; color: #66815c; }.priority-media { background: #f5f2e8; color: #997b40; }.priority-alta { background: #f7ede8; color: #b36e52; }.priority-crítica { background: #f5e9e8; color: #a85750; }
.status-pendiente { background: #f2f3ef; color: #747d70; }.status-asignado { background: #edf2f5; color: #607e91; }.status-en-proceso { background: #eaf2ef; color: #4e7d70; }.status-en-validación { background: #f6f1e6; color: #9d7a39; }.status-cerrado { background: #edf3e9; color: #668051; }.status-vencido { background: #f7ece9; color: #b46858; }
.row-action { width: 26px; height: 26px; font-size: 18px; }
.table-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 18px; border-top: 1px solid #edf0ee; color: #89938f; font-size: 12px; }
.table-footer strong { color: #48564f; font-weight: 700; }
.table-footer a { color: #4b7c6e; font-weight: 600; white-space: nowrap; }
.table-footer a i { margin-left: 4px; }
.page-footer { display: flex; justify-content: space-between; gap: 15px; padding: 14px 2px 3px; color: #9aa39f; font-size: 12px; }
.footer-dot { padding: 0 4px; color: #c2cac6; }
.app-toast { background: #263e37; color: #fff; box-shadow: 0 8px 26px rgba(24, 45, 38, .18); font-size: 15px; }
.app-toast .btn-close { filter: invert(1); }
.reveal-in { animation: reveal-in .42s both; animation-delay: var(--reveal-delay, 0ms); }
@keyframes reveal-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
.is-updated .metric-value { animation: value-change .28s ease; }
@keyframes value-change { 50% { opacity: .4; transform: translateY(-2px); } }
.sidebar-backdrop { display: none; }

@media (min-width: 1500px) {
    .dashboard-content { padding-right: 43px; padding-left: 43px; }
    .metric-card { min-height: 132px; padding: 17px 18px 13px; }
    .status-chart-layout { min-height: 191px; }
    .doughnut-wrap { width: 164px; height: 164px; flex-basis: 164px; }
    .line-chart-wrap { height: 183px; }
}
@media (max-width: 1100px) {
    .app-sidebar { width: 224px; }
    .app-main { margin-left: 224px; }
    .topbar { padding-right: 25px; padding-left: 25px; }
    .dashboard-content { padding-right: 24px; padding-left: 24px; }
    .insight-grid { grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr); }
    .status-chart-layout { gap: 16px; }
    .doughnut-wrap { width: 130px; height: 130px; flex-basis: 130px; }
    .alerts-strip { grid-template-columns: 1fr 1fr; }
    .alert-item:nth-child(2) { border-left: 0; }
}
@media (max-width: 850px) {
    .app-sidebar { z-index: 1055; width: 260px; transform: translateX(-100%); transition: transform .22s ease; }
    .app-sidebar.is-open { transform: translateX(0); }
    .sidebar-backdrop { position: fixed; z-index: 1050; inset: 0; display: block; border: 0; background: rgba(18, 31, 27, .38); opacity: 0; pointer-events: none; transition: opacity .22s ease; }
    .sidebar-backdrop.is-visible { opacity: 1; pointer-events: auto; }
    body.menu-open { overflow: hidden; }
    .app-main { margin-left: 0; }
    .menu-toggle { display: inline-grid; }
    .topbar { height: 58px; padding-right: 22px; padding-left: 16px; }
    .dashboard-content { padding: 25px 22px 18px; }
    .insight-grid { grid-template-columns: 1fr 1.2fr; }
}
@media (max-width: 650px) {
    .topbar { padding-right: 14px; }
    .topbar-actions { gap: 10px; }
    .topbar-user-copy, .user-chevron, .topbar-divider { display: none; }
    .topbar-user { margin-left: 0; }
    .breadcrumb-line { gap: 7px; font-size: 13px; }
    .dashboard-content { padding: 22px 14px 16px; }
    .page-intro { align-items: flex-start; flex-direction: column; gap: 14px; margin-bottom: 17px; }
    .page-intro h1 { font-size: 28px; }
    .page-intro p { max-width: 330px; font-size: 14px; line-height: 1.5; }
    .period-control { width: 100%; grid-template-columns: auto minmax(145px, 1fr); align-items: center; gap: 12px; }
    .period-control label { font-size: 13px; }
    .dashboard-inventory-panel { padding: 14px 12px; }
    .dashboard-inventory-heading { align-items: flex-start; flex-direction: column; }
    .dashboard-inventory-actions { width: 100%; }
    .dashboard-inventory-actions > * { flex: 1; justify-content: center; }
    .dashboard-inventory-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
    .dashboard-inventory-kpis article { padding: 10px; }
    .dashboard-inventory-kpis article > span { max-width: calc(100% - 18px); font-size: 11px; }
    .dashboard-inventory-kpis article > strong { font-size: 20px; }
    .dashboard-inventory-trend { grid-template-columns: 1fr; gap: 10px; }
    .dashboard-inventory-canvas { height: 165px; }
    .dashboard-inventory-coverage { padding: 12px; }
    .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
    .metric-card { min-height: 124px; padding: 12px 11px 10px; }
    .metric-top { align-items: flex-start; font-size: 13px; line-height: 1.35; }
    .metric-icon { width: 27px; height: 27px; font-size: 15px; }
    .metric-value { margin-top: 9px; font-size: 33px; }
    .metric-bottom { align-items: flex-start; flex-direction: column; gap: 4px; margin-top: 6px; font-size: 11px; }
    .insight-grid, .operations-grid { grid-template-columns: 1fr; gap: 10px; }
    .chart-panel, .trend-panel, .branch-panel, .activity-panel { padding: 15px 13px 13px; }
    .status-chart-layout { min-height: 167px; gap: 22px; }
    .doughnut-wrap { width: 142px; height: 142px; flex-basis: 142px; }
    .chart-legend { min-width: 119px; gap: 9px; }
    .line-chart-wrap { height: 185px; margin-top: 11px; }
    .branch-panel, .activity-panel { min-height: auto; }
    .branch-list { gap: 12px; }
    .alerts-strip { grid-template-columns: 1fr; gap: 5px; padding: 12px; }
    .alerts-heading { padding: 2px 3px 8px; }
    .alert-item { min-height: 42px; padding: 6px 4px; border-top: 1px solid #edf0ee; border-left: 0; }
    .alert-number { width: 28px; height: 28px; }
    .alert-item strong { font-size: 12px; }
    .alert-item small { font-size: 11px; }
    .findings-heading { align-items: flex-start; flex-direction: column; padding: 15px 13px 12px; }
    .table-actions { width: 100%; }
    .table-actions > * { flex: 1; }
    .findings-table thead th:first-child, .findings-table tbody td:first-child { padding-left: 13px; }
    .table-footer { align-items: flex-start; flex-direction: column; padding: 10px 13px; }
    .page-footer { flex-direction: column; gap: 5px; }
}
@media (max-width: 370px) {
    .metric-card { min-height: 130px; }
    .metric-top { font-size: 12px; }
    .metric-value { font-size: 31px; }
    .status-chart-layout { gap: 13px; }
    .doughnut-wrap { width: 124px; height: 124px; flex-basis: 124px; }
    .chart-legend { min-width: 112px; }
    .chart-legend > div { gap: 6px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.supervision-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.supervision-intro-meta { display: flex; align-items: center; gap: 7px; padding-bottom: 3px; color: #7e8a84; font-size: 13px; white-space: nowrap; }
.supervision-intro-meta strong { color: #4a5a52; font-weight: 600; }
.meta-dot { width: 6px; height: 6px; border-radius: 50%; background: #79a18f; }
.supervision-summary { min-height: 105px; }
.supervision-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 15px; margin-bottom: 13px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 7px; background: #fff; box-shadow: var(--shadow); }
.supervision-filters { display: flex; min-width: 0; flex: 1; align-items: end; gap: 9px; }
.filter-field { display: grid; min-width: 135px; gap: 5px; }
.filter-field.search-field { width: min(290px, 38%); }
.filter-field label { color: #77827e; font-size: 12px; font-weight: 600; }
.filter-control { height: 34px; border: 1px solid #e3e9e5; border-radius: 5px; background-color: #fff; color: #43514b; font-size: 13px; box-shadow: none !important; }
.search-control { position: relative; }
.search-control i { position: absolute; top: 50%; left: 10px; color: #8b9690; font-size: 15px; transform: translateY(-50%); pointer-events: none; }
.search-control input { padding-left: 30px; }
.supervision-results-count { margin: 0 0 8px 2px; color: #89938e; font-size: 12px; }
.supervision-results-count strong { color: #43534b; }
.supervision-table-wrap { overflow-x: auto; }
.supervision-table { min-width: 890px; }
.supervision-table thead th { padding: 11px 13px; border-bottom: 1px solid #edf0ee; background: #fafbfa; color: #84908a; font-size: 11px; font-weight: 700; white-space: nowrap; }
.supervision-table tbody td { padding: 12px 13px; border-bottom: 1px solid #f0f2f1; color: #59655f; font-size: 12px; vertical-align: middle; }
.supervision-table tbody tr:last-child td { border-bottom: 0; }
.supervision-table tbody tr:hover { background: #fbfcfb; }
.supervision-code { color: #477969; font-size: 12px; font-weight: 700; white-space: nowrap; }
.supervision-code:hover { color: #244f46; text-decoration: underline; text-underline-offset: 2px; }
.supervision-branch { display: block; color: #3d4b45; font-weight: 600; }
.supervision-zone { display: block; margin-top: 3px; color: #929b97; font-size: 11px; }
.supervision-status { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 4px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.supervision-status::before { width: 5px; height: 5px; border-radius: 50%; background: currentColor; content: ''; }
.supervision-status-programada { background: #edf2f5; color: #607e91; }
.supervision-status-en-curso { background: #eaf2ef; color: #4e7d70; }
.supervision-status-finalizada { background: #edf3e9; color: #668051; }
.supervision-status-reprogramar { background: #f6f1e6; color: #9d7a39; }
.supervision-progress-cell { min-width: 105px; }
.supervision-progress-line { display: flex; justify-content: space-between; gap: 6px; margin-bottom: 5px; color: #748079; font-size: 11px; }
.supervision-progress-line strong { color: #52625a; font-weight: 600; }
.supervision-progress { height: 4px; border-radius: 4px; background: #edf1ee; }
.supervision-progress .progress-bar { border-radius: 4px; background: #6c9688; }
.supervision-progress .progress-bar.progress-empty { background: #d9e1dc; }
.supervision-empty { padding: 40px 16px !important; color: #87928c !important; text-align: center; }
.supervision-empty i { display: block; margin-bottom: 7px; color: #a4b2ab; font-size: 30px; }
.supervision-empty strong { display: block; margin-bottom: 3px; color: #4b5a53; font-size: 14px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; margin-top: 20px; }
.detail-field { display: grid; gap: 4px; }
.detail-field > span { color: #88938d; font-size: 12px; }
.detail-field > strong { color: #394841; font-size: 14px; font-weight: 600; }
.supervision-note { margin-top: 19px; padding: 11px 12px; border: 1px solid #e8eeea; border-radius: 5px; background: #f8faf8; color: #69756f; font-size: 13px; line-height: 1.55; }
.supervision-note strong { display: block; margin-bottom: 3px; color: #45554d; font-size: 12px; }
.demo-notice { display: flex; align-items: flex-start; gap: 8px; margin-top: 14px; padding: 10px 12px; border: 1px solid #e9eee8; border-radius: 5px; background: #f8faf6; color: #7b877e; font-size: 12px; line-height: 1.5; }
.demo-notice i { color: #8a9b79; font-size: 15px; }
.action-plan-guidance { margin: 0 0 13px; }
.action-plan-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.action-plan-create-panel { margin-bottom: 13px; overflow: hidden; }
.action-plan-create-panel > summary { display: flex; min-height: 52px; align-items: center; justify-content: space-between; padding: 0 16px; color: #405149; font-size: 14px; font-weight: 700; cursor: pointer; list-style: none; }
.action-plan-create-panel > summary::-webkit-details-marker { display: none; }
.action-plan-create-panel > summary > span { display: inline-flex; align-items: center; gap: 8px; }
.action-plan-create-panel > summary > span > i { color: #518779; font-size: 17px; }
.action-plan-create-panel[open] > summary { border-bottom: 1px solid #edf0ee; }
.action-plan-create-panel[open] > summary > .bi-chevron-down { transform: rotate(180deg); }
.action-plan-form { padding: 16px; }
.action-plan-form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.action-plan-form-grid .filter-field { min-width: 0; }
.action-plan-field-wide { grid-column: 1 / -1; }
.action-plan-form .form-select, .action-plan-form .form-control { min-height: 37px; border-color: #e1e8e4; color: #43514b; font-size: 13px; box-shadow: none; }
.action-plan-form textarea.form-control { min-height: 72px; }
.action-plan-form-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.action-plan-form-footer small, .action-plan-evaluation-hint { color: #87928c; font-size: 11px; }
.action-plan-prerequisite { display: flex; align-items: center; gap: 8px; padding: 14px 16px; color: #748079; font-size: 12px; }
.action-plan-prerequisite i { color: #8a9b79; }
.action-plan-filters { margin-top: 0; }
.action-plan-filters .filter-field { min-width: 190px; }
.action-plan-list { margin-bottom: 13px; }
.action-plan-table { min-width: 980px; border-top: 1px solid #edf0ee; }
.action-plan-table thead th { padding: 10px 12px; border-bottom: 1px solid #edf0ee; background: #fafbfa; color: #84908a; font-size: 11px; font-weight: 700; white-space: nowrap; }
.action-plan-table thead th:first-child, .action-plan-table tbody td:first-child { padding-left: 18px; }
.action-plan-table tbody td { padding: 11px 12px; border-bottom: 1px solid #f0f2f1; color: #59655f; font-size: 12px; vertical-align: middle; }
.action-plan-title, .action-plan-type { display: block; }
.action-plan-title { margin-top: 3px; color: #43514b; font-weight: 600; }
.action-plan-type { margin-top: 3px; color: #89948e; font-size: 10px; }
.status-planificado { background: #edf2f5; color: #607e91; }
.status-completado { background: #edf3e9; color: #668051; }
.action-plan-details > summary, .action-plan-evaluation > summary, .action-plan-history > summary { color: #426c5f; font-size: 11px; font-weight: 600; cursor: pointer; list-style: none; }
.action-plan-details > summary::-webkit-details-marker, .action-plan-evaluation > summary::-webkit-details-marker, .action-plan-history > summary::-webkit-details-marker { display: none; }
.action-plan-details > summary > i, .action-plan-evaluation > summary > i { margin-right: 4px; }
.action-plan-detail-body { min-width: 280px; max-width: 410px; padding: 10px 0 3px; white-space: normal; }
.action-plan-detail-body > p { margin: 0 0 9px; color: #6f7c75; font-size: 11px; line-height: 1.5; }
.action-plan-detail-body > p > strong { color: #4a5a52; }
.action-plan-status-form { margin: 10px 0; padding: 10px; border: 1px solid #edf0ee; border-radius: 5px; background: #fafbfa; }
.action-plan-status-form > label { display: block; margin-bottom: 5px; color: #75827b; font-size: 10px; font-weight: 600; }
.action-plan-status-form > div { display: flex; gap: 6px; }
.action-plan-status-form .form-select { min-width: 0; min-height: 32px; font-size: 11px; }
.action-plan-evaluation { margin: 10px 0; padding-top: 9px; border-top: 1px solid #edf0ee; }
.action-plan-evaluation-form { display: grid; gap: 10px; margin-top: 9px; }
.action-plan-evaluation-form fieldset { display: grid; gap: 8px; margin: 0; padding: 9px; border: 1px solid #edf0ee; border-radius: 5px; }
.action-plan-evaluation-form legend { float: none; width: auto; margin: 0; color: #4b5c53; font-size: 11px; font-weight: 700; }
.action-plan-check-row { display: grid; grid-template-columns: minmax(0, 1fr) 120px; align-items: center; gap: 8px; }
.action-plan-check-row label { color: #748079; font-size: 10px; line-height: 1.4; }
.action-plan-check-row .form-select, .action-plan-evaluation-form > .filter-field .form-select { min-height: 31px; font-size: 10px; }
.action-plan-evaluation-form textarea.form-control { min-height: 58px; font-size: 11px; }
.action-plan-history { margin-top: 10px; padding-top: 9px; border-top: 1px solid #edf0ee; }
.action-plan-history article { display: grid; gap: 4px; margin-top: 8px; padding: 8px; border-radius: 4px; background: #fafbfa; }
.action-plan-history article > strong { color: #4d685c; font-size: 11px; }
.action-plan-history article > span, .action-plan-history article > small { color: #79857f; font-size: 10px; line-height: 1.4; }
.action-plan-history article > p { margin: 2px 0 0; color: #59655f; font-size: 10px; line-height: 1.5; }
.supervision-modal .modal-content { border: 1px solid #e8edea; border-radius: 8px; box-shadow: 0 18px 55px rgba(20, 40, 32, .16); }
.supervision-modal .modal-header { padding: 18px 20px 13px; border-bottom-color: #edf0ee; }
.supervision-modal .modal-title { color: #2e3d38; font-family: 'Manrope', sans-serif; font-size: 20px; font-weight: 700; }
.supervision-modal .modal-body { padding: 18px 20px; }
.supervision-modal .modal-footer { padding: 12px 20px; border-top-color: #edf0ee; }
.supervision-modal .form-label { color: #69766f; font-size: 13px; font-weight: 600; }

.inventory-period-filter, .inventory-detail-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; }
.inventory-period-filter label { color: #77827e; font-size: 12px; font-weight: 600; }
.inventory-period-filter .form-select { width: auto; min-width: 98px; height: 34px; border-color: #e3e9e5; color: #43514b; font-size: 13px; }
.inventory-period-filter [data-quarter-filter] { min-width: 86px; }
.inventory-detail-filters { margin: -5px 0 13px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.inventory-detail-filters .filter-field { min-width: 180px; }
.inventory-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; margin-bottom: 13px; }
.inventory-summary-grid .metric-card { min-height: 116px; }
.tone-red { background: #f7ece9; color: #b46858; }
.inventory-chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin-bottom: 13px; }
.inventory-chart-panel { min-width: 0; padding: 16px 17px 12px; }
.inventory-chart-wrap { position: relative; height: 230px; margin-top: 14px; }
.inventory-insight-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 13px; padding: 13px 16px; border: 1px solid #e8edea; border-radius: 6px; background: #fff; }
.inventory-insight-strip > div { display: grid; gap: 4px; }
.inventory-insight-strip span { color: #89938e; font-size: 11px; }
.inventory-insight-strip strong { color: #35463f; font-size: 15px; font-weight: 700; }
.inventory-data-grid, .inventory-operations-grid { display: grid; gap: 13px; margin-bottom: 13px; }
.inventory-data-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.inventory-data-grid .panel-heading, .inventory-history-panel .panel-heading, .inventory-import-panel .panel-heading, .inventory-period-panel .panel-heading { padding: 15px 16px 12px; }
.inventory-table { min-width: 760px; border-top: 1px solid #edf0ee; }
.inventory-table thead th { padding: 9px 10px; border-bottom: 1px solid #edf0ee; background: #fafbfa; color: #84908a; font-size: 10px; font-weight: 700; white-space: nowrap; }
.inventory-table tbody td, .inventory-table tbody th { padding: 10px; border-bottom: 1px solid #f0f2f1; color: #59655f; font-size: 11px; white-space: nowrap; }
.inventory-table tbody th { color: #394842; font-weight: 600; }
.inventory-table tbody tr:last-child td, .inventory-table tbody tr:last-child th { border-bottom: 0; }
.inventory-empty { padding: 25px 14px !important; color: #87928c !important; text-align: center; white-space: normal !important; }
.inventory-operations-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.inventory-import-panel, .inventory-period-panel, .inventory-history-panel { min-width: 0; overflow: hidden; }
.inventory-import-panel form { padding: 0 16px 16px; }
.inventory-input-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.inventory-input-grid .form-control, .inventory-input-grid .form-select { min-width: 0; height: 35px; border-color: #e3e9e5; color: #43514b; font-size: 13px; box-shadow: none; }
.inventory-detail-upload { margin-top: 11px; }
.inventory-detail-upload .form-control { font-size: 12px; }
.inventory-detail-upload small { color: #89938e; font-size: 11px; line-height: 1.45; }
.inventory-form-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.inventory-period-list { padding: 0 14px 8px; }
.inventory-period-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 9px; padding: 10px 1px; border-top: 1px solid #edf0ee; }
.inventory-period-row > div:first-child { display: grid; gap: 3px; }
.inventory-period-row > div:first-child strong { color: #3a4943; font-size: 12px; }
.inventory-period-row > div:first-child span { color: #8b9591; font-size: 11px; }
.inventory-status { padding: 4px 7px; border-radius: 4px; font-size: 10px; font-weight: 700; }
.inventory-status.is-open { background: #edf2f5; color: #607e91; }
.inventory-status.is-closed { background: #edf3e9; color: #668051; }
.inventory-period-actions form { margin: 0; }
.inventory-closed-note { margin: 0 16px 16px; padding: 12px; border: 1px solid #f0e4df; border-radius: 5px; background: #faf3f0; color: #985e4e; font-size: 13px; }
.inventory-history-panel { margin-bottom: 13px; }

.inventory-excel-import-panel { margin-bottom: 13px; overflow: hidden; }
.inventory-excel-import-panel .panel-heading { padding: 15px 16px 12px; }
.inventory-excel-import-panel .panel-heading h2 { margin: 0 0 4px; color: #3c4a43; font-family: 'Manrope', sans-serif; font-size: 16px; font-weight: 700; }
.inventory-excel-import-panel .panel-heading p { margin: 0; color: #89938e; font-size: 12px; }
.inventory-excel-import-panel > form { padding: 0 16px 13px; }
.inventory-excel-import-controls { display: flex; align-items: center; gap: 9px; }
.inventory-excel-import-controls .form-control { min-width: 0; border-color: #e1e8e4; font-size: 12px; }
.inventory-excel-import-panel form > small { display: block; margin-top: 7px; color: #87928c; font-size: 11px; line-height: 1.5; }
.inventory-excel-import-status { display: flex; align-items: center; gap: 7px; padding: 10px 16px; border-top: 1px solid #edf0ee; color: #74847b; font-size: 11px; }
.inventory-excel-import-status > i { color: #518779; font-size: 14px; }
.inventory-excel-import-status strong { color: #4a5b52; font-weight: 600; }
.inventory-analytics-filters { display: flex; align-items: end; flex-wrap: wrap; gap: 9px; margin-bottom: 13px; padding: 13px; border: 1px solid var(--line); border-radius: 7px; background: #fff; box-shadow: var(--shadow); }
.inventory-analytics-filters .filter-field { min-width: 145px; }
.inventory-analytics-filters .filter-field:nth-child(3) { min-width: 190px; }
.inventory-analytics-filters .form-select { min-height: 36px; border-color: #e1e8e4; color: #43514b; font-size: 13px; box-shadow: none; }
.inventory-analytics-filters .button-primary, .inventory-analytics-filters .button-secondary { min-height: 36px; }
.inventory-analytics-kpis .metric-value { font-size: clamp(20px, 2vw, 27px); }
.inventory-analytics-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin-bottom: 13px; }
.inventory-analytics-chart { min-width: 0; padding: 16px 17px 13px; }
.inventory-analytics-chart-wide { grid-column: 1 / -1; }
.inventory-analytics-canvas { position: relative; height: 260px; margin-top: 12px; }
.inventory-analytics-canvas-trends { height: 420px; }
.inventory-analytics-canvas-rank { height: max(240px, calc(30px * var(--branch-count, 8))); max-height: 440px; }
.inventory-analytics-no-chart { display: grid; min-height: 120px; margin: 0; place-items: center; color: #8a9690; font-size: 13px; }
.inventory-analytics-empty { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 13px; padding: 18px; }
.inventory-analytics-empty .metric-icon { flex: 0 0 auto; }
.inventory-analytics-empty h2 { margin: 0 0 5px; color: #394a42; font-family: 'Manrope', sans-serif; font-size: 18px; font-weight: 700; }
.inventory-analytics-empty p { max-width: 720px; margin-bottom: 12px; color: #75817b; font-size: 13px; line-height: 1.55; }
.inventory-analytics-empty .button-primary { display: inline-flex; }
.inventory-analytics-matrix { margin-bottom: 13px; overflow: hidden; }
.inventory-analytics-table { min-width: 1840px; }
.inventory-analytics-table thead th, .inventory-analytics-table tbody td { text-align: right; }
.inventory-analytics-table thead th:first-child, .inventory-analytics-table tbody td:first-child { position: sticky; left: 0; z-index: 1; width: 42px; min-width: 42px; background: #fff; }
.inventory-analytics-table thead th:first-child { z-index: 2; background: #fafbfa; }
.inventory-analytics-table thead th:nth-child(2), .inventory-analytics-table tbody th { position: sticky; left: 42px; z-index: 1; min-width: 160px; background: #fff; text-align: left; }
.inventory-analytics-table thead th:nth-child(2) { z-index: 2; background: #fafbfa; }
.inventory-analytics-table .inventory-rate-cell { transition: background-color .15s ease; }
.inventory-analytics-inactive { display: inline-block; margin-left: 4px; color: #929c97; font-size: 9px; font-weight: 500; }
.inventory-analytics-method { display: flex; align-items: flex-start; gap: 10px; padding: 13px 15px; color: #718078; }
.inventory-analytics-method > i { margin-top: 2px; color: #6f9384; font-size: 16px; }
.inventory-analytics-method p { margin: 0; font-size: 12px; line-height: 1.55; }
.inventory-analytics-method strong { color: #4c6156; }

@media (max-width: 1100px) {
    .inventory-data-grid { grid-template-columns: 1fr; }
}
@media (max-width: 850px) {
    .inventory-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .action-plan-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .inventory-chart-grid, .inventory-operations-grid { grid-template-columns: 1fr; }
    .inventory-analytics-charts { grid-template-columns: 1fr; }
    .inventory-analytics-chart-wide { grid-column: auto; }
}
@media (max-width: 650px) {
    .action-plan-form-grid { grid-template-columns: 1fr; }
    .action-plan-field-wide { grid-column: auto; }
    .action-plan-form-footer { align-items: stretch; flex-direction: column; }
    .action-plan-form-footer .button-primary { justify-content: center; }
    .action-plan-summary { grid-template-columns: 1fr; }
    .action-plan-filters { align-items: stretch; }
    .action-plan-filters .filter-field { width: 100%; }
    .inventory-period-filter { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; }
    .inventory-period-filter .form-select { width: 100%; }
    .inventory-period-filter button { grid-column: 1 / -1; }
    .inventory-detail-filters { align-items: stretch; }
    .inventory-detail-filters .filter-field { width: 100%; }
    .inventory-summary-grid { gap: 8px; }
    .inventory-summary-grid .metric-card { min-height: 112px; }
    .inventory-chart-panel { padding: 14px 12px 11px; }
    .inventory-chart-wrap { height: 205px; }
    .inventory-insight-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 8px; padding: 12px; }
    .inventory-insight-strip strong { font-size: 13px; }
    .inventory-input-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .inventory-data-grid .panel-heading, .inventory-history-panel .panel-heading, .inventory-import-panel .panel-heading, .inventory-period-panel .panel-heading { padding-right: 12px; padding-left: 12px; }
    .inventory-period-list { padding-right: 11px; padding-left: 11px; }
    .inventory-analytics-filters { align-items: stretch; }
    .inventory-analytics-filters .filter-field { width: 100%; }
    .inventory-analytics-filters .button-primary, .inventory-analytics-filters .button-secondary { justify-content: center; }
    .inventory-analytics-chart { padding: 14px 12px 11px; }
    .inventory-analytics-canvas { height: 225px; }
    .inventory-analytics-canvas-trends { height: 360px; }
    .inventory-analytics-canvas-rank { height: 300px; }
    .inventory-analytics-empty { padding: 14px 12px; }
    .inventory-excel-import-panel > form { padding-right: 12px; padding-left: 12px; }
    .inventory-excel-import-controls { align-items: stretch; flex-direction: column; }
    .inventory-excel-import-controls .button-primary { justify-content: center; }
    .inventory-excel-import-status { align-items: flex-start; padding-right: 12px; padding-left: 12px; }
}
.supervision-modal .form-control, .supervision-modal .form-select { min-height: 37px; border-color: #e1e8e4; border-radius: 5px; color: #43514b; font-size: 14px; box-shadow: none; }
.supervision-modal .form-control:focus, .supervision-modal .form-select:focus { border-color: #89a99b; box-shadow: 0 0 0 3px rgba(91, 137, 119, .11); }
.branch-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 15px; }
.branch-summary { min-height: 111px; }
.branch-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 15px; margin-bottom: 13px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 7px; background: #fff; box-shadow: var(--shadow); }
.branch-filters { display: flex; min-width: 0; flex: 1; align-items: end; gap: 9px; }
.branch-filters .search-field { width: min(300px, 42%); }
.branch-list-heading { align-items: center; padding: 17px 18px 14px; }
.branch-table { min-width: 920px; border-top: 1px solid #edf0ee; }
.branch-table thead th { padding: 10px 12px; border-bottom: 1px solid #edf0ee; background: #fafbfa; color: #84908a; font-size: 11px; font-weight: 700; white-space: nowrap; }
.branch-table thead th:first-child, .branch-table tbody td:first-child { padding-left: 18px; }
.branch-table tbody td { padding: 10px 12px; border-bottom: 1px solid #f0f2f1; color: #59655f; font-size: 12px; vertical-align: middle; }
.branch-table tbody tr:last-child td { border-bottom: 0; }
.branch-table tbody tr:hover { background: #fbfcfb; }
.branch-code { color: #477969; font-size: 12px; font-weight: 700; white-space: nowrap; }
.branch-table-name { display: flex; min-width: 190px; align-items: center; gap: 9px; }
.branch-table-icon { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; border-radius: 6px; background: #f0f4f1; color: #64877a; font-size: 18px; }
.branch-table-name > span:last-child { display: grid; min-width: 0; gap: 3px; }
.branch-table-name strong { overflow: hidden; color: #394842; font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.branch-table-name small { overflow: hidden; max-width: 245px; color: #929b97; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.branch-detail-code { display: inline-flex; margin-top: 10px; padding: 5px 8px; border-radius: 4px; background: #edf3f0; color: #4b796b; font-size: 12px; font-weight: 700; }
.detail-field-wide { grid-column: 1 / -1; }
.detail-field-wide > strong { line-height: 1.5; }
.logbook-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 15px; }
.logbook-summary { min-height: 111px; }
.logbook-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 15px; margin-bottom: 13px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 7px; background: #fff; box-shadow: var(--shadow); }
.logbook-filters { display: flex; min-width: 0; flex: 1; align-items: end; gap: 9px; }
.logbook-filters .search-field { width: min(320px, 42%); }
.logbook-list-heading { align-items: center; padding: 17px 18px 14px; }
.logbook-table { min-width: 1120px; border-top: 1px solid #edf0ee; }
.logbook-table thead th { padding: 10px 12px; border-bottom: 1px solid #edf0ee; background: #fafbfa; color: #84908a; font-size: 11px; font-weight: 700; white-space: nowrap; }
.logbook-table thead th:first-child, .logbook-table tbody td:first-child { padding-left: 18px; }
.logbook-table tbody td { padding: 11px 12px; border-bottom: 1px solid #f0f2f1; color: #59655f; font-size: 12px; vertical-align: middle; }
.logbook-table tbody tr:last-child td { border-bottom: 0; }
.logbook-table tbody tr:hover { background: #fbfcfb; }
.logbook-code { display: block; color: #477969; font-size: 12px; font-weight: 700; white-space: nowrap; }
.logbook-date { display: block; margin-top: 4px; color: #909a95; font-size: 11px; white-space: nowrap; }
.logbook-branch { display: grid; min-width: 145px; gap: 3px; }
.logbook-branch span { color: #71847a; font-size: 11px; font-weight: 700; }
.logbook-branch strong { color: #394842; font-size: 12px; font-weight: 600; }
.logbook-title-cell { min-width: 220px; max-width: 280px; }
.logbook-title-cell strong, .logbook-title-cell span { display: block; }
.logbook-title-cell strong { margin-bottom: 4px; color: #425049; font-size: 12px; font-weight: 600; }
.logbook-title-cell span { color: #89948e; font-size: 11px; line-height: 1.4; }
.logbook-category { display: inline-block; max-width: 150px; padding: 4px 7px; overflow: hidden; border-radius: 4px; background: #edf3f0; color: #55786b; font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.logbook-detail-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; color: #85908a; font-size: 12px; }
.logbook-detail-meta .priority-badge { margin-left: auto; }
.logbook-detail-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.optional-label { margin-left: 4px; color: #929c97; font-size: 12px; font-weight: 400; }
.logbook-empty-branch { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding: 14px 16px; border: 1px solid #e7ece8; border-radius: 7px; background: #fff; }
.logbook-empty-branch > i { color: #748f83; font-size: 24px; }
.logbook-empty-branch > div { display: grid; flex: 1; gap: 3px; }
.logbook-empty-branch strong { color: #405047; font-size: 13px; }
.logbook-empty-branch span { color: #89948e; font-size: 12px; }
.logbook-empty-branch .button-secondary { flex: 0 0 auto; }
.finding-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 15px; }
.finding-summary { min-height: 108px; }
.finding-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 13px; margin-bottom: 13px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 7px; background: #fff; box-shadow: var(--shadow); }
.finding-filters { display: flex; min-width: 0; flex: 1; align-items: end; gap: 8px; }
.finding-filters .search-field { width: min(270px, 35%); }
.finding-list-heading { align-items: center; padding: 17px 18px 14px; }
.finding-table { min-width: 1160px; border-top: 1px solid #edf0ee; }
.finding-table thead th { padding: 10px 11px; border-bottom: 1px solid #edf0ee; background: #fafbfa; color: #84908a; font-size: 11px; font-weight: 700; white-space: nowrap; }
.finding-table thead th:first-child, .finding-table tbody td:first-child { padding-left: 18px; }
.finding-table tbody td { padding: 11px 11px; border-bottom: 1px solid #f0f2f1; color: #59655f; font-size: 12px; vertical-align: middle; }
.finding-table tbody tr:last-child td { border-bottom: 0; }
.finding-table tbody tr:hover { background: #fbfcfb; }
.finding-code { display: block; color: #477969; font-size: 12px; font-weight: 700; white-space: nowrap; }
.finding-created { display: block; margin-top: 4px; color: #929b97; font-size: 11px; white-space: nowrap; }
.finding-branch { display: grid; min-width: 140px; gap: 3px; }
.finding-branch span { color: #71847a; font-size: 11px; font-weight: 700; }
.finding-branch strong { color: #394842; font-size: 12px; font-weight: 600; }
.finding-title-cell { min-width: 185px; max-width: 255px; }
.finding-title-cell strong, .finding-title-cell span { display: block; }
.finding-title-cell strong { margin-bottom: 4px; color: #425049; font-size: 12px; font-weight: 600; }
.finding-title-cell span { color: #89948e; font-size: 11px; }
.finding-due { white-space: nowrap; }
.finding-due.is-overdue { color: #b46858; font-weight: 700; }
.finding-validation-note { display: flex; align-items: flex-start; gap: 8px; padding: 10px 11px; border: 1px solid #e8eeea; border-radius: 5px; background: #f8faf8; color: #77837d; font-size: 12px; line-height: 1.5; }
.finding-validation-note i { color: #648a7b; font-size: 15px; }
.finding-detail-modal .modal-dialog { max-width: 1040px; }
.finding-detail-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(250px, .75fr); gap: 22px; }
.finding-detail-main { min-width: 0; }
.finding-detail-badges { display: flex; align-items: center; gap: 7px; margin-bottom: 11px; }
.finding-detail-main > h3 { margin-bottom: 7px; color: #34433c; font-family: 'Manrope', sans-serif; font-size: 21px; font-weight: 700; }
.finding-detail-description { margin-bottom: 17px; color: #69766f; font-size: 14px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.finding-detail-main .detail-grid { margin: 0 0 18px; }
.finding-inline-form { margin-top: 15px; padding-top: 13px; border-top: 1px solid #edf0ee; }
.finding-inline-form .form-label, .finding-comment-form .form-label { color: #66746d; font-size: 12px; font-weight: 700; }
.finding-inline-controls { display: grid; grid-template-columns: minmax(125px, .8fr) minmax(120px, 1fr) auto; gap: 7px; }
.finding-inline-controls .form-control, .finding-inline-controls .form-select { min-height: 32px; border-color: #e1e8e4; border-radius: 5px; color: #43514b; font-size: 12px; box-shadow: none; }
.finding-inline-controls .button-primary, .finding-inline-controls .button-secondary { min-height: 32px; }
.finding-validation-help { display: block; margin-top: 5px; color: #929b96; font-size: 11px; }
.finding-comment-form { margin-top: 14px; }
.finding-comment-controls { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 8px; }
.finding-comment-controls .form-control { border-color: #e1e8e4; border-radius: 5px; font-size: 13px; box-shadow: none; }
.finding-history-panel { min-width: 0; padding-left: 17px; border-left: 1px solid #edf0ee; }
.finding-history-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; }
.finding-history-heading h3 { margin: 0; color: #405047; font-family: 'Manrope', sans-serif; font-size: 15px; font-weight: 700; }
.finding-history-heading span { display: grid; min-width: 22px; height: 20px; place-items: center; border-radius: 5px; background: #eff3f0; color: #697a71; font-size: 12px; font-weight: 700; }
.finding-history-list { position: relative; display: grid; max-height: 510px; gap: 0; margin: 0; padding: 0 0 0 13px; overflow-y: auto; list-style: none; }
.finding-history-list::before { position: absolute; top: 6px; bottom: 8px; left: 3px; width: 1px; background: #e5ebe7; content: ''; }
.finding-history-item { position: relative; display: grid; gap: 4px; padding: 0 0 15px; }
.finding-history-item::before { position: absolute; top: 4px; left: -13px; width: 7px; height: 7px; border: 1px solid #fff; border-radius: 50%; background: #6d9687; box-shadow: 0 0 0 1px #b5c9bf; content: ''; }
.finding-history-item > strong { color: #4a5a52; font-size: 12px; font-weight: 700; }
.finding-history-item > span { color: #929c97; font-size: 11px; line-height: 1.4; }
.finding-history-status { color: #668276 !important; font-weight: 600; }
.finding-history-item > p { margin: 1px 0 0; color: #68766f; font-size: 12px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.finding-history-empty { padding: 12px 0; color: #98a19d; font-size: 12px; }
.process-library-stats { display: flex; align-items: center; gap: 25px; margin-bottom: 15px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 7px; background: #fff; box-shadow: var(--shadow); }
.process-library-stats > div { display: flex; min-width: 150px; align-items: center; gap: 9px; }
.process-stat-icon { display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; border-radius: 7px; background: #edf3f0; color: #5d8878; font-size: 19px; }
.process-stat-review { background: #f6f0e5; color: #a57d3b; }
.process-library-stats > div > span:last-child { display: grid; gap: 3px; }
.process-library-stats strong { color: #34443d; font-family: 'Manrope', sans-serif; font-size: 20px; font-weight: 700; }
.process-library-stats small { color: #89948e; font-size: 12px; }
.process-library-stats > .button-primary { margin-left: auto; }
.process-review-panel { margin-bottom: 14px; overflow: hidden; }
.process-review-heading { padding: 16px 18px 13px; }
.process-review-list { display: grid; }
.process-review-item { padding: 14px 18px; border-top: 1px solid #edf0ee; }
.process-review-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: #8a958f; font-size: 11px; }
.process-review-type { padding: 4px 7px; border-radius: 4px; background: #edf3f0; color: #567a6d; font-weight: 600; }
.process-review-item h3 { margin: 8px 0 5px; color: #394842; font-family: 'Manrope', sans-serif; font-size: 15px; font-weight: 700; }
.process-review-item > p { margin: 0 0 9px; color: #69766f; font-size: 13px; line-height: 1.55; white-space: pre-wrap; }
.process-review-bottom { display: grid; gap: 8px; color: #929c97; font-size: 11px; }
.process-review-form { display: flex; align-items: center; gap: 7px; }
.process-review-form .form-control { min-width: 120px; max-width: 340px; min-height: 32px; border-color: #e3e9e5; border-radius: 5px; font-size: 12px; box-shadow: none; }
.process-review-form .button-primary, .process-review-form .button-secondary { min-height: 32px; }
.process-review-form .button-secondary span { display: inline; }
.process-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 9px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 7px; background: #fff; box-shadow: var(--shadow); }
.process-search-field { position: relative; min-width: 0; flex: 1; }
.process-search-field > i { position: absolute; z-index: 1; top: 50%; left: 11px; color: #89958f; font-size: 18px; transform: translateY(-50%); pointer-events: none; }
.process-search-field .form-control { height: 35px; padding-left: 32px; border-color: #e3e9e5; border-radius: 5px; color: #405047; font-size: 13px; box-shadow: none; }
.process-search-field .form-control:focus, .process-toolbar-controls .form-select:focus { border-color: #89a99b; box-shadow: 0 0 0 3px rgba(91, 137, 119, .1); }
.process-toolbar-controls { display: flex; align-items: center; gap: 15px; }
.process-toolbar-controls .form-select { width: 190px; height: 35px; border-color: #e3e9e5; border-radius: 5px; color: #46554e; font-size: 13px; box-shadow: none; }
.process-draft-toggle { display: flex; align-items: center; gap: 6px; color: #78857e; font-size: 12px; white-space: nowrap; }
.process-draft-toggle input { width: 14px; height: 14px; accent-color: #4c7869; }
.process-results-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 2px 10px; color: #89948e; font-size: 12px; }
.process-results-line strong { color: #46564e; }
.process-manager-label { display: inline-flex; align-items: center; gap: 5px; color: #74857c; }
.process-manager-label i { color: #658a7a; }
.process-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 12px; }
.process-card { display: flex; min-width: 0; flex-direction: column; padding: 15px 15px 12px; border: 1px solid #e8edea; border-radius: 7px; background: #fff; box-shadow: var(--shadow); transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.process-card:hover { transform: translateY(-2px); border-color: #d0ded7; box-shadow: 0 6px 17px rgba(27, 45, 40, .07); }
.process-card[hidden] { display: none !important; }
.process-card-top { display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.process-category-chip, .process-status-chip { display: inline-block; max-width: 65%; padding: 4px 7px; overflow: hidden; border-radius: 4px; font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.process-category-chip { background: #edf3f0; color: #557a6d; }
.process-status-chip { max-width: 42%; background: #eef3ed; color: #688258; }
.process-status-borrador { background: #f5f1e7; color: #957741; }
.process-status-archivado { background: #f0f1ef; color: #7d8580; }
.process-code-line { display: flex; justify-content: space-between; gap: 8px; margin-top: 12px; color: #829088; font-size: 11px; font-weight: 600; }
.process-card > h2 { margin: 7px 0 6px; color: #304039; font-family: 'Manrope', sans-serif; font-size: 18px; font-weight: 700; line-height: 1.4; }
.process-card-summary { display: -webkit-box; min-height: 42px; margin: 0; overflow: hidden; color: #748079; font-size: 12px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.process-keywords { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 11px; }
.process-keywords span { padding: 3px 6px; border: 1px solid #edf0ee; border-radius: 4px; color: #8a958f; font-size: 11px; }
.process-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 13px; }
.process-card-footer > div:first-child { display: grid; min-width: 0; gap: 3px; color: #8e9993; font-size: 11px; }
.process-card-footer > div:first-child span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.process-card-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 2px; }
.process-vote-form { display: inline-flex; }
.process-vote-button { display: flex; min-height: 28px; align-items: center; gap: 5px; padding: 0 7px; border: 1px solid transparent; border-radius: 5px; background: transparent; color: #84918a; font-size: 12px; }
.process-vote-button:hover, .process-vote-button.is-voted { border-color: #e1ebe5; background: #f2f7f4; color: #4e7b6b; }
.process-vote-button i { font-size: 15px; }
.process-card-publish { margin-top: 10px; padding-top: 8px; border-top: 1px solid #edf0ee; }
.process-card-publish form { display: flex; justify-content: flex-end; }
.process-state-action { display: inline-flex; align-items: center; gap: 5px; padding: 3px 2px; border: 0; background: transparent; color: #5d8374; font-size: 12px; font-weight: 600; }
.process-state-action:hover { color: #2d5a4c; }
.process-state-action i { font-size: 14px; }
.process-empty-state { display: none; min-height: 180px; flex-direction: column; align-items: center; justify-content: center; gap: 7px; color: #8b9690; text-align: center; }
.process-empty-state.is-visible { display: flex; }
.process-empty-state > i { color: #88a194; font-size: 33px; }
.process-empty-state strong { color: #4b5a53; font-family: 'Manrope', sans-serif; font-size: 15px; }
.process-empty-state span { max-width: 360px; font-size: 12px; line-height: 1.5; }
.process-detail-modal .modal-dialog { max-width: 960px; }
.process-detail-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; color: #89948e; font-size: 12px; }
.process-detail-section { margin-bottom: 17px; }
.process-detail-section h3, .process-section-heading h3 { margin: 0 0 6px; color: #405047; font-family: 'Manrope', sans-serif; font-size: 14px; font-weight: 700; }
.process-detail-section p, .process-detail-content { margin: 0; color: #68766f; font-size: 13px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.process-contributions-section, .process-contribution-form { margin-top: 17px; padding-top: 14px; border-top: 1px solid #edf0ee; }
.process-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.process-section-heading p { margin: 0; color: #8b9690; font-size: 11px; }
.process-section-heading > span { display: grid; min-width: 22px; height: 20px; place-items: center; border-radius: 5px; background: #edf3f0; color: #617d70; font-size: 12px; font-weight: 700; }
.validated-contribution { margin-top: 8px; padding: 10px 11px; border: 1px solid #e9efeb; border-radius: 5px; background: #fbfcfb; }
.validated-contribution-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 5px; }
.validated-contribution-meta > span { color: #58806f; font-size: 11px; font-weight: 700; }
.validated-contribution-meta > small { color: #9aa39f; font-size: 11px; }
.validated-contribution > strong { display: block; margin-bottom: 3px; color: #46564e; font-size: 12px; }
.validated-contribution > p { margin: 0; color: #6c7972; font-size: 12px; line-height: 1.5; white-space: pre-wrap; }
.process-contribution-form .form-control, .process-contribution-form .form-select { border-color: #e1e8e4; border-radius: 5px; color: #43514b; font-size: 13px; box-shadow: none; }
.process-contribution-form .form-control:focus, .process-contribution-form .form-select:focus { border-color: #89a99b; box-shadow: 0 0 0 3px rgba(91, 137, 119, .1); }
.process-detail-vote { display: flex; justify-content: flex-end; margin-top: 12px; }
.process-detail-vote .button-secondary { gap: 7px; }
.process-detail-vote strong { color: #4e7868; font-size: 12px; }
.process-detail-vote .is-voted { border-color: #d8e7de; background: #eff6f2; color: #45715f; }
@media (max-width: 900px) {
    .branch-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .branch-toolbar { align-items: stretch; flex-direction: column; }
    .branch-filters { flex-wrap: wrap; }
    .branch-filters .search-field { width: min(330px, 100%); }
    .logbook-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .logbook-toolbar { align-items: stretch; flex-direction: column; }
    .logbook-filters { flex-wrap: wrap; }
    .logbook-filters .search-field { width: min(340px, 100%); }
    .finding-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .finding-toolbar { align-items: stretch; flex-direction: column; }
    .finding-filters { flex-wrap: wrap; }
    .finding-filters .search-field { width: min(360px, 100%); }
    .process-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .process-library-stats { gap: 14px; }
    .process-library-stats > div { min-width: 125px; }
}
@media (max-width: 600px) {
    .branch-summary-grid { gap: 9px; }
    .branch-summary { min-height: 112px; }
    .branch-toolbar { padding: 12px; }
    .branch-filters { display: grid; grid-template-columns: 1fr 1fr; }
    .branch-filters .filter-field, .branch-filters .search-field { width: 100%; min-width: 0; }
    .branch-filters .search-field { grid-column: 1 / -1; }
    .branch-toolbar > .button-primary { width: 100%; }
    .branch-table thead th:first-child, .branch-table tbody td:first-child { padding-left: 13px; }
    .branch-list-heading { align-items: flex-start; flex-direction: column; padding: 15px 13px 12px; }
    .logbook-summary-grid { gap: 9px; }
    .logbook-summary { min-height: 112px; }
    .logbook-toolbar { padding: 12px; }
    .logbook-filters { display: grid; grid-template-columns: 1fr 1fr; }
    .logbook-filters .filter-field, .logbook-filters .search-field { width: 100%; min-width: 0; }
    .logbook-filters .search-field { grid-column: 1 / -1; }
    .logbook-toolbar > .button-primary { width: 100%; }
    .logbook-table thead th:first-child, .logbook-table tbody td:first-child { padding-left: 13px; }
    .logbook-list-heading { align-items: flex-start; flex-direction: column; padding: 15px 13px 12px; }
    .logbook-empty-branch { align-items: flex-start; flex-wrap: wrap; padding: 12px; }
    .logbook-empty-branch > div { min-width: calc(100% - 38px); }
    .logbook-empty-branch .button-secondary { width: 100%; }
    .finding-summary-grid { gap: 9px; }
    .finding-summary { min-height: 112px; }
    .finding-toolbar { padding: 12px; }
    .finding-filters { display: grid; grid-template-columns: 1fr 1fr; }
    .finding-filters .filter-field, .finding-filters .search-field { width: 100%; min-width: 0; }
    .finding-filters .search-field { grid-column: 1 / -1; }
    .finding-toolbar > .button-primary { width: 100%; }
    .finding-table thead th:first-child, .finding-table tbody td:first-child { padding-left: 13px; }
    .finding-list-heading { align-items: flex-start; flex-direction: column; padding: 15px 13px 12px; }
    .finding-detail-layout { grid-template-columns: 1fr; gap: 17px; }
    .finding-history-panel { padding: 15px 0 0; border-top: 1px solid #edf0ee; border-left: 0; }
    .finding-history-list { max-height: 240px; }
    .finding-inline-controls { grid-template-columns: 1fr; }
    .finding-comment-controls { grid-template-columns: 1fr; }
    .process-library-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px; }
    .process-library-stats > div { min-width: 0; }
    .process-library-stats > .button-primary { width: 100%; grid-column: 1 / -1; margin: 0; }
    .process-toolbar { align-items: stretch; flex-direction: column; padding: 11px; }
    .process-toolbar-controls { align-items: stretch; flex-direction: column; gap: 9px; }
    .process-toolbar-controls .form-select { width: 100%; }
    .process-card-grid { grid-template-columns: 1fr; }
    .process-card { min-height: 185px; }
    .process-review-item { padding: 12px; }
    .process-review-form { align-items: stretch; flex-wrap: wrap; }
    .process-review-form .form-control { width: 100%; max-width: none; }
    .process-review-form .button-secondary, .process-review-form .button-primary { flex: 1; justify-content: center; }
    .process-review-form .button-secondary span { display: inline; }
    .process-results-line { align-items: flex-start; flex-direction: column; gap: 5px; }
    .process-detail-meta { gap: 6px; }
    .validated-contribution-meta { align-items: flex-start; flex-direction: column; }
}

.login-page { min-height: 100vh; overflow-x: hidden; background: #fff; color: #263630; }
.login-layout { display: grid; min-height: 100vh; grid-template-columns: minmax(360px, .92fr) minmax(460px, 1.08fr); }
.login-masthead { position: relative; display: flex; min-height: 100vh; flex-direction: column; padding: 39px 46px 25px; overflow: hidden; background: #172b28; color: #fff; }
.login-masthead::before { position: absolute; top: 0; right: 33px; width: 1px; height: 100%; background: rgba(226, 239, 232, .08); content: ''; }
.login-masthead::after { position: absolute; right: 33px; bottom: 97px; width: 63px; height: 1px; background: rgba(226, 239, 232, .2); content: ''; }
.login-brand { position: relative; z-index: 1; display: flex; width: fit-content; align-items: center; gap: 11px; color: #fff; }
.login-brand:hover { color: #fff; }
.login-brand-mark { display: grid; width: 37px; height: 37px; place-items: center; border: 1px solid rgba(213, 232, 221, .24); border-radius: 9px; background: rgba(255,255,255,.06); color: #c2d9ce; font-size: 24px; }
.login-brand > span:last-child { display: grid; font-family: 'Manrope', sans-serif; font-size: 15px; line-height: 1.35; }
.login-brand strong:last-child { color: #bad1c6; }
.login-masthead-copy { position: relative; z-index: 1; width: min(100%, 440px); margin: auto 0; padding: 20px 0 42px; }
.login-kicker { display: flex; align-items: center; gap: 8px; margin-bottom: 19px; color: #a9c3b7; font-size: 12px; font-weight: 700; letter-spacing: 1.25px; }
.login-kicker span { width: 7px; height: 7px; border-radius: 2px; background: #a7c5b5; }
.login-masthead-copy h2 { margin: 0 0 17px; color: #f5f8f6; font-family: 'Manrope', sans-serif; font-size: 48px; font-weight: 600; line-height: 1.18; letter-spacing: 0; }
.login-masthead-copy p { max-width: 355px; margin: 0; color: #a7b8b1; font-size: 18px; line-height: 1.75; }
.login-masthead-rule { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; color: #849a91; font-size: 11px; font-weight: 600; letter-spacing: .8px; }
.login-masthead-rule i { width: 3px; height: 3px; border-radius: 50%; background: #6b8a7c; }
.login-masthead-footer { position: relative; z-index: 1; display: flex; justify-content: space-between; margin-top: 27px; padding-top: 13px; border-top: 1px solid rgba(226, 239, 232, .12); color: #80958d; font-size: 11px; font-weight: 600; letter-spacing: .8px; }
.login-masthead-footer b { padding: 0 4px; color: #b5c8be; }
.login-masthead-index { position: absolute; right: 48px; bottom: 120px; color: rgba(220, 235, 227, .16); font-family: 'Manrope', sans-serif; font-size: 18px; font-weight: 700; letter-spacing: 1px; writing-mode: vertical-rl; }
.login-masthead-index span { padding: 5px 0; color: rgba(220, 235, 227, .3); }
.login-content { display: flex; min-width: 0; min-height: 100vh; flex-direction: column; justify-content: center; padding: 54px clamp(38px, 8vw, 112px) 23px; background: #fff; }
.login-panel { width: min(100%, 390px); margin: auto; }
.login-eyebrow { display: flex; align-items: center; gap: 7px; margin-bottom: 12px; color: #6b8177; font-size: 12px; font-weight: 700; letter-spacing: 1px; }
.login-eyebrow-mark { width: 6px; height: 6px; border-radius: 2px; background: #668d7d; }
.login-panel h1 { margin: 0 0 7px; color: #263730; font-family: 'Manrope', sans-serif; font-size: 37px; font-weight: 700; letter-spacing: 0; }
.login-subtitle { margin: 0 0 28px; color: #87928d; font-size: 15px; }
.login-form { display: grid; gap: 18px; }
.login-field { display: grid; gap: 7px; }
.login-field label { color: #495850; font-size: 13px; font-weight: 700; }
.login-input-wrap { position: relative; }
.login-input-wrap > i { position: absolute; z-index: 1; top: 50%; left: 12px; color: #87958d; font-size: 19px; transform: translateY(-50%); pointer-events: none; }
.login-input-wrap .form-control { height: 43px; padding: 0 42px 0 37px; border: 1px solid #dfe7e2; border-radius: 5px; background: #fff; color: #33433b; font-size: 14px; box-shadow: none; }
.login-input-wrap .form-control::placeholder { color: #a4ada8; }
.login-input-wrap .form-control:focus { border-color: #719687; box-shadow: 0 0 0 3px rgba(81, 135, 121, .12); }
.login-password-toggle { position: absolute; top: 50%; right: 7px; display: grid; width: 30px; height: 30px; place-items: center; border: 0; border-radius: 4px; background: transparent; color: #7b8982; font-size: 19px; transform: translateY(-50%); }
.login-password-toggle:hover { background: #f0f4f1; color: #355d4f; }
.login-submit { display: flex; min-height: 43px; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; padding: 0 14px; border: 1px solid #244f46; border-radius: 5px; background: #244f46; color: #fff; font-size: 14px; font-weight: 700; transition: background .16s ease, border-color .16s ease; }
.login-submit:hover { border-color: #193e36; background: #193e36; }
.login-submit i { font-size: 19px; }
.login-alert { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 16px; padding: 10px 11px; border: 1px solid #f0d6d1; border-radius: 5px; background: #fcf4f2; color: #9d584c; font-size: 13px; line-height: 1.5; }
.login-alert i { flex: 0 0 auto; margin-top: 1px; font-size: 15px; }
.login-setup-link { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 16px; padding: 10px 11px; border: 1px solid #e6ece7; border-radius: 5px; background: #f7faf7; color: #6e7c74; font-size: 12px; line-height: 1.5; }
.login-setup-link > i { color: #658b79; font-size: 15px; }
.login-setup-link a { color: #356c58; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.login-secure-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 17px; color: #9aa39e; font-size: 12px; }
.login-secure-note i { color: #6e8d7e; font-size: 14px; }
.login-footer { display: flex; justify-content: space-between; gap: 12px; width: 100%; margin-top: auto; color: #a0a9a4; font-size: 11px; }
.login-footer > span:last-child { display: flex; align-items: center; gap: 7px; }
.login-footer i { width: 3px; height: 3px; border-radius: 50%; background: #aab4ae; }
@media (max-width: 760px) {
    .login-layout { grid-template-columns: 1fr; }
    .login-masthead { min-height: 245px; padding: 23px 24px 18px; }
    .login-masthead::before { right: 18px; }
    .login-masthead::after { display: none; }
    .login-brand-mark { width: 33px; height: 33px; }
    .login-masthead-copy { margin: 28px 0 20px; padding: 0; }
    .login-kicker { margin-bottom: 9px; font-size: 11px; }
    .login-masthead-copy h2 { margin-bottom: 7px; font-size: 33px; }
    .login-masthead-copy h2 br { display: none; }
    .login-masthead-copy p { max-width: 420px; font-size: 13px; line-height: 1.5; }
    .login-masthead-rule { display: none; }
    .login-masthead-footer { display: none; }
    .login-masthead-index { right: 29px; bottom: 30px; font-size: 13px; }
    .login-content { min-height: calc(100vh - 245px); padding: 34px 24px 18px; }
    .login-panel { width: min(100%, 420px); }
    .login-panel h1 { font-size: 33px; }
    .login-subtitle { margin-bottom: 23px; }
}
@media (max-width: 380px) {
    .login-masthead { min-height: 225px; }
    .login-masthead-copy { margin-top: 22px; }
    .login-content { min-height: calc(100vh - 225px); padding-right: 18px; padding-left: 18px; }
    .login-footer { font-size: 9px; }
}

.users-tabs { display: flex; align-items: stretch; gap: 5px; margin: 0 0 15px; border-bottom: 1px solid #e4eae6; }
.users-tabs a { position: relative; display: inline-flex; min-height: 42px; align-items: center; gap: 8px; padding: 0 14px; color: #7e8983; font-size: 13px; font-weight: 600; transition: color .15s ease, background .15s ease; }
.users-tabs a:hover { color: #345b4d; }
.users-tabs a.active { color: #285344; }
.users-tabs a.active::after { position: absolute; right: 10px; bottom: -1px; left: 10px; height: 2px; border-radius: 2px 2px 0 0; background: #4d816f; content: ''; }
.users-tabs a > i { font-size: 18px; }
.users-tabs a > b { display: grid; min-width: 20px; height: 19px; place-items: center; border-radius: 4px; background: #f0f3f1; color: #77837c; font-size: 11px; font-weight: 700; }
.users-tabs a.active > b { background: #e8f0ec; color: #4f7969; }
.user-summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; margin-bottom: 14px; }
.user-summary { min-height: 103px; }
.users-panel { overflow: hidden; }
.users-panel-heading { align-items: center; padding: 16px 18px 14px; }
.users-panel-heading .button-primary { flex: 0 0 auto; }
.users-toolbar { display: flex; align-items: center; gap: 9px; padding: 11px 18px; border-top: 1px solid #edf0ee; border-bottom: 1px solid #edf0ee; background: #fbfcfb; }
.user-search-control { position: relative; min-width: 180px; max-width: 340px; flex: 1; }
.user-search-control > i { position: absolute; z-index: 1; top: 50%; left: 10px; color: #89958f; font-size: 15px; transform: translateY(-50%); pointer-events: none; }
.user-search-control .form-control { height: 33px; padding: 0 10px 0 30px; border-color: #e3e9e5; border-radius: 5px; color: #405047; font-size: 12px; box-shadow: none; }
.user-search-control .form-control:focus, .user-status-filter:focus { border-color: #89a99b; box-shadow: 0 0 0 3px rgba(91, 137, 119, .1); }
.user-status-filter { width: 150px; height: 33px; border-color: #e3e9e5; border-radius: 5px; color: #596760; font-size: 12px; box-shadow: none; }
.user-result-count { margin-left: auto; color: #929b96; font-size: 11px; white-space: nowrap; }
.users-table { min-width: 720px; border-top: 0; }
.users-table thead th { padding: 10px 12px; border-bottom: 1px solid #edf0ee; background: #fff; color: #84908a; font-size: 11px; font-weight: 700; white-space: nowrap; }
.users-table thead th:first-child, .users-table tbody td:first-child { padding-left: 18px; }
.users-table tbody td { padding: 11px 12px; border-bottom: 1px solid #f0f2f1; color: #59655f; font-size: 12px; vertical-align: middle; }
.users-table tbody tr:last-child td { border-bottom: 0; }
.users-table tbody tr:hover { background: #fbfcfb; }
.users-table tbody tr[hidden] { display: none !important; }
.user-identity { display: flex; min-width: 210px; align-items: center; gap: 9px; }
.user-avatar { display: grid; width: 33px; height: 33px; flex: 0 0 auto; place-items: center; border: 1px solid #e2ebe5; border-radius: 50%; background: #edf4f0; color: #416b5a; font-size: 13px; font-weight: 700; }
.user-identity > span:last-child { display: grid; min-width: 0; gap: 3px; }
.user-identity strong { overflow: hidden; color: #37463f; font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.user-identity small { overflow: hidden; color: #8e9993; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.role-chip-list { display: flex; max-width: 220px; flex-wrap: wrap; gap: 4px; }
.role-chip { padding: 4px 6px; border: 1px solid #e8eeea; border-radius: 4px; background: #f8faf8; color: #66786e; font-size: 11px; font-weight: 600; white-space: nowrap; }
.muted-inline { color: #98a29d; font-size: 11px; }
.user-actions { display: flex; align-items: center; gap: 2px; }
.user-actions .inline-form { display: inline-flex; }
.action-danger { color: #ad7062; }
.action-danger:hover { background: #f8eeeb; color: #a75445; }
.user-no-results[hidden] { display: none !important; }
.user-no-results td { border: 0 !important; }
.user-empty-state { display: grid; justify-items: center; gap: 5px; padding: 22px 10px; color: #929d97; text-align: center; }
.user-empty-state > i { color: #8ca394; font-size: 25px; }
.user-empty-state strong { color: #4b5a53; font-family: 'Manrope', sans-serif; font-size: 13px; }
.user-empty-state span { font-size: 11px; }
.users-panel > .table-footer { border-top: 1px solid #edf0ee; }
.users-flash { margin-bottom: 13px; font-size: 13px; }
.permission-overview { display: flex; align-items: center; gap: 22px; margin-bottom: 14px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 7px; background: #fff; box-shadow: var(--shadow); }
.permission-overview > div { display: flex; align-items: center; gap: 9px; }
.permission-overview > div > span:last-child { display: grid; gap: 3px; }
.permission-overview strong { color: #3d4c45; font-family: 'Manrope', sans-serif; font-size: 15px; font-weight: 700; }
.permission-overview small { color: #8a9590; font-size: 11px; }
.permission-overview > .button-primary { margin-left: auto; }
.role-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; margin-bottom: 14px; }
.role-card { min-width: 0; padding: 14px; }
.role-card-top { display: flex; align-items: center; justify-content: space-between; }
.role-card-icon { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 7px; background: #edf3f0; color: #5b8273; font-size: 19px; }
.system-role-label { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px; border-radius: 4px; background: #f4f5f2; color: #778179; font-size: 11px; font-weight: 600; }
.role-card h2 { margin: 11px 0 4px; color: #34443c; font-family: 'Manrope', sans-serif; font-size: 15px; font-weight: 700; }
.role-card > p { min-height: 30px; margin-bottom: 12px; color: #86918b; font-size: 12px; line-height: 1.5; }
.role-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 7px; padding: 9px 0; border-top: 1px solid #edf0ee; border-bottom: 1px solid #edf0ee; color: #7c8881; font-size: 11px; }
.role-card-footer span { display: inline-flex; align-items: center; gap: 4px; }
.role-card-footer i { color: #7f9489; }
.role-permission-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.role-permission-tags span { padding: 4px 6px; border-radius: 4px; background: #f5f8f6; color: #73827a; font-size: 11px; }
.permissions-reference { overflow: hidden; }
.permissions-reference > .panel-heading { padding: 15px 17px 13px; }
.permission-reference-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid #edf0ee; }
.permission-reference-group { display: grid; align-content: start; gap: 7px; padding: 13px 15px; border-right: 1px solid #edf0ee; border-bottom: 1px solid #edf0ee; }
.permission-reference-group > strong { margin-bottom: 1px; color: #52625a; font-size: 12px; font-weight: 700; text-transform: capitalize; }
.permission-reference-group > span { display: grid; gap: 2px; color: #68766f; font-size: 11px; line-height: 1.4; }
.permission-reference-group code { color: #7d9286; font-size: 9px; }
.role-assignment-fieldset { margin-top: 20px; padding: 13px; border: 1px solid #e7ece8; border-radius: 6px; }
.role-assignment-fieldset legend { float: none; width: auto; margin: 0 0 10px; color: #526159; font-size: 13px; font-weight: 700; }
.role-assignment-fieldset legend span { margin-left: 5px; color: #929c97; font-size: 11px; font-weight: 400; }
.role-checkbox-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.role-checkbox { display: flex; align-items: flex-start; gap: 8px; padding: 9px; border: 1px solid #edf0ee; border-radius: 5px; cursor: pointer; }
.role-checkbox input, .permission-checkbox input { margin-top: 2px; accent-color: #3f7562; }
.role-checkbox > span, .permission-checkbox > span { display: grid; gap: 3px; }
.role-checkbox strong, .permission-checkbox strong { color: #526159; font-size: 12px; font-weight: 600; }
.role-checkbox small, .permission-checkbox small { color: #8c9691; font-size: 11px; line-height: 1.4; }
.permission-checkbox-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.permission-group { padding: 11px; border: 1px solid #edf0ee; border-radius: 5px; }
.permission-group h3 { margin: 0 0 8px; color: #557164; font-size: 12px; font-weight: 700; text-transform: capitalize; }
.permission-checkbox { display: flex; align-items: flex-start; gap: 7px; padding: 7px 0; border-top: 1px solid #f0f2f1; cursor: pointer; }
.report-example-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.report-example-card { display: flex; min-width: 0; align-items: flex-start; gap: 11px; padding: 15px; }
.report-example-icon { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 7px; background: #edf3f0; color: #5e8878; font-size: 20px; }
.report-example-card > div { min-width: 0; flex: 1; }
.report-example-card .chart-period-label { display: inline-block; margin-bottom: 8px; padding: 4px 6px; font-size: 11px; }
.report-example-card h2 { margin: 0 0 5px; color: #35443d; font-family: 'Manrope', sans-serif; font-size: 15px; font-weight: 700; line-height: 1.4; }
.report-example-card p { margin: 0 0 5px; color: #7e8983; font-size: 12px; }
.report-example-card small { color: #9aa39e; font-size: 11px; }
.report-example-card > .row-action { margin-left: auto; }
@media (max-width: 900px) {
    .report-example-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .report-example-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .role-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .permission-reference-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .users-tabs { gap: 0; }
    .users-tabs a { min-height: 40px; gap: 6px; padding: 0 9px; font-size: 12px; }
    .users-tabs a.active::after { right: 6px; left: 6px; }
    .user-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .user-summary:first-child { grid-column: 1 / -1; }
    .user-summary { min-height: 98px; padding: 11px; }
    .users-panel-heading { align-items: flex-start; flex-direction: column; padding: 14px 13px 12px; }
    .users-panel-heading > .button-primary { width: 100%; }
    .users-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: 10px 12px; }
    .user-search-control { grid-column: 1 / -1; max-width: none; }
    .user-status-filter { width: 135px; }
    .user-result-count { justify-self: end; }
    .users-table thead th:first-child, .users-table tbody td:first-child { padding-left: 13px; }
    .permission-overview { flex-wrap: wrap; gap: 13px; padding: 12px; }
    .permission-overview > div { flex: 1; min-width: 125px; }
    .permission-overview > .button-primary { width: 100%; margin-left: 0; }
    .role-card-grid, .permission-reference-grid, .role-checkbox-grid, .permission-checkbox-groups { grid-template-columns: 1fr; }
    .role-card { padding: 13px; }
    .permission-reference-group { border-right: 0; }
    .role-assignment-fieldset { padding: 10px; }
}

@media (max-width: 900px) {
    .supervision-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .supervision-toolbar { align-items: stretch; flex-direction: column; }
    .supervision-filters { flex-wrap: wrap; }
    .filter-field.search-field { width: min(320px, 100%); }
}
@media (max-width: 600px) {
    .supervision-summary-grid { gap: 9px; }
    .supervision-summary { min-height: 112px; }
    .supervision-toolbar { padding: 12px; }
    .supervision-filters { display: grid; grid-template-columns: 1fr 1fr; }
    .filter-field, .filter-field.search-field { width: 100%; min-width: 0; }
    .filter-field.search-field { grid-column: 1 / -1; }
    .supervision-toolbar > .button-primary { width: 100%; }
    .detail-grid { gap: 13px 12px; }
}