/*
 * Admaniacs ERM theme layer
 * ---------------------------------------------------------------
 * Loaded after build/css/style.min.css and css/style.css. It restyles the
 * shared "oh-*" components so every page picks up the same look without
 * template changes. Remove the <link> to theme.css to revert.
 *
 * Brand colour comes from the Admaniacs logo (#074F3B). Change the
 * --brand-* tokens below to re-skin the whole app.
 */

:root {
  /* Brand */
  --brand-950: #03241b;
  --brand-900: #052f24;
  --brand-800: #063d2f;
  --brand-700: #074f3b;   /* logo green, primary actions */
  --brand-600: #0b634b;
  --brand-500: #13805f;
  --brand-100: #d5ebe2;
  --brand-50: #eef7f3;
  --brand-ring: rgba(7, 79, 59, 0.22);

  /* Neutrals (slate with a faint green cast) */
  --gray-950: #0d1714;
  --gray-900: #16211d;
  --gray-700: #3b4844;
  --gray-600: #56635f;
  --gray-500: #74807c;
  --gray-400: #9aa5a1;
  --gray-300: #cdd5d2;
  --gray-200: #e3e8e6;
  --gray-100: #eff2f1;
  --gray-50: #f6f8f7;

  /* Status */
  --danger-600: #dc2626;
  --danger-700: #b91c1c;
  --danger-50: #fef2f2;
  --warning-600: #d97706;
  --warning-50: #fffbeb;
  --success-600: #16a34a;
  --success-50: #f0fdf4;
  --info-600: #0284c7;
  --info-50: #f0f9ff;

  /* Surfaces */
  --page-bg: #f4f6f5;
  --surface: #ffffff;
  --border: var(--gray-200);
  --border-strong: var(--gray-300);
  --text: var(--gray-900);
  --text-muted: var(--gray-600);

  /* Shape and depth */
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow-xs: 0 1px 2px rgba(16, 24, 22, 0.05);
  --shadow-sm: 0 1px 3px rgba(16, 24, 22, 0.08), 0 1px 2px rgba(16, 24, 22, 0.04);
  --shadow-md: 0 6px 16px -4px rgba(16, 24, 22, 0.12), 0 2px 4px -2px rgba(16, 24, 22, 0.06);
  --shadow-lg: 0 20px 40px -12px rgba(16, 24, 22, 0.25), 0 4px 10px -4px rgba(16, 24, 22, 0.08);

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0, 0, 1);

  /* Bootstrap hooks used by some screens */
  --bs-primary: var(--brand-700);
  --bs-success: var(--success-600);
  --bs-danger: var(--danger-600);
  --bs-warning: var(--warning-600);
  --bs-info: var(--info-600);
  --bs-font-sans-serif: var(--font-sans);
}

/* ---------------------------------------------------------------
 * Base
 * ------------------------------------------------------------- */
html,
body {
  font-family: var(--font-sans);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01";
}

body,
.oh-wrapper-main,
.oh-main__section {
  background-color: var(--page-bg);
}

h1, h2, h3, h4, h5, h6,
.oh-main__titlebar-title {
  color: var(--gray-950);
  letter-spacing: -0.015em;
}

.oh-main__titlebar-title {
  font-size: 1.5rem;
  font-weight: 650;
}

a {
  color: var(--brand-700);
  transition: color 0.15s var(--ease);
}

a:hover {
  color: var(--brand-600);
}

::selection {
  background: var(--brand-100);
  color: var(--brand-950);
}

/* Thin, quiet scrollbars */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--gray-300) transparent;
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-thumb {
  background-color: var(--gray-300);
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: content-box;
}

*::-webkit-scrollbar-thumb:hover {
  background-color: var(--gray-400);
}

*::-webkit-scrollbar-track {
  background: transparent;
}

:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 2px;
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--brand-700);
}

/* ---------------------------------------------------------------
 * Sidebar
 * ------------------------------------------------------------- */
.oh-sidebar,
.oh-sidebar__submenu {
  background-color: var(--brand-950);
}

.oh-sidebar {
  background-image: linear-gradient(180deg, var(--brand-900) 0%, var(--brand-950) 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.04);
}

.oh-sidebar__company {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 20px;
}

.oh-sidebar__company-profile {
  background-color: var(--brand-600);
  border-radius: var(--radius);
}

.oh-sidebar__company-title {
  font-weight: 600;
  letter-spacing: -0.01em;
}

.oh-sidebar__menu {
  padding-top: 12px;
}

.oh-sidebar__menu-link {
  margin: 2px 12px;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.875rem;
  font-weight: 500;
  align-items: center;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}

.oh-sidebar__menu-link:hover {
  opacity: 1;
  color: #fff;
  background-color: rgba(255, 255, 255, 0.06);
}

