:root {
    --app-primary: #2563eb;
    --app-primary-dark: #1d4ed8;
    --app-success: #15803d;
    --app-danger: #dc2626;
    --app-ink: #172033;
    --app-line: #e2e8f0;
    --app-background: #f4f7fb;
    --app-radius: 18px;
    --app-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--app-ink);
    background:
        radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.08), transparent 28rem),
        linear-gradient(180deg, #f8fafc 0%, var(--app-background) 100%);
    font-family: Tahoma, "Segoe UI", Arial, sans-serif;
    line-height: 1.8;
}

body,
input,
select,
textarea,
button {
    font-family: Tahoma, "Segoe UI", Arial, sans-serif;
}

a {
    color: var(--app-primary);
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

a:hover {
    color: var(--app-primary-dark);
}

.container {
    width: calc(100% - 32px);
    max-width: 1180px;
    margin: 32px auto;
    padding: 28px;
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: var(--app-radius);
    box-shadow: var(--app-shadow);
}

h1,
h2,
h3,
h4 {
    margin-top: 0;
    color: var(--app-ink);
    line-height: 1.45;
}

h1 {
    font-size: clamp(1.55rem, 2.4vw, 2.15rem);
}

h2 {
    font-size: clamp(1.25rem, 2vw, 1.7rem);
}

h3 {
    font-size: 1.15rem;
}

hr {
    height: 1px;
    margin: 28px 0;
    border: 0;
    background: linear-gradient(90deg, transparent, var(--app-line), transparent);
}

.form,
form {
    margin: 0;
}

.form label,
form label {
    display: block;
    margin: 14px 0 6px;
    color: #334155;
    font-size: .92rem;
    font-weight: 700;
}

.form input,
.form select,
.form textarea,
form input[type="text"],
form input[type="number"],
form input[type="password"],
form input[type="date"],
form input[type="file"],
form select,
form textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 13px;
    color: var(--app-ink);
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 11px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.form input:focus,
.form select:focus,
.form textarea:focus,
form input:focus,
form select:focus,
form textarea:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}

button,
.btn,
a.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 42px;
    padding: 9px 16px;
    color: #fff;
    background: var(--app-primary);
    border: 0;
    border-radius: 10px;
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 5px 12px rgba(37, 99, 235, .16);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

button:hover,
.btn:hover,
a.btn:hover {
    color: #fff;
    filter: brightness(.96);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(37, 99, 235, .2);
}

.btn-back,
.back {
    background: #64748b !important;
}

.btn-save,
.approve {
    background: var(--app-success) !important;
}

.reject {
    background: var(--app-danger) !important;
}

.actions,
.filter-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

table {
    width: 100%;
    margin-top: 18px;
    border: 1px solid var(--app-line);
    border-radius: 14px;
    border-spacing: 0;
    background: #fff;
    overflow: hidden;
}

table th,
table td {
    padding: 12px 10px;
    border: 0;
    border-bottom: 1px solid #edf2f7;
    text-align: center;
    vertical-align: middle;
}

table th {
    color: #334155;
    background: #f1f5f9;
    font-size: .86rem;
    font-weight: 800;
    white-space: nowrap;
}

table tbody tr {
    transition: background-color .18s ease;
}

table tbody tr:hover {
    background: #f8fbff;
}

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

.table-responsive {
    width: 100%;
    overflow-x: auto;
    border-radius: 14px;
}

.card,
.summary-box,
.filter-box,
.empty {
    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: 16px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .06);
}

.summary-box {
    padding: 16px 18px;
    color: #164e63;
    background: linear-gradient(135deg, #ecfeff, #f0f9ff);
    border-color: #bae6fd;
}

.filter-box {
    padding: 18px;
    background: linear-gradient(135deg, #fffbeb, #fff7ed);
    border-color: #fde68a;
}

.empty {
    padding: 16px 18px;
    color: #166534;
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.menu {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 26px;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid var(--app-line);
    border-radius: 15px;
}

.menu a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 14px;
    color: #fff;
    background: var(--app-primary);
    border-radius: 10px;
    font-size: .86rem;
    font-weight: 700;
    text-decoration: none;
}

.menu a:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(37, 99, 235, .18);
}

.text-success {
    color: var(--app-success) !important;
    font-weight: 700;
}

.text-danger {
    color: var(--app-danger) !important;
    font-weight: 700;
}

.text-blue {
    color: var(--app-primary) !important;
    font-weight: 700;
}

footer {
    color: #64748b;
    padding: 16px 0 24px;
    font-size: .82rem;
    text-align: center;
}

@media (max-width: 768px) {
    .container {
        width: calc(100% - 20px);
        margin: 14px auto;
        padding: 18px 14px;
        border-radius: 14px;
    }

    .menu {
        gap: 7px;
        padding: 9px;
    }

    .menu a {
        flex: 1 1 calc(50% - 7px);
        justify-content: center;
        padding-inline: 8px;
        font-size: .78rem;
        text-align: center;
    }

    table {
        min-width: 720px;
    }

    .actions > *,
    .filter-actions > * {
        flex: 1 1 100%;
    }

    button,
    .btn,
    a.btn {
        width: 100%;
    }
}
