/* Shared settings theme, based on the configuration reference. */
body { color:#101344; background:radial-gradient(ellipse at 90% 0%,#d7eeff 0,transparent 45%),radial-gradient(ellipse at 30% 70%,#e6e0ff 0,transparent 55%),#f4f5ff; }
* { box-sizing:border-box; }
.top-nav { min-height:80px; padding:12px 26px; background:linear-gradient(110deg,#4422a4,#454df0 55%,#0756a7); border:0; box-shadow:0 3px 12px #20217822; }
.logo-area h2 { color:white; font-size:25px; }
.logo-area > i { color:white!important; font-size:36px!important; }
.topbar-subtitle { color:#eceeff; font-size:14px; margin:5px 0 0; }
.top-nav .actions a { color:white; border:1px solid #ffffff80; border-radius:10px; }
.admin-container { grid-template-columns:248px minmax(0,1fr); min-height:calc(100vh - 80px); }
.admin-sidebar { top:80px; height:calc(100vh - 80px); padding:20px 12px; gap:20px; background:radial-gradient(ellipse at bottom right,#4926a1,transparent 45%),linear-gradient(155deg,#141b51,#192961); border:0; }
.settings-brand { color:white; text-decoration:none; display:flex; align-items:center; gap:12px; padding:0 12px 22px; font-size:23px; font-weight:700; border-bottom:1px solid #ffffff30; }
.settings-brand i { font-size:42px; color:#b0a1ff; }
.settings-brand small { display:block; font-size:12px; margin-top:3px; font-weight:400; }
.sidebar-group { border-bottom:1px solid #ffffff28; padding-bottom:15px; }
.sidebar-group h3 { color:#c9d1fc; font-size:12px; }
.tab-btn,.tab-btn i { color:#f3f4ff; }
.tab-btn { font-size:14px; border-radius:10px; padding:13px 15px; }
.tab-btn:hover { background:#ffffff16; }
.tab-btn.active { background:linear-gradient(110deg,#8739ef,#365eff); color:white; box-shadow:inset 0 0 0 1px #ffffff30,0 4px 12px #070a3222; }
.tab-btn.active i { color:white; }
.danger-group h3 { color:#ff7657; }
.admin-content { padding:24px; }
.pane-header { background:transparent; border:0; box-shadow:none; padding:10px 0; margin:16px 0; }
.pane-header h2 { color:#0b104b; font-size:27px; font-weight:750; }
.pane-header h2 i { display:grid; place-items:center; background:linear-gradient(140deg,#677aff,#5326e6); color:white; border-radius:50%; width:54px; height:54px; font-size:30px; flex-shrink:0; }
.pane-header p { color:#494f7e; }
.quick-tip { display:flex; align-items:center; gap:12px; padding:14px 18px; border:1px solid #efddca; background:linear-gradient(115deg,#fffaf1,#eeedff); border-radius:13px; margin-bottom:24px; font-size:13px; }
.quick-tip > i { color:#ff9a00; font-size:30px; }
.quick-tip p { margin:4px 0 0; color:#494f7e; }
.grid-2-col,.grid-3-col { grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; align-items:stretch; }
.settings-card { height:100%; border:1px solid #cbd0f6; border-radius:20px; padding:12px; background:linear-gradient(150deg,#ffffffed,#f7faff); box-shadow:0 14px 32px #6863b319; display:flex; flex-direction:column; }
.settings-card .card-header { background:linear-gradient(115deg,#e8f5ff,#eaf2ff); border:0; border-radius:13px; padding:16px 12px; min-height:78px; gap:8px; }
.card-header h3 { color:#0b104b; font-weight:750; font-size:19px; }
.card-header h3 i { font-size:30px; color:#1887ff; }
.card-header .badge { background:#d5ebff; color:#123681; white-space:nowrap; }
.card-body { padding:12px 3px 8px; }
.card-description { color:#4d557d; font-size:13px; line-height:1.5; margin:0 4px 14px; }
.items-list { background:transparent; border:0; min-height:96px; max-height:280px; }
.item-row { background:linear-gradient(110deg,#fff,#f7f9ff); border:1px solid #dce0f5!important; border-radius:9px; margin-bottom:5px; padding:12px; color:#14183f; }
.item-actions button { color:#ef3939; }
.add-form { display:flex; flex-direction:column; gap:10px; }
.dynamic-inputs:empty { display:none; }
.add-form input,.add-form select { flex:none; min-height:43px; border-radius:9px; border-color:#d1d6ee; background:#fbfcff; font-size:14px; }
.add-btn,.btn-primary { background:linear-gradient(110deg,#7935f4,#343ff4); border:1px solid #5c43f5; border-radius:10px; min-height:44px; font-size:14px; font-family:inherit; color:white; }
.add-btn { width:100%; margin-top:10px; }
.add-btn:hover,.btn-primary:hover { background:linear-gradient(110deg,#6825de,#2832da); box-shadow:0 5px 14px #5945df33; }
button:focus-visible,a:focus-visible { outline:3px solid #9f9aff; outline-offset:3px; }
.settings-card[data-setting="sections"] .card-header { background:linear-gradient(110deg,#f8edff,#f0eaff); }
.settings-card[data-setting="sections"] .card-header i { color:#a61ee5; }
.settings-card[data-setting="sections"] .badge { background:#ecd9ff; color:#6718b0; }
.settings-card[data-setting="sections"] .add-btn { background:linear-gradient(110deg,#a33deb,#5628ce); }
.admin-content .setup-guide { border:1px solid white; background:#ffffffb8; border-radius:20px; padding:14px; box-shadow:0 12px 30px #7773b51a; }
.admin-content .setup-guide-header { padding:18px; border-radius:14px; background:linear-gradient(110deg,#e9dcff,#f4f4ff,#cfe2ff); align-items:center; }
.admin-content .setup-guide h2 { color:#101348; font-size:28px; }
.admin-content .setup-guide progress { accent-color:#16b837; height:14px; width:100%; }
.admin-content .setup-guide details { background:linear-gradient(115deg,#fcfcff,#eef0ff); border-color:#dddafa; }
.admin-content .setup-task a { background:linear-gradient(110deg,#7739ef,#3948f5); }
@media(min-width:1500px) { .grid-3-col { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:1000px) { .admin-container { grid-template-columns:210px minmax(0,1fr); } .grid-2-col,.grid-3-col,.academic-year-layout { grid-template-columns:1fr; } .admin-sidebar { display:flex; grid-column:1; grid-row:1; position:sticky; } .admin-content { grid-column:2; grid-row:1; padding:18px; } }
@media(max-width:650px) { .top-nav { padding:16px; } .logo-area h2 { font-size:19px; } .topbar-subtitle { font-size:12px; } .admin-container { display:flex; flex-direction:column; } .admin-sidebar { position:static; height:auto; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; } .settings-brand { grid-column:1/-1; } .admin-content { padding:14px; } .pane-header h2 { font-size:23px; } .card-header h3 { font-size:17px; } }

/* Keep the dashboard action explicit even when the sidebar brand links home. */
.top-nav .actions .administration-dashboard-link { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:10px 16px; background:#fff; color:#3431b5!important; border:1px solid #c7ceff; border-radius:10px; font-weight:700; white-space:nowrap; text-decoration:none; }
.top-nav .actions .administration-dashboard-link i { color:inherit!important; }
.top-nav .actions .administration-dashboard-link:hover { background:#eef0ff; border-color:#a8b1ff; }
@media(max-width:760px) { .top-nav .actions { width:100%; margin-top:10px; } }
/* Administration owns its frame; override the shared compact page header. */
body .top-nav.erp-page-topbar {
    display:flex; flex-direction:row; align-items:center; justify-content:space-between;
    position:sticky; top:0; z-index:80;
    width:calc(100% - 248px); max-width:none;
    min-height:80px!important; margin:0 0 0 248px!important; padding:14px 26px!important;
    border:0; border-radius:0;
    background:linear-gradient(110deg,#4322aa 0%,#4054ed 57%,#0754a4 100%)!important;
    color:#fff; box-shadow:0 3px 14px #20217825;
}
body .top-nav.erp-page-topbar .logo-area { flex-wrap:nowrap!important; }
body .top-nav.erp-page-topbar .logo-area h2 { color:#fff!important; -webkit-text-fill-color:#fff!important; line-height:1.2!important; }
body .top-nav.erp-page-topbar .topbar-subtitle { color:#e8edff!important; -webkit-text-fill-color:#e8edff!important; }
body .top-nav.erp-page-topbar .logo-area > i { color:#fff!important; font-size:34px!important; flex-shrink:0; }
body .top-nav.erp-page-topbar .actions { width:auto; margin:0; flex-shrink:0; }
body .admin-container { display:block; margin-left:248px; min-height:calc(100dvh - 80px); isolation:auto; }
body .admin-sidebar { position:fixed; inset:0 auto 0 0; width:248px; height:100dvh; padding:20px 12px 14px; gap:14px; overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:#7778b5 #172053; z-index:90; }
body .admin-sidebar .settings-brand { flex-shrink:0; padding:0 12px 20px; color:#fff!important; }
body .admin-sidebar .settings-brand small { color:#d0d7f6; }
body .admin-sidebar .sidebar-group { flex-shrink:0; padding-bottom:12px; }
body .admin-sidebar .sidebar-group:last-child { border-bottom:0; }
body .admin-sidebar .sidebar-group h3 { margin-bottom:8px; }
body .admin-sidebar .tab-btn { padding:10px 12px; min-height:40px; margin-bottom:2px; }
body .admin-content { width:100%; min-width:0; }
@media(max-width:1000px) and (min-width:651px) {
    body .admin-sidebar { width:210px; }
    body .admin-container { margin-left:210px; }
    body .top-nav.erp-page-topbar { margin-left:210px!important; width:calc(100% - 210px); padding:14px 18px!important; flex-wrap:wrap; }
    body .top-nav.erp-page-topbar .logo-area h2 { font-size:20px!important; }
}
@media(max-width:650px) {
    body .top-nav.erp-page-topbar { width:100%; margin:0!important; padding:16px!important; flex-direction:column; align-items:stretch!important; position:relative; }
    body .top-nav.erp-page-topbar .actions { width:100%; margin-top:8px; }
    body .top-nav.erp-page-topbar .administration-dashboard-link { width:100%; }
    body .admin-container { margin-left:0; }
    body .admin-sidebar { position:static; width:100%; height:auto; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; overflow:visible; }
    body .admin-sidebar .settings-brand { grid-column:1/-1; }
}
body .top-nav.erp-page-topbar .administration-dashboard-link { background:#fff!important; border:1px solid #d2d9ff!important; color:#302ca5!important; -webkit-text-fill-color:#302ca5!important; box-shadow:0 3px 10px #15135b22!important; }
body .top-nav.erp-page-topbar .administration-dashboard-link:hover { background:#eef0ff!important; }
body .top-nav.erp-page-topbar .administration-dashboard-link i { color:#302ca5!important; -webkit-text-fill-color:#302ca5!important; }
body .admin-container > .erp-breadcrumbs { width:auto; max-width:none; margin:14px 24px 0; }
@media(max-width:650px) { body .admin-container > .erp-breadcrumbs { margin:14px; } }
