:root {
    --bg: #f4f6f8;
    --panel: #ffffff;
    --text: #17202a;
    --muted: #617080;
    --line: #d9e0e7;
    --form-bg: #f8fbfd;
    --card-border: #cfdae3;
    --card-soft: #f9fbfc;
    --primary: #1f6f8b;
    --primary-dark: #17566d;
    --danger-bg: #fff1f1;
    --danger: #9f1d1d;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}

a {
    color: var(--primary);
    text-decoration: none;
}

.login-page,
.page-center {
    display: grid;
    place-items: center;
    padding: 32px 16px;
}

.login-shell {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(360px, 520px);
    gap: 48px;
    width: 100%;
    min-height: calc(100vh - 64px);
    align-items: center;
    padding: 0 48px;
}

.login-brand h1,
.panel h1,
.content h1 {
    margin: 0 0 10px;
}

.login-brand p,
.muted {
    color: var(--muted);
    margin: 0;
}

.login-logo {
    display: block;
    width: min(360px, 100%);
    height: auto;
    margin-bottom: 24px;
}

.login-card,
.panel {
    position: relative;
    background: var(--panel);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 6px 16px rgba(23, 32, 42, 0.045);
}

.panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(90deg, var(--primary), #78b5c7);
}

.login-card h2 {
    margin: 0 0 24px;
}

label {
    display: block;
    margin: 10px 0 5px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
    font-family: inherit;
}

input,
select {
    height: 36px;
}

textarea {
    min-height: 76px;
    padding-top: 8px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    outline: 3px solid rgba(31, 111, 139, 0.16);
}

button,
.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: auto;
    min-width: 96px;
    min-height: 32px;
    margin-top: 12px;
    border: 0;
    border-radius: 6px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    line-height: 1;
    padding: 0 14px;
    cursor: pointer;
}

.login-card button {
    width: 100%;
    min-height: 44px;
}

.login-actions {
    display: flex;
    justify-content: center;
    margin-top: 12px;
    font-size: 13px;
    font-weight: 700;
}

.login-actions.visible {
    justify-content: flex-start;
}

.dev-reset-link {
    display: grid;
    gap: 6px;
    margin-top: 14px;
    padding: 10px;
    border: 1px dashed var(--primary);
    border-radius: 6px;
    background: #f5fbfd;
    font-size: 12px;
    overflow-wrap: anywhere;
}

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

.button.secondary {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
}

.button.secondary:hover {
    background: #f8fafc;
}

.alert {
    margin: 16px 0;
    padding: 12px;
    border-radius: 6px;
    background: var(--danger-bg);
    color: var(--danger);
    font-size: 14px;
}

.notice {
    margin: 16px 0;
    padding: 12px;
    border-radius: 6px;
    background: #edf8f2;
    color: #17633a;
    font-size: 14px;
    overflow: hidden;
    animation: flashOut 0.45s ease 4s forwards;
}

@keyframes flashOut {
    to {
        max-height: 0;
        margin-top: 0;
        margin-bottom: 0;
        padding-top: 0;
        padding-bottom: 0;
        border-width: 0;
        opacity: 0;
    }
}

.credentials {
    margin: 18px 0 8px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #f8fafc;
    line-height: 1.6;
}

.topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 0 16px;
    border-bottom: 1px solid #c7dce4;
    background: #eaf4f7;
    box-shadow: 0 3px 12px rgba(23, 32, 42, 0.06);
}

.main-menu,
.topbar-actions {
    display: flex;
    align-items: center;
}

.main-menu {
    gap: 4px;
    flex: 1 1 auto;
}

.topbar-actions {
    gap: 10px;
    margin-left: auto;
}

.menu-item,
.user-menu {
    position: relative;
}

.has-dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 8px;
}

.menu-item > a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 9px;
    border-radius: 6px;
    color: #405462;
    font-weight: 700;
}

.menu-item.has-dropdown > a::after {
    content: "▾";
    margin-left: 6px;
    font-size: 10px;
}

.menu-item > a.active,
.menu-item > a:hover {
    background: #fff;
    color: var(--primary-dark);
    box-shadow: 0 1px 4px rgba(23, 32, 42, 0.06);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 20;
    display: none;
    min-width: 230px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 32px rgba(23, 32, 42, 0.12);
}