.oh-sidebar__menu-link--active {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: inset 3px 0 0 #6fd3a8;
}

.oh-sidebar__menu-icon img {
  opacity: 0.85;
  width: 20px;
  height: 20px;
}

.oh-sidebar__menu-link--active .oh-sidebar__menu-icon img,
.oh-sidebar__menu-link:hover .oh-sidebar__menu-icon img {
  opacity: 1;
}

.oh-sidebar__submenu-link {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.84rem;
  border-radius: var(--radius-sm);
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease);
}

.oh-sidebar__submenu-link:hover,
.oh-sidebar__submenu-link:focus,
.oh-sidebar__submenu-link:focus-visible {
  color: #fff;
}

/* ---------------------------------------------------------------
 * Top navbar
 * ------------------------------------------------------------- */
.oh-navbar {
  height: 60px;
  /* No backdrop-filter here: it would make the navbar the containing
     block for position:fixed children such as the floating action button. */
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: none;
}

.oh-navbar__action-icons {
  border-left-color: var(--gray-100);
  border-right-color: var(--gray-100);
  transition: background-color 0.15s var(--ease);
}

.oh-navbar__action-icons:hover {
  background-color: var(--gray-50);
}

.oh-navbar__notification-beacon,
.oh-badge_count {
  background-color: var(--danger-600);
  box-shadow: 0 0 0 2px #fff;
}

.oh-navbar__notification-tray-link,
.oh-navbar__notification-tray-link:hover {
  color: var(--brand-700);
}

.oh-navbar__notification-image,
.oh-navbar__notification-dot--green {
  background-color: var(--brand-700);
}

/* ---------------------------------------------------------------
 * Buttons
 * ------------------------------------------------------------- */
.oh-btn {
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.25rem;
  padding: 0.6rem 1rem;
  gap: 0.25rem;
  transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease),
    color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.oh-btn:focus,
.oh-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--brand-ring);
}

.oh-btn--small {
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
}

/* Main call to action (was coral) */
.oh-btn--secondary,
.oh-btn--secondary:disabled {
  background-color: var(--brand-700);
  color: #fff;
  box-shadow: var(--shadow-xs);
}

.oh-btn--secondary:hover,
.oh-btn--secondary:focus,
.oh-btn--secondary:focus-visible {
  background-color: var(--brand-800);
  color: #fff;
}

.oh-btn--secondary-outline,
.oh-btn--secondary-ouline {
  border: 1px solid var(--brand-700);
  color: var(--brand-700);
  background-color: transparent;
}

.oh-btn--secondary-outline:hover,
.oh-btn--secondary-outline:focus,
.oh-btn--secondary-outline:focus-visible,
.oh-btn--secondary-ouline:hover,
.oh-btn--secondary-ouline:focus,
.oh-btn--secondary-ouline:focus-visible {
  background-color: var(--brand-700);
  border-color: var(--brand-700);
  color: #fff;
}

.oh-btn--secondary-link,
.oh-btn--light {
  color: var(--brand-700);
}

.oh-btn--secondary-link:hover,
.oh-btn--secondary-link:focus,
.oh-btn--light:hover,
.oh-btn--light:focus {
  color: var(--brand-600);
}

/* Neutral dark */
.oh-btn--primary {
  background-color: var(--gray-900);
  color: #fff;
}

.oh-btn--primary:hover,
.oh-btn--primary:focus {
  background-color: var(--gray-950);
  color: #fff;
}

.oh-btn--primary-outline {
  border: 1px solid var(--border-strong);
  color: var(--gray-900);
  background-color: var(--surface);
}

.oh-btn--primary-outline:hover,
.oh-btn--primary-outline:focus,
.oh-btn--primary-outline:focus-visible {
  background-color: var(--gray-50);
  border-color: var(--gray-400);
  color: var(--gray-950);
}

/* Toolbar buttons (Filter, Group by, view toggles) */
.oh-btn--light-bkg {
  background-color: var(--surface) !important;
  border: 1px solid var(--border);
  color: var(--gray-700);
  box-shadow: var(--shadow-xs);
}

.oh-btn--light-bkg:hover {
  background-color: var(--gray-50) !important;
  border-color: var(--border-strong);
  color: var(--gray-950);
}

