/* shell/odoo.css — the stand-in Odoo web client around the extension.
   Only what the demo screens need: navbar, home screen, list, form,
   dropdowns and notifications, on top of Bootstrap 5 (as Odoo is). */

:root {
  --o-bg: #f7f7f9;
  --o-surface: #ffffff;
  --o-line: #dee2e6;
  --o-line-soft: #eceef1;
  --o-ink: #1f2328;
  --o-ink-2: #4a5058;
  --o-muted: #7c838d;
  --o-brand: #6a4c86;
  --o-brand-ink: #ffffff;
  --o-link: #0f7a80;
  --o-hover: #f1f2f5;
  --NavBar-entry-backgroundColor--hover: #eceef2;
}

html,
body {
  height: 100%;
}
body.o_web_client {
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--o-bg);
  color: var(--o-ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  overflow: hidden;
}
a {
  color: var(--o-link);
}

/* ------------------------------------------------------------------ boot */
.o_demo_boot {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  background: var(--o-bg);
  color: var(--o-muted);
  transition: opacity 0.3s ease;
}
.o_demo_boot.is-done {
  opacity: 0;
  pointer-events: none;
}
.o_demo_boot_mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid var(--o-line);
  border-top-color: var(--o-brand);
  animation: o-spin 0.8s linear infinite;
}
@keyframes o-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------------------------------------------------------------- navbar */
.o_navbar {
  flex: none;
}
.o_main_navbar {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 46px;
  padding: 0 8px 0 4px;
  background: var(--o-surface);
  border-bottom: 1px solid var(--o-line);
}
.o_main_navbar .o_menu_toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 46px;
  color: var(--o-ink-2);
  font-size: 16px;
  text-decoration: none;
}
.o_main_navbar .o_menu_toggle:hover {
  background: var(--o-hover);
}
.o_main_navbar .o_menu_brand {
  padding: 0 12px 0 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--o-ink);
  text-decoration: none;
  white-space: nowrap;
}
.o_main_navbar .o_menu_sections {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
  height: 100%;
}
.o_main_navbar .o_nav_entry,
.o_main_navbar .o_menu_sections > .dropdown-item {
  display: flex;
  align-items: center;
  width: auto;
  height: 46px;
  padding: 0 11px;
  color: var(--o-ink-2);
  text-decoration: none;
  white-space: nowrap;
  background: transparent;
  border: 0;
  font-size: 13px;
}
.o_main_navbar .o_nav_entry:hover,
.o_main_navbar .o_menu_sections > .dropdown-item:hover {
  background: var(--NavBar-entry-backgroundColor--hover);
  color: var(--o-ink);
}
.o_main_navbar .o_nav_entry.is-current {
  color: var(--o-ink);
  font-weight: 600;
}
.o_main_navbar .o_menu_systray {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding-left: 10px;
  white-space: nowrap;
}
.o_demo_badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #fff4d6;
  color: #8a5a00;
  font-size: 11.5px;
  font-weight: 600;
}
.o_demo_badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e0a100;
}
.o_user_menu {
  position: relative;
}
.o_user_menu > button {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: var(--o-ink-2);
  padding: 4px 6px;
  border-radius: 6px;
}
.o_user_menu > button:hover {
  background: var(--o-hover);
}
.o_avatar {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: inline-grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: #5b7aa8;
}
.o_company_name {
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--o-ink-2);
  font-size: 12px;
}
@media (max-width: 1100px) {
  .o_company_name,
  .o_user_menu .o_user_name {
    display: none;
  }
}