.dropdown-menu a,
.dropdown-menu > span {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 8px;
    border-radius: 6px;
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.dropdown-menu > span {
    color: var(--muted);
    font-weight: 400;
}

.dropdown-divider {
    width: 100%;
    border: 0;
    height: 1px;
    margin: 4px 2px;
    padding: 0;
    background: #edf2f5;
}

.menu-icon {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    background: #e9f4f8;
    color: var(--primary-dark);
    font-size: 9px;
    font-style: normal;
    font-weight: 900;
}

.dropdown-menu a:hover {
    background: #eef5f7;
    color: var(--primary-dark);
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
    display: block;
}

.dropdown-right {
    right: 0;
    left: auto;
}

.top-search {
    display: flex;
    align-items: center;
    height: 38px;
}

.top-search input {
    width: 220px;
    height: 38px;
    border-radius: 6px 0 0 6px;
    font-size: 13px;
}

.top-search button {
    min-width: 76px;
    min-height: 38px;
    margin: 0;
    border-radius: 0 6px 6px 0;
}

.user-button {
    min-width: 0;
    min-height: 38px;
    margin: 0;
    border: 1px solid #c7dce4;
    background: #fff;
    color: var(--text);
    font-weight: 700;
}

.user-button:hover {
    background: #eef5f7;
    color: var(--primary-dark);
}

.brand-link {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.brand-link img {
    display: block;
    width: 130px;
    height: auto;
}

.topbar span {
    color: var(--muted);
}

.content {
    width: 100%;
    margin: 0 auto;
    padding: 14px 18px;
}

.page-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 10px;
}

.page-title h1 {
    font-size: 24px;
    line-height: 1.15;
}

.page-title .muted {
    font-size: 13px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 8px;
    margin-top: 8px;
    margin-bottom: 14px;
}

.stat {
    display: block;
    position: relative;
    overflow: hidden;
    padding: 11px 13px;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    background: linear-gradient(180deg, #fff 0%, var(--card-soft) 100%);
    color: var(--text);
    box-shadow: 0 5px 14px rgba(23, 32, 42, 0.04);
}

.stat:hover {
    border-color: var(--primary);
    background: #fff;
    color: var(--text);
}

.stat::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
    opacity: 0.8;
}

.stat span {
    display: block;
    color: var(--muted);
    margin-bottom: 4px;
    font-size: 13px;
}

.stat strong {
    font-size: 24px;
    line-height: 1;
}

.compact {
    width: auto;
    min-width: 96px;
    margin-top: 0;
    padding: 0 12px;
}

.tabs {
    display: flex;
    gap: 8px;
    margin: 20px 0;
    border-bottom: 1px solid var(--line);
}

.tabs a {
    padding: 12px 14px;
    border-bottom: 3px solid transparent;
    color: var(--muted);
    font-weight: 700;
}

.tabs a.active {
    border-color: var(--primary);
    color: var(--primary);
}

.module-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0;
}

.module-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--text);
    font-weight: 700;
}

.module-actions a.active {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.cadastro-selector {
    margin: 20px 0;
    padding: 18px;
}

.cadastro-selector label {
    margin-top: 0;
}

.inline-select {
    display: grid;
    grid-template-columns: minmax(260px, 420px) auto;
    gap: 10px;
    align-items: center;
}

.inline-select button {
    width: auto;
    min-width: 110px;
    margin-top: 0;
    padding: 0 18px;
}

.work-grid {
    display: grid;
    grid-template-columns: minmax(520px, 1.1fr) minmax(420px, 0.9fr);
    gap: 10px;
    align-items: start;
}

.single-panel {
    width: 100%;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.list-header h2 {
    margin: 0;
}

.section-card-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 0 0 10px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(23, 32, 42, 0.05);
}

.section-card-title h1 {
    margin: 2px 0 4px;
}

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

.section-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.count-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 220px 220px minmax(0, 1fr);
    gap: 8px;
    margin-top: 8px;
    align-items: start;
}

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

.form-panel button {
    width: auto;
    padding: 0 16px;
}

.form-actions-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.form-actions-row button,
.form-actions-row .button {
    margin-top: 0;
}

.form-panel {
    background: var(--form-bg);
}

.process-form {
    width: 100%;
    padding: 4px 14px 16px;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.process-form h2 {
    margin: 0 0 14px;
    font-size: 18px;
}

.process-form .form-grid {
    gap: 8px 14px;
}

.process-form label {
    margin-top: 0;
}

.form-grid {
    display: grid;
    gap: 0 10px;
}

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

.filters-panel {
    margin-bottom: 8px;
    padding: 10px;
    background: var(--form-bg);
}

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

.filters-grid label {
    margin-top: 0;
}

.filters-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.filters-actions button,
.filters-actions .button {
    margin-top: 0;
}

.check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 6px;
    margin: 6px 0 10px;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    margin: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--text);
    font-weight: 400;
}

.check-item input {
    width: 18px;
    height: 18px;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 520px;
    font-size: 13px;
}

th,
td {
    padding: 6px 8px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
    line-height: 1.35;
}

