/* Shared brand layer and presentation of the existing NexLink components. */
:root, [data-bs-theme="light"] {
  --urviq-input-border: #000000;
  --bs-primary: #2e7d42;
  --bs-primary-rgb: 46, 125, 66;
  --bs-primary-text-emphasis: #1d4e2a;
  --bs-primary-bg-subtle: #f1f7f2;
  --bs-primary-border-subtle: #c7dfcd;
  --bs-info: #87aa37;
  --bs-info-rgb: 135, 170, 55;
  --bs-info-bg-subtle: #f4f7ec;
  --bs-info-border-subtle: #dce6be;
  --bs-link-color: #2e7d42;
  --bs-link-color-rgb: 46, 125, 66;
  --bs-link-hover-color: #246338;
  --bs-link-hover-color-rgb: 36, 99, 56;
  --custom-body-bg: #ffffff;
}
html[data-bs-theme="dark"] {
  --urviq-input-border: #27cc02;
  --custom-body-bg: var(--bs-secondary-bg);
  --bs-primary: #76b487;
  --bs-primary-rgb: 118, 180, 135;
  --bs-primary-bg-subtle: #15251a;
  --bs-primary-border-subtle: #335e3e;
  --bs-info: #b3ca70;
  --bs-info-rgb: 179, 202, 112;
  --bs-info-bg-subtle: #232b16;
}
html[data-bs-theme="light"] { --bs-body-bg: #ffffff; }
html[data-bs-theme="light"] body { background: #fff url('/agro/ice-grain.svg') repeat fixed; }
html[data-bs-theme="light"] .page-layout { background-color: transparent; }
html[data-bs-theme="light"] .card { --bs-card-bg: rgb(255 255 255 / 84%); backdrop-filter: blur(12px); }
.app-toggler :is(svg, i) { transform: scaleX(-1); }
.urviq-header-theme { flex-shrink: 0; }
.urviq-directory-filters { width: 100%; max-width: 480px; min-width: 0; }
.urviq-directory-filters::after { content: none; display: none; }
.urviq-directory-filters > .dropdown { flex: 0 0 8rem; width: 8rem; }
.urviq-directory-filters > .dropdown > .dropdown-toggle { width: 100%; }
.urviq-directory-filters > .dropdown > .dropdown-menu { width: 100%; min-width: 100%; }
#dt_LabourList_Search { flex: 1 1 0; min-width: 0; }
#dt_LabourList_Search .dt-search, #dt_LabourList_Search input { width: 100%; min-width: 0; margin: 0; }
[data-template-inert] { cursor: default !important; }
.navbar-brand-text { font-size: 18px; white-space: nowrap; letter-spacing: -.45px; }
.urviq-brand { display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; line-height: 0; }
.urviq-brand img { display: block; width: 100%; height: auto; object-fit: contain; }
.urviq-brand-logo { width: 138px; max-width: 100%; }
.app-side-brands .urviq-brand-logo { width: 69.6px; }
.app-header-inner { align-items: center; }
.urviq-header-brand { display: inline-flex; flex: 0 0 auto; align-items: center; align-self: center; margin-inline-end: 20px; }
.urviq-header-brand .urviq-brand-logo { width: 80px; }
.app-header .app-toggler { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; align-self: center; margin-block: 0; margin-inline-end: 20px; }
.urviq-brand-symbol { width: 20.4px; height: 30px; }
.urviq-brand-symbol img { max-height: 30px; }
.urviq-brand .urviq-logo-dark { display: none; }
html[data-bs-theme="dark"] .urviq-brand .urviq-logo-light { display: none; }
html[data-bs-theme="dark"] .urviq-brand .urviq-logo-dark { display: block; }
:is(.auth-wrapper, .auth-cover-wrapper, .auth-frame-wrapper) .urviq-brand-logo { width: 210px; }
.btn-primary { --bs-btn-bg: #2e7d42; --bs-btn-border-color: #2e7d42; --bs-btn-hover-bg: #246338; --bs-btn-hover-border-color: #246338; --bs-btn-active-bg: #20582f; --bs-btn-active-border-color: #20582f; --bs-btn-disabled-bg: #2e7d42; --bs-btn-disabled-border-color: #2e7d42; --bs-btn-focus-shadow-rgb: 46, 125, 66; }
/* Apply the same field outline to native and existing enhanced controls. */
:is(.form-control, .form-select, textarea, select, input:not([type="hidden"], [type="button"], [type="submit"], [type="reset"], [type="range"]), .bootstrap-select > .dropdown-toggle, .select2-container .select2-selection) {
  border: 1.5px solid var(--urviq-input-border) !important;
  box-shadow: none !important;
  box-sizing: border-box;
}
:is(.form-control, .form-select, textarea, select, input:not([type="hidden"], [type="button"], [type="submit"], [type="reset"], [type="range"])):focus,
.bootstrap-select:focus-within > .dropdown-toggle,
.select2-container--focus .select2-selection {
  border: 2px solid var(--urviq-input-border) !important;
  box-shadow: none !important;
  outline: none !important;
}
.form-check-input:checked { background-color: var(--bs-primary); border-color: var(--bs-primary); }
.dropdown-menu, .dropdown-toggle:not(.btn-icon) {
  border: 1.5px solid var(--urviq-input-border) !important;
  box-shadow: none !important;
}
.dropdown-menu:focus-within, .dropdown-toggle:not(.btn-icon):is(:focus, .show) {
  border-width: 2px !important;
  box-shadow: none !important;
  outline: none !important;
}
/* Keep dropdown labels left aligned with a separate, right aligned arrow. */
.btn.dropdown-toggle:not(.btn-icon):not(.dropdown-toggle-split) {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  column-gap: 14px;
  text-align: start;
}
.btn.dropdown-toggle:not(.btn-icon):not(.dropdown-toggle-split)::after {
  flex-shrink: 0;
  margin-inline-start: auto;
  margin-inline-end: 0;
}
.bootstrap-select > .dropdown-toggle .filter-option { min-width: 0; }
.dropdown.bootstrap-select { display: block; padding: 0; border: 0 !important; background: transparent; box-shadow: none !important; }
.dropdown.bootstrap-select > select { pointer-events: none; }
.dropdown.bootstrap-select > .urviq-select-toggle { min-height: 40px; padding: 8px 14px; color: var(--bs-body-color); background: var(--bs-body-bg); border-radius: var(--bs-border-radius); font: inherit; }
.bootstrap-select .bs-searchbox input { color: var(--bs-body-color); background: var(--bs-body-bg); }
.bs-container { z-index: 1080; }
.urviq-table-action-menu { z-index: 1085; max-height: min(320px, calc(100dvh - 24px)); overflow-y: auto; }
.bs-container.dropdown.bootstrap-select { width: var(--urviq-select-width, auto) !important; }
.bs-container > .dropdown-menu { min-width: 100% !important; max-width: 100%; }
.bootstrap-select .dropdown-menu.inner, .bs-container .dropdown-menu.inner { border: 0 !important; box-shadow: none !important; }
/* Forms and tables use their former card's full width, with no outer box. */
:where(.app-wrapper, .auth-wrapper, .auth-cover-wrapper, .auth-frame-wrapper) .card:has(form, table, .form-control, .form-select, textarea) {
  --bs-card-spacer-x: 0;
  --bs-card-cap-padding-x: 0;
  --bs-card-border-width: 0;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}
:where(.app-wrapper, .auth-wrapper, .auth-cover-wrapper, .auth-frame-wrapper) .card:has(form, table, .form-control, .form-select, textarea) > :is(.card-header, .card-body, .card-footer),
:where(.auth-wrapper, .auth-cover-wrapper, .auth-frame-wrapper) .card.card-body:has(form) {
  padding-inline: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
}
.app-wrapper .card:has(table) :is(.table-responsive, .dt-container) {
  width: 100%;
  max-width: 100%;
}
.urviq-initial-avatar { background: #000; border-radius: 50%; }
.urviq-avatar-content { display: inline-flex; width: 100%; height: 100%; align-items: center; justify-content: center; border-radius: 50%; background: #000; }
.urviq-avatar-letter { color: #27cc02; background: linear-gradient(135deg, #27cc02 15%, #91c725 45%, #ff982b 80%); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-size: 1.05rem; font-weight: 700; line-height: 1; }
.avatar-xl > .urviq-avatar-content .urviq-avatar-letter { font-size: 2rem; }
.avatar-xxs > .urviq-avatar-content .urviq-avatar-letter { font-size: .75rem; }
.agro-preview-status { position: fixed; bottom: max(14px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); z-index: 1099; padding: 10px 18px; border: 1px solid var(--bs-border-color); border-radius: 12px; background: var(--bs-body-bg); color: var(--bs-heading-color); box-shadow: 0 8px 32px rgb(0 0 0 / 12%); max-width: calc(100vw - 32px); text-align: center; font-size: 13px; }
.agro-preview-status[hidden] { display: none; }
.agro-offline-badge { color: #b56b09 !important; }
@media (max-width: 575.98px) {
  .urviq-header-brand { margin-inline-end: 8px; }
  .urviq-header-brand .urviq-brand-logo { width: clamp(46.4px, calc(80vw - 233.6px), 65.6px); }
  .app-header-inner { padding-right: 8px; }
  /* The reference navigation drawer is retained; keep charts within their cards. */
  .app-wrapper { min-width: 0; }
  .card { min-width: 0; }
  .apexcharts-canvas { max-width: 100%; }
  .footer-wrapper { padding-bottom: max(16px, env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media (max-width: 359.98px) {
  .app-header-inner { padding-right: 4px; }
  .app-header .app-toggler { margin-inline-start: 6px; margin-inline-end: 12px; }
  .urviq-header-brand .urviq-brand-logo { width: 38.4px; }
  .app-header .theme-btn { width: 62px; padding-inline: 6px; }
}
