/* Campus Head Quarter — one file, compact, blue house style. */

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    font-size: 14px;
    color: #1d2b3a;
    background: #eef3f9;
}

/* ---------- Top bar ---------- */
.cp-topbar {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    background: #1361C8;
    color: #fff;
    padding: 8px 16px;
}
.cp-brand { color: #fff; text-decoration: none; font-size: 17px; font-weight: 700; }
.cp-brand span { font-weight: 400; opacity: .85; font-size: 14px; }
.cp-nav { display: flex; gap: 4px; }
.cp-nav a {
    color: #fff;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 13.5px;
}
.cp-nav a:hover { background: rgba(255,255,255,.18); }
.cp-user { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.cp-user form { margin: 0; }
.cp-logout {
    background: #be434b;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 5px 12px;
    cursor: pointer;
    font-size: 13px;
}

/* ---------- Layout ---------- */
.cp-main { max-width: 1180px; margin: 0 auto; padding: 14px 14px 26px; }
.cp-footer { text-align: center; color: #7a8a9c; font-size: 12px; padding: 10px 0 18px; }
.cp-pagehead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin: 4px 0 12px;
}
.cp-pagehead h1 { margin: 0; font-size: 20px; color: #0E4FA8; }

/* ---------- Cards / tiles ---------- */
.cp-card {
    background: #fff;
    border: 1px solid #d7e2ef;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 14px;
}
.cp-card-title { margin: 0 0 10px; font-size: 15px; color: #0E4FA8; }
.cp-form-card { max-width: 720px; }
.cp-tiles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 8px;
}
.cp-tile {
    background: #fff;
    border: 1px solid #d7e2ef;
    border-radius: 10px;
    padding: 10px 12px;
    text-align: center;
}
.cp-tile-num { font-size: 21px; font-weight: 700; color: #1361C8; }
.cp-tile-of { font-size: 14px; color: #7a8a9c; font-weight: 400; }
.cp-tile-label { font-size: 12px; color: #61758c; }

/* ---------- Branch cards ---------- */
.cp-branch-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}
.cp-branch-name { font-size: 16px; font-weight: 700; color: #0E4FA8; }
.cp-branch-sub { font-size: 12.5px; margin: 2px 0 8px; }
.cp-branch-sub a { color: #1361C8; text-decoration: none; }
.cp-branch-msg { color: #8f2d36; font-size: 13.5px; margin: 6px 0 2px; }
.cp-stat-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 10px;
}
.cp-stat {
    background: #f4f8fd;
    border: 1px solid #e0eaf5;
    border-radius: 8px;
    padding: 8px 10px;
}
.cp-stat-label { font-size: 11.5px; color: #61758c; text-transform: uppercase; letter-spacing: .3px; }
.cp-stat-value { font-size: 19px; font-weight: 700; color: #1d2b3a; }
.cp-stat-sub { font-size: 12px; color: #61758c; }
.cp-fin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}
.cp-fin {
    border: 1px solid #e0eaf5;
    border-radius: 8px;
    padding: 8px 10px;
}
.cp-fin-title { font-size: 12.5px; font-weight: 700; color: #0E4FA8; margin-bottom: 5px; }
.cp-fin-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
    padding: 2px 0;
    border-bottom: 1px dashed #e6edf5;
}
.cp-fin-row:last-child { border-bottom: none; }
.cp-fin-balance { font-weight: 700; }
.cp-notice-row { font-size: 13px; padding: 2px 0; display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.cp-urgent {
    background: #fbe3e5;
    color: #be434b;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    padding: 1px 5px;
}

/* ---------- Pills / alerts ---------- */
.cp-pill {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.cp-pill-ok { background: #e2f4e9; color: #1d8a4e; }
.cp-pill-warn { background: #fdf0d5; color: #9a6a0d; }
.cp-pill-bad { background: #fbe3e5; color: #be434b; }
.cp-pill-off { background: #e8edf3; color: #61758c; }
.cp-alert { border-radius: 8px; padding: 10px 14px; margin-bottom: 12px; font-size: 13.5px; }
.cp-alert-ok { background: #e2f4e9; color: #14653a; border: 1px solid #a9dcbc; }
.cp-alert-warn { background: #fdf0d5; color: #7a5a10; border: 1px solid #ecd28f; }
.cp-alert a { color: inherit; font-weight: 600; }

/* ---------- Tables ---------- */
.cp-table-wrap { overflow-x: auto; }
.cp-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.cp-table th {
    text-align: left;
    padding: 6px 8px;
    border-bottom: 2px solid #d7e2ef;
    color: #0E4FA8;
    white-space: nowrap;
}
.cp-table td {
    padding: 6px 8px;
    border-bottom: 1px solid #e6edf5;
    vertical-align: top;
    white-space: nowrap;
}
.cp-holder { font-weight: 600; }
.cp-mono { font-family: Consolas, "Courier New", monospace; font-size: 13px; }
.cp-row-actions { white-space: nowrap; }

/* ---------- Forms ---------- */
.cp-field { margin-bottom: 12px; }
.cp-field label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 4px; color: #33475e; }
.cp-input {
    width: 100%;
    padding: 7px 9px;
    border: 1px solid #b9c9dc;
    border-radius: 7px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
}
.cp-input:focus { outline: 2px solid #1361C8; outline-offset: 0; border-color: #1361C8; }
.cp-hint { font-size: 12px; color: #7a8a9c; margin-top: 3px; }
.cp-validation { color: #be434b; font-size: 12.5px; }
.cp-check { display: flex; align-items: flex-start; gap: 8px; }
.cp-check input { margin-top: 3px; }
.cp-check label { font-weight: 400; margin-bottom: 0; }
.cp-kv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 18px;
    margin-bottom: 12px;
}
.cp-kv-label { font-size: 12px; color: #61758c; }
.cp-kv-value { font-weight: 600; }

/* ---------- Buttons / misc ---------- */
.cp-btn {
    display: inline-block;
    border: none;
    border-radius: 7px;
    padding: 8px 14px;
    font-size: 13.5px;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}
.cp-btn-primary { background: #1361C8; color: #fff; }
.cp-btn-primary:hover { background: #0E4FA8; }
.cp-btn-secondary { background: #e3ecf6; color: #0E4FA8; }
.cp-btn-secondary:hover { background: #d2e0f0; }
.cp-btn-danger { background: #be434b; color: #fff; }
.cp-btn-danger:hover { background: #a53640; }
.cp-btn-small { padding: 4px 10px; font-size: 12.5px; }
.cp-btn-block { width: 100%; }
.cp-muted { color: #61758c; font-size: 13px; }
.cp-login-wrap { display: flex; justify-content: center; padding-top: 40px; }
.cp-login-card { width: 100%; max-width: 400px; }
.cp-login-title { margin: 0 0 4px; font-size: 19px; color: #0E4FA8; }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
    .cp-stat-grid { grid-template-columns: repeat(2, 1fr); }
    .cp-fin-grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
    .cp-tiles { grid-template-columns: repeat(2, 1fr); }
    .cp-kv-grid { grid-template-columns: 1fr; }
    .cp-user { margin-left: 0; }
    .cp-main { padding: 10px 8px 20px; }
}
