/* Uses global --mdrrmo-* tokens from resources/css/app.css (loaded via Vite) */
:root {
  --app-admin-sidebar-width: 230px;
  --app-admin-sidebar-border: 5px;
  --app-admin-sidebar-outer: calc(var(--app-admin-sidebar-width) + var(--app-admin-sidebar-border));
  --app-footer-reserved-pad: 6rem;
}

/*
 * Prevent horizontal drag/pan from moving the whole document over the fixed sidebar.
 * (Wide tables still scroll inside .app-shell__page where overflow-x: auto is set.)
 */
html {
  max-width: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

body {
  max-width: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

#app {
  max-width: 100%;
  overflow-x: hidden;
  min-width: 0;
}

/* Sidebar is fixed; main must not use width:100% + margin-left (overflows viewport). */

.navigation {
  overflow-y: auto;
  overflow-x: hidden;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 1040;
  box-sizing: border-box;
  width: var(--app-admin-sidebar-outer);
  min-width: var(--app-admin-sidebar-outer);
  max-width: var(--app-admin-sidebar-outer);
  border-left: 5px solid var(--mdrrmo-600, #0284c7);
  background: var(--mdrrmo-sidebar, linear-gradient(180deg, #075985 0%, #0c4a6e 100%));
  transition: 0.5s;
  isolation: isolate;
  pointer-events: auto;
}

.navigation ul {
  width: 100%;
  padding-left: 5px;
  padding-top: 40px;
}

.navigation li {
  padding-bottom: 0.5rem;
}

.navigation ul li div:first-child {
  position: relative;
  display: flex;
  list-style: none;
  width: calc(100% - 16px);
  margin: 0 8px 6px 8px;
  border-radius: 12px;
  overflow: hidden;
}

.navigation ul li div:not(:first-child) {
  margin-left: 4rem;
  padding: 0.3rem 0;
}

.navigation ul li div:first-child.active {
  background-color: rgba(56, 189, 248, 0.18);
  box-shadow: inset 3px 0 0 #38bdf8;
}

.navigation ul li div:first-child.active a {
  color: #ffffff;
}

.navigation ul a .icon {
  position: relative;
  list-style-type: none;
  width: 30px;
}

/*
.navigation ul a .icon {
    background-color: white;
}
*/
.navigation ul a {
  position: relative;
  display: flex;
  align-items: center;
  text-decoration: none;
  width: 100%;
  font-weight: bold;
  color: white;
}

.navigation ul a .icon {
  position: relative;
  display: block;
  min-width: 60px;
  height: 60px;
  line-height: 60px;
  text-align: center;
}

.navigation ul a .icon .title {
  position: relative;
  display: block;
  padding-left: 10px;
  height: 60px;
  line-height: 60px;
  white-space: normal;
}

.navigation ul li b:nth-child(1),
.navigation ul li b:nth-child(2) {
  display: none !important;
}

.toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: blue;
  border-radius: 10px;
  cursor: pointer;
}

.toggle.active {
  background: red;
}

.no-scrollbar {
  -ms-overflow-style: none; /* Internet Explorer 10+ */
  scrollbar-width: none; /* Firefox */
}
.no-scrollbar::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}

.fs-xsm {
  font-size: x-small !important;
}

/* —— Layout root (wraps shell + teleported modals): fill #app —— */
.layout-root {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    overflow-x: hidden;
}

/* —— App shell: column; .app-shell__content grows so main can fill viewport minus alert —— */
.app-shell {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    overflow-x: hidden;
}

.app-shell__content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    overflow-x: hidden;
}

main.app-shell__main {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    margin-left: var(--app-admin-sidebar-outer);
    width: calc(100% - var(--app-admin-sidebar-outer));
    max-width: calc(100% - var(--app-admin-sidebar-outer));
    box-sizing: border-box;
    min-width: 0;
    min-height: 0;
    position: relative;
    z-index: 0;
    padding: 0 2rem;
    padding-bottom: calc(var(--app-footer-reserved-pad) + env(safe-area-inset-bottom, 0px));
}

.app-shell__page {
    flex: 1 1 auto;
    min-height: 0;
    min-width: 0;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    overflow-x: auto;
    overscroll-behavior-x: contain;
}

/* DataTables + Bootstrap 5: .row negative margins extend past wrapper and widen the page */
.app-shell__page .dataTables_wrapper {
    max-width: 100%;
    box-sizing: border-box;
}

.app-shell__page .dataTables_wrapper > .row {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
}

.app-shell__page .dataTables_wrapper > .row > [class^="col-"] {
    max-width: 100%;
}

/* Fixed to viewport bottom inside the main column (right of sidebar) */
.app-shell__footer {
    position: fixed;
    bottom: 0;
    left: var(--app-admin-sidebar-outer);
    right: 0;
    z-index: 1020;
    width: auto;
    margin-top: 0;
    padding-inline: 2rem;
    box-sizing: border-box;
    background: var(--mdrrmo-surface-raised, #ffffff);
    border-top: 1px solid color-mix(in srgb, var(--mdrrmo-600, #0284c7) 10%, transparent);
    box-shadow: 0 -6px 24px rgba(8, 47, 73, 0.04);
}
/*# sourceMappingURL=styles.css.map */

/* ═══════════════════════════════════════════════════════════════
   Enhanced UI — Modern & Polished
   ═══════════════════════════════════════════════════════════════ */

/* — Sidebar: smooth transitions & hover — */
.navigation ul li div:first-child {
    transition: background-color 0.18s ease, box-shadow 0.18s ease;
}

.navigation ul li div:first-child:not(.active):hover {
    background-color: rgba(255, 255, 255, 0.09);
}

/* Active item accent — icon stays white on the dark sidebar bg */
.navigation ul li div:first-child.active .icon {
    color: var(--mdrrmo-300, #7dd3fc);
}

/* Tighter nav item height for cleaner feel */
.navigation ul a .icon {
    min-width: 52px;
    height: 52px;
    line-height: 52px;
    font-size: 1.05rem;
}

/* Reset top padding since brand+user section sits above the ul now */
.navigation ul {
    padding-top: 4px;
}

/* — Sidebar brand section — */
.nav-brand {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-brand__name {
    font-size: 0.88rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.04em;
    line-height: 1.2;
}

.nav-brand__tagline {
    font-size: 0.6rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* — Sidebar user trigger — */
.nav-user__trigger {
    transition: background-color 0.18s ease;
    cursor: pointer;
}

.nav-user__trigger:hover {
    background-color: rgba(255, 255, 255, 0.09) !important;
}

.nav-user__name {
    font-size: 0.78rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.25;
}

.nav-user__email {
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.48);
    line-height: 1.25;
}

.nav-user__caret {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.75rem;
    flex-shrink: 0;
}

/* — Sidebar separator — */
.nav-sep {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* — Sidebar section label — */
.nav-label {
    font-size: 0.58rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* — Custom avatar in sidebar (replaces avatar-lg) — */
.avatar-sidebar {
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    flex-shrink: 0;
}

/* — Sidebar scrollbar — */
.navigation::-webkit-scrollbar {
    width: 4px;
}

.navigation::-webkit-scrollbar-track {
    background: transparent;
}

.navigation::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
}

.navigation::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.28);
}

/* — Dashboard KPI card hover — */
.kpi-card {
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.kpi-card:hover {
    box-shadow: 0 6px 24px rgba(2, 132, 199, 0.13) !important;
    transform: translateY(-2px);
}

/* — KPI icon container — */
.kpi-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    flex-shrink: 0;
}

/* — Better table headers — */
.table > thead th {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--mdrrmo-700, #0369a1);
    background-color: var(--mdrrmo-50, #f0f9ff);
    border-bottom: 2px solid var(--mdrrmo-200, #bae6fd) !important;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
    white-space: nowrap;
}

/* — Greeting topstrip — */
.app-topstrip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--mdrrmo-border, rgba(2, 132, 199, 0.1));
    margin-bottom: 0;
}

.app-topstrip__greeting {
    font-size: 0.8rem;
    color: var(--mdrrmo-ink-muted, #64748b);
}

.app-topstrip__greeting strong {
    color: var(--mdrrmo-700, #0369a1);
}

.app-topstrip__date {
    font-size: 0.75rem;
    color: var(--mdrrmo-ink-muted, #64748b);
    white-space: nowrap;
}

/* — Utility classes — */
.letter-spacing {
    letter-spacing: 0.06em;
}

/* — Badge improvements — */
.badge {
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* — Card polish — */
.card {
    border-radius: 0.75rem;
}

.card.shadow-sm {
    box-shadow: 0 1px 8px rgba(8, 47, 73, 0.07), 0 0 0 1px rgba(2, 132, 199, 0.06) !important;
}

/* — Btn-group filter tabs (Reports page) — */
.btn-group .btn-default {
    background: #fff;
    border: 1px solid var(--bs-border-color, #cbd5e1);
    color: var(--mdrrmo-ink-muted, #64748b);
    font-size: 0.82rem;
    font-weight: 500;
}

.btn-group .btn-default:hover {
    background: var(--mdrrmo-50, #f0f9ff);
    color: var(--mdrrmo-700, #0369a1);
    border-color: var(--mdrrmo-300, #7dd3fc);
}

.btn-group .btn-default.active {
    background: var(--mdrrmo-primary, #0284c7);
    color: #fff;
    border-color: var(--mdrrmo-primary, #0284c7);
}

