.portal-demo {
  --portal-ink: #142540;
  --portal-muted: #52627b;
  --portal-accent: #244779;
  --portal-line: #dce5f1;
  color: var(--portal-ink);
  background: #f2f6fc;
  font-family: "Segoe UI", system-ui, sans-serif;
}
.portal-demo .main-content { background: #f2f6fc; min-height: 90vh; }
.portal-demo .topnav, .portal-demo .sidebar-left { background: #fff; border-color: var(--portal-line); }
.portal-demo .portal-user-trigger.nav-link {
  display: inline-flex; align-items: center; gap: 7px; padding: 4px 8px;
  border: 1px solid #dce5f1; border-radius: 12px; background: #fff; color: #315482;
}
.portal-demo .portal-user-trigger.dropdown-toggle::after { display: none; }
.portal-demo .portal-user-trigger:hover, .portal-demo .portal-user-trigger[aria-expanded="true"] { background: #eef4fc; }
.portal-demo .portal-user-trigger:focus-visible { outline: 2px solid #3c6ca8; outline-offset: 2px; }
.portal-user-avatar, .profile-avatar {
  display: inline-grid; place-items: center; flex: none; width: 33px; height: 33px;
  border-radius: 9px; background: #244779; color: #fff; font-size: 17px;
}
.portal-user-chevron { font-size: 13px; }
.portal-demo .portal-user-dropdown {
  min-width: 190px; padding: 6px; margin-top: 8px; border: 1px solid var(--portal-line);
  border-radius: 12px; box-shadow: 0 12px 30px #172e5022;
}
.portal-demo .portal-user-dropdown .dropdown-item {
  display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 7px 10px;
  border-radius: 7px; color: #253b59; font-weight: 650;
}
.portal-demo .portal-user-dropdown .dropdown-item:hover,
.portal-demo .portal-user-dropdown .dropdown-item:focus { background: #edf3fb; }
.portal-demo .portal-user-dropdown .portal-user-logout { color: #8a3444; }
.portal-user-dropdown .dropdown-divider { margin: 4px 0; }
.portal-demo .topnav > .nav {
  align-items: center;
  column-gap: 10px;
}
.portal-demo .topnav .portal-user-trigger.nav-link { min-height: 42px; }
.portal-demo .topnav .nav-notif > .nav-link {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-block: 0 !important;
  padding: 0;
  border: 1px solid var(--portal-line);
  border-radius: 12px;
  color: var(--portal-accent) !important;
  background: #f2f6fc;
}
.portal-demo .topnav .nav-notif > .nav-link:hover { background: #e3eeff; }
.portal-demo .topnav .nav-notif > .nav-link > .fe { font-size: 19px; }
.portal-demo .topnav .nav-notif #notification-dot {
  top: 6px;
  right: 6px;
  width: 10px;
  height: 10px;
  margin: 0;
  border: 2px solid #fff;
  background: #2f65a7 !important;
}
.portal-demo .modal.modal-notif .modal-dialog {
  width: min(100%, 440px);
  min-width: 0;
  max-width: none;
  height: 100%;
  background: transparent;
}
.portal-demo .modal.modal-notif .modal-content {
  overflow: hidden;
  border-radius: 18px 0 0 18px;
  background: #f2f6fc;
  box-shadow: -12px 0 40px #14254040;
}
.portal-demo .modal-notif .modal-header {
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border: 0;
  background: var(--portal-ink);
}
.portal-demo .modal-notif .modal-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 1.2rem;
}
.portal-demo .modal-notif .modal-title::before,
.portal-demo .modal-notif .list-group-item:not(:has(> .row))::before {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  font: 17px feather;
}
.portal-demo .modal-notif .modal-title::before {
  content: "\e91e" / "";
  color: #e3eeff;
  background: #ffffff1a;
}
.portal-demo .modal-notif .modal-header .close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 1px solid #ffffff52;
  border-radius: 9px;
  color: #fff;
  opacity: 1;
  text-shadow: none;
}
.portal-demo .modal-notif .modal-header .close:hover { background: #ffffff26; }
.portal-demo .modal-notif .modal-body { min-height: 0; overflow-y: auto; padding: 16px; }
.portal-demo .modal-notif .list-group {
  display: grid;
  gap: 10px;
  margin: 0 !important;
}
.portal-demo .modal-notif .list-group-item {
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--portal-line);
  border-radius: 12px;
  background: #fff !important;
  overflow-wrap: anywhere;
}
.portal-demo .modal-notif .list-group-item > .row {
  align-items: flex-start !important;
  flex-wrap: nowrap;
  gap: 10px;
  margin: 0;
}
.portal-demo .modal-notif .list-group-item > .row > * { min-width: 0; padding: 0; }
.portal-demo .modal-notif .list-group-item > .row > .col-auto:has(.delete-notification) { order: 1; }
.portal-demo .modal-notif .list-group-item strong { color: var(--portal-ink); font-size: .94rem; }
.portal-demo .modal-notif .list-group-item .text-muted { color: var(--portal-muted) !important; }
.portal-demo .modal-notif .list-group-item .badge {
  margin-top: 6px;
  padding: 4px 8px;
  background: #edf3fb;
  white-space: normal;
}
.portal-demo .modal-notif .list-group-item .col-auto > .fe,
.portal-demo .modal-notif .delete-notification {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 9px;
  background: #edf3fb;
  color: var(--portal-accent);
  font-size: 16px;
}
.portal-demo .modal-notif .delete-notification {
  border: 1px solid #f0d6da;
  background: #fff;
  color: #973b4a !important;
}
.portal-demo .modal-notif .delete-notification:hover { background: #fbe9ed; }
.portal-demo .modal-notif .delete-notification .fe { font-size: 16px; }
.portal-demo .modal-notif .list-group-item:not(:has(> .row)) {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 24px 14px;
  color: var(--portal-muted);
  text-align: center;
}
.portal-demo .modal-notif .list-group-item:not(:has(> .row))::before {
  content: "\e982" / "";
  color: var(--portal-accent);
  background: #edf3fb;
}
.portal-demo .modal-notif .list-group:has(> .list-group-item > .row) > .list-group-item:not(:has(> .row)) { display: none; }
.portal-demo .modal-notif .modal-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--portal-line);
  background: #fff;
}
.portal-demo .modal-notif .modal-footer .btn {
  min-height: 40px;
  margin: 0;
  border: 1px solid #c4d4e9;
  border-radius: 9px;
  background: #edf3fb;
  color: var(--portal-accent);
  font-weight: 700;
}
.portal-demo .modal-notif .modal-footer .btn:hover { background: #dce9fa; }
.portal-demo .modal-notif :is(button, a):focus-visible,
.portal-demo .nav-notif .nav-link:focus-visible { outline: 2px solid #6599d7; outline-offset: 2px; }
@media (max-width: 440px) {
  .portal-demo .modal.modal-notif .modal-content { border-radius: 0; }
}
.profile-identity { display: flex; align-items: center; gap: 14px; padding: 16px 20px; margin-bottom: 24px; }
.profile-avatar { width: 50px; height: 50px; font-size: 22px; border-radius: 12px; }
.profile-identity h2 { margin: 0 0 3px; font-size: 1.25rem; overflow-wrap: anywhere; }
.profile-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; }
.profile-fields label { display: block; margin-bottom: 12px; }
.profile-fields .form-control { margin-top: 5px; }
.profile-password-rules { padding: 14px; margin-bottom: 12px; background: #f2f6fc; border-radius: 10px; color: var(--portal-ink); }
.profile-password-rules p { margin: 4px 0; }
.profile-password-rules ul { margin: 0; padding-inline-start: 19px; }
.balance-assignment-search { position: relative; max-width: 350px; margin: 0 0 12px; }
.balance-assignment-search .fe { position: absolute; top: 50%; inset-inline-start: 11px; transform: translateY(-50%); color: var(--portal-muted); }
.balance-assignment-search .form-control { padding-inline-start: 32px; }
.balance-assignment-table { margin-bottom: 10px; }
@media (max-width: 650px) { .profile-fields { grid-template-columns: 1fr; } }
.portal-demo .portal-sidebar .vertnav { padding-inline: 10px; }
.portal-demo .portal-sidebar .nav-item > .nav-link {
  display: flex; align-items: center; gap: 10px; min-height: 42px;
  margin-block: 2px; padding: 5px 7px; border-radius: 9px; color: #243954;
  font-size: .94rem; font-weight: 600; line-height: 1.25;
}
.portal-demo .portal-sidebar .item-text { margin: 0; overflow-wrap: anywhere; }
.portal-demo .portal-sidebar-button { width: 100%; border: 0; background: transparent; text-align: start; cursor: pointer; }
.portal-demo .portal-sidebar .portal-sidebar-icon {
  display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px;
  border-radius: 8px; background: #eef3fa; color: #315482; font-size: 16px;
}
.portal-demo .portal-sidebar .nav-link:hover { background: #f1f5fb; color: #183555; }
.portal-demo .portal-sidebar .nav-link[aria-current="page"] { background: #e3edf9; color: #152f52; font-weight: 750; }
.portal-demo .portal-sidebar .nav-link[aria-current="page"] .portal-sidebar-icon { background: #254878; color: #fff; }
.portal-demo .portal-sidebar .nav-link:focus-visible { outline: 2px solid #3c6ca8; outline-offset: 2px; }
.portal-demo .portal-sidebar .nav-heading { padding-inline: 7px; font-size: .8rem; font-weight: 650; }
@media (min-width: 992px) {
  .vertical:is(.collapsed, .narrow) .portal-sidebar .nav-item > .nav-link { justify-content: center; padding-inline: 4px; }
  .vertical:is(.collapsed, .narrow):not(.hover) .portal-sidebar-button .item-text { display: none; }
  .vertical.narrow.hover .portal-sidebar .nav-item > .nav-link { justify-content: flex-start; }
}
.portal-demo .vertnav .nav-link { color: #354356; border-radius: 9px; }
.portal-demo .vertnav .nav-link:hover, .portal-demo .vertnav .nav-link[aria-current] { background: #e5ebf3; color: #0f284c; }
.portal-demo :focus-visible { outline: 3px solid #426daf; outline-offset: 3px; }
.portal-demo .page-title { color: var(--portal-ink); font-weight: 750; letter-spacing: -.025em; }
.portal-demo .main-content .card { border: 1px solid var(--portal-line); border-radius: 16px; }
.portal-demo .main-content .shadow { box-shadow: 0 5px 20px #18253809 !important; }
.portal-demo .btn-primary { background: var(--portal-accent); border-color: var(--portal-accent); }
.portal-demo .btn-primary:hover { background: #0f284c; border-color: #0f284c; }
.portal-demo .btn.portal-action {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 8px 15px; border-radius: 10px;
  font-weight: 700; line-height: 1.25; text-align: center;
}
.portal-demo .portal-action.btn-outline-secondary { background: #edf4ff; border-color: #c9d9ef; color: #244779; }
.portal-demo .portal-action.btn-outline-secondary:hover { background: #dce9fa; border-color: #93afd4; color: #17365e; }
.portal-demo .btn.portal-action-icon { width: 44px; padding-inline: 0; }
.portal-demo .btn.portal-action-current { min-width: 106px; }
.event-form-toggle { display: flex; align-items: center; gap: 8px; }
.event-color-picker { max-width: 76px; padding: 5px; cursor: pointer; }
#employee-bulk-dialog { overflow: visible; }
#employee-bulk-dialog .select2-container--bootstrap4 .select2-selection--single {
  display: flex; align-items: center; min-height: 42px; border: 1px solid #bdcbe2; border-radius: 8px;
}
#employee-bulk-dialog .select2-selection__rendered { width: 100%; }
#employee-bulk-dialog .select2-selection__arrow { top: 50%; transform: translateY(-50%); }
#employee-bulk-dialog .select2-dropdown { border-color: #bdcbe2; border-radius: 9px; box-shadow: 0 12px 24px #14254022; }
#employee-bulk-dialog .select2-search__field { border: 1px solid #bdcbe2; border-radius: 7px; }
.portal-demo .btn { border-radius: 9px; }
.portal-demo .form-control { border-color: #bdc4ce; border-radius: 8px; }
.portal-demo .form-control:focus { border-color: var(--portal-accent); }
.employee-intro { margin: 10px 0 26px; }
.employee-intro h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 760; letter-spacing: -.045em; color: var(--portal-ink); margin-bottom: 6px; }
.employee-intro p, .home-panel p { color: var(--portal-muted); margin: 0; }
.home-overview { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 18px; }
.home-panel, .clock-panel { border-radius: 16px; min-width: 0; }
.home-panel { background: #fff; border: 1px solid var(--portal-line); box-shadow: 0 5px 22px #18253808; }
.clock-panel { padding: clamp(20px, 3vw, 32px); background: linear-gradient(135deg, #101f3b 0%, #244779 100%); color: #e3e8f0; }
.clock-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 22px; }
.portal-icon { flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: #e5ebf3; color: #244779; font-size: 18px; }
.clock-heading .portal-icon { background: #ffffff20; color: #e6eefa; }
.clock-status, .pending-count { display: inline-flex; align-items: center; border-radius: 99px; padding: 5px 11px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.clock-status { background: #ffffff24; color: #fff; }
.clock-status-working { background: #bed7ff; color: #13243d; }
.clock-status-paused { background: #fce4a8; color: #493300; }
.clock-panel h2 { color: #fff; font-size: clamp(1.65rem, 3vw, 2.15rem); letter-spacing: -.03em; margin: 0 0 5px; }
.clock-panel p { color: #d5dde9; margin-bottom: 20px; }
.portal-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.portal-actions .btn, .portal-demo .workflow-actions .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding-inline: 14px; font-weight: 650; }
.clock-button, .clock-button:hover { color: #101f3b; background: #bed7ff; }
.clock-button:hover { background: #d6e6ff; }
.clock-secondary, .clock-secondary:hover { border-color: #b9c5d5; color: #fff; }
.clock-history { gap: 8px; color: #f2f6ff; border: 1px solid #9bb5da80; background: #ffffff12; }
.clock-history:hover { color: #fff; border-color: #bcd2f0; background: #ffffff25; }
.night-clock { margin-top: 18px; }
.night-clock-label { color: #e3e8f0; font-size: .875rem; font-weight: 600; cursor: pointer; }
.night-clock .portal-actions { margin-top: 8px; }
.pending-panel { padding: 23px; }
.pending-panel h2, .portal-section h2 { margin: 0 0 12px; color: var(--portal-ink); font-size: 1.25rem; font-weight: 750; }
.pending-count { margin-left: 4px; color: #12325e; background: #e5ebf3; vertical-align: middle; }
.pending-list { list-style: none; padding: 0; margin: 0; }
.pending-list li + li { border-top: 1px solid var(--portal-line); }
.pending-list a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 10px 2px; color: var(--portal-ink); border-radius: 8px; }
.pending-list a:hover, .portal-shortcut:hover, a.summary-card:hover { background: #eef2f8; color: var(--portal-ink); text-decoration: none; }
.pending-list strong { overflow-wrap: anywhere; }
.pending-list small, .portal-shortcut small { display: block; color: var(--portal-muted); }
.portal-shortcut small { color: #344760; font-size: .9375rem; font-weight: 500; line-height: 1.45; }
.portal-section { margin-top: 27px; }
.shortcut-grid, .summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 172px), 1fr)); gap: 12px; }
.portal-shortcut, .summary-card { display: flex; flex-direction: column; align-items: flex-start; padding: 16px; color: var(--portal-ink); }
.portal-shortcut .portal-icon { margin-bottom: 11px; }
.portal-shortcut strong { margin-bottom: 3px; }
.summary-card span { color: var(--portal-muted); }
.summary-card strong { font-size: 1.5rem; margin: 4px 0; }
.summary-card progress { width: 100%; height: 7px; accent-color: var(--portal-accent); }
.workflow-intro { margin: 0 0 18px; color: var(--portal-muted); }
.workflow-box { background: #f2f4f8; border: 1px solid var(--portal-line); border-radius: 12px; padding: 16px; margin-bottom: 18px; }
.workflow-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.portal-demo .signature-pad { display: block; width: 100%; max-width: 560px; height: clamp(140px, 36vw, 245px); border: 1px solid #a4aebb; border-radius: 10px; background: #fff; touch-action: none; margin: 0 0 16px; }
.receipt-preview { display: block; max-width: min(100%, 280px); max-height: 180px; object-fit: contain; border-radius: 8px; margin-top: 12px; }
.receipt-preview[hidden] { display: none; }
.employee-module-form { max-width: 1080px; }
.employee-module-summary { display: grid; gap: 4px; padding: 18px 22px; margin-bottom: 22px; }
.employee-module-summary > span { color: var(--portal-muted); }
.employee-module-summary > strong { font-size: 1.2rem; color: var(--portal-accent); }
.employee-module-form .employee-form-section { padding-bottom: 16px; }
.employee-module-form .export-date-frame { max-width: 390px; }
.employee-module-form .employee-file-picker { height: auto; padding: 4px; }
.employee-file-picker::file-selector-button { margin-inline-end: 10px; padding: 8px 12px; border: 1px solid #c9d8eb; border-radius: 8px; background: #edf4ff; color: #213f6d; font: inherit; font-weight: 700; cursor: pointer; }
.employee-survey-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.employee-survey-card { display: flex; flex-direction: column; align-items: start; gap: 10px; padding: 18px; }
.employee-survey-card header { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.employee-survey-card h2 { font-size: 1.13rem; margin: 0; overflow-wrap: anywhere; }
.employee-survey-card p { white-space: pre-wrap; overflow-wrap: anywhere; }
.employee-survey-card time { color: var(--portal-muted); font-size: .82rem; margin-top: auto; }
.employee-status.expense-reviewing { background: #e4edfb; color: #254878; }
.employee-document-section { margin-top: 22px; }
.employee-document-section h2 { font-size: 1.15rem; margin-bottom: 12px; }
.employee-document-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.employee-document-folder { display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 12px 14px; color: var(--portal-ink); }
.employee-document-folder:hover { border-color: #91acd0; background: #f3f7fd; text-decoration: none; }
.employee-document-folder strong, .employee-document-name strong { overflow-wrap: anywhere; min-width: 0; }
.employee-document-folder > .fe { margin-inline-start: auto; color: var(--portal-accent); }
.employee-document-empty { padding: 16px; }
.employee-document-list { padding: 14px; }
.employee-document-name { display: flex; align-items: center; gap: 10px; }
.employee-document-actions { flex-wrap: wrap; }
.employee-document-upload select { max-width: 420px; }
.employee-document-upload .uppy-Dashboard-inner { border-color: var(--portal-line); border-radius: 10px; background: #f5f8fd; }
.employee-document-upload .uppy-Dashboard-browse { color: var(--portal-accent); font-weight: 700; }
.employee-document-upload .uppy-DashboardContent-bar { background: #edf3fa; }
.employee-document-upload .uppy-Dashboard-AddFiles {
  border: 2px dashed #9fb6d4;
  border-radius: 10px;
  background: #edf4ff;
  padding: 16px;
}
.employee-document-upload .uppy-Dashboard-AddFiles-title {
  max-width: 100%;
  margin: 0;
  padding: 0;
  color: var(--portal-ink);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}
.employee-document-upload .uppy-Dashboard-AddFiles-title::before {
  content: "\e9ff";
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin: 0 auto 12px;
  border-radius: 12px;
  background: #dbe8fc;
  color: var(--portal-accent);
  font: 24px feather;
}
.employee-document-upload .uppy-Dashboard-AddFiles-title .uppy-Dashboard-browse {
  display: inline-block;
  margin: 4px 0;
  padding: 6px 12px;
  border: 1px solid var(--portal-accent);
  border-radius: 8px;
  background: var(--portal-accent);
  color: #fff;
  font-weight: 700;
}
.employee-document-upload .uppy-Dashboard-AddFiles-title .uppy-Dashboard-browse:hover {
  background: var(--portal-ink);
  color: #fff;
}
.employee-document-upload .uppy-Dashboard-browse:focus-visible {
  outline: 2px solid var(--portal-accent);
  outline-offset: 3px;
}
.employee-document-upload .uppy-Dashboard--isDraggingOver .uppy-Dashboard-AddFiles {
  background: #dbe8fc;
  border-color: var(--portal-accent);
}
.employee-module-summary > .btn { justify-self: start; margin-top: 8px; }
.portal-auth { min-height: 100vh; background: radial-gradient(ellipse at 20% 15%, #d5dfee, #f4f6f8 60%); }
.portal-auth .wrapper { height: auto !important; min-height: 100vh; padding: 24px 16px; display: grid; place-items: center; }
.portal-auth .wrapper > .row { width: 100%; margin: 0; }
.portal-auth .wrapper form { flex: 0 1 440px; max-width: 440px; background: #fff; padding: clamp(22px, 5vw, 42px); border: 1px solid var(--portal-line); border-radius: 22px; box-shadow: 0 22px 55px #16284019; }
.portal-auth .wrapper form h1 { color: var(--portal-ink); font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 750; }
.portal-auth .navbar-brand img { max-width: 100%; height: auto; max-height: 72px; }
.auth-options { display: grid; gap: 10px; }
.auth-options a { padding: 11px 13px; }
.admin-shortcuts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.settings-group { margin-top: 24px; }
.settings-search { position: relative; width: min(100%, 320px); }
.settings-search > .fe {
  position: absolute;
  top: 50%;
  inset-inline-start: 13px;
  transform: translateY(-50%);
  color: var(--portal-accent);
  pointer-events: none;
}
.settings-search .form-control { min-height: 42px; padding-inline-start: 36px; }
.settings-group[hidden], .settings-shortcut[hidden] { display: none; }
.work-calendar-panel { margin-top: 16px; padding: clamp(12px, 2vw, 24px); }
.work-calendar-bar, .work-calendar-filters {
  display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.work-calendar-filters { justify-content: start; }
.work-calendar-filters label, .work-calendar-create label { margin: 0; font-weight: 650; }
.work-calendar-filters .form-control, .work-calendar-create .form-control { min-height: 40px; margin-top: 4px; }
.work-calendar-filters .form-control {
  height: 44px; padding-inline: 12px; border-color: #c4d2e5; border-radius: 10px;
  background-color: #fff; color: var(--portal-ink); font-size: .9rem;
}
.work-calendar-filters select { min-width: min(210px, 100%); }
.work-calendar-filters label { min-width: 0; max-width: 100%; }
.work-calendar-filters [name="year"] { width: 7rem; appearance: textfield; -moz-appearance: textfield; }
.work-calendar-filters [name="year"]::-webkit-inner-spin-button,
.work-calendar-filters [name="year"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.work-calendar-go { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding-inline: 14px; font-weight: 650; }
.work-calendar-filters .export-date-input { padding-inline-end: 32px; }
.work-calendar-bar + h2 { margin: 22px 0 12px; text-transform: capitalize; }
.work-calendar-scroll { overflow-x: auto; border: 1px solid var(--portal-line); border-radius: 12px; }
.work-calendar-grid { table-layout: fixed; width: 100%; min-width: 620px; border-collapse: collapse; }
.work-calendar-grid th { background: #172d4d; color: white; padding: 9px; text-transform: capitalize; }
.work-calendar-grid td { height: 88px; vertical-align: top; padding: 7px; border: 1px solid var(--portal-line); }
.work-calendar-grid td.is-other-month { background: #f4f6fa; color: #63718a; }
.work-calendar-grid td.is-today { background: #edf4ff; }
.work-calendar-grid td.calendar-event-day { background: #e4edfb; background: var(--event-day-fill, #e4edfb); }
.work-calendar-grid td.calendar-event-day .work-calendar-date:hover,
.work-calendar-grid td.calendar-event-day .work-calendar-date:focus-visible { background: #ffffff55; }
.event-editor-dialog { width: min(740px, calc(100% - 28px)); }
.event-editor-dialog label.event-form-toggle { display: flex; align-items: center; gap: 8px; }
.event-editor-dialog select[multiple] { min-height: 92px; }
.event-editor-dialog .employee-form-actions { margin-bottom: 0; }
.work-calendar-grid time { display: inline-block; padding: 1px 6px; font-weight: 700; }
.work-calendar-grid .is-today time { background: #244779; color: white; border-radius: 6px; }
.work-calendar-shift {
  display: grid; margin-top: 4px; padding: 4px 6px; border-inline-start: 3px solid var(--shift-color);
  border-radius: 5px; background: #edf3fc; overflow-wrap: anywhere;
}
.work-calendar-legend { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.work-calendar-legend li { padding: 4px 9px; border-inline-start: 3px solid var(--shift-color); background: #edf3fc; border-radius: 5px; }
.work-calendar-panel {
  --calendar-plan-fill: #fbe7f0;
  --calendar-plan-highlight: #efc9dc;
  --calendar-plan-accent: #a33c68;
}
.work-calendar-legend :is(.work-calendar-plan-key, .work-calendar-shift-key) { padding: 0; border: 0; background: transparent; }
.work-calendar-shift-key button {
  padding: 5px 10px;
  border: 1px solid var(--portal-line);
  border-inline-start: 3px solid var(--shift-color);
  border-radius: 6px;
  background: #edf3fc;
  color: var(--portal-ink);
}
.work-calendar-shift-key button:hover,
.work-calendar-shift-key button[aria-pressed="true"] {
  background: color-mix(in srgb, var(--shift-color) 18%, white);
}
.work-calendar-shift-key button[aria-pressed="true"] {
  box-shadow: inset 0 0 0 1px var(--shift-color);
}
.work-calendar-shift-key button:focus-visible { outline: 2px solid var(--shift-color); outline-offset: 2px; }
.work-calendar-grid td.is-shift-highlighted,
.work-calendar-day-detail.is-shift-highlighted {
  background: color-mix(in srgb, var(--highlight-shift-color) 24%, white);
  box-shadow: inset 0 0 0 2px var(--highlight-shift-color);
}
.work-calendar-grid td.work-calendar-plan-day.is-shift-highlighted,
.work-calendar-day-detail.work-calendar-plan-day.is-shift-highlighted {
  background: var(--calendar-plan-fill);
}
.work-calendar-day-detail.is-shift-highlighted { padding: 10px; border-radius: 8px; }
.work-calendar-plan-key button {
  padding: 5px 10px;
  border: 1px solid #ecc7d9;
  border-inline-start: 3px solid var(--calendar-plan-accent);
  border-radius: 6px;
  background: var(--calendar-plan-fill);
  color: #74304d;
  font-weight: 700;
}
.work-calendar-plan-key button:hover,
.work-calendar-plan-key button[aria-pressed="true"] { background: var(--calendar-plan-highlight); }
.work-calendar-plan-key button[aria-pressed="true"] { box-shadow: inset 0 0 0 1px var(--calendar-plan-accent); }
.work-calendar-plan-key button:focus-visible { outline: 2px solid var(--calendar-plan-accent); outline-offset: 2px; }
.work-calendar-grid td.work-calendar-plan-day,
.work-calendar-plan-detail { background: var(--calendar-plan-fill); }
.work-calendar-grid td.is-plan-highlighted,
.work-calendar-plan-detail.is-plan-highlighted {
  background: var(--calendar-plan-highlight);
  box-shadow: inset 0 0 0 2px var(--calendar-plan-accent);
}
.work-calendar-plan-detail { padding: 10px; border-radius: 8px; }
.work-calendar-plan-label {
  --shift-color: var(--calendar-plan-accent);
  background: #fff7fa;
  color: #74304d;
}
.work-calendar-legend span, .work-calendar-shift span { color: #475b77; font-size: .8rem; }
.work-calendar-grid .work-calendar-holiday, .work-calendar-legend .work-calendar-holiday {
  --shift-color: #80531c;
  background: #fff4df;
  color: #674117;
}
.work-calendar-legend .work-calendar-holiday-key { padding: 0; border: 0; background: transparent; }
.work-calendar-holiday-key button {
  padding: 5px 10px;
  border: 1px solid #ead5b2;
  border-inline-start: 3px solid #80531c;
  border-radius: 6px;
  background: #fff4df;
  color: #674117;
  font-weight: 700;
}
.work-calendar-holiday-key button:hover,
.work-calendar-holiday-key button[aria-pressed="true"] { background: #ffe8bc; }
.work-calendar-holiday-key button[aria-pressed="true"] { box-shadow: inset 0 0 0 1px #80531c; }
.work-calendar-holiday-key button:focus-visible { outline: 2px solid #80531c; outline-offset: 2px; }
.work-calendar-grid td.is-holiday-highlighted,
.work-calendar-day-detail.is-holiday-highlighted {
  background: #ffe8bc;
  box-shadow: inset 0 0 0 2px #80531c;
}
.work-calendar-grid td.work-calendar-plan-day.is-holiday-highlighted,
.work-calendar-day-detail.work-calendar-plan-day.is-holiday-highlighted { background: var(--calendar-plan-fill); }
.work-calendar-day-detail.is-holiday-highlighted { padding: 10px; border-radius: 8px; }
.work-calendar-create fieldset { margin-bottom: 22px; }
.work-calendar-create legend { font-size: 1.1rem; font-weight: 700; }
.work-calendar-details, .work-calendar-week {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 175px), 1fr)); gap: 12px;
}
.work-calendar-week { margin-bottom: 12px; }
.work-calendar-create > label, .work-calendar-create form > label { display: block; margin-bottom: 12px; }
.work-calendar-create > label { max-width: 340px; }
.work-calendar-cycle-row { display: grid; grid-template-columns: minmax(100px, 150px) minmax(0, 1fr) auto; gap: 10px; align-items: end; margin: 10px 0; max-width: 690px; }
.work-calendar-cycle-row .btn { min-height: 40px; }
.work-calendar-create form h3 { font-size: 1rem; margin: 12px 0; }
.work-calendar-create form > .work-calendar-details { margin-bottom: 12px; }
.work-calendar-holidays { max-width: 650px; }
.work-calendar-holidays fieldset label { display: block; }
.work-calendar-holidays p { margin-bottom: 12px; }
.work-calendar-viewbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 20px 0 12px; }
.work-calendar-viewbar h2 { margin: 0; text-transform: capitalize; }
.work-calendar-views { display: flex; gap: 6px; }
.work-calendar-views .btn { min-width: 68px; }
.work-calendar-year { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1279px) { .work-calendar-year { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 959px) { .work-calendar-year { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .work-calendar-year { grid-template-columns: 1fr; } }
.work-calendar-mini { border: 1px solid var(--portal-line); border-radius: 10px; overflow: hidden; }
.work-calendar-mini h3 { margin: 0; padding: 10px 12px; background: #eaf1fc; font-size: 1rem; text-transform: capitalize; }
.work-calendar-mini .work-calendar-grid { min-width: 0; }
.work-calendar-mini th { padding: 4px 0; font-size: .73rem; text-align: center; }
.work-calendar-mini td { height: 35px; padding: 0; text-align: center; font-size: .8rem; }
.work-calendar-date { display: inline-block; color: inherit; border-radius: 6px; }
.work-calendar-date:hover, .work-calendar-date:focus-visible { background: #dce9fc; color: #213f6d; }
.work-calendar-mini .work-calendar-date { display: block; min-height: 32px; padding-top: 2px; }
.work-calendar-dots { display: flex; justify-content: center; gap: 2px; min-height: 5px; }
.work-calendar-dots span { width: 5px; height: 5px; border-radius: 50%; background: var(--shift-color); }
.work-calendar-dots .calendar-event-dot, .calendar-company-event { --shift-color: #385c98; }
.calendar-company-event p { white-space: pre-wrap; }
.survey-summary, .survey-results { max-width: 1080px; margin-top: 16px; }
.survey-summary { padding: clamp(16px, 3vw, 26px); }
.survey-summary h2 { font-size: 1.45rem; overflow-wrap: anywhere; }
.survey-summary p { white-space: pre-wrap; }
.survey-summary .survey-participation { margin-top: 12px; color: var(--portal-accent); font-weight: 700; }
.survey-results { display: grid; gap: 14px; }
.survey-question { padding: 16px 20px; }
.survey-question header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.survey-question h3 { margin: 0; font-size: 1.05rem; overflow-wrap: anywhere; }
.survey-result-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 12px; margin: 9px 0; overflow-wrap: anywhere; }
.survey-result-track { grid-column: 1 / -1; height: 7px; border-radius: 6px; background: #ebf1fa; }
.survey-result-track span { display: block; height: 100%; border-radius: inherit; background: #315c99; }
.survey-vote-question { margin-bottom: 0; padding-bottom: 14px; }
.survey-vote-option { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid var(--portal-line); border-radius: 8px; }
.survey-vote-option:has(input:checked) { background: #eaf2ff; border-color: #96b1d5; }
.survey-create-form .survey-question { border: 1px solid var(--portal-line); border-radius: 10px; background: #f4f7fc; }
.survey-table-actions { display: flex; align-items: center; gap: 8px; }
.survey-builder label { display: block; margin-bottom: 12px; }
.survey-builder label .form-control { margin-top: 4px; }
.survey-builder-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 0 12px; }
.survey-builder-actions { margin-bottom: 24px; }
.expense-review-details { margin: 6px 0 16px; }
.expense-review-details > div { padding: 10px 14px; background: #f2f6fc; border-radius: 9px; overflow-wrap: anywhere; }
.expense-review-details dt { color: var(--portal-muted); font-size: .83rem; }
.expense-review-details dd { margin: 3px 0 0; font-weight: 650; }
.expense-review-status { display: block; max-width: 340px; margin: 6px 0 12px; }
.settings-catalog-dialog label[hidden], .settings-catalog-dialog p[hidden] { display: none; }
.settings-catalog-dialog [data-catalog-error]:empty { display: none; }
.work-calendar-select, .work-calendar-delete { max-width: 560px; }
.work-calendar-assignment { padding: 16px; border: 1px solid var(--portal-line); border-radius: 12px; background: #f4f7fc; }
.work-calendar-edit-modal { border-color: var(--portal-line); border-radius: 14px; }
.work-calendar-holidays .work-calendar-bar { justify-content: flex-start; }
.work-calendar-holidays .work-calendar-bar label { margin: 0; }
.work-calendar-panel .workflow-actions .btn { gap: 7px; }
.holiday-centers { margin-top: 12px; }
.holiday-centers label { font-weight: 400; }
.holiday-editor { margin-top: 20px; }
.holiday-editor .work-calendar-holidays { max-width: none; }
.holiday-editor .employee-form-actions { max-width: 1100px; justify-content: flex-start; }
.holiday-editor h2 { margin: 0; font-size: 1.25rem; }
.holiday-form-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; max-width: 1100px; }
.holiday-form-grid fieldset { padding-bottom: 16px; }
.holiday-form-grid .form-control { margin-top: 4px; }
.holiday-form-grid label { width: 100%; }
.holiday-form-grid .work-calendar-bar label { width: auto; }
.holiday-form-grid .holiday-centers label { display: flex; gap: 8px; align-items: center; padding: 8px 10px; margin-top: 6px; border: 1px solid var(--portal-line); border-radius: 8px; background: #f4f7fc; }
@media (max-width: 840px) { .holiday-form-grid { grid-template-columns: 1fr; gap: 0; } }
.holiday-library { margin-top: 24px; display: grid; gap: 12px; }
.holiday-library h2 { margin: 0; font-size: 1.2rem; }
.holiday-card { overflow: hidden; }
.holiday-card.is-editing { border-color: #8ba8d4; }
.holiday-card summary {
  display: flex; align-items: center; gap: 12px; padding: 16px 20px;
  cursor: pointer; list-style: none;
}
.holiday-card summary::-webkit-details-marker { display: none; }
.holiday-card summary:hover, .holiday-card details[open] > summary { background: #f2f6fc; }
.holiday-card-title { flex: 1; display: grid; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.holiday-card-title small { color: var(--portal-muted); }
.holiday-chevron { color: var(--portal-accent); }
.holiday-card details[open] .holiday-chevron { transform: rotate(180deg); }
.holiday-card-body { padding: 16px 20px; border-top: 1px solid var(--portal-line); }
.holiday-card-body h3 { margin: 0 0 8px; font-size: 1rem; }
.holiday-date-list {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr));
  gap: 8px; list-style: none; padding: 0; margin: 0 0 16px;
}
.holiday-date-list:last-child { margin-bottom: 0; }
.holiday-date-list li {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 8px;
  border: 1px solid var(--portal-line); border-radius: 8px; min-width: 0; overflow-wrap: anywhere;
}
.holiday-date-badge { padding: 4px 7px; border-radius: 6px; background: #e5eefb; color: #213f6d; font-weight: 700; }
.holiday-date-list label { margin: 0 0 0 auto; color: #963a49; }
.holiday-date-list li:has(input:checked) { background: #fff1f3; border-color: #edc7ce; }
.holiday-card-actions { padding: 12px 20px; border-top: 1px solid var(--portal-line); }
.settings-shortcut-icons { display: flex; width: 100%; align-items: flex-start; justify-content: space-between; color: var(--portal-accent); }
.settings-shortcut-icons > .fe { margin-top: 9px; padding-inline: 3px; }
.settings-shortcut strong { font-size: .95rem; }
.settings-subheading { margin-bottom: 16px; }
.settings-form-heading { display: flex; align-items: center; gap: 12px; }
.settings-subpage .settings-form-heading, .settings-subpage .card:has(.settings-detail-form), .settings-subpage .settings-csv { max-width: 960px; margin-inline: auto; }
.settings-form-heading .portal-icon { flex: none; }
.settings-subpage .card:has(.settings-detail-form) > .card-body { padding: clamp(16px, 3vw, 28px); }
.settings-detail-form label { font-weight: 600; }
.settings-detail-form .form-control { min-height: 42px; }
.settings-detail-form input[type="color"] { max-width: 96px; }
.settings-detail-form .select2-container { max-width: 100%; }
.settings-detail-form .select2-selection--single { display: flex; align-items: center; min-height: 42px; border-radius: 8px; }
.settings-detail-form .employee-form-actions { margin: 16px 0 0; }
.settings-detail-form .form-row:has(> div > .employee-form-actions) > div { flex: 0 0 100%; max-width: 100%; }
.settings-log { max-height: 60vh; overflow: auto; margin: 0; padding: 16px; border: 1px solid var(--portal-line); border-radius: 10px; background: #f2f6fc; color: var(--portal-ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.settings-csv .card-header { background: #e3eeff; border-bottom-color: var(--portal-line); color: var(--portal-ink); font-weight: 700; }
.settings-csv .card-header label { margin: 0; }
.settings-csv .form-control-file { padding: 12px; border: 1px dashed #a8c0e4; border-radius: 9px; background: #f2f6fc; }
.employee-form-layout { max-width: 1040px; margin-inline: auto; }
.employee-form-heading { margin: 0 0 20px; }
.employee-form-heading h1 { margin: 0; font-size: clamp(1.65rem, 3vw, 2.35rem); }
.employee-form-heading p { margin: 6px 0 0; color: var(--portal-muted); font-size: 1rem; }
.employee-form-section { min-width: 0; margin: 0 0 18px; padding: 10px clamp(14px, 2.4vw, 26px) 8px; border: 1px solid var(--portal-line); border-radius: 16px; background: #fff; }
.employee-form-section legend { display: inline-flex; align-items: center; gap: 9px; width: auto; max-width: 100%; margin-bottom: 4px; padding: 0 8px; font-size: 1.05rem; font-weight: 750; color: var(--portal-ink); }
.employee-form-section legend .portal-icon { width: 32px; height: 32px; border-radius: 8px; font-size: 15px; }
.employee-form-section label { font-weight: 600; }
.employee-form-section .form-control { min-height: 42px; }
.employee-form-section .select2-container { max-width: 100%; }
.employee-form-section .select2-container .select2-selection--single { display: flex; align-items: center; min-height: 42px; border: 1px solid #bdcbe2; border-radius: 8px; }
.employee-form-section .select2-selection--single .select2-selection__rendered { width: 100%; }
.employee-form-section .select2-selection--single .select2-selection__arrow { top: 50%; transform: translateY(-50%); }
.employee-toggle-field { display: flex; align-items: flex-end; }
.employee-toggle-field > div { min-height: 42px; display: flex; align-items: center; }
.employee-check { gap: 8px; }
.employee-check-input { accent-color: var(--portal-accent); }
.employee-toggle-field label { margin-bottom: 0; }
.employee-form-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin: 4px 0 24px; }
.employee-form-actions .btn { min-height: 42px; padding: 9px 18px; }
.permissions-layout { width: min(100%, 1040px); margin-inline: auto; }
.permissions-hint { color: var(--portal-muted); margin: 0 0 14px; }
.permissions-layout .select2-container--bootstrap4 .select2-selection--multiple { min-height: 42px; border: 1px solid #bdcbe2; border-radius: 8px; }
.permissions-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 205px), 1fr)); gap: 8px; padding-bottom: 10px; }
.permissions-option { display: flex; align-items: center; gap: 9px; min-height: 44px; margin: 0; padding: 8px 10px; border: 1px solid var(--portal-line); border-radius: 9px; cursor: pointer; }
.permissions-option:hover { background: #f2f6fc; }
.permissions-option:has(:checked) { background: #e3eeff; border-color: #a8c0e4; }
.permissions-option input { flex: none; width: 16px; height: 16px; accent-color: var(--portal-accent); }
.employee-directory-heading, .employee-directory-toolbar, .employee-directory-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.employee-directory-heading h1 { margin: 0; font-size: clamp(1.65rem, 3vw, 2.35rem); }
.employee-directory-heading .btn { display: inline-flex; align-items: center; gap: 8px; }
.employee-directory-toolbar { margin-bottom: 12px; }
.employee-directory-footer { margin-top: 12px; }
.employee-directory-toolbar label, .employee-directory-footer .pagination { margin-bottom: 0 !important; }
.employee-directory-toolbar .form-control { min-height: 36px; }
.employee-directory-toolbar input[type="search"] { width: min(240px, 53vw) !important; }
.employee-directory-footer .dataTables_info { padding-top: 0 !important; color: var(--portal-muted); }
.employee-directory-footer .page-item.active .page-link { background: var(--portal-accent); border-color: var(--portal-accent); }
.employee-table-scroll, .employee-directory:has(> .employee-directory-table) { overflow-x: auto; }
.employee-directory .employee-directory-table { width: 100% !important; min-width: 960px; color: var(--portal-ink); }
.employee-directory .compact-directory-table { min-width: 0; }
.portal-demo .employee-directory .employee-directory-table thead th { background: #e3eeff; border-bottom: 1px solid #c7d9ee; }
.employee-directory-table th, .employee-directory-table td { vertical-align: middle; padding: 11px 10px; }
.employee-directory-table th { white-space: nowrap; }
.employee-directory-table tbody tr:nth-child(even) { background: #f6f8fc; }
.employee-directory-table tbody tr:hover { background: #edf3fc; }
.employee-muted, .employee-code { color: var(--portal-muted); font-variant-numeric: tabular-nums; }
.employee-identity, .employee-row-actions { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.employee-initials { display: inline-grid; place-items: center; flex: 0 0 32px; height: 32px; border-radius: 9px; background: #e3eeff; color: #244779; font-size: .76rem; font-weight: 750; }
.employee-status { display: inline-block; padding: 4px 9px; border-radius: 999px; background: #e9edf3; color: #46566a; font-size: .75rem; font-weight: 700; }
.employee-status.is-active { background: #e3eeff; color: #244779; }
.employee-row-actions form { margin: 0; }
.planification-actions { flex-wrap: wrap; }
.planification-actions .btn { display: inline-flex; align-items: center; gap: 5px; min-height: 34px; }
.employee-status.planification-pending { background: #fff0d2; color: #714709; }
.employee-status.planification-rejected { background: #fbe9ed; color: #872f42; }
.employee-status.employee-status-absence { background: #fbe7f0; color: #74304d; }
.employee-action { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 1px solid #c7d9ee; border-radius: 8px; background: #fff; color: #244779; font-size: 16px; }
.employee-action:hover { background: #e3eeff; color: #173d6c; text-decoration: none; }
.employee-action-delete { border-color: #ecced2; color: #9a3240; }
.employee-action-delete:hover { background: #fbe9ed; color: #7e2230; }
@media (max-width: 991px) { .admin-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px) { .admin-shortcuts { grid-template-columns: minmax(0, 1fr); } }
.portal-demo .main-content .table thead th { color: #303f54; background-color: #edf0f5; font-weight: 700; border-color: var(--portal-line); }
.portal-demo .main-content .table td { border-color: var(--portal-line); }
.portal-demo .main-content .table-hover tbody tr:hover { background-color: #f0f3f8; }
.portal-demo .main-content label { color: var(--portal-ink); }
.portal-demo .modal-content { border: 1px solid var(--portal-line); border-radius: 16px; }
.portal-demo .modal-header, .portal-demo .modal-footer { border-color: var(--portal-line); }
.portal-demo .flash-message.success { background-color: #e0e8f4; color: #162e4f; }
.clock-page-heading, .month-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.clock-page-heading h1 { margin: 0; font-size: clamp(1.6rem, 4vw, 2.2rem); }
.clock-month { --track-work: #315c99; --track-break: #e7a845; --track-night: #7057ac; min-width: 0; }
.month-heading { margin-bottom: 16px; }
.month-heading h2 { margin: 0 0 4px; color: var(--portal-ink); font-size: 1.4rem; font-weight: 750; }
.month-heading p { margin: 0; color: var(--portal-muted); }
.month-navigation, .month-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.month-navigation .btn, .month-filter .btn { min-height: 40px; }
.month-filter { padding: 12px; border: 1px solid var(--portal-line); border-radius: 10px; background: #f2f4f8; }
.month-filter label { display: grid; gap: 4px; margin: 0; font-weight: 650; min-width: 0; }
.month-filter select { max-width: 100%; }
.clock-employee-search { position: relative; flex: 0 1 245px; min-width: 0; }
.month-filter .clock-employee-search label { margin-bottom: 4px; }
.clock-employee-search .form-control { min-width: 0; }
.clock-employee-search [hidden] { display: none; }
.clock-employee-results { position: absolute; z-index: 10; top: calc(100% + 4px); inset-inline: 0; max-height: 218px; overflow: auto; margin: 0; padding: 4px; list-style: none; border: 1px solid var(--portal-line); border-radius: 8px; background: #fff; box-shadow: 0 6px 16px #14254024; }
.clock-employee-results li { padding: 8px 10px; border-radius: 5px; }
.clock-employee-results [role="option"] { cursor: pointer; }
.clock-employee-results [role="option"]:hover, .clock-employee-results [aria-selected="true"] { background: #e3eeff; color: #244779; }
.month-filter .form-control { height: 40px; }
.clock-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 14px; list-style: none; padding: 0; margin: 15px 0; color: var(--portal-muted); font-size: .8rem; }
.clock-legend li { display: inline-flex; align-items: center; gap: 6px; }
.legend-swatch { display: inline-block; width: 15px; height: 8px; border-radius: 3px; }
.clock-day-layout { display: grid; grid-template-columns: 68px minmax(0, 1fr) 14px; align-items: center; gap: 10px; padding: 0 10px; }
.clock-axis { min-height: 26px; color: var(--portal-muted); font-size: .75rem; font-variant-numeric: tabular-nums; }
.clock-axis-hours { display: flex; justify-content: space-between; }
.clock-day { border-top: 1px solid var(--portal-line); }
.clock-day:last-child { border-bottom: 1px solid var(--portal-line); }
.clock-day summary { min-height: 38px; cursor: pointer; list-style: none; }
.clock-day summary::-webkit-details-marker { display: none; }
.clock-day summary:hover, .clock-day[open] summary { background: #eaeff6; }
.clock-weekend { background: #f8f9fa; }
.clock-day-justified > summary { background: #fbe7f0; }
.clock-day-justified > summary:hover, .clock-day-justified[open] > summary { background: #f6d7e6; }
.clock-day-justified .clock-track { background: repeating-linear-gradient(to right, #fcf1f6 0, #fcf1f6 calc(25% - 1px), #ecc7d9 calc(25% - 1px), #ecc7d9 25%); border-color: #ecc7d9; }
.clock-today .clock-day-date { color: #0f294e; font-weight: 750; }
.clock-today .clock-day-date strong { background: #d4dfee; border-radius: 6px; }
.clock-day-date { white-space: nowrap; color: #48566a; font-size: .8rem; }
.clock-day-date strong { display: inline-block; padding: 3px; color: var(--portal-ink); font-size: 1rem; font-variant-numeric: tabular-nums; }
.clock-track { position: relative; display: block; height: 20px; border: 1px solid #e2e5ea; border-radius: 4px; background: repeating-linear-gradient(to right, #eff1f4 0, #eff1f4 calc(25% - 1px), #d7dde5 calc(25% - 1px), #d7dde5 25%); }
.clock-segment { position: absolute; top: 3px; bottom: 3px; left: var(--left); width: var(--width); border-radius: 2px; }
.segment-work { background-color: var(--track-work); }
.segment-break { background-color: var(--track-break); }
.segment-night { background-color: var(--track-night); }
.clock-mark, .legend-mark { width: 8px; height: 8px; background: #182b46; border: 1px solid #fff; box-shadow: 0 0 0 1px #182b46; }
.clock-mark { position: absolute; top: 50%; left: var(--left); transform: translate(-50%, -50%); z-index: 1; }
.mark-start { border-radius: 50%; }
.mark-end { border-radius: 1px; }
.clock-empty { position: absolute; left: 5px; top: 0; line-height: 18px; font-size: .68rem; color: var(--portal-muted); }
.clock-day-timeline { display: flex; align-items: center; gap: 7px; min-width: 0; }
.clock-day-timeline .clock-track { flex: 1; min-width: 0; }
.clock-plan-badge { display: inline-flex; align-items: center; gap: 4px; border-radius: 7px; padding: 2px 7px; background: #e3efff; color: #193d70; font-size: .75rem; font-weight: 700; }
.clock-plan-badge.is-pending { background: #fff1d6; color: #734911; }
.clock-day-justified .clock-plan-badge:not(.is-pending) { background: #efc9dc; color: #74304d; }
.clock-plan-detail { border-inline-start: 3px solid #547db6; }
.clock-plan-detail p { margin: 4px 0 0; }
.clock-chevron { color: var(--portal-muted); }
.clock-day[open] .clock-chevron { transform: rotate(180deg); }
.clock-details { padding: 12px; background: #f1f3f7; }
.clock-entry { background: #fff; padding: 12px; border: 1px solid var(--portal-line); border-radius: 8px; }
.clock-entry + .clock-entry { margin-top: 8px; }
.clock-entry header { margin-bottom: 8px; }
.clock-entry header a { margin-left: 8px; color: #102c53; text-decoration: underline; }
.clock-entry dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(105px, 1fr)); gap: 6px 12px; margin: 0; }
.clock-entry dt { font-size: .73rem; color: var(--portal-muted); }
.clock-entry dd { margin-bottom: 0; font-weight: 650; }
.clock-conversation { display: flex; flex-direction: column; gap: 8px; }
.clock-message { align-self: flex-start; max-width: min(84%, 600px); padding: 8px 12px; border: 1px solid var(--portal-line); border-radius: 10px; background: #f2f6fc; overflow-wrap: anywhere; }
.clock-message-own { align-self: flex-end; background: #e3eeff; border-color: #c7d9f3; }
.clock-message-time { display: block; color: var(--portal-muted); }
.clock-message-text { white-space: pre-wrap; }
.clock-pending-dot { position: absolute; left: 4px; top: -4px; z-index: 2; width: 8px; height: 8px; border-radius: 50%; background: #b97414; box-shadow: 0 0 0 2px #fff; }
.clock-request-actions { margin-bottom: 10px; }
.clock-change { margin-top: 10px; }
.clock-request-status { display: inline-block; margin-left: 6px; border-radius: 999px; padding: 3px 9px; font-size: .75rem; font-weight: 750; }
.status-pending { background: #fff0ce; color: #714400; }
.status-approved { background: #e3eeff; color: #244779; }
.status-rejected { background: #fbe9e9; color: #892c36; }
.clock-review-filters { margin-bottom: 16px; }
.clock-review-entry { padding: 16px; }
.clock-review-entry h2 { margin: 0 0 5px; color: var(--portal-ink); font-size: 1.05rem; font-weight: 750; }
.clock-review-entry header { margin-bottom: 12px; }
.clock-review-entry time { color: var(--portal-muted); }
.clock-request-dialog { width: min(470px, calc(100% - 28px)); max-height: calc(100% - 28px); padding: 22px; color: var(--portal-ink); border: 1px solid var(--portal-line); border-radius: 16px; }
.clock-request-dialog::backdrop { background: #101f3b99; }
.clock-request-header { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.clock-request-header h2 { margin: 0; font-size: 1.25rem; font-weight: 750; }
.clock-request-dialog label { display: block; font-weight: 650; margin-bottom: 12px; }
.clock-request-dialog label[data-bulk-value][hidden] { display: none; }
.employee-bulk-select, #employee-bulk-all { accent-color: #244779; width: 16px; height: 16px; vertical-align: middle; }
.clock-request-dialog .form-control { margin-top: 4px; }
.clock-request-times { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.clock-export-dialog { width: min(510px, calc(100% - 28px)); }
.balance-export-actions { justify-content: flex-end; margin: 12px 0 0; }
.balance-export-actions .btn { gap: 7px; }

.branding-settings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  align-items: start;
  gap: 16px;
  max-width: 1050px;
  margin-top: 16px;
}
.branding-settings .home-panel { padding: 22px; }
.branding-settings h2 { font-size: 1.15rem; margin-bottom: 14px; }
.branding-preview {
  display: grid;
  place-items: center;
  min-height: 150px;
  padding: 14px;
  margin-bottom: 18px;
  border: 1px solid #dce5f1;
  border-radius: 12px;
  background: #f2f6fc;
}
.branding-preview img { max-width: min(100%, 240px); max-height: 120px; object-fit: contain; }
.branding-upload label { font-weight: 700; }
.branding-upload input[type="file"] {
  height: auto;
  min-height: 46px;
  padding: 4px;
  color: var(--portal-ink);
}
.branding-upload input[type="file"]::file-selector-button {
  margin-inline-end: 10px;
  padding: 8px 12px;
  border: 1px solid #c9d8eb;
  border-radius: 8px;
  background: #edf4ff;
  color: #213f6d;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.branding-upload input[type="file"]::file-selector-button:hover { background: #dce9fc; }
.branding-upload p { margin: 8px 0 14px; }
.branding-upload .branding-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 15px;
  font-weight: 700;
}
.branding-upload form + form { margin-top: 10px; }
.branding-guide dl > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #dce5f1;
}
.branding-guide dd { margin: 0; white-space: nowrap; }
.branding-guide p:last-child { margin-bottom: 0; }
.export-date-frame { display: block; position: relative; }
.export-date-frame .fe { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--portal-muted); pointer-events: none; }
.export-date-input { padding-right: 32px; }
:is(.clock-export-dialog .daterangepicker, .daterangepicker.work-calendar-picker) { width: min(292px, calc(100% - 24px)); padding: 10px; border: 1px solid #cbd9ed; border-radius: 12px; box-shadow: 0 14px 32px #14254032; color: var(--portal-ink); background: #fff; }
.daterangepicker.work-calendar-picker.employee-plan-picker { width: fit-content; max-width: calc(100% - 24px); overflow-x: auto; }
:is(.clock-export-dialog .daterangepicker, .daterangepicker.work-calendar-picker).single .drp-calendar.left { width: 100%; max-width: none; padding: 2px; }
:is(.clock-export-dialog .daterangepicker, .daterangepicker.work-calendar-picker) .calendar-table { border-color: transparent; }
:is(.clock-export-dialog .daterangepicker, .daterangepicker.work-calendar-picker) th, :is(.clock-export-dialog .daterangepicker, .daterangepicker.work-calendar-picker) td { height: 32px; min-width: 25px; font-size: .8rem; }
:is(.clock-export-dialog .daterangepicker, .daterangepicker.work-calendar-picker) th.month { padding-block: 5px; }
:is(.clock-export-dialog .daterangepicker, .daterangepicker.work-calendar-picker) .prev span, :is(.clock-export-dialog .daterangepicker, .daterangepicker.work-calendar-picker) .next span { border-color: var(--portal-accent); }
:is(.clock-export-dialog .daterangepicker, .daterangepicker.work-calendar-picker) th { color: var(--portal-muted); }
:is(.clock-export-dialog .daterangepicker, .daterangepicker.work-calendar-picker) td.available:hover { color: #244779; background: #e3eeff; }
:is(.clock-export-dialog .daterangepicker, .daterangepicker.work-calendar-picker) td.off { color: #718096; }
:is(.clock-export-dialog .daterangepicker, .daterangepicker.work-calendar-picker) td.active, :is(.clock-export-dialog .daterangepicker, .daterangepicker.work-calendar-picker) td.active:hover { color: #fff; background: var(--portal-accent); border-radius: 6px; }
:is(.clock-export-dialog .daterangepicker, .daterangepicker.work-calendar-picker) td.today:not(.active) { box-shadow: inset 0 0 0 1px #7896c0; border-radius: 6px; }
:is(.clock-export-dialog .daterangepicker, .daterangepicker.work-calendar-picker) select.monthselect, :is(.clock-export-dialog .daterangepicker, .daterangepicker.work-calendar-picker) select.yearselect { min-height: 29px; color: var(--portal-ink); border: 1px solid var(--portal-line); border-radius: 6px; background: #f2f6fc; }
@media (max-width: 480px) {
  :is(.clock-export-dialog .daterangepicker, .daterangepicker.work-calendar-picker) { left: 12px !important; right: auto !important; }
}
@media (max-width: 900px) { .home-overview { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .shortcut-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px) {
  .portal-demo .card-body:has(.clock-month) { padding: 12px; }
  .clock-day-layout { grid-template-columns: 49px minmax(0, 1fr) 12px; gap: 5px; padding-inline: 4px; }
  .clock-day summary { min-height: 44px; }
  .clock-day-date strong { font-size: .85rem; padding: 2px; }
  .clock-axis { font-size: .62rem; }
  .month-filter label:has(select) { width: 100%; }
}

/* System information */
.portal-demo .system-info-modal .modal-dialog { max-width: 540px; }
.system-info-modal .modal-content { overflow: hidden; box-shadow: 0 16px 50px #14254040; }
.system-info-modal .system-info-header {
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--portal-line);
  background: #eef4fc;
}
.system-info-modal .modal-title { font-size: 1.2rem; line-height: 1.25; }
.system-info-header .portal-icon { flex: none; }
.system-info-header .close { margin: 0 0 0 auto; padding: 6px 10px; border-radius: 8px; }
.system-info-header .close:hover { background: #dce9fa; }
.system-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.system-info-grid > div, .system-info-storage {
  padding: 12px 14px;
  border: 1px solid var(--portal-line);
  border-radius: 10px;
  background: #f4f7fc;
}
.system-info-grid .system-info-version { grid-column: 1 / -1; background: #e3eeff; }
.system-info-modal dt { color: var(--portal-muted); font-size: .85rem; font-weight: 650; }
.system-info-modal dd { margin: 2px 0 0; color: var(--portal-ink); font-weight: 750; font-variant-numeric: tabular-nums; }
.system-info-grid dd { font-size: 1.25rem; }
.system-info-storage h3 { margin: 0 0 9px; color: var(--portal-accent); font-size: 1rem; }
.system-info-storage dl { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 18px; margin: 0; }
.system-info-storage progress { width: 100%; height: 10px; margin-top: 10px; accent-color: var(--portal-accent); }
.system-info-message { margin: 8px 0 0; color: var(--portal-muted); }
.system-info-message:empty { display: none; }
.system-info-modal .modal-footer { border-color: var(--portal-line); background: #f4f7fc; }