.oh-btn-group {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.oh-btn-group .oh-btn {
  border-radius: 0;
}

/* List / card view switcher as a segmented control */
.oh-view-types {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.oh-view-type {
  background-color: transparent;
  border: none;
  height: 40px;
}

.oh-view-type + .oh-view-type {
  border-left: 1px solid var(--border);
}

.oh-btn--view {
  height: 100%;
  border-radius: 0;
  color: var(--gray-500);
  background-color: var(--surface);
}

.oh-btn--view:hover,
.oh-btn--view:focus,
.oh-btn--view:focus-visible {
  background-color: var(--gray-50);
  color: var(--gray-900);
  box-shadow: none;
}

.oh-btn--view-active,
.oh-btn--view-active:hover {
  background-color: var(--brand-50);
  color: var(--brand-700);
}

/* Keep page toolbar controls on one 40px rhythm */
.oh-main__titlebar .oh-input,
.oh-main__titlebar .oh-btn,
.oh-main__titlebar-button-container .oh-btn {
  min-height: 40px;
}

.oh-main__titlebar .oh-input {
  height: 40px;
}

/* Status buttons */
.oh-btn--danger {
  background-color: var(--danger-600);
  color: #fff;
}

.oh-btn--danger:hover,
.oh-btn--danger:focus,
.oh-btn--danger:focus-visible {
  background-color: var(--danger-700);
  color: #fff;
}

.oh-btn--danger-outline {
  color: var(--danger-600);
  border: 1px solid rgba(220, 38, 38, 0.35);
  background-color: transparent;
}

.oh-btn--danger-outline:hover,
.oh-btn--danger-outline:focus,
.oh-btn--danger-outline:focus-visible {
  color: var(--danger-700);
  background-color: var(--danger-50);
  border-color: var(--danger-600);
}

.oh-btn--success {
  background-color: var(--success-600);
  color: #fff;
}

/* Floating "+" button */
.oh-floatin-btn,
.oh-default-floating-btn,
.oh-btn--floating {
  border-radius: 999px;
  box-shadow: var(--shadow-md);
}

/* floating_button.html declares .fab in an inline <style>, so out-specify it */
body .fab {
  background-color: var(--brand-700);
  box-shadow: 0 8px 20px -6px rgba(7, 79, 59, 0.55);
}

body .fab:hover {
  background-color: var(--brand-800);
}

body .inner-fabs .fab {
  background-color: var(--brand-600);
}

.oh-hover-btn__small:hover {
  background-color: var(--brand-700);
  border-color: var(--brand-700);
}

/* ---------------------------------------------------------------
 * Form controls
 * ------------------------------------------------------------- */
.oh-input,
.oh-select,
.form-control,
.form-select,
select.oh-input,
textarea.oh-input,
.oh-pagination__input {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background-color: var(--surface);
  color: var(--text);
  font-size: 0.875rem;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.oh-input::placeholder,
.form-control::placeholder {
  color: var(--gray-400);
}

.oh-input:hover,
.oh-select:hover,
.form-control:hover {
  border-color: var(--gray-400);
}

.oh-input:focus,
.oh-input:focus-visible,
select:focus,
select:focus-visible,
.form-control:focus,
.form-select:focus,
.oh-pagination__input:hover,
.oh-pagination__input:focus,
.oh-pagination__input:focus-visible {
  outline: none !important;
  border: 1px solid var(--brand-600) !important;
  box-shadow: 0 0 0 3px var(--brand-ring);
}

.oh-input:disabled,
.oh-input[readonly] {
  background-color: var(--gray-50);
  color: var(--gray-600);
}

.oh-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.4rem;
}

/* Select2 */
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
  border-radius: var(--radius) !important;
  border-color: var(--border-strong) !important;
  min-height: 40px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 38px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 38px;
}

.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--multiple {
  border-color: var(--brand-600) !important;
  box-shadow: 0 0 0 3px var(--brand-ring);
}

.select2-dropdown {
  border-color: var(--border) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
  background-color: var(--brand-700) !important;
  color: #fff !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
  background-color: var(--brand-50);
  border: 1px solid var(--brand-100);
  color: var(--brand-800);
  border-radius: var(--radius-sm);
}

/* Toggles and radios */
.oh-switch .oh-switch__checkbox:checked,
.oh-switch .oh-switch__checkbox:checked:hover,
.oh-radio input:checked ~ .oh-radio__checkmark,
.oh-input-picker--selected {
  background-color: var(--brand-700);
}

/* ---------------------------------------------------------------
 * Cards and panels
 * ------------------------------------------------------------- */
.oh-card,
.oh-kanban-card,
.oh-onboarding-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background-color: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: box-shadow 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.oh-kanban-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.oh-kanban-card__title {
  font-weight: 600;
  color: var(--gray-950);
}

.oh-kanban-card__subtitle {
  color: var(--text-muted);
}

/* Only the side/bottom borders are neutral: the top border carries each
   tile's category colour (set by modifiers and inline styles). */
.oh-card-dashboard {
  border-radius: var(--radius-lg);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-top-width: 3px;
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}

.oh-card-dashboard:hover {
  box-shadow: var(--shadow-md);
}

.oh-card-dashboard--transparent {
  border-top-width: 1px;
}

.oh-card-dashboard__header--divider {
  border-bottom-color: var(--gray-100);
}

.oh-card-dashboard__title {
  font-weight: 600;
  color: var(--gray-950);
}

.oh-dashboard-card,
.oh-dashboard__right .oh-card-dashboard {
  border-radius: var(--radius-lg);
}

/* Sign-in, password reset and 2FA pages */
.oh-auth-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

/* ---------------------------------------------------------------
 * Tables
 * ------------------------------------------------------------- */
.oh-sticky-table {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background-color: var(--surface);
  box-shadow: var(--shadow-xs);
}

.oh-sticky-table__th,
.oh-sticky-table__thead .oh-sticky-table__sd {
  background-color: var(--gray-50);
  color: var(--gray-600);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
}

.oh-sticky-table__td,
.oh-sticky-table__sd {
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.875rem;
}

.oh-sticky-table__tr:hover,
.oh-sticky-table__tr:hover .oh-sticky-table__sd {
  background-color: var(--brand-50);
}

.oh-table th {
  background-color: var(--gray-50);
  color: var(--gray-600);
  font-weight: 600;
}

/* ---------------------------------------------------------------
 * Modals
 * ------------------------------------------------------------- */
.oh-modal {
  background-color: rgba(13, 23, 20, 0.45);
}

.oh-modal__dialog {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.oh-modal__dialog-title {
  font-weight: 600;
  color: var(--gray-950);
  letter-spacing: -0.01em;
}

.oh-modal__close {
  top: 14px;
  right: 14px;
  border-radius: var(--radius);
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.oh-modal__close:hover {
  background-color: var(--gray-100);
  opacity: 1;
}

/* ---------------------------------------------------------------
 * Dropdowns
 * ------------------------------------------------------------- */
.oh-dropdown__menu,
.oh-dropdown__import {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 6px;
}

.oh-dropdown__link {
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.6rem;
  transition: background-color 0.12s var(--ease);
}

.oh-dropdown__link:hover {
  background-color: var(--gray-50);
  color: var(--brand-700) !important;
}

.oh-dropdown__link--danger:hover {
  background-color: var(--danger-50);
}

/* ---------------------------------------------------------------
 * Tabs
 * ------------------------------------------------------------- */
.oh-general__tab-link--active {
  border-bottom: 2px solid var(--brand-700);
  color: var(--brand-700);
}

.oh-general__tab-link--active:focus,
.oh-general__tab-link--active:focus-visible {
  color: var(--brand-700);
}

.oh-tabs__tab {
  border-bottom-color: var(--border);
  transition: background-color 0.15s var(--ease);
}

.oh-tabs__tab:hover {
  background-color: var(--gray-50);
}

.oh-tabs__tab--active,
.oh-tabs__tab--active:hover {
  background-color: var(--surface);
  border-left-color: var(--border);
  border-right-color: var(--border);
  box-shadow: inset 0 2px 0 var(--brand-700);
}

.oh-inner-sidebar__link--active,
.oh-inner-sidebar__link:hover,
.oh-inner-sidebar__link:focus {
  color: var(--brand-700);
}

.oh-profile-section__sidebar-item--active {
  border-right: 3px solid var(--brand-700);
}

/* ---------------------------------------------------------------
 * Badges, dots, text helpers
 * ------------------------------------------------------------- */
.oh-badge {
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
}

.oh-badge--secondary,
.oh-profile__active-badge--secondary {
  background-color: var(--brand-700);
}

.oh-badge--danger,
.oh-dot--danger {
  background-color: var(--danger-600);
}

.badge {
  border-radius: 999px;
  font-weight: 600;
}

.oh-text--secondary,
.oh-link--secondary,
.oh-checkpoint-badge--secondary,
.search_content li a .search_text {
  color: var(--brand-700);
}

.oh-link--secondary:hover,
.oh-link--secondary:focus {
  color: var(--brand-600);
}

.oh-checkpoint-badge--secondary {
  border-color: var(--brand-700);
}

.oh-progress__bar--secondary,
.oh-progress__bar--table-secondary,
.oh-progress-bar__state,
.oh-timeoff-card__icon-container,
.oh-onboarding-card--top-bar::before,
.oh-onboarding-preview--top-bar::before,
.oh-titlebar__tag-close,
.oh-job__description-list .oh-job__description-list_item::before {
  background-color: var(--brand-700);
}

.oh-progress--table-secondary {
  border-color: var(--brand-700);
}

.oh-onboarding-card__count,
.oh-filter-tag:hover .oh-filter-tag__close {
  color: var(--brand-700);
}

/* Filter chips */
.oh-filter-tag,
.oh-titlebar__tag {
  border-radius: 999px;
  border-color: var(--border);
  background-color: var(--surface);
}

/* ---------------------------------------------------------------
 * Pagination
 * ------------------------------------------------------------- */
.oh-pagination__link {
  border-radius: var(--radius-sm);
}

.oh-pagination__link--active {
  color: var(--brand-700);
  font-weight: 600;
}

.oh-pagination__input {
  width: 3rem;
  text-align: center;
}

/* ---------------------------------------------------------------
 * Toast messages
 * ------------------------------------------------------------- */
.oh-alert-container .oh-alert {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  font-size: 0.875rem;
  font-weight: 500;
  border-left-width: 4px;
}

.oh-alert--success {
  background-color: var(--success-50);
  border-color: #bbf7d0;
  border-left-color: var(--success-600);
}

.oh-alert--danger {
  background-color: var(--danger-50);
  border-color: #fecaca;
  border-left-color: var(--danger-600);
}

.oh-alert--warning {
  background-color: var(--warning-50);
  border-color: #fde68a;
  border-left-color: var(--warning-600);
}

.oh-alert--info {
  background-color: var(--info-50);
  border-color: #bae6fd;
  border-left-color: var(--info-600);
}

/* ---------------------------------------------------------------
 * Third-party widgets
 * ------------------------------------------------------------- */
.fc .fc-button-primary {
  background-color: var(--brand-700) !important;
  border-color: var(--brand-700) !important;
  border-radius: var(--radius) !important;
}

.qs-square.qs-num.qs-current,
.qs-overlay-month:hover {
  color: var(--brand-700) !important;
}

.qs-overlay .qs-submit {
  background-color: var(--brand-700) !important;
}

.qs-overlay .qs-submit:hover {
  background-color: var(--brand-800) !important;
}

.orgchart .frontend1 .title {
  background-color: var(--brand-700);
}

.orgchart .frontend1 .content {
  border-color: var(--brand-700);
}

.oh-chat__bubble--you .oh-chat__bubble-content {
  background-color: var(--brand-700);
  border-color: var(--brand-800);
}

.oh-helpdesk__bubble--reply {
  border-color: var(--brand-700);
}

.swal2-popup {
  border-radius: var(--radius-xl) !important;
  font-family: var(--font-sans) !important;
}

.swal2-styled.swal2-confirm {
  background-color: var(--brand-700) !important;
  border-radius: var(--radius) !important;
}

.swal2-styled.swal2-cancel {
  border-radius: var(--radius) !important;
}

/* Product tour popover */
#driver-popover-item,
.driver-popover {
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-lg) !important;
  font-family: var(--font-sans) !important;
}

/* ---------------------------------------------------------------
 * Breadcrumbs
 * ------------------------------------------------------------- */
.oh-navbar__breadcrumb-link {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.oh-navbar__breadcrumb-link:hover {
  color: var(--brand-700);
}

.oh-navbar__breadcrumb-link.active {
  color: var(--gray-950);
  font-weight: 500;
}

/* ---------------------------------------------------------------
 * Dashboard tiles
 * The coloured top bars made every tile shout. Tiles share one quiet
 * frame; the category colour moves to a small dot beside the title.
 * ------------------------------------------------------------- */
.oh-card-dashboard,
.oh-card-dashboard[style] {
  border-top: 1px solid var(--border) !important;
}

.oh-card-dashboard__title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.oh-card-dashboard--success .oh-card-dashboard__title::before,
.oh-card-dashboard--danger .oh-card-dashboard__title::before,
.oh-card-dashboard--warning .oh-card-dashboard__title::before,
.oh-card-dashboard--neutral .oh-card-dashboard__title::before,
.oh-card-dashboard--secondary .oh-card-dashboard__title::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background-color: var(--gray-400);
}

.oh-card-dashboard--success .oh-card-dashboard__title::before { background-color: var(--success-600); }
.oh-card-dashboard--danger .oh-card-dashboard__title::before { background-color: var(--danger-600); }
.oh-card-dashboard--warning .oh-card-dashboard__title::before { background-color: var(--warning-600); }
.oh-card-dashboard--secondary .oh-card-dashboard__title::before { background-color: var(--brand-700); }

.oh-card-dashboard__count {
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--gray-950);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.oh-card-dashboard__body {
  min-width: 0;
}

/* Segmented control (tabs inside a tile) */
.oh-segmented {
  display: flex;
  gap: 2px;
  padding: 3px;
  background-color: var(--gray-100);
  border-radius: var(--radius);
}

.oh-segmented__item {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 34px;
  padding: 0.35rem 0.6rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--gray-600);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}

.oh-segmented__item:hover {
  color: var(--gray-950);
}

.oh-segmented__item--active {
  background-color: var(--surface);
  color: var(--gray-950);
  box-shadow: var(--shadow-sm);
}

.oh-segmented__item:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 1px;
}

