* {
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    background: #f3f6fa;
    color: #1f2937;
    font-size: 14px;
}

.topbar {
    background: #0f2f4f;
    color: #ffffff;
    padding: 12px 20px;
    display: flex;
    gap: 20px;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.topbar strong {
    font-size: 18px;
}

.topbar span {
    color: #dbeafe;
}

.topbar a {
    color: #ffffff;
    margin-left: auto;
    text-decoration: none;
    background: rgba(255,255,255,0.12);
    padding: 7px 12px;
    border-radius: 6px;
}

.layout {
    display: flex;
    min-height: calc(100vh - 48px);
}

.sidebar {
    width: 235px;
    background: #ffffff;
    border-right: 1px solid #d8dee8;
    padding: 14px;
    min-height: 100vh;
}

.sidebar a {
    display: block;
    padding: 10px 12px;
    margin-bottom: 5px;
    color: #0f2f4f;
    text-decoration: none;
    border-radius: 7px;
    font-weight: 600;
}

.sidebar a:hover {
    background: #eaf2fb;
}

.content {
    padding: 22px;
    flex: 1;
    overflow-x: auto;
}

h1, h2, h3 {
    margin-top: 0;
    color: #0f2f4f;
}

h2 {
    font-size: 24px;
    margin-bottom: 18px;
}

h3 {
    font-size: 17px;
    margin-bottom: 12px;
}

.card, form, .section-box {
    background: #ffffff;
    border: 1px solid #d8dee8;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 18px;
    box-shadow: 0 2px 8px rgba(15,47,79,0.05);
}

form {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 8px;
}

input, select, textarea {
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    min-height: 36px;
    background: #ffffff;
}

input:focus, select:focus, textarea:focus {
    outline: 2px solid #bcd7f0;
    border-color: #2f6fa3;
}

button,
input[type="submit"],
.btn,
a.button {
    background: #0f2f4f;
    color: #ffffff !important;
    border: 0;
    border-radius: 7px;
    padding: 9px 13px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
}

button:hover,
input[type="submit"]:hover,
.btn:hover,
a.button:hover {
    background: #174c7d;
}

a {
    color: #145c9e;
    font-weight: 600;
}

.table-wrap {
    overflow-x: auto;
    background: #ffffff;
    border: 1px solid #d8dee8;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(15,47,79,0.05);
    margin-bottom: 18px;
}

table {
    border-collapse: collapse;
    width: 100%;
    background: #ffffff;
    font-size: 13px;
}

th, td {
    border-bottom: 1px solid #e5eaf1;
    padding: 9px 10px;
    text-align: left;
    vertical-align: middle;
}

th {
    background: #0f2f4f;
    color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 2;
    font-size: 12px;
    letter-spacing: 0.3px;
}

tr:nth-child(even) td {
    background: #f8fafc;
}

tr:hover td {
    background: #eef6ff;
}

.alert {
    padding: 11px 13px;
    border-radius: 8px;
    margin-bottom: 14px;
    background: #e9f8ee;
    border: 1px solid #b7e1c2;
    color: #14532d;
}

.error, .alert-error {
    padding: 11px 13px;
    border-radius: 8px;
    margin-bottom: 14px;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #9f1239;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    background: #eaf2fb;
    color: #0f2f4f;
    font-size: 12px;
    font-weight: bold;
}

hr {
    border: 0;
    border-top: 1px solid #d8dee8;
    margin: 20px 0;
}

.small-note, small {
    color: #64748b;
    font-size: 12px;
}

@media print {
    .topbar, .sidebar, button, .btn, a.button {
        display: none !important;
    }
    .content {
        padding: 0;
    }
    body {
        background: #ffffff;
    }
    table, th, td {
        border: 1px solid #000;
    }
    th {
        background: #eeeeee !important;
        color: #000000 !important;
    }
}
