/* Montserrat latin-ext */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/JTUSjIg1_i6t8kCHKm459WdhyyTh89ZNpQ.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Montserrat latin */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/JTUSjIg1_i6t8kCHKm459WlhyyTh89Y.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Montserrat latin-ext */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/JTUSjIg1_i6t8kCHKm459WdhyyTh89ZNpQ.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Montserrat latin */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/JTUSjIg1_i6t8kCHKm459WlhyyTh89Y.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Manrope latin-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/xn7gYHE41ni1AdIRggmxSvfedN62Zw.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Manrope latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/xn7gYHE41ni1AdIRggexSvfedN4.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Manrope latin-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/xn7gYHE41ni1AdIRggmxSvfedN62Zw.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Manrope latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/xn7gYHE41ni1AdIRggexSvfedN4.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Manrope latin-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/xn7gYHE41ni1AdIRggmxSvfedN62Zw.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Manrope latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/xn7gYHE41ni1AdIRggexSvfedN4.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Manrope latin-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/xn7gYHE41ni1AdIRggmxSvfedN62Zw.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Manrope latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/xn7gYHE41ni1AdIRggexSvfedN4.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Feel It Nursing Academy — internal portal ─────────────────────────────
   Tokens read from the public site's stylesheet so the two match exactly. */

:root {
  --primary:    #153dc5;
  --primary-dk: #08184f;
  --blue-mid:   #7b96f1;
  --blue-pale:  #cfd6fc;
  --surface:    #f1f5ff;
  --ink:        #423e62;
  --muted:      #777681;
  --accent:     #f7ff94;
  --alert:      #ff5050;

  --paid:       #0f7b48;
  --paid-bg:    #e6f5ec;
  --partial:    #9a6400;
  --partial-bg: #fdf3dd;

  --line:   #dfe5f7;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(8,24,79,.05), 0 4px 14px rgba(8,24,79,.06);
  --sans:   Manrope, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --head:   Montserrat, system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 400 15px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--head); color: var(--primary-dk); letter-spacing: -.015em; margin: 0 0 .6rem; }
