/* Staff workspace shell (ADR-0002) — accounting SaaS, not Odoo apps grid */
:root {
  --staff-accent: #f5b000;
  --staff-accent-hover: #c58d00;
  --staff-ink: #0d1b2a;
  --staff-muted: #637083;
  --staff-surface: #f5f6f8;
  --staff-panel: #ffffff;
  --staff-line: rgba(13, 27, 42, 0.1);
  --staff-sidebar: #0d1b2a;
  --staff-sidebar-text: rgba(255, 255, 255, 0.78);
  --o-brand: var(--staff-accent);
  --o-brand-dark: var(--staff-accent-hover);
  --o-brand-light: #1a8f6e;
  --o-primary: var(--staff-accent);
  --o-primary-hover: var(--staff-accent-hover);
  --o-success: #28a745;
  --o-danger: #dc3545;
  --o-warning: #f0ad4e;
  --o-info: #17a2b8;
  --o-view-bg: var(--staff-surface);
  --o-sheet-bg: var(--staff-panel);
  --o-border: #d7e0dc;
  --o-border-light: #e6eeea;
  --o-text: var(--staff-ink);
  --o-text-muted: var(--staff-muted);
  --o-navbar-height: 46px;
  --o-cp-height: auto;
  --font-display: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --portal-accent: var(--staff-accent);
  --portal-accent-hover: var(--staff-accent-hover);
  --portal-ink: var(--staff-ink);
  --portal-muted: var(--staff-muted);
  --portal-panel: var(--staff-panel);
  --portal-line: var(--staff-line);
  --portal-radius: 0.5rem;
  --portal-shadow: 0 8px 24px rgba(16, 35, 58, 0.06);
}

body.portal-body,
body.portal-login,
.staff-ui,
.odoo-ui {
  color: var(--o-text);
  font-family: var(--font-body);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  color-scheme: light;
}

.text-portal {
  color: var(--staff-accent) !important;
}

.btn-portal,
.btn.btn-portal {
  --bs-btn-color: #0d1b2a;
  --bs-btn-bg: var(--staff-accent);
  --bs-btn-border-color: var(--staff-accent-hover);
  --bs-btn-hover-color: #0d1b2a;
  --bs-btn-hover-bg: var(--staff-accent-hover);
  --bs-btn-hover-border-color: #a87800;
  --bs-btn-active-color: #0d1b2a;
  --bs-btn-active-bg: #a87800;
  --bs-btn-active-border-color: #a87800;
  background: var(--staff-accent);
  border: 1px solid var(--staff-accent-hover);
  color: #0d1b2a;
  font-weight: 600;
  border-radius: 0.45rem;
  padding: 0.35rem 0.85rem;
  box-shadow: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-portal:hover,
.btn.btn-portal:hover,
.btn-portal:focus,
.btn.btn-portal:focus,
.btn-portal:focus-visible,
.btn.btn-portal:focus-visible {
  background: var(--staff-accent-hover);
  border-color: #a87800;
  color: #0d1b2a;
  filter: none;
  transform: none;
  box-shadow: none;
}

.btn-portal:active,
.btn.btn-portal:active,
.btn-portal.active,
.btn.btn-portal.active {
  background: #a87800;
  border-color: #a87800;
  color: #0d1b2a;
}

.btn-outline-secondary {
  border-radius: 0.45rem;
}

/* —— Staff shell —— */
.portal-body.staff-ui {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 70% 45% at 100% 0%, rgba(15, 110, 86, 0.08), transparent 55%),
    var(--staff-surface);
  margin: 0;
}

.staff-shell {
  min-height: 100vh;
}

.staff-sidebar {
  width: 268px;
  flex-shrink: 0;
  background:
    radial-gradient(ellipse 90% 40% at 0% 0%, rgba(26, 143, 110, 0.18), transparent 55%),
    linear-gradient(180deg, #0d1b2a 0%, #0a1520 100%);
  color: var(--staff-sidebar-text);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: sticky;
  top: 0;
  max-height: 100vh;
  overflow: hidden;
}

.staff-brand {
  flex-shrink: 0;
  padding: 1.15rem 1rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.staff-brand-link {
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 1;
  min-width: 0;
}

.staff-brand-link--company {
  gap: 0.7rem;
}

.staff-brand-company-logo {
  width: 2.75rem;
  height: 2.75rem;
  object-fit: contain;
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.96);
  padding: 0.2rem;
  flex-shrink: 0;
  display: block;
}

.staff-brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.staff-brand-lockup {
  display: block;
  width: 100%;
  max-width: 15.75rem;
  height: 3.1rem;
  object-fit: contain;
  object-position: left center;
}

.staff-brand-lockup--full {
  max-width: 10.5rem;
  background: #fff;
  border-radius: 0.55rem;
  padding: 0.4rem 0.5rem;
}

.staff-brand-logo {
  width: 2.6rem;
  height: 2.6rem;
  object-fit: contain;
  border-radius: 0.4rem;
  flex-shrink: 0;
  background: transparent;
  padding: 0;
}

.staff-brand-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 0.92rem;
  line-height: 1.15;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 11.5rem;
}

.staff-brand-sub {
  display: block;
  font-size: 0.58rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.3;
  color: rgba(201, 162, 39, 0.95);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 11.5rem;
}

.staff-nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.75rem 0.65rem 1rem;
  scrollbar-gutter: stable;
}

.staff-nav-group + .staff-nav-group {
  margin-top: 0.85rem;
}

.staff-nav-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(255, 255, 255, 0.4);
  padding: 0 0.55rem 0.35rem;
}

.staff-nav-link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.55rem;
  border-radius: 0.45rem;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
}

.staff-nav-link i {
  width: 1.1rem;
  text-align: center;
  opacity: 0.85;
}

.staff-nav-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.staff-nav-link.active {
  background: rgba(26, 143, 110, 0.28);
  color: #fff;
}

.staff-sidebar-foot {
  flex-shrink: 0;
  padding: 0.85rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
}

.staff-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.staff-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid var(--staff-line);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.staff-topbar-title {
  min-width: 0;
  flex: 1 1 auto;
}

.staff-page-title {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.45rem;
  color: var(--staff-ink);
}

.staff-topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  flex: 0 1 auto;
  margin-left: auto;
  flex-wrap: wrap;
}

.staff-icon-btn {
  position: relative;
  width: 2.1rem;
  height: 2.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.45rem;
  border: 1px solid var(--staff-line);
  background: #fff;
  color: var(--staff-ink);
  text-decoration: none;
}

.staff-badge {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: var(--staff-accent);
  color: #fff;
  font-size: 0.65rem;
  line-height: 1rem;
  text-align: center;
}

.staff-control-panel {
  padding: 0.55rem 1.35rem 0;
  display: flex;
  justify-content: flex-end;
}

.staff-content {
  padding: 0.85rem 1.35rem 1.75rem;
  flex: 1;
}

.staff-search.o_searchview {
  margin-left: 0;
  margin-right: 0.15rem;
  justify-content: flex-end;
}

