:root {
    color-scheme: light;
    --bg: #f4f6fb;
    --panel: #ffffff;
    --text: #142033;
    --muted: #667085;
    --line: #d9e0ec;
    --accent: #ff8c00;
    --accent-dark: #e67e00;
    --accent-light: #ffb366;
    --shadow: 0 18px 40px rgba(255, 140, 0, 0.12);
    --shadow-sm: 0 4px 12px rgba(255, 140, 0, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(180deg, #fff5f0 0%, #f4f6fb 40%, #fff5f0 100%);
    color: var(--text);
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.page-shell {
    width: min(1200px, calc(100% - 32px));
    margin: 24px auto 40px;
}

.topbar,
.content-card,
.form-panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.topbar {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    padding: 24px 28px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ff8c00 0%, #ff9f1a 100%);
    color: white;
}

.topbar-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-logo {
    max-height: 50px;
    width: auto;
}

.topbar-title {
    padding: 0;
}

.topbar h1,
.section-head h2,
.auth-copy h2 {
    margin: 4px 0 0;
    color: white;
}

.topbar .eyebrow {
    color: rgba(255, 255, 255, 0.8);
}

.button-topbar {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.button-topbar:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
}

.button-topbar-logout {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    border-color: rgba(255, 255, 255, 0.4);
}

.button-topbar-logout:hover {
    background: rgba(220, 53, 69, 0.8);
    border-color: rgba(220, 53, 69, 1);
}

.topbar-actions,
.filter-actions,
.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.content-card {
    padding: 28px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 18px;
}

.eyebrow {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 12px;
    color: var(--muted);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-weight: 700;
    cursor: pointer;
}

.button-primary {
    background: var(--accent);
    color: white;
}

.button-primary:hover {
    background: var(--accent-dark);
    text-decoration: none;
}

.button-secondary {
    background: #f8fafc;
    color: var(--text);
    border-color: var(--line);
}

.form-panel {
    padding: 20px;
    margin-bottom: 18px;
}

.filter-row,
.report-form,
.auth-form {
    display: grid;
    gap: 16px;
}

.grid-2 {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
    display: grid;
    gap: 8px;
    font-size: 14px;
    color: var(--muted);
}

input,
textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    font: inherit;
    color: var(--text);
    background: #fff;
}

input:focus,
textarea:focus {
    outline: 2px solid rgba(255, 140, 0, 0.15);
    border-color: var(--accent);
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 18px;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 980px;
    background: white;
}

th,
td {
    padding: 14px 16px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--line);
}

th {
    background: linear-gradient(135deg, #fff5f0 0%, #ffe8dc 100%);
    color: #ff8c00;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

tbody tr:hover {
    background: #f9fbff;
}

.empty-state {
    text-align: center;
    color: var(--muted);
    padding: 28px;
}

.details-preview {
    font-size: 13px;
    line-height: 1.5;
    color: #555;
    max-height: 80px;
    overflow: hidden;
    position: relative;
}

.details-preview::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(to bottom, transparent, white);
}

.auth-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
}

.auth-copy {
    padding: 20px 0;
}

.auth-form h3 {
    margin: 0 0 8px;
}

.messages {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.message,
.form-errors {
    padding: 12px 14px;
    border-radius: 12px;
    background: #fef3c7;
    color: #92400e;
}

@media (max-width: 860px) {
    .topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .topbar-actions {
        width: 100%;
    }

    .section-head,
    .auth-layout,
    .grid-2 {
        grid-template-columns: 1fr;
        flex-direction: column;
    }
}