h1 { font-size: 1.5rem; font-weight: 700; }
h2 { font-size: 1.15rem; font-weight: 700; }
h3 { font-size: 1rem; font-weight: 600; }
a  { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Shell ─────────────────────────────────────────────────────────────── */

.shell { display: flex; min-height: 100vh; }

.sidebar {
  width: 232px; flex: 0 0 232px;
  background: var(--primary-dk); color: #fff;
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}
.sidebar-brand { padding: 14px 12px; border-bottom: 1px solid rgba(255,255,255,.12); }
/* The logo embeds a raster mark, so it cannot be recoloured with a filter —
   inverting turns the icon into a white block. Sit it on white instead. */
.sidebar-brand a { display: block; background: #fff; border-radius: 8px; padding: 9px 12px; }
.sidebar-brand a:hover { background: #fff; }
.sidebar-brand img { width: 100%; max-width: 172px; display: block; }
.sidebar nav { padding: 12px 8px; overflow-y: auto; flex: 1; }
.sidebar nav a {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 12px; margin-bottom: 2px; border-radius: 8px;
  color: rgba(255,255,255,.82); font-size: .9rem; font-weight: 500;
}
.sidebar nav a:hover { background: rgba(255,255,255,.09); color: #fff; text-decoration: none; }
.sidebar nav a.active { background: var(--primary); color: #fff; }
.sidebar nav .group {
  font-family: var(--head); font-size: .66rem; font-weight: 700;
  letter-spacing: .11em; text-transform: uppercase;
  color: rgba(255,255,255,.4); padding: 16px 12px 6px;
}
.sidebar-user { padding: 12px 16px; border-top: 1px solid rgba(255,255,255,.12); font-size: .8rem; }
.sidebar-user strong { display: block; color: #fff; font-weight: 600; }
.sidebar-user span   { color: rgba(255,255,255,.6); }
.sidebar-user button {
  margin-top: 8px; width: 100%; background: rgba(255,255,255,.1);
  border: 0; color: #fff; padding: 7px; border-radius: 7px;
  font: 500 .82rem var(--sans); cursor: pointer;
}
.sidebar-user button:hover { background: rgba(255,255,255,.18); }

.main { flex: 1; min-width: 0; padding: 26px 30px 60px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head p { margin: 0; color: var(--muted); font-size: .9rem; }

/* ── Components ────────────────────────────────────────────────────────── */

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 18px; }
.card-flush { padding: 0; overflow: hidden; }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 20px; }
.tile { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--primary); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.tile .label { font-size: .74rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.tile .value { font-family: var(--head); font-size: 1.65rem; font-weight: 700; color: var(--primary-dk); margin-top: 4px; line-height: 1.15; }
.tile.alert  { border-left-color: var(--alert); }
.tile.alert .value { color: var(--alert); }

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 15px; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); cursor: pointer;
  font: 600 .875rem var(--sans); white-space: nowrap;
}
.btn:hover { background: var(--surface); text-decoration: none; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: #0f31a4; }
.btn-danger { color: var(--alert); border-color: #ffd2d2; background: #fff5f5; }
.btn-danger:hover { background: #ffe9e9; }
.btn-sm { padding: 5px 10px; font-size: .8rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th {
  text-align: left; padding: 10px 14px; background: var(--surface);
  border-bottom: 1px solid var(--line); font: 600 .74rem var(--head);
  letter-spacing: .07em; text-transform: uppercase; color: var(--muted); white-space: nowrap;
}
.table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fafbff; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-wrap { overflow-x: auto; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .84em; }

.badge { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: .74rem; font-weight: 600; }
.badge-paid    { background: var(--paid-bg);    color: var(--paid); }
.badge-partial { background: var(--partial-bg); color: var(--partial); }
.badge-unpaid  { background: #f3f4f8;           color: var(--muted); }
.badge-alert   { background: #ffecec;           color: var(--alert); }
.badge-info    { background: var(--blue-pale);  color: var(--primary-dk); }

.field { margin-bottom: 15px; }
.field label { display: block; font-size: .82rem; font-weight: 600; color: var(--primary-dk); margin-bottom: 5px; }
.field .hint { font-size: .78rem; color: var(--muted); margin-top: 4px; }
input[type=text], input[type=password], input[type=date], input[type=number],
input[type=email], input[type=search], select, textarea {
  width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px;
  font: 400 .92rem var(--sans); color: var(--ink); background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blue-mid); outline-offset: -1px; border-color: var(--blue-mid); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
.form-actions { display: flex; gap: 10px; align-items: center; margin-top: 8px; }

.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 16px; }
.filters .field { margin-bottom: 0; }
.filters .grow { flex: 1 1 220px; }

.flash { padding: 11px 15px; border-radius: 8px; margin-bottom: 16px; font-size: .9rem; font-weight: 500; border: 1px solid; }
.flash-success { background: var(--paid-bg); border-color: #bfe3ce; color: var(--paid); }
.flash-error   { background: #fff2f2;       border-color: #ffcccc; color: #b01a1a; }
.flash-info    { background: var(--surface); border-color: var(--blue-pale); color: var(--primary-dk); }

.banner-stale { background: #fff2f2; border: 1px solid #ffcccc; color: #b01a1a; padding: 11px 15px; border-radius: 8px; margin-bottom: 16px; font-size: .9rem; }

.empty { padding: 44px 20px; text-align: center; color: var(--muted); }
.empty p { margin: 0 0 12px; }

.pager { display: flex; gap: 8px; align-items: center; justify-content: space-between; margin-top: 16px; font-size: .86rem; color: var(--muted); }
.pager .links { display: flex; gap: 6px; }

/* ── Month grid ────────────────────────────────────────────────────────── */

.mgrid { width: 100%; border-collapse: separate; border-spacing: 3px; font-size: .78rem; }
.mgrid th { font: 600 .68rem var(--head); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 3px; }
.mgrid td { padding: 0; }
.mcell { border-radius: 6px; padding: 7px 4px; text-align: center; line-height: 1.25; border: 1px solid transparent; }
.mcell .amt { display: block; font-variant-numeric: tabular-nums; font-weight: 600; }
.m-paid    { background: var(--paid-bg);    color: var(--paid);    border-color: #c7e6d4; }
.m-partial { background: var(--partial-bg); color: var(--partial); border-color: #f0dcaa; }
.m-unpaid  { background: #f3f4f8;           color: var(--muted);   border-color: var(--line); }
.m-future, .m-pre_enrolment { background: repeating-linear-gradient(45deg,#fafbfd,#fafbfd 4px,#f4f6fa 4px,#f4f6fa 8px); color: #c2c4d0; }

/* ── Login ─────────────────────────────────────────────────────────────── */

.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 22px; background: linear-gradient(160deg, var(--primary-dk), var(--primary) 70%, #1c4ae0); }
.login-card { width: 100%; max-width: 384px; background: #fff; border-radius: 14px; padding: 32px; box-shadow: 0 18px 50px rgba(8,24,79,.3); }
.login-card img { display: block; width: 190px; margin: 0 auto 22px; }
.login-card h1 { text-align: center; font-size: 1.1rem; margin-bottom: 4px; }
.login-card .sub { text-align: center; color: var(--muted); font-size: .86rem; margin: 0 0 22px; }
.login-card .btn { width: 100%; justify-content: center; padding: 11px; margin-top: 4px; }
.login-foot { text-align: center; margin-top: 18px; font-size: .78rem; color: var(--muted); }

/* ── Error page ────────────────────────────────────────────────────────── */

.error-page { max-width: 440px; margin: 12vh auto; text-align: center; padding: 22px; }
.error-logo { width: 190px; margin-bottom: 26px; }
.error-code { font: 700 3rem var(--head); color: var(--blue-pale); margin: 0; line-height: 1; }

/* ── Responsive ────────────────────────────────────────────────────────── */

@media (max-width: 860px) {
  .shell { flex-direction: column; }
  .sidebar { width: 100%; flex: none; height: auto; position: static; }
  .sidebar nav { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; }
  .sidebar nav a { padding: 7px 11px; font-size: .84rem; }
  .sidebar nav .group { display: none; }
  .sidebar-brand img { max-width: 140px; margin: 0 auto; }
  .sidebar-user { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .sidebar-user button { width: auto; margin-top: 0; padding: 6px 14px; }
  .main { padding: 18px 15px 50px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* ── Print (receipts) ──────────────────────────────────────────────────── */

@media print {
  .no-print { display: none !important; }
  body { background: #fff; }
}