th {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: #e9f4f8;
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.badge.attention {
    background: #fff3d6;
    color: #8a4b00;
}

.badge.inactive {
    margin-left: 4px;
    background: #eef1f3;
    color: #647382;
}

tr.row-attention td {
    background: #fffaf0;
}

tr.row-attention td:first-child {
    box-shadow: inset 3px 0 0 #d98a00;
}

tr.row-inactive td {
    background: #f7f8f9;
    color: #647382;
}

tr.row-inactive td:first-child {
    box-shadow: inset 3px 0 0 #9aa7b2;
}

.status-list {
    display: grid;
    gap: 6px;
}

.status-list a {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid #dbe5eb;
    border-radius: 6px;
    background: #fff;
    color: var(--text);
    box-shadow: 0 2px 8px rgba(23, 32, 42, 0.03);
}

.status-list a:hover {
    border-color: var(--primary);
    background: #f7fbfc;
    color: var(--text);
}

.status-list span {
    font-size: 13px;
}

.status-list strong {
    font-size: 15px;
}

.row-note {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
}

.process-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 8px;
}

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

.detail-grid dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.detail-grid dd {
    margin: 2px 0 0;
    font-size: 14px;
}

.participant-list,
.timeline,
.notification-list {
    display: grid;
    gap: 7px;
}

.participant-list div,
.timeline article,
.notification-list a {
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #f8fafc;
}

.participant-list span,
.timeline span,
.notification-list span {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
}

.participant-list strong {
    font-size: 14px;
}

.participant-list .badge {
    display: inline-flex;
    min-height: 18px;
    margin-top: 4px;
    padding: 0 7px;
    font-size: 11px;
}

.participant-action {
    display: inline-block;
    margin: 4px 0 0 8px;
}

.participant-action .danger-link {
    font-size: 11px;
}

.compact-heading {
    align-items: center;
}

.compact-heading h2 {
    margin: 0;
}

.participant-compact-list {
    display: grid;
    gap: 5px;
}

.participant-compact-list div {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) 120px auto;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border: 1px solid #dbe5eb;
    border-radius: 6px;
    background: #fff;
}

.participant-compact-list div.inactive {
    opacity: 0.65;
}

.participant-compact-list span {
    font-weight: 800;
}

.participant-compact-list small {
    color: var(--muted);
    font-size: 12px;
}

.participant-compact-list em {
    justify-self: end;
    min-width: 48px;
    padding: 3px 7px;
    border-radius: 999px;
    background: #e9f4f8;
    color: var(--primary-dark);
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
    text-align: center;
}

.distribution-filters {
    grid-template-columns: minmax(280px, 2fr) minmax(180px, 1fr) minmax(180px, 1fr) auto;
}

.distribution-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.distribution-summary span {
    color: var(--muted);
}

.distribution-panel {
    background: var(--form-bg);
}

.distribution-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.distribution-toolbar h2 {
    margin: 0 0 2px;
}

.distribution-toolbar button {
    margin-top: 0;
}

.distribution-table table {
    min-width: 760px;
}

.distribution-table input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.distribution-table .selected-row {
    background: #edf8fb;
}

.process-page .content {
    padding: 12px 18px;
}

.process-page .page-title h1 {
    font-size: 22px;
}

.process-page .page-title {
    align-items: center;
}

.process-page textarea {
    min-height: 82px;
}

.process-page .panel p {
    margin-top: 8px;
    line-height: 1.35;
}

.notification-alert {
    margin: 0 0 12px;
    padding: 10px 12px;
    border: 1px solid #cfe6ee;
    border-left: 3px solid var(--primary);
    border-radius: 8px;
    background: #f5fbfd;
}

.notification-alert-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.notification-alert-head h2 {
    margin: 0;
    font-size: 14px;
}

.notification-alert-head strong {
    min-width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 12px;
}

