/* AGB Intranet demo shell */
:root {
    color-scheme: light;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f3f5f7;
    color: #17202a;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(180deg, #eef2f5 0, #f8f9fa 18rem);
}

main {
    width: min(46rem, calc(100% - 2rem));
    margin: 3rem auto;
    padding: 2rem;
    background: #fff;
    border: 1px solid #dfe4e8;
    border-radius: 1rem;
    box-shadow: 0 1rem 2.5rem rgba(30, 45, 60, 0.08);
}

h1 {
    margin: 0 0 1.5rem;
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    line-height: 1.15;
}

h2 {
    margin: 2rem 0 0.8rem;
    font-size: 1.25rem;
    line-height: 1.25;
}

p,
li,
label,
input,
select,
button,
table {
    font-size: 1rem;
    line-height: 1.5;
}

ul {
    display: grid;
    gap: 0.65rem;
    padding-left: 1.25rem;
}

a {
    color: #1557a0;
    text-underline-offset: 0.18em;
}

a:hover {
    text-decoration-thickness: 0.14em;
}

form {
    display: grid;
    gap: 1rem;
    margin: 1.4rem 0;
}

label {
    display: grid;
    gap: 0.4rem;
    font-weight: 600;
}

label:has(input[type="checkbox"]) {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

input,
select,
button {
    width: 100%;
    min-height: 2.75rem;
    border-radius: 0.55rem;
}

input,
select {
    border: 1px solid #b8c2cc;
    padding: 0.55rem 0.7rem;
    background: #fff;
    color: inherit;
}

input[type="checkbox"] {
    width: 1.2rem;
    min-height: 1.2rem;
}

input:focus-visible,
select:focus-visible,
button:focus-visible,
a:focus-visible {
    outline: 3px solid rgba(21, 87, 160, 0.28);
    outline-offset: 2px;
}

button {
    border: 1px solid #174f87;
    padding: 0.65rem 1rem;
    background: #1b64ad;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

button:hover:not(:disabled) {
    background: #174f87;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.table-scroll {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #dfe4e8;
    border-radius: 0.6rem;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    min-width: 52rem;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
}

th,
td {
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid #e5e9ed;
    text-align: left;
    vertical-align: top;
    white-space: nowrap;
}

th {
    background: #f3f5f7;
    font-weight: 700;
}

tbody tr:last-child td {
    border-bottom: 0;
}

tbody tr:nth-child(even) {
    background: #fafbfc;
}

[role="alert"] {
    padding: 0.8rem 1rem;
    border-left: 0.3rem solid #a33a2b;
    border-radius: 0.35rem;
    background: #fff3f1;
}

strong {
    font-variant-numeric: tabular-nums;
}

@media (max-width: 40rem) {
    main {
        width: min(100% - 1rem, 46rem);
        margin: 0.5rem auto;
        padding: 1.25rem;
        border-radius: 0.75rem;
    }

    .table-scroll {
        margin-inline: -0.25rem;
        width: calc(100% + 0.5rem);
    }
}
