:root {
    --primary: #007f7a;
    --primary-dark: #005f5b;
    --accent: #f05a28;
    --rose: #f6d8d1;
    --ink: #1f2933;
    --muted: #697586;
    --line: #e5ebef;
    --surface: #ffffff;
    --background: #f4f8f8;
    --success: #16a34a;
    --shadow: 0 16px 40px rgba(31, 41, 51, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--ink);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.is-hidden {
    display: none !important;
}

.app-shell {
    display: grid;
    grid-template-columns: 288px minmax(0, 1fr);
    height: 100vh;
    overflow: hidden;
    transition: grid-template-columns 180ms ease;
}

.app-shell.sidebar-collapsed {
    grid-template-columns: 86px minmax(0, 1fr);
}

.sidebar {
    background: var(--primary);
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 22px 16px;
}

.sidebar-backdrop,
.menu-toggle {
    display: none;
}

.sidebar-head {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin-bottom: 30px;
}

.brand {
    align-items: center;
    display: flex;
    gap: 12px;
    min-width: 0;
}

.brand-mark {
    align-items: center;
    background: var(--accent);
    border-radius: 8px;
    color: #fff;
    display: inline-flex;
    flex: 0 0 44px;
    font-weight: 800;
    height: 44px;
    justify-content: center;
    letter-spacing: 0;
    width: 44px;
}

.brand-text {
    min-width: 0;
    white-space: nowrap;
}

.sidebar-profile {
    align-items: center;
    display: flex;
    gap: 12px;
    min-width: 0;
}

.sidebar-profile-photo {
    align-items: center;
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.14);
    border: 2px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    flex: 0 0 48px;
    font-size: 13px;
    font-weight: 900;
    justify-content: center;
    overflow: hidden;
    width: 48px;
}

.sidebar-profile-photo img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.sidebar-profile-text {
    min-width: 0;
    white-space: nowrap;
}