/* --------------------------------------------------------- action manager */
.o_action_manager {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.o_action_manager > .o_action {
  flex: 1 1 auto;
  min-height: 0;
}

/* ------------------------------------------------------------ home screen */
.o_home_menu {
  flex: 1 1 auto;
  overflow: auto;
  background:
    radial-gradient(1200px 500px at 15% -10%, #e8e2f1 0%, transparent 60%),
    radial-gradient(900px 500px at 100% 0%, #dcebec 0%, transparent 55%),
    var(--o-bg);
}
.o_home_menu .container {
  max-width: 860px;
  padding-top: 7vh;
  padding-bottom: 60px;
}
.o_home_menu input.o_search_hidden {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}
.o_home_menu .o_apps {
  margin-top: 28px;
}
.o_home_menu .o_app {
  color: var(--o-ink);
  text-decoration: none;
  transition: background 0.15s ease;
}
.o_home_menu .o_app:hover {
  background: rgba(255, 255, 255, 0.6);
}
.o_home_menu .o_app_icon {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 72px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 26px;
  box-shadow: 0 2px 6px rgba(20, 20, 40, 0.12);
}
.o_home_menu .o_caption {
  font-size: 13px;
  color: var(--o-ink-2);
}
.o_home_menu .o_demo_intro {
  margin: 0 auto;
  max-width: 560px;
  text-align: center;
  color: var(--o-ink-2);
}
.o_home_menu .o_demo_intro h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--o-ink);
  margin-bottom: 6px;
}

/* --------------------------------------------------------- control panel */
.o_view_controller {
  display: flex;
  flex-direction: column;
  background: var(--o-surface);
  overflow: hidden;
}
.o_control_panel {
  flex: none;
  padding: 10px 16px;
  border-bottom: 1px solid var(--o-line);
  background: var(--o-surface);
}
.o_control_panel_main {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.o_control_panel_breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.o_control_panel_main_buttons {
  display: flex;
  gap: 6px;
}
.o_breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 17px;
  min-width: 0;
}
.o_breadcrumb a {
  color: var(--o-link);
  text-decoration: none;
}
.o_breadcrumb .o_breadcrumb_sep {
  color: var(--o-muted);
}
.o_breadcrumb .o_last {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.o_cp_action_menus .btn {
  color: var(--o-ink-2);
  padding: 2px 8px;
}
.o_control_panel_actions {
  flex: 1 1 320px;
  display: flex;
  justify-content: center;
  min-width: 260px;
}
.o_searchview {
  display: flex;
  align-items: center;
  gap: 6px;
  width: min(520px, 100%);
  min-height: 32px;
  padding: 2px 8px;
  border: 1px solid var(--o-line);
  border-radius: 6px;
  background: #fff;
  color: var(--o-muted);
}
.o_searchview_facet {
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
  overflow: hidden;
  font-size: 12px;
  color: var(--o-ink);
  background: #f1eef6;
}
.o_searchview_facet .o_facet_icon {
  padding: 3px 6px;
  background: var(--o-brand);
  color: #fff;
}
.o_searchview_facet .o_facet_text {
  padding: 3px 8px;
}
.o_control_panel_navigation {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--o-ink-2);
  white-space: nowrap;
}
.btn-primary {
  --bs-btn-bg: var(--o-brand);
  --bs-btn-border-color: var(--o-brand);
  --bs-btn-hover-bg: #5a3f73;
  --bs-btn-hover-border-color: #5a3f73;
  --bs-btn-active-bg: #4f3766;
}
.btn {
  font-size: 13px;
}

/* -------------------------------------------------------------- list view */
.o_content {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}
.o_list_renderer {
  min-width: 100%;
}
.o_list_table {
  width: 100%;
  margin: 0;
  font-size: 13px;
  border-collapse: separate;
  border-spacing: 0;
}
.o_list_table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff;
  border-bottom: 1px solid var(--o-line);
  color: var(--o-ink-2);
  font-weight: 600;
  white-space: nowrap;
  padding: 8px 8px;
  vertical-align: middle;
  user-select: none;
}
.o_list_table.o_has_widths {
  table-layout: fixed;
}
.o_list_table thead th[data-name] {
  position: sticky;
  overflow: hidden;
  text-overflow: ellipsis;
}
.o_list_table thead th .o_resize {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 8px;
  cursor: col-resize;
  z-index: 3;
}
.o_list_table thead th .o_resize:hover {
  background: rgba(106, 76, 134, 0.18);
}
.o_list_table td,
.o_list_table tbody th {
  padding: 6px 8px;
  border-bottom: 1px solid var(--o-line-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  background: #fff;
}
.o_list_table tbody tr.o_data_row {
  cursor: pointer;
}
.o_list_table tbody tr.o_data_row:hover > td {
  background: #f6f4f9;
}
.o_list_table .o_list_record_selector {
  width: 40px;
  text-align: center;
}
.o_list_table .o_list_number {
  text-align: right;
}
.o_list_table tr.o_group_header > th,
.o_list_table tr.o_group_header > td {
  background: #f4f5f7;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 1px solid var(--o-line);
}
.o_list_table tr.o_group_header:hover > th,
.o_list_table tr.o_group_header:hover > td {
  background: #eceef2;
}
.o_list_table .o_group_caret {
  width: 18px;
  margin-left: calc(var(--o-list-group-level, 0) * 18px);
  color: var(--o-muted);
}
.o_list_table .o_list_actions_header {
  width: 32px;
  text-align: center;
}
.o_optional_columns_dropdown_toggle {
  border: 0;
  background: transparent;
  color: var(--o-muted);
  padding: 0 4px;
}
.o_field_wor_cp_inline_edit input {
  width: 100%;
  min-width: 34px;
  border: 1px solid transparent;
  border-bottom-color: var(--o-line);
  background: transparent;
  text-align: right;
  padding: 0 2px;
  font: inherit;
}
.o_field_wor_cp_inline_edit input:focus {
  outline: none;
  border-bottom-color: var(--o-brand);
}
.o_stage_badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  color: #fff;
}
.o_progress_text {
  color: var(--o-ink-2);
  font-variant-numeric: tabular-nums;
}
.o_list_empty_hint {
  padding: 60px 20px;
  text-align: center;
  color: var(--o-muted);
}