.oh-segmented__count {
  min-width: 1.4rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background-color: var(--gray-200);
  color: var(--gray-700);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.35rem;
  font-variant-numeric: tabular-nums;
}

.oh-segmented__item--active .oh-segmented__count {
  background-color: var(--brand-50);
  color: var(--brand-700);
}

/* Dashboard task tile */
.oh-task-tile__scope {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.75rem;
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.oh-task-tile__list {
  flex-direction: column;
  gap: 0.5rem;
  max-height: 340px;
  overflow-y: auto;
}

.oh-task-tile__empty {
  margin: 0;
  padding: 1.25rem 0.75rem;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.875rem;
  text-align: center;
}

.oh-task-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--surface);
}

.oh-task-row__main {
  min-width: 0;
}

.oh-task-row__title {
  color: var(--gray-950);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.oh-task-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.oh-task-row__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.oh-task-row .oh-badge {
  flex: none;
}

/* Tile header with a quiet text link instead of a solid button */
.oh-tile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.oh-tile-head .oh-card-dashboard__title ion-icon {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.oh-tile-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex: none;
  padding: 0.3rem 0.5rem;
  margin-right: -0.5rem;
  border-radius: var(--radius-sm);
  color: var(--brand-700);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s var(--ease);
}

.oh-tile-link:hover,
.oh-tile-link:focus-visible {
  background-color: var(--brand-50);
  color: var(--brand-800);
  text-decoration: none;
}

.oh-tile-link ion-icon {
  font-size: 0.95rem;
}

/* Shortcut rows inside a tile */
.oh-quick-links {
  display: flex;
  flex-direction: column;
  margin-top: 1rem;
  border-top: 1px solid var(--gray-100);
}

.oh-quick-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.25rem;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-900);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease);
}

