
:root {
    --bg: #f4f1eb;
    --bg-2: #ebe5dc;
    --panel: rgba(255,255,255,0.86);
    --panel-strong: rgba(255,255,255,0.94);
    --panel-2: #f7f4ef;
    --line: rgba(40, 47, 56, 0.10);
    --line-strong: rgba(40, 47, 56, 0.16);
    --text: #171717;
    --muted: #66707d;
    --accent: #5d8a56;
    --accent-2: #d78339;
    --accent-soft: rgba(93, 138, 86, 0.12);
    --accent-soft-2: rgba(215, 131, 57, 0.14);
    --steel: #9098a6;
    --danger: #b95656;
    --success: #4f7e59;
    --shadow: 0 18px 48px rgba(34, 37, 43, 0.12);
}

* { box-sizing: border-box; }
html, body {
    margin: 0;
    padding: 0;
    font-family: Inter, ui-sans-serif, system-ui, Arial, sans-serif;
    background:
        radial-gradient(circle at top right, rgba(215,131,57,0.16), transparent 24%),
        radial-gradient(circle at bottom left, rgba(93,138,86,0.14), transparent 28%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
    color: var(--text);
}
a { color: inherit; text-decoration: none; }
body { min-height: 100vh; }
.login-body { display: grid; place-items: center; padding: 24px; }
.login-shell { width: 100%; max-width: 500px; }
.login-card, .panel, .card, .sidebar {
    background: var(--panel);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}
.login-card { border-radius: 28px; padding: 34px; }
.brand-badge {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent-soft), var(--accent-soft-2));
    border: 1px solid rgba(93,138,86,0.14);
    color: var(--accent);
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    font-size: 12px;
}
.brand-lockup { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.brand-logo {
    display: block;
    height: 46px;
    width: auto;
    object-fit: contain;
}
.brand-logo.sidebar-logo { height: 52px; max-width: 100%; }
.brand-subtitle { color: var(--muted); font-size: 14px; }
h1, h2, h3 { margin: 0 0 10px; }
h1 { font-size: clamp(28px, 3vw, 38px); line-height: 1.05; }
h2 { font-size: 24px; }
p { margin: 0; }
.muted { color: var(--muted); }
.stack-md > * + * { margin-top: 16px; }
.stack-lg > * + * { margin-top: 24px; }
label, .label-strong { display: block; font-weight: 600; color: var(--text); }
label span { display: block; margin-bottom: 8px; font-size: 14px; color: var(--muted); }
input[type="text"], input[type="password"], input[type="file"] {
    width: 100%;
    background: rgba(255,255,255,0.88);
    color: var(--text);
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    padding: 14px 16px;
    outline: none;
    transition: .2s ease;
}
input:focus {
    border-color: rgba(93,138,86,0.55);
    box-shadow: 0 0 0 4px rgba(93,138,86,0.14);
}
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border: 0;
    border-radius: 14px;
    padding: 14px 18px;
    cursor: pointer;
    font-weight: 800;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-block { width: 100%; }
.btn-primary {
    background: linear-gradient(135deg, var(--accent), #6f9a68 55%, var(--accent-2));
    color: #fff;
    box-shadow: 0 10px 24px rgba(93,138,86,0.20);
}
.btn-ghost {
    background: rgba(255,255,255,0.55);
    color: var(--text);
    border: 1px solid var(--line);
}
.alert { border-radius: 16px; padding: 14px 16px; border: 1px solid transparent; }
.alert.success { background: rgba(93,138,86,0.10); border-color: rgba(93,138,86,0.24); color: var(--success); }
.alert.error { background: rgba(185,86,86,0.08); border-color: rgba(185,86,86,0.18); color: #8f3838; }
.app-shell { display: grid; grid-template-columns: 300px 1fr; min-height: 100vh; gap: 20px; padding: 20px; }
.sidebar {
    border-radius: 30px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.94) 0%, rgba(248,244,238,0.92) 100%);
}
.sidebar-top > h2 { margin-top: 18px; }
.menu { margin-top: 22px; display: grid; gap: 10px; }
.menu-item {
    padding: 14px 16px;
    border-radius: 16px;
    color: #4e5866;
    background: rgba(255,255,255,0.58);
    border: 1px solid transparent;
    font-weight: 600;
}
.menu-item.active, .menu-item:hover {
    color: var(--text);
    background: linear-gradient(135deg, var(--accent-soft), rgba(255,255,255,0.72));
    border-color: rgba(93,138,86,0.14);
}
.content { min-width: 0; }
.panel {
    border-radius: 30px;
    padding: 28px;
    background: var(--panel-strong);
}
.panel-head { display: flex; justify-content: space-between; gap: 20px; align-items: start; margin-bottom: 22px; }
.card {
    background: linear-gradient(180deg, rgba(255,255,255,0.72) 0%, rgba(250,247,242,0.95) 100%);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 18px;
}
.card-head { margin-bottom: 14px; }
.card-head.between { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.help { color: var(--muted); font-size: 14px; margin-top: 8px; }
.chip {
    font-size: 12px;
    color: var(--text);
    background: linear-gradient(135deg, rgba(144,152,166,0.14), rgba(255,255,255,0.72));
    border: 1px solid rgba(144,152,166,0.24);
    border-radius: 999px;
    padding: 8px 12px;
}
.upload-form { display: flex; flex-wrap: wrap; gap: 14px; align-items: end; }
.upload-form > div:first-child { flex: 1 1 340px; }
.table-wrap { overflow: auto; border-radius: 18px; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; min-width: 820px; }
thead th {
    text-align: left;
    font-size: 13px;
    color: #56606d;
    background: rgba(144,152,166,0.10);
}
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line); }
tbody tr:hover { background: rgba(93,138,86,0.05); }
tbody tr:last-child td { border-bottom: 0; }
.footer-note { margin-top: 10px; color: var(--muted); font-size: 13px; }

@media (max-width: 980px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { border-radius: 24px; }
}
@media (max-width: 640px) {
  .login-card, .panel, .sidebar { padding: 20px; }
  .panel-head, .card-head.between, .brand-lockup { flex-direction: column; align-items: flex-start; }
  .upload-form { align-items: stretch; }
  .btn { width: 100%; }
  .brand-logo { height: 42px; }
}


.summary-box {
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    background: rgba(89, 139, 87, 0.10);
    border: 1px solid rgba(89, 139, 87, 0.22);
    color: #1c281b;
    line-height: 1.6;
}

.summary-box strong {
    color: #000;
}
