* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f5f7fb;
    color: #111827;
}

.app {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: #0f172a;
    color: white;
    padding: 24px;
}

.brand {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 35px;
}

.brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: white;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.brand span {
    display: block;
    color: #94a3b8;
    font-size: 12px;
    margin-top: 3px;
}

.nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav a {
    color: #cbd5e1;
    text-decoration: none;
    padding: 13px 14px;
    border-radius: 10px;
    font-size: 14px;
}

.nav a:hover,
.nav a.active {
    background: #1e293b;
    color: white;
}

.main {
    flex: 1;
    padding: 32px;
}

.topbar {
    background: white;
    border-radius: 18px;
    padding: 24px 28px;
    margin-bottom: 24px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
}

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

.topbar p {
    margin: 0;
    color: #64748b;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.card {
    background: white;
    border-radius: 18px;
    padding: 26px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
}

.card span {
    display: block;
    color: #64748b;
    font-size: 14px;
    margin-bottom: 12px;
}

.card strong {
    font-size: 42px;
}

.panel {
    background: white;
    border-radius: 18px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
}

.panel-header {
    margin-bottom: 20px;
}

.panel-header h2 {
    margin: 0;
    font-size: 20px;
}

.empty {
    padding: 18px;
    background: #f8fafc;
    color: #64748b;
    border-radius: 12px;
}

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

th {
    text-align: left;
    color: #64748b;
    font-size: 13px;
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
}

td {
    padding: 14px 12px;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
}

small {
    color: #64748b;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.form-grid .full {
    grid-column: 1 / -1;
}

label {
    display: block;
    font-size: 13px;
    color: #475569;
    margin-bottom: 7px;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 14px;
}

.checkbox label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox input {
    width: auto;
}

button {
    background: #0f172a;
    color: white;
    border: 0;
    padding: 13px 18px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
}

button:hover {
    background: #1e293b;
}
