:root {
    --page-bg: #f3f4f6;
    --surface: #ffffff;
    --surface-soft: #fbfcff;
    --ink: #0d1b2a;
    --muted: #7a8499;
    --line: #e5e9f2;
    --shadow-soft: 0 18px 60px rgba(15, 23, 42, 0.08);
    --blue: #2563eb;
    --green: #22c55e;
    --teal: #14b8a6;
    --navy: #0d1b2a;
    --gold: #14b8a6;
    --violet: #2563eb;
    --pending-bg: #fff5e3;
    --pending-ink: #d68c1a;
    --success-bg: #ecfdf5;
    --success-ink: #15803d;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    min-height: 100%;
    overflow-x: hidden;
    font-family: "Poppins", "Segoe UI Variable", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: var(--page-bg);
    color: var(--ink);
    font-size: 14px;
}

a,
a:hover,
a:focus,
a:visited {
    color: inherit;
    text-decoration: none;
}

h1, h2, h3, p {
    margin: 0;
}

h1:focus,
h1:focus-visible,
.dashboard-title:focus,
.dashboard-title:focus-visible {
    outline: none;
}

button,
input,
select {
    font: inherit;
}

.dashboard-header {
    margin-bottom: 19px;
}

.school-alert {
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-bottom: 16px;
    padding: 12px 14px;
    font-weight: 700;
}

.school-alert-warning {
    background: #fff7e8;
    border-color: #f4d7a5;
    color: #8a5a12;
}

.dashboard-title {
    font-size: 2.9rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 0.95;
}

.dashboard-subtitle {
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.94rem;
}

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

