
:root {
    --smcl-red: #d71920;
    --smcl-red-dark: #a90f16;
    --smcl-black: #151515;
    --smcl-silver: #aeb4bb;
    --smcl-background: #f3f4f6;
    --smcl-white: #ffffff;
    --smcl-text: #22252a;
    --smcl-muted: #68717d;
    --smcl-border: #e0e3e8;
    --smcl-radius: 14px;
    --smcl-shadow: 0 5px 24px rgba(20, 20, 20, .06);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--smcl-background);
    color: var(--smcl-text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--smcl-red);
    text-decoration: none;
}

a:hover {
    color: var(--smcl-red-dark);
    text-decoration: underline;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
input[type="submit"] {
    cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(215, 25, 32, .3);
    outline-offset: 2px;
}

button,
.btn {
    border: 0;
    border-radius: 9px;
    padding: 11px 16px;
    background: var(--smcl-red);
    color: white;
    font-weight: 700;
    transition: background .15s ease, transform .15s ease;
}

button:hover,
.btn:hover {
    background: var(--smcl-red-dark);
    color: white;
    text-decoration: none;
}

button:active {
    transform: translateY(1px);
}

input,
select,
textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border: 1px solid #cbd0d7;
    border-radius: 9px;
    padding: 11px 12px;
    background: white;
    color: var(--smcl-text);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--smcl-red);
    outline: 2px solid rgba(215, 25, 32, .12);
}

textarea {
    min-height: 85px;
    resize: vertical;
}

label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 700;
}

.card,
.panel,
.content-card {
    min-width: 0;
    background: var(--smcl-white);
    border: 1px solid var(--smcl-border);
    border-radius: var(--smcl-radius);
    padding: 22px;
    margin-bottom: 20px;
    box-shadow: var(--smcl-shadow);
}

h1,
h2,
h3 {
    color: var(--smcl-black);
    line-height: 1.25;
}

h1 {
    font-size: clamp(26px, 4vw, 36px);
}

h2 {
    font-size: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 11px;
    border-bottom: 1px solid var(--smcl-border);
    text-align: left;
    vertical-align: top;
}

th {
    background: #f0f1f3;
    color: var(--smcl-black);
    font-size: 13px;
}

tr:hover td {
    background: #fafafa;
}

.table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-wrap table {
    min-width: 560px;
}

.actions,
.button-row {
    display: flex;
    gap: 9px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 14px;
}

.alert,
.error-message {
    padding: 13px 15px;
    border: 1px solid #e7b7ba;
    border-radius: 9px;
    background: #fff0f1;
    color: #80171d;
    margin-bottom: 16px;
    overflow-wrap: anywhere;
}

.success-message {
    padding: 13px 15px;
    border: 1px solid #b7dec1;
    border-radius: 9px;
    background: #eefaf1;
    color: #175c2b;
    margin-bottom: 16px;
}

.muted,
.small {
    color: var(--smcl-muted);
    font-size: 12px;
}

.site-header,
.navbar {
    background: var(--smcl-black);
    color: white;
    padding: 14px 22px;
}

.site-header a,
.navbar a {
    color: white;
}

.site-header .active,
.navbar .active {
    border-bottom: 3px solid var(--smcl-red);
}

.site-container {
    width: min(1240px, calc(100% - 32px));
    margin: 24px auto;
}

.badge {
    display: inline-block;
    border-radius: 30px;
    padding: 4px 9px;
    background: #eceef1;
    color: #333;
    font-size: 12px;
    font-weight: 700;
}

.badge.pending {
    background: #fff2d7;
    color: #754b00;
}

.badge.completed {
    background: #e4f7e9;
    color: #1c6730;
}

.site-header,
.navbar {
    overflow-wrap: anywhere;
}

.site-header > *,
.navbar > * {
    min-width: 0;
}

@media (max-width: 700px) {
    .card,
    .panel,
    .content-card {
        padding: 15px;
        border-radius: 12px;
        margin-bottom: 14px;
    }

    .site-container {
        width: calc(100% - 20px);
        margin: 12px auto;
    }

    table {
        font-size: 13px;
    }

    th,
    td {
        padding: 8px;
    }

    button,
    .btn,
    input[type="submit"] {
        min-height: 42px;
    }

    input,
    select,
    textarea {
        font-size: 16px;
    }

    .actions,
    .button-row {
        gap: 8px;
    }

    .actions > *,
    .button-row > * {
        max-width: 100%;
    }
}

@media (max-width: 380px) {
    .site-header,
    .navbar {
        padding: 12px;
    }

    .site-container {
        width: calc(100% - 16px);
    }

    .card,
    .panel,
    .content-card {
        padding: 12px;
    }
}

@media print {
    body {
        background: white !important;
        color: black !important;
    }

    .no-print,
    .site-header,
    .navbar {
        display: none !important;
    }

    .card,
    .panel,
    .content-card {
        box-shadow: none;
        border: 0;
    }
}
