
@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@400;500;700&display=swap');

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: #f0f4f8; font-family: Arial, sans-serif; font-size: 14px; color: #1a2535; min-height: 100vh; }

body.login-body { display: flex; align-items: center; justify-content: center; background: #1a2535; background-image: radial-gradient(ellipse at 20% 50%, rgba(79,198,224,.08) 0%, transparent 60%); }
.login-card { width: 100%; max-width: 420px; padding: 48px 44px; background: rgba(255,255,255,.04); border: 1px solid rgba(79,198,224,.18); border-radius: 12px; backdrop-filter: blur(10px); box-shadow: 0 24px 64px rgba(0,0,0,.4); }
.login-logo { text-align: center; margin-bottom: 36px; }
.login-logo-name { font-family: Ubuntu, sans-serif; font-size: 28px; font-weight: 700; color: #fff; }
.login-logo-accent { width: 36px; height: 3px; background: #4FC6E0; border-radius: 2px; margin: 10px auto 0; }
.login-logo-sub { font-size: 12px; color: rgba(255,255,255,.4); margin-top: 6px; }
.login-error { background: rgba(220,53,69,.15); border: 1px solid rgba(220,53,69,.4); color: #ff8a95; font-size: 13px; padding: 11px 14px; border-radius: 7px; margin-bottom: 20px; }
.login-field { margin-bottom: 20px; }
.login-field label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 7px; }
.login-field input { width: 100%; padding: 12px 14px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 7px; color: #fff; font-size: 15px; font-family: Ubuntu, sans-serif; outline: none; transition: border-color .2s; box-sizing: border-box; }
.login-field input:focus { border-color: #4FC6E0; background: rgba(79,198,224,.07); }
.login-btn { width: 100%; padding: 13px; background: #4FC6E0; color: #fff; font-size: 15px; font-weight: 700; font-family: Ubuntu, sans-serif; border: none; border-radius: 7px; cursor: pointer; margin-top: 8px; transition: background .2s; }
.login-btn:hover { background: #3aafca; }
.login-help { text-align: center; margin-top: 22px; font-size: 12px; color: rgba(255,255,255,.3); }
.login-help a { color: rgba(79,198,224,.7); text-decoration: none; }

.site-nav { background: #1a2535; border-bottom: 3px solid #4FC6E0; position: sticky; top: 0; z-index: 100; }
.site-nav-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 52px; }
.site-nav-brand { font-family: Ubuntu, sans-serif; font-weight: 700; font-size: 17px; color: #fff; text-decoration: none; }
.site-nav-brand span { color: #4FC6E0; }
.site-nav-links { display: flex; align-items: center; gap: 4px; }
.site-nav-links a, .nav-logout-btn { color: rgba(255,255,255,.65); text-decoration: none; font-family: Ubuntu, sans-serif; font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 6px; transition: color .15s, background .15s; background: none; border: none; cursor: pointer; }
.site-nav-links a:hover, .site-nav-links a.active { color: #fff; background: rgba(79,198,224,.15); }
.nav-logout-btn { color: rgba(255,255,255,.4); margin-left: 8px; border-left: 1px solid rgba(255,255,255,.1); padding-left: 16px; border-radius: 0; }
.nav-logout-btn:hover { color: rgba(255,255,255,.75); }

.page-wrap { max-width: 1280px; margin: 0 auto; padding: 32px 24px 64px; }
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; flex-wrap: wrap; gap: 12px; }
.page-title { font-family: Ubuntu, sans-serif; font-size: 24px; font-weight: 700; color: #1a2535; margin: 0; }
.page-title-sub { font-family: Ubuntu, sans-serif; font-size: 13px; color: #7a8fa6; margin: 3px 0 0; }

.card { background: #fff; border-radius: 10px; box-shadow: 0 1px 3px rgba(0,0,0,.07), 0 4px 16px rgba(0,0,0,.04); margin-bottom: 24px; overflow: hidden; }
.card-header { padding: 14px 20px 13px; border-bottom: 1px solid #edf0f4; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-title { font-family: Ubuntu, sans-serif; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .7px; color: #7a8fa6; margin: 0; }
.card-body { padding: 20px; }
.card-body-tight { padding: 0; overflow-x: auto; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-bottom: 28px; }
.stat-card { background: #fff; border-radius: 10px; box-shadow: 0 1px 3px rgba(0,0,0,.07), 0 4px 16px rgba(0,0,0,.04); padding: 22px 24px; display: flex; align-items: flex-start; gap: 16px; }
.stat-icon { width: 44px; height: 44px; border-radius: 10px; background: rgba(79,198,224,.12); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stat-icon svg { width: 22px; height: 22px; stroke: #4FC6E0; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.stat-value { font-family: Ubuntu, sans-serif; font-size: 26px; font-weight: 700; color: #1a2535; line-height: 1.1; margin: 0; }
.stat-label { font-size: 12px; color: #7a8fa6; margin: 4px 0 0; }

.data-table { width: 100%; border-collapse: collapse; font-size: 14px; table-layout: fixed; min-width: 400px; }
.data-table th { background: #f7f9fb; font-family: Ubuntu, sans-serif; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #7a8fa6; padding: 10px 16px; text-align: left; border-bottom: 1px solid #edf0f4; white-space: nowrap; }
.data-table td { padding: 11px 16px; border-bottom: 1px solid #f0f4f8; color: #1a2535; vertical-align: middle; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: #fafcff; }
.data-table td.num, .data-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.empty-cell { text-align: center !important; color: #b0bec5; padding: 32px !important; white-space: normal !important; }
.table-link { color: #4FC6E0; text-decoration: none; font-weight: 600; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; }
.badge-current { background: #e6f9f0; color: #1a8a56; }
.badge-pending { background: #fff4e0; color: #b36b00; }
.badge-withdrawn, .badge-completed { background: #f0f4f8; color: #7a8fa6; }
.badge-suspended, .badge-write-off, .badge-npw { background: #fdecea; color: #c0392b; }

.filter-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filter-bar input[type=search], .filter-bar select { padding: 8px 12px; border: 1px solid #dde3ec; border-radius: 7px; font-size: 13px; color: #1a2535; background: #fff; outline: none; transition: border-color .15s; margin: 0; }
.filter-bar input:focus, .filter-bar select:focus { border-color: #4FC6E0; box-shadow: 0 0 0 3px rgba(79,198,224,.15); }
.filter-search { min-width: 220px; }
.filter-count { font-size: 12px; color: #7a8fa6; margin-left: auto; }

.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px 20px; padding: 20px; }
.form-field { display: flex; flex-direction: column; gap: 5px; }
.form-field label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #7a8fa6; }
.form-field input, .form-field select, .form-field textarea { padding: 8px 10px; border: 1px solid #dde3ec; border-radius: 7px; font-size: 14px; font-family: Arial, sans-serif; color: #1a2535; background: #fff; outline: none; transition: border-color .15s, box-shadow .15s; width: 100%; box-sizing: border-box; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: #4FC6E0; box-shadow: 0 0 0 3px rgba(79,198,224,.15); }

.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 18px; border-radius: 7px; font-size: 13px; font-family: Ubuntu, sans-serif; font-weight: 500; cursor: pointer; border: none; text-decoration: none; transition: background .15s, color .15s; white-space: nowrap; }
.btn-primary { background: #4FC6E0; color: #fff; }
.btn-primary:hover { background: #3aafca; color: #fff; }
.btn-secondary { background: #fff; color: #4FC6E0; border: 1.5px solid #4FC6E0; }
.btn-secondary:hover { background: #f0fafd; }
.btn-danger { background: #fdecea; color: #c0392b; }
.btn-danger:hover { background: #fad4d0; color: #c0392b; }
.btn-danger { background: #fdecea; color: #c0392b; border: 1.5px solid #f5c6c3; }
.btn-danger:hover { background: #fad5d3; }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.button-wrap { display: flex; gap: 8px; justify-content: flex-end; padding: 16px 0; flex-wrap: wrap; }

.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.detail-item { padding: 13px 20px; border-bottom: 1px solid #f0f4f8; }
.detail-item:nth-child(odd) { border-right: 1px solid #f0f4f8; }
.detail-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #7a8fa6; margin-bottom: 3px; }
.detail-value { font-size: 14px; color: #1a2535; }

.alert { padding: 12px 16px; border-radius: 7px; font-size: 13px; margin-bottom: 16px; }
.alert-success { background: #e6f9f0; color: #1a8a56; border: 1px solid #b8edda; }
.alert-danger { background: #fdecea; color: #c0392b; border: 1px solid #f5c6c3; }
.hidden { display: none; }

.site-footer { text-align: center; font-size: 11px; color: #b0bec5; padding: 24px; font-family: Ubuntu, sans-serif; }

@media (max-width: 768px) {
    .page-wrap { padding: 16px 12px 48px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .filter-bar { flex-direction: column; align-items: stretch; }
}