/* -------------------------------------------------------------- dropdowns */
.o-dropdown--menu {
  position: fixed;
  z-index: 1060;
  display: block;
  min-width: 200px;
  padding: 6px 0;
  background: #fff;
  border: 1px solid var(--o-line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(20, 20, 40, 0.16);
  font-size: 13px;
}
.o-dropdown--menu .o-dropdown-item,
.o-dropdown--menu .dropdown-item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 6px 16px;
  border: 0;
  background: transparent;
  color: var(--o-ink);
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
}
.o-dropdown--menu .o-dropdown-item:hover,
.o-dropdown--menu .dropdown-item:hover {
  background: var(--o-hover);
}
.o-dropdown--menu .dropdown-divider {
  margin: 6px 0;
  border-top: 1px solid var(--o-line-soft);
}
.o-dropdown--menu .form-check-input {
  margin-top: 0;
}

/* -------------------------------------------------------------- form view */
.o_form_view .o_content {
  background: var(--o-bg);
}
.o_form_layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 0;
  min-height: 100%;
}
@media (max-width: 1100px) {
  .o_form_layout {
    grid-template-columns: 1fr;
  }
}
.o_form_sheet_bg {
  padding: 16px;
}
.o_form_statusbar {
  display: flex;
  justify-content: flex-end;
  gap: 0;
  margin-bottom: 12px;
  overflow-x: auto;
}
.o_form_statusbar span {
  position: relative;
  padding: 5px 14px 5px 18px;
  font-size: 12px;
  color: var(--o-ink-2);
  background: #fff;
  border: 1px solid var(--o-line);
  margin-left: -1px;
  white-space: nowrap;
}
.o_form_statusbar span.is-current {
  background: #efe9f5;
  color: var(--o-brand);
  font-weight: 600;
  border-color: #cfc1dd;
  z-index: 1;
}
.o_form_sheet {
  max-width: 1100px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--o-line);
  border-radius: 6px;
  padding: 22px 26px;
}
.o_form_sheet h1 {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 4px;
}
.o_form_sheet .o_form_sub {
  color: var(--o-muted);
  margin-bottom: 18px;
}
.o_form_groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 40px;
  margin-bottom: 20px;
}
@media (max-width: 760px) {
  .o_form_groups {
    grid-template-columns: 1fr;
  }
}
.o_form_field {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 10px;
  padding: 4px 0;
  border-bottom: 1px solid var(--o-line-soft);
}
.o_form_field label {
  font-weight: 600;
  color: var(--o-ink-2);
}
.o_notebook_headers {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--o-line);
  margin-bottom: 10px;
}
.o_notebook_headers button {
  border: 1px solid transparent;
  border-bottom: 0;
  background: transparent;
  padding: 6px 14px;
  color: var(--o-ink-2);
  border-radius: 6px 6px 0 0;
}
.o_notebook_headers button.active {
  background: #fff;
  border-color: var(--o-line);
  color: var(--o-ink);
  font-weight: 600;
  margin-bottom: -1px;
}
.o_form_table {
  width: 100%;
  font-size: 12.5px;
}
.o_form_table th {
  color: var(--o-muted);
  font-weight: 600;
  padding: 6px 8px;
  border-bottom: 1px solid var(--o-line);
}
.o_form_table td {
  padding: 5px 8px;
  border-bottom: 1px solid var(--o-line-soft);
}
.o_chatter {
  border-left: 1px solid var(--o-line);
  background: #fff;
  padding: 16px;
  overflow: auto;
}
.o_chatter h2 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
}
.o_chatter_msg {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--o-line-soft);
}
.o_chatter_msg .o_avatar {
  width: 32px;
  height: 32px;
}
.o_chatter_msg .o_msg_head {
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.o_chatter_msg .o_msg_head b {
  font-size: 12.5px;
}
.o_chatter_msg .o_msg_head small {
  color: var(--o-muted);
}
.o_chatter_msg .o_msg_body {
  color: var(--o-ink-2);
  font-size: 12.5px;
}
.o_chatter_msg .o_msg_photos {
  display: flex;
  gap: 4px;
  margin-top: 4px;
}
.o_chatter_msg .o_msg_photos img {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--o-line);
}

/* ----------------------------------------------------------- notifications */
.o_notification_manager {
  position: fixed;
  top: 56px;
  right: 14px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.o_notification {
  min-width: 260px;
  max-width: 360px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--o-line);
  border-left: 4px solid var(--o-brand);
  box-shadow: 0 10px 30px rgba(20, 20, 40, 0.14);
  pointer-events: auto;
  animation: o-note-in 0.18s ease-out;
}
.o_notification b {
  display: block;
  margin-bottom: 2px;
}
@keyframes o-note-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

/* --------------------------------------------------------------- phones */
@media (max-width: 760px) {
  .o_main_navbar .o_menu_brand {
    display: none;
  }
  .o_main_navbar .o_menu_sections {
    overflow-x: auto;
    scrollbar-width: none;
  }
  .o_demo_badge {
    display: none;
  }
}
