:root {
    --green: #06ad6b;
    --green-dark: #04784b;
    --ink: #0c1411;
    --muted: #66736d;
    --line: #dfe7e3;
    --bg: #f5f8f6;
    --white: #ffffff;
    --danger: #c83d3d;
    --warning: #b87812;
    --radius: 8px;
    --shadow: 0 14px 40px rgba(14, 31, 24, .10);
}

* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; color: var(--ink); background: var(--bg); letter-spacing: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    background: var(--white);
}
.btn-primary { background: var(--green); color: var(--white); }
.btn-secondary { border-color: var(--green); color: var(--green-dark); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-dark { background: #050a08; color: var(--white); }
.btn.full, .full { width: 100%; }

.card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(14, 31, 24, .06);
    padding: 22px;
}
.metric-card { display: grid; gap: 8px; }
.metric-card span { color: var(--muted); font-size: 13px; }
.metric-card strong { font-size: 28px; }

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.table th, .table td {
    padding: 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}
.table th { color: #44504b; font-size: 12px; text-transform: uppercase; }
.table-wrap { width: 100%; overflow-x: auto; }

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}
.badge-success { background: #dff7ea; color: #057044; }
.badge-warning { background: #fff3d6; color: var(--warning); }
.badge-danger { background: #ffe1e1; color: var(--danger); }

.form-group { display: grid; gap: 7px; font-size: 13px; font-weight: 700; color: #34423c; }
.form-control, input, select, textarea {
    width: 100%;
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 9px 11px;
    font: inherit;
    background: var(--white);
}
textarea { min-height: 95px; resize: vertical; }

.modal {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(5, 10, 8, .55);
}
.modal[hidden] { display: none; }
.modal-box {
    position: relative;
    width: min(760px, 100%);
    max-height: 90vh;
    overflow: auto;
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
}
.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #eef4f0;
    cursor: pointer;
}
.drawer { border-left: 1px solid var(--line); background: var(--white); }
.empty-state { padding: 28px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); text-align: center; }
.alert { padding: 12px 14px; border-radius: 6px; margin-bottom: 12px; }
.alert-danger { background: #ffe1e1; color: var(--danger); }
.muted { color: var(--muted); }