.oh-quick-link:hover,
.oh-quick-link:focus-visible {
  color: var(--brand-700);
  background-color: var(--gray-50);
  text-decoration: none;
}

.oh-quick-link__icon {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.oh-quick-link__chevron {
  margin-left: auto;
  color: var(--gray-400);
}

/* My Attendance tile */
.oh-att-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.oh-att-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--gray-50);
}

.oh-att-stat__label {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.oh-att-stat__value {
  color: var(--gray-950);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.oh-att-stat__hint {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.oh-att-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.35rem 0 0.15rem;
  color: var(--gray-950);
  font-size: 0.9375rem;
  font-weight: 600;
}

.oh-att-status::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background-color: var(--gray-400);
}

.oh-att-status--in::before { background-color: var(--success-600); }
.oh-att-status--done::before { background-color: var(--brand-700); }

.oh-att-shift {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.oh-att-shift__icon {
  flex: none;
  color: var(--text-muted);
  font-size: 1.25rem;
}

.oh-att-shift__main {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  min-width: 0;
}

.oh-att-shift__name {
  color: var(--gray-950);
  font-size: 0.875rem;
  font-weight: 600;
}

.oh-att-shift__days {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.oh-att-shift__ok {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex: none;
  color: var(--success-600);
  font-size: 0.75rem;
  font-weight: 500;
}

.oh-att-recent {
  margin-top: 1.25rem;
}

.oh-att-recent__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.oh-att-recent__title {
  color: var(--gray-950);
  font-size: 0.875rem;
  font-weight: 600;
}

.oh-att-log {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.oh-att-log__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 0.875rem;
  font-size: 0.8125rem;
}

.oh-att-log__row + .oh-att-log__row {
  border-top: 1px solid var(--gray-100);
}

.oh-att-log__date {
  color: var(--gray-950);
  font-weight: 500;
}

.oh-att-log__times {
  display: inline-flex;
  gap: 0.75rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.oh-att-log__times span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.oh-att-log__hours {
  color: var(--gray-900);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 575.98px) {
  .oh-att-log__row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .oh-att-log__times {
    grid-column: 1 / -1;
    order: 3;
  }

  .oh-att-shift {
    flex-wrap: wrap;
  }

  /* Status line drops under the shift name, aligned with it */
  .oh-att-shift > .oh-att-shift__ok,
  .oh-att-shift > .oh-badge {
    flex-basis: 100%;
    margin-left: 2rem;
  }

  .oh-att-shift > .oh-badge {
    flex-basis: auto;
  }

  .oh-att-status {
    font-size: 0.875rem;
  }
}

/* Dashboard: tiles without data (see static/index/dashboard_tiles.js) */
.oh-tile--empty-hidden {
  display: none !important;
}

.oh-tile--pending {
  visibility: hidden;
}

/* Empty tiles that stay visible shrink to their message */
.oh-card-dashboard--empty,
.oh-card-dashboard--empty[style] {
  height: auto !important;
  min-height: 0 !important;
}

.oh-card-dashboard--empty .oh-card-dashboard__body,
.oh-card-dashboard--empty .oh-card-dashboard__body[style] {
  height: auto !important;
  min-height: 0 !important;
}

.oh-card-dashboard--empty .oh-404__image,
.oh-card-dashboard--empty img {
  width: 40px !important;
  height: 40px !important;
}

.oh-card-dashboard--empty .oh-404__title,
.oh-card-dashboard--empty .oh-empty__title {
  font-size: 0.9375rem;
  margin-top: 0.5rem;
}

.oh-card-dashboard--empty .oh-empty,
.oh-card-dashboard--empty .oh-wrapper,
.oh-card-dashboard--empty [style*="margin-top"] {
  min-height: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}


/* Highlight tiles (Next holiday, birthdays): brand tint instead of purple.
   The events slider paints random inline colours, hence !important. */
.oh-dashboard__event,
.oh-dashboard__event--purple,
.oh-dashboard__event[style] {
  background-color: var(--brand-50) !important;
  border: 1px solid var(--brand-100);
  border-radius: var(--radius-lg);
  color: var(--brand-950);
}

.oh-dashboard__event .oh-dashboard__event-title,
.oh-dashboard__event .oh-dashboard__event-main,
.oh-dashboard__event .oh-dashboard__event-date {
  color: var(--brand-950);
}

.oh-dashboard__event .oh-dashboard__event-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brand-700);
}

/* Native date / month pickers inside tiles and toolbars */
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime-local"] {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background-color: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.875rem;
  min-height: 36px;
  padding: 0.35rem 0.6rem;
  max-width: 100%;
}

input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime-local"]:focus {
  outline: none;
  border-color: var(--brand-600);
  box-shadow: 0 0 0 3px var(--brand-ring);
}

