:root {
    --sipedy-blue: #0b2a4a;
    --sipedy-blue-light: #1f6fb2;
    --sipedy-green: #6bcf63;
    --sipedy-green-dark: #4caf50;
    --sipedy-bg: #eef2f7;
    --sipedy-surface: #ffffff;
    --sipedy-border: #dde5ee;
    --sipedy-text: #243041;
    --sipedy-muted: #607086;
    --sipedy-shadow: 0 16px 35px rgba(11, 42, 74, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.4;
    color: var(--sipedy-text);
    background: linear-gradient(145deg, #f5f7fa 0%, #e9eff6 100%);
}

html {
    scrollbar-color: rgba(11, 42, 74, .35) transparent;
}

*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

*::-webkit-scrollbar-track,
*::-webkit-scrollbar-track-piece,
*::-webkit-scrollbar-corner,
*::-webkit-scrollbar-button {
    background: transparent !important;
}

*::-webkit-scrollbar-thumb {
    background: rgba(11, 42, 74, .32);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.button {
    border: 0;
    border-radius: 14px;
    padding: .56rem .86rem;
    font: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
}

.button-small {
    padding: .45rem .75rem;
    border-radius: 10px;
    font-size: .85rem;
}

.button.primary {
    background: linear-gradient(135deg, var(--sipedy-blue) 0%, var(--sipedy-blue-light) 100%);
    color: white;
}

.button.secondary {
    background: rgba(11, 42, 74, .08);
    color: var(--sipedy-blue);
}

.button.ghost {
    background: transparent;
    border: 1px solid var(--sipedy-border);
}

.card,
.surface {
    background: var(--sipedy-surface);
    border: 1px solid var(--sipedy-border);
    border-radius: 22px;
    box-shadow: var(--sipedy-shadow);
}

.page-header {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    align-items: flex-start;
    margin-bottom: .8rem;
}

.page-header > div {
    display: grid;
    gap: .1rem;
    min-width: 0;
}

.page-header > .page-header-actions {
    display: inline-flex;
}

.page-header h1 {
    margin: 0;
    font-size: 1.16rem;
    line-height: 1.15;
}

.page-header.page-header-compact {
    align-items: center;
    margin-bottom: .6rem;
}

.page-header-title {
    display: grid;
    gap: .08rem;
    min-width: 0;
}

.page-header .form-actions {
    margin-top: 0;
}

.page-header-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: .55rem;
    flex-wrap: nowrap;
    margin: 0;
    flex-shrink: 0;
}

.page-header-actions .button {
    white-space: nowrap;
}

.eyebrow {
    color: var(--sipedy-muted);
    font-size: .71rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    line-height: 1.1;
}

.alert,
.toast {
    border-radius: 14px;
    padding: 1rem 1.15rem;
    margin-top: 1rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.45;
}

.alert.error,
.toast.error {
    background: #fee2e2;
    color: #991b1b;
}

.alert.success,
.toast.success {
    background: #dcfce7;
    color: #166534;
}

.metric-grid,
.grid {
    display: grid;
    gap: 1rem;
}

.metric-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.metric-card {
    background: linear-gradient(135deg, #0b2a4a 0%, #1f6fb2 100%);
    color: #fff;
}

.metric-card span,
.metric-card strong {
    color: inherit;
}

.metric-card-icon {
    width: 24px;
    height: 24px;
    opacity: .92;
}

.muted {
    color: var(--sipedy-muted);
    font-size: 13px;
}

.summary-pill {
    display: grid;
    gap: 4px;
    padding: 11px 13px;
    border-radius: 14px;
    border: 1px solid var(--sipedy-border);
    background: #f8fafc;
}

.summary-pill.total {
    background: #eef4ff;
    border-color: #93c5fd;
}

.summary-list {
    display: grid;
    gap: .8rem;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-top: 1rem;
}

.page-link {
    padding: .55rem .85rem;
    border-radius: 12px;
    border: 1px solid var(--sipedy-border);
    background: #fff;
}

.page-link.active {
    background: var(--sipedy-blue);
    color: #fff;
    border-color: var(--sipedy-blue);
}