.o_cp_status_tabs {
  justify-content: flex-end;
  width: 100%;
  margin-top: 0;
  padding-top: 0.35rem;
  border-top: 0;
}

.staff-nav-toggle,
.staff-nav-close {
  display: none;
}

.staff-nav-backdrop {
  display: none;
}

@media (max-width: 991.98px) {
  .staff-shell {
    flex-direction: row;
  }

  .staff-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    margin-top: 0.15rem;
    flex: 0 0 auto;
  }

  .staff-nav-close {
    display: inline-flex;
  }

  .staff-nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1040;
    background: rgba(13, 27, 42, 0.45);
  }

  .staff-nav-backdrop[hidden] {
    display: none !important;
  }

  .staff-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    width: min(18.5rem, 88vw);
    flex: none;
    height: 100vh;
    max-height: 100vh;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
    box-shadow: 0 12px 40px rgba(13, 27, 42, 0.28);
  }

  body.staff-nav-open .staff-sidebar {
    transform: translateX(0);
  }

  body.staff-nav-open {
    overflow: hidden;
  }

  .staff-nav {
    display: block;
    max-height: none;
    overflow-y: auto;
  }

  .staff-nav-group {
    display: block;
  }

  .staff-nav-label {
    display: block;
  }

  .staff-topbar {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .staff-topbar-actions {
    width: 100%;
  }

  .staff-search.o_searchview {
    width: 100%;
    order: 3;
  }

  .staff-content,
  .portal-content {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .staff-main .table-responsive,
  .portal-content .table-responsive,
  .staff-content .table-responsive {
    margin-left: 0;
    margin-right: 0;
  }

  .staff-main .card-body,
  .portal-content .card-body {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }
}

/* Legacy Odoo shell kept for older class names in pages —— */
.portal-body.odoo-ui {
  min-height: 100vh;
  background: var(--o-view-bg);
  margin: 0;
  display: flex;
  flex-direction: column;
}

/* —— Main navbar (legacy) —— */
.o_main_navbar {
  height: var(--o-navbar-height);
  background: var(--o-brand);
  color: #fff;
  display: flex;
  align-items: center;
  padding: 0 0.5rem 0 0;
  position: sticky;
  top: 0;
  z-index: 1030;
  flex-shrink: 0;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}

.o_menu_apps {
  position: relative;
  height: 100%;
}

.o_navbar_apps_toggler {
  height: 100%;
  width: 46px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.o_navbar_apps_toggler:hover,
.o_menu_apps.show .o_navbar_apps_toggler {
  background: rgba(0, 0, 0, 0.12);
}

.o_menu_apps_dropdown {
  width: min(560px, calc(100vw - 1rem));
  max-height: min(70vh, 520px);
  overflow: auto;
  padding: 1rem;
  border: 0;
  border-radius: 0 0 4px 4px;
  margin-top: 0 !important;
  left: 0 !important;
}

.o_apps_grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.75rem;
}

.o_app {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: var(--o-text);
  padding: 0.5rem 0.25rem;
  border-radius: 4px;
  transition: background 0.12s ease;
}

.o_app:hover {
  background: #f0f0f0;
  color: var(--o-text);
}

.o_app.active .o_app_icon {
  outline: 2px solid var(--o-brand);
  outline-offset: 2px;
}

.o_app_icon {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

.o_app_name {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
}

.o_app_icon--dash { background: #875a7b; }
.o_app_icon--contacts { background: #3498db; }
.o_app_icon--inventory { background: #f39c12; }
.o_app_icon--sales { background: #1abc9c; }
.o_app_icon--accounting { background: #27ae60; }
.o_app_icon--crm { background: #e74c3c; }
.o_app_icon--pos { background: #9b59b6; }
.o_app_icon--payment { background: #16a085; }
.o_app_icon--hr { background: #e67e22; }
.o_app_icon--budget { background: #2980b9; }
.o_app_icon--assets { background: #7f8c8d; }
.o_app_icon--industry { background: #c0392b; }
.o_app_icon--property { background: #8e44ad; }
.o_app_icon--mrp { background: #2c3e50; }
.o_app_icon--health { background: #e91e63; }
.o_app_icon--edu { background: #3f51b5; }
.o_app_icon--hotel { background: #009688; }
.o_app_icon--discuss { background: #00bcd4; }
.o_app_icon--feedback { background: #607d8b; }
.o_app_icon--settings { background: #546e7a; }

.o_menu_brand {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  padding: 0 0.75rem;
  white-space: nowrap;
  opacity: 0.95;
}

.o_menu_brand:hover {
  color: #fff;
  opacity: 1;
}

.o_menu_sections {
  display: flex;
  align-items: stretch;
  height: 100%;
  overflow-x: auto;
  margin-left: 0.25rem;
  gap: 0;
}

.o_menu_item {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  padding: 0 0.85rem;
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}

.o_menu_item:hover {
  color: #fff;
  background: rgba(0, 0, 0, 0.08);
}

.o_menu_item.active {
  color: #fff;
  border-bottom-color: #fff;
}

.o_menu_systray {
  display: flex;
  align-items: stretch;
  height: 100%;
  margin-left: auto;
}

.o_nav_entry {
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.75rem;
  text-decoration: none;
  position: relative;
  font-size: 1.1rem;
}

.o_nav_entry:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #fff;
}

.o_notification_counter {
  position: absolute;
  top: 6px;
  right: 4px;
  background: #dc3545;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.o_user_menu {
  height: 100%;
  border: 0;
  background: transparent;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 0.75rem;
  font-size: 13px;
  cursor: pointer;
}

.o_user_menu:hover {
  background: rgba(0, 0, 0, 0.1);
}

.o_user_avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 12px;
}

.o_user_menu .bi-caret-down-fill {
  font-size: 0.55rem;
  opacity: 0.8;
}

/* —— Action / control panel —— */
.o_action_manager {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.o_control_panel {
  background: #fff;
  border-bottom: 1px solid var(--o-border);
  padding: 0.65rem 1.25rem 0.75rem;
  flex-shrink: 0;
}

.o_breadcrumb {
  font-size: 12px;
  background: transparent;
  padding: 0;
}

.o_breadcrumb .breadcrumb-item a {
  color: var(--o-brand);
  text-decoration: none;
}

.o_breadcrumb .breadcrumb-item.active {
  color: var(--o-text-muted);
}

.o_control_panel_main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.25rem;
  flex-wrap: wrap;
}

.o_control_panel_title {
  font-size: 1.35rem;
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--o-text);
}

.o_cp_buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-left: auto;
}

.o_searchview {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.o_searchview_status {
  width: auto;
  min-width: 8.5rem;
  font-size: 12px;
}

.o_searchview_input_container {
  position: relative;
  display: flex;
  align-items: center;
}

.o_searchview_input_container i {
  position: absolute;
  left: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--o-text-muted);
  font-size: 0.85rem;
  pointer-events: none;
  z-index: 1;
}

/* Beat global form padding so the icon does not cover placeholder text */
.odoo-ui .o_searchview_input_container .form-control,
.staff-ui .o_searchview_input_container .form-control {
  padding-left: 2.15rem;
  min-width: 12rem;
  font-size: 13px;
}

.o_cp_status_tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
}

.o_cp_status_tab {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  font-size: 12px;
  font-weight: 500;
  color: var(--o-text-muted);
  text-decoration: none;
  border-radius: 3px;
  text-transform: capitalize;
}

.o_cp_status_tab:hover {
  background: #f5f0f4;
  color: var(--o-brand);
}

.o_cp_status_tab.active {
  background: var(--o-brand);
  color: #fff;
}

.o_list_meta {
  font-size: 12px;
  color: var(--o-text-muted);
  margin: 0 0 0.65rem;
}

.o_content,
.portal-content {
  flex: 1;
  padding: 1rem 1rem 2rem;
  width: 100%;
  max-width: none;
  margin: 0;
}

.o_link {
  color: var(--o-brand);
  text-decoration: none;
  font-weight: 500;
}

.o_link:hover {
  color: var(--o-brand-dark);
  text-decoration: underline;
}

/* —— Sheets, lists, forms (all pages) —— */
.odoo-ui .card {
  border: 1px solid var(--o-border);
  border-radius: 0;
  box-shadow: none;
  background: var(--o-sheet-bg);
  margin-bottom: 0;
}

/* List views: full-bleed Odoo list */
.odoo-ui .card:has(> .table-responsive),
.odoo-ui .card.o_list_view,
.odoo-ui .card:has(> .table) {
  border-left: 0;
  border-right: 0;
  border-radius: 0;
}

.odoo-ui .card-header {
  background: #fff !important;
  border-bottom: 1px solid var(--o-border);
  font-weight: 500;
  font-size: 13px;
  padding: 0.55rem 1rem;
  color: var(--o-text);
}

.odoo-ui .card-body {
  padding: 1rem 1.15rem;
}

/* Form sheets (create/edit panels) */
.odoo-ui .card:has(form),
.odoo-ui .o_form_sheet {
  border: 1px solid var(--o-border);
  border-radius: 3px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  max-width: 100%;
}

.odoo-ui .row .card:has(form) {
  height: 100%;
}

.odoo-ui .table {
  font-size: 13px;
  margin-bottom: 0;
}

.odoo-ui .table thead th {
  background: #f8f9fa;
  border-bottom: 1px solid var(--o-border);
  font-weight: 500;
  color: var(--o-text-muted);
  font-size: 12px;
  text-transform: none;
  white-space: nowrap;
  padding: 0.5rem 0.75rem;
}

.odoo-ui .table tbody td {
  padding: 0.45rem 0.75rem;
  vertical-align: middle;
  border-color: var(--o-border-light);
}

.odoo-ui .table-hover tbody tr:hover {
  background: #f5f0f4;
}

.odoo-ui .form-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--o-text-muted);
  margin-bottom: 0.25rem;
}

.odoo-ui .form-control,
.odoo-ui .form-select,
.staff-ui .form-control,
.staff-ui .form-select {
  border-radius: 3px;
  border-color: var(--o-border);
  font-size: 13px;
  padding: 0.35rem 0.6rem;
  color: var(--staff-ink) !important;
  background-color: #fff !important;
}

.odoo-ui .form-control::placeholder,
.staff-ui .form-control::placeholder {
  color: var(--staff-muted);
  opacity: 1;
}

.odoo-ui .form-select option,
.staff-ui .form-select option,
.odoo-ui select option,
.staff-ui select option {
  color: #0d1b2a !important;
  background-color: #ffffff !important;
}

.odoo-ui .form-control:focus,
.odoo-ui .form-select:focus,
.staff-ui .form-control:focus,
.staff-ui .form-select:focus {
  border-color: var(--o-brand-light);
  box-shadow: 0 0 0 0.15rem rgba(15, 110, 86, 0.2);
  color: var(--staff-ink) !important;
  background-color: #fff !important;
}

/* Readable body/links — accent only for decoration, not primary reading text */
.staff-ui .o_content,
.staff-ui .staff-content,
.staff-ui .portal-content,
.staff-ui .o_graph_card__body,
.staff-ui .card-body,
.staff-ui .table,
.staff-ui label,
.staff-ui .form-label {
  color: var(--staff-ink);
}

.staff-ui .text-muted,
.staff-ui .form-label.small,
.staff-ui .small.text-muted {
  color: var(--staff-muted) !important;
}

.staff-ui a.finance-link,
.staff-ui .finance-gateway-note a,
.staff-ui .o_link {
  color: var(--staff-accent-hover);
}

.staff-ui a.finance-link:hover,
.staff-ui .finance-gateway-note a:hover,
.staff-ui .o_link:hover {
  color: #8a5a00;
}

.staff-ui code {
  color: #8a5a10;
}

.odoo-ui .badge {
  font-weight: 500;
  border-radius: 3px;
}

.odoo-ui .alert {
  border-radius: 3px;
  font-size: 13px;
}

.odoo-ui .btn {
  border-radius: 3px;
  font-weight: 500;
  font-size: 13px;
}

.odoo-ui .btn-sm {
  font-size: 12px;
  padding: 0.2rem 0.5rem;
}

.o_dialog {
  border-radius: 3px;
  border: 0;
}

/* —— Dashboard board (Odoo Accounting style) —— */
.o_board {
  margin-bottom: 0.5rem;
}

.o_board_header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.o_board_subtitle {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--o-brand);
  font-weight: 600;
}

.o_board_title {
  font-size: 1.35rem;
  font-weight: 500;
  margin: 0.15rem 0 0;
}

.o_board_meta {
  font-size: 12px;
}

.o_kanban_dashboard {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

@media (max-width: 992px) {
  .o_kanban_dashboard {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .o_kanban_dashboard {
    grid-template-columns: 1fr;
  }
}

.o_kanban_card {
  display: block;
  background: #fff;
  border: 1px solid var(--o-border);
  border-radius: 3px;
  padding: 0.9rem 1rem 1rem;
  text-decoration: none;
  color: var(--o-text);
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
  border-top: 3px solid var(--o-brand);
}

.o_kanban_card:hover {
  border-color: var(--o-brand-light);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  color: var(--o-text);
}

.o_kanban_card--tone-customers { border-top-color: #017e84; }
.o_kanban_card--tone-invoices { border-top-color: #c3a14a; }
.o_kanban_card--tone-expenses { border-top-color: #d5652b; }
.o_kanban_card--tone-stock { border-top-color: #5b7c5a; }

.o_kanban_card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.o_kanban_card__title {
  font-size: 12px;
  font-weight: 500;
  color: var(--o-text-muted);
}

.o_kanban_card__icon {
  font-size: 1rem;
  color: var(--o-text-muted);
  opacity: 0.85;
}

.o_kanban_card__value {
  font-size: 1.85rem;
  font-weight: 500;
  line-height: 1.15;
  margin: 0.35rem 0 0.2rem;
  letter-spacing: -0.02em;
}

.o_kanban_card__hint {
  font-size: 12px;
  color: var(--o-text-muted);
}

.o_graph_card {
  background: #fff;
  border: 1px solid var(--o-border);
  border-radius: 3px;
  overflow: hidden;
}

.o_graph_card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 1rem;
  border-bottom: 1px solid var(--o-border);
  font-size: 13px;
  font-weight: 500;
  background: #f8f9fa;
}

.o_graph_card__header-value {
  font-variant-numeric: tabular-nums;
  color: var(--o-text);
}

.o_graph_card__body {
  padding: 1rem;
}

.o_graph_card__body--tight {
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

.o_big_figure {
  margin-bottom: 1rem;
}

.o_big_figure--inline {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}

.o_big_figure__label {
  display: block;
  font-size: 12px;
  color: var(--o-text-muted);
  font-weight: 500;
}

.o_big_figure__value {
  display: block;
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--o-brand);
  line-height: 1.15;
}

.o_activity_chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--o-border);
  border-radius: 3px;
  font-size: 12px;
  color: var(--o-text-muted);
  text-decoration: none;
  background: #fff;
}

.o_activity_chip:hover {
  color: var(--o-brand);
  border-color: var(--o-brand-light);
}

.o_activity_chip--warn {
  border-color: #e8c27a;
  background: #fff9ef;
  color: #8a5a12;
}

.o_graph_bars .dash-money-bar__track {
  background: #eee;
  height: 10px;
  border-radius: 2px;
}

.o_graph_bars .dash-money-bar__track > i {
  background: var(--o-brand);
  border-radius: 2px;
}

.o_graph_bars .dash-money-bar__track > i.is-cash { background: #c3a14a; }
.o_graph_bars .dash-money-bar__track > i.is-ar { background: #017e84; }
.o_graph_bars .dash-money-bar__track > i.is-ap { background: #d5652b; }

.o_balance_row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--o-border-light);
  text-decoration: none;
  color: var(--o-text);
  font-size: 13px;
}

.o_balance_row:hover {
  color: var(--o-brand);
}

.o_balance_row span {
  color: var(--o-text-muted);
}

.o_balance_row strong {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.o_activity_count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--o-brand);
  color: #1a1a1a;
  font-size: 11px;
  font-weight: 600;
}

.o_activity_list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.o_activity_item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--o-border-light);
  font-size: 13px;
}

.o_activity_item:last-child {
  border-bottom: 0;
}

.o_activity_item__mark {
  width: 8px;
  height: 8px;
  margin-top: 0.35rem;
  border-radius: 50%;
  background: var(--o-brand);
  flex-shrink: 0;
}

.o_activity_item--warn .o_activity_item__mark,
.o_activity_item--warning .o_activity_item__mark {
  background: #d5652b;
}

.o_activity_item--high .o_activity_item__mark,
.o_activity_item--danger .o_activity_item__mark {
  background: #c0392b;
}

.o_activity_item--unread {
  background: #fffdf7;
}

.o_activity_item__label {
  display: block;
  font-weight: 500;
  color: var(--o-text);
}

.o_activity_item__meta {
  display: block;
  margin-top: 0.15rem;
  font-size: 12px;
  color: var(--o-text-muted);
}

.o_activity_empty {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 1.25rem 1rem;
  color: var(--o-text-muted);
  font-size: 13px;
}

.o_activity_empty i {
  font-size: 1.15rem;
  color: #5b7c5a;
}

.o_favorite_apps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  padding: 0.85rem;
}

@media (max-width: 768px) {
  .o_favorite_apps {
    grid-template-columns: repeat(2, 1fr);
  }
}

.o_favorite_apps a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem 0.5rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 3px;
  text-decoration: none;
  color: var(--o-text);
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  background: transparent;
}

.o_favorite_apps a:hover {
  background: #f4f4f4;
  border-color: var(--o-border);
  color: var(--o-text);
}

.o_favorite_apps a i {
  font-size: 1.15rem;
  color: #fff;
}

.o_app_icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.55rem;
  background: var(--o-brand);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.o_app_icon--customers { background: #017e84; }
.o_app_icon--products { background: #5b7c5a; }
.o_app_icon--quotes { background: #875a7b; }
.o_app_icon--invoices { background: #c3a14a; }
.o_app_icon--purchases { background: #d5652b; }
.o_app_icon--banking { background: #3a6ea5; }
.o_app_icon--accounting { background: #714b67; }
.o_app_icon--reports { background: #5f6368; }

.dash-money-bars {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.dash-money-bar {
  display: grid;
  grid-template-columns: 6.5rem 1fr auto;
  gap: 0.65rem;
  align-items: center;
  font-size: 12px;
}

.dash-money-bar > span {
  color: var(--o-text-muted);
  font-weight: 500;
}

.dash-money-bar > em {
  font-style: normal;
  font-variant-numeric: tabular-nums;
  color: var(--o-text);
  min-width: 4.5rem;
  text-align: right;
}

.dash-money-bar__track {
  background: #eee;
  height: 10px;
  border-radius: 2px;
  overflow: hidden;
}

.dash-money-bar__track > i {
  display: block;
  height: 100%;
  background: var(--o-brand);
  border-radius: 2px;
}

/* Stat tiles used on industry / ops pages */
.portal-stat {
  border: 1px solid var(--o-border) !important;
  border-top: 3px solid var(--o-brand) !important;
  border-radius: 3px !important;
  box-shadow: none !important;
}

.portal-stat:hover {
  border-color: var(--o-brand-light) !important;
}

.portal-stat .card-body {
  padding: 0.85rem 1rem !important;
}

.portal-stat-label {
  font-size: 12px;
  color: var(--o-text-muted);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}

.portal-stat-value {
  font-size: 1.5rem;
  font-weight: 500;
  margin-top: 0.15rem;
  color: var(--o-text);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.dash-stat-hint {
  font-size: 12px;
  color: var(--o-text-muted);
  margin-top: 0.25rem;
}

.dash-attention {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 13px;
  padding: 0.65rem 1rem !important;
}

.dash-attention__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--o-warning);
}

.dash-attention--high .dash-attention__dot,
.dash-attention--critical .dash-attention__dot {
  background: var(--o-danger);
}

.dash-attention--medium .dash-attention__dot {
  background: var(--o-warning);
}

.dash-attention--low .dash-attention__dot {
  background: var(--o-info);
}

.dash-note--unread {
  background: #faf6f9;
  border-left: 3px solid var(--o-brand);
}

/* Status badges (list views) — always set bg + dark text (Bootstrap .badge defaults to white text) */
.o_badge,
.badge[class*='portal-badge-'],
.portal-badge-draft,
.portal-badge-posted,
.portal-badge-paid,
.portal-badge-cancelled,
.portal-badge-overdue,
.portal-badge-partial,
.portal-badge-partially_paid,
.portal-badge-sent,
.portal-badge-confirmed,
.portal-badge-invoiced,
.portal-badge-billed,
.portal-badge-received,
.portal-badge-pending_approval,
.portal-badge-rejected,
.portal-badge-active {
  font-size: 11px;
  font-weight: 500;
  padding: 0.2em 0.5em;
  border-radius: 3px;
  border: 0;
  background: #e9ecef;
  color: #212529;
  text-transform: capitalize;
}

.o_badge_draft,
.portal-badge-draft {
  background: #e9ecef;
  color: #495057;
}

.o_badge_posted,
.o_badge_sent,
.o_badge_confirmed,
.portal-badge-posted,
.portal-badge-sent,
.portal-badge-confirmed,
.portal-badge-received {
  background: #e7f1ff;
  color: #0d47a1;
}

.o_badge_paid,
.o_badge_active,
.portal-badge-paid,
.portal-badge-active,
.portal-badge-invoiced,
.portal-badge-billed {
  background: #e6f4ea;
  color: #1b5e20;
}

.o_badge_partial,
.portal-badge-partial,
.portal-badge-partially_paid,
.portal-badge-pending_approval {
  background: #fff8e1;
  color: #e65100;
}

.o_badge_overdue,
.o_badge_cancelled,
.portal-badge-overdue,
.portal-badge-cancelled,
.portal-badge-rejected {
  background: #fdecea;
  color: #b71c1c;
}

/* List table polish */
.odoo-ui .table.o_list_table thead th,
.odoo-ui .card .table thead th {
  background: #f8f9fa;
  font-size: 12px;
  font-weight: 500;
  color: #666;
}

.odoo-ui .card .table tbody tr {
  cursor: default;
}

.odoo-ui .card .table tbody tr:hover td {
  background: #f5f0f4;
}

.odoo-ui code {
  font-size: 12px;
  color: #8a5a10;
  background: transparent;
}

/* Action buttons row on detail pages */
.odoo-ui .btn-outline-secondary {
  border-color: var(--o-border);
  color: var(--o-text);
}

.odoo-ui .btn-outline-secondary:hover {
  background: #f5f0f4;
  border-color: var(--o-brand-light);
  color: var(--o-brand);
}

.odoo-ui .btn-outline-danger {
  border-radius: 3px;
}

/* Form view sheet (account / detail) */
.o_form_view .o_form_sheet_bg {
  padding: 1rem 0 2rem;
}

.o_form_sheet {
  max-width: 920px !important;
  border-radius: 3px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
  border: 1px solid var(--o-border) !important;
}

.o_form_sheet.o_form_sheet--wide {
  max-width: none !important;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

/* —— Inline “?” field help (team roles, etc.) —— */
.field-help {
  position: relative;
  display: inline-flex;
  vertical-align: middle;
}

.field-help__btn {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--portal-muted);
  font-size: 0.95rem;
  line-height: 1;
}

.field-help__btn::-webkit-details-marker {
  display: none;
}

.field-help__btn::marker {
  content: '';
}

.field-help__btn:hover,
.field-help__btn:focus-visible,
.field-help[open] > .field-help__btn {
  color: var(--staff-accent-hover);
  outline: none;
}

.field-help__panel {
  position: absolute;
  z-index: 30;
  top: calc(100% + 0.4rem);
  left: 0;
  width: min(20.5rem, calc(100vw - 2.5rem));
  padding: 0.75rem 0.85rem;
  border-radius: 0.65rem;
  border: 1px solid var(--portal-line);
  background: var(--portal-panel);
  box-shadow: 0 10px 28px rgba(13, 27, 42, 0.12);
  color: var(--portal-ink);
}

.field-help__lead {
  margin: 0 0 0.55rem;
  font-size: 0.8rem;
  color: var(--portal-muted);
  line-height: 1.4;
}

.field-help__list {
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.field-help__list dt {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--portal-ink);
}

.field-help__list dd {
  margin: 0.1rem 0 0;
  font-size: 0.78rem;
  color: var(--portal-muted);
  line-height: 1.4;
}

.o_form_sheet_title {
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.02em;
}

.o_group_title {
  font-size: 12px;
  font-weight: 600;
  color: var(--o-brand);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.65rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--o-border-light);
}

.o_field {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0.75rem;
  padding: 0.35rem 0;
  font-size: 13px;
}

.o_field_label {
  color: var(--o-text-muted);
  font-weight: 500;
}

/* Space between list+form rows */
.odoo-ui .row.g-3 {
  --bs-gutter-y: 1rem;
}

.odoo-ui .alert {
  margin-bottom: 1rem;
}

/* —— Login (Odoo-style centered card) —— */
body.portal-login {
  min-height: 100vh !important;
  background: #f7f0d8 !important;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  margin: 0;
  font-family: var(--font-body) !important;
}

.o_login_brand {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  margin-bottom: 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.o_login_logo {
  width: 5.5rem;
  height: 5.5rem;
  object-fit: contain;
  border-radius: 0.85rem;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.o_login_name {
  font-family: var(--font-display, inherit);
  font-weight: 800;
  font-size: 1.65rem;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.1;
}

.o_login_logo--full {
  width: min(86vw, 15rem);
  height: auto;
  aspect-ratio: auto;
  border-radius: 0.85rem;
  padding: 0.55rem 0.65rem;
  background: #fff;
}

.o_login_logo--lockup {
  width: min(90vw, 20rem);
  height: auto;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
}

.o_login_slogan {
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(201, 162, 39, 0.95);
  max-width: 22rem;
  line-height: 1.4;
  text-align: center;
}

.portal-login-shell {
  width: 100%;
  max-width: 420px;
  display: block;
}

.portal-login-brand {
  display: none !important;
}

.portal-login-panel {
  width: 100%;
}

.portal-login-card {
  background: #fff;
  border-radius: 3px;
  padding: 2rem 1.75rem 1.75rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.portal-login-card h1 {
  font-size: 1.35rem;
  font-weight: 500;
  margin: 0 0 0.25rem;
  text-align: center;
  font-family: var(--font-body);
  color: var(--o-text);
}

.portal-login-card .lede {
  text-align: center;
  color: var(--o-text-muted);
  font-size: 13px;
  margin-bottom: 1.25rem;
}

.portal-login-card .btn-portal {
  width: 100%;
  padding: 0.5rem 1rem;
}

.portal-login-card a {
  color: var(--o-brand);
}

.portal-login-card--otp {
  padding-top: 1.65rem;
  animation: login-otp-rise 420ms ease-out both;
}

.login-otp {
  text-align: center;
}

.login-otp__badge {
  width: 3.1rem;
  height: 3.1rem;
  margin: 0 auto 0.85rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(160deg, rgba(245, 176, 0, 0.22), rgba(245, 176, 0, 0.06));
  color: #a87800;
  font-size: 1.35rem;
  animation: login-otp-pulse 2.4s ease-in-out infinite;
}

.login-otp__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a87800;
}

.login-otp__title,
.portal-login-card--otp h1 {
  margin-bottom: 0.45rem;
  font-family: var(--font-display, "Poppins", sans-serif);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.login-otp__lede {
  margin: 0 auto 1.15rem;
  max-width: 18.5rem;
  line-height: 1.45;
}

.login-otp__email {
  display: inline-block;
  margin-top: 0.2rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(13, 27, 42, 0.06);
  color: #0d1b2a;
  font-weight: 600;
  font-size: 0.82rem;
}

.login-otp__form {
  margin-top: 0.25rem;
}

.login-otp__digits {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.4rem;
  margin: 0 auto 0.75rem;
  max-width: 19rem;
}

.login-otp__digit {
  width: 100%;
  aspect-ratio: 0.85;
  min-height: 2.75rem;
  border: 1px solid rgba(13, 27, 42, 0.14);
  border-radius: 0.55rem;
  background: #fff;
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0d1b2a;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.login-otp__digit:focus {
  outline: 0;
  border-color: #f5b000;
  box-shadow: 0 0 0 3px rgba(245, 176, 0, 0.22);
  transform: translateY(-1px);
}

.login-otp__hint {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  color: var(--o-text-muted, #637083);
}

.login-otp__submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.login-otp__back {
  margin: 1.1rem 0 0;
  font-size: 0.84rem;
}

.login-otp__back a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  font-weight: 600;
}

.login-otp__back a:hover {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

@keyframes login-otp-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes login-otp-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
}

@media (max-width: 420px) {
  .login-otp__digits {
    gap: 0.3rem;
  }

  .login-otp__digit {
    font-size: 1.1rem;
    min-height: 2.45rem;
  }
}

.portal-login-demo {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--o-border-light);
  font-size: 12px;
  color: var(--o-text-muted);
  text-align: center;
  line-height: 1.5;
}

.portal-login-demo code {
  font-size: 11px;
  color: var(--o-brand);
}

body.portal-login::before {
  content: none !important;
  display: none !important;
}

/* Force Odoo shell over any leftover app.css */
body.portal-body.odoo-ui {
  background: var(--o-view-bg) !important;
  font-family: var(--font-body) !important;
  color: var(--o-text) !important;
}

/* Password toggle (ui.js) */
.password-toggle-wrap {
  position: relative;
}

.password-toggle-wrap .form-control {
  padding-right: 2.5rem;
}

.password-toggle-btn {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--o-text-muted);
  padding: 0.25rem 0.4rem;
}

.portal-user-menu {
  position: relative;
}

.portal-user-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  max-width: min(15rem, 38vw);
  padding: 0.3rem 0.55rem 0.3rem 0.3rem;
  border: 1px solid var(--staff-line);
  border-radius: 999px;
  background: #fff;
  color: var(--staff-ink);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
  box-shadow: 0 1px 2px rgba(13, 27, 42, 0.04);
}

.portal-user-trigger::after {
  margin-left: 0.1rem;
  vertical-align: middle;
}

.portal-user-trigger:hover,
.portal-user-trigger:focus,
.portal-user-trigger.show,
.portal-user-trigger:active {
  background: #fff !important;
  border-color: rgba(13, 27, 42, 0.18) !important;
  color: var(--staff-ink) !important;
  box-shadow: 0 2px 8px rgba(13, 27, 42, 0.08);
}

.portal-user-trigger__avatar {
  flex: 0 0 auto;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background: var(--staff-ink);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.portal-user-trigger__text {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.portal-user-trigger__name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.portal-user-trigger__company {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--staff-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.portal-user-dropdown {
  width: min(18rem, calc(100vw - 1.5rem));
  padding: 0;
  border: 1px solid var(--staff-line);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(13, 27, 42, 0.12) !important;
  margin-top: 0.45rem !important;
}

.portal-user-dropdown__head {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem 1rem 0.85rem;
  background: linear-gradient(180deg, rgba(245, 176, 0, 0.08) 0%, rgba(255, 255, 255, 0) 100%);
  border-bottom: 1px solid var(--staff-line);
}

.portal-user-dropdown__avatar {
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--staff-ink);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.portal-user-dropdown__name {
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.25;
  color: var(--staff-ink);
  word-break: break-word;
}

.portal-user-dropdown__email {
  font-size: 0.75rem;
  color: var(--staff-muted);
  margin-top: 0.15rem;
  word-break: break-all;
}

.portal-user-dropdown__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.45rem;
}

.portal-user-dropdown__tag {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(13, 27, 42, 0.06);
  color: var(--staff-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.portal-user-dropdown__tag--company {
  background: rgba(245, 176, 0, 0.14);
  color: #7a5a00;
}

.portal-user-dropdown__body,
.portal-user-dropdown__foot {
  padding: 0.35rem 0;
}

.portal-user-dropdown__foot {
  border-top: 1px solid var(--staff-line);
  padding-top: 0.35rem;
  margin-top: 0;
}

.portal-user-dropdown .portal-user-dropdown__item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.62rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0;
}

.portal-user-dropdown .portal-user-dropdown__item i {
  flex: 0 0 auto;
  width: 1.1rem;
  text-align: center;
  color: var(--staff-muted);
  font-size: 1rem;
}

.portal-user-dropdown .portal-user-dropdown__item span {
  min-width: 0;
}

.portal-user-dropdown .portal-user-dropdown__item:hover,
.portal-user-dropdown .portal-user-dropdown__item:focus {
  background: rgba(13, 27, 42, 0.04);
  color: var(--staff-ink);
}

.portal-user-dropdown__badge {
  margin-left: auto;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--staff-accent);
  color: #0d1b2a;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.15rem;
  text-align: center;
}

.portal-user-dropdown__item--danger {
  color: #b42318 !important;
}

.portal-user-dropdown__item--danger i {
  color: #b42318 !important;
}

.portal-user-dropdown__item--danger:hover,
.portal-user-dropdown__item--danger:focus {
  background: rgba(220, 53, 69, 0.08) !important;
  color: #922018 !important;
}

@media (max-width: 576px) {
  .portal-user-trigger {
    max-width: none;
    padding: 0.3rem;
    border-radius: 0.45rem;
  }

  .portal-user-trigger__text {
    display: none;
  }

  .portal-user-trigger::after {
    display: none;
  }
}

/* Legacy class aliases so older markup still fits */
.portal-shell,
.portal-main,
.portal-sidebar,
.portal-topbar {
  /* layout replaced by o_main_navbar / o_action_manager */
}

@media (max-width: 768px) {
  .o_menu_sections {
    display: none;
  }

  .o_menu_brand {
    font-size: 13px;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .o_content,
  .portal-content {
    padding: 0.75rem;
  }
}

/* —— Finance pages (Reports / Accounting) —— */
.finance-page .finance-lede {
  margin: 0.35rem 0 0;
  color: var(--staff-muted);
  font-size: 0.92rem;
  max-width: 42rem;
}

.accounting-subnav {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-left: -0.25rem;
  margin-right: -0.25rem;
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

.accounting-subnav > .d-flex {
  flex-wrap: nowrap !important;
  width: max-content;
  min-width: 100%;
  padding-bottom: 0.35rem;
}

.accounting-subnav .btn {
  white-space: nowrap;
  flex: 0 0 auto;
}

.finance-toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Create / save / cancel rows sit on the right of the form */
.portal-content form > .d-flex.gap-2:not(.justify-content-between),
.portal-content form .d-flex.gap-2.mt-3 {
  justify-content: flex-end;
}

.portal-content form > .btn:not(.w-100):not(.btn-sm),
.portal-content form > button.btn:not(.w-100):not(.btn-sm) {
  display: block;
  margin-left: auto;
}

.portal-content form > .mt-3:has(> .btn) {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.portal-filter-note {
  margin: 0 0 0.75rem;
  color: var(--staff-muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.portal-filter-form {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
}

.portal-filter-fields {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 0.55rem 0.7rem;
  align-items: flex-end;
  min-width: 0;
}

.portal-filter-field {
  flex: 0 1 10.5rem;
  min-width: 8rem;
}

.portal-filter-field--wide {
  flex: 0 1 14rem;
  min-width: 11rem;
}

.portal-filter-field--date {
  flex: 0 1 9.5rem;
  min-width: 8.25rem;
}

.portal-filter-field--search {
  flex: 1 1 14rem;
  min-width: 12rem;
  max-width: 22rem;
}

.portal-filter-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 0.45rem;
  margin-left: auto;
  align-items: center;
}

.portal-filter-actions .btn {
  min-width: 4.5rem;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .portal-filter-form {
    flex-direction: column;
    align-items: stretch;
  }

  .portal-filter-fields {
    width: 100%;
  }

  .portal-filter-field,
  .portal-filter-field--wide,
  .portal-filter-field--date,
  .portal-filter-field--search {
    flex: 1 1 100%;
    max-width: none;
    min-width: 0;
  }

  .portal-filter-actions {
    margin-left: 0;
    width: 100%;
  }

  .portal-filter-actions .btn {
    flex: 1 1 auto;
  }
}

.finance-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border: 1px solid var(--staff-line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--staff-ink);
  background: #fff;
}

.finance-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: rgba(16, 35, 58, 0.08);
  color: var(--staff-muted);
}

.finance-status--ok {
  background: rgba(15, 110, 86, 0.12);
  color: var(--staff-accent-hover);
}

.finance-status--warn {
  background: rgba(180, 110, 20, 0.14);
  color: #8a5a10;
}

.finance-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 768px) {
  .finance-metric-grid {
    grid-template-columns: 1fr;
  }
}

.finance-metric__label {
  display: block;
  font-size: 12px;
  color: var(--staff-muted);
  margin-bottom: 0.25rem;
}

.finance-metric__value {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--staff-ink);
}

.finance-aging {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.finance-aging__meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 12px;
  margin-bottom: 0.3rem;
}

.finance-aging__meta span {
  color: var(--staff-muted);
}

.finance-aging__meta strong {
  font-variant-numeric: tabular-nums;
  color: var(--staff-ink);
}

.finance-aging__track {
  height: 7px;
  border-radius: 999px;
  background: rgba(16, 35, 58, 0.08);
  overflow: hidden;
}

.finance-aging__track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--staff-accent), #1a9b78);
  min-width: 0;
}

.finance-gateway-note p {
  margin: 0.65rem 0;
  font-size: 0.9rem;
  color: var(--staff-muted);
}

.finance-gateway-note a,
.finance-link {
  color: var(--staff-accent-hover);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
}

.finance-gateway-note a:hover,
.finance-link:hover {
  color: #8a5a00;
  text-decoration: underline;
}

.finance-pill {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 11px;
  text-transform: capitalize;
  background: rgba(15, 110, 86, 0.1);
  color: var(--staff-accent-hover);
}

.finance-kv {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
}

.finance-kv th,
.finance-kv td {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--staff-line);
  font-size: 0.9rem;
  vertical-align: top;
}

.finance-kv th {
  width: 38%;
  font-weight: 500;
  color: var(--staff-muted);
  padding-right: 1rem;
}

.finance-kv tr:last-child th,
.finance-kv tr:last-child td {
  border-bottom: 0;
}

.finance-footnote {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--staff-muted);
}

.finance-steps {
  list-style: none;
  margin: 0 0 1.1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.finance-steps li {
  position: relative;
  padding-left: 1.85rem;
}

.finance-steps li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.2rem;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  border: 2px solid var(--staff-line);
  background: #fff;
}

.finance-steps li.is-done::before {
  border-color: var(--staff-accent);
  background: var(--staff-accent);
  box-shadow: inset 0 0 0 2px #fff;
}

.finance-steps strong {
  display: block;
  font-size: 0.92rem;
  color: var(--staff-ink);
}

.finance-steps span {
  display: block;
  font-size: 0.8rem;
  color: var(--staff-muted);
  margin-top: 0.1rem;
}

.finance-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.finance-sync-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
}

@media (max-width: 992px) {
  .finance-sync-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .finance-sync-grid {
    grid-template-columns: 1fr;
  }
}

.finance-sync-item {
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--staff-line);
  border-radius: 4px;
  background: linear-gradient(180deg, #fff 0%, #f7faf8 100%);
}

.finance-sync-item strong {
  display: block;
  font-size: 0.88rem;
  color: var(--staff-ink);
  margin-bottom: 0.2rem;
}

.finance-sync-item span {
  font-size: 0.78rem;
  color: var(--staff-muted);
}

.finance-page .o_list_table tfoot td {
  background: #f7faf8;
  border-top: 1px solid var(--staff-line);
}

.finance-page .font-monospace {
  font-variant-numeric: tabular-nums;
}


/* —— Customer detail —— */
.customer-detail {
  display: grid;
  gap: 1rem;
}

.customer-detail__toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.customer-detail__toolbar-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.customer-detail__back {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--staff-accent);
  text-decoration: none;
}

.customer-detail__back:hover {
  color: var(--staff-accent-hover);
}

.customer-detail__meta-inline {
  color: var(--staff-muted);
  font-size: 0.86rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-detail__status {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--staff-line);
  background: #fff;
  color: var(--staff-muted);
}

.customer-detail__status--active {
  color: #0f6e56;
  background: rgba(15, 110, 86, 0.1);
  border-color: rgba(15, 110, 86, 0.22);
}

.customer-detail__status--inactive {
  color: #8a6d1d;
  background: rgba(201, 162, 39, 0.14);
  border-color: rgba(201, 162, 39, 0.28);
}

.customer-detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.customer-detail__banner {
  margin: 0;
  font-size: 0.9rem;
  color: var(--staff-ink);
}

.customer-detail__kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: 0.75rem;
}

.customer-detail__kpi {
  background: #fff;
  border: 1px solid var(--staff-line);
  border-radius: 0.55rem;
  padding: 0.85rem 1rem;
}

.customer-detail__kpi-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--staff-muted);
  margin-bottom: 0.3rem;
}

.customer-detail__kpi-value {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--staff-ink);
  font-variant-numeric: tabular-nums;
}

.customer-detail__card .card-header {
  font-weight: 650;
}

.customer-detail__form {
  display: grid;
  gap: 0.85rem;
}

.customer-detail__field {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.customer-detail__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.customer-detail__form .form-control,
.customer-detail__form .form-select {
  width: 100%;
  min-height: 2.15rem;
}

.customer-detail__address {
  min-height: 2.75rem;
  max-height: 6rem;
  resize: vertical;
}

.customer-detail__ledger-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.customer-detail__ledger {
  width: 100%;
  margin: 0;
  table-layout: auto;
}

.customer-detail__ledger thead th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--staff-muted);
  background: #f5f6f8;
  border-bottom-color: var(--staff-line);
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 1;
}

.customer-detail__ledger td,
.customer-detail__ledger th {
  padding: 0.55rem 0.7rem;
  vertical-align: middle;
}

.customer-detail__ledger .tabular {
  font-variant-numeric: tabular-nums;
}

.customer-detail__ref {
  white-space: nowrap;
}

.customer-detail__ref .o_link,
.customer-detail__ref .font-monospace {
  white-space: nowrap;
}

.customer-detail__posted {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.05rem 0.35rem;
  border: 1px solid var(--staff-line);
  border-radius: 0.25rem;
  background: #f8f9fb;
  color: var(--staff-muted);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  vertical-align: middle;
}

.customer-detail__bal {
  position: sticky;
  right: 0;
  background: #fff;
  box-shadow: -6px 0 8px -8px rgba(15, 23, 42, 0.28);
}

.customer-detail__ledger thead .customer-detail__bal {
  background: #f5f6f8;
  z-index: 2;
}

.customer-detail__ledger tbody tr:last-child td {
  border-bottom: 0;
}

.customer-detail__ledger-foot {
  padding: 0.45rem 0.75rem;
  border-top: 1px solid var(--staff-line);
  color: var(--staff-muted);
  font-size: 0.75rem;
}

@media (max-width: 720px) {
  .customer-detail__grid {
    grid-template-columns: 1fr;
  }

  .customer-detail__meta-inline {
    white-space: normal;
  }
}

/* —— Account security / email 2FA —— */
.security-panel {
  max-width: 36rem;
  margin: 0;
  padding: 1.1rem 1.2rem 1.2rem;
  border: 1px solid var(--portal-line);
  border-radius: 0.85rem;
  background: var(--portal-panel);
  box-shadow: 0 1px 2px rgba(13, 27, 42, 0.04);
}

.security-panel--on {
  border-color: rgba(40, 167, 69, 0.35);
}

.security-panel__head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.security-panel__icon {
  flex: 0 0 auto;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 176, 0, 0.16);
  color: #8a6400;
  font-size: 1.05rem;
}

.security-panel--on .security-panel__icon {
  background: rgba(40, 167, 69, 0.14);
  color: #1e7e34;
}

.security-panel__intro {
  flex: 1 1 auto;
  min-width: 0;
}

.security-panel__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
  margin-bottom: 0.3rem;
}

.security-panel__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--portal-ink);
  line-height: 1.25;
}

.security-panel__lede,
.security-panel__hint {
  margin: 0;
  color: var(--portal-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.security-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: 1px solid transparent;
  line-height: 1.2;
}

.security-status__dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: currentColor;
}

.security-status--off {
  color: #637083;
  background: #f0f2f5;
  border-color: rgba(13, 27, 42, 0.08);
}

.security-status--on {
  color: #1e7e34;
  background: rgba(40, 167, 69, 0.12);
  border-color: rgba(40, 167, 69, 0.28);
}

.security-panel__body {
  margin-top: 0.95rem;
  padding-top: 0.95rem;
  border-top: 1px solid var(--portal-line);
}

.security-panel__body--idle {
  display: grid;
  gap: 0.85rem;
}

.security-benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.security-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--portal-ink);
  font-size: 0.84rem;
  line-height: 1.4;
}

.security-benefits .bi {
  color: #1e7e34;
  margin-top: 0.1rem;
}

.security-callout {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin: 0 0 0.9rem;
  padding: 0.75rem 0.85rem;
  border-radius: 0.6rem;
  background: #fff8e8;
  border: 1px solid rgba(245, 176, 0, 0.35);
  color: var(--portal-ink);
}

.security-callout--warn {
  background: #fff5f5;
  border-color: rgba(220, 53, 69, 0.22);
}

.security-callout .bi {
  flex: 0 0 auto;
  font-size: 1.05rem;
  color: #a07800;
  margin-top: 0.05rem;
}

.security-callout--warn .bi {
  color: #c82333;
}

.security-callout p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
}

.security-otp-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.65rem 0.75rem;
}

.security-otp-form--stack {
  flex-direction: column;
  align-items: stretch;
  max-width: 20rem;
}

.security-otp-form--stack .btn {
  align-self: flex-start;
}

.security-otp-form__field {
  min-width: 0;
}

.security-otp-form__field--grow {
  flex: 1 1 12rem;
  max-width: 18rem;
}

.security-otp-form .form-label {
  margin-bottom: 0.3rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--portal-muted);
}

.security-otp-input {
  width: 10rem;
  max-width: 100%;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: 0.22em;
  text-align: center;
  padding: 0.55rem 0.65rem;
}

.security-panel__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 0.75rem;
}

.security-link-btn {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--portal-ink);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.security-link-btn:hover,
.security-link-btn:focus-visible {
  color: #a07800;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.security-link-btn--muted {
  color: var(--portal-muted);
  font-weight: 500;
}

.security-link-btn--muted:hover,
.security-link-btn--muted:focus-visible {
  color: var(--portal-ink);
}

.search-select {
  position: relative;
}

.search-select__native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.search-select__list {
  position: absolute;
  z-index: 30;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  max-height: 260px;
  margin: 0;
  padding: 0.25rem 0;
  list-style: none;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--o-border);
  border-radius: 3px;
  box-shadow: 0 8px 24px rgba(16, 35, 58, 0.12);
}

.search-select__option,
.search-select__empty {
  padding: 0.4rem 0.7rem;
  font-size: 13px;
  color: var(--staff-ink);
  cursor: pointer;
}

.search-select__empty {
  color: var(--staff-muted);
  cursor: default;
}

.search-select__option.is-active,
.search-select__option:hover {
  background: rgba(26, 143, 110, 0.12);
}

.search-select__option.is-selected {
  font-weight: 600;
}

@media (max-width: 575.98px) {
  .security-panel {
    max-width: none;
  }

  .security-otp-form {
    flex-direction: column;
    align-items: stretch;
  }

  .security-otp-form__field--grow {
    max-width: none;
  }

  .security-otp-input {
    width: 100%;
  }
}

@media print {
  .no-print,
  .sidebar,
  .staff-sidebar,
  .portal-sidebar,
  .navbar,
  .o_main_navbar,
  .finance-toolbar,
  .accounting-nav,
  nav,
  aside,
  .btn,
  form {
    display: none !important;
  }

  .finance-page,
  .o_board,
  .o_graph_card,
  .card {
    box-shadow: none !important;
    border: none !important;
  }

  body {
    background: #fff !important;
  }
}