/* ---------------------------------------------------------------
 * Empty states
 * One calm pattern everywhere: small muted illustration, a short
 * title and a helper line.
 * ------------------------------------------------------------- */
.oh-empty {
  height: auto;
  min-height: 320px;
  padding: 3rem 1.5rem;
  text-align: center;
}

.oh-empty img,
.oh-empty .oh-404__image,
.oh-card-dashboard .oh-404__image {
  width: 56px;
  height: 56px;
  opacity: 0.55;
}

.oh-empty__title,
.oh-404__title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--gray-950);
  margin-top: 0.875rem;
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}

.oh-empty__subtitle,
.oh-empty__message,
.oh-404__subtitle {
  color: var(--text-muted);
  font-size: 0.875rem;
  max-width: 42ch;
  margin-left: auto;
  margin-right: auto;
}

/* ---------------------------------------------------------------
 * Page toolbar
 * ------------------------------------------------------------- */
.oh-btn--dropdown {
  background-color: var(--surface);
  border: 1px solid var(--border);
  color: var(--gray-700);
  box-shadow: var(--shadow-xs);
  gap: 0.5rem;
}

.oh-btn--dropdown:hover,
.oh-btn--dropdown:focus-visible {
  background-color: var(--gray-50);
  border-color: var(--border-strong);
  color: var(--gray-950);
}