.sidebar-profile-text strong {
    display: block;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-collapse {
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    border: 0;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 38px;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.brand small,
.sidebar-profile small,
.user-menu small,
.plain-list small,
.ranking small,
.timeline small {
    display: block;
    opacity: 0.75;
}

.nav {
    display: grid;
    gap: 8px;
}

.nav a,
.nav-parent {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.82);
    cursor: pointer;
    display: flex;
    gap: 12px;
    min-width: 0;
    padding: 12px 14px;
    text-align: left;
    width: 100%;
}

.nav a i,
.nav-parent i:not(.nav-chevron) {
    flex: 0 0 20px;
    font-size: 15px;
    text-align: center;
}

.nav a span,
.nav-parent strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-parent > span {
    align-items: center;
    display: flex;
    gap: 12px;
    min-width: 0;
}

.nav a.active,
.nav a:hover,
.nav-parent.active,
.nav-parent:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.nav-group {
    display: grid;
    gap: 4px;
}

.nav-sub {
    border-left: 1px solid rgba(255, 255, 255, 0.18);
    display: none;
    gap: 2px;
    margin-left: 14px;
    padding-left: 10px;
}

.nav-group.open .nav-sub {
    display: grid;
}

.nav-sub a {
    gap: 10px;
    font-size: 11px;
    padding: 8px 10px;
}

.nav-chevron {
    margin-left: auto;
    transition: transform 160ms ease;
}

.nav-group.open .nav-chevron {
    transform: rotate(180deg);
}

.sidebar-collapsed .brand-text,
.sidebar-collapsed .sidebar-profile-text,
.sidebar-collapsed .nav a span,
.sidebar-collapsed .nav-parent strong,
.sidebar-collapsed .nav-chevron,
.sidebar-collapsed .nav-sub {
    display: none;
}

.sidebar-collapsed .sidebar {
    padding-left: 14px;
    padding-right: 14px;
}

.sidebar-collapsed .sidebar-head {
    align-items: center;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
}

.sidebar-collapsed .brand {
    justify-content: center;
    width: 100%;
}

.sidebar-collapsed .sidebar-profile {
    justify-content: center;
    width: 100%;
}

.sidebar-collapsed .sidebar-profile-photo {
    flex-basis: 46px;
    width: 46px;
}

.sidebar-collapsed .sidebar-collapse {
    flex: 0 0 38px;
}

.sidebar-collapsed .nav a,
.sidebar-collapsed .nav-parent {
    justify-content: center;
    padding: 12px;
}

.page {
    display: flex;
    flex-direction: column;
    height: 100vh;
    min-width: 0;
    overflow: hidden;
}

.topbar {
    align-items: center;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    display: flex;
    flex: 0 0 auto;
    justify-content: space-between;
    padding: 22px 32px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.menu-toggle {
    align-items: center;
    background: var(--primary);
    border: 0;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    flex: 0 0 42px;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.topbar h1 {
    font-size: 22px;
    margin: 4px 0 0;
}

.eyebrow {
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.user-menu {
    align-items: center;
    display: flex;
    gap: 16px;
    text-align: right;
}

.user-menu button,
.panel-header button,
.form button {
    background: var(--primary);
    border: 0;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-weight: 500;
    padding: 8px 12px;
}

.content {
    display: grid;
    flex: 1 1 auto;
    gap: 22px;
    min-height: 0;
    overflow: auto;
    padding: 28px 32px;
}

.module-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.module-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 8px;
    padding: 22px;
}

.module-card span {
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.module-card strong {
    font-size: 17px;
}

.module-card small {
    color: var(--muted);
    line-height: 1.45;
}

.kpi-grid,
.grid {
    display: grid;
    gap: 18px;
}

.kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.two-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.three-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.kpi-card,
.panel,
.login-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.kpi-card {
    padding: 22px;
}

.kpi-card span,
.muted,
.empty {
    color: var(--muted);
}

.kpi-card strong {
    display: block;
    font-size: 30px;
    margin: 8px 0;
}

.panel {
    min-width: 0;
    padding: 22px;
}

.panel-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 18px;
}

.panel-header h2 {
    font-size: 15px;
    margin: 0;
}

.panel-header p {
    color: var(--muted);
    line-height: 1.45;
    margin: 6px 0 0;
}

.panel-header a {
    color: var(--primary);
    font-weight: 700;
}

.metric-list,
.plain-list,
.timeline,
.ranking {
    display: grid;
    gap: 14px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.metric-row {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr auto;
}

.progress {
    background: #edf3f3;
    border-radius: 999px;
    grid-column: 1 / -1;
    height: 8px;
    overflow: hidden;
}

.progress i {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    display: block;
    height: 100%;
}

.ranking li,
.plain-list li,
.timeline li {
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding-bottom: 12px;
}

.timeline li {
    display: block;
}

.timeline p {
    color: var(--muted);
    margin: 8px 0 0;
}

.table-wrap {
    overflow-x: auto;
}

table {
    border-collapse: collapse;
    min-width: 720px;
    width: 100%;
}

td small {
    color: var(--muted);
    display: block;
    margin-top: 4px;
}

th,
td {
    border-bottom: 1px solid var(--line);
    padding: 13px 10px;
    text-align: left;
}

th {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
}

.form-layout {
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(340px, 0.85fr) minmax(0, 1.4fr);
}

.data-panel {
    padding: 0;
}

.data-panel .panel-header {
    border-bottom: 1px solid var(--line);
    margin: 0;
    padding: 22px;
}

.data-panel .table-wrap {
    padding: 0 22px 18px;
}

.data-toolbar {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 14px;
    justify-content: space-between;
    padding: 16px 22px;
}

.data-search,
.data-size {
    align-items: center;
    display: flex;
    gap: 8px;
}

.data-search {
    background: #f8fbfb;
    border: 1px solid #dbe7e7;
    border-radius: 8px;
    color: var(--muted);
    min-width: min(360px, 100%);
    padding: 0 12px;
}

.data-search input,
.data-size select,
.table-filters input {
    background: transparent;
    border: 0;
    color: var(--ink);
    outline: 0;
}

.data-search input {
    min-width: 0;
    padding: 11px 0;
    width: 100%;
}

.data-size span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.data-size select {
    background: #f8fbfb;
    border: 1px solid #dbe7e7;
    border-radius: 8px;
    padding: 10px;
}

.table-filters th {
    background: #f8fbfb;
    padding: 8px 10px;
}

.table-filters input {
    background: #fff;
    border: 1px solid #dbe7e7;
    border-radius: 7px;
    font-size: 12px;
    padding: 8px;
    text-transform: none;
    width: 100%;
}

.data-footer {
    align-items: center;
    border-top: 1px solid var(--line);
    color: var(--muted);
    display: flex;
    gap: 14px;
    justify-content: space-between;
    padding: 14px 22px 18px;
}

.data-pages {
    align-items: center;
    display: flex;
    gap: 10px;
}

.data-pages button {
    background: #eef2f6;
    border: 0;
    border-radius: 8px;
    color: var(--ink);
    cursor: pointer;
    font-weight: 700;
    padding: 8px 10px;
}

.data-pages button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.compact-form-layout {
    grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1.5fr);
}

.stack-form {
    gap: 18px;
}

.form-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.person-cell {
    align-items: center;
    display: flex;
    gap: 12px;
    min-width: 220px;
}

.person-cell > span:last-child {
    display: grid;
    gap: 2px;
}

.avatar {
    align-items: center;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #e7f7f5, #f1fbf9);
    border: 1px solid #cce7e5;
    border-radius: 50%;
    color: var(--primary-dark);
    display: inline-flex;
    flex: 0 0 42px;
    font-size: 13px;
    font-weight: 900;
    justify-content: center;
    overflow: hidden;
    width: 42px;
}

.avatar img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.avatar-large {
    flex-basis: 76px;
    font-size: 22px;
    width: 76px;
}

.photo-field {
    align-items: center;
    background: #f8fbfb;
    border: 1px solid var(--line);
    border-radius: 12px;
    display: flex;
    gap: 16px;
    padding: 14px;
}

.photo-field label {
    flex: 1;
    min-width: 0;
}

.photo-field input[type="file"] {
    background: #fff;
    border: 1px dashed #b8d9d7;
    border-radius: 10px;
    color: var(--muted);
    cursor: pointer;
    padding: 12px;
    width: 100%;
}

.skill-score-list {
    background: #f8fbfb;
    border: 1px solid var(--line);
    border-radius: 12px;
    display: grid;
    gap: 10px;
    padding: 14px;
}

.skill-score-list label {
    align-items: center;
    background: #fff;
    border: 1px solid #e1ebeb;
    border-radius: 10px;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) 110px;
    padding: 12px;
}

.skill-score-list strong {
    display: block;
}

.skill-score-list small {
    color: var(--muted);
    display: block;
    margin-top: 3px;
}

.form select,
.form textarea {
    background: #f8fbfb;
    border: 1px solid #dbe7e7;
    border-radius: 12px;
    color: var(--ink);
    outline: 0;
    padding: 14px 15px;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
    width: 100%;
}

.form textarea {
    resize: vertical;
}

.form select:focus,
.form textarea:focus {
    background: #fff;
    border-color: rgba(0, 127, 122, 0.68);
    box-shadow: 0 0 0 4px rgba(0, 127, 122, 0.12);
}

.stack-form > button,
.table-actions button {
    background: var(--primary);
    border: 0;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-weight: 500;
    padding: 8px 12px;
}

.modal-lock {
    overflow: hidden;
}

.modal {
    align-items: center;
    bottom: 0;
    display: none;
    justify-content: center;
    left: 0;
    padding: 24px;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 50;
}

.modal.is-open {
    display: flex;
}

.modal-backdrop {
    background: rgba(15, 23, 42, 0.54);
    bottom: 0;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.modal-dialog {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 26px 80px rgba(15, 23, 42, 0.28);
    max-height: min(86vh, 820px);
    max-width: 720px;
    overflow: auto;
    padding: 0;
    position: relative;
    width: 100%;
    z-index: 1;
}

.modal-wide {
    max-width: min(1280px, calc(100vw - 48px));
}

.modal-header {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    padding: 22px 24px;
}

.modal-header h2 {
    font-size: 22px;
    margin: 4px 0 0;
}

.modal-close {
    appearance: none;
    align-items: center;
    background: #eef2f6;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--ink);
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 38px;
    font-family: inherit;
    font-size: 24px;
    height: 38px;
    justify-content: center;
    line-height: 1;
    margin: 0;
    padding: 0;
    text-decoration: none;
    transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
    width: 38px;
}

.modal-close:hover {
    background: #e2ecec;
    border-color: #c8ddda;
    color: var(--primary-dark);
    transform: translateY(-1px);
}

.modal-close:focus-visible {
    border-color: #78bfb7;
    box-shadow: 0 0 0 3px rgba(0, 140, 131, .12);
    outline: 0;
}

.modal .stack-form {
    padding: 24px;
}

.modal-actions {
    align-items: center;
    border-top: 1px solid var(--line);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin: 8px -24px -24px;
    padding: 18px 24px;
}

.modal-actions a {
    color: var(--muted);
    font-weight: 800;
}

.modal-actions button {
    background: var(--primary);
    border: 0;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-weight: 600;
    padding: 10px 14px;
}

.confirm-modal {
    align-items: center;
    bottom: 0;
    display: none;
    justify-content: center;
    left: 0;
    padding: 24px;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 70;
}

.confirm-modal.is-open {
    display: flex;
}

.confirm-backdrop {
    background: rgba(15, 23, 42, 0.55);
    bottom: 0;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.confirm-dialog {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 26px 80px rgba(15, 23, 42, 0.30);
    display: grid;
    gap: 16px;
    grid-template-columns: auto 1fr;
    max-width: 480px;
    padding: 24px;
    position: relative;
    width: 100%;
    z-index: 1;
}

.confirm-icon {
    align-items: center;
    background: #fff1f0;
    border-radius: 999px;
    color: #b42318;
    display: inline-flex;
    font-size: 22px;
    font-weight: 900;
    height: 46px;
    justify-content: center;
    width: 46px;
}

.confirm-modal[data-confirm-variant="acknowledge"] .confirm-icon {
    background: #e8f7f4;
    color: var(--primary);
}

.confirm-dialog h2 {
    font-size: 22px;
    margin: 4px 0 8px;
}

.confirm-dialog p {
    color: var(--muted);
    line-height: 1.5;
    margin: 0;
}

.confirm-actions {
    display: flex;
    gap: 10px;
    grid-column: 1 / -1;
    justify-content: flex-end;
    padding-top: 8px;
}

.button-light,
.button-danger {
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    padding: 10px 14px;
}

.button-light {
    background: #eef2f6;
    color: var(--ink);
}

.button-danger {
    background: #d92d20;
    color: #fff;
}

.button-primary {
    background: var(--primary);
    border: 0;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-weight: 600;
    padding: 10px 14px;
}

.button-primary:hover {
    background: var(--primary-dark);
}

.check-list {
    border: 1px solid var(--line);
    border-radius: 12px;
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 14px;
}

.check-list legend {
    color: #425466;
    font-size: 13px;
    font-weight: 800;
    padding: 0 6px;
}

.check-list label {
    align-items: center;
    display: flex;
    gap: 10px;
}

.check-list input {
    accent-color: var(--primary);
    flex: 0 0 16px;
}

.check-list small {
    color: var(--muted);
    display: block;
    margin-top: 2px;
}

.table-actions {
    align-items: center;
    display: flex;
    gap: 8px;
    white-space: nowrap;
}

.table-actions a {
    color: var(--primary);
    font-weight: 600;
}

.table-actions button {
    background: #fff1f0;
    color: #991b1b;
    padding: 6px 8px;
}

.table-actions .table-button {
    background: #eef9f8;
    color: var(--primary-dark);
}

.badge {
    border-radius: 999px;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    padding: 5px 9px;
}

.badge-success {
    background: #dcfce7;
    color: #166534;
}

.badge-muted {
    background: #eef2f6;
    color: #475467;
}

.badge-aguardando {
    background: #fffbeb;
    color: #92400e;
}

.badge-aprovado {
    background: #dcfce7;
    color: #166534;
}

.badge-reprovado {
    background: #fff1f0;
    color: #991b1b;
}

.repository-panel {
    padding: 0;
}

.repository-panel .panel-header {
    border-bottom: 1px solid var(--line);
    margin: 0;
    padding: 22px;
}

.repository-filters {
    align-items: end;
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(170px, 1fr) minmax(170px, 1fr) minmax(170px, 1fr) auto auto;
    padding: 18px 22px;
}

.repository-filters label {
    display: grid;
    gap: 7px;
}

.repository-filters span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.repository-filters select {
    background: #f8fbfb;
    border: 1px solid #dbe7e7;
    border-radius: 10px;
    color: var(--ink);
    padding: 11px 12px;
}

.repository-filters button,
.approval-card button {
    background: var(--primary);
    border: 0;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-weight: 800;
    padding: 12px 14px;
}

.repository-filters a {
    color: var(--muted);
    font-weight: 800;
    padding: 12px 0;
}

.repository-list {
    display: grid;
    gap: 12px;
    padding: 18px 22px 22px;
}

.document-row {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 14px;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    padding: 14px;
}

.document-icon {
    align-items: center;
    background: #eef9f8;
    border-radius: 8px;
    color: var(--primary-dark);
    display: flex;
    font-size: 24px;
    height: 48px;
    justify-content: center;
    width: 48px;
}

.document-main {
    min-width: 0;
}

.document-title-line {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.document-main p {
    color: var(--muted);
    margin: 6px 0 0;
}

.document-meta {
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.document-meta span {
    align-items: center;
    display: inline-flex;
    gap: 5px;
}

.document-actions {
    align-items: center;
    display: flex;
    gap: 8px;
    white-space: nowrap;
}

.document-actions a {
    background: #f8fbfb;
    border-radius: 8px;
    color: var(--primary-dark);
    font-weight: 800;
    padding: 9px 11px;
}

.empty-state {
    align-items: center;
    color: var(--muted);
    display: grid;
    gap: 6px;
    justify-items: center;
    padding: 38px 20px;
    text-align: center;
}

.empty-state i {
    color: var(--primary);
    font-size: 34px;
}

.empty-state strong {
    color: var(--ink);
}

.document-detail-panel {
    margin-top: 18px;
}

.approval-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.approval-card {
    background: #f8fbfb;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 12px;
    padding: 14px;
}

.document-opinion {
    background: #f8fbfb;
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-bottom: 16px;
    padding: 14px;
}

.document-opinion p {
    color: var(--muted);
    margin: 8px 0 0;
}

.document-detail-panel .timeline {
    gap: 0;
    margin-top: 16px;
}

.document-detail-panel .timeline article {
    display: grid;
    gap: 12px;
    grid-template-columns: 14px minmax(0, 1fr);
    padding: 0 0 18px;
    position: relative;
}

.document-detail-panel .timeline article::before {
    background: var(--line);
    bottom: 0;
    content: "";
    left: 6px;
    position: absolute;
    top: 18px;
    width: 2px;
}

.document-detail-panel .timeline article:last-child::before {
    display: none;
}

.document-detail-panel .timeline article > span {
    background: var(--primary);
    border-radius: 999px;
    height: 14px;
    margin-top: 3px;
    width: 14px;
    z-index: 1;
}

.flash {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 8px;
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.18);
    display: flex;
    font-size: 14px;
    font-weight: 700;
    gap: 10px;
    line-height: 1.35;
    max-width: min(420px, calc(100vw - 32px));
    padding: 11px 14px;
    position: fixed;
    right: 20px;
    top: 20px;
    transform: translateY(-18px);
    opacity: 0;
    z-index: 120;
    animation: toast-enter 220ms ease-out forwards;
}

.flash::before {
    content: '';
    border-radius: 999px;
    flex: 0 0 8px;
    height: 8px;
    background: currentColor;
}

.flash.is-leaving {
    animation: toast-leave 220ms ease-in forwards;
}

.flash-success {
    background: #dcfce7;
    color: #166534;
}

.flash-error {
    background: #fff1f0;
    color: #991b1b;
}

.flash-warning {
    background: #fffbeb;
    color: #92400e;
}

.form-help {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

.permissions-panel {
    min-width: 0;
    padding: 0;
}

@keyframes toast-enter {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes toast-leave {
    to { opacity: 0; transform: translateY(-12px); }
}

@media (max-width: 600px) {
    .flash {
        left: 16px;
        right: 16px;
        top: 16px;
        max-width: none;
    }
}

.batch-form .modal-actions {
    margin-top: 4px;
}

.batch-rows {
    display: grid;
    gap: 12px;
}

.batch-row {
    align-items: start;
    background: #fbfdfd;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 10px;
    grid-template-columns: 28px minmax(0, 1fr) 38px;
    padding: 12px;
    container-type: inline-size;
}

.batch-row-number {
    align-items: center;
    background: #e8f7f4;
    border-radius: 999px;
    color: var(--primary-dark);
    display: flex;
    font-size: 12px;
    font-weight: 800;
    height: 26px;
    justify-content: center;
    width: 26px;
}

.batch-fields {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-width: 0;
}

.batch-fields label {
    min-width: 0;
}

.batch-fields label > span {
    font-size: 12px;
}

.batch-fields input,
.batch-fields select {
    height: 46px;
    max-width: 100%;
    min-height: 46px;
    min-width: 0;
    padding: 10px 12px;
}

.batch-fields input[type="date"],
.batch-fields input[type="month"] {
    padding-right: 38px;
}

.batch-observation {
    grid-column: span 2;
}

.batch-remove {
    margin-top: 21px;
}

.batch-add {
    align-self: start;
    display: inline-flex;
    gap: 7px;
    justify-content: center;
    width: fit-content;
}

@media (max-width: 1100px) {
    .batch-fields { grid-template-columns: repeat(2, minmax(150px, 1fr)); }
}

@container (max-width: 900px) {
    .batch-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@container (max-width: 480px) {
    .batch-fields { grid-template-columns: minmax(0, 1fr); }
    .batch-observation { grid-column: auto; }
}

.modal-dialog .form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.modal-dialog .form select {
    height: 46px;
    line-height: 1.2;
    max-width: 100%;
    min-height: 46px;
    min-width: 0;
    padding-bottom: 10px;
    padding-top: 10px;
}

.modal-dialog .form input[type="date"],
.modal-dialog .form input[type="month"] {
    padding-right: 38px;
}

.modal-dialog .form textarea {
    min-height: 92px;
}

@media (max-width: 640px) {
    .batch-row { grid-template-columns: 26px minmax(0, 1fr); }
    .batch-fields { grid-column: 1 / -1; grid-template-columns: 1fr; }
    .batch-observation { grid-column: auto; }
    .batch-remove { grid-column: 2; grid-row: 1; justify-self: end; margin-top: 0; }
}

.permissions-panel .panel-header {
    border-bottom: 1px solid var(--line);
    margin: 0;
    padding: 22px;
}

.permission-role {
    border-bottom: 1px solid var(--line);
    min-width: 0;
}

.permission-role summary {
    align-items: center;
    cursor: pointer;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    list-style: none;
    padding: 18px 22px;
}

.permission-role summary::-webkit-details-marker {
    display: none;
}

.permission-role summary strong {
    display: block;
}

.permission-role summary small {
    color: var(--muted);
}

.permission-table-wrap {
    max-width: 100%;
    max-height: min(62vh, 620px);
    overflow: auto;
    padding: 0 22px;
    width: 100%;
}

.permission-role-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 14px 22px;
    scrollbar-width: thin;
}

.permission-role-tab {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--text);
    display: grid;
    flex: 0 0 auto;
    gap: 2px;
    min-width: 150px;
    padding: 10px 14px;
    text-align: left;
}

.permission-role-tab span { color: var(--muted); font-size: .78rem; }
.permission-role-tab.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.permission-role-tab.is-active span { color: rgba(255,255,255,.82); }
.permission-role-panel[hidden] { display: none; }
.permission-role-panel > header { border-top: 1px solid var(--line); padding: 16px 22px 10px; }
.permission-role-panel > header h3 { margin: 0 0 3px; }
.permission-role-panel > header p { color: var(--muted); margin: 0; }
.permission-responsibilities {
    background: var(--surface-soft);
    border-block: 1px solid var(--line);
    display: grid;
    gap: 14px;
    padding: 16px 22px;
}
.permission-responsibilities h4 { margin: 0 0 3px; }
.permission-responsibilities p { color: var(--muted); margin: 0; }
.permission-responsibility-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.permission-responsibility-grid label {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    gap: 10px;
    min-height: 44px;
    padding: 9px 12px;
}
.permission-responsibility-grid input { flex: 0 0 auto; height: 18px; width: 18px; }
.permission-responsibility-grid span { font-size: .88rem; font-weight: 700; }
.permission-table thead th { background: #fff; position: sticky; top: 0; z-index: 2; }
.permission-table th:first-child,
.permission-table td:first-child { background: #fff; left: 0; position: sticky; z-index: 1; }
.permission-table thead th:first-child { z-index: 3; }

.permission-table {
    min-width: 860px;
}

.permission-table th,
.permission-table td {
    text-align: center;
}

.permission-table th:first-child,
.permission-table td:first-child {
    text-align: left;
}

.switch {
    align-items: center;
    display: inline-flex;
    flex: 0 0 40px;
    height: 22px;
    justify-content: center;
    position: relative;
    vertical-align: middle;
    width: 40px;
}

.switch input {
    cursor: pointer;
    height: 100%;
    inset: 0;
    margin: 0;
    opacity: 0;
    position: absolute;
    width: 100%;
    z-index: 1;
}

.switch span {
    background: #d0d5dd;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    height: 22px;
    padding: 3px;
    pointer-events: none;
    transition: background 160ms ease;
    width: 40px;
}

.switch span::before {
    background: #fff;
    border-radius: 999px;
    content: "";
    height: 16px;
    transition: transform 160ms ease;
    width: 16px;
}

.switch input:checked + span {
    background: var(--primary);
}

.switch input:checked + span::before {
    transform: translateX(18px);
}

.switch input:focus-visible + span {
    outline: 3px solid rgba(0, 127, 122, 0.22);
    outline-offset: 3px;
}

.permission-actions {
    display: flex;
    justify-content: flex-end;
    padding: 0 22px 22px;
}

.permission-actions button {
    background: var(--primary);
    border: 0;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-weight: 800;
    padding: 11px 15px;
}

.login-page {
    background:
        linear-gradient(140deg, rgba(0, 127, 122, 0.14) 0%, rgba(244, 248, 248, 0.92) 42%, rgba(240, 90, 40, 0.12) 100%),
        #f6fbfb;
    min-height: 100vh;
}

.login-shell {
    align-items: stretch;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(380px, 470px);
    margin: 0 auto;
    max-width: 1180px;
    min-height: 100vh;
    padding: 34px;
}

.login-hero,
.login-panel {
    min-width: 0;
}

.login-hero {
    background:
        linear-gradient(150deg, rgba(0, 95, 91, 0.95), rgba(0, 127, 122, 0.82)),
        linear-gradient(45deg, rgba(255, 255, 255, 0.10) 25%, transparent 25% 50%, rgba(255, 255, 255, 0.10) 50% 75%, transparent 75%);
    background-size: auto, 26px 26px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 24px 0 0 24px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 36px;
    position: relative;
}

.login-hero::after {
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    content: "";
    height: 420px;
    position: absolute;
    right: -150px;
    top: -110px;
    width: 420px;
}

.login-hero-header,
.clinic-card,
.hero-copy,
.login-stats {
    position: relative;
    z-index: 1;
}

.login-hero-header {
    align-items: center;
    display: flex;
    gap: 14px;
}

.login-brand-mark {
    background: #fff;
    color: var(--primary-dark);
}

.login-hero-header strong {
    display: block;
    font-size: 18px;
}

.login-hero-header small {
    color: rgba(255, 255, 255, 0.72);
}

.clinic-card {
    align-items: center;
    align-self: flex-end;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 18px;
    display: flex;
    gap: 16px;
    max-width: 330px;
    padding: 18px;
}

.clinic-card small,
.clinic-card p {
    color: rgba(255, 255, 255, 0.72);
}

.clinic-card strong {
    display: block;
    font-size: 26px;
    margin: 3px 0;
}

.clinic-card p {
    margin: 0;
}

.clinic-pulse {
    align-items: center;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    display: flex;
    flex: 0 0 58px;
    height: 58px;
    justify-content: center;
    position: relative;
}

.clinic-pulse span,
.clinic-pulse i {
    background: #fff;
    display: block;
    position: absolute;
}

.clinic-pulse span {
    border-radius: 999px;
    height: 34px;
    width: 10px;
}

.clinic-pulse i {
    border-radius: 999px;
    height: 10px;
    width: 34px;
}

.hero-copy {
    max-width: 620px;
}

.login-kicker {
    color: var(--accent);
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.hero-copy .login-kicker {
    color: #ffd9c9;
}

.hero-copy h1 {
    font-size: 54px;
    line-height: 1.02;
    margin: 0;
    max-width: 680px;
}

.hero-copy p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 18px;
    line-height: 1.6;
    margin: 18px 0 0;
    max-width: 560px;
}

.login-stats {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.login-stats article {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 14px;
    padding: 16px;
}

.login-stats strong {
    display: block;
    font-size: 25px;
}

.login-stats span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
}

.login-panel {
    align-content: center;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.86);
    border-left: 0;
    border-radius: 0 24px 24px 0;
    box-shadow: 0 28px 70px rgba(31, 41, 51, 0.12);
    display: grid;
    padding: 46px;
    width: 100%;
}

.login-panel-header {
    margin-bottom: 28px;
}

.login-panel h2 {
    font-size: 30px;
    margin: 0 0 8px;
}

.login-panel p {
    color: var(--muted);
    line-height: 1.5;
    margin: 0;
}

.form {
    display: grid;
    gap: 18px;
}

.form label {
    display: grid;
    gap: 8px;
}

.form label > span {
    color: #425466;
    font-size: 13px;
    font-weight: 700;
}

.form input {
    background: #f8fbfb;
    border: 1px solid #dbe7e7;
    border-radius: 12px;
    color: var(--ink);
    outline: 0;
    padding: 14px 15px;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
    width: 100%;
}

.form input:focus {
    background: #fff;
    border-color: rgba(0, 127, 122, 0.68);
    box-shadow: 0 0 0 4px rgba(0, 127, 122, 0.12);
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 88px;
}

.password-field button {
    background: transparent;
    border: 0;
    color: var(--primary);
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    padding: 8px;
    position: absolute;
    right: 8px;
    top: 32px;
}

.form-row {
    align-items: center;
    display: flex;
    gap: 14px;
    justify-content: space-between;
}

.form-row a {
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
}

.check-field {
    align-items: center;
    display: flex !important;
    flex-direction: row;
    gap: 8px !important;
}

.check-field input {
    accent-color: var(--primary);
    height: 16px;
    padding: 0;
    width: 16px;
}

.check-field span {
    color: var(--muted) !important;
    font-size: 13px;
}

.login-submit {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
    border-radius: 12px !important;
    box-shadow: 0 14px 24px rgba(0, 127, 122, 0.22);
    padding: 15px 18px !important;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.login-submit:hover {
    box-shadow: 0 18px 28px rgba(0, 127, 122, 0.28);
    transform: translateY(-1px);
}

.alert {
    background: #fff1f0;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #991b1b;
    margin-bottom: 16px;
    padding: 12px;
}

.login-footnote {
    align-items: flex-start;
    border-top: 1px solid var(--line);
    display: flex;
    gap: 10px;
    margin-top: 28px;
    padding-top: 18px;
}

.login-footnote span {
    background: var(--success);
    border-radius: 999px;
    flex: 0 0 9px;
    height: 9px;
    margin-top: 7px;
}

.login-footnote p {
    color: var(--muted);
    font-size: 13px;
}

@media (max-width: 900px) {
    .app-shell,
    .kpi-grid,
    .two-columns,
    .three-columns,
    .module-grid,
    .form-layout,
    .compact-form-layout,
    .form-grid,
    .repository-filters,
    .approval-grid {
        grid-template-columns: 1fr;
    }

    .document-row {
        align-items: flex-start;
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .document-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .app-shell,
    .app-shell.sidebar-collapsed {
        height: 100vh;
    }

    .sidebar {
        bottom: 0;
        left: 0;
        max-width: 320px;
        overflow-y: auto;
        padding: 18px;
        position: fixed;
        top: 0;
        transform: translateX(-105%);
        transition: transform 180ms ease;
        width: 86vw;
        z-index: 20;
    }

    .sidebar-collapsed .brand-text,
    .sidebar-collapsed .sidebar-profile-text,
    .sidebar-collapsed .nav a span,
    .sidebar-collapsed .nav-parent strong,
    .sidebar-collapsed .nav-chevron {
        display: initial;
    }

    .sidebar-collapsed .sidebar-profile {
        justify-content: flex-start;
    }

    .sidebar-collapsed .nav-sub {
        display: none;
    }

    .sidebar-collapsed .nav-group.open .nav-sub {
        display: grid;
    }

    .sidebar-collapsed .nav a,
    .sidebar-collapsed .nav-parent {
        justify-content: flex-start;
    }

    .sidebar-backdrop {
        background: rgba(15, 23, 42, 0.42);
        bottom: 0;
        display: block;
        left: 0;
        opacity: 0;
        pointer-events: none;
        position: fixed;
        right: 0;
        top: 0;
        transition: opacity 180ms ease;
        z-index: 19;
    }

    .sidebar-open .sidebar {
        transform: translateX(0);
    }

    .sidebar-open .sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .topbar {
        align-items: flex-start;
        gap: 16px;
        justify-content: flex-start;
        padding: 20px;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .user-menu {
        margin-left: auto;
    }

    .content {
        padding: 20px;
    }

    .data-toolbar,
    .data-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .data-search {
        min-width: 0;
        width: 100%;
    }

    .data-size,
    .data-size select,
    .data-pages {
        width: 100%;
    }

    .data-pages {
        justify-content: space-between;
    }

    .login-shell {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .login-hero {
        border-radius: 20px 20px 0 0;
        min-height: 520px;
        padding: 26px;
    }

    .login-panel {
        border-left: 1px solid rgba(255, 255, 255, 0.86);
        border-radius: 0 0 20px 20px;
        padding: 30px;
    }

    .hero-copy h1 {
        font-size: 40px;
    }

    .login-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .login-shell {
        padding: 0;
    }

    .login-hero {
        border-radius: 0;
        min-height: 470px;
    }

    .clinic-card {
        align-self: stretch;
    }

    .hero-copy h1 {
        font-size: 34px;
    }

    .hero-copy p {
        font-size: 16px;
    }

    .login-panel {
        border-radius: 0;
        padding: 26px 20px 30px;
    }

    .form-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .modal {
        align-items: flex-end;
        padding: 0;
    }

    .modal-dialog,
    .modal-wide {
        border-radius: 16px 16px 0 0;
        max-height: 92vh;
        max-width: none;
    }

    .modal-header {
        padding: 18px 20px;
    }

    .modal .stack-form {
        padding: 20px;
    }

    .modal-actions {
        margin: 8px -20px -20px;
        padding: 16px 20px;
    }

    .confirm-modal {
        align-items: flex-end;
        padding: 14px;
    }

    .confirm-dialog {
        grid-template-columns: 1fr;
        max-width: none;
    }

    .confirm-actions {
        flex-direction: column-reverse;
    }

    .button-light,
    .button-danger,
    .button-primary {
        width: 100%;
    }
}

.attachment-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.attachment-list.compact {
    max-width: 260px;
}

.attachment-list a {
    background: #eef8f6;
    border: 1px solid #cde9e4;
    border-radius: 8px;
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 800;
    max-width: 220px;
    overflow: hidden;
    padding: 6px 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.linked-box {
    background: #f8fbfb;
    border: 1px solid var(--line);
    border-radius: 10px;
    display: grid;
    gap: 10px;
    padding: 14px;
}

.linked-box strong {
    color: var(--ink);
    font-size: 13px;
}
.feedback-filter-panel {
    margin-bottom: 18px;
}

.filter-form {
    align-items: end;
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(6, minmax(130px, 1fr)) auto;
}

.filter-actions {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.filter-actions a {
    color: var(--muted);
    font-weight: 600;
}

.feedback-kpis {
    margin-bottom: 18px;
}

.chart-panel {
    margin-bottom: 18px;
}

.feedback-card-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
}

.feedback-person-card,
.single-radar-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .08);
    display: grid;
    gap: 14px;
    padding: 18px;
}

.feedback-person-header {
    align-items: center;
    display: grid;
    gap: 12px;
    grid-template-columns: auto 1fr auto;
}

.feedback-person-header strong {
    display: block;
    font-size: 17px;
}

.feedback-person-header small {
    color: var(--muted);
}

.feedback-person-header button {
    background: #eef8f6;
    color: var(--primary-dark);
    padding: 10px 12px;
}

.feedback-score-row {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, 1fr);
}

.feedback-score-row span {
    background: #f8fbfb;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px;
}

.feedback-score-row small {
    color: var(--muted);
    display: block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.feedback-score-row strong {
    display: block;
    font-size: 20px;
    margin-top: 4px;
}

.feedback-score-row .is-positive strong {
    color: #047857;
}

.feedback-score-row .is-negative strong {
    color: #b42318;
}

.radar-chart,
.line-chart {
    display: block;
    height: auto;
    width: 100%;
}

.radar-grid {
    fill: none;
    stroke: #d9e7e5;
    stroke-width: 1;
}

.radar-axis {
    stroke: #edf2f4;
    stroke-width: 1;
}

.radar-label {
    fill: var(--muted);
    font-size: 7px;
    font-weight: 800;
    text-anchor: middle;
}

.radar-area {
    fill: var(--chart-color);
    fill-opacity: .08;
    stroke: none;
}

.radar-stroke {
    fill: none;
    stroke: var(--chart-color);
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chart-legend span {
    align-items: center;
    color: var(--muted);
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    gap: 6px;
}

.chart-legend span::before {
    background: var(--chart-color);
    border-radius: 999px;
    content: "";
    height: 8px;
    width: 8px;
}

.line-grid {
    stroke: #e6eef0;
    stroke-width: 1;
}

.line-series {
    fill: none;
    stroke: var(--primary);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
}

.line-dot {
    fill: #ffffff;
    stroke: var(--primary);
    stroke-width: 3;
}

.line-label,
.line-name,
.line-value {
    fill: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-anchor: middle;
}

.line-label {
    text-anchor: start;
}

.line-value {
    fill: var(--ink);
}

.chart-empty,
.empty-state {
    color: var(--muted);
    font-weight: 800;
    padding: 28px;
    text-align: center;
}

.single-person-radar-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.single-radar-card header {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.single-radar-card header span {
    background: #eef8f6;
    border-radius: 999px;
    color: var(--primary-dark);
    font-weight: 900;
    padding: 6px 10px;
}

.feedback-last-text {
    border-top: 1px solid var(--line);
    padding-top: 12px;
}

.feedback-last-text strong {
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
}

.feedback-last-text p {
    color: var(--muted);
    line-height: 1.45;
    margin: 0;
}

.feedback-detail-modal {
    display: grid;
    gap: 18px;
    padding: 0 24px 24px;
}

.feedback-timeline {
    display: grid;
    gap: 14px;
}

.feedback-timeline article {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 14px;
}

.feedback-timeline article header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.feedback-timeline article header span {
    background: #eef8f6;
    border-radius: 999px;
    color: var(--primary-dark);
    font-weight: 900;
    padding: 6px 10px;
}

.feedback-note-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, 1fr);
}

.feedback-note-grid p,
.feedback-observation {
    color: var(--muted);
    line-height: 1.45;
    margin: 0;
}

.feedback-note-grid strong {
    color: var(--ink);
    display: block;
    margin-bottom: 4px;
}

.feedback-observation {
    background: #f8fbfb;
    border-radius: 8px;
    margin-top: 12px;
    padding: 10px;
}

@media (max-width: 900px) {
    .filter-form,
    .feedback-score-row,
    .feedback-note-grid {
        grid-template-columns: 1fr;
    }

    .feedback-person-header {
        grid-template-columns: auto 1fr;
    }

    .feedback-person-header button {
        grid-column: 1 / -1;
    }
}
.file-pill {
    background: #eef8f6;
    border: 1px solid #cde9e4;
    border-radius: 999px;
    color: var(--primary-dark);
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    padding: 7px 10px;
}
.radar-point {
    cursor: help;
    fill: var(--chart-color);
    fill-opacity: .05;
    stroke: var(--chart-color);
    stroke-opacity: .75;
    stroke-width: 1.2;
}

.radar-point:hover {
    fill-opacity: .25;
    stroke-opacity: 1;
    stroke-width: 1.8;
}

.line-dot {
    cursor: help;
}
.radar-label tspan {
    dominant-baseline: middle;
}
/* Responsive layout refinements 2026-07-25 */
.content {
    padding: clamp(14px, 2vw, 28px) clamp(14px, 2.2vw, 32px);
}

.panel,
.kpi-card,
.module-card,
.feedback-person-card,
.single-radar-card {
    min-width: 0;
}

.panel-header,
.data-panel .panel-header,
.repository-panel .panel-header,
.permissions-panel .panel-header {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px 16px;
}

.panel-header > div {
    min-width: min(100%, 260px);
}

.panel-header button,
.panel-header a,
.form button,
.modal-actions button,
.filter-actions button {
    white-space: nowrap;
}

.module-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
}

.kpi-grid,
.three-columns {
    grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
}

.two-columns {
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
}

.form-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
}

.data-toolbar,
.data-footer {
    flex-wrap: wrap;
}

.data-search,
.data-size {
    min-width: min(100%, 220px);
}

.table-wrap,
.permission-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
}

.filter-form {
    align-items: end;
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
}

.filter-form label {
    min-width: 0;
}

.filter-actions {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    min-width: 0;
}

.filter-actions a,
.filter-actions button {
    align-items: center;
    display: inline-flex;
    min-height: 44px;
}

.feedback-card-grid {
    gap: 14px;
    grid-template-columns: repeat(auto-fill, minmax(min(255px, 100%), 1fr));
}

.feedback-person-card,
.single-radar-card {
    border-radius: 10px;
    gap: 10px;
    padding: 12px;
}

.feedback-person-header {
    gap: 9px;
    grid-template-columns: auto minmax(0, 1fr) auto;
}

.feedback-person-header strong,
.feedback-person-header small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.feedback-person-header button {
    padding: 8px 10px;
}

.feedback-score-row {
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feedback-score-row span {
    border-radius: 8px;
    padding: 8px;
}

.feedback-score-row small {
    font-size: 9px;
    line-height: 1.15;
}

.feedback-score-row strong {
    font-size: clamp(16px, 1.5vw, 20px);
}

.feedback-person-card .radar-chart {
    margin-inline: auto;
    max-width: 100%;
}

.chart-legend {
    gap: 6px 8px;
}

.chart-legend span {
    font-size: 11px;
}

.feedback-last-text p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (min-width: 1280px) {
    .feedback-card-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (min-width: 1600px) {
    .feedback-card-grid {
        grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
    }
}

@media (max-width: 1100px) {
    .filter-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 760px) {
    .topbar {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 12px;
    }

    .topbar h1 {
        font-size: 20px;
    }

    .user-menu {
        margin-left: 52px;
    }

    .data-panel .panel-header,
    .repository-panel .panel-header,
    .permissions-panel .panel-header,
    .panel {
        padding: 16px;
    }

    .data-panel .table-wrap,
    .permission-table-wrap {
        padding-inline: 16px;
    }

    .filter-form {
        grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
    }

    .filter-actions {
        width: 100%;
    }

    .filter-actions button {
        flex: 1;
        justify-content: center;
    }

    .feedback-card-grid {
        grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr));
    }

    .feedback-person-header {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .feedback-person-header button {
        grid-column: 1 / -1;
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 520px) {
    .content {
        padding: 12px;
    }

    .panel,
    .data-panel .panel-header,
    .repository-panel .panel-header,
    .permissions-panel .panel-header {
        padding: 14px;
    }

    .feedback-score-row {
        grid-template-columns: 1fr;
    }

    .modal .stack-form {
        padding: 18px;
    }

    .modal-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .modal-actions button,
    .modal-actions a {
        justify-content: center;
        text-align: center;
        width: 100%;
    }
}
/* Feedback card header button fix 2026-07-25 */
.feedback-person-header {
    align-items: start;
    grid-template-columns: auto minmax(0, 1fr) max-content;
}

.feedback-person-header > div:not(.avatar) {
    min-width: 0;
    overflow: hidden;
    padding-right: 2px;
}

.feedback-person-header strong,
.feedback-person-header small {
    display: block;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.feedback-person-header strong {
    font-size: clamp(13px, 1.25vw, 16px);
    line-height: 1.2;
}

.feedback-person-header small {
    line-height: 1.3;
}

.feedback-person-header button {
    align-items: center;
    align-self: start;
    background: #eef8f6;
    border: 1px solid #cfe9e4;
    border-radius: 8px;
    box-shadow: none;
    color: var(--primary-dark);
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    justify-content: center;
    min-height: 38px;
    padding: 8px 11px;
    white-space: nowrap;
}

.feedback-person-header button:hover {
    background: #ddf2ee;
    border-color: #abd8d1;
}

@media (max-width: 700px) {
    .feedback-person-header {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .feedback-person-header button {
        grid-column: 1 / -1;
        width: 100%;
    }
}
/* Cliente module refinements 2026-07-26 */
.tag-list {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-list span {
    background: #eef8f6;
    border: 1px solid #cde9e4;
    border-radius: 999px;
    color: var(--primary-dark);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    padding: 6px 8px;
    white-space: nowrap;
}

.inline-checks {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.inline-checks label {
    align-items: center;
    background: #f8fbfb;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 10px;
}
/* Metas indicator module 2026-07-26 */
.table-wrap table th,
.table-wrap table td,
.permission-table th,
.permission-table td {
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
    white-space: nowrap;
}

.table-wrap table td strong,
.table-wrap table td small {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.indicator-panel {
    padding: 0;
}

.indicator-filter-form {
    border-bottom: 1px solid var(--line);
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    padding: 0 22px 22px;
}

.indicator-table-wrap {
    overflow-x: auto;
    padding: 0 22px 22px;
}

.indicator-table {
    min-width: 980px;
}

.indicator-table th,
.indicator-table td {
    white-space: nowrap;
}

.trend-up {
    color: #00856f;
    font-weight: 900;
}

.trend-down {
    color: #c0262d;
    font-weight: 900;
}

.indicator-section-title {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin: 20px 0 8px;
}

.indicator-section-title h2 {
    color: #173b4f;
    font-size: 14px;
    letter-spacing: .04em;
    margin: 0;
    padding-bottom: 10px;
    text-transform: uppercase;
}

.indicator-section-title button {
    background: var(--primary);
    border: 0;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-weight: 900;
    padding: 10px 14px;
}

.indicator-card-grid {
    display: grid;
    gap: 1px;
    margin-bottom: 5px;
}

.indicator-card-grid.five-cols {
    grid-template-columns: repeat(5, minmax(130px, 1fr));
}

.indicator-card-grid.two-cols {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
}

.indicator-card-grid article {
    background: #f8fbfb;
    border: 1px solid var(--line);
    border-radius: 8px;
    min-width: 0;
    padding: 16px;
    text-align: center;
}

.indicator-card-grid span {
    color: var(--muted);
    display: block;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .04em;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.indicator-card-grid strong {
    color: #173b4f;
    display: block;
    font-size: 22px;
    line-height: 1.1;
}

.indicator-card-grid small {
    color: var(--muted);
    display: block;
    font-weight: 700;
    margin-top: 6px;
}

.compact-indicators {
    margin-top: 10px;
}

@media (max-width: 900px) {
    .indicator-card-grid.five-cols,
    .indicator-card-grid.two-cols {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .indicator-section-title {
        align-items: stretch;
        flex-direction: column;
    }

    .indicator-card-grid.five-cols,
    .indicator-card-grid.two-cols {
        grid-template-columns: 1fr;
    }
}
/* Metas clean refinements 2026-07-26 */
.page-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 5px;
}

.page-actions button {
    align-items: center;
    background: var(--primary);
    border: 0;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    gap: 8px;
    font-weight: 500;
    min-height: 40px;
    padding: 10px 14px;
}

.page-actions button:nth-child(2) {
    background: #173b4f;
}

.page-actions button:nth-child(3) {
    background: #f05a28;
}

.indicator-panel .panel-header {
    padding: 20px 22px 12px;
}

.indicator-panel .panel-header h2,
.data-panel .panel-header h2 {
    font-size: 20px;
    line-height: 1.15;
    margin-bottom: 6px;
}

.indicator-panel .panel-header p,
.data-panel .panel-header p {
    font-size: 14px;
    line-height: 1.45;
}

.indicator-filter-form {
    align-items: end;
    gap: 12px;
    padding-top: 6px;
}

.indicator-filter-form label,
.data-toolbar label {
    min-width: 0;
}

.indicator-filter-form select,
.indicator-filter-form input,
.data-search,
.data-size select,
.table-filters input {
    background: #f8fbfb;
    border: 1px solid #d9e6e6;
    border-radius: 8px;
    box-shadow: none;
    color: var(--ink);
    min-height: 42px;
}

.indicator-filter-form select,
.indicator-filter-form input {
    font-size: 14px;
    padding: 9px 11px;
    width: 100%;
}

.indicator-filter-form span,
.form label span {
    font-size: 13px;
}

.filter-actions {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.filter-actions a {
    color: var(--acent);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.filter-actions button {
    border-radius: 8px;
    min-height: 30px;
    padding-inline: 10px;
    cursor: pointer;
    background-color: #93ef91;
    border: none
}

.table-wrap table,
.indicator-table,
.permission-table {
    font-size: 13px;
}

.table-wrap table th,
.indicator-table th,
.permission-table th {
    font-size: 11px;
    letter-spacing: .02em;
}

.table-wrap table td,
.table-wrap table th,
.indicator-table td,
.indicator-table th {
    padding: 10px 9px;
}

.indicator-table td strong,
.table-wrap table td strong {
    font-weight: 800;
}

.indicator-section-title {
    margin: 5px 0 5px;
}

.indicator-card-grid {
    gap: 8px;
    margin-bottom: 5px;
}

.indicator-card-grid article {
    padding: 12px;
}

.indicator-card-grid strong {
    font-size: 19px;
}

.data-panel {
    margin-top: 14px;
}

.data-toolbar {
    gap: 10px;
    padding: 12px 18px;
}

.data-search {
    min-width: min(320px, 100%);
}

.data-search input {
    font-size: 13px;
}

.table-filters input {
    font-size: 11px;
    min-height: 34px;
    padding: 7px 8px;
}

@media (max-width: 900px) {
    .filter-actions {
        justify-content: flex-start;
    }
}
/* Button system standardization 2026-07-26 */
:where(button, .button, .table-button, .document-actions a, .table-actions a, .modal-actions a, .panel-header a, .filter-actions a) {
    -webkit-tap-highlight-color: transparent;
}

:where(.user-menu button, .panel-header button, .form button, .stack-form > button, .modal-actions button, .permission-actions button, .repository-filters button, .approval-card button, .filter-actions button, .page-actions button, .indicator-section-title button) {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 8px;
    box-shadow: 0 1px 1px rgba(15, 23, 42, 0.04), 0 8px 18px rgba(0, 127, 122, 0.10);
    cursor: pointer;
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    gap: 7px;
    justify-content: center;
    line-height: 1;
    min-height: 36px;
    padding: 9px 13px;
    text-decoration: none;
    transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease, border-color 140ms ease, color 140ms ease;
    white-space: nowrap;
}

:where(.panel-header button, .form button, .stack-form > button, .modal-actions button, .permission-actions button, .repository-filters button, .filter-actions button, .page-actions button, .indicator-section-title button, .approval-card button) {
    background: linear-gradient(180deg, #009b8f 0%, var(--primary) 100%);
    color: #fff;
}

:where(.panel-header button, .form button, .stack-form > button, .modal-actions button, .permission-actions button, .repository-filters button, .filter-actions button, .page-actions button, .indicator-section-title button, .approval-card button):hover {
    background: linear-gradient(180deg, #00a99b 0%, #00746f 100%);
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.08), 0 10px 22px rgba(0, 127, 122, 0.16);
    transform: translateY(-1px);
}

:where(.panel-header button, .form button, .stack-form > button, .modal-actions button, .permission-actions button, .repository-filters button, .filter-actions button, .page-actions button, .indicator-section-title button, .approval-card button):active {
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
    transform: translateY(0);
}

:where(button, a):focus-visible {
    outline: 3px solid rgba(0, 127, 122, 0.22);
    outline-offset: 2px;
}

:where(button:disabled, .data-pages button:disabled) {
    box-shadow: none;
    cursor: not-allowed;
    opacity: .52;
    transform: none;
}

.page-actions {
    gap: 8px;
    margin-bottom: 10px;
}

.page-actions button:nth-child(2) {
    background: linear-gradient(180deg, #214e64 0%, #173b4f 100%);
    box-shadow: 0 8px 18px rgba(23, 59, 79, 0.12);
}

.page-actions button:nth-child(2):hover {
    background: linear-gradient(180deg, #285f78 0%, #123144 100%);
}

.page-actions button:nth-child(3) {
    background: linear-gradient(180deg, #ff7042 0%, var(--accent) 100%);
    box-shadow: 0 8px 18px rgba(240, 90, 40, 0.14);
}

.page-actions button:nth-child(3):hover {
    background: linear-gradient(180deg, #ff7c50 0%, #d94d22 100%);
}

.filter-actions a,
.repository-filters a,
.modal-actions a,
.panel-header a {
    align-items: center;
    background: #f7fbfb;
    border: 1px solid #dbe7e7;
    border-radius: 8px;
    color: var(--primary-dark);
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    justify-content: center;
    min-height: 36px;
    padding: 9px 12px;
    text-decoration: none;
    transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
    white-space: nowrap;
}

.filter-actions a:hover,
.repository-filters a:hover,
.modal-actions a:hover,
.panel-header a:hover {
    background: #eef8f6;
    border-color: #c6e5df;
    color: var(--primary);
    transform: translateY(-1px);
}

.table-actions,
.document-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.table-actions a,
.table-actions button,
.table-actions .table-button,
.document-actions a,
.document-actions button {
    align-items: center;
    border: 1px solid #dbe7e7;
    border-radius: 8px;
    box-shadow: none;
    cursor: pointer;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    justify-content: center;
    line-height: 1;
    min-height: 32px;
    padding: 8px 10px;
    text-decoration: none;
    transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
    white-space: nowrap;
}

.table-actions a,
.table-actions .table-button,
.document-actions a {
    background: #effaf8;
    color: var(--primary-dark);
}

.table-actions a:hover,
.table-actions .table-button:hover,
.document-actions a:hover {
    background: #dff3ef;
    border-color: #b8ded7;
    color: var(--primary);
    transform: translateY(-1px);
}

.table-actions button,
.document-actions button,
.button-danger,
.approval-card .button-danger {
    background: #fff1f1;
    border-color: #ffd6d6;
    box-shadow: none;
    color: #a01822;
}

.table-actions button:hover,
.document-actions button:hover,
.button-danger:hover,
.approval-card .button-danger:hover {
    background: #ffe4e4;
    border-color: #ffc1c1;
    color: #86131b;
    transform: translateY(-1px);
}

.document-actions form,
.table-actions form {
    display: inline-flex;
    margin: 0;
}

.data-pages button {
    background: #f7fbfb;
    border: 1px solid #dbe7e7;
    border-radius: 8px;
    color: var(--primary-dark);
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    min-height: 32px;
    padding: 8px 10px;
    transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.data-pages button:not(:disabled):hover {
    background: #eef8f6;
    border-color: #c6e5df;
    color: var(--primary);
}

.repository-filters,
.filter-actions {
    align-items: end;
}

@media (max-width: 700px) {
    .page-actions,
    .filter-actions,
    .repository-filters,
    .document-actions,
    .table-actions {
        align-items: stretch;
    }

    .page-actions button,
    .filter-actions a,
    .filter-actions button,
    .repository-filters a,
    .repository-filters button {
        width: 100%;
    }
}
/* Responsive filter button alignment 2026-07-26 */
.repository-filters,
.filter-form,
.filters-grid,
.form-filters,
.card-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 14px;
}

.repository-filters label,
.filter-form label,
.filters-grid label,
.form-filters label,
.card-filters label,
.repository-filters .form-group,
.filter-form .form-group,
.filters-grid .form-group,
.form-filters .form-group,
.card-filters .form-group {
    flex: 1 1 230px;
    min-width: 0;
}

.repository-filters select,
.repository-filters input,
.filter-form select,
.filter-form input,
.filters-grid select,
.filters-grid input,
.form-filters select,
.form-filters input,
.card-filters select,
.card-filters input,
.data-toolbar select,
.data-toolbar input {
    width: 100%;
    min-height: 44px;
    height: 44px;
    border: 1px solid #d8e7e7;
    border-radius: 10px;
    background-color: #f8fcfc;
    color: #172433;
    font-size: 0.92rem;
    line-height: 1.2;
    padding: 0 14px;
    box-sizing: border-box;
}

.repository-filters > button,
.repository-filters > a,
.filter-actions > button,
.filter-actions > a,
.form-filters > button,
.form-filters > a,
.card-filters > button,
.card-filters > a,
.filters-grid > button,
.filters-grid > a {
    flex: 0 0 112px;
    width: 112px;
    height: 44px;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-sizing: border-box;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, border-color .16s ease, color .16s ease;
}

.repository-filters > button,
.filter-actions > button,
.form-filters > button,
.card-filters > button,
.filters-grid > button,
button.btn-filter,
.btn-filter {
    border: 1px solid #008c83;
    background: linear-gradient(135deg, #008c83 0%, #00786f 100%);
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(0, 140, 131, .16);
}

.repository-filters > button:hover,
.filter-actions > button:hover,
.form-filters > button:hover,
.card-filters > button:hover,
.filters-grid > button:hover,
button.btn-filter:hover,
.btn-filter:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #007f77 0%, #006b64 100%);
    box-shadow: 0 14px 26px rgba(0, 140, 131, .22);
}

.repository-filters > a,
.filter-actions > a,
.form-filters > a,
.card-filters > a,
.filters-grid > a,
a.btn-clear,
.btn-clear {
    border: 1px solid #d8e7e7;
    background: #f8fcfc;
    color: #005f62;
    box-shadow: none;
}

.repository-filters > a:hover,
.filter-actions > a:hover,
.form-filters > a:hover,
.card-filters > a:hover,
.filters-grid > a:hover,
a.btn-clear:hover,
.btn-clear:hover {
    transform: translateY(-1px);
    border-color: #b9dede;
    background: #eefafa;
    color: #00786f;
}

.filter-actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px;
}

.data-toolbar,
.table-toolbar,
.panel-toolbar,
.actions-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.data-search,
.table-search,
.panel-search {
    flex: 1 1 260px;
    min-width: 0;
}

.data-size,
.table-size {
    flex: 0 0 auto;
}

.table-responsive,
.data-table-wrap,
.responsive-table {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-responsive table,
.data-table-wrap table,
.responsive-table table,
table.data-table,
table.table {
    min-width: 760px;
}

.data-table th,
.data-table td,
.table th,
.table td {
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .repository-filters label,
    .filter-form label,
    .filters-grid label,
    .form-filters label,
    .card-filters label,
    .repository-filters .form-group,
    .filter-form .form-group,
    .filters-grid .form-group,
    .form-filters .form-group,
    .card-filters .form-group {
        flex-basis: min(100%, 280px);
    }
}

@media (max-width: 640px) {
    .repository-filters,
    .filter-form,
    .filters-grid,
    .form-filters,
    .card-filters {
        gap: 10px;
    }

    .repository-filters label,
    .filter-form label,
    .filters-grid label,
    .form-filters label,
    .card-filters label,
    .repository-filters .form-group,
    .filter-form .form-group,
    .filters-grid .form-group,
    .form-filters .form-group,
    .card-filters .form-group,
    .filter-actions {
        flex: 1 1 100%;
        width: 100%;
    }

    .repository-filters > button,
    .repository-filters > a,
    .filter-actions > button,
    .filter-actions > a,
    .form-filters > button,
    .form-filters > a,
    .card-filters > button,
    .card-filters > a,
    .filters-grid > button,
    .filters-grid > a {
        flex: 1 1 calc(50% - 6px);
        width: auto;
        min-width: 0;
    }
}

/* Compact icon action buttons 2026-07-26 */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.table-actions,
.document-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    flex-wrap: nowrap;
}

.table-actions form,
.document-actions form {
    display: inline-flex;
    margin: 0;
}

.table-actions .icon-action,
.document-actions .icon-action {
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 !important;
    border-radius: 9px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    font-size: 0 !important;
    line-height: 1 !important;
    box-shadow: none !important;
}

.table-actions .icon-action i,
.document-actions .icon-action i {
    font-size: 1rem;
    line-height: 1;
}

.table-actions a.icon-action,
.table-actions button.icon-action,
.document-actions a.icon-action,
.document-actions button.icon-action {
    border: 1px solid #d6ecea;
    background: #f3fbfa;
    color: #006f68;
}

.table-actions a.icon-action:hover,
.table-actions button.icon-action:hover,
.document-actions a.icon-action:hover,
.document-actions button.icon-action:hover {
    transform: translateY(-1px);
    border-color: #a9d8d4;
    background: #e8f7f5;
    color: #005f59;
}

.table-actions button.icon-action[data-confirm],
.document-actions button.icon-action[data-confirm] {
    border-color: #ffd7d7;
    background: #fff1f1;
    color: #a21621;
}

.table-actions button.icon-action[data-confirm]:hover,
.document-actions button.icon-action[data-confirm]:hover {
    border-color: #ffbcbc;
    background: #ffe8e8;
    color: #86111a;
}

.data-table th:last-child,
.data-table td:last-child,
.table th:last-child,
.table td:last-child {
    width: 1%;
    max-width: 150px;
}

@media (max-width: 700px) {
    .table-actions,
    .document-actions {
        align-items: center;
        justify-content: flex-start;
        flex-wrap: nowrap;
    }

    .table-actions .icon-action,
    .document-actions .icon-action {
        flex: 0 0 36px !important;
        width: 36px !important;
        min-width: 36px !important;
        max-width: 36px !important;
    }
}

/* Executive dashboard 2026-07-26 */
.compact-panel {
    padding: 22px 26px;
}

.dashboard-filter {
    display: grid;
    grid-template-columns: minmax(240px, 0.9fr) minmax(320px, 1.6fr);
    gap: 20px;
    align-items: end;
    margin-bottom: 18px;
}

.dashboard-filter h2,
.dashboard-card h2 {
    margin: 0;
    font-size: 1.05rem;
    color: #172433;
}

.dashboard-filter p,
.dashboard-card p,
.panel-header p {
    margin: 5px 0 0;
    color: #68768a;
    font-size: 0.88rem;
    line-height: 1.35;
}

.dashboard-filter-form {
    justify-content: flex-end;
}

.dashboard-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.dashboard-kpi-card {
    position: relative;
    overflow: hidden;
    min-height: 128px;
    padding: 18px 20px;
    border: 1px solid #deebec;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 18px 38px rgba(18, 36, 45, .07);
}

.dashboard-kpi-card::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: #008c83;
}

.dashboard-kpi-card.alert-card::before {
    background: #ef4e2a;
}

.dashboard-kpi-card span,
.mini-kpi-grid small,
.conversion-card span {
    display: block;
    color: #667386;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.dashboard-kpi-card strong {
    display: block;
    margin-top: 8px;
    color: #172433;
    font-size: clamp(1.6rem, 2.4vw, 2.15rem);
    line-height: 1;
}

.dashboard-kpi-card small {
    display: block;
    margin-top: 10px;
    color: #68768a;
    font-size: 0.86rem;
    line-height: 1.35;
}

.dashboard-grid {
    display: grid;
    gap: 18px;
    margin-bottom: 18px;
}

.main-dashboard-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .82fr);
}

.secondary-dashboard-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-card {
    min-width: 0;
    padding: 24px;
}

.wide-card {
    grid-row: span 2;
}

.dashboard-card .panel-header {
    align-items: flex-start;
    margin-bottom: 18px;
}

.dashboard-card .panel-header > a {
    min-width: 92px;
    height: 38px;
    padding: 0 13px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d8e7e7;
    background: #f8fcfc;
    color: #006f68;
    font-size: .84rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.dashboard-card .panel-header > a:hover {
    background: #edf9f8;
    border-color: #b8dbd8;
}

.goal-chart-list {
    display: grid;
    gap: 16px;
}

.goal-chart-row {
    display: grid;
    grid-template-columns: minmax(170px, 240px) minmax(160px, 1fr) 70px;
    gap: 14px;
    align-items: center;
}

.goal-chart-info strong {
    display: block;
    color: #1f2a37;
    font-size: .95rem;
}

.goal-chart-info small {
    display: block;
    margin-top: 4px;
    color: #68768a;
    font-size: .82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.goal-chart-track,
.conversion-bar {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #eaf2f2;
}

.goal-chart-track i,
.conversion-bar i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #008c83, #23a579);
}

.goal-chart-row.warn .goal-chart-track i {
    background: linear-gradient(90deg, #008c83, #e8a72f);
}

.goal-chart-row.bad .goal-chart-track i {
    background: linear-gradient(90deg, #008c83, #ef4e2a);
}

.goal-chart-row b {
    color: #172433;
    font-size: .95rem;
    text-align: right;
}

.mini-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.mini-kpi-grid span {
    min-height: 82px;
    padding: 14px;
    border: 1px solid #deebec;
    border-radius: 10px;
    background: #f8fcfc;
}

.mini-kpi-grid strong {
    display: block;
    margin-top: 8px;
    color: #102a43;
    font-size: 1.35rem;
    line-height: 1;
}

.conversion-card {
    display: grid;
    gap: 10px;
}

.conversion-card strong {
    color: #102a43;
    font-size: 1.8rem;
    line-height: 1;
}

.conversion-card small {
    color: #68768a;
    font-size: .86rem;
}

.clean-ranking {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.clean-ranking li {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid #deebec;
    border-radius: 10px;
    background: #ffffff;
}

.rank-number {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eaf8f6;
    color: #006f68;
    font-weight: 900;
}

.clean-ranking strong,
.clean-ranking small {
    display: block;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.clean-ranking strong {
    color: #172433;
    font-size: .93rem;
}

.clean-ranking small {
    margin-top: 3px;
    color: #68768a;
    font-size: .79rem;
}

.clean-ranking b {
    color: #007c73;
    font-size: .95rem;
    white-space: nowrap;
}

.alert-list {
    display: grid;
    gap: 10px;
}

.alert-list a {
    min-width: 0;
    min-height: 58px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid #deebec;
    border-radius: 10px;
    background: #ffffff;
    color: #172433;
    text-decoration: none;
}

.alert-list a:hover {
    border-color: #b8dbd8;
    background: #f5fbfb;
}

.alert-list i {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eaf8f6;
    color: #007c73;
    font-size: 1.05rem;
}

.alert-list span {
    min-width: 0;
    color: #536174;
    font-size: .88rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.alert-list strong {
    color: #172433;
    font-size: 1.05rem;
}

@media (max-width: 1180px) {
    .main-dashboard-grid,
    .secondary-dashboard-grid,
    .dashboard-filter {
        grid-template-columns: 1fr;
    }

    .wide-card {
        grid-row: auto;
    }
}

@media (max-width: 760px) {
    .compact-panel,
    .dashboard-card {
        padding: 18px;
    }

    .dashboard-filter-form {
        justify-content: stretch;
    }

    .goal-chart-row {
        grid-template-columns: 1fr 58px;
        gap: 8px 12px;
    }

    .goal-chart-track {
        grid-column: 1 / -1;
        order: 3;
    }

    .goal-chart-row b {
        align-self: start;
    }
}

/* Dashboard goal rankings 2026-07-26 */
.dashboard-goal-rankings {
    margin-bottom: 18px;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 14px;
    padding: 0 2px;
}

.section-heading h2 {
    margin: 0;
    color: #172433;
    font-size: 1.08rem;
}

.section-heading p {
    margin: 5px 0 0;
    color: #68768a;
    font-size: .88rem;
}

.section-heading > a {
    min-width: 116px;
    height: 38px;
    padding: 0 13px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d8e7e7;
    background: #f8fcfc;
    color: #006f68;
    font-size: .84rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.section-heading > a:hover {
    background: #edf9f8;
    border-color: #b8dbd8;
}

.goal-ranking-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 18px;
}

.goal-ranking-card {
    min-height: 100%;
}

.goal-ranking-card .panel-header {
    margin-bottom: 16px;
}

.goal-ranking-card .clean-ranking li {
    padding: 11px;
}

.goal-ranking-card .clean-ranking b {
    font-size: .9rem;
}

@media (min-width: 1500px) {
    .goal-ranking-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .section-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .section-heading > a {
        width: 100%;
    }

    .goal-ranking-grid {
        grid-template-columns: repeat(3, minmax(300, 1fr));
    }
}

/* Dashboard compact goal ranking refinements 2026-07-26 */
.score-bad {
    color: #c82432 !important;
}

.score-warn {
    color: #d97706 !important;
}

.score-good {
    color: #008c63 !important;
}

.goal-ranking-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 2fr));
    gap: 12px;
}

.goal-ranking-card {
    padding: 5px;
}

.goal-ranking-card .panel-header {
    margin-bottom: 12px;
}

.goal-ranking-card .panel-header h2 {
    font-size: .96rem;
}

.goal-ranking-card .panel-header p {
    font-size: .76rem;
}

.goal-ranking-card .clean-ranking {
    gap: 8px;
}

.goal-ranking-card .clean-ranking li {
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 8px;
    min-height: 58px;
    padding: 9px;
}

.goal-ranking-card .rank-number {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    font-size: .82rem;
}

.goal-ranking-card .clean-ranking strong {
    font-size: .82rem;
}

.goal-ranking-card .clean-ranking small {
    font-size: .72rem;
}

.goal-ranking-card .clean-ranking b {
    font-size: .8rem;
}

.goal-chart-row.bad .goal-chart-track i {
    background: linear-gradient(90deg, #c82432, #ef4e2a);
}

.goal-chart-row.warn .goal-chart-track i {
    background: linear-gradient(90deg, #d97706, #f0b429);
}

.goal-chart-row.good .goal-chart-track i,
.conversion-bar i {
    background: linear-gradient(90deg, #008c83, #23a579);
}

@media (min-width: 1180px) {
    .goal-ranking-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .goal-ranking-card .clean-ranking li {
        grid-template-columns: 28px minmax(0, 1fr);
    }

    .goal-ranking-card .clean-ranking b {
        grid-column: 2;
        justify-self: start;
    }
}

/* Login generic brand polish 2026-07-26 */
.platform-card strong {
    font-size: 24px;
}

.platform-card p {
    max-width: 360px;
}

.login-footnote a {
    color: var(--primary-dark);
    font-weight: 800;
    text-decoration: none;
}

.login-footnote a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.login-footnote strong {
    color: #172433;
}

/* Clinic and sector assignment */
.clinic-sector-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.clinic-sector-list > legend {
    padding: 0 6px;
    color: var(--text);
    font-weight: 800;
}

.clinic-sector-group {
    display: grid;
    grid-template-columns: minmax(180px, .8fr) minmax(0, 2fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    background: #f7fafb;
    border: 1px solid var(--border);
    border-radius: 7px;
}

.clinic-sector-group > div:first-child,
.clinic-sector-group > div:first-child small {
    display: block;
}

.clinic-sector-group small {
    margin-top: 3px;
    color: var(--muted);
}

.clinic-sector-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.clinic-sector-options label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    padding: 7px 10px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
}

.clinic-sector-options input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

@media (max-width: 700px) {
    .clinic-sector-group {
        grid-template-columns: 1fr;
    }
}

/* Feedback attachments and acknowledgement */
.badge-warning {
    color: #8a4b08;
    background: #fff4d6;
}

.evaluation-attachments {
    position: relative;
}

.evaluation-attachments summary {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--primary);
    font-weight: 800;
    cursor: pointer;
    list-style: none;
}

.evaluation-attachments summary::-webkit-details-marker {
    display: none;
}

.evaluation-attachments > div {
    display: grid;
    gap: 5px;
    min-width: 210px;
    margin-top: 7px;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 7px;
    box-shadow: 0 10px 28px rgba(18, 43, 55, .12);
}

.evaluation-attachments a {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 6px;
    align-items: center;
    color: var(--text);
    text-decoration: none;
}

.evaluation-attachments a span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.evaluation-ack-form button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 7px 10px;
    color: #fff;
    background: var(--primary);
    border: 0;
    border-radius: 7px;
    font-size: .82rem;
    font-weight: 800;
    cursor: pointer;
}

.evaluation-ack-form button:hover {
    filter: brightness(.92);
    transform: translateY(-1px);
}

.file-upload-field input[type="file"] {
    padding: 10px;
    background: #f7fafb;
    border: 1px dashed var(--border);
}

.evaluation-existing-files {
    display: grid;
    gap: 7px;
    margin: 0;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.evaluation-existing-files legend {
    padding: 0 6px;
    font-weight: 800;
}

.evaluation-existing-files label {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) 34px;
    gap: 9px;
    align-items: center;
    padding: 8px;
    background: #f7fafb;
    border-radius: 6px;
}

.evaluation-existing-files label small,
td > .badge + small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: .72rem;
}

.feedback-evaluation-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
    margin: 8px 0 10px;
}

.feedback-evaluation-meta .badge,
.feedback-evaluation-meta a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.feedback-evaluation-meta a {
    max-width: 240px;
    overflow: hidden;
    color: var(--primary);
    font-size: .78rem;
    font-weight: 700;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Batch skill registration */
.skill-cargo-picker {
    border: 1px solid var(--line);
    border-radius: 8px;
    margin: 0;
    padding: 14px;
}

.skill-cargo-picker legend {
    color: var(--ink);
    font-weight: 800;
    padding: 0 6px;
}

.skill-cargo-picker > div {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    margin-top: 10px;
}

.skill-cargo-picker label {
    align-items: center;
    background: #f7fbfb;
    border: 1px solid #dbe7e7;
    border-radius: 7px;
    cursor: pointer;
    display: flex;
    gap: 8px;
    min-height: 38px;
    padding: 8px 10px;
}

.skill-cargo-picker input {
    accent-color: var(--primary);
    flex: 0 0 16px;
    height: 16px;
    margin: 0;
    width: 16px;
}

.skill-batch-header {
    align-items: flex-end;
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

.skill-batch-header p {
    margin: 4px 0 0;
}
.button-secondary{
    align-items: center;
    background: #f0f8f7;
    border: 1px solid #c9e5e1;
    border-radius: 7px;
    box-shadow: none;
    color: var(--primary-dark);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    gap: 7px;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    text-decoration: none;
    white-space: nowrap;
}
.button-secondary:hover {
    background: #e5f4f1;
    border-color: #abd8d2;
    box-shadow: none;
}

.form .button-secondary {
    background: #f0f8f7;
    border-color: #c9e5e1;
    box-shadow: none;
    color: var(--primary-dark);
}

.form .button-secondary:hover {
    background: #e5f4f1;
    border-color: #abd8d2;
    box-shadow: none;
}

.skill-batch-list {
    display: grid;
    gap: 10px;
}

.skill-batch-row {
    align-items: end;
    background: #f8fbfb;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(170px, 1.1fr) minmax(220px, 1.6fr) 90px 38px;
    padding: 12px;
}

.skill-batch-row label {
    min-width: 0;
}

.skill-batch-row input {
    min-height: 38px;
    padding: 9px 10px;
}

.form .skill-row-remove {
    background: #fff1f1;
    border-color: #ffd0d0;
    box-shadow: none;
    color: #b4232b;
    height: 38px;
    min-height: 38px;
    padding: 0;
    width: 38px;
}

.form .skill-row-remove:hover {
    background: #ffe5e5;
    border-color: #f5b9bc;
    box-shadow: none;
}

.access-denied-panel {
    align-items: center;
    align-self: start;
    display: grid;
    gap: 20px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 28px;
}

.access-denied-panel h2 {
    margin: 5px 0 8px;
}

.access-denied-panel p {
    color: var(--muted);
    margin: 0;
}

.access-denied-icon {
    align-items: center;
    background: #fff4e8;
    border: 1px solid #f7d6b8;
    border-radius: 8px;
    color: #b54708;
    display: inline-flex;
    font-size: 24px;
    height: 52px;
    justify-content: center;
    width: 52px;
}

.access-denied-panel > a {
    background: var(--primary);
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    padding: 11px 14px;
    white-space: nowrap;
}

.permission-no-create .data-panel > .panel-header > [data-modal-open],
.permission-no-create .repository-panel > .panel-header > [data-modal-open],
.permission-no-create .page-actions [data-modal-open],
.permission-no-edit .table-actions a[href*="?editar="],
.permission-no-edit .table-actions a[href*="&editar="],
.permission-no-edit [data-access-open],
.permission-no-edit form[action$="/documentos/aprovar"],
.permission-no-edit form[action$="/documentos/reprovar"],
.permission-no-delete form[action$="/excluir"],
.permission-no-export a[href*="/download"] {
    display: none !important;
}

/* Feedback indicators: stable chart sizing */
.feedback-card-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr));
}

.feedback-person-card .radar-chart {
    margin-inline: auto;
    max-width: 290px;
}

.feedback-card-grid.is-selected-result {
    grid-template-columns: minmax(0, 1fr);
}

.feedback-person-card.is-selected-summary {
    align-items: start;
    grid-template-columns: minmax(260px, 1fr) minmax(330px, 440px);
}

.feedback-person-card.is-selected-summary .feedback-person-header {
    grid-column: 1;
}

.feedback-person-card.is-selected-summary .feedback-score-row {
    grid-column: 2;
    grid-row: 1;
}

.feedback-person-card.is-selected-summary .feedback-last-text {
    grid-column: 1 / -1;
}

.selected-radar-panel {
    margin-top: 18px;
}

.single-person-radar-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 320px));
    justify-content: start;
}

.single-radar-card {
    align-content: start;
    max-width: 320px;
    width: 100%;
}

.single-radar-card .radar-chart {
    margin-inline: auto;
    max-width: 280px;
}

.single-radar-summary {
    border-top: 1px solid var(--line);
    padding-top: 10px;
}

.single-radar-summary strong {
    display: block;
    font-size: 12px;
    margin-bottom: 4px;
}

.single-radar-summary p {
    color: var(--muted);
    display: -webkit-box;
    font-size: 13px;
    line-height: 1.45;
    margin: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

@media (max-width: 760px) {
    .access-denied-panel {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .access-denied-panel > a {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .skill-batch-header {
        align-items: stretch;
        flex-direction: column;
    }

    .skill-batch-header button {
        align-self: flex-start;
    }

    .skill-batch-row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
}

@media (max-width: 900px) {
    .feedback-person-card.is-selected-summary {
        grid-template-columns: minmax(0, 1fr);
    }

    .feedback-person-card.is-selected-summary .feedback-person-header,
    .feedback-person-card.is-selected-summary .feedback-score-row,
    .feedback-person-card.is-selected-summary .feedback-last-text {
        grid-column: 1;
        grid-row: auto;
    }
}

@media (max-width: 520px) {
    .single-person-radar-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .single-radar-card {
        max-width: 100%;
    }

    .skill-cargo-picker > div,
    .skill-batch-row {
        grid-template-columns: 1fr;
    }

    .form .skill-row-remove {
        justify-self: end;
    }
}

/* Compact checkboxes and responsive dashboard filters */
.form .check-row,
.modal-dialog .form .check-row,
.filter-form .check-row {
    align-items: center;
    display: inline-flex;
    flex: 0 0 auto;
    gap: 9px;
    justify-content: flex-start;
    min-height: 24px;
    padding: 0;
    width: fit-content;
}

.form .check-row input[type="checkbox"],
.modal-dialog .form .check-row input[type="checkbox"],
.filter-form .check-row input[type="checkbox"] {
    accent-color: var(--primary);
    flex: 0 0 18px;
    height: 18px;
    margin: 0;
    min-height: 18px;
    padding: 0;
    width: 18px;
}

.form .check-row span,
.modal-dialog .form .check-row span,
.filter-form .check-row span {
    line-height: 1.25;
    margin: 0;
}

.modal-dialog .check-grid {
    align-items: start;
    display: grid;
    gap: 12px 18px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.confirm-modal[data-confirm-variant="status"] .confirm-icon {
    background: #e7f7f4;
    color: var(--primary);
}

.dashboard-filter {
    display: block;
}

.dashboard-filter > div:first-child {
    margin-bottom: 18px;
}

.dashboard-filter-form {
    align-items: end;
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: initial;
    width: 100%;
}

.dashboard-projection-panel,.dashboard-agenda-panel,.dashboard-agenda-ranking { margin-bottom:18px; }
.dashboard-projection-grid { display:grid; gap:11px; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); padding:0 20px 20px; }
.dashboard-projection-grid article { background:#fbfdfd; border:1px solid var(--line); border-radius:8px; min-width:0; padding:14px; }
.dashboard-projection-grid article header { align-items:center; display:flex; gap:10px; justify-content:space-between; }
.dashboard-projection-grid article header span { color:#b4232d; font-size:15px; font-weight:900; }
.dashboard-projection-grid article.warn header span { color:#a85c00; }.dashboard-projection-grid article.good header span { color:#087b62; }
.dashboard-projection-values { display:grid; gap:7px; grid-template-columns:repeat(3,minmax(0,1fr)); margin-top:12px; }
.dashboard-projection-values span { min-width:0; }.dashboard-projection-values small,.dashboard-projection-values b { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dashboard-projection-values small { color:var(--muted); font-size:9px; text-transform:uppercase; }.dashboard-projection-values b { font-size:11px; margin-top:3px; }
.dashboard-projection-track { background:#e7eeee; border-radius:999px; height:7px; margin-top:13px; overflow:hidden; }.dashboard-projection-track i { background:#c52c38; display:block; height:100%; }.dashboard-projection-grid .warn .dashboard-projection-track i { background:#d58a1f; }.dashboard-projection-grid .good .dashboard-projection-track i { background:#078a70; }
.goal-chart-info em { color:var(--muted); display:block; font-size:9px; font-style:normal; margin-top:2px; }
.dashboard-agenda-panel { min-height:400px; overflow:visible; }
.dashboard-agenda-panel .panel-header { min-height:82px; }
.dashboard-agenda-panel .panel-header > div:first-child { min-width:0; }
.dashboard-agenda-chart { display:block; height:clamp(230px,24vw,300px); padding:0 18px 16px; width:100%; }
.dashboard-chart-grid { stroke:#dce8e8; stroke-width:1; }.dashboard-chart-axis { fill:#6b7b8f; font-size:10px; }
.dashboard-chart-legend { align-items:center; display:flex; flex-wrap:wrap; gap:13px; }.dashboard-chart-legend span { align-items:center; color:var(--muted); display:flex; font-size:10px; font-weight:800; gap:5px; }.dashboard-chart-legend i { background:#008b82; border-radius:50%; display:block; height:8px; width:8px; }.dashboard-chart-legend i.is-occupancy { background:#f0522d; }
.dashboard-agenda-ranking .agenda-ranking-grid { padding:0 20px 20px; }
.indicator-projection-grid { display:grid; gap:10px; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); padding:16px 22px 22px; }
.indicator-projection-grid article { background:#fbfdfd; border:1px solid var(--line); border-radius:8px; padding:13px; }
.indicator-projection-grid header { align-items:center; display:flex; justify-content:space-between; }.indicator-projection-grid header span { color:#b4232d; font-weight:900; }.indicator-projection-grid .warn header span { color:#a85c00; }.indicator-projection-grid .good header span { color:#087b62; }
.indicator-projection-grid article > div { display:grid; gap:7px; grid-template-columns:repeat(3,minmax(0,1fr)); margin:11px 0; }.indicator-projection-grid small,.indicator-projection-grid small b { display:block; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.indicator-projection-grid small { color:var(--muted); font-size:9px; text-transform:uppercase; }.indicator-projection-grid small b { color:var(--ink); font-size:11px; margin-top:3px; text-transform:none; }
.indicator-projection-grid article > i { background:#e8eeee; border-radius:99px; display:block; height:6px; overflow:hidden; }.indicator-projection-grid article > i b { background:#c52c38; display:block; height:100%; }.indicator-projection-grid .warn > i b { background:#d58a1f; }.indicator-projection-grid .good > i b { background:#078a70; }

.dashboard-filter-form > label {
    margin: 0;
}

.dashboard-filter-form .dashboard-inactive-filter {
    align-self: end;
    height: 44px;
    min-width: 0;
    white-space: nowrap;
}

.dashboard-filter-form .filter-actions {
    align-self: end;
    flex-wrap: nowrap;
    margin: 0;
    width: 100%;
}

.dashboard-filter-form .filter-actions > * { flex:1 1 0; }

@media (min-width: 1680px) { .dashboard-filter-form { grid-template-columns:repeat(4,minmax(0,1fr)); } }

@media (max-width: 1180px) {
    .dashboard-filter-form {
        grid-template-columns: repeat(2, minmax(210px, 1fr));
    }

    .dashboard-filter-form .filter-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 620px) {
    .dashboard-filter-form {
        grid-template-columns: 1fr;
    }

    .dashboard-filter-form .dashboard-inactive-filter {
        height: auto;
        min-height: 36px;
    }

    .dashboard-filter-form .filter-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .dashboard-filter-form .filter-actions > * {
        width: 100%;
    }
}

@media (max-width:760px){.dashboard-projection-values{grid-template-columns:1fr 1fr}.dashboard-agenda-chart{height:230px;min-width:620px}.dashboard-agenda-panel{min-height:330px;overflow-x:auto;overflow-y:hidden}.dashboard-chart-legend{width:100%}}

/* Pagamentos de prestadores PJ */
.pj-summary { display:grid; gap:12px; grid-template-columns:repeat(4,minmax(0,1fr)); }
.pj-summary article { align-items:center; background:#fff; border:1px solid var(--line); border-radius:8px; display:flex; gap:12px; min-width:0; padding:15px; }
.pj-summary-icon { align-items:center; background:#e8f7f5; border-radius:8px; color:#007e76; display:flex; flex:0 0 40px; height:40px; justify-content:center; }
.pj-summary article.is-warning .pj-summary-icon { background:#fff4dc; color:#a85c00; }
.pj-summary article.is-info .pj-summary-icon { background:#edf5ff; color:#2563a8; }
.pj-summary article.is-success .pj-summary-icon { background:#e5f8ed; color:#087b62; }
.pj-summary article div { display:grid; min-width:0; }
.pj-summary small { color:var(--muted); font-size:10px; font-weight:800; text-transform:uppercase; }
.pj-summary strong { color:var(--ink); font-size:24px; line-height:1.15; }
.pj-summary article div span { color:var(--muted); font-size:11px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pj-alert { align-items:center; background:#fff8e8; border:1px solid #f2d28f; border-left:4px solid #d58a1f; border-radius:8px; color:#744300; display:flex; gap:12px; padding:13px 15px; }
.pj-alert > i { font-size:20px; }.pj-alert div { min-width:0; }.pj-alert strong { display:block; }.pj-alert p { color:#805c22; margin:3px 0 0; }
.pj-alert > a { background:#fff; border:1px solid #e3c275; border-radius:8px; color:#744300; flex:0 0 auto; font-weight:800; margin-left:auto; padding:9px 12px; text-decoration:none; }
.collaborator-pj-alert p { max-width:min(760px,60vw); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pj-filter-form { align-items:end; display:grid; gap:12px; grid-template-columns:repeat(4,minmax(150px,1fr)) minmax(220px,1.35fr); padding:16px 20px; }
.pj-filter-form label { margin:0; min-width:0; }
.pj-filter-form input,.pj-filter-form select { box-sizing:border-box; max-width:100%; min-width:0; width:100%; }
.pj-filter-form .filter-actions { align-items:center; display:flex; gap:8px; grid-column:1/-1; justify-content:flex-end; min-width:0; }
.pj-filter-form .filter-actions a,.pj-filter-form .filter-actions button { justify-content:center; min-width:96px; }
.pj-table td { vertical-align:middle; }.pj-table td > small,.pj-table td > strong { display:block; }
.pj-table .people-identity { min-width:210px; }.pj-table .attachment-list { max-width:220px; }
.pj-missing { align-items:center; color:#b4232d; display:inline-flex; font-size:11px; font-weight:800; gap:5px; white-space:nowrap; }
.pj-context { background:#f5faf9; border:1px solid var(--line); border-radius:8px; display:grid; gap:12px; grid-template-columns:1fr 1fr; padding:13px; }
.pj-context span { display:grid; }.pj-context small { color:var(--muted); font-size:10px; text-transform:uppercase; }
.pj-read-status { align-items:flex-start; display:flex!important; font-size:9px!important; font-weight:700; gap:5px; line-height:1.35; margin-top:5px; min-height:0; text-transform:none!important; }
.pj-read-status:empty { display:none!important; }.pj-read-status.is-loading { color:#2563a8!important; }.pj-read-status.is-loading i { animation:spin .8s linear infinite; }.pj-read-status.is-success { color:#087b62!important; }.pj-read-status.is-warning { color:#a85c00!important; }
.dashboard-finance-card.has-warning { border-color:#efcf8d; }.dashboard-card-link { color:#007e76; display:inline-block; font-size:11px; font-weight:800; margin-top:7px; text-decoration:none; }

@media (max-width:1200px) { .pj-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }.pj-filter-form { grid-template-columns:repeat(3,minmax(0,1fr)); }.pj-filter-form .pj-search { grid-column:span 2; } }
@media (max-width:900px) { .pj-filter-form { grid-template-columns:repeat(2,minmax(0,1fr)); }.pj-filter-form .pj-search { grid-column:1/-1; } }
@media (max-width:760px) { .pj-summary { grid-template-columns:1fr; }.pj-filter-form { grid-template-columns:1fr; padding:14px; }.pj-filter-form .pj-search,.pj-filter-form .filter-actions { grid-column:auto; }.pj-filter-form .filter-actions { display:grid; grid-template-columns:1fr 1fr; }.pj-filter-form .filter-actions a,.pj-filter-form .filter-actions button { width:100%; }.pj-context { grid-template-columns:1fr; }.pj-alert { align-items:flex-start; flex-wrap:wrap; }.pj-alert > a { margin-left:32px; }.collaborator-pj-alert p { max-width:75vw; }.pj-table { min-width:1120px; } }

/* Gestão de pessoas */
.people-summary { display:grid; gap:12px; grid-template-columns:repeat(5,minmax(0,1fr)); margin-bottom:18px; }.people-self-summary { display:grid; gap:14px; grid-template-columns:repeat(4,minmax(0,1fr)); margin-bottom:18px; }
.people-summary > article,.people-self-summary > article { align-items:center; background:#fff; border:1px solid var(--line); border-radius:8px; display:flex; gap:13px; min-width:0; padding:16px; }
.people-summary-icon { align-items:center; background:#e8f7f5; border-radius:8px; color:var(--primary); display:flex; flex:0 0 42px; font-size:18px; height:42px; justify-content:center; }
.people-summary-icon.is-danger { background:#fff0f0; color:#b4232d; }.people-summary-icon.is-warning { background:#fff7e5; color:#a85c00; }.people-summary-icon.is-info { background:#edf5ff; color:#2563a8; }
.people-summary article div,.people-self-summary article { min-width:0; }.people-summary small,.people-self-summary small { color:var(--muted); display:block; font-size:10px; font-weight:800; text-transform:uppercase; }
.people-summary strong,.people-self-summary strong { color:var(--text); display:block; font-size:23px; line-height:1.15; margin:3px 0; }.people-summary p,.people-self-summary span { color:var(--muted); font-size:10px; margin:0; }
.people-approvals { margin-bottom:18px; }.people-approvals .panel-header { padding-block:15px; }.people-request-grid { display:grid; gap:10px; grid-template-columns:repeat(3,minmax(0,1fr)); padding:0 20px 18px; }
.people-request-grid article { align-items:center; border:1px solid var(--line); border-radius:7px; display:flex; gap:12px; justify-content:space-between; min-width:0; padding:11px 12px; }.people-request-grid article div { min-width:0; }.people-request-grid strong,.people-request-grid span { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.people-request-grid strong { font-size:12px; }.people-request-grid span { color:var(--muted); font-size:10px; margin-top:3px; }
.button-compact { align-items:center; background:#edf8f7; border:1px solid #cde7e4; border-radius:7px; color:var(--primary-dark); cursor:pointer; display:inline-flex; font-size:10px; font-weight:800; gap:5px; height:34px; justify-content:center; padding:0 11px; white-space:nowrap; }.button-compact:hover { background:var(--primary); border-color:var(--primary); color:#fff; }
.people-table td { max-width:210px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.people-table td:first-child { min-width:190px; }.people-table td:last-child { min-width:196px; overflow:visible; }
.people-identity { align-items:center; display:flex; gap:9px; min-width:0; }.people-identity .avatar { flex:0 0 34px; height:34px; width:34px; }.people-identity span:last-child { min-width:0; }.people-identity strong,.people-identity small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.people-identity small { color:var(--muted); font-size:10px; margin-top:2px; }
.icon-actions { flex-wrap:nowrap!important; }.icon-actions button,.history-list button,.people-self-grid table button { align-items:center; border:1px solid transparent; border-radius:7px; box-shadow:none; cursor:pointer; display:inline-flex; height:34px; justify-content:center; padding:0; transition:background .16s ease,border-color .16s ease,color .16s ease,transform .16s ease; width:34px; }.table-actions.icon-actions button:hover { color:#fff; transform:translateY(-1px); }.table-actions.icon-actions .people-action-profile { background:#e8f7f5; border-color:#c7e7e3; color:#007b73; }.table-actions.icon-actions .people-action-profile:hover { background:#008c83; border-color:#008c83; }.table-actions.icon-actions .people-action-vacation { background:#edf5ff; border-color:#d1e4fb; color:#2563a8; }.table-actions.icon-actions .people-action-vacation:hover { background:#3478bd; border-color:#3478bd; }.table-actions.icon-actions .people-action-absence { background:#fff6e8; border-color:#f5dfb9; color:#a85c00; }.table-actions.icon-actions .people-action-absence:hover { background:#c87812; border-color:#c87812; }.table-actions.icon-actions .people-action-history { background:#f2f4f7; border-color:#dfe4ea; color:#536277; }.table-actions.icon-actions .people-action-history:hover { background:#66758a; border-color:#66758a; }.icon-danger { background:#fff2f2!important; border-color:#ffd1d4!important; color:#ae2630!important; }
.people-modal { max-width:min(1040px,calc(100vw - 32px)); }.people-modal.is-medium { max-width:760px; }.people-modal.is-small { max-width:520px; }.people-modal .stack-form { padding:20px; }.people-modal .form-section-title { border-top:1px solid var(--line); display:flex; gap:9px; margin:4px 0 14px; padding-top:16px; }.people-modal .form-section-title:first-of-type { border-top:0; padding-top:0; }.form-section-title > span { align-items:center; background:#e8f7f5; border-radius:50%; color:var(--primary-dark); display:flex; flex:0 0 26px; font-size:10px; font-weight:900; height:26px; justify-content:center; }.form-section-title strong,.form-section-title small { display:block; }.form-section-title strong { font-size:12px; }.form-section-title small { color:var(--muted); font-size:9px; margin-top:2px; }.people-form-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }.people-form-grid .span-2 { grid-column:span 2; }
.people-history { display:grid; gap:0; grid-template-columns:1fr 1fr; max-height:65vh; overflow:auto; }.people-history > section { padding:20px; }.people-history > section+section { border-left:1px solid var(--line); }.people-history h3 { font-size:14px; margin:0 0 12px; }.history-list { display:grid; gap:8px; }.history-list article { align-items:flex-start; border:1px solid var(--line); border-radius:7px; display:flex; gap:10px; justify-content:space-between; padding:11px; }.history-list article>div { min-width:0; }.history-list strong,.history-list span { display:block; }.history-list strong { font-size:11px; }.history-list span { color:var(--muted); font-size:10px; line-height:1.45; margin-top:3px; }.attachment-link { color:var(--primary-dark); display:block; font-size:9px; margin-top:5px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.empty-inline { color:var(--muted); font-size:11px; margin:0; }.empty-inline.padded { padding:20px; }
.request-detail { background:#f3f8f8; border:1px solid var(--line); border-radius:7px; display:grid; gap:4px; padding:13px; }.request-detail span,.request-detail small { color:var(--muted); font-size:10px; }.request-detail strong { font-size:15px; }.decision-actions { justify-content:space-between; }.text-danger { color:#b4232d; font-weight:800; }
.people-profile-hero { align-items:center; background:#fff; border:1px solid var(--line); border-radius:8px; display:flex; gap:16px; justify-content:space-between; margin-bottom:14px; padding:20px; }.people-profile-main { align-items:center; display:flex; gap:14px; min-width:0; }.people-profile-main .avatar { flex:0 0 58px; height:58px; width:58px; }.people-profile-main h2 { font-size:22px; margin:3px 0; }.people-profile-main p { color:var(--muted); font-size:11px; margin:0; }.people-profile-actions { display:flex; gap:8px; }.people-profile-actions button { align-items:center; border-radius:7px; cursor:pointer; display:inline-flex; font-size:11px; font-weight:800; gap:7px; height:40px; justify-content:center; padding:0 14px; transition:background .16s ease,border-color .16s ease,box-shadow .16s ease,transform .16s ease; white-space:nowrap; }.people-profile-actions .people-action-secondary { background:#f2f8f7; border:1px solid #cfe3e0; color:#006d67; }.people-profile-actions .people-action-secondary:hover { background:#e5f3f1; border-color:#a9d2cd; transform:translateY(-1px); }.people-profile-actions .people-action-primary { background:var(--primary); border:1px solid var(--primary); box-shadow:0 8px 18px rgba(0,108,102,.14); color:#fff; }.people-profile-actions .people-action-primary:hover { background:var(--primary-dark); border-color:var(--primary-dark); box-shadow:0 10px 22px rgba(0,108,102,.2); transform:translateY(-1px); }
.people-self-summary > article { align-items:flex-start; display:block; }.people-self-summary strong { font-size:20px; }.people-self-grid { display:grid; gap:14px; grid-template-columns:1.2fr .8fr; margin-bottom:14px; }.people-self-grid .panel { min-width:0; }.self-absence-list { display:grid; gap:0; padding:0 18px 15px; }.self-absence-list article { border-bottom:1px solid var(--line); display:grid; gap:10px; grid-template-columns:34px minmax(0,1fr); padding:12px 0; }.self-absence-list article:last-child { border-bottom:0; }.absence-icon { align-items:center; background:#e8f7f5; border-radius:7px; color:var(--primary); display:flex; height:34px; justify-content:center; }.self-absence-list strong,.self-absence-list small { display:block; }.self-absence-list strong { font-size:11px; }.self-absence-list small,.self-absence-list p { color:var(--muted); font-size:9px; margin:3px 0; }.self-absence-list a { color:var(--primary-dark); display:block; font-size:9px; margin-top:3px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.people-info-panel { margin-bottom:0; }.people-info-grid { display:grid; gap:0; grid-template-columns:repeat(4,minmax(0,1fr)); margin:0; padding:0 20px 20px; }.people-info-grid div { border-left:1px solid var(--line); padding:4px 14px; }.people-info-grid div:first-child { border-left:0; padding-left:0; }.people-info-grid dt { color:var(--muted); font-size:9px; font-weight:800; text-transform:uppercase; }.people-info-grid dd { font-size:11px; margin:5px 0 0; }.people-empty { padding:60px 20px; text-align:center; }.people-empty i { color:var(--primary); font-size:38px; }.people-empty h2 { margin:12px 0 5px; }.people-empty p { color:var(--muted); margin:0; }.notice-inline { align-items:flex-start; background:#edf7ff; border:1px solid #d5e8f8; border-radius:7px; color:#385b78; display:flex; font-size:10px; gap:8px; padding:10px 12px; }

@media (max-width:1200px){.people-summary,.people-self-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }.people-request-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }.people-form-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }}
@media (max-width:900px){.people-self-grid,.people-history { grid-template-columns:1fr; }.people-history > section+section { border-left:0; border-top:1px solid var(--line); }.people-info-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }.people-info-grid div:nth-child(3) { border-left:0; }.people-profile-hero { align-items:flex-start; flex-direction:column; }.people-profile-actions { width:100%; }.people-profile-actions button { flex:1; justify-content:center; }}
@media (max-width:620px){.people-summary,.people-self-summary,.people-request-grid,.people-info-grid,.people-form-grid { grid-template-columns:1fr; }.people-summary > article { padding:13px; }.people-info-grid div,.people-info-grid div:first-child,.people-info-grid div:nth-child(3) { border-left:0; border-top:1px solid var(--line); padding:11px 0; }.people-info-grid div:first-child { border-top:0; }.people-profile-actions { flex-direction:column; }.people-form-grid .span-2 { grid-column:auto; }.people-modal { max-width:calc(100vw - 16px); }.people-modal .stack-form { padding:15px; }}

/* Complementos de férias e saúde ocupacional */
.table-actions.icon-actions .people-action-periodic { background:#f0ecff; border-color:#ddd2ff; color:#6941c6; }
.table-actions.icon-actions .people-action-periodic:hover { background:#7251c8; border-color:#7251c8; }

/* Estoque */
.stock-panel { margin-bottom:18px; }
.stock-panel .cell-subtitle { color:var(--muted); display:block; font-size:11px; margin-top:3px; max-width:260px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.stock-product-cell { align-items:center; display:flex; gap:10px; min-width:190px; }
.stock-product-photo { align-items:center; background:#edf8f6; border:1px solid #d5e9e6; border-radius:7px; color:var(--primary-dark); display:flex; flex:0 0 42px; height:42px; justify-content:center; overflow:hidden; width:42px; }
.stock-product-photo img { height:100%; object-fit:cover; width:100%; }
.stock-product-photo i { font-size:17px; }
.stock-product-photo-field { align-items:center; background:#f8fbfb; border:1px solid var(--line); border-radius:8px; display:flex; gap:14px; padding:13px; }
.stock-product-photo-field label { flex:1; }
.stock-product-photo-field label > span,.stock-product-photo-field small { display:block; }
.stock-product-photo-field input[type="file"] { height:auto; margin:5px 0; padding:9px; }
.stock-product-photo-field small { color:var(--muted); font-size:10px; }
.stock-product-photo-large { flex-basis:72px; height:72px; width:72px; }
.stock-product-photo-large i { font-size:25px; }
.stock-product-code,.stock-code-prefix { background:#eaf6fb; border:1px solid #d1e8f1; border-radius:5px; color:#245d75; display:inline-block; font-family:ui-monospace,SFMono-Regular,Consolas,monospace; font-size:11px; font-weight:800; padding:4px 7px; white-space:nowrap; }
.stock-generated-code { background:#eef6f8!important; color:#446779!important; font-family:ui-monospace,SFMono-Regular,Consolas,monospace; font-weight:800; }
.stock-generated-code + small { color:var(--muted); display:block; font-size:9px; margin-top:4px; }
.stock-movement-context { grid-template-columns:minmax(150px,.75fr) minmax(0,2fr); }
.stock-product-actions { flex-wrap:wrap; }
.stock-product-actions .button-secondary { margin-left:auto; }
.stock-import-summary { display:grid; gap:12px; grid-template-columns:repeat(3,minmax(0,1fr)); margin-bottom:14px; }
.stock-import-summary article { align-items:center; background:#fff; border:1px solid var(--line); border-radius:8px; display:flex; gap:12px; min-width:0; padding:15px; }
.stock-import-summary article > i { align-items:center; background:#e8f7f5; border-radius:7px; color:var(--primary-dark); display:flex; flex:0 0 40px; font-size:17px; height:40px; justify-content:center; }
.stock-import-summary article div { min-width:0; }.stock-import-summary small,.stock-import-summary span { color:var(--muted); display:block; font-size:10px; }.stock-import-summary small { font-weight:900; text-transform:uppercase; }.stock-import-summary strong { display:block; font-size:22px; line-height:1.1; margin:3px 0; }
.stock-import-grid { display:grid; gap:14px; grid-template-columns:1fr 1fr; margin-bottom:14px; }
.stock-import-card { margin:0; min-width:0; overflow:hidden; padding:0; }
.stock-import-card > header { align-items:flex-start; display:flex; gap:12px; padding:18px 18px 14px; }.stock-import-card h2 { font-size:17px; margin:2px 0 4px; }.stock-import-card p { color:var(--muted); font-size:11px; margin:0; }
.stock-import-icon { align-items:center; background:#e8f7f5; border-radius:8px; color:var(--primary-dark); display:flex; flex:0 0 42px; font-size:19px; height:42px; justify-content:center; }.stock-import-icon.is-stock { background:#edf5ff; color:#2563a8; }
.stock-import-actions { border-bottom:1px solid var(--line); border-top:1px solid var(--line); display:flex; gap:8px; padding:11px 18px; }
.stock-import-actions a { align-items:center; background:#f5faf9; border:1px solid #d4e6e4; border-radius:7px; color:var(--primary-dark); display:inline-flex; font-size:10px; font-weight:800; gap:6px; justify-content:center; min-height:36px; padding:0 11px; text-decoration:none; transition:background .16s ease,border-color .16s ease,transform .16s ease; }.stock-import-actions a:hover { background:#e5f3f1; border-color:#abd2cd; transform:translateY(-1px); }
.stock-import-form { align-items:end; display:grid; gap:10px; grid-template-columns:minmax(0,1fr) auto; padding:15px 18px 18px; }.stock-import-form label { margin:0; min-width:0; }.stock-import-form label > span,.stock-import-form label > small { display:block; }.stock-import-form label > span { font-size:10px; font-weight:800; margin-bottom:5px; }.stock-import-form label > small { color:var(--muted); font-size:9px; margin-top:4px; }.stock-import-form input[type="file"] { background:#f8fbfb; border:1px dashed #bcd6d3; border-radius:7px; box-sizing:border-box; font-size:10px; height:auto; max-width:100%; padding:8px; width:100%; }.stock-import-form button { align-items:center; align-self:center; background:var(--primary); border:1px solid var(--primary); border-radius:7px; color:#fff; cursor:pointer; display:inline-flex; font-size:10px; font-weight:800; gap:6px; height:38px; justify-content:center; padding:0 12px; white-space:nowrap; }
.stock-import-note { align-items:flex-start; background:#f2f8ff; border:1px solid #d5e5f6; border-radius:8px; color:#355a7a; display:flex; gap:10px; margin-bottom:14px; padding:12px 14px; }.stock-import-note > i { font-size:18px; }.stock-import-note strong { display:block; font-size:11px; }.stock-import-note p { color:#5a738a; font-size:10px; margin:3px 0 0; }
.stock-import-errors { max-height:min(760px,calc(100vh - 32px)); }.stock-import-errors .table-wrap { max-height:55vh; }.stock-import-errors code { display:block; font-size:9px; max-width:560px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* Mantém células de ação com comportamento de tabela e evita salto de altura após o JS. */
td.table-actions,td.document-actions { display:table-cell!important; height:58px; vertical-align:middle!important; white-space:nowrap; }
td.table-actions > *,td.document-actions > * { margin-right:5px!important; vertical-align:middle; }
td.table-actions > *:last-child,td.document-actions > *:last-child { margin-right:0!important; }
.stock-summary { display:grid; gap:14px; grid-template-columns:repeat(3,minmax(0,1fr)); margin-bottom:18px; }
.stock-summary article { align-items:center; background:#fff; border:1px solid var(--line); border-radius:8px; display:flex; gap:14px; min-height:104px; padding:18px; }
.stock-summary article > i { align-items:center; background:#e8f7f5; border-radius:8px; color:var(--primary-dark); display:flex; flex:0 0 44px; font-size:20px; height:44px; justify-content:center; }
.stock-summary article.is-alert > i { background:#fff0f0; color:#b4232d; }
.stock-summary span,.stock-summary small { color:var(--muted); display:block; font-size:12px; }
.stock-summary strong { color:var(--ink); display:block; font-size:26px; line-height:1.2; margin:2px 0; }
.stock-product-modal { max-width:min(1120px,calc(100vw - 32px)); }
.stock-product-fields { grid-template-columns:2fr 1fr 1fr 1fr; }
.stock-active { align-self:end; min-height:48px; }
.stock-link-heading,.stock-lines-heading,.stock-section-heading { align-items:flex-end; border-top:1px solid var(--line); display:flex; justify-content:space-between; margin-top:4px; padding-top:17px; }
.stock-link-heading small,.stock-lines-heading small,.stock-section-heading small { color:var(--muted); display:block; font-size:11px; margin-top:3px; }
.stock-link-heading > span { color:var(--muted); font-size:11px; }
.stock-link-grid { display:grid; gap:10px; grid-template-columns:repeat(2,minmax(0,1fr)); }
.stock-link-item { border:1px solid var(--line); border-radius:8px; padding:12px; }
.stock-link-item > div { display:grid; gap:9px; grid-template-columns:120px 1fr; margin-top:10px; }
.stock-link-item label span { font-size:11px; }
.stock-link-item .check-field { justify-content:flex-start; min-height:auto; padding:0; }
.stock-link-item .check-field span strong,.stock-link-item .check-field span small { display:block; }
.stock-link-item .check-field span small { color:var(--muted); margin-top:2px; }
.purchase-workflow { align-items:center; background:#f7faf9; border-bottom:1px solid var(--line); border-top:1px solid var(--line); display:flex; gap:12px; overflow-x:auto; padding:12px 20px; white-space:nowrap; }
.purchase-workflow span { align-items:center; color:#526276; display:flex; font-size:12px; font-weight:700; gap:7px; }
.purchase-workflow b { align-items:center; background:#e4f5f3; border-radius:50%; color:var(--primary-dark); display:flex; height:24px; justify-content:center; width:24px; }
.purchase-workflow i { color:#aab5c2; }
.modal-xwide { max-width:min(1320px,calc(100vw - 28px)); }
.stock-purchase-context { grid-template-columns:1fr 1fr 2fr; }
.stock-purchase-lines { display:grid; gap:10px; }
.stock-purchase-line { align-items:end; background:#f8fbfb; border:1px solid var(--line); border-radius:8px; display:grid; gap:10px; grid-template-columns:28px minmax(190px,1.5fr) 120px minmax(170px,1fr) 130px minmax(160px,1fr) 38px; padding:12px; }
.stock-line-number { align-items:center; align-self:center; background:#def4f1; border-radius:50%; color:var(--primary-dark); display:flex; font-size:11px; font-weight:900; height:26px; justify-content:center; width:26px; }
.stock-purchase-line label span { font-size:10px; }
.stock-purchase-line input,.stock-purchase-line select { height:44px; min-width:0; }
.stock-purchase-line .icon-action { align-items:center; border-radius:7px; display:flex; height:38px; justify-content:center; margin-bottom:3px; width:38px; }
.stock-request-modal { max-width:min(1000px,calc(100vw - 32px)); }
.stock-request-status { align-items:center; border-bottom:1px solid var(--line); display:flex; justify-content:space-between; padding:14px 20px; }
.stock-request-items { display:grid; gap:8px; padding:16px 20px; }
.stock-request-items article { align-items:center; background:#f8fafb; border:1px solid var(--line); border-radius:7px; display:flex; justify-content:space-between; padding:11px 13px; }
.stock-request-items small { color:var(--muted); display:block; margin-top:3px; }
.stock-request-items article > div:last-child { display:flex; gap:18px; }
.stock-request-items article > div:last-child span { color:var(--muted); font-size:11px; }
.stock-note { border-left:3px solid #8bcfc8; margin:0 20px 16px; padding:5px 12px; }
.stock-note p { color:var(--muted); margin:4px 0 0; }
.stock-decision,.stock-receipt { border-top:1px solid var(--line); padding:16px 20px; }
.stock-decision > div { display:flex; gap:8px; justify-content:flex-end; margin-top:10px; }
.stock-single-action { border-top:1px solid var(--line); display:flex; justify-content:flex-end; padding:16px 20px; }
.stock-single-action button { align-items:center; background:var(--primary); border:1px solid var(--primary); border-radius:7px; box-shadow:0 7px 18px rgba(0,137,123,.16); color:#fff; cursor:pointer; display:inline-flex; font:inherit; font-size:12px; font-weight:800; gap:7px; height:40px; justify-content:center; line-height:1; padding:0 15px; transition:background .16s ease,border-color .16s ease,box-shadow .16s ease,transform .16s ease; white-space:nowrap; }
.stock-single-action button:hover { background:var(--primary-dark); border-color:var(--primary-dark); box-shadow:0 9px 22px rgba(0,103,93,.2); transform:translateY(-1px); }
.stock-single-action button:active { box-shadow:none; transform:translateY(0); }
.stock-single-action button:focus-visible { outline:3px solid rgba(0,137,123,.22); outline-offset:2px; }
.stock-single-action button i { font-size:14px; }
.stock-receipt-row { align-items:end; display:grid; gap:12px; grid-template-columns:minmax(180px,1fr) 180px 180px; padding:10px 0; }
.stock-receipt-row + .stock-receipt-row { border-top:1px solid var(--line); }
.stock-receipt-row small { color:var(--muted); display:block; margin-top:3px; }
.stock-receipt footer { display:flex; justify-content:flex-end; margin-top:12px; }

@media (max-width:1100px) {
    .stock-product-fields { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .stock-purchase-line { grid-template-columns:28px repeat(2,minmax(150px,1fr)) 38px; }
    .stock-line-product,.stock-line-note { grid-column:span 2; }
}
@media (max-width:980px) { .stock-import-grid { grid-template-columns:1fr; } }
@media (max-width:760px) {
    .stock-summary,.stock-link-grid,.stock-import-summary { grid-template-columns:1fr; }
    .stock-product-fields,.stock-purchase-context { grid-template-columns:1fr; }
    .stock-purchase-context .span-2 { grid-column:auto; }
    .stock-purchase-line { grid-template-columns:28px 1fr 38px; }
    .stock-purchase-modal { overflow-x:hidden; }
    .stock-purchase-line { min-width:0; overflow:hidden; width:100%; }
    .stock-purchase-line label,.stock-line-product,.stock-line-note { grid-column:2; min-width:0; width:100%; }
    .stock-purchase-line input,.stock-purchase-line select { min-width:0!important; width:100%; }
    .stock-purchase-line .icon-action { grid-column:3; grid-row:1; }
    .stock-request-items article,.stock-link-heading,.stock-lines-heading { align-items:flex-start; flex-direction:column; }
    .stock-request-items article > div:last-child { margin-top:9px; }
    .stock-single-action button { width:100%; }
    .stock-receipt-row { grid-template-columns:1fr; }
    .stock-product-photo-field { align-items:flex-start; }
    .stock-movement-context { grid-template-columns:1fr; }
    .stock-product-actions { align-items:stretch; flex-direction:column; }
    .stock-product-actions .button-secondary { margin-left:0; }
    .stock-product-actions a,.stock-product-actions button { justify-content:center; width:100%; }
    .stock-import-actions { display:grid; grid-template-columns:1fr 1fr; }.stock-import-actions a { width:100%; }.stock-import-form { grid-template-columns:1fr; }.stock-import-form button { width:100%; }
}
.people-history { grid-template-columns:repeat(3,minmax(0,1fr)); }
.people-self-summary > article.is-warning { background:#fffaf0; border-color:#f2dba9; }
.people-self-summary > article.is-warning strong { color:#9a5b05; }
.people-self-summary > article.is-alert { background:#fff4f4; border-color:#f2c4c7; }
.people-self-summary > article.is-alert strong { color:#b4232d; }
.self-periodic-list { display:grid; gap:0; padding:0 18px 15px; }
.self-periodic-list article { border-bottom:1px solid var(--line); display:grid; gap:10px; grid-template-columns:34px minmax(0,1fr); padding:12px 0; }
.self-periodic-list article:last-child { border-bottom:0; }
.self-periodic-list strong,.self-periodic-list small { display:block; }
.self-periodic-list strong { font-size:11px; }
.self-periodic-list small,.self-periodic-list p { color:var(--muted); font-size:9px; margin:3px 0; }
.self-periodic-list a { color:var(--primary-dark); display:block; font-size:9px; margin-top:3px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.people-periodic-panel { margin-bottom:14px; }
.field-label { align-items:center; display:flex; gap:5px; }
.field-help { color:#6f8094; cursor:help; display:inline-flex; line-height:1; position:relative; }
.field-help::after { content:none; }
.field-tooltip-popup { background:#172433; border:1px solid rgba(255,255,255,.12); border-radius:6px; box-shadow:0 8px 24px rgba(12,27,42,.22); color:#fff; font-size:10px; font-weight:500; left:0; line-height:1.45; max-width:min(280px,calc(100vw - 16px)); opacity:0; padding:8px 10px; pointer-events:none; position:fixed; top:0; transform:translateY(4px); transition:opacity .15s ease,transform .15s ease; white-space:normal; width:max-content; z-index:10000; }
.field-tooltip-popup.is-visible { opacity:1; transform:translateY(0); }

/* Operação diária de metas, agenda e orçamentos */
.daily-page-heading { align-items:center; display:flex; gap:24px; justify-content:space-between; margin-bottom:16px; }
.daily-page-heading h2 { font-size:22px; margin:3px 0 5px; }
.daily-page-heading p { color:var(--muted); margin:0; }
.daily-page-heading > button { align-items:center; background:var(--primary); border:0; border-radius:7px; color:#fff; display:inline-flex; font-weight:800; gap:7px; height:42px; padding:0 16px; white-space:nowrap; }
.daily-summary-grid { display:grid; gap:12px; grid-template-columns:repeat(4,minmax(0,1fr)); margin-bottom:14px; }
.daily-summary-grid article { align-items:center; background:#fff; border:1px solid var(--line); border-radius:8px; display:flex; gap:12px; min-height:92px; padding:15px; }
.daily-summary-grid article > i { align-items:center; background:#e8f7f5; border-radius:7px; color:var(--primary-dark); display:flex; flex:0 0 40px; font-size:18px; height:40px; justify-content:center; }
.daily-summary-grid article.is-alert > i { background:#fff0f0; color:#b4232d; }
.daily-summary-grid span,.daily-summary-grid small { color:var(--muted); display:block; font-size:10px; }
.daily-summary-grid strong { display:block; font-size:22px; line-height:1.15; margin:2px 0; }
.daily-filter-panel { margin-bottom:14px; padding:16px 18px; }
.daily-filter-form { align-items:end; display:grid; gap:12px; grid-template-columns:minmax(180px,1fr) minmax(160px,.8fr) 180px auto; }
.daily-filter-form .filter-actions { align-self:end; }
.daily-projection-panel,.daily-alert-panel,.daily-table-panel,.daily-exception-panel { margin-bottom:14px; }
.daily-projection-grid { display:grid; gap:10px; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); padding:0 18px 18px; }
.daily-projection-grid article { border:1px solid var(--line); border-radius:8px; padding:13px; position:relative; }
.daily-projection-grid article > div:first-child { align-items:center; display:flex; justify-content:space-between; }
.daily-projection-grid article > div:first-child span { color:var(--muted); font-size:10px; }
.daily-projection-values { display:grid; gap:5px; grid-template-columns:repeat(3,1fr); margin-top:12px; }
.daily-projection-values small,.daily-projection-values b { display:block; font-size:9px; }
.daily-projection-values small { color:var(--muted); }
.daily-projection-values b { color:var(--ink); margin-top:2px; }
.daily-projection-track { background:#e9eff0; border-radius:99px; height:6px; margin-top:12px; overflow:hidden; }
.daily-projection-track i { background:#c22b36; display:block; height:100%; }
.daily-projection-grid article.is-warning .daily-projection-track i { background:#d58a1f; }
.daily-projection-grid article.is-good .daily-projection-track i { background:#0a8f72; }
.daily-projection-percent { display:block; font-size:11px; font-weight:900; margin-top:6px; text-align:right; }
.daily-alert-panel.has-alerts { border-color:#efc6c9; }
.daily-missing-list { display:grid; gap:7px; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); max-height:310px; overflow:auto; padding:0 18px 18px; }
.daily-missing-list article { align-items:center; background:#fffafa; border:1px solid #f2d5d7; border-radius:7px; display:grid; gap:10px; grid-template-columns:48px minmax(0,1fr) auto; padding:9px; }
.daily-missing-list article > div strong,.daily-missing-list article > div small,.daily-missing-date strong,.daily-missing-date small { display:block; }
.daily-missing-list article > div small,.daily-missing-date small { color:var(--muted); font-size:9px; }
.daily-missing-date { border-right:1px solid #f0d7d9; }
.daily-missing-list button { font-size:10px; height:34px; padding:0 10px; }
.daily-complete-state { align-items:center; color:#147355; display:flex; gap:10px; padding:0 18px 20px; }
.daily-complete-state i { font-size:24px; }.daily-complete-state strong,.daily-complete-state span { display:block; }.daily-complete-state span { color:var(--muted); font-size:10px; }
.daily-goal-values { display:flex; gap:9px; max-width:380px; overflow:hidden; }
.daily-goal-values span { border-right:1px solid var(--line); padding-right:9px; white-space:nowrap; }.daily-goal-values span:last-child { border-right:0; }
.daily-goal-values small,.daily-goal-values b,.daily-cell-stack b,.daily-cell-stack small { display:block; }.daily-goal-values small,.daily-cell-stack small { color:var(--muted); font-size:9px; }.daily-goal-values b { font-size:10px; margin-top:2px; }
.daily-launch-modal { max-width:min(1380px,calc(100vw - 24px)); overflow-x:hidden; }
.daily-launch-rows { display:grid; gap:12px; }
.daily-launch-row { background:#f9fbfb; border:1px solid var(--line); border-radius:8px; padding:13px; }
.daily-launch-row-head { align-items:center; border-bottom:1px solid var(--line); display:flex; gap:10px; margin-bottom:12px; padding-bottom:10px; }
.daily-launch-row-head > div { flex:1; }.daily-launch-row-head strong,.daily-launch-row-head small { display:block; }.daily-launch-row-head small { color:var(--muted); font-size:9px; }
.daily-row-number { align-items:center; background:#dcf3f0; border-radius:50%; color:var(--primary-dark); display:flex; flex:0 0 28px; font-size:11px; font-weight:900; height:28px; justify-content:center; }
.daily-context-grid { display:grid; gap:10px; grid-template-columns:1.2fr 1fr 180px; }
.daily-entry-sections { display:grid; gap:10px; grid-template-columns:1.15fr .9fr 1.15fr; margin-top:11px; }
.daily-entry-sections > section { background:#fff; border:1px solid var(--line); border-radius:7px; padding:11px; }
.daily-entry-sections header { align-items:center; display:flex; gap:8px; margin-bottom:9px; }
.daily-entry-sections header i { color:var(--primary-dark); font-size:16px; }.daily-entry-sections header strong,.daily-entry-sections header small { display:block; }.daily-entry-sections header small { color:var(--muted); font-size:9px; }
.daily-meta-fields,.daily-number-grid,.daily-budget-grid { display:grid; gap:8px; }.daily-meta-fields { grid-template-columns:repeat(2,minmax(0,1fr)); }.daily-number-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }.daily-budget-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.daily-entry-sections label span,.daily-note span { font-size:9px; }.daily-entry-sections input { height:40px; }
.daily-note { display:block; margin-top:10px; }.daily-note input { width:100%; }
.daily-add-row { align-self:flex-start; }
.monthly-target-fields { grid-template-columns:1.15fr 1fr 180px 1fr 180px minmax(220px,1.2fr); }
@media (max-width:1100px){.daily-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.daily-entry-sections{grid-template-columns:1fr 1fr}.daily-entry-sections>section:first-child{grid-column:1/-1}.daily-filter-form{grid-template-columns:repeat(3,minmax(0,1fr))}.daily-filter-form .filter-actions{grid-column:1/-1;justify-content:flex-end}}
@media (max-width:1100px){.monthly-target-fields{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:700px){.daily-page-heading{align-items:stretch;flex-direction:column}.daily-page-heading>button{justify-content:center}.daily-summary-grid,.daily-filter-form,.daily-context-grid,.daily-entry-sections,.monthly-target-fields{grid-template-columns:1fr}.daily-entry-sections>section:first-child{grid-column:auto}.daily-meta-fields,.daily-number-grid,.daily-budget-grid{grid-template-columns:1fr}.daily-missing-list{grid-template-columns:1fr}.daily-missing-list article{grid-template-columns:44px minmax(0,1fr)}.daily-missing-list button{grid-column:1/-1;width:100%}.daily-projection-values{grid-template-columns:1fr}.daily-launch-modal{max-width:100vw}.daily-summary-grid article{min-height:78px}}
.people-modal input[readonly] { background:#eef3f4; color:#637187; cursor:not-allowed; }
@media (max-width:900px){.people-history { grid-template-columns:1fr; }.people-history > section+section { border-left:0; border-top:1px solid var(--line); }}

.linked-field-value {
    align-items: center;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    display: flex;
    font-size: .92rem;
    font-weight: 600;
    min-height: 44px;
    padding: 0 14px;
}

.linked-field-value[hidden],
[data-history-completion-field][hidden],
[data-history-clinic][hidden],
[data-history-sector][hidden] {
    display: none;
}

.modal-dialog .check-list label,
.modal-dialog .clinic-sector-options label,
.modal-dialog .check-field {
    align-items: center;
    display: flex;
    gap: 9px;
}

.modal-dialog .check-list input[type="checkbox"],
.modal-dialog .clinic-sector-options input[type="checkbox"],
.modal-dialog .check-field input[type="checkbox"] {
    accent-color: var(--primary);
    flex: 0 0 18px;
    height: 18px;
    margin: 0;
    min-height: 18px;
    padding: 0;
    width: 18px;
}

.modal-dialog .check-list label > span,
.modal-dialog .clinic-sector-options label > span,
.modal-dialog .check-field > span {
    line-height: 1.3;
    margin: 0;
}

/* Admission and recruitment */
.recruitment-summary {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 14px;
}

.recruitment-summary > div {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    gap: 12px;
    min-width: 0;
    padding: 15px 16px;
}

.recruitment-summary i {
    align-items: center;
    background: #e8f7f5;
    border-radius: 8px;
    color: var(--primary-dark);
    display: flex;
    flex: 0 0 38px;
    font-size: 18px;
    height: 38px;
    justify-content: center;
}

.recruitment-summary span { min-width: 0; }
.recruitment-summary strong { display: block; font-size: 1.35rem; line-height: 1; }
.recruitment-summary small { color: var(--muted); display: block; font-size: 12px; margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.recruitment-filters,
.candidate-filters {
    align-items: end;
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(170px, 1fr)) auto;
    padding: 16px 20px;
}

.candidate-filters { grid-template-columns: minmax(210px, 1.3fr) repeat(3, minmax(170px, 1fr)) auto; }
.recruitment-filters label,
.candidate-filters label { margin: 0; min-width: 0; }
.recruitment-filters .filter-actions,
.candidate-filters .filter-actions { flex-wrap: nowrap; margin: 0; }

.vacancy-list { display: grid; }
.vacancy-row {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 18px;
    grid-template-columns: 108px minmax(260px, 1fr) auto;
    padding: 18px 20px;
}
.vacancy-row:last-child { border-bottom: 0; }
.vacancy-code span { color: var(--primary-dark); display: block; font-size: 12px; font-weight: 800; }
.vacancy-code small { color: var(--muted); display: block; font-size: 11px; margin-top: 4px; }
.vacancy-title-line { align-items: center; display: flex; flex-wrap: wrap; gap: 9px; }
.vacancy-title-line h3 { font-size: 15px; margin: 0; }
.vacancy-main > p { color: var(--muted); font-size: 13px; margin: 5px 0 8px; }
.vacancy-main > p span { color: #b1bcc8; margin: 0 4px; }
.vacancy-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.vacancy-meta span { color: #536277; font-size: 11px; white-space: nowrap; }
.vacancy-meta i { color: var(--primary); margin-right: 4px; }
.recruitment-status { background: #fff; border: 1px solid currentColor; border-radius: 999px; font-size: 10px; font-weight: 800; padding: 5px 8px; }
.recruitment-status.is-new { background: #fff4d9; color: #8a5200; }
.recruitment-status.is-approved { background: #e9f1ff; color: #245ea8; }
.recruitment-status.is-live { background: #dcf8ec; color: #08754e; }
.recruitment-status.is-paused { background: #fff0e4; color: #a04710; }
.recruitment-status.is-closed,
.recruitment-status.is-cancelled { background: #eef1f5; color: #596678; }
.vacancy-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.vacancy-actions form { display: contents; }
.vacancy-actions .vacancy-status-form { align-items: center; display: flex; gap: 5px; }
.vacancy-status-form select { appearance: none; background-color: #f4faf9; background-image: linear-gradient(45deg,transparent 50%,#007f78 50%),linear-gradient(135deg,#007f78 50%,transparent 50%); background-position: calc(100% - 14px) 14px,calc(100% - 10px) 14px; background-repeat: no-repeat; background-size: 4px 4px,4px 4px; border: 1px solid #cfe4e1; border-radius: 7px; color: #294052; font-size: 11px; font-weight: 700; height: 34px; min-height: 34px; padding: 0 28px 0 10px; transition: border-color .16s ease,box-shadow .16s ease; width: 138px; }
.vacancy-status-form select:hover,.vacancy-status-form select:focus { border-color: #78bfb7; box-shadow: 0 0 0 3px rgba(0,140,131,.08); outline: 0; }
.icon-button {
    align-items: center;
    background: #f4faf9;
    border: 1px solid #d4e7e4;
    border-radius: 7px;
    color: #006b67;
    cursor: pointer;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    padding: 0;
    transition: background .16s ease, border-color .16s ease, transform .16s ease;
    width: 34px;
}
.icon-button:hover { background: #e4f5f2; border-color: #9fd4cd; transform: translateY(-1px); }
.icon-button.is-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.icon-button.is-success { background: #e5f8ef; border-color: #b4e6cf; color: #08754e; }
.icon-button.is-warning { background: #fff4e8; border-color: #f5d3b4; color: #a04710; }
.form-section-title { align-items: center; border-top: 1px solid var(--line); display: flex; gap: 10px; margin-top: 3px; padding-top: 15px; }
.form-section-title:first-of-type { border-top: 0; padding-top: 0; }
.form-section-title > span { align-items: center; background: #e5f6f3; border-radius: 50%; color: var(--primary-dark); display: flex; flex: 0 0 28px; font-size: 12px; font-weight: 800; height: 28px; justify-content: center; }
.form-section-title strong,.form-section-title small { display: block; }
.form-section-title small { color: var(--muted); font-size: 11px; margin-top: 2px; }

.panel-header-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; }
.catalog-choice { border: 1px solid var(--line); border-radius: 8px; margin: 0; min-width: 0; padding: 14px; }
.catalog-choice legend { color: var(--text); font-size: 12px; font-weight: 800; padding: 0 6px; }
.recruitment-description-grid { grid-template-columns: minmax(0,1fr); }
.recruitment-description-grid > * { grid-column: 1; width: 100%; }
.catalog-choice-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit,minmax(155px,1fr)); }
.catalog-choice-grid > label { align-items: center; background: #f7fafb; border: 1px solid #e1e9eb; border-radius: 7px; cursor: pointer; display: flex; gap: 9px; margin: 0; min-height: 42px; min-width: 0; padding: 9px 10px; }
.catalog-choice-grid input,.catalog-settings input { accent-color: var(--primary); flex: 0 0 17px; height: 17px; margin: 1px 0 0; min-height: 17px; padding: 0; width: 17px; }
.catalog-choice-grid strong,.catalog-choice-grid small { display: block; }
.catalog-choice-grid strong { font-size: 11px; line-height: 1.25; }
.catalog-choice-grid small { color: var(--muted); font-size: 9px; line-height: 1.35; margin-top: 3px; }
.catalog-complement { margin-top: 12px; }
.catalog-tabs { border-bottom: 1px solid var(--line); display: flex; gap: 4px; overflow-x: auto; padding: 0 20px; }
.catalog-tabs a { align-items: center; border-bottom: 2px solid transparent; color: var(--muted); display: flex; font-size: 12px; font-weight: 700; gap: 7px; padding: 14px 12px 12px; white-space: nowrap; }
.catalog-tabs a.is-active { border-color: var(--primary); color: var(--primary-dark); }
.catalog-table td { vertical-align: middle; }
.catalog-table td:first-child strong,.catalog-slug { display: block; }
.catalog-slug { color: var(--muted); font-size: 9px; margin-top: 3px; }
.catalog-flags { display: flex; flex-wrap: wrap; gap: 5px; }
.catalog-flags span { background: #f1f6f6; border-radius: 5px; color: #536277; font-size: 9px; padding: 5px 7px; white-space: nowrap; }
.catalog-settings { display: flex; flex-wrap: wrap; gap: 9px; }
.catalog-settings label { align-items: center; background: #f5f8f9; border: 1px solid var(--line); border-radius: 7px; display: flex; font-size: 11px; font-weight: 700; gap: 8px; margin: 0; padding: 10px 12px; }
.form-note { background: #f4f8fa; border-radius: 7px; color: var(--muted); font-size: 11px; margin: 0; padding: 10px 12px; }

.recruitment-board-panel { overflow: hidden; }
.candidate-board { display: flex; gap: 12px; min-height: 470px; overflow-x: auto; padding: 16px; scrollbar-color: #a9c7c4 transparent; }
.candidate-column { background: #f4f7f8; border-radius: 8px; border-top: 3px solid var(--stage-color,#8abdb8); flex: 0 0 270px; min-width: 0; padding: 10px; }
.candidate-column > header { align-items: center; display: flex; font-size: 12px; font-weight: 800; justify-content: space-between; padding: 2px 3px 10px; }
.candidate-column > header strong { align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 999px; display: flex; font-size: 10px; height: 23px; justify-content: center; min-width: 23px; }
.candidate-column-list { display: grid; gap: 9px; }
.candidate-column-empty { color: #8995a5; font-size: 11px; padding: 24px 8px; text-align: center; }
.candidate-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 11px; }
.candidate-card-head { align-items: center; display: grid; gap: 8px; grid-template-columns: 34px minmax(0,1fr); }
.candidate-card-head .avatar { font-size: 10px; height: 34px; width: 34px; }
.candidate-card-head strong,.candidate-card-head small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.candidate-card-head strong { font-size: 12px; }
.candidate-card-head small { color: var(--muted); font-size: 10px; margin-top: 2px; }
.candidate-card > p { color: #637187; font-size: 10px; line-height: 1.6; margin: 10px 0; }
.candidate-card > p i { color: var(--primary); margin-right: 4px; width: 12px; }
.candidate-card-meta { align-items: center; border-top: 1px solid #edf1f3; display: flex; font-size: 9px; justify-content: space-between; padding-top: 8px; }
.candidate-card-meta span { color: var(--muted); }
.candidate-card-meta a { color: var(--primary-dark); font-weight: 700; }
.candidate-detail-button { align-items: center; background: transparent; border: 0; color: var(--primary-dark); cursor: pointer; display: flex; font-size: 10px; font-weight: 800; justify-content: space-between; margin-top: 9px; padding: 0; width: 100%; }
.candidate-profile-strip { background: #f4faf9; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 20px; padding: 12px 20px; }
.candidate-profile-strip span,.candidate-profile-strip a { color: #536277; font-size: 11px; }
.candidate-profile-strip i { color: var(--primary); margin-right: 6px; }
.candidate-modal-grid { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(260px,.75fr); }
.candidate-decision-form { border-right: 1px solid var(--line); padding: 20px; }
.candidate-decision-form h3,.candidate-timeline h3 { font-size: 14px; margin: 0 0 14px; }
.candidate-message { background: #f7f9fa; border-left: 3px solid #83c9c1; border-radius: 0 6px 6px 0; padding: 10px 12px; }
.candidate-message strong { font-size: 11px; }
.candidate-message p { color: var(--muted); font-size: 11px; margin: 5px 0 0; }
.candidate-timeline { max-height: 420px; overflow-y: auto; padding: 20px; }
.candidate-timeline > div { border-left: 1px solid #cfe1df; display: grid; padding: 0 0 17px 14px; position: relative; }
.candidate-timeline > div > span { background: var(--primary); border: 3px solid #e5f6f3; border-radius: 50%; height: 10px; left: -5px; position: absolute; top: 2px; width: 10px; }
.candidate-timeline time,.candidate-timeline small { color: var(--muted); font-size: 9px; }
.candidate-timeline strong { font-size: 10px; margin: 3px 0; }
.timeline-stage-change { align-items: center; display: flex; flex-wrap: wrap; gap: 5px; margin: 5px 0 3px; }
.timeline-stage-change em { background: #f1f5f6; border: 1px solid #dce6e7; border-radius: 999px; color: #536277; font-size: 8px; font-style: normal; font-weight: 800; line-height: 1; padding: 5px 7px; }
.timeline-stage-change em:last-child { background: color-mix(in srgb,var(--stage-color) 10%,white); border-color: color-mix(in srgb,var(--stage-color) 30%,white); color: var(--stage-color); }
.timeline-stage-change i { color: #8a97a7; font-size: 9px; }
.candidate-admission-bar { align-items: flex-end; background: #f2fbf8; border-top: 1px solid #cce9e2; display: flex; gap: 10px; justify-content: flex-end; padding: 14px 20px; }
.candidate-admission-bar label { display: grid; gap: 5px; margin: 0; max-width: 190px; min-width: 170px; }
.candidate-admission-bar label > span { color: #425269; font-size: 10px; font-weight: 800; line-height: 1; }
.candidate-admission-bar input[type="date"] { background: #fff; border: 1px solid #c9ddda; border-radius: 7px; color: var(--text); font-size: 12px; height: 40px; min-height: 40px; padding: 0 11px; transition: border-color .16s ease,box-shadow .16s ease; width: 100%; }
.candidate-admission-bar input[type="date"]:focus { border-color: #72bdb5; box-shadow: 0 0 0 3px rgba(0,140,131,.09); outline: 0; }
.candidate-admission-bar button { align-items: center; background: var(--primary); border: 1px solid var(--primary); border-radius: 7px; box-shadow: 0 8px 20px rgba(0,108,102,.14); color: #fff; cursor: pointer; display: inline-flex; font-size: 11px; font-weight: 800; gap: 7px; height: 40px; justify-content: center; min-height: 40px; padding: 0 15px; transition: background .16s ease,box-shadow .16s ease,transform .16s ease; white-space: nowrap; }
.candidate-admission-bar button:hover { background: var(--primary-dark); box-shadow: 0 10px 24px rgba(0,108,102,.2); transform: translateY(-1px); }
.candidate-admission-bar button:focus-visible { box-shadow: 0 0 0 3px rgba(0,140,131,.18); outline: 0; }
.candidate-admitted { background: #e9f8f1; color: #08754e; font-size: 12px; font-weight: 700; padding: 14px 20px; }

.public-career-page { background: #eef3f3; color: #172433; min-height: 100vh; overflow: auto; }
.public-career-shell { margin: 0 auto; max-width: 1240px; padding: 26px; }
.career-brand { align-items: center; display: flex; justify-content: space-between; margin-bottom: 24px; }
.career-brand a { align-items: center; color: #172433; display: flex; gap: 9px; }
.career-brand a > span { align-items: center; background: #008c83; border-radius: 8px; color: #fff; display: flex; font-weight: 900; height: 38px; justify-content: center; width: 38px; }
.career-brand small { color: var(--muted); }
.career-layout { align-items: start; display: grid; gap: 24px; grid-template-columns: minmax(0,1fr) minmax(380px,500px); }
.career-vacancy,.career-application { background: #fff; border: 1px solid #dce6e7; border-radius: 8px; padding: 30px; }
.career-code { color: #007f78; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.career-vacancy h1 { font-size: clamp(26px,4vw,42px); letter-spacing: 0; line-height: 1.1; margin: 10px 0 18px; }
.career-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.career-tags span { background: #f2f7f7; border-radius: 6px; color: #536277; font-size: 11px; padding: 7px 9px; }
.career-tags i { color: #008c83; margin-right: 5px; }
.career-copy { border-top: 1px solid #e6ecee; margin-top: 24px; padding-top: 20px; }
.career-copy h2 { font-size: 15px; margin: 0 0 8px; }
.career-copy p { color: #58677b; font-size: 13px; line-height: 1.7; margin: 0; }
.career-application { position: sticky; top: 20px; }
.career-application > div:first-child h2 { font-size: 23px; margin: 6px 0; }
.career-application > div:first-child p { color: var(--muted); font-size: 12px; margin: 0 0 18px; }
.career-file { border: 1px dashed #a8cbc7; border-radius: 8px; cursor: pointer; padding: 12px; }
.career-file > span { align-items: center; display: grid; gap: 2px 9px; grid-template-columns: 28px 1fr; }
.career-file i { color: #008c83; font-size: 22px; grid-row: 1/3; }
.career-file small { color: var(--muted); font-size: 10px; }
.career-file input { margin-top: 10px; min-height: 0; padding: 6px; }
.career-submit { justify-content: space-between; width: 100%; }
.career-privacy { color: #7b8796; display: block; font-size: 9px; line-height: 1.4; text-align: center; }
.public-message { border-radius: 7px; font-size: 12px; font-weight: 700; margin-bottom: 14px; padding: 11px; }
.public-message.is-success { background: #e2f8ec; color: #08754e; }.public-message.is-error { background: #fff0f0; color: #ae2630; }
.career-footer { color: #748193; font-size: 10px; padding: 24px 0 0; text-align: center; }.career-footer a { color: #006b67; font-weight: 700; }
.career-unavailable { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 70px 20px; text-align: center; }.career-unavailable i { color: #008c83; font-size: 38px; }

@media (max-width: 1180px) {
    .candidate-filters { grid-template-columns: repeat(2,minmax(200px,1fr)); }
    .recruitment-filters { grid-template-columns: repeat(2,minmax(200px,1fr)); }
}
@media (max-width: 900px) {
    .recruitment-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .vacancy-row { grid-template-columns: 90px minmax(0,1fr); }
    .vacancy-actions { grid-column: 1/-1; justify-content: flex-start; }
    .career-layout { grid-template-columns: 1fr; }
    .career-application { position: static; }
    .candidate-modal-grid { grid-template-columns: 1fr; }
    .candidate-decision-form { border-bottom: 1px solid var(--line); border-right: 0; }
    .catalog-choice-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 620px) {
    .recruitment-summary,.recruitment-filters,.candidate-filters { grid-template-columns: 1fr; }
    .recruitment-filters .filter-actions,.candidate-filters .filter-actions { display: grid; grid-template-columns: 1fr 1fr; }
    .vacancy-row { gap: 10px; grid-template-columns: 1fr; }
    .vacancy-actions { grid-column: auto; justify-content: flex-start; }
    .recruitment-summary small { white-space: normal; }
    .candidate-admission-bar { align-items: stretch; flex-direction: column; }
    .candidate-admission-bar label { max-width: none; }
    .candidate-admission-bar button { width: 100%; }
    .public-career-shell { padding: 14px; }
    .career-vacancy,.career-application { padding: 20px; }
    .catalog-choice-grid { grid-template-columns: 1fr; }
    .vacancy-actions .vacancy-status-form { display: flex; width: 100%; }
    .vacancy-status-form select { flex: 1; width: auto; }
}

/* Daily operation capacity, accumulated goals and analysis */
.procedure-list,.clinic-capacity-list { border: 1px solid var(--line); padding: 16px; border-radius: 8px; }
.clinical-workload-fields { display:grid; gap:14px; }
.clinical-workload-fields[hidden] { display:none; }
[data-cnpj-field][hidden] { display:none; }
.procedure-row { display: grid; grid-template-columns: minmax(220px,1fr) minmax(150px,220px) 42px; gap: 12px; align-items: end; margin-bottom: 12px; }
.procedure-row .icon-action { margin-bottom: 3px; }
.clinic-capacity-list { display: grid; gap: 12px; }
.clinic-capacity-item { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.clinic-capacity-toggle { display: flex !important; align-items: center; gap: 10px; padding: 14px; }
.clinic-capacity-toggle span { display: grid; gap: 2px; }
.clinic-capacity-fields { display: none; gap: 14px; padding: 14px; border-top: 1px solid var(--line); background: #f8fbfb; }
.clinic-capacity-item.is-enabled .clinic-capacity-fields { display: grid; }
.clinic-capacity-group { display: grid; grid-template-columns: repeat(4,minmax(150px,1fr)); gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.clinic-capacity-group-general { grid-template-columns: repeat(3,minmax(150px,1fr)); padding-top: 0; border-top: 0; }
.clinic-capacity-group > header { align-items: baseline; display: flex; gap: 8px; grid-column: 1 / -1; }
.clinic-capacity-group > header strong { color: var(--ink); font-size: 13px; }
.clinic-capacity-group > header span { color: var(--muted); font-size: 11px; }
.modal-dialog .check-list .clinic-capacity-group > label { align-items: stretch; display: grid; gap: 7px; min-width: 0; }
.modal-dialog .check-list .clinic-capacity-fields input:not([type="checkbox"]) { flex: 1 1 auto; height: 46px; min-width: 0; width: 100%; }
.clinic-capacity-help { align-items: flex-start; display: flex; flex-direction: column; gap: 3px; grid-column: 1 / -1; padding: 2px 2px 8px; }
.clinic-capacity-help strong { color: var(--ink); font-size: 14px; }
.clinic-capacity-help span { color: var(--muted); font-size: 12px; line-height: 1.45; }
.input-suffix { align-items: center; display: flex; min-width: 0; position: relative; }
.input-suffix input { padding-right: 48px; }
.input-suffix > span { color: var(--muted); font-size: 12px; font-weight: 700; pointer-events: none; position: absolute; right: 14px; }
.clinic-capacity-fields .field-hint { color: var(--muted); font-size: 11px; font-weight: 500; line-height: 1.35; }
.daily-context-grid-five { grid-template-columns: 1.25fr 1.2fr 1fr .9fr .55fr; }
.daily-goals-section { grid-column: 1 / -1; }
.daily-meta-fields { display: grid; grid-template-columns: repeat(2,minmax(300px,1fr)); gap: 12px; }
.daily-meta-input-group { display: grid; grid-template-columns: repeat(auto-fit,minmax(110px,1fr)); gap: 10px; align-items: end; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fbfdfd; }
.daily-meta-input-group > strong { align-self: center; grid-column: 1 / -1; }
.daily-meta-input-group label,.daily-meta-input-group input { min-width: 0; width: 100%; }
.daily-meta-input-group > strong small { display: block; color: var(--muted); font-weight: 600; }
.daily-meta-input-group input:disabled,.daily-agenda-grid input:disabled,.daily-context-grid input:disabled { background: #eaf2f2; color: #21434a; font-weight: 700; opacity: 1; }
.daily-agenda-grid { display: grid; grid-template-columns: repeat(3,minmax(150px,1fr)); gap: 12px; }
.daily-goal-values em { display: block; font-size: .72rem; color: var(--muted); font-style: normal; }
.operation-analysis-filter { display: grid; grid-template-columns: repeat(3,minmax(180px,1fr)) auto; gap: 12px; align-items: end; padding: 0 20px 20px; }
.operation-chart-grid { display: grid; grid-template-columns: repeat(3,minmax(280px,1fr)); gap: 14px; padding: 0 20px 20px; }
.operation-chart-grid article { min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 14px; background: #fff; }
.operation-chart-grid article header { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.operation-chart-grid article header div { display: grid; }
.operation-chart-grid article header span { color: var(--brand); font-weight: 800; }
.operation-chart { display:block; height:auto; margin-top:8px; overflow:visible; width:100%; }
.operation-line-chart { display: block; width: 100%; height: auto; margin-top: 8px; }
.operation-chart-gridline { stroke: #dce8e8; stroke-width: 1; }
.operation-chart-target { stroke: #f0522d; stroke-width: 1.5; stroke-dasharray: 5 4; }
.operation-chart-target-label { fill:#c43a20; font-size:10px; font-weight:800; paint-order:stroke; stroke:#fff; stroke-width:4px; }
.operation-chart-line { fill: none; stroke: #008b82; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.operation-chart-point { fill: #fff; stroke: #008b82; stroke-width: 2.5; }
.operation-chart-projection { fill:none; stroke:#2878b8; stroke-dasharray:7 5; stroke-linecap:round; stroke-width:2.5; }
.operation-chart-projection-point { fill:#fff; stroke:#2878b8; stroke-width:2.5; }
.operation-chart-projection-label { fill:#1d5f95; font-size:10px; font-weight:800; paint-order:stroke; stroke:#fff; stroke-width:4px; }
.operation-chart-value-label { fill:#24434a; font-size:9px; font-weight:800; paint-order:stroke; stroke:#fff; stroke-width:4px; }
.operation-chart-label { fill: #64748b; font-size: 10px; }
.agenda-ranking-grid { display: grid; grid-template-columns: repeat(2,minmax(320px,1fr)); gap: 10px; padding: 0 20px 20px; }
.agenda-ranking-grid article { display: grid; grid-template-columns: 40px minmax(160px,1fr) 100px 100px; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
.agenda-ranking-grid article > div,.agenda-ranking-metric { display: grid; }
.agenda-ranking-metric { text-align: right; }
.agenda-ranking-metric b { color: var(--brand); }
.agenda-ranking-metric small { color: var(--muted); }
@media (max-width: 1180px) { .daily-context-grid-five { grid-template-columns: repeat(3,minmax(170px,1fr)); } .operation-chart-grid { grid-template-columns: repeat(2,minmax(280px,1fr)); } .clinic-capacity-group,.clinic-capacity-group-general { grid-template-columns: repeat(2,minmax(150px,1fr)); } }
@media (max-width: 760px) { .procedure-row,.daily-context-grid-five,.daily-meta-fields,.daily-agenda-grid,.operation-analysis-filter,.operation-chart-grid,.agenda-ranking-grid,.clinic-capacity-group,.clinic-capacity-group-general { grid-template-columns: 1fr; } .clinic-capacity-group > header { align-items:flex-start; flex-direction:column; gap:2px; } .daily-meta-input-group { grid-template-columns: 1fr 1fr; } .agenda-ranking-grid article { grid-template-columns: 38px 1fr; } .agenda-ranking-metric { text-align: left; } }

/* Dashboard: conversões separadas e ranking alternável */
.dashboard-kpi-card.accent-orange::before { background:#f0522d; }
.conversion-comparison { display:grid; gap:10px; }
.conversion-comparison > section { background:#f8fcfc; border:1px solid var(--line); border-radius:8px; display:grid; gap:7px; min-width:0; padding:13px; }
.conversion-comparison > section.is-operational { background:#fffaf7; border-color:#f3d8cc; }
.conversion-comparison span { color:var(--muted); font-size:10px; font-weight:900; text-transform:uppercase; }
.conversion-comparison strong { color:var(--ink); font-size:22px; line-height:1.1; }
.conversion-comparison small,.conversion-comparison em { color:var(--muted); font-size:11px; font-style:normal; line-height:1.4; }
.conversion-comparison > section > b { color:var(--brand); font-size:12px; }
.conversion-comparison dl { display:grid; gap:5px; margin:3px 0 0; }
.conversion-comparison dl div { align-items:center; display:flex; gap:10px; justify-content:space-between; }
.conversion-comparison dt { color:var(--muted); font-size:10px; }
.conversion-comparison dd { color:var(--ink); font-size:11px; font-weight:800; margin:0; }
.ranking-view-switch { align-items:center; background:#f2f7f7; border:1px solid var(--line); border-radius:8px; display:inline-flex; gap:3px; padding:3px; }
.ranking-view-switch button { align-items:center; background:transparent !important; border:0 !important; border-radius:6px; box-shadow:none !important; color:var(--muted) !important; display:inline-flex; font-size:11px; font-weight:800; gap:6px; height:34px; justify-content:center; min-width:82px; padding:0 10px; transform:none !important; }
.ranking-view-switch button.is-active { background:#fff !important; color:var(--brand) !important; box-shadow:0 2px 8px rgba(15,23,42,.08) !important; }
.ranking-chart { display:grid; gap:10px; padding:0 20px 20px; }
.ranking-chart[hidden] { display:none; }
.ranking-chart-head { color:var(--muted); display:flex; font-size:9px; justify-content:space-between; margin-left:min(300px,28%); padding:0 42px 0 0; position:relative; }
.ranking-chart-head span:nth-child(2) { color:#a85c00; position:absolute; transform:translateX(-50%); white-space:nowrap; }
.ranking-chart > article { align-items:center; border:1px solid var(--line); border-radius:8px; display:grid; gap:18px; grid-template-columns:minmax(210px,28%) minmax(320px,1fr); padding:12px; }
.ranking-chart > article > header { align-items:center; display:grid; gap:10px; grid-template-columns:36px minmax(0,1fr); }
.ranking-chart header strong,.ranking-chart header small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ranking-chart header strong { color:var(--ink); font-size:12px; }.ranking-chart header small { color:var(--muted); font-size:10px; margin-top:3px; }
.ranking-chart-series { display:grid; gap:7px; position:relative; }
.ranking-chart-series::after { border-left:1px dashed #d58a1f; content:""; inset:0 auto 0 var(--target-position); pointer-events:none; position:absolute; }
.ranking-chart-series.no-target::after { display:none; }
.ranking-chart-series > div { align-items:center; display:grid; gap:9px; grid-template-columns:82px minmax(120px,1fr) 54px; }
.ranking-chart-series span { color:var(--muted); font-size:9px; font-weight:800; }
.ranking-chart-series i { background:#edf3f3; border-radius:999px; display:block; height:9px; overflow:hidden; }
.ranking-chart-series i b { border-radius:inherit; display:block; height:100%; min-width:2px; }
.ranking-chart-series i b.is-schedule { background:#008b82; }.ranking-chart-series i b.is-occupancy { background:#f0522d; }
.ranking-chart-series > div > strong { color:var(--ink); font-size:10px; text-align:right; }
.conversion-indicator-grid { display:grid; gap:10px; grid-template-columns:repeat(2,minmax(0,1fr)); margin-bottom:8px; }
.conversion-indicator-grid > article { background:#f8fcfc; border:1px solid var(--line); border-radius:8px; min-width:0; padding:16px; }
.conversion-indicator-grid > article.is-operational { background:#fffaf7; border-color:#f3d8cc; }
.conversion-indicator-grid header { align-items:flex-start; display:flex; gap:10px; }
.conversion-indicator-grid header > i { align-items:center; background:#e7f6f4; border-radius:7px; color:var(--brand); display:flex; flex:0 0 34px; height:34px; justify-content:center; }
.conversion-indicator-grid header strong,.conversion-indicator-grid header small { display:block; }.conversion-indicator-grid header strong { color:var(--ink); font-size:13px; }.conversion-indicator-grid header small { color:var(--muted); font-size:10px; line-height:1.4; margin-top:3px; }
.conversion-indicator-values { display:grid; gap:8px; grid-template-columns:repeat(3,minmax(0,1fr)); margin-top:14px; }
.conversion-indicator-values > span { background:#fff; border:1px solid var(--line); border-radius:7px; min-width:0; padding:10px; }
.conversion-indicator-values small,.conversion-indicator-values b { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.conversion-indicator-values small { color:var(--muted); font-size:9px; text-transform:uppercase; }.conversion-indicator-values b { color:var(--ink); font-size:14px; margin-top:5px; }
.conversion-indicator-grid > article > p { color:var(--muted); font-size:10px; margin:10px 0 0; }
.indicator-trend-panel,.indicator-ranking-panel { margin-top:14px; }
.budget-ranking-grid { display:grid; gap:10px; grid-template-columns:repeat(2,minmax(420px,1fr)); padding:0 20px 20px; }
.budget-ranking-grid article { align-items:center; border:1px solid var(--line); border-radius:8px; display:grid; gap:14px; grid-template-columns:40px minmax(170px,1.25fr) repeat(3,minmax(120px,.7fr)); min-width:0; padding:12px; }
.budget-ranking-grid article > span:not(.rank-number),.budget-person { display:grid; min-width:0; }
.budget-ranking-grid small,.budget-ranking-grid em { color:var(--muted); font-size:9px; font-style:normal; }
.budget-ranking-grid b { color:var(--brand); font-size:12px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.budget-person strong,.budget-person small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.budget-chart-head { margin-left:min(300px,28%); }
.budget-chart-head span:last-child { margin-left:auto; }
.budget-ranking-chart .ranking-chart-series > div { grid-template-columns:76px minmax(120px,1fr) 110px; }
@media (max-width:900px) { .conversion-indicator-grid { grid-template-columns:1fr; }.ranking-chart > article { grid-template-columns:1fr; }.ranking-chart-head { margin-left:0; }.ranking-chart-series > div { grid-template-columns:76px minmax(100px,1fr) 50px; } }
@media (max-width:560px) { .dashboard-agenda-ranking .panel-header { align-items:stretch; flex-direction:column; }.ranking-view-switch { align-self:flex-start; }.ranking-view-switch span { display:none; }.ranking-view-switch button { min-width:38px; padding:0; }.ranking-chart { padding-inline:12px; }.ranking-chart-series > div { align-items:start; grid-template-columns:1fr 48px; }.ranking-chart-series i { grid-column:1 / -1; grid-row:2; }.conversion-indicator-values { grid-template-columns:1fr; } }

.daily-launch-switch { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; padding:14px 18px 0; }
.daily-launch-switch button { align-items:center; background:#f6f9f9; border:1px solid var(--line); border-radius:8px; color:var(--text); display:flex; gap:10px; justify-content:flex-start; min-height:64px; padding:10px 14px; text-align:left; }
.daily-launch-switch button:hover { border-color:#88c9c2; background:#f0f9f7; transform:none; }
.daily-launch-switch button.is-active { background:#e7f6f4; border-color:var(--primary); box-shadow:0 0 0 2px rgba(0,137,123,.08); color:var(--primary-dark); }
.daily-launch-switch i { font-size:20px; }.daily-launch-switch span,.daily-launch-switch strong,.daily-launch-switch small { display:block; }
.daily-launch-switch small { color:var(--muted); font-size:10px; margin-top:2px; }
.daily-launch-group { display:none; padding:16px 18px 4px; }.daily-launch-group.is-active { display:block; }
.daily-group-heading { align-items:flex-end; display:flex; justify-content:space-between; margin-bottom:12px; }
.daily-group-heading h3 { font-size:16px; margin:0 0 3px; }.daily-group-heading p { color:var(--muted); font-size:11px; margin:0; }
.daily-person-sections { grid-template-columns:minmax(0,1.45fr) minmax(300px,.75fr); }
.daily-general-context { grid-template-columns:minmax(220px,1.2fr) minmax(190px,1fr) 190px 120px; }
.daily-general-goals { background:#fff; border:1px solid var(--line); border-radius:7px; margin-top:11px; padding:12px; }
.daily-general-goals > header { align-items:center; display:flex; gap:8px; margin-bottom:10px; }
.daily-general-goals > header i { color:var(--primary-dark); font-size:17px; }.daily-general-goals > header strong,.daily-general-goals > header small { display:block; }
.daily-general-goals > header small { color:var(--muted); font-size:9px; }
.daily-people-table-panel { margin-top:16px; }
@media (max-width:1000px) { .daily-person-sections { grid-template-columns:1fr; }.daily-general-context { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:700px) { .daily-launch-switch,.daily-general-context { grid-template-columns:1fr; }.daily-launch-switch button { min-height:56px; }.daily-launch-group { padding-inline:12px; } }

.meta-replication-modal { max-width:min(1040px,calc(100vw - 24px)); }
.meta-replication-periods { align-items:end; display:grid; gap:14px; grid-template-columns:minmax(220px,1fr) 34px minmax(220px,1fr); }
.meta-replication-periods > i { align-items:center; color:var(--primary-dark); display:flex; font-size:20px; height:46px; justify-content:center; }
.meta-replication-notice { align-items:center; background:#eef8f6; border:1px solid #cce8e3; border-radius:7px; color:#285c56; display:flex; font-size:11px; gap:9px; padding:10px 12px; }
.meta-replication-notice i { color:var(--primary); font-size:17px; }
.meta-replication-groups { display:grid; gap:12px; grid-template-columns:repeat(2,minmax(0,1fr)); }
.meta-replication-groups .meta-replication-types { grid-column:1/-1; }
.meta-replication-groups .check-list { min-width:0; }
.meta-replication-groups .check-list legend { align-items:center; display:flex; justify-content:space-between; width:100%; }
.meta-replication-groups .check-list legend button { background:transparent; border:0; box-shadow:none; color:var(--primary-dark); font-size:10px; height:auto; min-height:0; padding:2px 4px; }
.meta-replication-options { display:grid; gap:7px; grid-template-columns:repeat(2,minmax(0,1fr)); max-height:190px; overflow:auto; }
.meta-replication-types .meta-replication-options { grid-template-columns:repeat(3,minmax(0,1fr)); }
.meta-replication-options label { min-height:42px; }
@media (max-width:760px) { .meta-replication-periods,.meta-replication-groups { grid-template-columns:1fr; }.meta-replication-periods > i { height:24px; transform:rotate(90deg); }.meta-replication-groups .meta-replication-types { grid-column:auto; }.meta-replication-options,.meta-replication-types .meta-replication-options { grid-template-columns:1fr; } }

/* Estrutura responsiva final: o menu vira uma camada e nunca comprime o conteúdo. */
@media (max-width:1200px) {
    .budget-ranking-grid { grid-template-columns:1fr; }
}

@media (max-width:900px) {
    html,body { max-width:100%; overflow-x:hidden; width:100%; }
    .app-shell,.app-shell.sidebar-collapsed { display:block; height:100dvh; max-width:100vw; min-width:0; overflow:hidden; width:100%; }
    .page { height:100dvh; max-width:100vw; min-width:0; width:100%; }
    .sidebar,.sidebar-collapsed .sidebar { background:var(--primary); bottom:0; height:100dvh; left:0; max-width:320px; min-height:0; right:auto; top:0; width:min(86vw,320px); }
    .topbar { max-width:100vw; min-width:0; width:100%; }
    .content { max-width:100%; min-width:0; overflow-x:hidden; overflow-y:auto; width:100%; }
    .content > * { max-width:100%; min-width:0; }
    .indicator-filter-form { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .indicator-filter-form label,.indicator-filter-form input,.indicator-filter-form select { max-width:100%; min-width:0; width:100%; }
    .indicator-filter-form .filter-actions { grid-column:1/-1; }
    .indicator-table-wrap,.table-wrap { max-width:100%; overflow-x:auto; }
    .operation-chart-grid { grid-template-columns:1fr; }
    .budget-ranking-grid { padding-inline:14px; }
    .budget-ranking-grid article { grid-template-columns:36px minmax(150px,1fr) repeat(3,minmax(105px,.7fr)); overflow-x:auto; }
}

@media (max-width:640px) {
    .topbar { align-items:center; padding:12px; }
    .topbar h1 { font-size:19px; }
    .topbar .eyebrow { font-size:9px; }
    .user-menu > div { display:none; }
    .content { padding:12px; }
    .indicator-filter-form { grid-template-columns:1fr; }
    .indicator-filter-form .filter-actions { grid-column:auto; }
    .panel-header { padding:14px; }
    .operation-chart-grid,.agenda-ranking-grid,.budget-ranking-grid { padding-inline:10px; }
    .budget-ranking-grid article { align-items:start; grid-template-columns:34px minmax(0,1fr); }
    .budget-ranking-grid article > span:not(.rank-number) { grid-column:2; }
    .budget-ranking-chart .ranking-chart-series > div { grid-template-columns:1fr 92px; }
    .budget-ranking-chart .ranking-chart-series i { grid-column:1/-1; grid-row:2; }
}

/* Dashboards consolidados */
.dashboard-subnav { align-items:center; background:#edf5f4; border:1px solid var(--line); border-radius:8px; display:inline-flex; gap:4px; margin-bottom:14px; padding:4px; }
.dashboard-subnav a { align-items:center; border-radius:6px; color:var(--muted); display:inline-flex; font-size:11px; font-weight:800; gap:7px; min-height:36px; padding:0 13px; }
.dashboard-subnav a.is-active { background:#fff; box-shadow:0 2px 8px rgba(15,23,42,.08); color:var(--primary-dark); }
.dashboard-general-filter { grid-template-columns:repeat(4,minmax(150px,1fr)); }
.dashboard-general-filter .dashboard-inactive-filter { grid-column:1/3; }
.dashboard-general-filter .filter-actions { grid-column:3/5; justify-self:end; min-width:220px; }
.dashboard-finance-grid { display:grid; gap:12px; grid-template-columns:repeat(4,minmax(0,1fr)); margin:14px 0; }
.dashboard-finance-card { background:#fff; border:1px solid var(--line); border-radius:8px; box-shadow:var(--shadow); display:grid; gap:7px; min-width:0; padding:17px; position:relative; }
.dashboard-finance-card::before { background:#6b8790; content:""; inset:0 auto 0 0; position:absolute; width:3px; }
.dashboard-finance-card.income::before,.dashboard-finance-card.balance.positive::before { background:#008b82; }
.dashboard-finance-card.expense::before,.dashboard-finance-card.balance.negative::before { background:#e34d33; }
.dashboard-finance-card > span { align-items:center; color:var(--muted); display:flex; font-size:10px; font-weight:900; gap:7px; text-transform:uppercase; }
.dashboard-finance-card > span i { font-size:15px; }
.dashboard-finance-card strong { color:var(--ink); font-size:24px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dashboard-finance-card small { color:var(--muted); font-size:10px; line-height:1.4; }
.dashboard-overview-kpis,.team-dashboard-kpis { grid-template-columns:repeat(5,minmax(0,1fr)); }
.dashboard-insights { margin-bottom:14px; }
.dashboard-insight-grid { display:grid; gap:10px; grid-template-columns:repeat(3,minmax(0,1fr)); padding:0 20px 20px; }
.dashboard-insight-grid article { align-items:flex-start; background:#f7fbfb; border:1px solid var(--line); border-left:3px solid #378d87; border-radius:7px; display:flex; gap:10px; min-width:0; padding:12px; }
.dashboard-insight-grid article.is-warning { background:#fffaf0; border-left-color:#d98a17; }.dashboard-insight-grid article.is-danger { background:#fff6f4; border-left-color:#db4c36; }.dashboard-insight-grid article.is-success { background:#f2fbf6; border-left-color:#1a9a56; }
.dashboard-insight-grid i { color:var(--primary-dark); font-size:18px; }.dashboard-insight-grid strong { color:var(--ink); display:block; font-size:12px; }.dashboard-insight-grid p { color:var(--muted); font-size:10px; line-height:1.45; margin:4px 0 0; }
.dashboard-projection-legend,.operation-chart-legend { align-items:center; display:flex; flex-wrap:wrap; gap:14px; }
.dashboard-projection-legend { padding:0 20px 14px; }
.dashboard-projection-legend span,.operation-chart-legend span { align-items:center; color:var(--muted); display:inline-flex; font-size:9px; font-weight:800; gap:6px; white-space:nowrap; }
.dashboard-projection-legend i,.operation-chart-legend i { border-radius:999px; display:inline-block; height:3px; width:22px; }
.dashboard-projection-legend .is-actual,.operation-chart-legend .is-actual { background:#008b82; }
.dashboard-projection-legend .is-projection,.operation-chart-legend .is-projection { background:repeating-linear-gradient(90deg,#2878b8 0 6px,transparent 6px 10px); }
.dashboard-projection-legend .is-target,.operation-chart-legend .is-target { background:repeating-linear-gradient(90deg,#f0522d 0 5px,transparent 5px 9px); }
.projection-explanation { color:#486a72; display:block; font-size:10px; margin-top:6px; }
.dashboard-comparison-panel,.dashboard-overall-ranking,.team-feedback-ranking { margin-top:14px; }
.dashboard-comparison-panel .indicator-table td.good { color:#078163; }.dashboard-comparison-panel .indicator-table td.warn { color:#b46900; }.dashboard-comparison-panel .indicator-table td.bad { color:#c72f35; }
.clean-ranking-wide { display:grid; gap:9px; grid-template-columns:repeat(2,minmax(0,1fr)); padding:0 20px 20px; }
.clean-ranking-wide li { border:1px solid var(--line); border-radius:8px; }

@media (max-width:1200px) {
    .dashboard-finance-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .dashboard-overview-kpis,.team-dashboard-kpis { grid-template-columns:repeat(3,minmax(0,1fr)); }
    .dashboard-general-filter { grid-template-columns:repeat(3,minmax(150px,1fr)); }
}
@media (max-width:900px) {
    .dashboard-insight-grid { grid-template-columns:1fr 1fr; }
    .dashboard-general-filter { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .dashboard-general-filter .dashboard-inactive-filter { grid-column:1; }
    .dashboard-general-filter .filter-actions { grid-column:2; justify-self:stretch; min-width:0; }
    .operation-chart-legend { justify-content:flex-start; width:100%; }
}
@media (max-width:640px) {
    .dashboard-subnav { align-items:stretch; display:grid; grid-template-columns:1fr 1fr; width:100%; }
    .dashboard-subnav a { justify-content:center; text-align:center; }
    .dashboard-finance-grid,.dashboard-overview-kpis,.team-dashboard-kpis,.dashboard-insight-grid,.dashboard-general-filter,.clean-ranking-wide { grid-template-columns:1fr; }
    .dashboard-general-filter .dashboard-inactive-filter,.dashboard-general-filter .filter-actions { grid-column:auto; }
    .dashboard-finance-card strong { font-size:21px; }
    .dashboard-projection-legend,.operation-chart-legend { align-items:flex-start; flex-direction:column; gap:8px; }
}