.eyebrow {
    display: block;
    color: var(--primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.notification-alert-list {
    display: grid;
    gap: 6px;
    max-height: 132px;
    overflow: auto;
}

.notification-alert-list a {
    display: grid;
    grid-template-columns: minmax(180px, 260px) minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 7px 9px;
    border: 1px solid #d7e7ed;
    border-radius: 6px;
    background: #fff;
    color: var(--text);
}

.notification-alert-list a:hover {
    border-color: var(--primary);
}

.notification-alert-list strong,
.notification-alert-list span,
.notification-alert-list p,
.notification-alert-list small,
.notification-more {
    overflow-wrap: anywhere;
}

.notification-alert-list strong {
    font-size: 12px;
}

.notification-alert-list span {
    display: block;
    margin-top: 0;
    color: var(--muted);
    font-size: 11px;
}

.notification-alert-list p {
    margin: 0;
    color: var(--text);
    font-size: 12px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-alert-list small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.notification-more {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.agenda-panel {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 10px;
    margin: 0 0 8px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

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

.agenda-head h2 {
    margin: 0;
    font-size: 16px;
}

.agenda-head strong {
    min-width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #e6f1f5;
    color: var(--primary);
    font-size: 12px;
}

.calendar-nav {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.calendar-nav a {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--primary);
    font-size: 14px;
    font-weight: 900;
}

.calendar-nav a:hover {
    border-color: var(--primary);
    background: #f5fbfd;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
}

.calendar-weekdays {
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
}

.calendar-day {
    position: relative;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e4e9ee;
    border-radius: 6px;
    background: #f8fafc;
    font-size: 12px;
    font-weight: 800;
}

.calendar-day.empty {
    border-color: transparent;
    background: transparent;
}

.calendar-day.today {
    border-color: var(--primary);
}

.calendar-day.has-event {
    background: #e6f1f5;
    color: var(--primary);
}

.calendar-day small {
    position: absolute;
    top: -5px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 9px;
}

.agenda-list {
    display: grid;
    gap: 7px;
    align-content: flex-start;
    max-height: 260px;
    overflow: auto;
}

.agenda-list a {
    display: grid;
    grid-template-columns: 86px minmax(180px, 280px) minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 7px 9px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #f8fafc;
    color: var(--text);
}

.agenda-list a:hover {
    border-color: var(--primary);
}

.agenda-list time {
    color: var(--primary);
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.agenda-list strong {
    font-size: 12px;
}

.agenda-list span {
    display: block;
    color: var(--muted);
    font-size: 11px;
}

.agenda-list p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.inline-form {
    margin-top: 18px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
}

.upload-form {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #dbe7ec;
    border-radius: 7px;
    background: var(--form-bg);
}

.files-table {
    margin-top: 8px;
}

.actions-cell {
    white-space: nowrap;
    vertical-align: middle;
}

.action-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    min-height: 24px;
    margin: 0 3px 0 0;
    padding: 0 8px;
    border: 1px solid #cfe0e7;
    border-radius: 6px;
    background: #f7fbfc;
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    appearance: none;
    font-family: inherit;
    text-decoration: none;
}

.action-chip:hover {
    border-color: var(--primary);
    background: #eef7fa;
    color: var(--primary-dark);
}

.action-chip.edit {
    background: #f4f7f9;
    color: #526170;
}

.action-chip.attention {
    border-color: #efcf8c;
    background: #fff3d6;
    color: #8a4b00;
}

.action-chip.attention:hover {
    background: #ffe8ad;
    color: #633600;
}

.action-chip.danger {
    border-color: #f1c6c6;
    background: #fff1f1;
    color: var(--danger);
}

.action-chip.danger:hover {
    background: #ffe3e3;
    color: var(--danger);
}

.inline-action-form {
    display: inline-flex;
    align-items: stretch;
    margin: 0;
    padding: 0;
    line-height: 1;
    background: transparent;
}

.actions-cell form {
    display: inline-flex;
    vertical-align: middle;
    margin: 0;
}

.danger-link {
    width: auto;
    min-height: auto;
    margin: 0;
    padding: 0;
    background: transparent;
    color: var(--danger);
    font-size: 13px;
}

.danger-link:hover {
    background: transparent;
    color: #6f1212;
}

@media (max-width: 760px) {
    .login-shell,
    .stats-grid,
    .work-grid,
    .dashboard-grid,
    .agenda-panel,
    .notification-alert-list,
    .process-layout,
    .detail-grid,
    .filters-grid,
    .form-grid.two {
        grid-template-columns: 1fr;
    }

    .login-shell {
        gap: 24px;
    }

    .topbar,
    .main-menu,
    .topbar-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .topbar {
        padding: 16px;
    }

    .top-search,
    .top-search input,
    .top-search button {
        width: 100%;
    }

    .notification-alert-list a {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }

    .participant-compact-list div,
    .distribution-toolbar,
    .distribution-summary {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .notification-alert-list p,
    .notification-alert-list small {
        white-space: normal;
    }

    .agenda-list a {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }

    .agenda-list p {
        white-space: normal;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
    }

    .page-title,
    .section-heading,
    .section-card-title,
    .section-card-actions,
    .tabs,
    .list-header,
    .module-actions,
    .inline-select {
        flex-direction: column;
        align-items: stretch;
    }

    .inline-select {
        display: grid;
        grid-template-columns: 1fr;
    }

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

    .login-card button {
        width: 100%;
    }

}