/* The base caret is white, which vanished on the light button */
.oh-btn--dropdown::after {
  content: "";
  width: 10px;
  height: 10px;
  margin-left: 0.25rem;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m4.594 8.912 6.553 7.646a1.126 1.126 0 0 0 1.708 0l6.552-7.646c.625-.73.107-1.857-.854-1.857H5.447c-.961 0-1.479 1.127-.853 1.857Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m4.594 8.912 6.553 7.646a1.126 1.126 0 0 0 1.708 0l6.552-7.646c.625-.73.107-1.857-.854-1.857H5.447c-.961 0-1.479 1.127-.853 1.857Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.oh-main__titlebar--right {
  flex-wrap: wrap;
  gap: 0.5rem;
}

.oh-pagination {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Tables scroll inside their own frame rather than pushing the page */
.oh-sticky-table,
.oh-table-container {
  max-width: 100%;
  overflow-x: auto;
}

/* Long names, emails and IDs wrap instead of overflowing cards */
.oh-kanban-card__title,
.oh-kanban-card__subtitle,
.oh-profile__name,
.oh-card-dashboard__title {
  overflow-wrap: anywhere;
}

/* Keep menus inside the viewport (dialogs are handled in the phone block) */
.oh-dropdown__menu {
  max-width: calc(100vw - 32px);
}

/* Navbar icon buttons: clear hover and keyboard focus */
.oh-navbar__action-icons-link:focus-visible,
.oh-navbar__notification-link:focus-visible,
.oh-navbar__toggle-link:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: -4px;
  border-radius: var(--radius);
}

/* ---------------------------------------------------------------
 * Touch screens: comfortable targets
 * ------------------------------------------------------------- */
@media (pointer: coarse) {
  .oh-btn,
  .oh-input,
  .oh-select,
  select,
  .oh-dropdown__link,
  .oh-sidebar__submenu-link {
    min-height: 44px;
  }

  .oh-sidebar__submenu-link {
    display: flex;
    align-items: center;
  }
}

/* ---------------------------------------------------------------
 * Phones: sidebar becomes a drawer, toolbar stacks
 * ------------------------------------------------------------- */
.oh-sidebar-backdrop {
  display: none;
}

/* The base sheet hides Filter / Group by / Actions / Create below 1000px
   with no way to reveal them. Keep them reachable as a wrapping row. */
@media (max-width: 1000px) {
  .oh-main__titlebar .oh-main__titlebar-button-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
  }

  .oh-main__titlebar-button-container > * {
    margin-left: 0 !important;
  }

  .oh-main__titlebar .oh-view-types {
    height: 40px;
    align-self: center;
  }

  /* Check-in / out keeps its icon; the label is in its tooltip */
  #attendance-activity-container .oh-btn {
    padding: 0.5rem 0.65rem;
    margin-right: 0.25rem !important;
    white-space: nowrap;
  }

  #attendance-activity-container .oh-btn > span:not(.oh-badge),
  #attendance-activity-container .oh-btn .clock-in-at {
    display: none !important;
  }

  #attendance-activity-container .oh-btn .oh-navbar__clock-icon {
    margin-right: 0 !important;
  }
}

