/* BillTrack365 Step 17: active navigation, compact notification administration,
 * unified export center, and secure optional attachments. Presentation only. */
.sidebar .nav-link.bt-current-page,
.sidebar .nav-link.active {
  background:linear-gradient(90deg,#1d668c,#214d73)!important;
  box-shadow:inset 4px 0 #3bdfd0,0 3px 12px #081f341f!important;
  color:#fff!important;
  font-weight:800;
  border-radius:9px;
}
.sidebar .nav-link.bt-current-page>span,
.sidebar .nav-link.active>span { color:#7af3e5!important; }
.sidebar .nav-link:focus-visible { outline:2px solid #79eee0;outline-offset:2px; }
body.bt-sidebar-collapsed .sidebar .nav-link.bt-current-page {
  box-shadow:inset 3px 0 #3bdfd0!important;
}

/* All notification administration forms: compact, accessible, responsive */
.np-admin-compact{max-width:1120px;padding-bottom:22px}
.np-admin-hero{padding:20px 24px;margin-bottom:13px;border-radius:14px}
.np-admin-hero h1{font-size:clamp(22px,2.5vw,29px);margin-bottom:4px}
.np-admin-hero p{font-size:12.5px;line-height:1.45}
.np-admin-compact .np-panel{padding:17px 20px;border-radius:12px;margin-bottom:13px;box-shadow:0 5px 15px #13395308}
.np-admin-compact .np-panel h2{font-size:15px;margin:0 0 9px}
.np-admin-compact .np-muted{font-size:12px;line-height:1.5;margin:8px 0}
.np-admin-compact .np-note{font-size:12px;line-height:1.5;padding:9px 12px;margin:0 0 12px}
.np-status-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.np-status-card{background:#f3f8fb;border:1px solid #dbe8ef;border-radius:10px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;font-size:12px}
.np-status-card strong{color:#284e68}
.np-status-card em{font-style:normal;font-weight:800;color:#146983;font-size:11px}
.np-admin-form{gap:12px;margin:0}
.np-config-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px 14px}
.np-config-field{display:flex;flex-direction:column;min-width:0;gap:4px;font-size:12px}
.np-config-field>label,.np-config-field>legend{font-size:12px;font-weight:750;color:#26435a;padding:0;margin:0}
.np-config-field>small{font-size:10.5px;color:#647e8f;line-height:1.35}
.np-admin-form .np-config-field input:not([type=checkbox]),.np-admin-form .np-config-field select,.np-admin-form .np-config-field textarea{
 width:100%;max-width:100%;min-width:0;min-height:36px;padding:8px 10px;
 border:1px solid #cbdde8;border-radius:8px;background:#fff;color:#1a354a;font:inherit;font-size:12.5px;
}
.np-admin-form .np-config-field textarea{min-height:66px;height:70px;resize:vertical}
.np-admin-form .np-config-field textarea#id_message_template{min-height:125px;height:125px}
.np-config-secret,.np-config-channels,.np-config-events{grid-column:1/-1}
.np-config-channels,.np-config-events{border:0;padding:0;margin:0;min-width:0}
.np-config-channels legend,.np-config-events legend{padding:0;margin-bottom:8px;font-size:12px;font-weight:800}
.np-config-check{align-self:center}
.np-admin-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.np-admin-choice-three{grid-template-columns:repeat(3,minmax(0,1fr))}
.np-admin-form .np-choice{display:flex;align-items:center;gap:9px;background:#f4f8fb;border:1px solid #dbe7ef;border-radius:8px;cursor:pointer;padding:8px 10px;line-height:1.3;font-size:12px;font-weight:650;margin:0;min-height:37px}
.np-admin-form .np-choice input{width:15px;height:15px;flex:0 0 15px;margin:0;accent-color:#116e96}
.np-admin-form .np-choice:has(input:checked),.np-admin-events label:has(input:checked){background:#e8f5fb;border-color:#78b7d3;color:#0f526c}
.np-admin-events #id_events{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:0;padding:0;border:0;background:transparent}
.np-admin-events #id_events>div{margin:0;min-width:0}
.np-admin-events #id_events label{display:flex;gap:7px;align-items:center;min-height:35px;background:#f3f8fb;border:1px solid #dbe7ef;border-radius:7px;padding:7px 9px;font-size:11px;font-weight:650;line-height:1.25;cursor:pointer;margin:0}
.np-admin-events input[type=checkbox]{width:15px;height:15px;flex:0 0 15px;margin:0;accent-color:#116e96}
.np-form-bottom{border-top:1px solid #e5eef4;display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:10px;padding-top:12px}
.np-form-bottom>span{color:#6b8495;font-size:11px;margin-right:auto}
.np-form-bottom .np-button{font-size:12px;padding:9px 14px;min-height:37px}
.np-admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.np-admin-guide summary{cursor:pointer;font-size:13px;font-weight:800;color:#1b536b}
.np-guide-body{margin-top:10px;font-size:12px;color:#557286;line-height:1.6}

/* Export Center */
.bt-export-shell{max-width:1120px;margin:0 auto 28px}
.bt-export-hero{display:flex;align-items:center;justify-content:space-between;gap:18px;background:linear-gradient(125deg,#102d4b,#116a88);color:#fff;border-radius:17px;padding:26px 30px;margin-bottom:17px}
.bt-export-hero h1{margin:4px 0 9px;font-size:29px;color:#fff}
.bt-export-hero p{margin:0;color:#d3e9f3;line-height:1.5;max-width:760px;font-size:13px}
.bt-export-hero .eyebrow{color:#8de6dd;font-size:10px;text-transform:uppercase;font-weight:800;letter-spacing:1.2px}
.bt-export-icon{font-size:36px;background:#ffffff1d;border:1px solid #ffffff3c;border-radius:14px;padding:8px 18px}
.bt-export-panel{background:#fff;border:1px solid #dce8ef;border-radius:15px;padding:23px 26px;box-shadow:0 7px 26px #12395710}
.bt-export-panel h2{font-size:18px;margin:0 0 19px;color:#1b3f59}
.bt-export-form{display:grid;gap:19px}
.bt-export-control label,.bt-export-choice legend{display:block;font-size:12px;font-weight:800;color:#254960;margin:0 0 9px}
.bt-export-control select{display:block;width:100%;max-width:100%;border:1px solid #ccdce8;background:#f9fcfd;border-radius:8px;padding:11px 12px;font-size:13px;color:#23465e}
.bt-export-choice{border:0;margin:0;padding:0}
.bt-export-format-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}
.bt-export-format{display:flex;min-width:0;border-radius:9px;border:1px solid #dce7ef;background:#f6f9fc;padding:10px;align-items:center;gap:7px;font-size:12px;font-weight:650;cursor:pointer;color:#2b4e66}
.bt-export-format input{accent-color:#176d91;flex:0 0 auto}
.bt-export-format:has(input:checked){border-color:#65a9ca;background:#e8f6fd;color:#0d5677;box-shadow:inset 0 0 0 1px #9bcde1}
.bt-export-bottom{border-top:1px solid #e5edf3;padding-top:16px;display:flex;justify-content:space-between;align-items:center;gap:20px}
.bt-export-bottom p{margin:0;font-size:11px;line-height:1.5;color:#658194;max-width:740px}
.bt-export-bottom button{background:#116d91;color:#fff;border:0;border-radius:8px;padding:11px 16px;white-space:nowrap;font-size:12px;font-weight:800;cursor:pointer}
.bt-export-bottom button:hover{background:#095879}
.bt-export-help{padding:15px 7px;font-size:11px;line-height:1.5;color:#668497}

/* Supporting documents */
.bt-attach-panel{border:1px dashed #adc9da;background:#f5fafc;border-radius:10px;padding:14px 15px;margin:13px 0;display:flex;flex-direction:column;gap:6px}
.bt-attach-panel label{font-size:13px;color:#215674}
.bt-attach-panel input{font-size:12px;max-width:100%}
.bt-attach-panel small{font-size:11px;color:#658195;line-height:1.4}
.bt-confirm-import{flex-wrap:wrap;gap:12px!important;align-items:center}
.bt-import-attachments{font-size:11px;color:#416781;display:flex;flex-direction:column;gap:4px;max-width:300px}
.bt-import-attachments input{font-size:11px;max-width:100%}
.bt-import-attachments small{font-size:10px;color:#658295}

/* Django Admin lives outside app.css, styled in admin.css below. */
@media(max-width:980px){.bt-export-format-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.np-admin-events #id_events{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.np-admin-hero{padding:18px 16px}.np-admin-compact .np-panel{padding:16px}.np-config-grid,.np-admin-grid{grid-template-columns:1fr}.np-config-secret,.np-config-channels,.np-config-events{grid-column:auto}.np-status-row{grid-template-columns:1fr}.bt-export-hero{padding:19px}.bt-export-panel{padding:17px}.bt-export-icon{display:none}.bt-export-format-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.bt-export-bottom{flex-direction:column;align-items:stretch}.bt-export-bottom button{width:100%}}
@media(max-width:440px){.np-admin-events #id_events,.np-admin-choice-three{grid-template-columns:1fr}.bt-export-format-grid{grid-template-columns:1fr}}
