/* STAHIZA admin portal */
:root { --brand: #0b2a5b; --brand-2: #123b7a; --accent: #c9a227; --sb-w: 260px; --bg: #f3f5f9; }
body { font-family: 'Inter', system-ui, sans-serif; background: var(--bg); color: #1b2433; font-size: .94rem; }
a { color: var(--brand-2); }
.admin-wrap { display: flex; min-height: 100vh; }
.admin-sidebar { width: var(--sb-w); background: var(--brand); color: rgba(255,255,255,.8); position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; z-index: 1045; transition: transform .25s; }
.sb-brand { display: flex; align-items: center; gap: .7rem; padding: 1.1rem 1.25rem; color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.08); }
.sb-brand strong { display: block; letter-spacing: .06em; }
.sb-brand small { display: block; color: var(--accent); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }
.sb-nav { flex: 1; overflow-y: auto; padding: .6rem .75rem 1rem; }
.sb-group { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.4); padding: 1rem .75rem .35rem; font-weight: 700; }
.sb-link { display: flex; align-items: center; gap: .75rem; padding: .55rem .75rem; border-radius: 9px; color: rgba(255,255,255,.78); text-decoration: none; font-weight: 500; margin-bottom: 2px; }
.sb-link i { font-size: 1.05rem; width: 20px; text-align: center; }
.sb-link:hover { background: rgba(255,255,255,.07); color: #fff; }
.sb-link.active { background: var(--accent); color: var(--brand); font-weight: 700; }
.sb-site { margin: .5rem .75rem 1rem; border: 1px solid rgba(255,255,255,.15); }
.admin-main { flex: 1; margin-left: var(--sb-w); min-width: 0; display: flex; flex-direction: column; }
.admin-topbar { position: sticky; top: 0; z-index: 1030; background: #fff; border-bottom: 1px solid #e6e9ef; padding: .7rem 1.5rem; display: flex; align-items: center; gap: .8rem; }
.admin-content { padding: 1.5rem; flex: 1; }
.admin-foot { padding: 1rem 1.5rem; color: #8a93a3; font-size: .8rem; }
.sb-backdrop { display: none; }
@media (max-width: 991.98px) {
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.open { transform: none; }
  .admin-main { margin-left: 0; }
  .sb-backdrop.show { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 1040; }
  .admin-content { padding: 1rem; }
}
.card { border: 0; border-radius: 14px; box-shadow: 0 2px 10px rgba(11,42,91,.06); }
.card-header { background: #fff; border-bottom: 1px solid #eef0f4; font-weight: 700; padding: 1rem 1.25rem; border-radius: 14px 14px 0 0 !important; }
.stat-tile { border-radius: 14px; padding: 1.2rem 1.3rem; background: #fff; box-shadow: 0 2px 10px rgba(11,42,91,.06); display: flex; align-items: center; gap: 1rem; text-decoration: none; color: inherit; height: 100%; transition: transform .2s; }
.stat-tile:hover { transform: translateY(-2px); color: inherit; }
.stat-tile .ic { width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; font-size: 1.4rem; flex: 0 0 50px; }
.stat-tile .num { font-size: 1.6rem; font-weight: 800; line-height: 1; }
.stat-tile .lbl { color: #6b7385; font-size: .82rem; }
.btn { border-radius: 9px; font-weight: 600; }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-2); color: #fff; }
.btn-accent { background: var(--accent); color: var(--brand); }
.btn-accent:hover { background: #b38d1b; color: #fff; }
.form-control, .form-select { border-radius: 9px; }
.form-control:focus, .form-select:focus { border-color: var(--accent); box-shadow: 0 0 0 .2rem rgba(201,162,39,.2); }
.form-label { font-weight: 600; font-size: .85rem; }
.table > :not(caption) > * > * { padding: .7rem .8rem; }
.table thead th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: #6b7385; background: #f8f9fc; font-weight: 700; border-bottom-width: 1px; }
.thumb { width: 52px; height: 40px; object-fit: cover; border-radius: 6px; background: #eef1f6; }
.ql-container { min-height: 260px; font-size: 1rem; border-radius: 0 0 9px 9px; }
.ql-toolbar { border-radius: 9px 9px 0 0; }
.img-preview { max-height: 120px; border-radius: 8px; border: 1px solid #e6e9ef; }

/* permission matrix */
.matrix-table th, .matrix-table td { text-align: center; vertical-align: middle; }
.matrix-table th:first-child, .matrix-table td:first-child { text-align: left; }
.matrix-table .grp td { background: #f3f5f9; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: #6b7385; text-align: left; }
.matrix-table .form-check-input { width: 1.25em; height: 1.25em; cursor: pointer; }
.matrix-table .form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.matrix-table thead th { position: sticky; top: 0; z-index: 1; }
.matrix-table tbody tr:hover td { background: #fffbea; }

.login-page { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(900px 500px at 80% 10%, rgba(201,162,39,.25), transparent 60%), linear-gradient(135deg, #0b2a5b, #123b7a); padding: 1.5rem; }
.login-card { width: 100%; max-width: 420px; background: #fff; border-radius: 18px; box-shadow: 0 30px 70px rgba(0,0,0,.3); padding: 2.2rem; }
.timeline-admin { border-left: 2px solid #e6e9ef; padding-left: 1rem; list-style: none; margin: 0; }
.timeline-admin li { position: relative; margin-bottom: 1rem; }
.timeline-admin li::before { content: ''; position: absolute; left: -1.42rem; top: .35rem; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--accent); }
.breakdown-row .form-control { font-size: .9rem; }
dl.app-dl dt { color: #6b7385; font-weight: 600; font-size: .8rem; }
dl.app-dl dd { margin-bottom: .7rem; }