.oh-segmented__item {
  white-space: nowrap;
}

/* Narrow tiles: tabs share the row and wrap rather than clip */
.oh-segmented {
  flex-wrap: wrap;
}

.oh-segmented__item {
  flex: 1 1 auto;
  min-width: 0;
}

@media (max-width: 767.98px) {
  .oh-wrapper-main,
  .oh-wrapper-main--closed {
    grid-template-columns: minmax(0, 1fr);
  }

  #main {
    min-width: 0;
  }

  .oh-wrapper-main #sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(280px, 85vw);
    z-index: 1041;
    box-shadow: var(--shadow-lg);
  }

  .oh-wrapper-main #sidebar .oh-sidebar {
    max-width: none;
    width: 100%;
  }

  .oh-wrapper-main:not(.oh-wrapper-main--closed) .oh-sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1040;
    background-color: rgba(13, 23, 20, 0.45);
  }

  /* Navbar: page title already says where you are */
  .oh-navbar__breadcrumb {
    display: none;
  }

  .oh-navbar__wrapper {
    padding-left: 12px;
    padding-right: 12px;
  }

  .oh-navbar__action-icons {
    padding-left: 0.6rem;
    padding-right: 0.6rem;
  }

  #multiLanguage,
  #multCompany {
    display: none;
  }

  .oh-navbar__user-info .oh-navbar__user-name,
  .oh-navbar__user-info > span {
    display: none;
  }

  /* Page title row */
  .oh-main__titlebar {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .oh-main__titlebar-title {
    font-size: 1.25rem;
  }

  .oh-main__titlebar--right {
    width: 100%;
    flex-direction: row;
    align-items: center;
  }

  .oh-main__titlebar--right > form,
  .oh-main__titlebar--right .oh-main__titlebar-button-container {
    flex: 1 1 100%;
  }

  .oh-main__titlebar--right .oh-input-group,
  .oh-main__titlebar-search-toggle,
  .oh-main__titlebar--right input[type="text"],
  .oh-main__titlebar--right input[type="search"] {
    flex-basis: 100%;
    width: 100%;
  }

  .oh-main__titlebar-button-container {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .oh-wrapper {
    padding-left: 16px;
    padding-right: 16px;
  }

  .oh-card-dashboard__count {
    font-size: 1.875rem;
  }

  .oh-empty {
    min-height: 240px;
    padding: 2rem 1rem;
  }

  .oh-pagination {
    flex-wrap: wrap;
    gap: 0.5rem;
  }


  /* Dialogs set fixed widths inline; fit them to the screen */
  .oh-modal__dialog {
    width: auto;
    max-width: calc(100vw - 24px) !important;
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
  }
}

/* ---------------------------------------------------------------
 * Reduced motion
 * ------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
