* { box-sizing: border-box; }
body {
    font-family: Tahoma, Arial, sans-serif;
    background: #f4f5f7;
    margin: 0;
    color: #26292e;
}
.topbar {
    background: #202940;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
}
.topbar a {
    color: #fff;
    text-decoration: none;
    margin-inline-start: 18px;
    font-size: 14px;
}
.topbar a.brand {
    font-weight: bold;
    font-size: 17px;
    margin-inline-start: 0;
}
.topbar .nav a:hover { text-decoration: underline; }
.container {
    max-width: 1100px;
    margin: 24px auto;
    padding: 0 16px;
}
.card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    padding: 20px;
    margin-bottom: 20px;
}
.stats-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.stat-box {
    flex: 1;
    min-width: 160px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    padding: 18px;
    text-align: center;
}
.stat-box .num { font-size: 28px; font-weight: bold; color: #2e5cf6; }
.stat-box .label { color: #777; font-size: 13px; margin-top: 4px; }
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
th, td {
    padding: 10px 8px;
    text-align: right;
    border-bottom: 1px solid #eee;
}
th { color: #888; font-weight: normal; font-size: 13px; }
tr:hover td { background: #fafbfc; }
a.btn, button.btn {
    display: inline-block;
    background: #2e5cf6;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
}
a.btn.small, button.btn.small { padding: 5px 10px; font-size: 12px; }
button.btn.danger, a.btn.danger { background: #d64545; }
button.btn.secondary, a.btn.secondary { background: #6b7280; }
.badge { padding: 3px 9px; border-radius: 20px; font-size: 12px; }
.badge.active { background: #e3f9e5; color: #1b8a3c; }
.badge.inactive { background: #fbe4e4; color: #c53030; }
.badge.expired { background: #fff3d6; color: #a36a00; }
form.inline { display: inline; }
label { display: block; margin: 14px 0 5px; font-size: 14px; color: #444; }
input[type=text], input[type=password], input[type=url], input[type=datetime-local] {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}
.checkbox-row { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.checkbox-row input { width: auto; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }
.msg { padding: 10px 14px; border-radius: 6px; margin-bottom: 16px; font-size: 14px; }
.msg.success { background: #e3f9e5; color: #1b8a3c; }
.msg.error { background: #fbe4e4; color: #c53030; }
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; flex-wrap: wrap; gap: 10px; }
.search-form input { width: 240px; }
.pagination { display: flex; gap: 6px; margin-top: 16px; justify-content: center; }
.pagination a, .pagination span {
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
    font-size: 13px;
}
.pagination .current { background: #2e5cf6; color: #fff; border-color: #2e5cf6; }
.login-wrap { display: flex; align-items: center; justify-content: center; height: 100vh; }
.login-box { background: #fff; padding: 36px; border-radius: 10px; box-shadow: 0 2px 12px rgba(0,0,0,.1); width: 320px; }
.login-box h1 { font-size: 20px; text-align: center; margin-top: 0; }
.hint { color: #888; font-size: 12px; margin-top: 6px; }
code.short { direction: ltr; display: inline-block; }
