.navbar-header { display: flex; align-items: center; flex-wrap: wrap; }
.portal-clock { display: inline-flex; align-items: center; gap: 8px; margin: 8px 0 8px 16px; padding: 8px 12px; border: 1px solid #d9e7df; border-radius: 10px; background: #f4faf6; color: #1c6448; white-space: nowrap; font-family: "Segoe UI",Arial,sans-serif; }
.portal-clock .fa { font-size: 15px; }
.portal-clock-label { font-size: 9px; font-weight: 700; letter-spacing: .8px; }
.portal-clock time { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .5px; }
@media (max-width: 767px) { .navbar-header { width: 100%; } .portal-clock { margin: 4px 0 10px 15px; } .portal-clock-label { display: none; } }
.portal-menu-text { display: none; }
.portal-sidebar { background: linear-gradient(180deg, #f5faf6 0%, #e5f1e9 100%); font-family: "Segoe UI", Arial, sans-serif; }
.portal-sidebar::before, .portal-sidebar::after { display: none; }
.portal-sidebar .portal-sidebar-brand { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 22px 18px 17px; }
.portal-sidebar .portal-sidebar-brand::after { display: none; }
.portal-sidebar .portal-sidebar-brand .simple-text { padding: 0; color: #176244; font-size: 23px; font-weight: 800; letter-spacing: 2px; line-height: 1.2; text-decoration: none; }
.portal-sidebar-brand img { width: 72px; height: 72px; object-fit: contain; border-radius: 16px; background: #fff; box-shadow: 0 8px 20px rgba(23, 83, 54, .12); }
.portal-sidebar-caption { color: #718b79; font-size: 11px; font-weight: 600; letter-spacing: .5px; }
.portal-sidebar-greeting { position: relative; z-index: 4; display: flex; flex-direction: column; gap: 4px; margin: 0 15px 12px; padding: 13px 16px; border: 1px solid #d5e7d9; border-radius: 14px; background: rgba(255,255,255,.8); overflow-wrap: anywhere; }
.portal-sidebar-greeting small { color: #71937b; font-size: 9px; font-weight: 800; letter-spacing: 1.4px; }
.portal-sidebar-greeting strong { color: #204d37; font-size: 14px; line-height: 1.35; }
.portal-sidebar .sidebar-wrapper { height: calc(100vh - 245px); width: 260px; }
.portal-sidebar .nav { margin: 0; padding: 4px 10px 20px; }
.portal-sidebar .nav li { margin: 3px 0; }
.portal-sidebar .nav li > a { display: flex; align-items: center; gap: 12px; min-height: 52px; margin: 0; padding: 8px 11px; border: 1px solid transparent; border-radius: 12px; color: #345b47; text-decoration: none; transition: background .2s, border-color .2s, transform .2s, box-shadow .2s; }
.portal-sidebar .nav li > a i { display: grid; place-items: center; float: none; flex: none; width: 35px; height: 35px; margin: 0; border-radius: 10px; background: #e0eee4; color: #307451; font-size: 17px; line-height: 1; }
.portal-sidebar .nav li > a p { margin: 0; color: inherit; font-size: 13px; font-weight: 600; line-height: 1.35; }
.portal-sidebar .nav li:hover > a, .portal-sidebar .nav li > a:focus { border-color: #c7ddcc; background: #fff; color: #174d34; transform: translateX(2px); }
.portal-sidebar .nav li > a:focus-visible { outline: 3px solid #75b98e; outline-offset: 2px; }
.portal-sidebar[data-color="green"] .nav li.active > a { border-color: #176f4a; background: #176f4a; color: #fff; box-shadow: 0 8px 17px rgba(21, 99, 61, .2); }
.portal-sidebar .nav li.active > a i { background: rgba(255,255,255,.18); color: #fff; }
.portal-sidebar .nav li.active > a p { color: #fff; }
.portal-mobile-logout { display: none; }
@media (prefers-reduced-motion: reduce) { .portal-sidebar .nav li > a { transition: none; } }
@media (max-width: 991px) {
  .portal-mobile-logout { display: list-item; }
  .portal-desktop-logout { display: none !important; }
  .sidebar {
    background: linear-gradient(180deg, #f5faf6 0%, #e5f1e9 100%);
    height: 100vh;
    height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
  }
  .sidebar .sidebar-wrapper {
    height: auto;
    overflow: visible;
    padding-bottom: 60px;
  }
  .portal-sidebar .sidebar-wrapper { width: 260px; }
  .main-panel > .navbar.navbar-absolute { position: relative; top: auto; }
  .main-panel > .content { margin-top: 0; }
  .navbar-header { position: relative; display: block; width: auto; min-height: 96px; margin: 0; float: none; }
  .navbar-header .navbar-brand { display: block; float: none; width: calc(100% - 105px); height: auto; min-height: 46px; margin: 0 0 0 15px; padding: 8px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .navbar-header .portal-clock { display: inline-flex; margin: 0 0 12px 15px; }
  .navbar-header .portal-menu-toggle { position: absolute; top: 3px; right: 0; z-index: 2; float: none; display: inline-flex !important; align-items: center; justify-content: center; gap: 8px; width: auto; min-width: 82px; height: 40px; margin: 0; padding: 7px 10px; border: 1px solid #d9e7df; border-radius: 9px; background: #f4faf6; color: #24513d; }
  .portal-menu-bars { display: flex; flex-direction: column; justify-content: center; gap: 4px; }
  .navbar .portal-menu-toggle .icon-bar { display: block; width: 19px; height: 2px; margin: 0; background: #24513d; }
  .portal-menu-text { display: inline !important; color: #24513d; font-size: 13px; font-weight: 700; line-height: 1; white-space: nowrap; }
}
