:root {
    color-scheme: light;
    font-family: Arial, Helvetica, sans-serif;
    background: #f6f7f8;
    color: #1f2933;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
}

.page {
    width: min(1180px, calc(100% - 32px));
    margin: 28px auto;
}

.topbar {
    align-items: end;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin-bottom: 18px;
}

h1 {
    font-size: 28px;
    margin: 0 0 6px;
}

h2 {
    font-size: 20px;
    margin: 0 0 10px;
}

p {
    margin: 0;
    color: #5b6571;
}

.upload-form {
    align-items: center;
    display: flex;
    gap: 10px;
}

.toolbar {
    align-items: center;
    display: flex;
    gap: 14px;
}

input[type="file"] {
    background: #ffffff;
    border: 1px solid #cbd5df;
    border-radius: 6px;
    padding: 9px;
}

input[type="text"],
input[type="password"] {
    background: #ffffff;
    border: 1px solid #cbd5df;
    border-radius: 6px;
    font: inherit;
    padding: 11px 12px;
    width: 100%;
}

button {
    background: #165a72;
    border: 0;
    border-radius: 6px;
    color: #ffffff;
    cursor: pointer;
    font-weight: 700;
    padding: 11px 16px;
}

.logout-link {
    color: #4b5a67;
    font-weight: 700;
    text-decoration: none;
}

.login-page {
    align-items: center;
    background:
        radial-gradient(circle at 22% 18%, rgba(244, 198, 48, 0.28), transparent 26%),
        linear-gradient(135deg, #064e3b 0%, #0f766e 52%, #14532d 100%);
    display: flex;
    min-height: 100vh;
    padding: 24px;
}

.login-panel {
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(5, 38, 30, 0.28);
    margin: 0 auto;
    overflow: hidden;
    padding: 34px;
    position: relative;
    width: min(430px, 100%);
}

.login-panel::before {
    background: #f4c430;
    content: "";
    display: block;
    height: 6px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.login-panel h1 {
    color: #064e3b;
    font-size: 30px;
    margin-bottom: 2px;
}

.login-form {
    display: grid;
    gap: 14px;
    margin-top: 26px;
}

.login-form label {
    color: #14532d;
    display: grid;
    font-weight: 700;
    gap: 7px;
}

.login-form input {
    border-color: #b7cfc3;
}

.login-form input:focus {
    border-color: #0f766e;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.16);
    outline: 0;
}

.login-form button {
    background: linear-gradient(135deg, #0f766e, #166534);
    box-shadow: inset 0 -3px 0 rgba(244, 196, 48, 0.9);
    margin-top: 4px;
}

.login-form button:hover {
    background: linear-gradient(135deg, #0b635d, #14532d);
}

.alert {
    background: #fff0f0;
    border: 1px solid #ef9a9a;
    border-radius: 6px;
    color: #8a1f1f;
    margin: 16px 0;
    padding: 12px 14px;
}

.report-header {
    align-items: center;
    background: #ffffff;
    border: 1px solid #dbe2ea;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    margin: 18px 0;
    padding: 14px 16px;
}

.label {
    color: #6b7683;
    display: block;
    font-size: 12px;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.table-wrap {
    overflow-x: auto;
}

.report-section {
    margin-top: 22px;
}

table {
    border-collapse: collapse;
    width: 100%;
}

.main-table {
    background: #ffffff;
    border: 1px solid #dbe2ea;
}

th,
td {
    border-bottom: 1px solid #e5ebf0;
    padding: 12px;
    text-align: left;
    vertical-align: top;
}

thead th,
tfoot th {
    background: #e9eef2;
    color: #26323f;
    font-size: 13px;
}

summary {
    cursor: pointer;
    font-weight: 700;
    list-style-position: outside;
}

.detail-wrap {
    margin-top: 12px;
    width: min(900px, 86vw);
}

.detail-table {
    background: #fbfcfd;
    border: 1px solid #dbe2ea;
    font-size: 13px;
}

.detail-table th,
.detail-table td {
    padding: 8px;
}

.number {
    text-align: right;
    white-space: nowrap;
}

.strong {
    font-weight: 700;
}

.empty {
    color: #6b7683;
    font-size: 13px;
    margin: 8px 0 0;
}

@media (max-width: 760px) {
    .topbar,
    .report-header,
    .toolbar,
    .upload-form {
        align-items: stretch;
        flex-direction: column;
    }

    button {
        width: 100%;
    }
}