.dashboard-stat-card {
    min-height: 152px;
    padding: 16px 18px 14px;
    border: 1px solid #e4ebf5;
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.theme-blue { background: linear-gradient(180deg, #eff6ff 0%, #f9fbff 100%); }
.theme-green { background: linear-gradient(180deg, #ecfdf5 0%, #fbfefb 100%); }
.theme-gold { background: linear-gradient(180deg, #ecfeff 0%, #f8fffe 100%); }
.theme-violet { background: linear-gradient(180deg, #f3f4f6 0%, #fbfcff 100%); }

.dashboard-stat-icon-wrap {
    margin-bottom: 13px;
}

.dashboard-stat-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    color: currentColor;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.14);
}

.theme-blue .dashboard-stat-icon { color: #2563eb; }
.theme-green .dashboard-stat-icon { color: #22c55e; }
.theme-gold .dashboard-stat-icon { color: #14b8a6; }
.theme-violet .dashboard-stat-icon { color: #0d1b2a; }

.dashboard-svg-icon {
    width: 22px;
    height: 22px;
}

.dashboard-stat-meta {
    color: #4a5570;
    font-size: 0.88rem;
    font-weight: 700;
}

.dashboard-stat-value {
    margin-top: 6px;
    font-size: 2.56rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.dashboard-stat-subvalue {
    margin-top: 3px;
    color: #677387;
    font-size: 0.82rem;
}

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

.dashboard-panel,
.panel-card,
.panel-subcard,
.kpi-card {
    border: 1px solid #e4ebf5;
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.dashboard-panel {
    padding: 16px 18px 14px;
}

.dashboard-panel-head,
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 13px;
}

.dashboard-panel-head h2,
.section-head h2 {
    font-size: 0.95rem;
    font-weight: 800;
}

.dashboard-panel-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    min-height: 32px;
    padding: 0 10px;
    border-radius: 11px;
    border: 1px solid #dde5f0;
    background: #fff;
    color: #2563eb;
    font-size: 0.84rem;
    font-weight: 700;
}

.dashboard-panel-footer-link {
    display: block;
    margin-top: 12px;
    text-align: center;
    color: #2563eb;
    font-size: 0.88rem;
    font-weight: 800;
}

.dashboard-empty-state {
    margin: 0;
    min-height: 160px;
    display: grid;
    place-items: center;
    color: var(--muted);
    font-weight: 700;
    text-align: center;
}

.attendance-widget {
    display: grid;
    grid-template-columns: 228px 1fr;
    gap: 10px;
    align-items: center;
}

.attendance-donut {
    display: grid;
    place-items: center;
    width: 186px;
    height: 186px;
    margin: 2px auto 0;
    border-radius: 50%;
}

.attendance-donut-center {
    display: grid;
    place-items: center;
    width: 104px;
    height: 104px;
    border-radius: 50%;
    background: white;
    box-shadow: inset 0 0 0 1px var(--line);
}

.attendance-donut-center strong {
    font-size: 2.22rem;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.attendance-donut-center span {
    margin-top: -4px;
    color: var(--muted);
    font-size: 0.78rem;
}

.attendance-legend {
    display: grid;
    gap: 11px;
}

.attendance-legend-row {
    display: grid;
    grid-template-columns: 12px 1fr auto;
    gap: 8px;
    align-items: center;
    color: #374151;
    font-size: 0.86rem;
}

.attendance-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.attendance-legend-dot.present { background: #22c55e; }
.attendance-legend-dot.absent { background: #ef635d; }
.attendance-legend-dot.late { background: #14b8a6; }

.dashboard-list,
.dashboard-table-list {
    display: grid;
    gap: 5px;
}

.dashboard-list-item,
.dashboard-table-row {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 12px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #edf1f6;
}

.dashboard-table-row {
    grid-template-columns: 56px 56px 1fr auto;
}

.dashboard-list-item:last-of-type,
.dashboard-table-row:last-of-type {
    border-bottom: none;
}

.dashboard-avatar {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #dbeafe 0%, #c7d2fe 100%);
    color: #1d4ed8;
    font-size: 0.64rem;
    font-weight: 800;
}

.dashboard-avatar.accent {
    background: linear-gradient(135deg, #fce7f3 0%, #f5d0fe 100%);
    color: #9d174d;
}

.dashboard-list-copy {
    min-width: 0;
}

.dashboard-list-title,
.dashboard-table-strong {
    font-size: 0.91rem;
    font-weight: 800;
}

.dashboard-list-subtitle,
.dashboard-table-subtitle {
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.81rem;
}

.dashboard-list-time,
.dashboard-table-time {
    color: #556071;
    font-size: 0.8rem;
    font-weight: 700;
}

.dashboard-list-status,
.pill,
.pill-success,
.pill-warning,
.pill-muted {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 9px;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.dashboard-list-status.pending,
.pill-warning {
    background: var(--pending-bg);
    color: var(--pending-ink);
}

.dashboard-list-status.success,
.pill-success {
    background: var(--success-bg);
    color: var(--success-ink);
}

.pill-muted {
    background: #eef2f7;
    color: #6b7280;
}

.portal-shell .nav-link.active,
.portal-shell .portal-nav-primary.active-ready {
    background: linear-gradient(135deg, #2563eb 0%, #14b8a6 100%);
}

.panel-card {
    padding: 18px;
}

.panel-subcard {
    padding: 16px;
    background: var(--surface-soft);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #edf1f6;
    text-align: left;
}

.data-table th {
    color: #64748b;
    font-size: 0.84rem;
}

.group-grid,
.queue-stack,
.kpi-grid,
.two-column {
    display: grid;
    gap: 14px;
}

.group-grid,
.kpi-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

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

.eyebrow {
    margin-bottom: 4px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.7rem;
    font-weight: 800;
}

.pill-row,
.inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.status-banner {
    margin-bottom: 14px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #eef4ff;
    color: #28417c;
    font-size: 0.92rem;
}

.action-button,
.ghost-button {
    min-height: 38px;
    padding: 0 14px;
    border: none;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
}

.action-button {
    background: #2563eb;
    color: white;
}

.ghost-button {
    background: #eef2f7;
    color: #334155;
}

.code-input {
    min-width: 124px;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: white;
}

.danger-copy {
    color: #cf432c;
    font-weight: 700;
}

.placeholder-shell {
    max-width: 720px;
    padding: 22px;
    border: 1px solid #e4ebf5;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-soft);
}

.placeholder-kicker {
    margin-bottom: 8px;
    color: #2563eb;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 800;
}

#blazor-error-ui {
    display: none;
}

.theme-danger {
    background: linear-gradient(180deg, #fff3f3 0%, #fffafa 100%);
}

.theme-danger .school-metric-icon {
    color: #ef4444;
}

.theme-danger .school-metric-label {
    color: #c83535;
}

.school-screen {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.school-page-header h1 {
    font-size: 2.3rem;
    line-height: 0.98;
    letter-spacing: -0.04em;
    font-weight: 800;
}

.school-page-header p {
    margin-top: 8px;
    color: #72809a;
    font-size: 1.01rem;
}

.school-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    min-width: 0;
}

.school-metric-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    min-width: 0;
    min-height: 126px;
    padding: 20px 18px 16px;
    border: 1px solid #e4ebf5;
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.school-metric-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.15);
}

.school-stat-svg {
    width: 22px;
    height: 22px;
}

.school-metric-copy {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.school-metric-label {
    font-size: 0.95rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.school-metric-value {
    font-size: 2.2rem;
    line-height: 1;
    letter-spacing: -0.05em;
    font-weight: 800;
    color: #142447;
}

.company-evidence-hash-value {
    max-width: 100%;
    font-size: 1.28rem;
    line-height: 1.18;
    letter-spacing: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.school-metric-subvalue {
    color: #67758b;
    font-size: 0.84rem;
    overflow-wrap: anywhere;
}

.theme-blue .school-metric-icon { color: #2563eb; }
.theme-green .school-metric-icon { color: #22c55e; }
.theme-gold .school-metric-icon { color: #14b8a6; }
.theme-violet .school-metric-icon { color: #0d1b2a; }

.theme-blue .school-metric-label { color: #1d4ed8; }
.theme-green .school-metric-label { color: #15803d; }
.theme-gold .school-metric-label { color: #0f766e; }
.theme-violet .school-metric-label { color: #0d1b2a; }

.school-panel {
    min-width: 0;
    padding: 18px 20px;
}

.school-panel-header,
.school-subpanel-header,
.school-ops-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.school-panel-header {
    margin-bottom: 16px;
}

.school-panel-header h2,
.school-section-title,
.school-subpanel h3,
.school-ops-panel h3 {
    margin: 0;
    font-size: 1.06rem;
    font-weight: 800;
}

.school-section-title {
    margin: 4px 0 14px;
}

.school-panel-actions,
.school-toolbar-actions,
.school-inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.school-toolbar-actions {
    justify-content: flex-end;
}

.school-toolbar-actions-row {
    width: 100%;
    margin-bottom: 14px;
}

.school-toolbar-actions-vertical {
    align-items: flex-end;
}

.school-primary-button,
.school-secondary-button,
.school-filter-button,
.school-inline-success,
.school-secondary-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.school-primary-button:hover,
.school-secondary-button:hover,
.school-filter-button:hover,
.school-inline-success:hover,
.school-secondary-link-button:hover {
    transform: translateY(-1px);
}

.school-primary-button {
    background: linear-gradient(135deg, #2563eb 0%, #14b8a6 100%);
    color: #fff;
    box-shadow: 0 10px 18px rgba(37, 99, 235, 0.18);
}

.school-secondary-button,
.school-filter-button,
.school-secondary-link-button {
    border-color: #d9e3f0;
    background: #fff;
    color: #213455;
}

.school-file-button {
    position: relative;
    overflow: hidden;
}

.school-file-button input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.school-file-button input[type="file"]:disabled {
    cursor: not-allowed;
}

.school-inline-success {
    min-height: 34px;
    padding: 0 12px;
    border-color: #9ddab6;
    background: #ecf9f0;
    color: #1f9a52;
}

.school-primary-button svg,
.school-secondary-button svg,
.school-filter-button svg,
.school-icon-button svg,
.school-phone-cell svg {
    width: 16px;
    height: 16px;
    flex: none;
}

.school-filters-row,
.school-toolbar-grid {
    display: grid;
    gap: 12px;
    margin-bottom: 16px;
}

.school-import-errors {
    margin: 8px 0 0;
    padding-left: 18px;
}

.school-import-errors li + li {
    margin-top: 4px;
}

.school-filters-row-students {
    grid-template-columns: minmax(300px, 1.8fr) repeat(3, minmax(140px, 0.75fr)) auto;
}

.school-filters-row-groups,
.school-filters-row-teachers {
    grid-template-columns: minmax(300px, 1.8fr) repeat(3, minmax(140px, 0.75fr)) auto;
}

.school-toolbar-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
    align-items: end;
}

.school-toolbar-grid-wide {
    grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
}

.school-toolbar-grid-employees {
    grid-template-columns: minmax(280px, 1.7fr) repeat(3, minmax(150px, 1fr));
    min-width: 0;
}

.school-toolbar-grid-catalogs {
    grid-template-columns: minmax(280px, 1.2fr) minmax(180px, 0.8fr);
    max-width: 760px;
    min-width: 0;
}

.school-toolbar-grid-attendance {
    grid-template-columns: minmax(180px, 0.8fr) repeat(3, minmax(180px, 1fr));
    min-width: 0;
}

.school-toolbar-grid-incidents {
    grid-template-columns: repeat(2, minmax(150px, 0.7fr)) minmax(180px, 1fr) repeat(2, minmax(180px, 0.9fr));
    min-width: 0;
}

.school-toolbar-grid-reports {
    grid-template-columns: repeat(2, minmax(150px, 0.75fr)) repeat(2, minmax(220px, 1fr));
    min-width: 0;
}

.school-labeled-field {
    display: grid;
    gap: 8px;
    color: #5f6e87;
    font-size: 0.82rem;
    font-weight: 700;
}

.school-search-field,
.school-date-field input,
.school-select-field,
.school-code-input {
    width: 100%;
    min-height: 44px;
    border: 1px solid #dce5f3;
    border-radius: 12px;
    background: #fff;
    color: #213455;
    box-sizing: border-box;
}

.school-search-field {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
}

.school-search-field svg {
    color: #72809a;
    width: 18px;
    height: 18px;
    flex: none;
}

.school-search-field input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: #213455;
}

.school-date-field input,
.school-select-field,
.school-code-input {
    padding: 0 14px;
}

.school-select-field {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #72809a 50%),
        linear-gradient(135deg, #72809a 50%, transparent 50%);
    background-position:
        calc(100% - 18px) calc(50% - 2px),
        calc(100% - 12px) calc(50% - 2px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.school-tab-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    padding: 0 4px 14px;
    margin-bottom: 18px;
    border-bottom: 1px solid #edf2f8;
}

.school-tab {
    padding: 0 0 10px;
    border: none;
    border-bottom: 2px solid transparent;
    background: none;
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
}

.school-tab.active {
    color: #2563eb;
    border-color: #14b8a6;
}

.school-tab-strip-tight .school-tab {
    font-size: 0.9rem;
}

.school-table-shell {
    overflow: auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border: 1px solid #ecf1f8;
    border-radius: 16px;
    background: #fff;
}

.school-data-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
}

.employees-table {
    min-width: 0;
    table-layout: fixed;
}

.employees-table th,
.employees-table td {
    padding-left: 10px;
    padding-right: 10px;
    overflow-wrap: anywhere;
}

.employees-table .school-checkbox-cell {
    width: 38px;
}

.employees-table th:nth-child(2) { width: 23%; }
.employees-table th:nth-child(3) { width: 7%; }
.employees-table th:nth-child(4) { width: 11%; }
.employees-table th:nth-child(5) { width: 11%; }
.employees-table th:nth-child(6) { width: 10%; }
.employees-table th:nth-child(7) { width: 8%; }
.employees-table th:nth-child(8) { width: 9%; }
.employees-table th:nth-child(9) { width: 9%; }
.employees-table th:nth-child(10) { width: 7%; }

.attendance-table {
    min-width: 1320px;
    table-layout: fixed;
}

.attendance-table-shell {
    overflow-x: auto;
    overflow-y: visible;
}

.attendance-table th,
.attendance-table td {
    padding-left: 10px;
    padding-right: 10px;
    overflow-wrap: anywhere;
}

.attendance-table th:nth-child(1) { width: 19%; }
.attendance-table th:nth-child(2) { width: 11%; }
.attendance-table th:nth-child(3) { width: 11%; }
.attendance-table th:nth-child(4) { width: 7%; }
.attendance-table th:nth-child(5) { width: 7%; }
.attendance-table th:nth-child(6) { width: 7%; }
.attendance-table th:nth-child(7) { width: 7%; }
.attendance-table th:nth-child(8) { width: 8%; }
.attendance-table th:nth-child(9) { width: 8%; }
.attendance-table th:nth-child(10) { width: 10%; }
.attendance-table th:nth-child(11) { width: 5%; }

.incidents-table {
    min-width: 0;
    table-layout: fixed;
}

.incidents-table-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 6px 0 12px;
    padding: 0 4px;
    color: #72809a;
    font-size: 0.9rem;
}

.incidents-table-shell {
    overflow: visible;
}

.incidents-table th,
.incidents-table td {
    padding-left: 8px;
    padding-right: 8px;
    overflow-wrap: anywhere;
}

.incidents-table th,
.incidents-table td:nth-child(4),
.incidents-table td:nth-child(6),
.incidents-table td:nth-child(7) {
    overflow-wrap: normal;
    word-break: normal;
}

.incidents-table th:nth-child(1) { width: 17%; }
.incidents-table th:nth-child(2) { width: 10%; }
.incidents-table th:nth-child(3) { width: 14%; }
.incidents-table th:nth-child(4) { width: 10%; }
.incidents-table th:nth-child(5) { width: 17%; }
.incidents-table th:nth-child(6) { width: 9%; }
.incidents-table th:nth-child(7) { width: 9%; }
.incidents-table th:nth-child(8),
.incidents-table td:nth-child(8) { width: 132px; }

.incident-row-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    width: 100%;
}

.incident-row-actions .school-icon-button {
    width: 32px;
    height: 32px;
    margin-left: 0;
}

.incidents-table .school-person-cell {
    gap: 8px;
}

.incidents-table .school-avatar {
    width: 34px;
    height: 34px;
    font-size: 0.74rem;
}

.incidents-table .company-role-pill {
    max-width: 100%;
    min-height: 28px;
    height: auto;
    padding: 6px 10px;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
}

.incident-quick-approve {
    border-color: #bce8ca;
    background: #ecf9f0;
    color: #21824a;
}

.incident-quick-reject {
    border-color: #ffd6d6;
    background: #fff7f7;
    color: #c83535;
}

.company-catalog-table {
    min-width: 0;
    table-layout: fixed;
}

.company-catalog-table th {
    white-space: normal;
    line-height: 1.25;
}

.company-catalog-table .school-actions-cell {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.company-department-table {
    min-width: 560px;
}

.company-department-table th:first-child,
.company-department-table td:first-child {
    width: 46%;
}

.company-department-table th:nth-child(2),
.company-department-table td:nth-child(2) {
    width: 86px;
}

.company-department-table th:nth-child(3),
.company-department-table td:nth-child(3) {
    width: 122px;
}

.company-department-table th:last-child,
.company-department-table td:last-child {
    width: 142px;
}

.company-position-table {
    min-width: 920px;
}

.company-position-table th:first-child,
.company-position-table td:first-child {
    width: 34%;
}

.company-position-table th:nth-child(2),
.company-position-table td:nth-child(2) {
    width: 16%;
}

.company-position-table th:nth-child(3),
.company-position-table td:nth-child(3) {
    width: 18%;
}

.company-position-table th:nth-child(4),
.company-position-table td:nth-child(4) {
    width: 132px;
}

.company-position-table th:nth-child(5),
.company-position-table td:nth-child(5) {
    width: 122px;
}

.company-position-table th:last-child,
.company-position-table td:last-child {
    width: 148px;
}

.company-catalog-table-shell {
    overflow-x: auto;
}

.company-org-panel {
    align-self: start;
}

.company-department-table-shell,
.company-org-table-shell {
    max-height: 420px;
    overflow: auto;
    scrollbar-gutter: stable;
}

.company-org-table {
    min-width: 0;
}

.school-data-table.company-org-table th,
.school-data-table.company-org-table td {
    padding: 10px 12px;
}

.company-org-table th:first-child,
.company-org-table td:first-child {
    width: 36%;
}

.company-org-table th:nth-child(2),
.company-org-table td:nth-child(2) {
    width: 64%;
}

.company-org-department {
    display: block;
    color: #64748b;
    font-size: 0.82rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.company-org-position {
    display: flex;
    align-items: center;
    min-height: 22px;
    color: #172033;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.company-org-position-level-1 {
    padding-left: 16px;
}

.company-org-position-level-2 {
    padding-left: 32px;
}

.company-org-position-level-1::before,
.company-org-position-level-2::before {
    content: "";
    width: 6px;
    height: 6px;
    margin-right: 8px;
    border-radius: 999px;
    background: #d7e0ec;
    flex: 0 0 auto;
}

.company-org-empty-row td {
    background: #fbfdff;
}

.company-org-empty-position {
    color: #72809a;
    font-size: 0.86rem;
    font-weight: 700;
}

.school-data-table th {
    padding: 14px 16px;
    color: #64748b;
    font-size: 0.84rem;
    font-weight: 700;
    text-align: left;
}

.school-data-table td {
    padding: 15px 16px;
    border-top: 1px solid #eef2f8;
    vertical-align: middle;
}

.school-row-selected td {
    background: #f8fbff;
}

.school-checkbox-cell {
    width: 42px;
    text-align: center;
}

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

.school-avatar {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 800;
    flex: none;
}

.school-avatar-neutral {
    background: linear-gradient(135deg, #dce8ff 0%, #ebe6ff 100%);
    color: #3750c5;
}

.school-person-title {
    font-size: 0.94rem;
    font-weight: 800;
    color: #1b2a44;
}

.school-person-subtitle,
.school-stack-copy span,
.school-inline-link,
.school-mono-copy,
.school-email-copy {
    color: #72809a;
    font-size: 0.82rem;
}

.school-stack-copy {
    display: grid;
    gap: 4px;
}

.school-stack-copy strong,
.school-number-cell strong {
    color: #1b2a44;
}

.school-phone-cell {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #52627d;
    font-weight: 600;
}

.school-phone-cell svg {
    color: #22c55e;
}

.school-group-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 28px;
    padding: 0 10px;
    border-radius: 10px;
    font-size: 0.84rem;
    font-weight: 800;
}

.school-group-badge-circle {
    min-width: 40px;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    padding: 0;
}

.school-badge-blue { background: #e9f1ff; color: #2f6ae4; }
.school-badge-green { background: #e9f8ef; color: #1f8d49; }
.school-badge-mint { background: #edf9f5; color: #2c9b7d; }
.school-badge-slate { background: #edf2f8; color: #53647c; }
.school-badge-violet { background: #eef6ff; color: #2563eb; }
.school-badge-coral { background: #fff0eb; color: #dc5c2d; }

.school-status-pill,
.school-type-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 11px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.school-status-active,
.school-status-success-soft {
    background: #eaf9ef;
    color: #2f9d58;
}

.school-status-inactive,
.school-status-danger-soft {
    background: #fff0f0;
    color: #ea4d4d;
}

.school-status-blue-soft {
    background: #eaf1ff;
    color: #2f6ae4;
}

.school-status-violet-soft {
    background: #eef6ff;
    color: #2563eb;
}

.school-status-warning-soft {
    background: #fff5e5;
    color: #df8f18;
}

.school-status-muted-soft {
    background: #eef2f7;
    color: #64748b;
}

.school-type-normal {
    background: #eaf9ef;
    color: #249450;
}

.school-type-exceptional {
    background: #eef6ff;
    color: #2563eb;
}

.school-actions-cell {
    white-space: nowrap;
    text-align: right;
}

.school-icon-button {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin-left: 6px;
    border: 1px solid #dfe7f2;
    border-radius: 10px;
    background: #fff;
    color: #334155;
    cursor: pointer;
}

.school-table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 6px 0;
    color: #72809a;
    font-size: 0.9rem;
}

.school-pagination {
    display: flex;
    align-items: center;
    gap: 8px;
}

.school-page-button {
    width: 36px;
    height: 36px;
    border: 1px solid #d9e3f0;
    border-radius: 10px;
    background: #fff;
    color: #4d5d76;
    font-size: 0.92rem;
    font-weight: 700;
}

.school-page-button.active {
    border-color: #2563eb;
    background: #2563eb;
    color: #fff;
    box-shadow: 0 10px 18px rgba(41, 102, 246, 0.18);
}

.school-shift-cell,
.school-number-cell,
.school-progress-cell {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.school-shift-icon {
    color: #f5ad15;
}

.school-number-positive { color: #2f9d58; font-weight: 700; }
.school-number-negative { color: #ef4444; font-weight: 700; }
.school-number-warning { color: #f59e0b; font-weight: 700; }

.school-progress-cell {
    min-width: 150px;
}

.school-progress-track {
    width: 84px;
    height: 8px;
    border-radius: 999px;
    background: #eaf1f8;
    overflow: hidden;
}

.school-progress-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #38b86a 0%, #7bd28d 100%);
}

.school-two-column-grid,
.school-three-column-grid,
.school-reports-grid {
    display: grid;
    gap: 16px;
    margin-top: 16px;
}

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

.school-two-column-grid-tight {
    gap: 14px;
}

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

.school-reports-grid {
    grid-template-columns: 1.55fr 1.1fr;
}

.school-subpanel,
.school-ops-panel,
.school-info-box {
    border: 1px solid #e4ebf5;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.school-subpanel,
.school-ops-panel {
    padding: 18px 20px;
}

.school-subpanel-large {
    min-height: 296px;
}

.school-subpanel-header {
    margin-bottom: 14px;
}

.school-subpanel-header p,
.school-ops-header p,
.school-info-copy p {
    margin: 6px 0 0;
    color: #72809a;
    font-size: 0.84rem;
}

.school-mini-link,
.school-secondary-link,
.school-inline-link,
.school-centered-link,
.school-align-end {
    color: #2563eb;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
}

.school-mini-link {
    border: 1px solid #dde5f0;
    border-radius: 12px;
    background: #fff;
    padding: 8px 12px;
}

.school-centered-link {
    display: block;
    margin: 14px auto 0;
    text-align: center;
}

.school-align-end {
    display: block;
    margin-left: auto;
    margin-top: 10px;
}

.school-history-list,
.school-bars-list,
.school-ranking-list {
    display: grid;
    gap: 10px;
}

.school-history-row,
.school-ranking-row {
    display: grid;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid #eef2f8;
}

.school-history-row {
    grid-template-columns: 1.4fr auto repeat(3, auto) auto;
}

.school-ranking-row {
    grid-template-columns: 22px 1fr auto;
}

.school-bar-row {
    display: grid;
    grid-template-columns: 1.3fr minmax(120px, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.school-bar-track {
    height: 10px;
    border-radius: 999px;
    background: #eef3f9;
    overflow: hidden;
}

.school-bar-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
}

.school-line-chart {
    position: relative;
    height: 240px;
    border-radius: 16px;
    background:
        linear-gradient(to bottom, rgba(255, 255, 255, 0.4), rgba(79, 136, 255, 0.04)),
        repeating-linear-gradient(to top, #eef3f8 0 1px, transparent 1px 48px);
    overflow: hidden;
}

.school-line-point {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #2563eb;
    transform: translate(-50%, 50%);
    box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.13);
}

.school-line-point span {
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    color: #3e4d67;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.school-line-axis {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    padding: 0 8px 8px;
    color: #72809a;
    font-size: 0.8rem;
}

.school-banner,
.school-info-bar {
    margin-bottom: 16px;
    padding: 13px 16px;
    border-radius: 14px;
}

.school-banner {
    background: #eef4ff;
    color: #28417c;
    font-weight: 600;
}

.school-banner-warning {
    background: #fff8e7;
    color: #8a5a00;
}

.school-info-bar,
.school-info-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    border: 1px solid #deebf8;
    background: #f7fbff;
}

.school-info-box {
    margin-top: 16px;
    padding: 16px 18px;
}

.school-info-copy {
    display: grid;
    gap: 4px;
    color: #52627d;
    font-size: 0.9rem;
}

.school-ops-panel {
    margin-top: 16px;
    background: #fcfdff;
}

.school-code-input {
    min-width: 160px;
}

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

.company-role-pill,
.company-inline-pill,
.settings-value-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 8px;
    font-size: 0.76rem;
    font-weight: 700;
    white-space: nowrap;
}

.company-role-violet { background:#eef6ff; color:#2563eb; }
.company-role-blue { background:#e7f0ff; color:#3472f3; }
.company-role-blue-soft { background:#eef5ff; color:#5992ff; }
.company-role-green { background:#eaf9ef; color:#2b9958; }
.company-role-gold { background:#ecfeff; color:#0f766e; }
.company-role-orange { background:#fff1e7; color:#f07b2b; }
.company-role-red { background:#ffe9e9; color:#ec4e4e; }
.company-role-violet-soft { background:#f3f4f6; color:#0d1b2a; }
.company-role-slate { background:#edf1f7; color:#6d7a90; }

.company-badge-violet { background:linear-gradient(135deg,#eaf2ff 0%,#f7fbff 100%); color:#2563eb; }
.company-badge-blue { background:linear-gradient(135deg,#e6efff 0%,#f1f6ff 100%); color:#3472f3; }
.company-badge-gold { background:linear-gradient(135deg,#dcfbf7 0%,#f1fffd 100%); color:#0f766e; }
.company-badge-green { background:linear-gradient(135deg,#e6f8ee 0%,#f2fcf6 100%); color:#2b9958; }
.company-badge-red { background:linear-gradient(135deg,#ffe5e5 0%,#fff4f4 100%); color:#ec4e4e; }
.company-badge-violet-soft { background:linear-gradient(135deg,#f3f4f6 0%,#fbfcff 100%); color:#0d1b2a; }
.company-badge-slate { background:linear-gradient(135deg,#eef2f7 0%,#f7f9fc 100%); color:#72809a; }

.company-inline-pill-green { background:#eaf9ef; color:#2b9958; }

.company-avatar-chip {
    display:grid;
    place-items:center;
    width:38px;
    height:38px;
    border-radius:50%;
    font-size:0.78rem;
    font-weight:800;
    flex:none;
}

.company-preline-copy {
    white-space: pre-line;
    color: #52627d;
}

.company-bars-visual {
    display:grid;
    grid-template-columns: repeat(7, minmax(0,1fr));
    gap: 16px;
    align-items:end;
    min-height: 190px;
    padding: 14px 8px 0;
}

.company-bars-visual-large {
    min-height: 210px;
}

.company-daily-chart {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(74px, 1fr));
    gap: 12px;
    align-items: end;
    min-height: 242px;
    padding: 12px 4px 0;
}

.company-daily-column {
    display: grid;
    justify-items: center;
    align-content: end;
    gap: 8px;
    min-width: 0;
    color: #5d6b83;
    text-align: center;
}

.company-daily-column strong {
    color: #14213d;
    font-size: 0.86rem;
}

.company-daily-column > span {
    color: #14213d;
    font-size: 0.82rem;
    font-weight: 800;
}

.company-daily-column small {
    color: #72809a;
    font-size: 0.78rem;
    white-space: nowrap;
}

.company-daily-stack {
    display: flex;
    flex-direction: column-reverse;
    justify-content: flex-start;
    width: 42px;
    height: 140px;
    border-radius: 12px;
    background: #eef3f9;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(211, 222, 238, 0.8);
}

.company-daily-stack span {
    display: block;
    width: 100%;
}

.company-daily-stack .is-present { background: #58c576; }
.company-daily-stack .is-late { background: #ffb224; }
.company-daily-stack .is-absent { background: #ef4444; }
.company-daily-stack .is-missing { background: #c7d2e4; }

.company-bar-item {
    display:grid;
    justify-items:center;
    gap:10px;
    color:#4e5d76;
    font-size:0.8rem;
    text-align:center;
}

.company-bar-item span {
    font-weight:700;
    color:#1b2a44;
}

.company-bar-item strong {
    font-size:0.8rem;
}

.company-bar-item small {
    color:#72809a;
    font-size:0.76rem;
}

.company-bar {
    width: 60px;
    border-radius: 12px 12px 4px 4px;
    box-shadow: inset 0 -4px 10px rgba(255,255,255,0.18);
}

/* Entria public landing based on the provided product mockup. */
.entria-page {
    --entria-navy: #071632;
    --entria-text: #0b1733;
    --entria-muted: #53627d;
    --entria-blue: #2259f2;
    --entria-cyan: #16b8c8;
    --entria-green: #11bd7e;
    --entria-purple: #7c4dff;
    --entria-line: #dfe7f2;
    --entria-soft: #f7faff;
    min-height: 100vh;
    overflow-x: clip;
    background: #ffffff;
    color: var(--entria-text);
}

.entria-header {
    display: grid;
    grid-template-columns: minmax(150px, 220px) minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
    width: min(100%, 1440px);
    min-height: 96px;
    margin: 0 auto;
    padding: 18px 64px;
}

.entria-logo {
    display: inline-flex;
    width: 170px;
}

.entria-logo img {
    display: block;
    width: 100%;
    height: auto;
}

.entria-nav,
.entria-header-actions,
.entria-hero-actions,
.entria-benefits,
.entria-cta-band > div:last-child,
.entria-payments {
    display: flex;
    align-items: center;
}

.entria-nav {
    justify-content: center;
    gap: 48px;
    min-width: 0;
    color: #071632;
    font-size: 0.92rem;
    font-weight: 800;
}

.entria-nav a {
    position: relative;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
}

.entria-nav a.active {
    color: var(--entria-blue);
}

.entria-nav a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--entria-green);
}

.entria-header-actions {
    justify-content: flex-end;
    gap: 12px;
}

.entria-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    min-width: 136px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--entria-text);
    font-size: 0.95rem;
    font-weight: 900;
    line-height: 1.2;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.entria-button:hover,
.entria-plan-button:hover {
    transform: translateY(-1px);
}

.entria-button-primary {
    background: linear-gradient(135deg, #2457ff 0%, #1f65f4 58%, #10b9bf 100%);
    color: #ffffff;
    box-shadow: 0 16px 30px rgba(34, 89, 242, 0.24);
}

.entria-button-light {
    border-color: #d8e1ee;
    background: #ffffff;
    color: #101b33;
}

.entria-button-demo,
.entria-button-outline-blue {
    border-color: #d8e1ee;
    background: #ffffff;
    color: #111c35;
}

.entria-button-outline-blue {
    border-color: #2259f2;
    color: #2259f2;
}

.entria-button-large {
    min-width: 170px;
    min-height: 52px;
}

.entria-button-demo span {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border: 2px solid #2457ff;
    border-radius: 999px;
    color: transparent;
    font-size: 0;
}

.entria-button-demo span::before {
    content: "";
    width: 0;
    height: 0;
    margin-left: 2px;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 7px solid #2457ff;
}

.entria-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(360px, 0.78fr) minmax(600px, 1.22fr);
    gap: 42px;
    align-items: center;
    width: min(100%, 1440px);
    min-height: 648px;
    margin: 0 auto;
    padding: 36px 64px 64px;
}

.entria-hero::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 620px;
    height: 120px;
    border-radius: 320px 0 0 0;
    background: radial-gradient(circle at 86% 100%, rgba(17, 189, 126, 0.24), transparent 42%), linear-gradient(135deg, rgba(34, 89, 242, 0.12), rgba(17, 189, 126, 0.16));
    z-index: 0;
}

.entria-hero-copy,
.entria-hero-stage {
    position: relative;
    z-index: 1;
}

.entria-hero-copy {
    max-width: 470px;
}

.entria-hero-copy h1 {
    margin: 0;
    color: var(--entria-text);
    font-size: 3.15rem;
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: 0;
}

.entria-green {
    color: var(--entria-green);
}

.entria-blue {
    color: var(--entria-blue);
}

.entria-hero-copy p {
    max-width: 440px;
    margin-top: 28px;
    color: var(--entria-muted);
    font-size: 1.04rem;
    line-height: 1.7;
}

.entria-benefits {
    flex-wrap: wrap;
    gap: 16px 28px;
    margin-top: 30px;
}

.entria-benefits span {
    position: relative;
    flex: 0 0 calc(50% - 14px);
    min-height: 22px;
    padding-left: 28px;
    color: #1d2a44;
    font-size: 0.95rem;
    font-weight: 750;
}

.entria-benefits span::before,
.entria-plan-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 16px;
    height: 16px;
    border: 2px solid var(--entria-green);
    border-radius: 999px;
}

.entria-benefits span::after,
.entria-plan-card li::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 8px;
    width: 6px;
    height: 3px;
    border-left: 2px solid var(--entria-green);
    border-bottom: 2px solid var(--entria-green);
    transform: rotate(-45deg);
}

.entria-hero-actions {
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 36px;
}

.entria-safe-note {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 36px;
    color: #4b5b76;
    font-size: 0.92rem;
    font-weight: 750;
}

.entria-safe-note span {
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border: 1.8px solid var(--entria-blue);
    border-radius: 50% 50% 45% 45%;
    color: transparent;
    font-size: 0;
}

.entria-hero-stage {
    min-height: 560px;
}

.entria-laptop {
    position: absolute;
    right: 0;
    top: 28px;
    width: min(760px, 100%);
}

.entria-laptop-screen {
    display: grid;
    grid-template-columns: 148px minmax(0, 1fr);
    overflow: hidden;
    min-height: 488px;
    padding: 18px;
    border: 12px solid #0d111a;
    border-bottom-width: 18px;
    border-radius: 24px 24px 16px 16px;
    background: #ffffff;
    box-shadow: 0 26px 70px rgba(12, 26, 57, 0.22);
}

.entria-laptop-base {
    width: 78%;
    height: 18px;
    margin: 0 auto;
    border-radius: 0 0 22px 22px;
    background: linear-gradient(180deg, #2f3644, #111827);
    box-shadow: 0 18px 28px rgba(12, 26, 57, 0.18);
}

.entria-app-sidebar {
    display: grid;
    align-content: start;
    gap: 8px;
    padding: 12px 10px;
    border-right: 1px solid #e7edf7;
    background: #fbfdff;
}

.entria-app-brand {
    height: 42px;
    margin-bottom: 8px;
}

.entria-app-brand img {
    max-width: 108px;
    height: 32px;
    object-fit: contain;
}

.entria-app-sidebar span {
    min-height: 31px;
    padding: 8px 10px;
    border-radius: 8px;
    color: #53627d;
    font-size: 0.76rem;
    font-weight: 800;
}

.entria-app-sidebar span.active {
    background: #eef4ff;
    color: var(--entria-blue);
}

.entria-dashboard-preview {
    min-width: 0;
    padding: 10px 14px 14px 20px;
}

.entria-dashboard-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
}

.entria-dashboard-top h2 {
    margin: 0;
    color: var(--entria-text);
    font-size: 1.08rem;
    font-weight: 950;
}

.entria-admin-chip {
    display: flex;
    align-items: center;
    gap: 8px;
}

.entria-admin-chip > span {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f7c59f, #e67e91);
}

.entria-admin-chip strong,
.entria-admin-chip small {
    display: block;
    line-height: 1.05;
}

.entria-admin-chip strong {
    font-size: 0.72rem;
}

.entria-admin-chip small {
    margin-top: 3px;
    color: #7a8699;
    font-size: 0.58rem;
}

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

.entria-mini-kpis article,
.entria-chart-card,
.entria-activity-card,
.entria-feature-card,
.entria-plan-card {
    border: 1px solid var(--entria-line);
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 18px 44px rgba(40, 67, 121, 0.05);
}

.entria-mini-kpis article {
    min-height: 92px;
    padding: 16px;
}

.entria-mini-kpis span,
.entria-mini-kpis small {
    display: block;
    color: #697792;
    font-size: 0.68rem;
    font-weight: 800;
}

.entria-mini-kpis strong {
    display: block;
    margin-top: 8px;
    color: var(--entria-blue);
    font-size: 1.5rem;
    font-weight: 950;
}

.entria-mini-kpis small {
    margin-top: 5px;
    color: var(--entria-green);
}

.entria-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(180px, 0.8fr);
    gap: 12px;
    margin-top: 14px;
}

.entria-chart-card,
.entria-activity-card {
    min-height: 232px;
    padding: 16px;
}

.entria-chart-card h3,
.entria-activity-card h3 {
    margin: 0 0 18px;
    color: #1d2a44;
    font-size: 0.78rem;
    font-weight: 950;
}

.entria-chart-lines {
    position: relative;
    height: 150px;
    border-bottom: 1px solid #e7edf7;
    background: linear-gradient(#edf2fa 1px, transparent 1px) 0 20% / 100% 34px;
}

.entria-chart-lines::before {
    content: "";
    position: absolute;
    inset: 28px 10px 28px;
    background: linear-gradient(140deg, transparent 7%, #2a8dff 7% 9%, transparent 9% 25%, #2a8dff 25% 27%, transparent 27% 42%, #2a8dff 42% 44%, transparent 44% 58%, #2a8dff 58% 60%, transparent 60% 76%, #2a8dff 76% 78%, transparent 78%);
}

.entria-chart-lines span {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #2a8dff;
}

.entria-chart-lines span:nth-child(1) { left: 8%; top: 68%; }
.entria-chart-lines span:nth-child(2) { left: 25%; top: 52%; }
.entria-chart-lines span:nth-child(3) { left: 42%; top: 64%; }
.entria-chart-lines span:nth-child(4) { left: 58%; top: 34%; }
.entria-chart-lines span:nth-child(5) { left: 74%; top: 44%; }
.entria-chart-lines span:nth-child(6) { left: 90%; top: 26%; }

.entria-chart-axis {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    color: #8390a5;
    font-size: 0.62rem;
}

.entria-activity-card {
    display: grid;
    align-content: start;
    gap: 11px;
}

.entria-activity-card div {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: start;
}

.entria-activity-card span {
    display: block;
    width: 18px;
    height: 18px;
    border-radius: 999px;
}

.entria-activity-card span.green {
    background: #dff9ed;
    border: 5px solid var(--entria-green);
}

.entria-activity-card span.blue {
    background: #e8f0ff;
    border: 5px solid var(--entria-blue);
}

.entria-activity-card p,
.entria-activity-card strong {
    margin: 0;
    color: #33425d;
    font-size: 0.66rem;
    line-height: 1.35;
}

.entria-activity-card small {
    color: #6d7b92;
}

.entria-phone {
    position: absolute;
    left: 20px;
    bottom: 60px;
    width: 176px;
    min-height: 438px;
    padding: 12px;
    border: 7px solid #0c111c;
    border-radius: 30px;
    background: #ffffff;
    box-shadow: 0 18px 44px rgba(12, 26, 57, 0.28);
}

.entria-phone-top {
    width: 54px;
    height: 5px;
    margin: 0 auto 8px;
    border-radius: 999px;
    background: #0c111c;
}

.entria-phone-header {
    display: grid;
    gap: 2px;
    margin: 0 -6px 8px;
    padding: 10px 12px;
    border-radius: 20px 20px 10px 10px;
    background: #007f68;
    color: #ffffff;
}

.entria-phone-header strong {
    font-size: 0.84rem;
}

.entria-phone-header span {
    font-size: 0.62rem;
}

.entria-phone-chat {
    display: grid;
    gap: 6px;
}

.entria-phone-chat p,
.entria-phone-chat button,
.entria-chat-reply {
    margin: 0;
    border: 1px solid #e5edf7;
    border-radius: 8px;
    background: #ffffff;
    color: #22304a;
    font-size: 0.58rem;
    line-height: 1.35;
}

.entria-phone-chat p {
    padding: 8px;
}

.entria-phone-chat button {
    min-height: 24px;
    padding: 0 8px;
    color: #2259f2;
    font-weight: 800;
    text-align: left;
}

.entria-chat-reply {
    margin-top: 6px;
    padding: 8px;
    background: #eafaf1;
    border-color: #bfead4;
}

.entria-chat-reply strong {
    display: block;
    color: #137a4f;
    font-size: 0.62rem;
}

.entria-whatsapp-float {
    position: absolute;
    right: 54px;
    bottom: 40px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-width: 188px;
    padding: 14px 18px;
    border: 1px solid #dfe7f2;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 20px 42px rgba(12, 26, 57, 0.14);
}

.entria-whatsapp-float > span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: #e9fff5;
    color: #10b978;
    font-size: 0;
}

.entria-whatsapp-float > span svg {
    width: 25px;
    height: 25px;
}

.entria-whatsapp-float small,
.entria-whatsapp-float strong {
    display: block;
}

.entria-whatsapp-float small {
    color: #65728a;
    font-size: 0.84rem;
}

.entria-whatsapp-float strong {
    color: #10213d;
    font-size: 1rem;
}

.entria-section {
    padding: 56px 64px;
}

.entria-features {
    padding-top: 20px;
    padding-bottom: 28px;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.entria-section-heading,
.entria-pricing-head {
    width: min(100%, 1160px);
    margin: 0 auto 24px;
}

.entria-section-heading {
    display: grid;
    justify-items: center;
    text-align: center;
}

.entria-section-heading > span,
.entria-pricing-head > div:first-child > span {
    color: var(--entria-blue);
    font-size: 0.78rem;
    font-weight: 950;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.entria-section-heading h2,
.entria-pricing-head h2 {
    max-width: 520px;
    margin: 8px 0 0;
    color: var(--entria-text);
    font-size: 1.45rem;
    line-height: 1.12;
    font-weight: 950;
    letter-spacing: 0;
}

.entria-section-heading h2 strong {
    color: var(--entria-blue);
}

.entria-feature-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
    width: min(100%, 1300px);
    margin: 0 auto;
}

.entria-feature-card {
    min-height: 140px;
    padding: 16px 10px;
    text-align: center;
}

.entria-feature-icon,
.entria-plan-title > div:first-child {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin: 0 auto 12px;
    border-radius: 13px;
}

.entria-feature-icon svg,
.entria-plan-title svg {
    width: 20px;
    height: 20px;
}

.entria-feature-card.green .entria-feature-icon,
.entria-plan-title .green {
    background: #def9ef;
    color: var(--entria-green);
}

.entria-feature-card.blue .entria-feature-icon,
.entria-plan-title .blue {
    background: #e8f0ff;
    color: var(--entria-blue);
}

.entria-feature-card.purple .entria-feature-icon,
.entria-plan-title .purple {
    background: #efe8ff;
    color: var(--entria-purple);
}

.entria-feature-card h3 {
    margin: 0;
    color: var(--entria-text);
    font-size: 0.66rem;
    font-weight: 950;
}

.entria-feature-card p {
    margin: 8px 0 0;
    color: #5f6d84;
    font-size: 0.53rem;
    line-height: 1.45;
}

.entria-pricing {
    padding-top: 20px;
    padding-bottom: 36px;
    background: #ffffff;
}

.entria-pricing-head {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: end;
}

.entria-billing-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    border: 1px solid #dfe7f2;
    border-radius: 10px;
    background: #f2f5fa;
}

.entria-billing-toggle button,
.entria-billing-toggle strong {
    min-height: 30px;
    padding: 0 18px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #4b5a73;
    font-weight: 850;
}

.entria-billing-toggle button.active {
    background: #ffffff;
    color: var(--entria-text);
    box-shadow: 0 6px 16px rgba(15, 35, 66, 0.06);
}

.entria-billing-toggle strong {
    display: inline-flex;
    align-items: center;
    background: #dcf8ed;
    color: var(--entria-green);
    font-size: 0.76rem;
}

.entria-plan-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    width: min(100%, 780px);
    margin: 0 auto;
}

.entria-plan-card {
    position: relative;
    display: grid;
    align-content: start;
    min-height: 286px;
    padding: 18px 16px 16px;
}

.entria-plan-card.featured {
    border-color: rgba(34, 89, 242, 0.48);
    box-shadow: 0 22px 50px rgba(34, 89, 242, 0.13);
}

.entria-plan-title {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-height: 42px;
}

.entria-plan-title > div:first-child {
    width: 34px;
    height: 34px;
    margin: 0;
    border-radius: 12px;
}

.entria-plan-title svg {
    width: 18px;
    height: 18px;
}

.entria-plan-title h3 {
    margin: 0;
    color: var(--entria-text);
    font-size: 0.84rem;
    font-weight: 950;
}

.entria-plan-title p {
    margin: 4px 0 0;
    color: #64718a;
    font-size: 0.58rem;
    line-height: 1.2;
}

.entria-plan-title > span {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #235dff;
    color: #ffffff;
    font-size: 0.56rem;
    font-weight: 950;
}

.entria-plan-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    min-height: 38px;
    margin-top: 16px;
}

.entria-plan-price strong {
    color: var(--entria-text);
    font-size: 1.55rem;
    font-weight: 950;
}

.entria-plan-price span {
    color: #101b33;
    font-size: 0.58rem;
    font-weight: 900;
}

.entria-plan-card ul {
    display: grid;
    gap: 7px;
    margin: 6px 0 16px;
    padding: 0;
    list-style: none;
}

.entria-plan-card li {
    position: relative;
    padding-left: 20px;
    color: #4c5c75;
    font-size: 0.62rem;
    line-height: 1.25;
}

.entria-plan-card li::before {
    top: 0;
    width: 11px;
    height: 11px;
}

.entria-plan-card li::after {
    left: 3px;
    top: 4px;
    width: 4px;
    height: 2px;
}

.entria-plan-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    margin-top: auto;
    border: 1px solid var(--entria-green);
    border-radius: 8px;
    background: #ffffff;
    color: #08a96f;
    font-size: 0.66rem;
    font-weight: 950;
    text-decoration: none;
}

.entria-plan-button.primary {
    border-color: transparent;
    background: linear-gradient(135deg, #2457ff, #2259f2);
    color: #ffffff;
    box-shadow: 0 16px 30px rgba(34, 89, 242, 0.2);
}

.entria-payments {
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 18px;
    color: #5b6880;
    font-size: 0.68rem;
}

.entria-payments span {
    position: relative;
    padding-left: 24px;
}

.entria-payments span::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1px;
    width: 14px;
    height: 18px;
    border: 2px solid var(--entria-green);
    border-radius: 4px;
}

.entria-payments strong {
    color: #2259f2;
    font-size: 0.95rem;
    font-weight: 950;
}

.entria-cta-band {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    box-sizing: border-box;
    width: min(calc(100% - 128px), 980px);
    margin: 0 auto;
    padding: 18px 32px;
    border-radius: 12px;
    background: linear-gradient(135deg, #edf5ff 0%, #eef3ff 100%);
}

.entria-cta-band h2,
.entria-cta-band p {
    margin: 0;
}

.entria-cta-band h2 {
    color: var(--entria-text);
    font-size: 0.95rem;
    font-weight: 950;
}

.entria-cta-band p {
    margin-top: 6px;
    color: #4e5e77;
    font-size: 0.82rem;
}

.entria-cta-band > div:last-child {
    gap: 18px;
}

.entria-cta-band .entria-button {
    min-height: 42px;
}

.entria-footer {
    background: radial-gradient(circle at 8% 20%, #063866 0%, transparent 26%), #05162d;
    color: #ffffff;
}

.entria-footer-grid {
    display: grid;
    grid-template-columns: 1.6fr repeat(3, 0.9fr) 1.5fr;
    gap: 36px;
    width: min(100%, 1240px);
    box-sizing: border-box;
    margin: 0 auto;
    padding: 22px 64px 8px;
}

.entria-footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 950;
    letter-spacing: 0;
}

.entria-footer-logo span {
    color: #2f7dff;
    font-size: 1.7rem;
    line-height: 1;
}

.entria-footer-logo strong {
    color: #ffffff;
    font-size: 1.6rem;
    line-height: 1;
}

.entria-footer p {
    margin: 10px 0 0;
    color: #c6d2e4;
    font-size: 0.78rem;
    line-height: 1.5;
}

.entria-socials {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.entria-socials span {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 950;
}

.entria-footer h3 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 950;
}

.entria-footer a {
    display: block;
    margin-top: 8px;
    color: #d7e3f6;
    font-size: 0.76rem;
}

.entria-newsletter {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    margin-top: 12px;
    overflow: hidden;
    border-radius: 8px;
    background: #ffffff;
}

.entria-newsletter input {
    min-width: 0;
    min-height: 34px;
    border: 0;
    padding: 0 16px;
    color: #14213d;
    outline: none;
}

.entria-newsletter button {
    border: 0;
    background: #2457ff;
    color: #ffffff;
    font-size: 0;
}

.entria-newsletter button::before {
    content: "";
    display: block;
    width: 13px;
    height: 13px;
    margin: auto;
    border-top: 2px solid #ffffff;
    border-right: 2px solid #ffffff;
    transform: rotate(45deg);
}

.entria-footer-bottom {
    width: min(100%, 1240px);
    box-sizing: border-box;
    margin: 0 auto;
    padding: 10px 64px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #a8b8cf;
    text-align: center;
    font-size: 0.74rem;
}

@media (max-width: 1180px) {
    .entria-header {
        grid-template-columns: 150px minmax(0, 1fr) auto;
        gap: 18px;
        padding-inline: 32px;
    }

    .entria-nav {
        justify-content: center;
        gap: 22px;
        overflow: visible;
        padding-bottom: 0;
        font-size: 0.82rem;
    }

    .entria-hero {
        grid-template-columns: minmax(360px, 0.82fr) minmax(520px, 1.18fr);
        gap: 18px;
        min-height: 460px;
        padding: 8px 32px 22px;
    }

    .entria-hero-copy {
        max-width: 430px;
        margin-top: 30px;
    }

    .entria-hero-copy h1 {
        font-size: 2.15rem;
    }

    .entria-hero-copy p {
        margin-top: 22px;
        font-size: 0.96rem;
    }

    .entria-benefits {
        gap: 12px 18px;
        margin-top: 24px;
    }

    .entria-benefits span {
        font-size: 0.84rem;
    }

    .entria-hero-actions {
        gap: 12px;
        margin-top: 28px;
    }

    .entria-safe-note {
        margin-top: 24px;
    }

    .entria-hero-stage {
        min-height: 410px;
    }

    .entria-laptop {
        right: -8px;
        left: auto;
        top: -10px;
        width: 760px;
        transform: scale(0.72);
        transform-origin: top right;
    }

    .entria-phone {
        left: 0;
        bottom: -10px;
        transform: scale(0.75);
        transform-origin: bottom left;
    }

    .entria-whatsapp-float {
        right: 4px;
        bottom: 20px;
        transform: scale(0.86);
        transform-origin: bottom right;
    }

}

@media (max-width: 960px) {
    .entria-header {
        grid-template-columns: 1fr auto;
    }

    .entria-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .entria-hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .entria-hero-copy {
        max-width: 720px;
    }

    .entria-hero-copy h1 {
        font-size: 3rem;
    }

    .entria-hero-stage {
        min-height: 560px;
    }

    .entria-laptop {
        left: 130px;
        right: auto;
        width: 720px;
        transform: scale(0.82);
        transform-origin: top left;
    }

    .entria-phone {
        transform: scale(0.84);
    }

    .entria-whatsapp-float {
        right: 26px;
        transform: scale(0.92);
    }

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

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

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

@media (max-width: 760px) {
    .entria-header {
        grid-template-columns: 1fr;
        padding: 18px 20px 10px;
    }

    .entria-logo {
        width: 150px;
    }

    .entria-header-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        width: 100%;
    }

    .entria-button {
        min-width: 0;
        width: 100%;
        padding-inline: 12px;
        font-size: 0.86rem;
    }

    .entria-nav {
        gap: 22px;
        font-size: 0.82rem;
    }

    .entria-hero {
        min-height: auto;
        padding: 36px 20px 54px;
    }

    .entria-hero-copy h1 {
        font-size: 2.45rem;
    }

    .entria-hero-copy p {
        font-size: 0.98rem;
    }

    .entria-benefits {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .entria-benefits span {
        flex-basis: auto;
    }

    .entria-hero-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .entria-hero-stage {
        min-height: 490px;
        overflow: hidden;
    }

    .entria-laptop {
        left: 54px;
        right: auto;
        top: 42px;
        width: 620px;
        transform: scale(0.72);
        transform-origin: top left;
    }

    .entria-phone {
        left: 0;
        bottom: 18px;
        transform: scale(0.78);
        transform-origin: bottom left;
    }

    .entria-whatsapp-float {
        right: 8px;
        bottom: 36px;
        min-width: 160px;
        padding: 10px 12px;
    }

    .entria-section {
        padding: 58px 20px;
    }

    .entria-section-heading h2,
    .entria-pricing-head h2 {
        font-size: 1.7rem;
    }

    .entria-feature-card {
        min-height: 190px;
        padding: 26px 20px;
    }

    .entria-feature-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 16px;
    }

    .entria-feature-icon svg {
        width: 25px;
        height: 25px;
    }

    .entria-feature-card h3 {
        font-size: 0.95rem;
    }

    .entria-feature-card p {
        font-size: 0.8rem;
    }

    .entria-feature-grid,
    .entria-plan-grid {
        grid-template-columns: 1fr;
    }

    .entria-pricing-head {
        display: grid;
        align-items: start;
    }

    .entria-billing-toggle {
        width: 100%;
        overflow-x: auto;
    }

    .entria-billing-toggle button,
    .entria-billing-toggle strong {
        padding-inline: 14px;
        white-space: nowrap;
    }

    .entria-cta-band {
        display: grid;
        width: calc(100% - 40px);
        padding: 26px 22px;
    }

    .entria-cta-band > div:last-child {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .entria-footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 42px 20px 28px;
    }

    .entria-footer-bottom {
        padding-inline: 20px;
    }
}

.company-executive-screen {
    gap: 16px;
    min-width: 0;
    overflow-x: hidden;
}

.company-executive-screen .school-panel,
.company-executive-screen .school-subpanel,
.company-executive-kpi,
.company-shift-card {
    border-radius: 8px;
}

.company-executive-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
    gap: 18px;
    align-items: stretch;
}

.company-executive-header h1 {
    margin: 0;
    color: #0d1b2a;
    font-size: 2.15rem;
    line-height: 1.04;
    font-weight: 850;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.company-executive-header p {
    margin: 8px 0 0;
    color: #60708a;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.company-period-summary {
    display: grid;
    gap: 5px;
    align-content: center;
    padding: 16px 18px;
    border: 1px solid #dfe7f2;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.company-period-summary span,
.company-period-summary small {
    color: #687892;
    font-size: 0.82rem;
    font-weight: 750;
}

.company-period-summary strong {
    color: #0d1b2a;
    font-size: 1.05rem;
}

.company-report-commandbar {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.company-report-commandbar .school-toolbar-actions {
    flex-wrap: wrap;
}

.company-executive-kpis,
.company-mini-kpis {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

.company-mini-kpis {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.company-executive-kpi {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    grid-template-rows: auto 34px;
    gap: 10px 12px;
    min-width: 0;
    min-height: 150px;
    padding: 16px;
    border: 1px solid #e0e8f3;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.company-kpi-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: #eef5ff;
    color: #2563eb;
}

.theme-green .company-kpi-icon { background: #eefbf2; color: #22a35a; }
.theme-danger .company-kpi-icon { background: #fff0f0; color: #ef4444; }
.theme-gold .company-kpi-icon { background: #fff7e6; color: #ca8a04; }
.theme-blue .company-kpi-icon { background: #eef5ff; color: #2563eb; }
.theme-violet .company-kpi-icon { background: #f3efff; color: #7c5cff; }

.company-kpi-copy {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.company-kpi-copy span {
    color: #52627d;
    font-size: 0.82rem;
    font-weight: 800;
}

.company-kpi-copy strong {
    color: #0d1b2a;
    font-size: 1.8rem;
    line-height: 1;
    font-weight: 850;
}

.company-kpi-copy small {
    color: #6f7f98;
    font-size: 0.78rem;
    line-height: 1.28;
    font-weight: 650;
}

.company-kpi-sparkline {
    grid-column: 1 / -1;
    display: flex;
    gap: 5px;
    align-items: end;
    min-height: 34px;
}

.company-kpi-sparkline i {
    flex: 1 1 8px;
    min-width: 5px;
    max-width: 18px;
    border-radius: 999px 999px 0 0;
    background: currentColor;
    opacity: 0.62;
}

.theme-green .company-kpi-sparkline { color: #58c576; }
.theme-danger .company-kpi-sparkline { color: #ef635d; }
.theme-gold .company-kpi-sparkline { color: #ffb224; }
.theme-blue .company-kpi-sparkline { color: #2563eb; }
.theme-violet .company-kpi-sparkline { color: #7c5cff; }

.company-report-tabs {
    padding: 4px;
    border: 1px solid #e2eaf5;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
    overflow-x: auto;
    scrollbar-width: thin;
}

.school-donut-layout {
    display: grid;
    grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
    gap: 18px;
    align-items: center;
}

.company-dashboard-grid {
    display: grid;
    gap: 14px;
}

.company-dashboard-grid-summary {
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.8fr) minmax(360px, 1fr);
}

.company-dashboard-grid-two {
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.8fr);
}

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

.company-panel-wide {
    min-width: 0;
}

.company-coverage-table td:last-child {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
}

.company-coverage-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 999px;
}

.company-coverage-dot.is-green,
.company-shift-card.is-green .school-bar-track span,
.company-risk-pill.is-green {
    background: #58c576;
}

.company-coverage-dot.is-yellow,
.company-shift-card.is-yellow .school-bar-track span,
.company-risk-pill.is-yellow {
    background: #ffb224;
}

.company-coverage-dot.is-red,
.company-shift-card.is-red .school-bar-track span,
.company-risk-pill.is-red {
    background: #ef635d;
}

.company-shift-semaphore {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
}

.company-shift-card {
    display: grid;
    gap: 8px;
    padding: 16px;
    border: 1px solid #e0e8f3;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.company-shift-card span {
    color: #52627d;
    font-size: 0.84rem;
    font-weight: 800;
}

.company-shift-card strong {
    color: #0d1b2a;
    font-size: 1.9rem;
    line-height: 1;
}

.company-shift-card small {
    color: #6f7f98;
    font-weight: 700;
}

.company-split-metric {
    display: grid;
    gap: 18px;
}

.company-split-metric > div {
    display: grid;
    gap: 8px;
}

.company-split-metric span,
.company-cost-row span,
.company-cost-breakdown span,
.company-cost-hero > div > span {
    color: #52627d;
    font-size: 0.82rem;
    font-weight: 800;
}

.company-split-metric strong {
    color: #0d1b2a;
    font-size: 1.7rem;
    line-height: 1;
}

.company-critical-list,
.company-cost-list {
    display: grid;
    gap: 12px;
}

.company-critical-list hr {
    width: 100%;
    border: 0;
    border-top: 1px solid #e5edf8;
}

.company-critical-row,
.company-cost-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(80px, auto) minmax(70px, auto);
    gap: 10px;
    align-items: center;
    color: #52627d;
    font-size: 0.86rem;
    font-weight: 700;
}

.company-critical-row > span,
.company-cost-row > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.company-critical-row strong,
.company-cost-row strong {
    color: #0d1b2a;
    font-weight: 850;
}

.company-critical-row small,
.company-cost-row small {
    color: #72809a;
    font-weight: 650;
    text-align: right;
}

.company-critical-row em {
    justify-self: end;
    min-width: 72px;
    padding: 5px 8px;
    border-radius: 999px;
    font-style: normal;
    text-align: center;
    font-weight: 850;
}

.company-critical-row em.is-green { background: #eefbf2; color: #15803d; }
.company-critical-row em.is-yellow { background: #fff7e6; color: #a16207; }
.company-critical-row em.is-red { background: #fff0f0; color: #c83535; }

.company-risk-pill {
    display: inline-flex;
    justify-content: center;
    min-width: 66px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 850;
}

.company-cost-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(260px, 1fr);
    gap: 20px;
    align-items: center;
}

.company-cost-hero strong {
    display: block;
    margin-top: 7px;
    color: #0d1b2a;
    font-size: 2.35rem;
    line-height: 1;
    font-weight: 850;
}

.company-cost-hero small {
    display: block;
    margin-top: 8px;
    color: #6f7f98;
    font-weight: 700;
}

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

.company-cost-breakdown div {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid #e5edf8;
    border-radius: 8px;
    background: #f8fbff;
}

.company-cost-breakdown strong {
    margin: 0;
    font-size: 1.08rem;
}

.company-line-chart-percent .school-line-point {
    background: #2563eb;
}

.company-matrix-table {
    min-width: 760px;
}

.company-matrix-cell {
    text-align:center;
    font-size:1rem;
    font-weight:800;
}

.company-matrix-cell.is-allowed {
    color:#22a35a;
}

.company-matrix-cell.is-denied {
    color:#ef4444;
}

.settings-grid {
    display:grid;
    grid-template-columns: 1.05fr 1.6fr 1fr;
    gap:16px;
}

.settings-side-stack,
.settings-toggle-list,
.settings-action-list,
.settings-form-grid,
.settings-meta-list {
    display:grid;
    gap:12px;
}

.settings-form-actions {
    margin-top: 6px;
}

.settings-toggle-row {
    display:grid;
    grid-template-columns: 42px 1fr auto auto;
    gap:12px;
    align-items:center;
    padding: 10px 0;
    border-top:1px solid #eef2f8;
}

.settings-toggle-row:first-child {
    border-top:none;
}

.settings-toggle-icon {
    display:grid;
    place-items:center;
    width:36px;
    height:36px;
    border-radius:50%;
    background:#f7faff;
    color:#3167ef;
    box-shadow: inset 0 0 0 1px #e3ebf6;
}

.settings-toggle-copy {
    display:grid;
    gap:4px;
}

.settings-toggle-copy strong {
    color:#1b2a44;
    font-size:0.92rem;
}

.settings-toggle-copy span {
    color:#72809a;
    font-size:0.82rem;
}

.settings-value-chip {
    border:1px solid #dce5f3;
    background:#fff;
    color:#53647c;
}

.settings-switch {
    position:relative;
    display:inline-block;
    width:34px;
    height:20px;
}

.settings-switch input {
    opacity:0;
    width:0;
    height:0;
}

.settings-switch span {
    position:absolute;
    inset:0;
    border-radius:999px;
    background:#d9e3f0;
    transition:background .2s ease;
}

.settings-switch span::before {
    content:"";
    position:absolute;
    left:2px;
    top:2px;
    width:16px;
    height:16px;
    border-radius:50%;
    background:#fff;
    box-shadow:0 2px 6px rgba(15,23,42,.18);
    transition:transform .2s ease;
}

.settings-switch input:checked + span {
    background:#4cb66b;
}

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

.settings-meta-list > div {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    padding:8px 0;
    border-top:1px solid #eef2f8;
}

.settings-meta-list > div:first-child {
    border-top:none;
}

.settings-meta-list span {
    color:#72809a;
}

.settings-action-button {
    justify-content:flex-start;
}

.tenant-modules-panel {
    margin-bottom: 18px;
}

.tenant-module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.tenant-module-card {
    display: grid;
    grid-template-columns: 1fr minmax(120px, 180px) auto;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px solid #e4ebf5;
    border-radius: 12px;
    background: #f8fbff;
}

.tenant-module-card strong {
    display: block;
    color: #102342;
    font-size: 1rem;
}

.tenant-module-card span {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 0.88rem;
}

@media (max-width: 760px) {
    .tenant-module-card {
        grid-template-columns: 1fr;
    }
}

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

.settings-summary-card {
    display:grid;
    gap:4px;
    padding:18px 16px;
    border:1px solid #e4ebf5;
    border-radius:16px;
    background:#fff;
}

.settings-summary-card strong {
    font-size:0.92rem;
}

.settings-summary-card span {
    font-size:2rem;
    line-height:1;
    font-weight:800;
    letter-spacing:-0.04em;
}

.settings-summary-card small,
.settings-summary-card em {
    color:#72809a;
    font-size:0.8rem;
    font-style:normal;
}

.app-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(4px);
}

.app-modal {
    width: min(100%, 760px);
    max-height: calc(100vh - 48px);
    overflow: auto;
    border: 1px solid #dfe7f2;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.22);
}

.app-modal.app-modal-small {
    width: min(100%, 520px);
}

.app-modal.app-modal-wide {
    width: min(100%, 1180px);
}

.app-modal.app-modal-checkpoint {
    width: min(100%, 720px);
}

.app-modal-header,
.app-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 18px 22px;
}

.app-modal-header {
    border-bottom: 1px solid #edf2f8;
}

.app-modal-footer {
    justify-content: flex-end;
    border-top: 1px solid #edf2f8;
}

.app-modal-title {
    display: grid;
    gap: 4px;
}

.app-modal-title h3 {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 800;
}

.app-modal-title p {
    color: #72809a;
    font-size: 0.86rem;
}

.app-modal-close {
    width: 38px;
    height: 38px;
    border: 1px solid #dfe7f2;
    border-radius: 12px;
    background: #fff;
    color: #506079;
    font-size: 1.15rem;
    cursor: pointer;
}

.app-modal-body {
    padding: 20px 22px;
}

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

.app-form-grid .school-labeled-field.full-width {
    grid-column: 1 / -1;
}

.school-check-field {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border: 1px solid #dce5f3;
    border-radius: 12px;
    background: #fff;
    color: #213455;
    font-size: 0.9rem;
    font-weight: 750;
    box-sizing: border-box;
}

.school-check-field input {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.work-schedule-bulk-panel {
    display: grid;
    gap: 14px;
    margin-bottom: 16px;
    padding: 16px;
    border: 1px solid #dfe7f2;
    border-radius: 16px;
    background: #f8fbff;
}

.work-schedule-hours-cell {
    display: grid;
    justify-items: start;
    gap: 6px;
    min-width: 160px;
}

.work-schedule-hours-cell strong {
    color: #071b40;
    font-size: 1rem;
}

.work-schedule-hours-cell small {
    color: #60708d;
    font-size: 0.78rem;
    font-weight: 700;
}

.work-schedule-weekly-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    margin: 0 0 16px;
    padding: 14px 16px;
    border: 1px solid #dfe7f2;
    border-radius: 16px;
    background: #f8fbff;
}

.work-schedule-weekly-summary div {
    display: grid;
    gap: 4px;
}

.work-schedule-weekly-summary span:not(.school-status-pill) {
    color: #60708d;
    font-size: 0.82rem;
    font-weight: 700;
}

.work-schedule-weekly-summary strong {
    color: #071b40;
    font-size: 1.12rem;
}

.work-schedule-bulk-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.work-schedule-bulk-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.work-schedule-rule-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.work-schedule-days-table {
    min-width: 1380px;
    table-layout: fixed;
}

.work-schedule-days-table th,
.work-schedule-days-table td {
    vertical-align: middle;
}

.work-schedule-days-table th:nth-child(1),
.work-schedule-days-table td:nth-child(1) {
    width: 70px;
}

.work-schedule-days-table th:nth-child(2),
.work-schedule-days-table td:nth-child(2),
.work-schedule-days-table th:nth-child(5),
.work-schedule-days-table td:nth-child(5),
.work-schedule-days-table th:nth-child(10),
.work-schedule-days-table td:nth-child(10) {
    width: 92px;
    text-align: center;
}

.work-schedule-days-table th:nth-child(3),
.work-schedule-days-table td:nth-child(3),
.work-schedule-days-table th:nth-child(6),
.work-schedule-days-table td:nth-child(6),
.work-schedule-days-table th:nth-child(7),
.work-schedule-days-table td:nth-child(7),
.work-schedule-days-table th:nth-child(8),
.work-schedule-days-table td:nth-child(8) {
    width: 176px;
}

.work-schedule-days-table th:nth-child(4),
.work-schedule-days-table td:nth-child(4),
.work-schedule-days-table th:nth-child(9),
.work-schedule-days-table td:nth-child(9) {
    width: 180px;
}

.work-schedule-days-table .school-code-input,
.work-schedule-rule-grid .school-code-input {
    min-width: 0;
}

.work-schedule-pair,
.work-schedule-meal-cell {
    display: grid;
    gap: 8px;
}

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

.work-schedule-meal-cell {
    grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
}

@media (max-width: 760px) {
    .work-schedule-weekly-summary {
        grid-template-columns: 1fr;
        align-items: start;
    }
}

.kiosk-layout-shell {
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 10%, rgba(252, 211, 77, 0.12), transparent 18%),
        radial-gradient(circle at 78% 4%, rgba(96, 165, 250, 0.10), transparent 24%),
        linear-gradient(180deg, #f8fbff 0%, #eef3f9 100%);
}

.kiosk-screen {
    height: 100vh;
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: clamp(16px, 3vh, 34px);
    box-sizing: border-box;
    overflow: hidden;
    padding: clamp(24px, 4vh, 54px) clamp(28px, 5vw, 88px) clamp(70px, 8vh, 96px);
}

.kiosk-brand-row {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #111827;
}

.kiosk-brand-row strong {
    display: block;
    font-size: clamp(1.5rem, 2vw, 2.4rem);
    font-weight: 850;
}

.kiosk-brand-row span {
    display: block;
    color: #64748b;
    font-weight: 750;
}

.kiosk-brand-mark {
    position: relative;
    width: 56px;
    height: 56px;
}

.kiosk-panel {
    align-self: stretch;
    justify-self: center;
    width: min(100%, 1560px);
    height: 100%;
    min-height: 0;
    max-height: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
    grid-template-rows: minmax(0, 1fr) auto;
    gap: clamp(24px, 5vw, 80px);
    align-items: center;
    overflow: hidden;
    padding: clamp(28px, 5vh, 72px) clamp(34px, 5vw, 88px);
    border: 1px solid #dfe7f2;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 32px 90px rgba(15, 23, 42, 0.12);
}

.kiosk-panel-message {
    grid-template-columns: 1fr;
    min-height: auto;
}

.kiosk-panel > .kiosk-secure-card {
    grid-column: 1 / -1;
    justify-self: center;
}

.kiosk-copy {
    display: grid;
    gap: clamp(10px, 2vh, 22px);
    align-content: center;
    min-height: 0;
}

.kiosk-copy span,
.kiosk-footer span {
    color: #65748f;
    font-weight: 750;
}

.kiosk-copy h1 {
    margin: 0;
    color: #111827;
    font-size: clamp(2.4rem, 6vh, 5.2rem);
    line-height: 1;
    letter-spacing: 0;
}

.kiosk-copy p {
    margin: 0;
    max-width: 760px;
    color: #53637c;
    font-size: clamp(1rem, 2.2vh, 1.7rem);
    line-height: 1.35;
}

.kiosk-qr-shell {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    width: min(100%, 56vh);
    max-width: 620px;
    max-height: 100%;
    justify-self: center;
    padding: clamp(18px, 3vh, 48px);
    border: 1px solid #e4ebf5;
    border-radius: 26px;
    background: #fff;
}

.kiosk-qr-shell svg {
    width: 100%;
    height: 100%;
    max-height: 100%;
}

.kiosk-footer {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 0;
    padding-top: clamp(12px, 2vh, 24px);
    border-top: 1px solid #edf2f8;
    color: #0d1b2a;
    font-size: clamp(0.95rem, 2vh, 1.35rem);
    font-weight: 850;
}

.kiosk-action-menu {
    position: fixed;
    top: 22px;
    right: 22px;
    z-index: 25;
}

.kiosk-action-menu summary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    gap: 5px;
    flex-direction: column;
    border: 1px solid #dbe5f3;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.12);
    cursor: pointer;
    list-style: none;
}

.kiosk-action-menu summary::-webkit-details-marker {
    display: none;
}

.kiosk-action-menu summary span {
    width: 22px;
    height: 3px;
    border-radius: 999px;
    background: #17213d;
}

.kiosk-action-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    display: grid;
    gap: 14px;
    min-width: 260px;
    padding: 16px;
    border: 1px solid #dbe5f3;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.18);
}

.kiosk-session-line {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.kiosk-session-copy {
    flex: 1;
    min-width: 0;
    display: grid;
    gap: 2px;
}

.kiosk-session-copy strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #17213d;
    font-size: 0.95rem;
}

.kiosk-session-copy span {
    color: #64748b;
    font-size: 0.82rem;
}

.kiosk-action-link {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border: 1px solid #fecaca;
    border-radius: 12px;
    background: #fff7f7;
    color: #a93232;
    font-weight: 850;
    text-decoration: none;
}

.kiosk-logout-modal form {
    margin: 0;
}

.checkin-mobile-screen {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 20px;
    background: #f5f8fc;
}

.checkin-card {
    width: min(100%, 440px);
    display: grid;
    gap: 18px;
    padding: 24px;
    border: 1px solid #dfe7f2;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.14);
}

.checkin-card h1,
.checkin-card p {
    margin: 0;
}

.checkin-attendance-button,
.checkin-authorize-button {
    width: 100%;
    min-height: 58px;
    border-radius: 16px;
    font-size: 1.02rem;
    letter-spacing: 0;
}

.checkin-attendance-button {
    background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
    box-shadow: 0 16px 28px rgba(22, 163, 74, 0.24);
}

.checkin-authorize-button {
    background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 16px 28px rgba(217, 119, 6, 0.22);
}

.checkin-mismatch-zone {
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px dashed #dce5f2;
}

.checkin-mismatch-button {
    width: 100%;
    color: #9f2f2f;
    border-color: #ffd6d6;
    background: #fffafa;
}

.checkin-mismatch-confirm {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid #ffd6d6;
    border-radius: 16px;
    background: #fff7f7;
    color: #213455;
}

.checkin-mismatch-confirm strong {
    color: #9f2f2f;
}

.checkin-mismatch-confirm p {
    color: #6b7890;
    line-height: 1.45;
}

.checkin-confirm-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

@media (max-width: 760px) {
    .kiosk-layout-shell {
        height: auto;
        overflow: auto;
    }

    .kiosk-screen {
        height: auto;
        min-height: 100vh;
        overflow: visible;
        padding: 30px 18px 92px;
    }

    .kiosk-panel {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        height: auto;
        min-height: auto;
        overflow: visible;
        padding: 28px;
    }

    .kiosk-action-menu {
        top: 14px;
        right: 10px;
    }

    .kiosk-action-panel {
        min-width: 230px;
    }
}

.app-form-textarea {
    min-height: 110px;
    padding: 12px 14px;
    border: 1px solid #dce5f3;
    border-radius: 12px;
    background: #fff;
    color: #213455;
    resize: vertical;
    box-sizing: border-box;
    font: inherit;
}

.enrollment-link-copy-field {
    min-height: 96px;
    word-break: break-all;
}

.app-detail-list {
    display: grid;
    gap: 12px;
}

.app-detail-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid #eef2f8;
}

.app-detail-row:first-child {
    padding-top: 0;
    border-top: none;
}

.app-detail-row span {
    color: #72809a;
    font-size: 0.84rem;
}

.app-detail-row strong {
    color: #1b2a44;
    font-size: 0.92rem;
}

@media (max-width: 1320px) {
    .school-metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .company-metrics-grid,
    .company-executive-kpis,
    .company-mini-kpis,
    .settings-summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .school-three-column-grid,
    .school-reports-grid,
    .company-dashboard-grid-summary,
    .company-dashboard-grid-two,
    .company-dashboard-grid-three {
        grid-template-columns: 1fr;
    }

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

    .settings-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1280px) {
    .dashboard-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    .dashboard-grid,
    .two-column,
    .attendance-widget,
    .school-donut-layout {
        grid-template-columns: 1fr;
    }

    .school-filters-row-students,
    .school-filters-row-groups,
    .school-filters-row-teachers,
    .school-toolbar-grid,
    .school-toolbar-grid-wide,
    .school-two-column-grid {
        grid-template-columns: 1fr;
    }

    .company-metrics-grid,
    .company-executive-header,
    .company-executive-kpis,
    .company-mini-kpis,
    .company-cost-hero,
    .company-cost-breakdown,
    .settings-summary-grid,
    .school-three-column-grid {
        grid-template-columns: 1fr;
    }

    .school-table-footer,
    .school-info-bar,
    .school-info-box,
    .school-ops-header {
        flex-direction: column;
        align-items: stretch;
    }

    .school-history-row {
        grid-template-columns: 1fr;
    }

    .settings-toggle-row {
        grid-template-columns: 36px 1fr;
    }

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

    .app-form-grid {
        grid-template-columns: 1fr;
    }

    .app-detail-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

@media (max-width: 700px) {
    .dashboard-kpis {
        grid-template-columns: 1fr;
    }

    .company-executive-screen {
        width: calc(100vw - 40px);
        max-width: calc(100vw - 40px);
    }

    .company-executive-screen .school-panel,
    .company-executive-screen .school-subpanel,
    .company-executive-kpis,
    .company-mini-kpis,
    .company-report-tabs,
    .company-dashboard-grid,
    .company-shift-semaphore {
        width: 100%;
        max-width: 100%;
    }

    .company-executive-header h1 {
        font-size: 1.48rem;
        line-height: 1.08;
    }

    .company-executive-kpi {
        min-height: 132px;
    }

    .company-report-commandbar .school-toolbar-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .company-report-commandbar .school-secondary-button {
        justify-content: flex-start;
        width: 100%;
        max-width: 100%;
    }

    .company-executive-screen .school-info-copy {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .company-executive-screen .school-info-bar {
        max-width: calc(100vw - 80px);
    }

    .company-executive-screen .school-info-copy strong {
        white-space: normal;
    }

    .company-executive-screen .company-daily-chart {
        width: calc(100vw - 82px);
        max-width: calc(100vw - 82px);
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .company-executive-screen .school-donut-layout {
        width: calc(100vw - 82px);
        max-width: calc(100vw - 82px);
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .company-executive-screen .attendance-donut {
        width: 152px;
        height: 152px;
    }

    .company-executive-screen .school-bar-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .company-executive-screen .school-bar-row strong {
        justify-self: start;
    }

    .company-kpi-sparkline {
        justify-content: flex-start;
    }

    .company-critical-row,
    .company-cost-row {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .company-critical-row small,
    .company-cost-row small {
        text-align: left;
    }

    .dashboard-list-item,
    .dashboard-table-row {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .school-metrics-grid {
        grid-template-columns: 1fr;
    }

    .school-page-header h1 {
        font-size: 2rem;
    }

    .school-panel-actions,
    .school-toolbar-actions,
    .school-inline-actions {
        width: 100%;
    }

    .school-primary-button,
    .school-secondary-button,
    .school-filter-button,
    .school-inline-success,
    .school-secondary-link-button {
        width: 100%;
    }
}

.login-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 18px;
    background: #f3f4f6;
    box-sizing: border-box;
}

.login-card {
    display: grid;
    grid-template-columns: 36% 64%;
    grid-template-rows: minmax(720px, auto) auto;
    width: min(100%, 1540px);
    min-height: calc(100vh - 36px);
    overflow: hidden;
    border: 1px solid #dfe8f3;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(15, 35, 66, 0.14);
}

.login-panel {
    display: flex;
    justify-content: center;
    background: #fff;
}

.login-panel-inner {
    display: flex;
    flex-direction: column;
    width: min(100%, 444px);
    min-height: 720px;
    padding: 72px 46px 34px;
    box-sizing: border-box;
}

.login-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 44px;
}

.login-brand-logo {
    width: min(100%, 250px);
    height: auto;
    display: block;
}

.login-heading {
    margin-bottom: 34px;
}

.login-heading h1 {
    margin: 0 0 10px;
    color: #0d1b2a;
    font-size: 1.95rem;
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: 0;
}

.login-heading p {
    margin: 0;
    color: #607196;
    font-size: 1rem;
    line-height: 1.5;
}

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

.login-field {
    display: grid;
    gap: 10px;
    color: #132342;
    font-size: 0.86rem;
    font-weight: 700;
}

.login-input-shell {
    display: grid;
    grid-template-columns: 22px 1fr 22px;
    align-items: center;
    min-height: 54px;
    padding: 0 16px;
    border: 1px solid #d6dfeb;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 9px 22px rgba(14, 32, 63, 0.04);
    box-sizing: border-box;
}

.login-input-shell svg {
    width: 22px;
    height: 22px;
    fill: #98a7bd;
}

.login-input-shell input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 0 14px;
    color: #14223f;
    font: inherit;
    font-weight: 600;
}

.login-input-shell input::placeholder {
    color: #8a9ab5;
}

.login-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 8px 0 6px;
}

.login-check {
    display: flex !important;
    align-items: center;
    gap: 9px;
    color: #243755;
    font-size: 0.91rem;
    font-weight: 700;
}

.login-check input {
    width: 18px;
    height: 18px;
    accent-color: #2563eb;
}

.login-row a,
.login-demo-link a,
.login-legal a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 700;
}

.login-submit,
.login-provider {
    min-height: 54px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
}

.login-submit {
    border: none;
    background: linear-gradient(135deg, #2563eb 0%, #14b8a6 100%);
    color: #fff;
    box-shadow: 0 12px 25px rgba(35, 105, 255, 0.22);
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #74839c;
    font-size: 0.9rem;
    font-weight: 700;
    margin: 8px 0;
}

.login-divider::before,
.login-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #dce4ef;
}

.login-provider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 1px solid #d5deea;
    background: #fff;
    color: #142341;
}

.google-dot {
    color: #1a73e8;
    font-size: 1.28rem;
    font-weight: 900;
}

.microsoft-grid {
    display: grid;
    grid-template-columns: repeat(2, 10px);
    gap: 2px;
}

.microsoft-grid i {
    width: 10px;
    height: 10px;
}

.microsoft-grid i:nth-child(1) { background: #f25022; }
.microsoft-grid i:nth-child(2) { background: #7fba00; }
.microsoft-grid i:nth-child(3) { background: #00a4ef; }
.microsoft-grid i:nth-child(4) { background: #ffb900; }

.login-demo-link {
    margin: 26px 0 0;
    color: #607196;
    text-align: center;
    font-size: 0.9rem;
}

.login-legal {
    margin: auto 0 0;
    color: #8291ab;
    text-align: center;
    font-size: 0.78rem;
    line-height: 1.7;
}

.login-error {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fff0f0;
    color: #c83535;
    font-weight: 700;
}

.login-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0d1b2a 0%, #12345a 52%, #0f766e 100%);
    color: #fff;
}

.login-hero::before {
    content: "";
    position: absolute;
    top: 42px;
    right: 84px;
    width: 160px;
    height: 160px;
    opacity: 0.32;
    background-image: radial-gradient(#2d84ff 1.4px, transparent 1.4px);
    background-size: 17px 17px;
}

.login-hero-content {
    position: relative;
    min-height: 720px;
    padding: 86px 78px 70px;
    box-sizing: border-box;
}

.login-hero h2 {
    margin: 0;
    font-size: 2.08rem;
    line-height: 1.32;
    font-weight: 800;
    letter-spacing: 0;
}

.login-hero h2 span {
    color: #22c55e;
}

.login-hero > .login-hero-content > p {
    max-width: 490px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.08rem;
    line-height: 1.55;
}

.login-feature-list {
    position: absolute;
    left: 78px;
    top: 300px;
    display: grid;
    gap: 24px;
    z-index: 2;
}

.login-feature-list > div {
    display: grid;
    grid-template-columns: 66px 1fr;
    align-items: center;
    gap: 14px;
}

.login-feature-list p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.55;
}

.feature-icon {
    width: 66px;
    height: 66px;
    border: 1px solid rgba(20, 184, 166, 0.45);
    border-radius: 14px;
    background: rgba(13, 55, 101, 0.75);
    box-shadow: inset 0 0 24px rgba(28, 188, 221, 0.08);
}

.whatsapp-icon::before,
.shield-icon::before,
.chart-icon::before,
.people-icon::before {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: #18d99b;
    font-size: 1.65rem;
    font-weight: 900;
}

.whatsapp-icon::before { content: "W"; }
.shield-icon::before { content: "S"; color: #2563eb; }
.chart-icon::before { content: "|||"; color: #14b8a6; }
.people-icon::before { content: "++"; color: #22d394; }

.login-product-stage {
    position: absolute;
    right: -58px;
    bottom: 138px;
    width: 690px;
    height: 430px;
}

.login-laptop {
    position: absolute;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: 72px 1fr;
    width: 560px;
    height: 360px;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.32);
    border-radius: 22px 0 0 22px;
    background: #071638;
    box-shadow: 0 32px 55px rgba(0, 0, 0, 0.34);
}

.laptop-sidebar {
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 24px;
    padding-top: 28px;
    background: #061a43;
}

.laptop-sidebar strong {
    color: #20d1f2;
    font-size: 1.5rem;
}

.laptop-sidebar span {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 2px solid #91a4d3;
}

.laptop-screen {
    margin: 62px 28px 32px 0;
    padding: 28px 26px;
    border-radius: 6px;
    background: #fff;
    color: #10203e;
    box-shadow: 0 18px 34px rgba(5, 14, 34, 0.22);
}

.laptop-screen h3 {
    margin: 0 0 24px;
    font-size: 1rem;
}

.laptop-screen small {
    display: block;
    color: #33415f;
    font-weight: 800;
    margin-bottom: 12px;
}

.metric-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.metric-row div {
    padding: 16px 14px;
    border-radius: 9px;
    background: #f5f7fb;
}

.metric-row span {
    display: block;
    color: #6d7891;
    font-size: 0.68rem;
    font-weight: 700;
}

.metric-row b {
    display: block;
    margin-top: 8px;
    color: #098bd5;
    font-size: 1.35rem;
}

.metric-row div:nth-child(2) b { color: #15b765; }
.metric-row div:nth-child(3) b { color: #14b8a6; }

.laptop-screen ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.72rem;
}

.laptop-screen li {
    display: grid;
    grid-template-columns: 12px 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 11px 12px;
    border: 1px solid #eef2f7;
    border-radius: 7px;
    color: #4c5b76;
}

.laptop-screen li span {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: #13c77a;
}

.laptop-screen li em {
    color: #6f7c93;
    font-style: normal;
}

.login-phone {
    position: absolute;
    left: 40px;
    bottom: 8px;
    z-index: 3;
    width: 205px;
    min-height: 390px;
    padding: 38px 14px 16px;
    border: 5px solid #283247;
    border-radius: 34px;
    background: #f8fbff;
    color: #13213f;
    box-shadow: 0 26px 44px rgba(0, 0, 0, 0.38);
}

.phone-top {
    position: absolute;
    top: 10px;
    left: 50%;
    width: 86px;
    height: 18px;
    transform: translateX(-50%);
    border-radius: 0 0 14px 14px;
    background: #111827;
}

.login-phone strong {
    display: block;
    padding: 10px 12px;
    margin: -8px -8px 12px;
    border-radius: 20px 20px 0 0;
    background: #043a35;
    color: #fff;
}

.login-phone strong span {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #16cf72;
}

.phone-chat,
.phone-bubble {
    display: grid;
    gap: 8px;
    padding: 12px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(21, 31, 55, 0.08);
}

.phone-chat p {
    margin: 0 0 4px;
    font-size: 0.72rem;
    font-weight: 800;
}

.phone-chat a {
    padding: 7px 0;
    border-top: 1px solid #edf1f6;
    color: #0d71d9;
    font-size: 0.72rem;
    font-weight: 800;
}

.phone-bubble {
    margin-top: 16px;
    background: #d8f5c7;
    font-size: 0.72rem;
}

.phone-bubble span {
    display: block;
}

.login-security-note {
    position: absolute;
    left: 150px;
    right: 140px;
    bottom: 28px;
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 58px;
    padding: 0 28px;
    border: 1px solid rgba(65, 124, 214, 0.46);
    border-radius: 18px;
    background: rgba(5, 39, 88, 0.56);
    color: #fff;
    font-size: 1rem;
}

.login-security-note svg {
    width: 24px;
    height: 24px;
    fill: #fff;
    flex: 0 0 auto;
}

.login-trust-strip {
    grid-column: 1 / -1;
    display: grid;
    justify-items: center;
    gap: 22px;
    padding: 28px 24px 34px;
    border-top: 1px solid #edf2f8;
    background: #fff;
    color: #3f526f;
}

.login-trust-strip p {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.login-trust-strip div {
    display: flex;
    justify-content: center;
    gap: clamp(24px, 6vw, 92px);
    flex-wrap: wrap;
}

.login-trust-strip span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #344967;
    font-weight: 700;
}

.login-trust-strip span::before {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    color: #425977;
    font-size: 1.25rem;
    font-weight: 900;
}

.trust-school::before { content: "H"; }
.trust-business::before { content: "B"; }
.trust-academy::before { content: "A"; }
.trust-institution::before { content: "I"; }
.trust-organization::before { content: "O"; }

.checkpoint-table-shell {
    overflow: visible;
}

.checkpoint-action-menu {
    position: relative;
    display: inline-flex;
    justify-content: flex-end;
}

.checkpoint-action-toggle {
    position: relative;
    z-index: 62;
    cursor: pointer;
}

.checkpoint-action-backdrop {
    position: fixed;
    inset: 0;
    z-index: 50;
    border: 0;
    background: transparent;
    cursor: default;
}

.checkpoint-action-list {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 80;
    display: grid;
    min-width: 190px;
    padding: 8px;
    border: 1px solid #dbe5f3;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(25, 36, 69, 0.18);
}

.checkpoint-action-list a,
.checkpoint-action-list button {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 38px;
    padding: 0 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #17213d;
    font: inherit;
    font-weight: 700;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.checkpoint-action-list a:hover,
.checkpoint-action-list button:hover {
    background: #f3f6fd;
}

.checkpoint-action-list .danger {
    color: #b43232;
}

.checkpoint-action-list .danger:hover {
    background: #fff1f1;
}

.school-danger-button {
    border-color: #ffd6d6 !important;
    color: #c83535 !important;
    background: #fff7f7 !important;
}

.checkpoint-active-check {
    align-self: end;
    min-height: 44px;
}

.checkpoint-fixed-qr-panel {
    display: grid;
    grid-template-columns: minmax(140px, 180px) minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    margin-top: 18px;
    padding: 16px;
    border: 1px solid #dbe5f3;
    border-radius: 12px;
    background: #ffffff;
}

.checkpoint-fixed-qr-preview {
    display: grid;
    place-items: center;
    min-height: 160px;
    border: 1px solid #edf2f7;
    border-radius: 10px;
    background: #f8fbff;
}

.checkpoint-fixed-qr-preview svg {
    width: 150px;
    height: 150px;
}

.checkpoint-fixed-qr-copy {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.checkpoint-fixed-qr-copy .school-mono-copy {
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
}

.checkpoint-fixed-qr-copy .school-secondary-button {
    width: 100%;
    min-width: 0;
    padding-inline: 12px;
    white-space: normal;
    line-height: 1.25;
    text-align: center;
}

.checkpoint-fixed-qr-copy span {
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.45;
}

@media (max-width: 720px) {
    .checkpoint-fixed-qr-panel {
        grid-template-columns: 1fr;
    }

    .checkpoint-fixed-qr-preview {
        min-height: 0;
        padding: 14px;
    }

    .checkpoint-fixed-qr-preview svg {
        width: min(100%, 180px);
        height: auto;
    }
}

.checkpoint-device-panel {
    display: grid;
    gap: 14px;
    margin-top: 18px;
    padding: 16px;
    border: 1px solid #e4ebf5;
    border-radius: 12px;
    background: #f8fbff;
}

.checkpoint-device-panel p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 0.88rem;
}

.checkpoint-device-panel ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.checkpoint-device-panel li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff;
}

.checkpoint-device-panel small {
    color: #64748b;
}

@media (max-width: 780px) {
    .checkpoint-fixed-qr-panel {
        grid-template-columns: 1fr;
    }

    .incidents-table-topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .incidents-table-shell {
        overflow-x: auto;
    }

    .incidents-table {
        min-width: 960px;
    }

    .checkpoint-table-shell {
        overflow-x: auto;
    }

    .checkpoint-action-list {
        position: static;
        margin-top: 8px;
    }
}

.kiosk-secure-card {
    display: grid;
    gap: 14px;
    width: min(100%, 460px);
    margin: 0 auto;
    padding: 24px;
    border: 1px solid #d8e5f5;
    border-radius: 18px;
    background: #fff;
    color: #102342;
    box-shadow: 0 18px 40px rgba(15, 35, 66, 0.12);
}

.kiosk-secure-card strong {
    font-size: 1.2rem;
}

.kiosk-secure-card p {
    margin: 0;
    color: #5f708e;
    line-height: 1.5;
}

.kiosk-secure-card label {
    display: grid;
    gap: 8px;
    color: #415273;
    font-weight: 800;
}

.kiosk-secure-card input {
    min-height: 46px;
    border: 1px solid #d8e2ef;
    border-radius: 10px;
    padding: 0 12px;
}

.kiosk-secure-card button {
    min-height: 46px;
    border: 0;
    border-radius: 10px;
    background: #2563eb;
    color: #fff;
    font-weight: 800;
}

.kiosk-secure-card-blocked {
    border-color: #ffd6d6;
    background: #fff8f8;
}

.tenant-admin-layout {
    display: grid;
    grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.tenant-success-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    padding: 14px 16px;
    border: 1px solid #b8e3c7;
    border-radius: 14px;
    background: #f0fdf4;
    color: #14532d;
}

.tenant-success-banner div {
    display: grid;
    gap: 4px;
}

.tenant-success-banner strong {
    font-size: 0.98rem;
}

.tenant-success-banner span {
    color: #276749;
    font-size: 0.9rem;
    line-height: 1.35;
}

.tenant-success-actions {
    flex: 0 0 auto;
}

.tenant-admin-layout .school-subpanel {
    min-width: 0;
}

.tenant-whatsapp-box,
.tenant-fiscal-box,
.tenant-logo-box {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid #dce6f4;
    border-radius: 14px;
    background: #f8fbff;
}

.tenant-logo-box {
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: center;
}

.tenant-logo-preview,
.tenant-list-name-cell > span {
    display: grid;
    place-items: center;
    border: 1px solid #dce6f4;
    border-radius: 14px;
    background: #fff;
    color: #2d61d8;
    font-weight: 900;
}

.tenant-logo-preview {
    width: 72px;
    height: 72px;
}

.tenant-logo-preview img,
.tenant-list-name-cell img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tenant-logo-actions {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.tenant-logo-actions strong {
    color: #14213d;
    font-size: 0.94rem;
}

.tenant-logo-actions span {
    color: #667792;
    font-size: 0.82rem;
    line-height: 1.35;
}

.tenant-logo-actions input[type="file"] {
    width: 100%;
    color: #334155;
    font-size: 0.82rem;
}

.tenant-fiscal-address {
    min-height: 86px;
    resize: vertical;
}

.tenant-list-name-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.tenant-list-name-cell img,
.tenant-list-name-cell > span {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border-radius: 12px;
    overflow: hidden;
}

.tenant-list-name-cell small {
    display: block;
    margin-top: 2px;
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 800;
}

.tenant-whatsapp-heading {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.tenant-whatsapp-heading strong {
    color: #14213d;
    font-size: 0.94rem;
}

.tenant-whatsapp-heading span {
    padding: 5px 10px;
    border-radius: 999px;
    background: #eaf3ff;
    color: #2761d8;
    font-size: 0.78rem;
    font-weight: 800;
}

.tenant-secret-hint {
    margin: 0;
    color: #667792;
    font-size: 0.82rem;
    line-height: 1.35;
}

.portal-user-access-panel {
    margin-top: 16px;
    padding: 14px;
    border: 1px solid #dfe7f2;
    border-radius: 14px;
    background: #f8fbff;
}

.portal-user-access-heading {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: baseline;
    margin-bottom: 10px;
}

.portal-user-access-heading strong {
    color: #0f1d34;
    font-size: 0.95rem;
}

.portal-user-access-heading span {
    color: #667792;
    font-size: 0.8rem;
}

.portal-user-access-list {
    display: grid;
    gap: 8px;
    max-height: 220px;
    overflow: auto;
}

.portal-user-access-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid #e3ebf7;
    border-radius: 12px;
    background: #fff;
}

.portal-user-access-row label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.portal-user-access-row input {
    width: 18px;
    height: 18px;
}

.portal-user-access-row strong {
    display: block;
    color: #10213d;
    font-size: 0.9rem;
}

.portal-user-access-row small {
    display: block;
    color: #6b7890;
    font-size: 0.78rem;
}

.portal-user-default-radio {
    color: #506079;
    font-size: 0.82rem;
    font-weight: 800;
}

.tenant-whatsapp-paths {
    display: grid;
    gap: 8px;
}

.tenant-whatsapp-paths div {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #e5edf8;
    border-radius: 10px;
    background: #fff;
}

.tenant-whatsapp-paths span {
    color: #667792;
    font-size: 0.76rem;
    font-weight: 800;
}

.tenant-whatsapp-paths strong {
    color: #15223d;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.78rem;
    overflow-wrap: anywhere;
}

.tenant-whatsapp-toggle {
    align-items: flex-start;
    padding: 2px 0 4px;
}

.tenant-whatsapp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
}

.tenant-whatsapp-inline-feedback {
    display: grid;
    gap: 3px;
    flex: 1 1 100%;
    max-width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 0.83rem;
    line-height: 1.35;
}

.tenant-whatsapp-inline-feedback strong {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0;
}

.tenant-whatsapp-inline-feedback span {
    overflow-wrap: anywhere;
}

.tenant-whatsapp-inline-feedback.success {
    color: #166534;
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
}

.tenant-whatsapp-inline-feedback.warning {
    color: #8a3b12;
    border: 1px solid #fed7aa;
    background: #fff7ed;
}

.tenant-whatsapp-filter-chip {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    padding: 8px 10px;
    border: 1px solid #dce8f8;
    border-radius: 10px;
    background: #fff;
    color: #425572;
    font-size: 0.78rem;
    font-weight: 800;
}

.tenant-whatsapp-filter-chip strong {
    color: #15223d;
    overflow-wrap: anywhere;
}

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

.tenant-template-purpose {
    color: #5b6b86;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.35;
}

.role-permission-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.role-permission-group {
    border: 1px solid #d8e4f5;
    border-radius: 8px;
    padding: 14px;
    background: #fbfdff;
}

.role-permission-group h4 {
    margin: 0 0 10px;
    font-size: 0.95rem;
    color: #10213f;
}

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

.role-permission-check {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    color: #10213f;
}

.role-permission-check input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

.role-permission-check span {
    display: grid;
    gap: 2px;
}

.role-permission-check strong {
    font-size: 0.92rem;
}

.role-permission-check small {
    color: #617193;
    line-height: 1.35;
}

.role-permission-summary {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: #edf4ff;
    color: #2250a8;
    font-weight: 800;
    font-size: 0.82rem;
}

.role-permission-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.role-permission-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #f0f5fb;
    color: #14213d;
    font-size: 0.82rem;
    font-weight: 800;
}

.tenant-whatsapp-status-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.tenant-whatsapp-status-grid div {
    display: grid;
    gap: 3px;
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid #e5edf8;
    border-radius: 10px;
    background: #fff;
}

.tenant-whatsapp-status-grid span {
    color: #667792;
    font-size: 0.76rem;
    font-weight: 800;
}

.tenant-whatsapp-status-grid strong {
    color: #15223d;
    font-size: 0.82rem;
    overflow-wrap: anywhere;
}

.tenant-whatsapp-delivery-panel {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid #dce8f8;
    border-radius: 10px;
    background: #f8fbff;
}

.tenant-whatsapp-delivery-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.tenant-whatsapp-delivery-header div {
    display: grid;
    gap: 2px;
}

.tenant-whatsapp-delivery-header strong {
    color: #15223d;
    font-size: 0.9rem;
}

.tenant-whatsapp-delivery-header span {
    color: #667792;
    font-size: 0.76rem;
    font-weight: 800;
}

.tenant-whatsapp-delivery-list {
    display: grid;
    gap: 8px;
}

.tenant-whatsapp-delivery-row {
    display: grid;
    gap: 3px;
    min-width: 0;
    padding: 10px 11px;
    border: 1px solid #e5edf8;
    border-left-width: 4px;
    border-radius: 8px;
    background: #fff;
}

.tenant-whatsapp-delivery-row span {
    width: fit-content;
    padding: 3px 7px;
    border-radius: 999px;
    color: #15223d;
    background: #eaf1fb;
    font-size: 0.72rem;
    font-weight: 900;
}

.tenant-whatsapp-delivery-row strong {
    color: #15223d;
    font-size: 0.86rem;
    overflow-wrap: anywhere;
}

.tenant-whatsapp-delivery-row small,
.tenant-whatsapp-delivery-row p {
    margin: 0;
    color: #5b6d87;
    font-size: 0.76rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.tenant-whatsapp-delivery-row.failed {
    border-left-color: #ef4444;
}

.tenant-whatsapp-delivery-row.delivered,
.tenant-whatsapp-delivery-row.read {
    border-left-color: #16a34a;
}

.tenant-whatsapp-delivery-row.pending {
    border-left-color: #4f88ff;
}

.notification-list {
    display: grid;
    gap: 12px;
}

.notification-card {
    display: grid;
    gap: 5px;
    padding: 16px 18px;
    border: 1px solid #dce5f2;
    border-radius: 12px;
    background: #ffffff;
    color: #0f2447;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.notification-card strong {
    font-size: 0.98rem;
}

.notification-card span {
    color: #5d6b82;
    line-height: 1.45;
}

.notification-warning {
    border-color: #f7d9a5;
    background: #fffaf0;
}

.notification-info {
    border-color: #cddcff;
    background: #f7faff;
}

.notification-critical {
    border-color: #ffc8c8;
    background: #fff7f7;
}

@media (max-width: 1100px) {
    .tenant-success-banner {
        align-items: stretch;
        flex-direction: column;
    }

    .tenant-success-actions,
    .tenant-success-actions .school-primary-button {
        width: 100%;
    }

    .tenant-admin-layout {
        grid-template-columns: 1fr;
    }

    .tenant-whatsapp-status-grid {
        grid-template-columns: 1fr;
    }

    .tenant-template-grid {
        grid-template-columns: 1fr;
    }

    .role-permission-grid {
        grid-template-columns: 1fr;
    }

    .tenant-logo-box {
        grid-template-columns: 1fr;
    }

    .login-card {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
    }

    .login-hero {
        display: none;
    }

    .login-panel-inner {
        min-height: auto;
        padding: 48px 28px 28px;
    }
}

@media (max-width: 640px) {
    .login-shell {
        padding: 0;
        align-items: stretch;
    }

    .login-card {
        min-height: 100vh;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .login-brand-logo {
        width: min(100%, 218px);
    }

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

    .login-trust-strip div {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        gap: 16px;
    }
}

.whatsapp-simulator-actions {
    margin-top: 14px;
}

.whatsapp-simulator-thread {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 360px;
    max-height: 560px;
    overflow-y: auto;
    padding: 8px 2px;
}

.whatsapp-simulator-empty,
.school-muted-copy {
    color: #64748b;
    font-size: 0.95rem;
}

.whatsapp-message-row {
    display: flex;
}

.whatsapp-message-row.inbound {
    justify-content: flex-end;
}

.whatsapp-message-row.outbound {
    justify-content: flex-start;
}

.whatsapp-message-bubble {
    max-width: min(680px, 82%);
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    padding: 10px 12px;
    background: #ffffff;
    color: #0f172a;
    line-height: 1.45;
    white-space: pre-wrap;
}

.whatsapp-message-row.inbound .whatsapp-message-bubble {
    background: #e8f5ef;
    border-color: #bfe4d0;
}

.whatsapp-message-meta {
    margin-bottom: 5px;
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
}

.whatsapp-simulator-details {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 10px 14px;
    margin: 0;
}

.whatsapp-simulator-details dt {
    color: #64748b;
    font-weight: 700;
}

.whatsapp-simulator-details dd {
    margin: 0;
    color: #0f172a;
    overflow-wrap: anywhere;
}

.landing-shell {
    --landing-navy: #0d1b2a;
    --landing-blue: #2563eb;
    --landing-teal: #14b8a6;
    --landing-green: #22c55e;
    --landing-ink: #10213d;
    --landing-muted: #5f6f89;
    --landing-line: #dfe7f2;
    --landing-soft: #f5f8fc;
    min-height: 100vh;
    overflow-x: hidden;
    background:
        linear-gradient(180deg, #ffffff 0%, #f5f8fc 48%, #ffffff 100%);
    color: var(--landing-ink);
}

.landing-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
    min-height: 78px;
    padding: 14px min(5vw, 72px);
    border-bottom: 1px solid rgba(223, 231, 242, 0.86);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
}

.landing-brand {
    display: inline-flex;
    align-items: center;
    width: 164px;
}

.landing-brand img {
    width: 100%;
    height: auto;
    display: block;
}

.landing-nav {
    display: flex;
    justify-content: center;
    gap: 28px;
    min-width: 0;
    color: #42536f;
    font-size: 0.95rem;
    font-weight: 800;
}

.landing-nav a {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
}

.landing-header-actions,
.landing-hero-actions,
.landing-final-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.landing-primary-button,
.landing-secondary-button,
.landing-link-button,
.landing-plan-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-size: 0.92rem;
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.landing-primary-button {
    background: linear-gradient(135deg, var(--landing-blue) 0%, var(--landing-teal) 100%);
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.2);
}

.landing-secondary-button,
.landing-link-button {
    border-color: #d9e3f0;
    background: #ffffff;
    color: #1b2b46;
}

.landing-link-button {
    min-height: 40px;
    padding-inline: 12px;
    border-color: transparent;
    background: transparent;
    color: #334155;
}

.landing-primary-button:hover,
.landing-secondary-button:hover,
.landing-link-button:hover,
.landing-plan-action:hover {
    transform: translateY(-1px);
}

.landing-primary-button-large,
.landing-secondary-button-large {
    min-height: 50px;
    padding-inline: 20px;
    font-size: 1rem;
}

.landing-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(440px, 1.05fr);
    gap: min(5vw, 74px);
    align-items: center;
    min-height: 720px;
    padding: 46px min(5vw, 72px) 64px;
}

.landing-hero-copy {
    min-width: 0;
    max-width: 680px;
}

.landing-hero-copy h1 {
    color: var(--landing-navy);
    font-size: 5.4rem;
    line-height: 0.95;
    font-weight: 900;
    letter-spacing: 0;
}

.landing-hero-lede {
    margin-top: 22px;
    color: #45566f;
    font-size: 1.22rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.landing-hero-actions {
    margin-top: 32px;
}

.landing-proof-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 38px;
}

.landing-proof-row div {
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid #dfe7f2;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
}

.landing-proof-row strong,
.landing-proof-row span {
    display: block;
}

.landing-proof-row strong {
    color: var(--landing-navy);
    font-size: 1.08rem;
    font-weight: 900;
}

.landing-proof-row span {
    margin-top: 4px;
    color: var(--landing-muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.landing-hero-visual {
    position: relative;
    min-width: 0;
    padding: 22px;
    border: 1px solid #dfe7f2;
    border-radius: 24px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(245, 248, 252, 0.96));
    box-shadow: 0 28px 80px rgba(15, 35, 66, 0.12);
}

.landing-visual-top {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin-bottom: 18px;
}

.landing-visual-top img {
    width: min(46%, 150px);
    height: 86px;
    padding: 8px;
    border: 1px solid #e1e8f3;
    border-radius: 16px;
    background: #ffffff;
    object-fit: contain;
}

.landing-product-preview {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    min-height: 390px;
    overflow: hidden;
    border: 1px solid #dbe5f3;
    border-radius: 18px;
    background: #ffffff;
}

.landing-preview-sidebar {
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 18px;
    background: linear-gradient(180deg, #0d1b2a 0%, #122846 100%);
}

.landing-preview-sidebar span {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
}

.landing-preview-sidebar span:first-child {
    background: linear-gradient(135deg, var(--landing-blue), var(--landing-teal));
}

.landing-preview-main {
    display: grid;
    gap: 18px;
    align-content: start;
    min-width: 0;
    padding: 22px;
}

.landing-preview-title-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.landing-preview-title-row div {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.landing-preview-title-row strong {
    color: var(--landing-navy);
    font-size: 1.08rem;
    font-weight: 900;
}

.landing-preview-title-row span,
.landing-preview-list p,
.landing-checkout-row span {
    color: var(--landing-muted);
}

.landing-preview-title-row small {
    flex: 0 0 auto;
    padding: 7px 10px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #15803d;
    font-size: 0.76rem;
    font-weight: 900;
}

.landing-preview-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.landing-preview-kpis div {
    min-width: 0;
    min-height: 96px;
    padding: 13px;
    border: 1px solid #e3ebf7;
    border-radius: 14px;
    background: #f8fbff;
}

.landing-preview-kpis span,
.landing-preview-kpis strong {
    display: block;
}

.landing-preview-kpis span {
    color: #60708a;
    font-size: 0.78rem;
    font-weight: 800;
}

.landing-preview-kpis strong {
    margin-top: 10px;
    color: var(--landing-navy);
    font-size: 2rem;
    line-height: 1;
    font-weight: 900;
}

.landing-preview-list {
    display: grid;
    gap: 8px;
}

.landing-preview-list div {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-height: 48px;
    padding: 0 12px;
    border: 1px solid #e8eef7;
    border-radius: 12px;
}

.landing-preview-list strong {
    color: #263854;
    font-size: 0.82rem;
}

.landing-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
}

.landing-dot-green {
    background: var(--landing-green);
}

.landing-dot-blue {
    background: var(--landing-blue);
}

.landing-dot-teal {
    background: var(--landing-teal);
}

.landing-whatsapp-card {
    position: absolute;
    right: 34px;
    bottom: -28px;
    width: min(300px, 70%);
    padding: 16px 18px;
    border: 1px solid #ccebdd;
    border-radius: 18px;
    background: #f0fdf4;
    color: #155b35;
    box-shadow: 0 18px 40px rgba(21, 128, 61, 0.12);
}

.landing-whatsapp-card strong {
    display: block;
    margin-bottom: 5px;
    color: #0f5130;
    font-size: 1rem;
    font-weight: 900;
}

.landing-whatsapp-card p {
    color: #226645;
    font-size: 0.9rem;
    line-height: 1.4;
}

.landing-section {
    padding: 78px min(5vw, 72px);
}

.landing-section-head {
    display: grid;
    gap: 12px;
    min-width: 0;
    max-width: 760px;
    margin-bottom: 32px;
}

.landing-section-head h2,
.landing-payment-copy h2,
.landing-final-cta h2 {
    color: var(--landing-navy);
    font-size: 2.35rem;
    line-height: 1.06;
    font-weight: 900;
    letter-spacing: 0;
}

.landing-section-head p,
.landing-payment-copy p,
.landing-final-cta p {
    color: #53657f;
    font-size: 1rem;
    line-height: 1.6;
}

.landing-products {
    background: #ffffff;
}

.landing-product-grid,
.landing-plan-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.landing-product-card,
.landing-plan-card,
.landing-checkout-card,
.landing-onboarding-grid article {
    border: 1px solid #dfe7f2;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(15, 35, 66, 0.06);
}

.landing-product-card {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    min-width: 0;
    min-height: 310px;
    padding: 24px;
}

.landing-product-card img {
    width: 88px;
    height: 88px;
    padding: 10px;
    border: 1px solid #e0e8f4;
    border-radius: 18px;
    background: #ffffff;
    object-fit: contain;
}

.landing-product-card h3,
.landing-plan-card h3,
.landing-onboarding-grid h3 {
    color: var(--landing-navy);
    font-size: 1.35rem;
    font-weight: 900;
}

.landing-product-card p {
    margin-top: 8px;
    color: #53657f;
    line-height: 1.58;
}

.landing-product-card ul,
.landing-plan-card ul {
    grid-column: 1 / -1;
    display: grid;
    gap: 10px;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
}

.landing-product-card li,
.landing-plan-card li {
    position: relative;
    padding-left: 22px;
    color: #33445e;
    line-height: 1.42;
}

.landing-product-card li::before,
.landing-plan-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--landing-teal);
}

.landing-product-card-company li::before {
    background: var(--landing-blue);
}

.landing-plans {
    background: #f5f8fc;
}

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

.landing-plan-card {
    display: grid;
    align-content: start;
    gap: 18px;
    min-height: 420px;
    padding: 24px;
}

.landing-plan-card-featured {
    border-color: rgba(37, 99, 235, 0.48);
    box-shadow: 0 22px 54px rgba(37, 99, 235, 0.14);
}

.landing-plan-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.landing-plan-head span {
    flex: 0 0 auto;
    padding: 7px 10px;
    border-radius: 999px;
    background: #eef6ff;
    color: #2259c6;
    font-size: 0.76rem;
    font-weight: 900;
}

.landing-plan-card-featured .landing-plan-head span {
    background: #ecfdf5;
    color: #15803d;
}

.landing-plan-price {
    color: var(--landing-navy);
    font-size: 1.62rem;
    font-weight: 900;
}

.landing-plan-action {
    margin-top: auto;
    border-color: #d9e3f0;
    background: #ffffff;
    color: #17325f;
}

.landing-plan-card-featured .landing-plan-action {
    border-color: transparent;
    background: linear-gradient(135deg, var(--landing-blue), var(--landing-teal));
    color: #ffffff;
}

.landing-payment {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 470px);
    gap: min(5vw, 72px);
    align-items: center;
    background: #ffffff;
}

.landing-payment-copy {
    display: grid;
    gap: 18px;
    max-width: 720px;
}

.landing-payment-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.landing-payment-steps div {
    min-width: 0;
    padding: 14px;
    border: 1px solid #dfe7f2;
    border-radius: 14px;
    background: #f8fbff;
}

.landing-payment-steps strong,
.landing-payment-steps span {
    display: block;
}

.landing-payment-steps strong {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    margin-bottom: 12px;
    border-radius: 999px;
    background: var(--landing-navy);
    color: #ffffff;
    font-size: 0.84rem;
    font-weight: 900;
}

.landing-payment-steps span {
    color: #394b65;
    font-size: 0.85rem;
    font-weight: 800;
    line-height: 1.35;
}

.landing-checkout-card {
    display: grid;
    gap: 14px;
    padding: 24px;
}

.landing-checkout-brand {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #edf2f8;
}

.landing-checkout-brand img {
    width: 128px;
    height: auto;
}

.landing-checkout-brand span {
    padding: 6px 10px;
    border-radius: 999px;
    background: #edf7ff;
    color: #2259c6;
    font-size: 0.76rem;
    font-weight: 900;
}

.landing-checkout-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    align-items: center;
    border-bottom: 1px solid #edf2f8;
}

.landing-checkout-row strong {
    color: var(--landing-navy);
    text-align: right;
}

.landing-checkout-button {
    min-height: 48px;
    border: 0;
    border-radius: 12px;
    background: #dbe5f3;
    color: #45566f;
    font-weight: 900;
    cursor: not-allowed;
}

.landing-checkout-card p {
    color: #65758f;
    font-size: 0.86rem;
    line-height: 1.5;
}

.landing-onboarding {
    background: #f5f8fc;
}

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

.landing-onboarding-grid article {
    min-height: 250px;
    padding: 22px;
}

.landing-onboarding-grid span {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-bottom: 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--landing-blue), var(--landing-teal));
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 900;
}

.landing-onboarding-grid p {
    margin-top: 10px;
    color: #53657f;
    line-height: 1.55;
}

.landing-final-cta {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    margin: 0 min(5vw, 72px) 70px;
    padding: 32px;
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 22px;
    background:
        linear-gradient(135deg, #eef6ff 0%, #f1fbf7 100%);
}

.landing-final-cta div:first-child {
    max-width: 760px;
}

.landing-final-cta p {
    margin-top: 10px;
}

@media (max-width: 1180px) {
    .landing-header {
        grid-template-columns: auto auto;
    }

    .landing-nav {
        order: 3;
        grid-column: 1 / -1;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .landing-hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 48px;
    }

    .landing-hero-copy {
        max-width: 840px;
    }

    .landing-hero-visual {
        max-width: 820px;
    }

    .landing-payment {
        grid-template-columns: 1fr;
    }

    .landing-checkout-card {
        max-width: 640px;
    }

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

@media (max-width: 860px) {
    .landing-header {
        position: static;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        grid-template-columns: 1fr;
        gap: 14px;
        padding-inline: 20px;
    }

    .landing-brand {
        width: 148px;
    }

    .landing-header-actions {
        width: 100%;
        max-width: calc(100vw - 40px);
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .landing-header-actions a {
        width: 100%;
        min-width: 0;
    }

    .landing-hero,
    .landing-section {
        width: 100%;
        max-width: 100vw;
        padding-inline: 20px;
    }

    .landing-hero-copy,
    .landing-hero-actions,
    .landing-proof-row,
    .landing-hero-visual {
        width: 100%;
        max-width: calc(100vw - 40px);
    }

    .landing-hero-copy h1 {
        font-size: 3.8rem;
    }

    .landing-hero-lede {
        font-size: 1.08rem;
        max-width: 100%;
    }

    .landing-proof-row,
    .landing-product-grid,
    .landing-plan-grid,
    .landing-payment-steps {
        grid-template-columns: 1fr;
    }

    .landing-product-card {
        grid-template-columns: 1fr;
    }

    .landing-product-preview {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .landing-preview-sidebar {
        display: flex;
        padding: 12px;
    }

    .landing-preview-sidebar span {
        width: 34px;
        height: 34px;
    }

    .landing-preview-kpis {
        grid-template-columns: 1fr;
    }

    .landing-whatsapp-card {
        position: static;
        width: 100%;
        margin-top: 14px;
    }

    .landing-visual-top {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
    }

    .landing-visual-top img {
        width: 100%;
        min-width: 0;
    }

    .landing-final-cta {
        align-items: stretch;
        flex-direction: column;
        margin-inline: 20px;
        padding: 24px;
    }
}

@media (max-width: 560px) {
    .landing-header,
    .landing-hero,
    .landing-section {
        padding-left: 20px;
        padding-right: 40px;
    }

    .landing-header-actions,
    .landing-hero-copy,
    .landing-hero-actions,
    .landing-proof-row,
    .landing-hero-visual {
        max-width: calc(100vw - 60px);
    }

    .landing-nav {
        gap: 18px;
        font-size: 0.88rem;
    }

    .landing-hero {
        padding-top: 34px;
        padding-bottom: 52px;
    }

    .landing-hero-copy h1 {
        font-size: 3rem;
    }

    .landing-hero-actions a,
    .landing-final-actions a {
        width: 100%;
        max-width: 330px;
    }

    .landing-hero-copy {
        max-width: 330px;
    }

    .landing-hero-visual,
    .landing-product-card,
    .landing-plan-card,
    .landing-checkout-card,
    .landing-onboarding-grid article {
        border-radius: 14px;
        padding: 18px;
    }

    .landing-section-head h2,
    .landing-payment-copy h2,
    .landing-final-cta h2 {
        font-size: 1.85rem;
    }

    .landing-preview-title-row,
    .landing-checkout-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .landing-checkout-row strong {
        text-align: left;
    }

    .landing-onboarding-grid {
        grid-template-columns: 1fr;
    }
}

/* Entria cloud landing based on the user's clean reference layout. */
.cloud-page {
    --cloud-text: #202020;
    --cloud-muted: #858585;
    --cloud-line: #e8e8e8;
    --cloud-blue: #5797f4;
    --cloud-blue-soft: #e8f1ff;
    --cloud-green: #5ac262;
    --cloud-violet: #6b5bf1;
    --cloud-pink: #d43bd0;
    --cloud-gold: #cfa12a;
    --cloud-red: #ef6a61;
    min-height: 100vh;
    background: #ffffff;
    color: var(--cloud-text);
    font-family: Inter, Poppins, "Segoe UI", system-ui, sans-serif;
}

.cloud-page a {
    color: inherit;
    text-decoration: none;
}

.cloud-nav-shell {
    position: fixed;
    top: 32px;
    left: 50%;
    z-index: 40;
    display: grid;
    grid-template-columns: 178px minmax(0, 1fr) auto;
    align-items: center;
    gap: 34px;
    width: min(calc(100% - 96px), 1550px);
    min-height: 82px;
    margin: 0;
    padding: 0 26px;
    border: 1px solid rgba(12, 15, 24, 0.11);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 46px rgba(18, 21, 30, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transform: translateX(-50%);
}

.cloud-brand {
    display: inline-flex;
    align-items: center;
    width: 158px;
}

.cloud-brand img,
.cloud-footer-brand img {
    display: block;
    width: 100%;
    height: auto;
}

.cloud-nav,
.cloud-nav-actions,
.cloud-hero-actions,
.cloud-trust-row {
    display: flex;
    align-items: center;
}

.cloud-nav {
    justify-content: flex-start;
    gap: clamp(28px, 3vw, 54px);
    font-size: clamp(0.95rem, 0.95vw, 1.1rem);
    font-weight: 850;
}

.cloud-nav-actions {
    gap: 22px;
    font-size: clamp(0.95rem, 0.95vw, 1.1rem);
    font-weight: 850;
    white-space: nowrap;
}

.cloud-nav a,
.cloud-nav-actions > a {
    transition: color 180ms ease, transform 180ms ease;
}

.cloud-nav a:hover,
.cloud-nav-actions > a:not(.cloud-nav-primary):hover {
    color: #4f94f4;
    transform: translateY(-1px);
}

.cloud-page .cloud-nav-primary,
.cloud-page .cloud-button-primary {
    background: #101219;
    color: #ffffff;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.08), 0 5px 0 rgba(0, 0, 0, 0.14);
}

.cloud-nav-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 168px;
    min-height: 56px;
    padding: 0 26px;
    border: 2px solid #242734;
    border-radius: 999px;
    font-size: clamp(0.95rem, 0.95vw, 1.08rem);
}

.cloud-hero {
    position: relative;
    min-height: 760px;
    margin-top: 0;
    padding: 248px 24px 0;
    background: #fbfbfb;
}

.cloud-hero-copy {
    position: relative;
    z-index: 2;
    display: grid;
    justify-items: center;
    width: min(100%, 860px);
    margin: 0 auto;
    text-align: center;
}

.cloud-hero-copy h1 {
    max-width: 840px;
    margin: 0;
    color: var(--cloud-text);
    font-size: clamp(3.35rem, 4.25vw, 4.35rem);
    line-height: 1.06;
    font-weight: 950;
    letter-spacing: 0;
}

.cloud-hero-copy p {
    max-width: 680px;
    margin: 22px 0 0;
    color: #818181;
    font-size: 1.15rem;
    line-height: 1.35;
    font-weight: 760;
}

.cloud-hero-actions {
    gap: 16px;
    margin-top: 28px;
}

.cloud-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 24px;
    border: 2px solid #101219;
    border-radius: 999px;
    font-size: 0.98rem;
    font-weight: 850;
    letter-spacing: 0;
}

.cloud-button-secondary {
    background: #ffffff;
    color: #101219;
}

.cloud-button:disabled {
    cursor: not-allowed;
    opacity: 0.56;
}

.cloud-trust-row {
    flex-wrap: wrap;
    justify-content: center;
    gap: 26px;
    margin-top: 70px;
    color: var(--cloud-blue);
    font-size: 0.9rem;
    font-weight: 760;
}

.cloud-trust-row span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.cloud-trust-row svg {
    width: 22px;
    height: 22px;
    padding: 4px;
    border-radius: 50%;
    background: var(--cloud-blue);
    color: #ffffff;
}

.cloud-hero-paperclip,
.cloud-hero-device,
.cloud-showcase-keyboard,
.cloud-showcase-clip {
    position: absolute;
    pointer-events: none;
}

.cloud-hero-paperclip {
    left: 84px;
    top: 300px;
    width: 32px;
    height: 126px;
    border: 6px solid #a9bfce;
    border-left-width: 5px;
    border-radius: 28px;
    transform: rotate(40deg);
    filter: drop-shadow(0 12px 8px rgba(0, 0, 0, 0.22));
}

.cloud-hero-paperclip::after {
    content: "";
    position: absolute;
    inset: 14px 7px 14px 8px;
    border: 5px solid #eef8ff;
    border-left-width: 3px;
    border-radius: 22px;
}

.cloud-hero-device {
    right: -40px;
    top: 0;
    width: 180px;
    height: 470px;
    border-radius: 24px;
    background: linear-gradient(100deg, #eff1f5, #ffffff 38%, #dfe3eb);
    box-shadow: -26px 34px 70px rgba(17, 24, 39, 0.14);
    transform: rotate(-14deg);
}

.cloud-hero-device::before {
    content: "";
    position: absolute;
    left: 32px;
    top: 98px;
    width: 100px;
    height: 250px;
    border-radius: 9px;
    background: repeating-linear-gradient(180deg, #cfd4dd 0 3px, transparent 3px 7px);
    opacity: 0.65;
}

.cloud-hero-docs {
    position: absolute;
    left: 50%;
    bottom: -170px;
    z-index: 2;
    width: 730px;
    height: 320px;
    transform: translateX(-50%);
}

.cloud-sheet {
    position: absolute;
    width: 430px;
    height: 260px;
    border: 1px solid #ededed;
    background: #ffffff;
    box-shadow: 0 30px 80px rgba(26, 26, 26, 0.08);
}

.cloud-sheet-left {
    left: -110px;
    bottom: -4px;
    transform: rotate(-17deg);
}

.cloud-sheet-right {
    right: -94px;
    bottom: 0;
    transform: rotate(8deg);
}

.cloud-attendance-sheet,
.cloud-product-card {
    position: relative;
    overflow: hidden;
    border: 1px solid #e7e7e7;
    background: #ffffff;
    box-shadow: 0 34px 86px rgba(26, 26, 26, 0.11);
}

.cloud-attendance-sheet {
    width: 690px;
    min-height: 320px;
    margin: 0 auto;
}

.cloud-sheet-head,
.cloud-product-top {
    padding: 20px 34px 18px;
    border-bottom: 1px solid #eeeeee;
}

.cloud-sheet-head span,
.cloud-product-top span,
.cloud-sheet-parties > div > span,
.cloud-product-grid small,
.cloud-sheet-table span,
.cloud-product-table span {
    color: #9a9a9a;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.cloud-sheet-head strong,
.cloud-product-top strong {
    display: block;
    margin-top: 6px;
    font-size: 1rem;
}

.cloud-sheet-parties,
.cloud-product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cloud-sheet-parties > div,
.cloud-product-grid > div {
    min-height: 152px;
    padding: 28px 34px;
}

.cloud-sheet-parties > div + div,
.cloud-product-grid > div + div {
    border-left: 1px solid #eeeeee;
}

.cloud-seal {
    width: 40px;
    height: 40px;
    margin: 18px 0 14px;
    border-radius: 999px;
}

.cloud-seal-blue {
    background: radial-gradient(circle at 30% 25%, #3c6cff, #234bf4);
}

.cloud-seal-green {
    background: var(--cloud-green);
}

.cloud-mock-title {
    display: block;
    margin: 0;
    font-size: 1.42rem;
    line-height: 1.1;
    letter-spacing: 0;
}

.cloud-sheet-parties p,
.cloud-sheet-parties small,
.cloud-product-grid p {
    color: var(--cloud-muted);
    font-size: 0.86rem;
    line-height: 1.45;
}

.cloud-sheet-parties p {
    margin: 6px 0 22px;
}

.cloud-sheet-table,
.cloud-product-table {
    padding: 18px 34px 26px;
    border-top: 1px solid #eeeeee;
}

.cloud-sheet-table > div,
.cloud-product-table > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 74px 74px;
    gap: 14px;
    min-height: 31px;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    color: #676767;
}

.cloud-showcase {
    position: relative;
    min-height: 650px;
    padding: 190px 24px 88px;
    background: #ffffff;
}

.cloud-showcase-keyboard {
    left: -80px;
    top: 190px;
    width: 245px;
    height: 340px;
    border-radius: 28px;
    background: repeating-linear-gradient(180deg, #f8f8f8 0 42px, #dcdcdc 42px 45px);
    box-shadow: 26px 28px 54px rgba(0, 0, 0, 0.22);
    transform: rotate(16deg);
}

.cloud-showcase-clip {
    right: 150px;
    top: 250px;
    width: 72px;
    height: 90px;
    border-radius: 12px;
    background: linear-gradient(135deg, #efb461, #98351f);
    box-shadow: 34px 26px 30px rgba(0, 0, 0, 0.18);
    transform: rotate(18deg);
}

.cloud-showcase-clip::before {
    content: "";
    position: absolute;
    left: -38px;
    top: 22px;
    width: 76px;
    height: 42px;
    border: 5px solid #6f8796;
    border-radius: 50%;
    transform: rotate(20deg);
}

.cloud-product-stack {
    position: relative;
    width: min(100%, 740px);
    margin: 0 auto;
}

.cloud-product-card {
    width: min(100%, 720px);
    margin: 0 auto;
}

.cloud-product-card-back {
    position: absolute;
    z-index: 0;
    left: -100px;
    top: 58px;
    width: 360px;
    min-height: 330px;
    padding: 28px;
    opacity: 0.78;
    transform: rotate(-18deg);
}

.cloud-product-stack .cloud-product-card:not(.cloud-product-card-back) {
    z-index: 1;
}

.cloud-product-top {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
}

.cloud-product-grid > div {
    min-height: 188px;
}

.cloud-product-grid .cloud-mock-title {
    margin-top: 18px;
}

.cloud-audience,
.cloud-problems,
.cloud-security,
.cloud-final-cta,
.cloud-footer {
    width: min(calc(100% - 64px), 1520px);
    margin: 0 auto;
    scroll-margin-top: 128px;
}

.cloud-audience {
    padding: 92px 0 76px;
    text-align: center;
}

.cloud-section-label {
    margin: 0 0 18px;
    color: var(--cloud-blue);
    font-size: 0.94rem;
    font-weight: 930;
}

.cloud-audience h2,
.cloud-problems h2,
.cloud-final-cta h2 {
    max-width: 760px;
    margin: 0 auto;
    color: var(--cloud-text);
    font-size: 2.65rem;
    line-height: 1.13;
    font-weight: 950;
    letter-spacing: 0;
}

.cloud-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin-top: 58px;
}

.cloud-info-card {
    min-height: 178px;
    padding: 28px 30px;
    border-radius: 18px;
    background: #f8f8f8;
    text-align: left;
}

.cloud-info-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

.cloud-info-title svg {
    width: 24px;
    height: 24px;
}

.cloud-info-title h3 {
    margin: 0;
    font-size: 1.18rem;
    font-weight: 930;
}

.cloud-info-title.blue { color: var(--cloud-blue); }
.cloud-info-title.pink { color: var(--cloud-pink); }
.cloud-info-title.violet { color: var(--cloud-violet); }
.cloud-info-title.green { color: #6aa23a; }
.cloud-info-title.gold { color: var(--cloud-gold); }
.cloud-info-title.red { color: var(--cloud-red); }

.cloud-info-card p,
.cloud-problem-card p,
.cloud-security p {
    margin: 0;
    color: #858585;
    font-size: 1.02rem;
    line-height: 1.45;
    font-weight: 680;
}

.cloud-problems {
    padding: 92px 0 78px;
}

.cloud-problems h2 {
    max-width: 850px;
    margin-left: 0;
    text-align: left;
}

.cloud-problem-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin-top: 68px;
}

.cloud-problem-card h3 {
    margin: 0 0 16px;
    font-size: 1.02rem;
    font-weight: 930;
}

.cloud-problem-card > div {
    display: grid;
    place-items: center;
    min-height: 178px;
    margin-top: 30px;
    border-radius: 18px;
}

.cloud-problem-card svg {
    width: 46px;
    height: 46px;
}

.cloud-problem-card.blue h3,
.cloud-problem-card.blue svg { color: var(--cloud-blue); }
.cloud-problem-card.pink h3,
.cloud-problem-card.pink svg { color: var(--cloud-pink); }
.cloud-problem-card.violet h3,
.cloud-problem-card.violet svg { color: var(--cloud-violet); }
.cloud-problem-card.blue > div { background: #e6f0ff; }
.cloud-problem-card.pink > div { background: #f8ddf5; }
.cloud-problem-card.violet > div { background: #e8e4ff; }

.cloud-security {
    padding: 78px 0 98px;
}

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

.cloud-security h2 {
    margin: 0 0 14px;
    font-size: 1.24rem;
    font-weight: 950;
    line-height: 1.18;
}

.cloud-security-panel {
    display: grid;
    place-items: center;
    min-height: 280px;
    margin-top: 28px;
    border-radius: 18px;
}

.cloud-security-panel span {
    display: grid;
    place-items: center;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.66rem;
    font-weight: 950;
}

.cloud-security-panel strong {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.cloud-security-panel.blue {
    background: #e4efff;
}

.cloud-security-panel.blue span {
    background: var(--cloud-blue);
}

.cloud-security-panel.violet {
    background: #e8e4ff;
}

.cloud-security-panel.violet span {
    background: var(--cloud-violet);
}

.cloud-final-cta {
    padding: 78px 24px 92px;
    text-align: center;
}

.cloud-final-cta h2 {
    max-width: 760px;
    margin-bottom: 28px;
}

.cloud-legal-hero {
    display: grid;
    justify-items: center;
    padding: 190px 24px 52px;
    background: #fbfbfb;
    text-align: center;
}

.cloud-legal-hero h1 {
    max-width: 820px;
    margin: 10px 0 0;
    font-size: clamp(2.7rem, 4.2vw, 4.2rem);
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: 0;
}

.cloud-legal-hero > p:last-child {
    margin: 18px 0 0;
    color: var(--cloud-muted);
    font-size: 1rem;
    font-weight: 760;
}

.cloud-legal-content {
    width: min(calc(100% - 48px), 980px);
    margin: 0 auto;
    padding: 40px 0 88px;
}

.cloud-legal-card {
    display: grid;
    gap: 18px;
    padding: 42px 0 0;
    border-top: 1px solid #eeeeee;
}

.cloud-legal-card h2 {
    margin: 24px 0 0;
    font-size: 1.28rem;
    line-height: 1.2;
    font-weight: 920;
    letter-spacing: 0;
}

.cloud-legal-card h2:first-child {
    margin-top: 0;
}

.cloud-legal-card p,
.cloud-legal-card li {
    margin: 0;
    color: #6f6f6f;
    font-size: 1rem;
    line-height: 1.72;
    font-weight: 620;
}

.cloud-legal-card ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 20px;
}

.cloud-legal-card a {
    color: var(--cloud-blue);
    font-weight: 850;
}

.cloud-footer {
    display: grid;
    grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.15fr);
    gap: 70px;
    padding: 88px 24px 72px;
    border-top: 1px solid #f1f1f1;
}

.cloud-footer-brand {
    display: inline-flex;
    width: 138px;
    margin-bottom: 24px;
}

.cloud-footer-headline {
    max-width: 390px;
    margin: 0 0 24px;
    font-size: 1.24rem;
    font-weight: 900;
    line-height: 1.32;
}

.cloud-footer nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 70px;
}

.cloud-footer h3 {
    margin: 0 0 18px;
    font-size: 1rem;
}

.cloud-footer nav a {
    display: block;
    margin-top: 14px;
    color: #858585;
    font-size: 0.94rem;
    font-weight: 680;
}

@media (max-width: 1180px) {
    .cloud-nav-shell {
        top: 18px;
        grid-template-columns: 144px minmax(0, 1fr);
        min-height: auto;
        border-radius: 32px;
        padding: 14px 22px;
    }

    .cloud-brand {
        width: 142px;
    }

    .cloud-nav-actions {
        grid-column: 1 / -1;
        justify-content: space-between;
    }

    .cloud-nav {
        justify-content: flex-end;
        gap: 24px;
    }

    .cloud-hero {
        min-height: 760px;
        padding-top: 250px;
    }

    .cloud-hero-copy h1 {
        font-size: 3.25rem;
    }

    .cloud-hero-copy p {
        font-size: 1.08rem;
    }

    .cloud-hero-device {
        right: -110px;
    }

    .cloud-hero-docs {
        width: 680px;
        bottom: -160px;
    }

    .cloud-attendance-sheet {
        width: 660px;
    }

    .cloud-card-grid,
    .cloud-problem-grid {
        gap: 22px;
    }

    .cloud-audience h2,
    .cloud-problems h2,
    .cloud-final-cta h2 {
        font-size: 2.3rem;
    }
}

@media (max-width: 860px) {
    .cloud-nav-shell {
        top: 12px;
        width: min(calc(100% - 32px), 720px);
        grid-template-columns: 1fr;
        border-radius: 24px;
        padding: 16px;
    }

    .cloud-brand {
        width: 136px;
    }

    .cloud-nav {
        justify-content: flex-start;
        overflow-x: auto;
        gap: 12px;
        padding-bottom: 4px;
        font-size: 0.78rem;
    }

    .cloud-nav-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        width: 100%;
        min-width: 0;
        white-space: normal;
    }

    .cloud-nav-primary {
        min-width: 0;
        min-height: 48px;
        width: min(100%, 280px);
        max-width: 280px;
        padding-inline: 18px;
    }

    .cloud-hero {
        min-height: 850px;
        margin-top: 0;
        padding: 330px 20px 0;
    }

    .cloud-hero-copy h1 {
        max-width: 310px;
        font-size: 1.68rem;
        line-height: 1.16;
    }

    .cloud-hero-copy p {
        max-width: 300px;
        margin-top: 22px;
        font-size: 0.88rem;
    }

    .cloud-hero-actions {
        display: grid;
        grid-template-columns: 1fr;
        width: min(100%, 280px);
    }

    .cloud-button {
        width: 100%;
        max-width: 100%;
        min-height: 48px;
        padding-inline: 18px;
    }

    .cloud-trust-row {
        display: grid;
        justify-items: start;
        gap: 14px;
        margin-top: 38px;
        font-size: 0.88rem;
    }

    .cloud-hero-paperclip,
    .cloud-hero-device,
    .cloud-showcase-keyboard,
    .cloud-showcase-clip {
        display: none;
    }

    .cloud-hero-docs {
        left: 0;
        right: 0;
        bottom: -88px;
        display: flex;
        justify-content: center;
        width: 100%;
        overflow: hidden;
        transform: none;
    }

    .cloud-attendance-sheet {
        flex: 0 0 600px;
        transform: scale(0.56);
        transform-origin: top center;
    }

    .cloud-sheet-left,
    .cloud-sheet-right {
        display: none;
    }

    .cloud-showcase {
        min-height: auto;
        padding: 136px 20px 68px;
    }

    .cloud-product-card-back {
        display: none;
    }

    .cloud-product-grid,
    .cloud-sheet-parties,
    .cloud-security-grid,
    .cloud-footer,
    .cloud-footer nav {
        grid-template-columns: 1fr;
    }

    .cloud-product-grid > div + div,
    .cloud-sheet-parties > div + div {
        border-left: 0;
        border-top: 1px solid #eeeeee;
    }

    .cloud-product-grid > div,
    .cloud-sheet-parties > div {
        min-height: auto;
        padding: 28px 24px;
    }

    .cloud-product-top,
    .cloud-sheet-table,
    .cloud-product-table {
        padding-inline: 24px;
    }

    .cloud-product-table > div,
    .cloud-sheet-table > div {
        grid-template-columns: minmax(0, 1fr) 58px 58px;
        font-size: 0.82rem;
    }

    .cloud-audience,
    .cloud-problems,
    .cloud-security,
    .cloud-final-cta,
    .cloud-footer {
        width: min(calc(100% - 40px), 720px);
    }

    .cloud-audience,
    .cloud-problems,
    .cloud-security {
        padding-block: 76px;
    }

    .cloud-audience h2,
    .cloud-problems h2,
    .cloud-final-cta h2 {
        font-size: 2.25rem;
    }

    .cloud-card-grid,
    .cloud-problem-grid {
        grid-template-columns: 1fr;
        margin-top: 46px;
    }

    .cloud-info-card {
        min-height: auto;
        padding: 28px 26px;
    }

    .cloud-info-card p,
    .cloud-problem-card p,
    .cloud-security p {
        font-size: 1rem;
    }

    .cloud-problem-card > div,
    .cloud-security-panel {
        min-height: 190px;
    }

    .cloud-security-panel span {
        width: 120px;
        height: 120px;
        font-size: 1.55rem;
    }

    .cloud-final-cta {
        padding: 74px 0 84px;
    }

    .cloud-legal-hero {
        padding: 148px 20px 44px;
    }

    .cloud-legal-content {
        width: min(calc(100% - 40px), 720px);
        padding: 32px 0 68px;
    }

    .cloud-legal-card {
        padding-top: 34px;
    }

    .cloud-footer {
        gap: 42px;
        padding: 74px 0 64px;
    }
}

/* Login reference layout */
.login-shell {
    display: block;
    min-height: 100vh;
    padding: 0;
    background: #ffffff;
    font-family: Poppins, Inter, "Segoe UI", system-ui, sans-serif;
}

.login-card {
    display: grid;
    grid-template-columns: minmax(0, 54%) minmax(390px, 46%);
    grid-template-rows: 1fr;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
}

.login-hero {
    position: relative;
    display: grid;
    min-height: 100vh;
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(circle at 35% 38%, rgba(75, 118, 255, 0.35), transparent 28%),
        radial-gradient(circle at 78% 78%, rgba(85, 209, 105, 0.9), transparent 34%),
        linear-gradient(138deg, #2e46d6 0%, #263fa9 42%, #236474 72%, #54c464 100%);
}

.login-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
    opacity: 0.2;
    background:
        radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.22), transparent 18%),
        radial-gradient(circle at 74% 45%, rgba(255, 255, 255, 0.14), transparent 22%);
}

.login-hero::after {
    content: "";
    position: absolute;
    inset: -18% -8%;
    background: radial-gradient(circle at 50% 50%, transparent 0 42%, rgba(7, 16, 55, 0.2) 78%);
    pointer-events: none;
}

.login-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: clamp(38px, 5.4vh, 70px) clamp(30px, 5.4vw, 104px);
    text-align: center;
    box-sizing: border-box;
}

.login-bot-brand {
    display: grid;
    justify-items: center;
    gap: clamp(12px, 1.2vw, 20px);
}

.login-bot-lockup {
    --jornadabot-gap: clamp(12px, 1.2vw, 20px);
    --jornadabot-robot-size: clamp(158px, 13.5vw, 246px);
    --jornadabot-wordmark-size: clamp(2.7rem, 4.05vw, 4.9rem);
    --jornadabot-wordmark-weight: 760;
    --jornadabot-bot-weight: 820;
}

.login-hero-subtitle {
    margin-top: clamp(18px, 2.2vh, 28px);
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(0.92rem, 1vw, 1.14rem);
    line-height: 1.28;
    font-weight: 760;
}

.login-hero-subtitle strong {
    color: #6edf7c;
}

.login-hero-rule {
    display: block;
    width: 54px;
    height: 4px;
    margin: clamp(18px, 2.8vh, 28px) 0 clamp(18px, 2.8vh, 28px);
    border-radius: 999px;
    background: #76df83;
}

.login-hero-copy {
    max-width: 540px;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(0.84rem, 0.9vw, 1rem);
    line-height: 1.46;
    font-weight: 560;
}

.login-feature-list {
    position: static;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: min(100%, 680px);
    gap: 0;
    margin-top: clamp(32px, 5vh, 54px);
}

.login-feature-list > div {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    align-items: start;
    gap: 8px;
    min-width: 0;
    padding: 0 clamp(8px, 1.2vw, 20px);
    border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.login-feature-list > div:last-child {
    border-right: 0;
}

.login-feature-list svg {
    width: 32px;
    height: 32px;
    fill: none;
    stroke: #74e284;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-feature-list p {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(0.76rem, 0.82vw, 0.9rem);
    line-height: 1.22;
    font-weight: 620;
}

.login-panel {
    display: grid;
    place-items: center;
    min-height: 100vh;
    background: #ffffff;
}

.login-panel-inner {
    display: flex;
    flex-direction: column;
    width: min(100%, 424px);
    min-height: auto;
    padding: clamp(38px, 6vh, 64px) 0;
    box-sizing: border-box;
}

.login-brand-logo {
    display: block;
    width: min(100%, 302px);
    height: auto;
    margin: 0 0 clamp(38px, 5vh, 56px);
}

.login-heading {
    margin-bottom: 22px;
}

.login-heading h1 {
    margin: 0;
    color: #242832;
    font-size: 1.2rem;
    line-height: 1.15;
    font-weight: 780;
    letter-spacing: 0;
}

.login-error {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #fff0f0;
    color: #b43232;
    font-size: 0.94rem;
    font-weight: 700;
}

.login-provider {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 56px;
    padding: 0 20px 0 22px;
    border: 0;
    border-radius: 8px;
    background: #efefef;
    color: #8b8b8b;
    font-size: 0.98rem;
    font-weight: 520;
    cursor: not-allowed;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.google-letter {
    color: #8f8f8f;
    font-family: Arial, sans-serif;
    font-size: 1.28rem;
    font-weight: 500;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 22px;
    margin: 24px 0 22px;
    color: #777777;
    font-size: 0.92rem;
    font-weight: 620;
}

.login-divider::before,
.login-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #dfdfdf;
}

.login-divider span {
    flex: 0 0 auto;
}

.login-form {
    display: grid;
    gap: 0;
}

.login-field-group {
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    background: #efefef;
}

.login-field {
    display: flex;
    align-items: center;
    min-height: 58px;
    gap: 0;
    border-bottom: 2px solid #ffffff;
    background: #efefef;
    color: #242832;
    font-size: 0.96rem;
    font-weight: 520;
}

.login-field:last-child {
    border-bottom: 0;
}

.login-field input {
    width: 100%;
    min-width: 0;
    height: 58px;
    border: 0;
    outline: 0;
    padding: 0 22px;
    background: transparent;
    color: #22252c;
    font: inherit;
}

.login-field input::placeholder {
    color: #888888;
    opacity: 1;
}

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

.login-show-button {
    flex: 0 0 auto;
    min-width: 76px;
    height: 58px;
    padding: 0 18px 0 8px;
    border: 0;
    background: transparent;
    color: #777777;
    font: inherit;
    font-weight: 620;
    cursor: pointer;
}

.login-show-button:hover,
.login-show-button:focus-visible {
    color: #242832;
}

.login-submit {
    width: 100%;
    min-height: 58px;
    border: 0;
    border-radius: 0 0 8px 8px;
    background: linear-gradient(135deg, #272727 0%, #1f1f1f 100%);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 760;
    cursor: pointer;
    box-shadow: none;
}

.login-link-stack {
    display: grid;
    justify-items: center;
    gap: 16px;
    margin-top: 22px;
}

.login-link-stack button,
.login-demo-link button {
    border: 0;
    padding: 0;
    background: transparent;
    color: #6f7787;
    font: inherit;
    font-weight: 650;
    cursor: not-allowed;
}

.login-link-stack button {
    font-size: 0.92rem;
}

.login-demo-link {
    margin: 30px 0 0;
    color: #888888;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 520;
}

.login-demo-link strong {
    color: #242832;
    font-weight: 650;
}

.login-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

@media (max-width: 1180px) {
    .login-card {
        grid-template-columns: minmax(0, 51%) minmax(360px, 49%);
    }

    .login-panel-inner {
        width: min(calc(100% - 56px), 408px);
    }

    .login-feature-list {
        width: min(100%, 620px);
    }
}

@media (max-width: 980px) {
    .login-card {
        grid-template-columns: 1fr;
    }

    .login-hero,
    .login-panel {
        min-height: auto;
    }

    .login-hero-content {
        min-height: 600px;
    }

    .login-panel-inner {
        width: min(calc(100% - 48px), 424px);
        padding: 54px 0 66px;
    }
}

@media (max-width: 640px) {
    .login-hero-content {
        min-height: 550px;
        padding: 40px 22px 34px;
    }

    .login-bot-lockup {
        --jornadabot-robot-size: min(58vw, 190px);
        --jornadabot-wordmark-size: clamp(2.55rem, 12vw, 3.5rem);
    }

    .login-feature-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 22px;
        margin-top: 34px;
    }

    .login-feature-list > div:nth-child(2n) {
        border-right: 0;
    }

    .login-feature-list svg {
        width: 30px;
        height: 30px;
    }

    .login-panel-inner {
        width: min(calc(100% - 36px), 400px);
        padding: 44px 0 56px;
    }

    .login-brand-logo {
        width: min(100%, 248px);
        margin-bottom: 34px;
    }

    .login-provider,
    .login-field,
    .login-field input,
    .login-show-button,
    .login-submit {
        min-height: 58px;
        height: 58px;
    }
}
