/*
 * Garderie — application theme (Bootstrap 5.3 on top).
 * 1. Design tokens + Bootstrap overrides
 * 2. App shell (top bar, sidebar, content)
 * 3. Components used by the screens (page header, cards, data tables, toolbars)
 * 4. Legacy markup safety net: styles the old PHPMaker markup (<font>, .Bouton,
 *    .SiteCelluleDecorFormulairadmin, bgcolor tables) so any screen still using it looks consistent.
 */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url(../vendor/inter/inter-latin-400.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url(../vendor/inter/inter-latin-500.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url(../vendor/inter/inter-latin-600.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url(../vendor/inter/inter-latin-700.woff2) format("woff2"); }

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --app-primary: #006599;
  --app-primary-rgb: 0, 101, 153;
  --app-primary-dark: #004f78;
  --app-accent: #19aed9;
  --app-bg: #f3f6f9;
  --app-surface: #ffffff;
  --app-border: #dfe5ec;
  --app-muted: #6b7a8c;
  --app-head-bg: #eef3f8;
  --app-head-fg: #24425a;
  --app-sidebar-w: 248px;
  --app-topbar-h: 64px;

  --bs-primary: var(--app-primary);
  --bs-primary-rgb: var(--app-primary-rgb);
  --bs-link-color: var(--app-primary);
  --bs-link-color-rgb: var(--app-primary-rgb);
  --bs-link-hover-color: var(--app-primary-dark);
  --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bs-body-font-size: .875rem;
  --bs-border-color: var(--app-border);
}
.btn-primary {
  --bs-btn-bg: var(--app-primary); --bs-btn-border-color: var(--app-primary);
  --bs-btn-hover-bg: var(--app-primary-dark); --bs-btn-hover-border-color: var(--app-primary-dark);
  --bs-btn-active-bg: var(--app-primary-dark); --bs-btn-active-border-color: var(--app-primary-dark);
  --bs-btn-disabled-bg: var(--app-primary); --bs-btn-disabled-border-color: var(--app-primary);
}
.btn-outline-primary {
  --bs-btn-color: var(--app-primary); --bs-btn-border-color: var(--app-primary);
  --bs-btn-hover-bg: var(--app-primary); --bs-btn-hover-border-color: var(--app-primary);
  --bs-btn-active-bg: var(--app-primary); --bs-btn-active-border-color: var(--app-primary);
}
.form-control:focus, .form-select:focus { border-color: #7fb2cc; box-shadow: 0 0 0 .2rem rgba(var(--app-primary-rgb), .15); }
.pagination { --bs-pagination-color: var(--app-primary); --bs-pagination-active-bg: var(--app-primary); --bs-pagination-active-border-color: var(--app-primary); }

/* 2. Shell ----------------------------------------------------------------- */
body.app { background: var(--app-bg); min-height: 100vh; display: flex; flex-direction: column; }

.app-body { flex: 1; display: flex; min-width: 0; }

.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app-content { flex: 1; padding: 1.25rem 1.5rem 2rem; }
@media (max-width: 575.98px) { .app-content { padding: 1rem; } }
.app-footer { padding: .75rem 1.5rem; color: var(--app-muted); font-size: .75rem; border-top: 1px solid var(--app-border); background: var(--app-surface); }

/* 3. Components ------------------------------------------------------------ */
.page-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.page-title { font-size: 1.25rem; font-weight: 600; margin: 0; color: #1f3346; }
.page-title .bi { color: var(--app-primary); margin-right: .4rem; }
.card { border-color: var(--app-border); box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.card > .card-header { background: var(--app-surface); font-weight: 600; color: var(--app-head-fg); border-bottom-color: var(--app-border); }
.form-label { font-weight: 500; color: #3a4b5c; margin-bottom: .25rem; font-size: .8rem; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: 1rem; }

.table-app { --bs-table-bg: var(--app-surface); margin-bottom: 0; font-size: .8125rem; }
.table-app > thead th, .table-app > thead td, .table-app th.th {
  background: var(--app-head-bg); color: var(--app-head-fg); font-weight: 600; white-space: nowrap;
  border-bottom: 1px solid var(--app-border); vertical-align: middle;
}
.table-app > thead a { color: inherit; text-decoration: none; }
.table-app > thead a:hover { color: var(--app-primary); }
.table-app td { vertical-align: middle; }
.table-app tfoot td, .table-app tfoot th, .table-app tr.total td { background: #f7f9fb; font-weight: 600; }
.table-card { border: 1px solid var(--app-border); border-radius: .5rem; overflow: hidden; background: var(--app-surface); }
.table-card .table-responsive { margin: 0; }
.row-actions { white-space: nowrap; text-align: center; width: 1%; }
.btn-icon { --bs-btn-padding-y: .15rem; --bs-btn-padding-x: .4rem; --bs-btn-font-size: .85rem; line-height: 1.2; }
.pager-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin: .75rem 0; font-size: .8rem; color: var(--app-muted); }
.pager-bar .pagination { margin: 0; }
.amount, td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.text-legacy-red { color: #c0392b; }

.alert-flash { cursor: pointer; }

/* Login */
body.login-page {
  min-height: 100vh; display: grid; place-items: center; padding: 1rem;
  background: radial-gradient(circle at 20% 20%, #1a8cc0 0, transparent 45%), linear-gradient(135deg, var(--app-primary-dark), #0a8fbf);
}
.login-card { width: 100%; max-width: 380px; border: 0; border-radius: 1rem; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.login-card .brand-mark { width: 56px; height: 56px; border-radius: 14px; display: inline-grid; place-items: center; background: rgba(var(--app-primary-rgb), .1); color: var(--app-primary); font-size: 1.7rem; }

/* 4. Legacy markup safety net ---------------------------------------------- */
.app-content font { font-family: inherit; }
.app-content font[size="1"] { font-size: .8125rem; }
.app-content font[size="2"] { font-size: .875rem; }
.app-content table[cellspacing="1"][bgcolor] { border-collapse: separate; border-radius: .375rem; }
.app-content table[bgcolor="#CCCCCC"], .app-content table[bgcolor="#cccccc"] { background: var(--app-border) !important; }
.app-content .SiteCelluleDecorFormulairadmin, .app-content .SiteCelluleDecorFormulairadmin font[color] {
  background: var(--app-head-bg); color: var(--app-head-fg); font-weight: 600;
}
.app-content .SiteCelluleDecorFormulairadmin a { color: var(--app-head-fg); }
.app-content td[bgcolor="#F5F5F5"], .app-content td[bgcolor="#f5f5f5"] { background: var(--app-surface) !important; }
.app-content input.Bouton:not([type=submit]):not([type=button]):not([type=reset]):not([type=checkbox]):not([type=radio]):not([type=image]),
.app-content select.Bouton, .app-content textarea.Bouton, .app-content input.bouton:not([type=submit]):not([type=button]):not([type=checkbox]):not([type=radio]) {
  padding: .25rem .5rem; font-size: .8125rem; border: 1px solid #ced6df; border-radius: .375rem; background: #fff; max-width: 100%;
}
.app-content input[type=submit].Bouton, .app-content input[type=button].Bouton, .app-content input[type=reset].Bouton,
.app-content button.Bouton, .app-content a.Bouton, .app-content td.Bouton > a {
  display: inline-block; padding: .3rem .8rem; font-size: .8125rem; border-radius: .375rem; border: 1px solid var(--app-primary);
  background: var(--app-primary); color: #fff; text-decoration: none; cursor: pointer;
}
.app-content td.Bouton > a font { color: #fff; }
.app-content td.Bouton { background: transparent; }

/* Print layout */
body.print-page { background: #fff; font-family: var(--bs-body-font-family); font-size: 12px; color: #111; }
body.print-page font { font-family: inherit; }
@media print {
  .no-print { display: none !important; }
  body.print-page { margin: 0; }
}

/* Carnet + Activités annexes (pupil autocomplete, calendar trigger, print pages) */
.ac-wrap { position: relative; }
.ac-wrap div.prop { position: absolute; top: 100%; left: 0; z-index: 1060; min-width: 100%; max-height: 220px; overflow: auto; margin-top: 2px; padding: .35rem .5rem; background: #fff; border: 1px solid var(--app-border); border-radius: .375rem; box-shadow: 0 6px 16px rgba(16, 24, 40, .12); font-size: .8125rem; line-height: 1.7; visibility: hidden; }
.ac-wrap div.prop a { color: var(--app-primary) !important; }
.btn-cal { padding: .2rem .45rem; background: #fff; border: 1px solid var(--bs-border-color); }
.btn-cal:hover { background: var(--app-head-bg); }
.print-doc { max-width: 210mm; margin: 0 auto; padding: 8mm 6mm; }
.print-doc .print-logo { max-width: 100%; height: auto; }
.print-doc .table { --bs-table-bg: #fff; --bs-border-color: #8a96a3; font-size: 12px; }
.print-doc .table > :not(caption) > * > * { padding: .3rem .45rem; }
@media print { .print-doc { padding: 0; } }

/* Stock section (stock entry/exit/inventory forms, lists) ------------------- */
.stock-form { max-width: 760px; }
.stock-date { width: auto; flex-wrap: nowrap; }
.stock-date .form-control { max-width: 9rem; }
.stock-cal { padding: 0 .4rem; background: #fff; }
.stock-cal input[type=image] { display: block; }
.stock-form div.prop { visibility: hidden; z-index: 1050; background: #fff; border: 1px solid var(--app-border); border-radius: .375rem;
  box-shadow: 0 6px 16px rgba(16, 24, 40, .12); padding: .35rem .6rem; font-size: .8125rem; line-height: 1.7; }
.stock-suggest { position: absolute; top: 100%; left: 0; min-width: 260px; margin-top: 2px; max-height: 320px; overflow: auto; }
.stock-suggest-art { max-height: 220px; overflow: auto; }
.stock-lines table { width: 100% !important; table-layout: fixed; border-collapse: collapse !important; background: var(--app-surface) !important; margin: 0; }
.stock-lines td, .stock-lines th { padding: .4rem .6rem; border-bottom: 1px solid var(--app-border); background: var(--app-surface) !important; }
.stock-lines thead th { background: var(--app-head-bg) !important; }
.stock-lines tr > :not(:first-child) { width: 8.5rem; }
.stock-lines tr > :last-child:not(:first-child) { width: 6.5rem; text-align: center; }
.stock-lines select, .stock-lines input[type=text] { width: 100%; }
.stock-lines td:last-child > a { display: inline-block; padding: .15rem .5rem; font-size: .75rem; border: 1px solid #dc3545; border-radius: .375rem; color: #dc3545; text-decoration: none; }
.stock-lines td:last-child > a:hover { background: #dc3545; color: #fff; }
.stock-lines span[id^=leschamps_] { display: block; }
.stock-lines span[id^=leschamps_] > a { display: inline-block; margin: .6rem; padding: .25rem .6rem; font-size: .8125rem; border: 1px dashed var(--app-primary); border-radius: .375rem; text-decoration: none; }
.stock-lines span[id^=leschamps_] > a::before { content: "+"; font-weight: 700; margin-right: .2rem; }
.stock-lines span[id^=leschamps_] > a:hover { background: rgba(var(--app-primary-rgb), .08); }
.stock-detail { --bs-table-bg: transparent; min-width: 220px; font-size: .78rem; }
.stock-detail td { padding: .2rem .45rem; }
.stock-detail td.qte { width: 3.5rem; }

/* Inscriptions (inscrilist nested activities, inscription forms) */
.inscri-table > tbody > tr > td { vertical-align: top; }
.inscri-table td.parents { min-width: 200px; line-height: 1.35; }
.inscri-table td.parents .tel br { display: none; }
.inscri-table td.parents .tel, .inscri-table td.papiers { font-size: .75rem; color: var(--app-muted); }
.inscri-table td.papiers { min-width: 150px; line-height: 1.6; }
.inscri-table td.acts { min-width: 280px; }
.act-table { --bs-table-bg: transparent; --bs-table-striped-bg: transparent; font-size: .78rem; border: 1px solid var(--app-border); border-radius: .375rem; border-collapse: separate; border-spacing: 0; overflow: hidden; background: #fff; }
.act-table td { padding: .22rem .5rem; border-bottom: 1px solid #eef2f6; }
.act-table tfoot tr.total td { background: rgba(var(--app-primary-rgb), .07); border-bottom: 0; color: var(--app-head-fg); }
.act-pick td { vertical-align: middle; }
.act-pick .form-check { margin: 0; }

/* Factures (facturelist, facture_ins/edit, facture_enattente, recufacturelist, imp_facture*) */
.fac-table > tbody > tr > td { vertical-align: top; }
.fac-sub { --bs-table-bg: transparent; --bs-table-striped-bg: transparent; font-size: inherit; min-width: 14rem; }
.fac-sub > :not(caption) > * > * { padding: .2rem .45rem; background: transparent; box-shadow: none; }
.fac-sub thead th { color: var(--app-muted); font-weight: 600; font-size: .75rem; white-space: nowrap; }
.fac-sub tr.total td { border-top: 1px solid var(--app-border); font-weight: 600; }
.fac-lines td { vertical-align: top; }
.fac-lines span[id^="leschamps_"] > table { width: 100%; margin: .25rem 0; }
.fac-lines span[id^="leschamps_"] > table td { padding: .25rem .4rem; background: var(--app-surface); }
.fac-lines span[id^="leschamps_"] > a { display: inline-block; margin: .25rem 0; }
/* rows injected by create_champ() (legacy markup built in JS) */
.fac-lines span[id^="leschamps_"] > span > a { padding: .25rem .6rem; font-size: .8125rem; border: 1px solid var(--app-primary); border-radius: .375rem; color: var(--app-primary); text-decoration: none; }
.fac-lines span[id^="leschamps_"] > span > a:hover { background: var(--app-primary); color: #fff; }
.fac-lines span[id^="leschamps_"] > table input[type=text], .fac-lines span[id^="leschamps_"] > table textarea { width: 100%; text-align: right; }
.fac-lines span[id^="leschamps_"] > table textarea { text-align: left; height: calc(1.5em + .5rem + 2px); }
.fac-lines span[id^="leschamps_"] > table a[href^="javascript:supprime_ligne"] { color: var(--bs-danger); text-decoration: none; white-space: nowrap; }
@media (min-width: 992px) { .fac-lines-card, .fac-lines-card > .table-responsive { overflow: visible; } }
.invoice-sheet { max-width: 210mm; margin: 0 auto; padding: 12mm 14mm; background: #fff; font-size: 13px; }
.invoice-sheet + .invoice-sheet { border-top: 1px dashed #bbb; }
.invoice-letterhead { height: 150px; }
.invoice-brand { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 2px solid #ff6633; padding-bottom: .5rem; margin-bottom: 1rem; }
.invoice-brand .brand-ar { font-family: Tahoma, Geneva, sans-serif; font-size: 2.6rem; color: #ff6633; flex: 1; text-align: center; }
.invoice-brand img { max-height: 120px; }
.invoice-title { font-size: 1.4rem; font-weight: 700; text-align: center; margin: .75rem 0 1rem; }
.invoice-meta { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem 1.5rem; font-size: 14px; margin-bottom: 1rem; }
.invoice-sheet .table { --bs-table-bg: #fff; border-color: #333; margin-bottom: .75rem; }
.invoice-sheet .table th { background: #f1f3f5; }
.invoice-totals { width: 240px; margin-left: auto; font-size: 15px; }
.invoice-words { font-size: 15px; }
@media print {
  .invoice-sheet { padding: 0; max-width: none; page-break-after: always; break-after: page; }
  .invoice-sheet:last-of-type { page-break-after: auto; break-after: auto; }
  .invoice-sheet + .invoice-sheet { border-top: 0; }
  .invoice-sheet .table th { background: #f1f3f5 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.stock-group-alt > td { background: #f1f4f7 !important; }
.form-section-title { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--app-muted); margin: 1.25rem 0 .5rem; padding-top: 1rem; border-top: 1px solid var(--app-border); }
.act-pick td.price-cell, .act-pick th.text-end { width: 9rem; }
.act-pick td.price-cell input { width: 8rem; margin-left: auto; }
.form-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: 1rem 0 2rem; }
.stock-print { max-width: 210mm; margin: 0 auto; padding: 8mm 6mm; }
.stock-print .table { --bs-table-bg: #fff; font-size: 12px; }
.stock-print .table > :not(caption) > * > * { padding: .3rem .45rem; }
.stock-print-bon { max-width: 140mm; }
.stock-print .stock-detail { min-width: 0; }
.stock-print .stock-detail td { border-bottom: 1px solid var(--app-border); }
.stock-print .stock-detail tr:last-child td { border-bottom: 0; }
@media print { .stock-print { padding: 0; } }

/* Règlements (recu_reg.php, ficheimp.php, liste_nnregler.php) -------------- */
.reg-recu .reg-letterhead { height: 150px; } /* blank top kept for the pre-printed letterhead */
.reg-recu-table { max-width: 600px; }
.reg-fiche-title { font-family: Tahoma, Geneva, sans-serif; font-size: 2.6rem; color: #ff6633; }
.reg-fiche-logo { max-height: 110px; }
.reg-fiche-sub { --bs-table-bg: transparent; table-layout: fixed; }
.reg-fiche-sub td, .reg-fiche-sub th { width: 33%; }
.reg-fiche-act { width: 32%; }
.reg-fiche-pay { width: 46%; }
.reg-print-footer { border-top: 2px solid var(--app-border); color: #666; font-size: .75rem; margin-top: 3rem !important; }
.reg-nnregler { max-width: 560px; }

/* Club + Fournisseur ------------------------------------------------------- */
.club-doc { max-width: 1000px; margin: 0 auto; padding: 1rem; }
.club-doc-table { width: auto; min-width: 220px; }
.frais-table > tbody > tr > td { border-bottom-color: #e6ebf1; }
.frais-table > tbody > tr.grp-alt > td { background: #f5f8fb; }
.frais-table td[rowspan] { vertical-align: top; }

/* Caisse section ------------------------------------------------------------ */
/* <select class='Bouton'> injected by produit.php (AJAX) into #id_sp */
.app-content .caisse-ajax-select select { display: block; width: 100%; }
.act-table > thead th { font-size: .7rem; font-weight: 600; color: var(--app-muted); text-transform: uppercase; letter-spacing: .03em; background: #f7f9fb; padding: .25rem .5rem; border-bottom: 1px solid var(--app-border); }
@media (max-width: 575.98px) {
  .stock-lines td, .stock-lines th { padding: .35rem .3rem; }
  .stock-lines tr > :not(:first-child) { width: 4.25rem; }
  .stock-lines tr > :last-child:not(:first-child) { width: 4.75rem; }
  .stock-lines td:last-child > a { padding: .15rem .3rem; }
}
/* printable pages impcaisse / imp_depense / imp_km / impdepense / impsalaire / imp_solde / soldeg */
.caisse-doc { max-width: 1000px; margin: 0 auto; padding: 1rem; }
.caisse-doc .doc-logo { display: block; max-width: 100%; height: auto; margin: 0 auto 1rem; }
.caisse-doc .doc-title { font-size: 1.15rem; font-weight: 600; text-align: center; margin: .75rem 0 1rem; }
.caisse-doc .table { font-size: 12px; margin: 0 auto 1rem; }
.caisse-doc .table th { background: #f3f5f8; }
@media print { .caisse-doc { padding: 0; } }


/* Global UI helpers (js/app.js): toasts, busy buttons, sticky table headers, date picker */
.app-toast { background: #1f3346; color: #fff; box-shadow: 0 10px 30px rgba(16, 24, 40, .25); }
.app-toast .btn-close { filter: invert(1) grayscale(1) brightness(2); }
.app-toast .bi { color: var(--app-accent); }
.is-busy { pointer-events: none; opacity: .65; cursor: progress; }
button.is-busy::after { content: ""; display: inline-block; width: .8em; height: .8em; margin-left: .4em; vertical-align: -.1em;
  border: .15em solid currentColor; border-right-color: transparent; border-radius: 50%; animation: app-spin .7s linear infinite; }
@keyframes app-spin { to { transform: rotate(360deg); } }
.flatpickr-calendar { font-family: var(--bs-body-font-family); border-radius: .6rem; box-shadow: 0 10px 30px rgba(16, 24, 40, .18); }
.flatpickr-day.selected, .flatpickr-day.selected:hover, .flatpickr-day.today.selected { background: var(--app-primary); border-color: var(--app-primary); }
.flatpickr-day.today { border-color: var(--app-accent); }
.flatpickr-months .flatpickr-month, .flatpickr-current-month .flatpickr-monthDropdown-months { color: var(--app-head-fg); }
input.flatpickr-input[readonly] { background-color: #fff; }
.modal-content { border: 0; border-radius: .75rem; box-shadow: 0 20px 50px rgba(16, 24, 40, .25); }
body { -webkit-font-smoothing: antialiased; }

/* Login (split screen) */
body.auth { margin: 0; min-height: 100vh; background: #fff; }
.auth-grid { min-height: 100vh; display: grid; grid-template-columns: 1fr; }
@media (min-width: 992px) { .auth-grid { grid-template-columns: 1.1fr 1fr; } }
.auth-hero { display: none; position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(circle at 15% 15%, #22a9dd 0, transparent 45%), linear-gradient(150deg, #004f78 0%, #006599 55%, #0a8fbf 100%); }
@media (min-width: 992px) { .auth-hero { display: flex; align-items: center; justify-content: center; } }
.auth-hero-inner { position: relative; z-index: 1; width: min(560px, 85%); }
.auth-brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.1rem; margin-bottom: 2rem; }
.auth-brand .brand-mark { width: 40px; height: 40px; border-radius: 12px; display: inline-grid; place-items: center; background: rgba(255, 255, 255, .18); }
.auth-illustration { height: 110px; border-radius: 1.25rem; background: #fff url(../images/2.jpg) left center / auto 100% no-repeat;
  box-shadow: 0 25px 60px rgba(0, 0, 0, .3); border: 4px solid rgba(255, 255, 255, .25); margin-bottom: 2.25rem; }
.auth-headline { font-size: 2.1rem; font-weight: 700; line-height: 1.2; margin-bottom: 1.5rem; letter-spacing: -.02em; }
.auth-features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.auth-features li { display: flex; align-items: center; gap: .6rem; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .15);
  border-radius: .75rem; padding: .65rem .8rem; font-size: .85rem; backdrop-filter: blur(4px); }
.auth-features .bi { font-size: 1.1rem; color: #bfe9fb; }
.auth-blob { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .25; background: #fff; animation: auth-float 12s ease-in-out infinite; }
.auth-blob.b1 { width: 320px; height: 320px; right: -110px; top: -90px; opacity: .1; }
.auth-blob.b2 { width: 180px; height: 180px; left: -60px; bottom: 8%; opacity: .08; animation-delay: -4s; }
.auth-blob.b3 { width: 90px; height: 90px; right: 12%; bottom: -30px; background: #19aed9; opacity: .35; animation-delay: -8s; }
@keyframes auth-float { 50% { transform: translateY(-18px) scale(1.04); } }
@media (prefers-reduced-motion: reduce) { .auth-blob { animation: none; } }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 2rem 1.25rem;
  background: url(../login/fond.jpg) center / cover no-repeat; }
@media (min-width: 992px) { .auth-panel { background: #f7f9fc; } }
.auth-form { width: 100%; max-width: 400px; background: #fff; border-radius: 1.25rem; padding: 2.25rem 2rem;
  box-shadow: 0 20px 50px rgba(16, 24, 40, .12); }
@media (min-width: 992px) { .auth-form { box-shadow: none; background: transparent; padding: 0; } }
.auth-mobile-banner { height: 56px; border-radius: .9rem; margin: -.5rem 0 1.5rem; background: #fff url(../images/2.jpg) left center / auto 100% no-repeat; }
.auth-form .form-control { border-radius: .65rem; }
.auth-form .form-floating > label { color: #6b7a8c; }
.auth-password .form-floating > .form-control { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.auth-password .btn { border-color: #dee2e6; border-top-right-radius: .65rem; border-bottom-right-radius: .65rem; padding-inline: .9rem; }
.auth-submit { border-radius: .65rem; font-weight: 600; box-shadow: 0 8px 20px rgba(var(--app-primary-rgb), .3); }
.auth-submit .bi { transition: transform .2s; }
.auth-submit:hover .bi { transform: translateX(4px); }
.auth-foot { margin: 2rem 0 0; text-align: center; color: var(--app-muted); font-size: .75rem; }
.wave { display: inline-block; transform-origin: 70% 70%; animation: wave 2.4s ease-in-out 1; }
@keyframes wave { 10%, 30% { transform: rotate(14deg); } 20% { transform: rotate(-8deg); } 40% { transform: rotate(0); } }

/* Dashboard */
.dash-hero { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.25rem; }
.dash-title { font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; margin: 0; color: #13283a; }
.dash-sub { color: var(--app-muted); }
.dash-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.dash-actions .btn { border-radius: .6rem; font-weight: 500; }
.kpi { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-areas: "icon label" "icon value" "foot foot";
  column-gap: .9rem; row-gap: .1rem; padding: 1.1rem 1.2rem; border-radius: .9rem; background: #fff; border: 1px solid var(--app-border);
  text-decoration: none; color: inherit; height: 100%; transition: transform .15s, box-shadow .15s; overflow: hidden; }
.kpi:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(16, 24, 40, .08); color: inherit; }
.kpi::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: var(--kpi-soft); }
.kpi-icon { grid-area: icon; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem;
  background: var(--kpi-soft); color: var(--kpi-color); align-self: center; }
.kpi-label { grid-area: label; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--app-muted); }
.kpi-value { grid-area: value; font-size: 1.55rem; font-weight: 700; color: #13283a; font-variant-numeric: tabular-nums; line-height: 1.2; }
.kpi-value small { font-size: .8rem; font-weight: 600; color: var(--app-muted); }
.kpi-foot { grid-area: foot; margin-top: .65rem; padding-top: .55rem; border-top: 1px dashed var(--app-border); font-size: .78rem; color: var(--app-muted); position: relative; z-index: 1; }
.kpi-blue { --kpi-color: #006599; --kpi-soft: rgba(0, 101, 153, .09); }
.kpi-green { --kpi-color: #13895f; --kpi-soft: rgba(19, 137, 95, .1); }
.kpi-violet { --kpi-color: #6d4bc4; --kpi-soft: rgba(109, 75, 196, .1); }
.kpi-red { --kpi-color: #c0392b; --kpi-soft: rgba(192, 57, 43, .09); }
.bars { display: grid; grid-template-columns: repeat(var(--bars, 12), 1fr); gap: .6rem; height: 240px; align-items: end; }
.bar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.bar-fill { width: 100%; max-width: 38px; min-height: 3px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #2a9fd6, var(--app-primary));
  opacity: .8; transition: opacity .15s; }
.bar:hover .bar-fill, .bar.is-current .bar-fill { opacity: 1; }
.bar.is-current .bar-fill { background: linear-gradient(180deg, var(--app-accent), #0a7fb0); box-shadow: 0 6px 14px rgba(25, 174, 217, .35); }
.bar-value { font-size: .68rem; color: var(--app-muted); margin-bottom: .25rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bar-label { font-size: .72rem; margin-top: .4rem; color: #3a4b5c; font-weight: 500; }
.bar.is-current .bar-label { color: var(--app-primary); font-weight: 700; }
.bar.is-before .bar-fill { background: repeating-linear-gradient(45deg, #9fb3c4, #9fb3c4 4px, #b8c8d6 4px, #b8c8d6 8px); }
@media (max-width: 575.98px) { .bars { gap: .25rem; height: 180px; } .bar-value { display: none; } }

/* Empty states */
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--app-muted); }
.empty-state > .bi { font-size: 2.6rem; color: #b6c4d2; display: block; margin-bottom: .75rem; }
.empty-state h2 { font-size: 1.1rem; color: #2d3e50; }
.empty-state.small-state { padding: 2rem 1rem; }
.empty-state.small-state > .bi { font-size: 1.8rem; }
.empty-state p { margin: 0; }

/* Links: no underline except on hover (modern style) */
.app-content a:not(.btn):not(.page-link):not(.nav-link) { text-decoration: none; }
.app-content a:not(.btn):not(.page-link):not(.nav-link):hover { text-decoration: underline; }

/* UI v2: slimmer banner, collapsible sidebar, global search */
.app-search-dialog { margin-top: 8vh; }
.app-search-input { display: flex; align-items: center; gap: .75rem; padding: .9rem 1.1rem; border-bottom: 1px solid var(--app-border); }
.app-search-input .bi { color: var(--app-muted); font-size: 1.1rem; }
.app-search-input input { flex: 1; border: 0; outline: 0; font-size: 1.05rem; background: transparent; }
.app-search-input kbd { background: var(--app-head-bg); color: var(--app-muted); font-size: .7rem; }
.search-group { font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--app-muted); padding: .6rem .75rem .3rem; }
.search-item { display: flex; align-items: center; gap: .75rem; padding: .5rem .75rem; border-radius: .5rem; color: inherit; text-decoration: none; }
.search-item:hover, .search-item.active { background: rgba(var(--app-primary-rgb), .08); color: inherit; }
.search-item.active { outline: 1px solid rgba(var(--app-primary-rgb), .25); }
.search-icon { width: 34px; height: 34px; border-radius: .5rem; display: grid; place-items: center; background: var(--app-head-bg); color: var(--app-primary); flex-shrink: 0; }
.search-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.search-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-sub { font-size: .78rem; color: var(--app-muted); }
@media (max-width: 575.98px) {
  .kpi { grid-template-columns: 1fr; grid-template-areas: "label" "value" "foot"; padding: .85rem; }
  .kpi-icon { display: none; }
  .kpi-value { font-size: 1.1rem; }
  .kpi-label { font-size: .66rem; }
  .kpi-foot { font-size: .7rem; }
  .bar-label { font-size: .55rem; }
  .dash-actions .btn { flex: 1 1 45%; }
}

/* Modern selects (Tom Select, js/select.js). The wrapper (.form-select) is the bordered box, as in the theme. */
.ts-wrapper { min-width: 7.5rem; }
.ts-wrapper.form-select { border-color: #ced6df; font-size: .8125rem; background-color: #fff; }
.ts-wrapper.form-select-sm .ts-control { font-size: .8125rem; }
.ts-wrapper.form-select.focus { border-color: #7fb2cc; box-shadow: 0 0 0 .2rem rgba(var(--app-primary-rgb), .15); }
.ts-wrapper.single .ts-control { flex-wrap: nowrap; overflow: hidden; }
.ts-wrapper.single .ts-control > .item { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ts-wrapper.single.ts-typing .ts-control > .item { display: none; }
.ts-wrapper.single .ts-control > input { min-width: 1rem; flex: 1 1 auto; }
.ts-wrapper.disabled { background-color: #e9ecef; opacity: .8; }
.ts-dropdown { z-index: 1065; border-color: #c8d3de; border-radius: .5rem; box-shadow: 0 12px 28px rgba(16, 24, 40, .14); font-size: .8125rem; margin-top: 4px; }
.ts-dropdown .option { padding: .4rem .65rem; }
.ts-dropdown .active { background: rgba(var(--app-primary-rgb), .1); color: #13283a; }
.ts-dropdown .selected { font-weight: 600; color: var(--app-primary); }
.ts-dropdown .highlight { background: rgba(25, 174, 217, .25); border-radius: 2px; }
.ts-dropdown .no-results { padding: .5rem .65rem; color: var(--app-muted); }
.ts-wrapper.multi .ts-control > .item { background: rgba(var(--app-primary-rgb), .1); border: 0; border-radius: .35rem; color: var(--app-primary); }
.ts-wrapper .ts-control { align-items: center; }
.ts-wrapper.form-select-sm .ts-control, .ts-wrapper.form-select-sm.has-items .ts-control { padding: .25rem 2rem .25rem .5rem !important; min-height: 0; line-height: 1.5; }
.ts-wrapper.form-select-sm { min-height: calc(1.5em + .5rem + 2px); }
.ts-wrapper.form-select:not(.form-select-sm) .ts-control, .ts-wrapper.form-select:not(.form-select-sm).has-items .ts-control { padding: .3rem 2.25rem .3rem .65rem !important; line-height: 1.5; }

/* Top navigation bar (light, sticky) with mega menus */
.app-topbar { position: sticky; top: 0; z-index: 1030; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.6) blur(10px);
  border-bottom: 1px solid var(--app-border); box-shadow: 0 1px 0 rgba(16, 24, 40, .02); transition: box-shadow .2s; }
body.is-scrolled .app-topbar { box-shadow: 0 6px 20px rgba(16, 24, 40, .08); }
.app-topbar-inner { display: flex; align-items: center; gap: .75rem; height: var(--app-topbar-h); padding: 0 1rem; }
.app-brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: #13283a; flex-shrink: 0; }
.app-brand .brand-mark { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 1.1rem; color: #fff;
  background: linear-gradient(135deg, var(--app-accent), var(--app-primary)); box-shadow: 0 6px 14px rgba(var(--app-primary-rgb), .3); }
.app-brand .brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.app-brand strong { font-size: .98rem; letter-spacing: -.01em; }
.app-brand small { font-size: .7rem; color: var(--app-muted); }
@media (max-width: 575.98px) { .app-brand .brand-text small { display: none; } }
.app-icon-btn { border: 0; background: transparent; width: 38px; height: 38px; border-radius: .6rem; font-size: 1.4rem; color: #2d3e50; display: grid; place-items: center; }
.app-icon-btn:hover { background: var(--app-head-bg); }
.app-tabs { list-style: none; margin: 0 0 0 1rem; padding: 0; align-items: stretch; height: 100%; gap: .15rem; flex: 1; min-width: 0; }
.app-tab { position: relative; display: flex; align-items: center; }
.app-tab-link { position: relative; display: flex; align-items: center; gap: .4rem; padding: .45rem .7rem; border-radius: .55rem; color: #3a4b5c;
  text-decoration: none; font-weight: 500; font-size: .875rem; white-space: nowrap; transition: background .15s, color .15s; }
.app-tab-link .bi:first-child { font-size: 1rem; color: #7a8a9b; transition: color .15s; }
.app-tab-caret { font-size: .65rem; opacity: .55; transition: transform .2s; }
.app-tab:hover .app-tab-link, .app-tab:focus-within .app-tab-link { background: var(--app-head-bg); color: var(--app-primary); }
.app-tab:hover .app-tab-link .bi:first-child { color: var(--app-primary); }
.app-tab:hover .app-tab-caret { transform: rotate(180deg); }
.app-tab.is-active .app-tab-link { color: var(--app-primary); font-weight: 600; background: rgba(var(--app-primary-rgb), .08); }
.app-tab.is-active .app-tab-link .bi:first-child { color: var(--app-primary); }
.app-tab.is-active::after { content: ""; position: absolute; left: .7rem; right: .7rem; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg, var(--app-accent), var(--app-primary)); }
.app-mega { position: absolute; top: calc(100% + 1px); left: 0; min-width: 260px; max-width: min(720px, 92vw); width: max-content; padding: 1rem 1.1rem 1.1rem;
  background: #fff; border: 1px solid var(--app-border); border-radius: .9rem; box-shadow: 0 24px 50px rgba(16, 24, 40, .16);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .16s, transform .16s, visibility .16s; z-index: 1040; }
.app-tab.has-mega::before { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; }
.app-tab:hover .app-mega, .app-tab:focus-within .app-mega { opacity: 1; visibility: visible; transform: translateY(0); }
.app-tabs > .app-tab:nth-last-child(-n+3) .app-mega { left: auto; right: 0; }
.app-mega-head { display: flex; align-items: center; gap: .5rem; font-weight: 700; color: #13283a; margin-bottom: .75rem; padding-bottom: .6rem; border-bottom: 1px solid var(--app-border); }
.app-mega-head .bi { color: var(--app-primary); }
.app-mega-grid { display: grid; grid-template-columns: repeat(var(--cols, 1), minmax(170px, 1fr)); gap: .25rem 1.5rem; }
.app-mega-col { display: flex; flex-direction: column; min-width: 170px; }
.app-mega-title { display: flex; align-items: center; gap: .4rem; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: var(--app-muted); margin: .35rem 0 .3rem; }
.app-mega-link { display: flex; align-items: center; gap: .45rem; padding: .35rem .5rem; margin: 0 -.5rem; border-radius: .45rem; color: #2d3e50;
  text-decoration: none; font-size: .85rem; }
.app-mega-link:hover, .app-mega-link:focus { background: rgba(var(--app-primary-rgb), .08); color: var(--app-primary); }
.app-mega-link .bi { color: #8a9aab; }
.app-topbar-tools { display: flex; align-items: center; gap: .5rem; margin-left: auto; flex-shrink: 0; }
.app-search-btn { display: inline-flex; align-items: center; gap: .55rem; height: 36px; padding: 0 .7rem; border-radius: .6rem;
  border: 1px solid var(--app-border); background: #f5f8fb; color: var(--app-muted); font-size: .82rem; transition: border-color .15s, background .15s; }
.app-search-btn:hover { border-color: #bfd0df; background: #fff; color: #2d3e50; }
@media (min-width: 1400px) { .app-search-btn { min-width: 210px; } .app-search-btn kbd { margin-left: auto; } }
.app-search-btn kbd { background: #fff; color: var(--app-muted); border: 1px solid var(--app-border); font-size: .66rem; padding: .05rem .35rem; box-shadow: none; }
.app-year { display: flex; align-items: center; gap: .35rem; height: 36px; padding: 0 .2rem 0 .65rem; border-radius: .6rem; background: rgba(var(--app-primary-rgb), .07);
  color: var(--app-primary); }
.app-year .ts-wrapper, .app-year select { min-width: 7.5rem; }
.app-year .ts-wrapper.form-select { border: 0; background-color: transparent; box-shadow: none; }
.app-year .ts-wrapper .ts-control { font-weight: 600; color: var(--app-primary); }
.app-user { display: flex; align-items: center; gap: .45rem; border: 0; background: transparent; padding: .2rem .35rem .2rem .2rem; border-radius: 2rem; color: #2d3e50; }
.app-user:hover, .app-user[aria-expanded="true"] { background: var(--app-head-bg); }
.app-avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; font-size: .9rem;
  background: linear-gradient(135deg, #6d4bc4, var(--app-primary)); }
.app-user-name { font-weight: 600; font-size: .85rem; }
.app-user-menu { border: 1px solid var(--app-border); border-radius: .75rem; box-shadow: 0 18px 40px rgba(16, 24, 40, .14); min-width: 230px; padding: .35rem; }
.app-user-menu .dropdown-item { border-radius: .45rem; font-size: .875rem; padding: .45rem .7rem; }
.app-user-menu kbd { font-size: .65rem; background: var(--app-head-bg); color: var(--app-muted); }
@media (max-width: 575.98px) { .app-year .bi { display: none; } .app-year { padding-left: .2rem; } .app-year .ts-wrapper { min-width: 6.5rem; } .app-search-btn { width: 36px; justify-content: center; padding: 0; } }
/* Mobile navigation */
.app-nav-mobile { width: min(340px, 88vw); }
.app-nav-mobile .offcanvas-header { border-bottom: 1px solid var(--app-border); }
.app-mnav-link { display: flex; align-items: center; gap: .7rem; padding: .7rem .5rem; color: #2d3e50; text-decoration: none; font-weight: 600; font-size: .95rem;
  background: transparent; border-radius: .5rem; }
.app-mnav-link .bi { font-size: 1.1rem; color: var(--app-primary); width: 1.3rem; }
.app-mnav-link.is-active { color: var(--app-primary); background: rgba(var(--app-primary-rgb), .07); }
.app-nav-mobile .accordion-button { box-shadow: none; }
.app-nav-mobile .accordion-button:not(.collapsed) { background: rgba(var(--app-primary-rgb), .07); color: var(--app-primary); }
.app-mnav-sub { display: flex; flex-direction: column; padding: .25rem 0 .5rem 2.4rem; }
.app-mnav-sub a { padding: .4rem 0; color: #3a4b5c; text-decoration: none; font-size: .9rem; border-bottom: 1px dashed var(--app-border); }
.app-mnav-sub a:last-child { border-bottom: 0; }
/* Navbar fitting: compact tabs below 1500px, fixed-width year box */
.app-year .ts-wrapper, .app-year select { width: 8.4rem; min-width: 0; }
@media (max-width: 1499.98px) {
  .app-tabs { margin-left: .5rem; gap: 0; }
  .app-tab-link { padding: .45rem .5rem; font-size: .84rem; gap: .3rem; }
  .app-tab-caret { display: none; }
  .app-brand .brand-text small { display: none; }
}
@media (min-width: 1200px) and (max-width: 1299.98px) { .app-tab-link .bi:first-child { display: none; } }
.app-tab.is-open .app-mega { opacity: 1; visibility: visible; transform: translateY(0); }
/* Single selects: the search input takes no room until the user types */
.ts-wrapper.single:not(.ts-typing) .ts-control > input { flex: 0 0 0; min-width: 0; width: 0 !important; padding: 0; }
@media (max-width: 575.98px) {
  .app-topbar-inner { gap: .4rem; padding: 0 .6rem; }
  .app-brand .brand-text { display: none; }
  .app-year .ts-wrapper, .app-year select { width: 7.6rem; }
  .app-user .bi-chevron-down { display: none; }
}

/* Left menu */
.app-sidebar { width: var(--app-sidebar-w); flex-shrink: 0; background: linear-gradient(180deg, #fbfcfe 0%, #f4f7fa 100%); border-right: 1px solid var(--app-border);
  transition: width .22s ease; }
@media (min-width: 992px) {
  .app-sidebar { position: sticky; top: var(--app-topbar-h); height: calc(100vh - var(--app-topbar-h)); overflow-y: auto; scrollbar-width: thin; scrollbar-color: #cfd9e3 transparent; }
}
.side-nav { display: flex; flex-direction: column; min-height: 100%; padding: .9rem .7rem 1rem; }
.side-card { display: flex; align-items: center; gap: .7rem; padding: .8rem; border-radius: .9rem; color: #fff; margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--app-primary) 0%, #0a8fbf 100%); box-shadow: 0 10px 22px rgba(var(--app-primary-rgb), .25); position: relative; overflow: hidden; }
.side-card::after { content: ""; position: absolute; right: -24px; top: -24px; width: 80px; height: 80px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.side-card-icon { width: 38px; height: 38px; border-radius: .65rem; display: grid; place-items: center; background: rgba(255, 255, 255, .2); font-size: 1.15rem; flex-shrink: 0; }
.side-card-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.side-card-text strong { font-size: .95rem; }
.side-card-text small { font-size: .7rem; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-label-head { font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #93a3b3; padding: 0 .55rem .4rem; }
.side-list { gap: .1rem; }
.side-nav .nav-link { position: relative; display: flex; align-items: center; gap: .65rem; padding: .42rem .55rem; border-radius: .6rem;
  color: #2d3e50; font-weight: 500; font-size: .86rem; transition: background .15s, color .15s; }
.side-ico { width: 30px; height: 30px; border-radius: .55rem; display: grid; place-items: center; background: #fff; border: 1px solid var(--app-border);
  color: #6b7a8c; flex-shrink: 0; transition: all .15s; }
.side-ico .bi { font-size: .95rem; }
.side-nav .nav-link:hover { background: #fff; color: var(--app-primary); box-shadow: 0 1px 3px rgba(16, 24, 40, .06); }
.side-nav .nav-link:hover .side-ico { color: var(--app-primary); border-color: rgba(var(--app-primary-rgb), .3); }
.side-nav > .side-list > .nav-item > .nav-link.active { background: #fff; color: var(--app-primary); font-weight: 600; box-shadow: 0 1px 4px rgba(16, 24, 40, .08); }
.side-nav > .side-list > .nav-item > .nav-link.active .side-ico { background: var(--app-primary); border-color: var(--app-primary); color: #fff; }
.side-count { margin-left: auto; font-size: .65rem; font-weight: 700; color: #8a9aab; background: #e9eef3; border-radius: 1rem; padding: .05rem .45rem; }
.side-group-toggle .chev { font-size: .7rem; color: #8a9aab; transition: transform .2s; }
.side-group-toggle.collapsed .chev { transform: rotate(-90deg); }
.side-sub { position: relative; margin: .15rem 0 .4rem 1.45rem; padding-left: .7rem; border-left: 1.5px solid #dbe3ea; }
.side-sub .nav-link { padding: .32rem .55rem; font-size: .82rem; font-weight: 450; color: #4a5b6c; gap: .5rem; }
.side-sub .nav-link::before { content: ""; position: absolute; left: -.72rem; top: 50%; width: .55rem; height: 1.5px; background: #dbe3ea; }
.side-sub .nav-link.active { color: var(--app-primary); font-weight: 600; background: rgba(var(--app-primary-rgb), .08); }
.side-sub .nav-link.active::before { background: var(--app-primary); height: 2px; }
.side-foot { margin-top: auto; padding-top: 1rem; display: flex; flex-direction: column; gap: .2rem; border-top: 1px solid var(--app-border); }
.side-foot-btn { display: flex; align-items: center; gap: .65rem; border: 0; background: transparent; padding: .45rem .6rem; border-radius: .6rem;
  font-size: .84rem; font-weight: 500; color: #4a5b6c; text-decoration: none; }
.side-foot-btn .bi { font-size: 1rem; width: 30px; text-align: center; }
.side-foot-btn:hover { background: #fff; color: var(--app-primary); }
.side-foot-btn.text-danger:hover { color: #c0392b !important; background: #fff1f0; }
@media (min-width: 992px) {
  body.sidebar-collapsed .app-sidebar { width: 76px; }
  body.sidebar-collapsed .side-nav { padding-left: .55rem; padding-right: .55rem; }
  body.sidebar-collapsed .side-card { justify-content: center; padding: .55rem; }
  body.sidebar-collapsed .side-card-text, body.sidebar-collapsed .side-label, body.sidebar-collapsed .side-label-head,
  body.sidebar-collapsed .chev, body.sidebar-collapsed .side-count, body.sidebar-collapsed .side-nav .collapse { display: none !important; }
  body.sidebar-collapsed .side-nav .nav-link, body.sidebar-collapsed .side-foot-btn { justify-content: center; padding: .4rem 0; }
  body.sidebar-collapsed .side-collapse .bi { transform: scaleX(-1); }
}

/* Top banner (children image) */
.app-banner { position: relative; height: 96px; overflow: hidden;
  background: radial-gradient(circle at 85% 30%, rgba(255, 255, 255, .25) 0, transparent 35%), linear-gradient(100deg, #3db1e2 0%, #1d97cf 45%, #006599 100%); }
.app-banner-art { position: absolute; inset: 0 auto 0 0; width: 1000px; max-width: 78%;
  background: url(../images/2.jpg) left center / auto 100% no-repeat;
  -webkit-mask-image: linear-gradient(90deg, #000 70%, transparent 100%); mask-image: linear-gradient(90deg, #000 70%, transparent 100%); }
.app-banner-info { position: absolute; right: 1.5rem; top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: .75rem; color: #fff; text-align: right; }
.app-banner-info .chip { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .75rem; border-radius: 2rem; font-size: .8rem; font-weight: 600;
  background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .3); backdrop-filter: blur(4px); white-space: nowrap; }
.app-banner-info .date { font-size: .8rem; opacity: .95; text-transform: capitalize; }
.app-banner::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--app-accent), #8ee0f7, var(--app-accent)); }
@media (max-width: 991.98px) { .app-banner-info .date { display: none; } }
@media (max-width: 767.98px) { .app-banner { height: 56px; } .app-banner-art { max-width: 100%; } .app-banner-info { display: none; } }
@media print { .app-banner { display: none; } }
