/*
 * WAZ — a purpose-built Perfex client portal interface.
 * This stylesheet intentionally replaces the visual structure of the stock theme.
 */

:root {
  --waz-primary: #000;
  --waz-black: #080808;
  --waz-black-2: #121212;
  --waz-ink: #101012;
  --waz-muted: #73737b;
  --waz-subtle: #a0a0a8;
  --waz-canvas: #f4f4f5;
  --waz-surface: #fff;
  --waz-soft: #f8f8f9;
  --waz-line: #e6e6e8;
  --waz-line-strong: #d3d3d7;
  --waz-success: #16a34a;
  --waz-warning: #d97706;
  --waz-danger: #dc2626;
  --waz-info: #2563eb;
  --waz-sidebar-width: 282px;
  --waz-radius: 18px;
  --waz-radius-lg: 28px;
  --waz-shadow-sm: 0 1px 2px rgba(0, 0, 0, .03), 0 12px 30px rgba(0, 0, 0, .045);
  --waz-shadow: 0 24px 70px rgba(0, 0, 0, .1);
  --waz-ease: 220ms cubic-bezier(.2, .8, .2, 1);
}

body.waz-sidebar-collapsed {
  --waz-sidebar-width: 88px;
}

html {
  background: var(--waz-canvas);
  scroll-behavior: smooth;
}

body.waz-theme {
  min-height: 100vh;
  margin: 0;
  color: var(--waz-ink);
  background: var(--waz-canvas);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, Arial, sans-serif;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  letter-spacing: -.012em;
}

body.waz-theme > * {
  font-size: 14px;
}

body.waz-theme a {
  color: #111;
  transition: color var(--waz-ease), background var(--waz-ease), border-color var(--waz-ease), opacity var(--waz-ease), box-shadow var(--waz-ease), transform var(--waz-ease);
}

body.waz-theme a:hover,
body.waz-theme a:focus {
  color: #000;
  text-decoration: none;
}

body.waz-theme ::selection {
  color: #fff;
  background: #000;
}

/* App shell */

.waz-app-shell {
  flex: 1 0 auto;
  min-height: 100vh;
  transition: width var(--waz-ease), margin var(--waz-ease);
}

.waz-sidebar ~ .waz-app-shell {
  width: calc(100% - var(--waz-sidebar-width));
  margin-inline-start: var(--waz-sidebar-width);
}

.waz-content-stage {
  min-height: calc(100vh - 76px);
  padding: 34px 0 58px;
}

.waz-main-container,
.waz-alerts-container {
  width: min(100% - 52px, 1320px);
  max-width: 1320px;
}

.waz-main-container > .row {
  margin-inline: -10px;
}

.waz-main-container > .row > [class*="col-"] {
  padding-inline: 10px;
}

.waz-alerts-container .row {
  margin: 0;
}

.waz-alerts-container .row > div {
  padding: 0;
}

/* Desktop sidebar */

.waz-sidebar {
  position: fixed;
  z-index: 1045;
  inset-block: 0;
  inset-inline-start: 0;
  display: flex;
  width: var(--waz-sidebar-width);
  overflow: visible;
  color: #fff;
  background:
    radial-gradient(circle at 0 0, rgba(255, 255, 255, .09), transparent 21rem),
    linear-gradient(180deg, #0a0a0a 0%, #050505 100%);
  box-shadow: 18px 0 55px rgba(0, 0, 0, .08);
  transition: width var(--waz-ease);
  flex-direction: column;
}

[dir="rtl"] .waz-sidebar {
  box-shadow: -18px 0 55px rgba(0, 0, 0, .08);
}

.waz-sidebar::after {
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  width: 1px;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .13) 15%, rgba(255, 255, 255, .08) 85%, transparent);
}

.waz-sidebar-brand {
  display: flex;
  min-height: 92px;
  padding: 22px 24px 18px;
  align-items: center;
}

.waz-brand-link {
  display: flex;
  min-width: 0;
  align-items: center;
}

.waz-brand-logo {
  display: flex;
  min-width: 0;
  align-items: center;
}

.waz-sidebar-logo-image {
  display: block;
  max-width: 180px;
  max-height: 42px;
  filter: grayscale(1) brightness(0) invert(1);
  transition: opacity var(--waz-ease), transform var(--waz-ease);
}

.waz-brand-symbol {
  display: none;
  width: 42px;
  height: 42px;
  color: #000;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 10px 25px rgba(255, 255, 255, .13);
  font-size: 17px;
  font-weight: 900;
  align-items: center;
  justify-content: center;
}

.waz-sidebar-body {
  min-height: 0;
  padding: 8px 15px 18px;
  overflow-x: hidden;
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .2) transparent;
}

.waz-nav-caption {
  height: 28px;
  padding: 0 12px;
  overflow: hidden;
  color: #777;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .12em;
  line-height: 28px;
  text-transform: uppercase;
  white-space: nowrap;
  transition: opacity var(--waz-ease);
}

.waz-sidebar-nav {
  margin: 0;
}

.waz-sidebar-nav > li {
  margin: 3px 0;
}

.waz-sidebar-nav > li > a {
  position: relative;
  display: flex;
  min-height: 50px;
  padding: 8px 12px;
  overflow: hidden;
  color: #9b9ba1;
  border: 1px solid transparent;
  border-radius: 14px;
  font-weight: 620;
  align-items: center;
  gap: 12px;
}

.waz-sidebar-nav > li > a:hover,
.waz-sidebar-nav > li > a:focus {
  color: #fff;
  border-color: rgba(255, 255, 255, .07);
  background: rgba(255, 255, 255, .065);
  transform: translateX(2px);
}

[dir="rtl"] .waz-sidebar-nav > li > a:hover,
[dir="rtl"] .waz-sidebar-nav > li > a:focus {
  transform: translateX(-2px);
}

.waz-sidebar-nav > li.active > a,
.waz-sidebar-nav > li.active > a:hover,
.waz-sidebar-nav > li.active > a:focus {
  color: #000;
  border-color: #fff;
  background: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .24);
  transform: none;
}

.waz-nav-icon {
  position: relative;
  display: inline-flex;
  width: 26px;
  min-width: 26px;
  height: 26px;
  font-size: 16px;
  align-items: center;
  justify-content: center;
}

.waz-sidebar-nav > li.active .waz-nav-icon {
  transform: scale(1.05);
}

.waz-nav-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: opacity 150ms ease, width var(--waz-ease);
}

.waz-nav-indicator {
  position: absolute;
  inset-inline-end: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0;
  transform: scale(0);
  transition: opacity var(--waz-ease), transform var(--waz-ease);
}

.waz-sidebar-nav > li.active .waz-nav-indicator {
  opacity: .8;
  transform: scale(1);
}

.waz-sidebar-footer {
  padding: 14px 15px 18px;
  border-top: 1px solid rgba(255, 255, 255, .075);
}

.waz-profile-trigger {
  display: flex;
  min-height: 62px;
  padding: 8px;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
  background: rgba(255, 255, 255, .055);
  align-items: center;
  gap: 10px;
}

.waz-profile-trigger:hover,
.waz-profile-trigger:focus {
  border-color: rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .09);
}

.waz-profile-trigger .client-profile-image-small {
  width: 42px;
  min-width: 42px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, .25);
  border-radius: 13px;
  object-fit: cover;
}

.waz-profile-copy {
  display: flex;
  min-width: 0;
  line-height: 1.2;
  flex: 1;
  flex-direction: column;
  gap: 5px;
}

.waz-profile-copy strong,
.waz-profile-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.waz-profile-copy strong {
  color: #fff;
  font-size: 12px;
}

.waz-profile-copy small {
  color: #85858c;
  font-size: 10px;
}

.waz-profile-more {
  color: #717178;
}

.waz-sidebar-profile > .dropdown-menu {
  inset-inline-start: calc(100% + 12px);
  bottom: 0;
  top: auto;
  min-width: 248px;
  padding: 8px;
  border: 1px solid var(--waz-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 26px 80px rgba(0, 0, 0, .2);
  backdrop-filter: blur(18px);
}

[dir="rtl"] .waz-sidebar-profile > .dropdown-menu {
  right: calc(100% + 12px);
  left: auto;
}

.waz-sidebar-profile .dropdown-menu > li > a {
  display: flex;
  min-height: 40px;
  padding: 9px 11px;
  color: #3f3f46;
  border-radius: 10px;
  font-weight: 550;
  align-items: center;
  gap: 10px;
}

.waz-sidebar-profile .dropdown-menu > li > a i {
  width: 18px;
  color: #818188;
  text-align: center;
}

.waz-sidebar-profile .dropdown-menu > li > a:hover,
.waz-sidebar-profile .dropdown-menu > li.active > a {
  color: #fff;
  background: #000;
}

.waz-sidebar-profile .dropdown-menu > li > a:hover i,
.waz-sidebar-profile .dropdown-menu > li.active > a i {
  color: #fff;
}

.waz-profile-menu-heading {
  padding: 9px 11px 11px;
  color: #929299;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.waz-sidebar-profile .divider {
  margin: 7px 3px;
  background: var(--waz-line);
}

/* Collapsed desktop sidebar */

body.waz-sidebar-collapsed .waz-sidebar-brand {
  padding-inline: 23px;
}

body.waz-sidebar-collapsed .waz-brand-logo {
  display: none;
}

body.waz-sidebar-collapsed .waz-brand-symbol {
  display: inline-flex;
}

body.waz-sidebar-collapsed .waz-nav-caption,
body.waz-sidebar-collapsed .waz-nav-label,
body.waz-sidebar-collapsed .waz-nav-indicator,
body.waz-sidebar-collapsed .waz-profile-copy,
body.waz-sidebar-collapsed .waz-profile-more {
  width: 0;
  opacity: 0;
  pointer-events: none;
}

body.waz-sidebar-collapsed .waz-sidebar-body {
  padding-inline: 15px;
}

body.waz-sidebar-collapsed .waz-sidebar-nav > li > a {
  padding-inline: 14px;
  justify-content: center;
}

body.waz-sidebar-collapsed .waz-profile-trigger {
  padding: 8px;
  justify-content: center;
}

body.waz-sidebar-collapsed .waz-sidebar-profile > .dropdown-menu {
  inset-inline-start: calc(100% + 12px);
}

.waz-sidebar-toggle {
  position: fixed !important;
  z-index: 1060;
  top: 34px;
  inset-inline-start: calc(var(--waz-sidebar-width) - 17px);
  width: 34px !important;
  height: 34px !important;
  color: #000 !important;
  border: 1px solid var(--waz-line) !important;
  border-radius: 11px !important;
  background: #fff !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .13);
  transition: inset-inline-start var(--waz-ease), transform var(--waz-ease) !important;
}

.waz-sidebar-toggle:hover {
  transform: scale(1.06);
}

/* Mobile header and Naive UI navigation */

.waz-mobile-header {
  display: none;
}

#waz-naive-root {
  position: relative;
  z-index: 1065;
}

.waz-mobile-trigger {
  position: fixed !important;
  z-index: 1070;
  top: 13px;
  inset-inline-end: 15px;
  display: none !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 13px !important;
  box-shadow: 0 9px 24px rgba(0, 0, 0, .18);
}

.waz-mobile-menu .n-menu-item-content {
  border-radius: 11px;
}

.waz-mobile-menu .n-menu-item-content-header a {
  display: block;
  width: 100%;
  color: inherit;
}

.waz-drawer-brand {
  display: flex;
  color: #0b0b0c;
  font-size: 18px;
  font-weight: 850;
  align-items: center;
  gap: 10px;
}

.waz-drawer-brand::before {
  display: inline-flex;
  width: 32px;
  height: 32px;
  content: "W";
  color: #fff;
  border-radius: 10px;
  background: #000;
  font-size: 12px;
  align-items: center;
  justify-content: center;
}

/* Typography and surfaces */

body.waz-theme h1,
body.waz-theme h2,
body.waz-theme h3,
body.waz-theme h4,
body.waz-theme h5,
.section-heading {
  color: var(--waz-ink);
  letter-spacing: -.035em;
}

body.waz-theme h1,
body.waz-theme h2 {
  font-weight: 820;
}

body.waz-theme h3,
body.waz-theme h4,
.section-heading {
  font-weight: 750;
}

.section-heading {
  margin: 0 0 18px;
  font-size: 21px;
}

.section-heading span {
  margin-inline-start: 8px;
}

.section-heading span a {
  color: var(--waz-muted);
  font-size: 12px;
  font-weight: 600;
}

.panel_s {
  margin-bottom: 22px;
  border: 0;
  border-radius: var(--waz-radius);
  background: transparent;
  box-shadow: none;
}

.panel_s > .panel-body,
.panel_s .panel-body {
  padding: 24px;
  border: 1px solid var(--waz-line);
  border-radius: var(--waz-radius);
  background: var(--waz-surface);
  box-shadow: var(--waz-shadow-sm);
}

.panel_s .panel-heading {
  padding: 17px 21px;
  border: 1px solid var(--waz-line);
  border-bottom: 0;
  border-radius: var(--waz-radius) var(--waz-radius) 0 0;
  background: #fff;
  font-weight: 750;
}

.panel_s .panel-heading + .panel-body {
  border-radius: 0 0 var(--waz-radius) var(--waz-radius);
}

.panel_s .panel-footer {
  padding: 16px 22px;
  border: 1px solid var(--waz-line);
  border-top: 0;
  border-radius: 0 0 var(--waz-radius) var(--waz-radius);
  background: #fafafa;
}

hr {
  margin: 24px 0;
  border-top-color: var(--waz-line);
}

/* Forms */

.form-group {
  margin-bottom: 18px;
}

.control-label,
.form-group > label {
  margin-bottom: 7px;
  color: #414147;
  font-size: 12px;
  font-weight: 680;
}

.form-control {
  min-height: 45px;
  padding: 10px 13px;
  color: #17171a;
  border: 1px solid var(--waz-line-strong);
  border-radius: 11px;
  background: #fff;
  box-shadow: none;
  transition: border-color var(--waz-ease), box-shadow var(--waz-ease), background var(--waz-ease);
}

textarea.form-control {
  min-height: 125px;
  resize: vertical;
}

.form-control:hover {
  border-color: #acacb2;
}

.form-control:focus {
  border-color: #000;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, .095);
}

.form-control[disabled],
.form-control[readonly] {
  color: #77777e;
  background: #f2f2f3;
}

.input-group-addon {
  min-width: 44px;
  color: #55555c;
  border-color: var(--waz-line-strong);
  background: #f7f7f8;
}

.bootstrap-select > .dropdown-toggle {
  min-height: 45px;
  border-radius: 11px;
}

.bootstrap-select .dropdown-menu,
.dropdown-menu {
  padding: 7px;
  border-color: var(--waz-line);
  border-radius: 13px;
  box-shadow: var(--waz-shadow);
}

.bootstrap-select .dropdown-menu > li > a,
.dropdown-menu > li > a {
  padding: 9px 10px;
  border-radius: 8px;
}

.checkbox label,
.radio label {
  color: #55555c;
}

.checkbox input[type="checkbox"]:checked + label::before {
  border-color: #000;
  background: #000;
}

/* Buttons */

.btn {
  min-height: 41px;
  padding: 9px 16px;
  border-radius: 10px;
  font-weight: 680;
  letter-spacing: -.012em;
  box-shadow: none;
  transition: transform var(--waz-ease), box-shadow var(--waz-ease), color var(--waz-ease), background var(--waz-ease), border-color var(--waz-ease);
}

.btn:hover,
.btn:focus {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary,
.btn-info {
  color: #fff !important;
  border-color: #000 !important;
  background: #000 !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-info:hover,
.btn-info:focus {
  color: #fff !important;
  border-color: #202020 !important;
  background: #202020 !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .18);
}

.btn-default {
  color: #28282c;
  border-color: var(--waz-line-strong);
  background: #fff;
}

.btn-default:hover,
.btn-default:focus {
  color: #000;
  border-color: #a9a9af;
  background: #f7f7f8;
}

.btn-success {
  border-color: var(--waz-success);
  background: var(--waz-success);
}

.btn-danger {
  border-color: var(--waz-danger);
  background: var(--waz-danger);
}

.btn-warning {
  border-color: var(--waz-warning);
  background: var(--waz-warning);
}

.btn-block {
  width: 100%;
  min-height: 47px;
}

.btn-xs {
  min-height: 30px;
  padding: 5px 9px;
  border-radius: 8px;
}

/* Status and feedback */

.label,
.badge {
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 750;
}

.label-default {
  color: #3e3e44;
  background: #ededee;
}

.label-success {
  color: #166534;
  background: #dcfce7;
}

.label-danger {
  color: #991b1b;
  background: #fee2e2;
}

.label-warning {
  color: #92400e;
  background: #fef3c7;
}

.alert {
  position: relative;
  padding: 15px 18px;
  border: 1px solid;
  border-radius: 14px;
  box-shadow: var(--waz-shadow-sm);
}

.alert-success {
  color: #166534;
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.alert-info {
  color: #1e40af;
  border-color: #bfdbfe;
  background: #eff6ff;
}

.alert-warning {
  color: #92400e;
  border-color: #fde68a;
  background: #fffbeb;
}

.alert-danger {
  color: #991b1b;
  border-color: #fecaca;
  background: #fef2f2;
}

/* Tables */

.table-responsive,
.waz-table-scroll {
  border: 0;
  border-radius: 14px;
}

.table {
  margin-bottom: 0;
  color: #404047;
  border-collapse: separate;
  border-spacing: 0;
}

.table > thead > tr > th {
  padding: 13px 14px;
  color: #7b7b83;
  border-bottom: 1px solid var(--waz-line);
  background: #fafafa;
  font-size: 10px;
  font-weight: 780;
  letter-spacing: .055em;
  text-transform: uppercase;
  white-space: nowrap;
}

.table > thead > tr > th:first-child {
  border-radius: 11px 0 0 0;
}

.table > thead > tr > th:last-child {
  border-radius: 0 11px 0 0;
}

[dir="rtl"] .table > thead > tr > th:first-child {
  border-radius: 0 11px 0 0;
}

[dir="rtl"] .table > thead > tr > th:last-child {
  border-radius: 11px 0 0 0;
}

.table > tbody > tr > td {
  padding: 14px;
  border-top: 1px solid #f0f0f1;
  vertical-align: middle;
}

.table > tbody > tr:first-child > td {
  border-top: 0;
}

.table > tbody > tr:hover {
  background: #fafafa;
}

.table a {
  font-weight: 650;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
  margin-bottom: 16px;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
  min-height: 38px;
  border: 1px solid var(--waz-line-strong);
  border-radius: 9px;
  box-shadow: none;
}

.dataTables_wrapper .dataTables_info {
  padding-top: 18px;
  color: var(--waz-muted);
}

.pagination > li > a,
.pagination > li > span {
  min-width: 36px;
  min-height: 36px;
  margin: 0 3px;
  padding: 8px 10px;
  color: #55555c;
  border: 1px solid var(--waz-line);
  border-radius: 9px !important;
  background: #fff;
  text-align: center;
}

.pagination > .active > a,
.pagination > .active > a:hover,
.pagination > .active > span {
  color: #fff;
  border-color: #000;
  background: #000;
}

/* Dashboard */

.section-client-dashboard > #greeting {
  margin: 4px 0 10px;
  color: #0a0a0b;
  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 850;
  letter-spacing: -.052em;
}

.projects-summary-heading,
.invoices-quick-info-heading {
  color: #86868e !important;
  font-size: 10px !important;
  font-weight: 780 !important;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.section-client-dashboard dl,
.tickets-summary-heading + dl,
.section-heading-projects + dl {
  gap: 12px;
}

.section-client-dashboard dl > a,
.tickets-summary-heading + dl > a,
.section-heading-projects + dl > a {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--waz-line) !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: var(--waz-shadow-sm);
}

.section-client-dashboard dl > a::after,
.tickets-summary-heading + dl > a::after,
.section-heading-projects + dl > a::after {
  position: absolute;
  width: 76px;
  height: 76px;
  inset-inline-end: -26px;
  bottom: -35px;
  content: "";
  border-radius: 50%;
  background: #000;
  opacity: .035;
  transition: opacity var(--waz-ease), transform var(--waz-ease);
}

.section-client-dashboard dl > a:hover,
.tickets-summary-heading + dl > a:hover,
.section-heading-projects + dl > a:hover {
  border-color: #c7c7cb !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .08);
  transform: translateY(-3px);
}

.section-client-dashboard dl > a:hover::after,
.tickets-summary-heading + dl > a:hover::after,
.section-heading-projects + dl > a:hover::after {
  opacity: .08;
  transform: scale(1.2);
}

.section-client-dashboard dl dt,
.tickets-summary-heading + dl dt {
  font-size: 11px;
  font-weight: 750;
}

.section-client-dashboard dl dd > div,
.tickets-summary-heading + dl dd > div {
  color: #000 !important;
  font-size: 27px;
  font-weight: 850;
}

.invoices-stats,
.estimates-stats,
.invoice-quick-info {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 0;
  margin-inline: -6px;
}

.invoices-stats > [class*="col-"],
.estimates-stats > [class*="col-"] {
  padding-inline: 6px;
}

.invoices-stats > [class*="col-"] > .row,
.estimates-stats > [class*="col-"] > .row {
  min-height: 116px;
  margin: 0;
  padding: 17px 15px;
  border: 1px solid var(--waz-line);
  border-radius: 15px;
  background: linear-gradient(145deg, #fff, #fafafa);
}

.stats-status {
  width: 100%;
  padding: 0;
}

.stats-status a {
  color: var(--waz-muted) !important;
  font-size: 11px;
  font-weight: 700;
}

.stats-numbers {
  width: 100%;
  margin-top: 7px;
  padding: 0;
  color: #000;
  font-size: 21px;
  font-weight: 850;
  text-align: start;
}

.invoices-stats .col-md-12,
.estimates-stats .col-md-12 {
  width: 100%;
  padding: 0;
}

.progress {
  height: 7px;
  margin-bottom: 0;
  overflow: hidden;
  border-radius: 999px;
  background: #e9e9eb;
  box-shadow: none;
}

.progress-bar {
  border-radius: 999px;
  background: #000;
  box-shadow: none;
}

.progress-bar-success {
  background: var(--waz-success);
}

.progress-bar-warning {
  background: var(--waz-warning);
}

.progress-bar-danger {
  background: var(--waz-danger);
}

#client-home-chart {
  padding-top: 12px;
}

/* Secondary navigation and tabs */

.submenu.customer-top-submenu {
  display: flex;
  float: none;
  margin: 0 0 18px;
  padding: 0;
  justify-content: flex-end;
  gap: 8px;
}

.submenu.customer-top-submenu li {
  margin: 0;
}

.submenu.customer-top-submenu li a {
  display: inline-flex;
  min-height: 40px;
  padding: 8px 13px;
  color: #55555d !important;
  border: 1px solid var(--waz-line);
  border-radius: 11px;
  background: #fff;
  font-size: 12px;
  font-weight: 680;
  align-items: center;
}

.submenu.customer-top-submenu li a:hover {
  color: #fff !important;
  border-color: #000;
  background: #000;
}

.nav-tabs {
  display: flex;
  padding: 5px;
  border: 1px solid var(--waz-line) !important;
  border-radius: 13px;
  background: #ececee;
  gap: 4px;
}

.nav-tabs > li {
  float: none;
  margin: 0;
}

.nav-tabs > li > a {
  margin: 0;
  padding: 9px 13px;
  color: #74747c;
  border: 0 !important;
  border-radius: 9px;
  font-weight: 650;
  white-space: nowrap;
}

.nav-tabs > li > a:hover {
  color: #000;
  background: #fff;
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
  color: #fff;
  background: #000;
  box-shadow: 0 5px 14px rgba(0, 0, 0, .16);
}

.horizontal-scrollable-tabs {
  border: 0;
  background: transparent;
  box-shadow: none;
}

/* Modals, uploads, project details */

.modal-content {
  overflow: hidden;
  border: 1px solid var(--waz-line);
  border-radius: 21px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, .2);
}

.modal-header {
  padding: 19px 22px;
  border-bottom: 1px solid var(--waz-line);
}

.modal-title {
  font-weight: 780;
}

.modal-body {
  padding: 22px;
}

.modal-footer {
  padding: 16px 22px;
  border-top: 1px solid var(--waz-line);
  background: #fafafa;
}

.modal-backdrop.in {
  opacity: .45;
}

.dropzone {
  min-height: 155px;
  border: 1.5px dashed #b6b6bc !important;
  border-radius: 16px;
  background: #fafafa;
}

.dropzone:hover {
  border-color: #000 !important;
  background: #f5f5f6;
}

.attachment,
.task-attachment {
  overflow: hidden;
  border: 1px solid var(--waz-line);
  border-radius: 13px;
  background: #fff;
}

.kan-ban-col {
  border-radius: 16px;
  background: #eaeaeb;
}

.kan-ban-col .panel-body {
  border-radius: 13px;
}

.project-progress-bars > div,
.project-overview-column .tw-rounded-md {
  border-color: var(--waz-line) !important;
  border-radius: 13px !important;
  background: #fafafa !important;
}

.preview-sticky-header {
  border: 1px solid var(--waz-line);
  border-radius: 15px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--waz-shadow-sm);
  backdrop-filter: blur(14px);
}

.invoice-html-number,
.estimate-html-number,
.subscription-html-name {
  color: #000 !important;
  font-size: 24px;
  font-weight: 820;
}

/* Knowledge base */

.kb-search-jumbotron {
  margin-top: -34px;
  margin-bottom: 34px;
  padding: 58px 20px;
  border-radius: 0 0 30px 30px;
  background:
    radial-gradient(circle at 85% 0, rgba(255, 255, 255, .13), transparent 25rem),
    #070707;
  color: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .18);
}

.kb-search-heading {
  color: #fff !important;
  font-size: clamp(25px, 4vw, 40px);
  font-weight: 820;
}

.kb-search .form-control {
  min-height: 54px;
  border: 0;
  border-radius: 14px 0 0 14px;
}

[dir="rtl"] .kb-search .form-control {
  border-radius: 0 14px 14px 0;
}

.kb-search-button {
  min-height: 54px;
  padding-inline: 23px;
  color: #000 !important;
  border-radius: 0 14px 14px 0;
  background: #fff !important;
}

[dir="rtl"] .kb-search-button {
  border-radius: 14px 0 0 14px;
}

.articles_list li,
.kb-search-results article {
  padding: 16px 0;
}

.articles_list a {
  color: #18181b;
  font-weight: 680;
}

/* Completely distinct authentication screen */

body:has(.waz-auth-page) {
  background: #ededee;
}

body:has(.waz-auth-page) .waz-content-stage {
  display: flex;
  min-height: 100vh;
  padding: 22px 0;
  align-items: center;
}

body:has(.waz-auth-page) .waz-main-container {
  width: min(100% - 44px, 1220px);
}

body:has(.waz-auth-page) .waz-footer {
  display: none;
}

.waz-auth-page {
  width: 100%;
}

.waz-auth-layout {
  display: grid;
  min-height: min(780px, calc(100vh - 44px));
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 36px 100px rgba(0, 0, 0, .14);
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
}

.waz-auth-showcase {
  position: relative;
  display: flex;
  min-width: 0;
  overflow: hidden;
  padding: 38px 42px;
  color: #fff;
  background:
    radial-gradient(circle at 12% 0, rgba(255, 255, 255, .15), transparent 27rem),
    radial-gradient(circle at 100% 100%, rgba(255, 255, 255, .08), transparent 24rem),
    #070707;
  flex-direction: column;
}

.waz-auth-showcase::before {
  position: absolute;
  width: 380px;
  height: 380px;
  inset-inline-end: -210px;
  top: 17%;
  content: "";
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 50%;
  box-shadow:
    0 0 0 55px rgba(255, 255, 255, .025),
    0 0 0 115px rgba(255, 255, 255, .018);
}

.waz-auth-showcase-top,
.waz-auth-showcase-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.waz-auth-logo-image {
  max-width: 170px;
  max-height: 42px;
  filter: grayscale(1) brightness(0) invert(1);
}

.waz-auth-status {
  display: inline-flex;
  padding: 7px 10px;
  color: #a0a0a6;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  font-size: 10px;
  font-weight: 650;
  align-items: center;
  gap: 7px;
}

.waz-auth-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .1);
}

.waz-auth-showcase-content {
  position: relative;
  z-index: 1;
  display: flex;
  max-width: 540px;
  margin-block: auto;
  padding: 48px 0;
  flex-direction: column;
}

.waz-auth-kicker {
  margin-bottom: 16px;
  color: #77777e;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.waz-auth-showcase h2 {
  max-width: 530px;
  margin: 0;
  color: #fff !important;
  font-size: clamp(38px, 4vw, 62px);
  font-weight: 820;
  letter-spacing: -.065em;
  line-height: .98;
}

.waz-auth-showcase-content > p {
  margin-top: 20px;
  color: #85858c;
  font-size: 14px;
}

.waz-auth-visual {
  position: relative;
  width: min(100%, 470px);
  height: 218px;
  margin-top: 42px;
}

.waz-visual-card {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 22px;
  background: rgba(255, 255, 255, .07);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .28);
  backdrop-filter: blur(14px);
}

.waz-visual-card-primary {
  inset: 0 18% 24px 0;
  padding: 26px;
  transform: rotate(-3deg);
}

[dir="rtl"] .waz-visual-card-primary {
  inset: 0 0 24px 18%;
  transform: rotate(3deg);
}

.waz-visual-card-primary span {
  display: block;
  height: 8px;
  margin-bottom: 17px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
}

.waz-visual-card-primary span:nth-child(1) {
  width: 34%;
  background: #fff;
}

.waz-visual-card-primary span:nth-child(2) {
  width: 82%;
}

.waz-visual-card-primary span:nth-child(3) {
  width: 62%;
}

.waz-visual-card-secondary {
  right: 0;
  bottom: 0;
  display: grid;
  width: 46%;
  height: 132px;
  padding: 20px;
  transform: rotate(4deg);
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
  gap: 9px;
}

[dir="rtl"] .waz-visual-card-secondary {
  right: auto;
  left: 0;
  transform: rotate(-4deg);
}

.waz-visual-card-secondary i {
  display: block;
  height: 45%;
  border-radius: 6px 6px 2px 2px;
  background: rgba(255, 255, 255, .22);
}

.waz-visual-card-secondary i:nth-child(2) {
  height: 82%;
  background: #fff;
}

.waz-visual-card-secondary i:nth-child(3) {
  height: 58%;
}

.waz-visual-card-secondary i:nth-child(4) {
  height: 100%;
  background: rgba(255, 255, 255, .38);
}

.waz-visual-orbit {
  position: absolute;
  width: 68px;
  height: 68px;
  top: -20px;
  inset-inline-end: 4%;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  animation: waz-float 5s ease-in-out infinite;
}

.waz-visual-orbit::after {
  position: absolute;
  width: 12px;
  height: 12px;
  top: 4px;
  left: 8px;
  content: "";
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 7px rgba(255, 255, 255, .08);
}

@keyframes waz-float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-11px) rotate(8deg); }
}

.waz-auth-showcase-footer {
  color: #626269;
  font-size: 10px;
  font-weight: 650;
}

.waz-auth-form-side {
  display: flex;
  min-width: 0;
  padding: 54px clamp(34px, 5vw, 78px);
  background:
    radial-gradient(circle at 100% 0, rgba(0, 0, 0, .035), transparent 20rem),
    #fff;
  align-items: center;
}

.waz-auth-form-wrap {
  width: 100%;
  max-width: 430px;
  margin: auto;
}

.waz-auth-mobile-mark {
  display: none;
}

.waz-auth-eyebrow {
  margin: 0 0 10px;
  color: #929299;
  font-size: 10px;
  font-weight: 780;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.waz-auth-form-heading h1 {
  margin: 0 0 38px;
  color: #080809;
  font-size: clamp(31px, 3vw, 44px);
  font-weight: 840;
  letter-spacing: -.055em;
  line-height: 1.05;
}

.waz-login-form .form-group {
  margin-bottom: 20px;
}

.waz-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.waz-label-row > a {
  margin-bottom: 7px;
  color: #77777e;
  font-size: 10px;
  font-weight: 650;
}

.waz-auth-input {
  position: relative;
}

.waz-auth-input > i {
  position: absolute;
  z-index: 2;
  top: 50%;
  inset-inline-start: 15px;
  width: 18px;
  color: #8b8b92;
  text-align: center;
  transform: translateY(-50%);
}

.waz-auth-input .form-control {
  min-height: 52px;
  padding-inline-start: 45px;
  border-color: #dedee1;
  border-radius: 13px;
  background: #fafafa;
}

.waz-auth-input .form-control:focus {
  border-color: #000;
  background: #fff;
}

.waz-remember-row {
  margin: 1px 0 22px;
}

.waz-login-submit {
  display: flex;
  min-height: 53px;
  padding-inline: 19px;
  border-radius: 13px;
  align-items: center;
  justify-content: space-between;
}

[dir="rtl"] .waz-login-submit i {
  transform: rotate(180deg);
}

.waz-auth-divider {
  display: flex;
  height: 27px;
  align-items: center;
}

.waz-auth-divider::before,
.waz-auth-divider::after {
  height: 1px;
  content: "";
  background: var(--waz-line);
  flex: 1;
}

.waz-register-link {
  min-height: 50px;
  border-radius: 13px;
}

.waz-language-field {
  margin-bottom: 24px !important;
}

/* Registration and reset screens remain related but intentionally distinct */

#register-form > .panel_s > .panel-body {
  padding: 30px;
  border-radius: 24px;
}

.register-heading,
.forgot-password-heading {
  color: #000;
  font-size: clamp(29px, 4vw, 44px);
  font-weight: 840;
  letter-spacing: -.05em;
}

.register-contact-info-heading,
.register-company-info-heading {
  display: flex;
  align-items: center;
  gap: 9px;
}

.register-contact-info-heading::before,
.register-company-info-heading::before {
  width: 9px;
  height: 9px;
  content: "";
  border-radius: 50%;
  background: #000;
  box-shadow: 0 0 0 5px rgba(0, 0, 0, .07);
}

/* Footer */

.footer.waz-footer {
  flex: 0 0 auto;
  padding: 0 0 28px;
  color: #83838b;
  border: 0;
  background: transparent;
  font-size: 10px;
  transition: margin var(--waz-ease), width var(--waz-ease);
}

.waz-sidebar ~ .waz-app-shell ~ .waz-footer {
  width: calc(100% - var(--waz-sidebar-width));
  margin-inline-start: var(--waz-sidebar-width);
}

.waz-footer a {
  color: #48484e;
  font-weight: 650;
}

.waz-footer-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-inline-end: 8px;
  border-radius: 50%;
  background: #000;
}

/* Small details */

.tooltip-inner {
  padding: 7px 10px;
  border-radius: 8px;
  background: #000;
  font-weight: 550;
}

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

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

::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: #b7b7bd;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: #8c8c93;
  background-clip: padding-box;
}

/* Responsive */

@media (max-width: 1100px) {
  .waz-auth-layout {
    grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
  }

  .waz-auth-showcase {
    padding-inline: 32px;
  }

  .waz-auth-showcase h2 {
    font-size: 43px;
  }
}

@media (max-width: 991px) {
  :root,
  body.waz-sidebar-collapsed {
    --waz-sidebar-width: 0px;
  }

  .waz-sidebar,
  .waz-sidebar-toggle {
    display: none !important;
  }

  .waz-mobile-header {
    position: fixed;
    z-index: 1040;
    top: 0;
    inset-inline: 0;
    display: flex;
    height: 70px;
    padding: 13px 18px;
    border-bottom: 1px solid rgba(0, 0, 0, .075);
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .7);
    backdrop-filter: blur(18px) saturate(140%);
    align-items: center;
  }

  .waz-mobile-logo-image {
    max-width: 180px;
    max-height: 38px;
  }

  .waz-sidebar ~ .waz-app-shell {
    width: 100%;
    margin-inline-start: 0;
    padding-top: 70px;
  }

  .waz-mobile-trigger {
    display: inline-flex !important;
  }

  .waz-sidebar ~ .waz-app-shell ~ .waz-footer {
    width: 100%;
    margin-inline-start: 0;
  }

  .waz-content-stage {
    padding-top: 25px;
  }

  .waz-main-container,
  .waz-alerts-container {
    width: min(100% - 28px, 1320px);
  }

  .panel_s > .panel-body,
  .panel_s .panel-body {
    padding: 20px;
  }

  .horizontal-scrollable-tabs,
  .nav-tabs {
    overflow-x: auto;
  }

  .waz-auth-layout {
    grid-template-columns: 1fr;
  }

  .waz-auth-showcase {
    display: none;
  }

  .waz-auth-form-side {
    min-height: min(740px, calc(100vh - 44px));
  }

  .waz-auth-mobile-mark {
    display: inline-flex;
    width: 46px;
    height: 46px;
    margin-bottom: 24px;
    color: #fff;
    border-radius: 14px;
    background: #000;
    box-shadow: 0 12px 26px rgba(0, 0, 0, .18);
    font-size: 15px;
    font-weight: 850;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 767px) {
  .waz-content-stage {
    padding: 18px 0 36px;
  }

  .waz-main-container,
  .waz-alerts-container {
    width: min(100% - 22px, 1320px);
  }

  .section-client-dashboard > #greeting {
    font-size: 31px;
  }

  .panel_s > .panel-body,
  .panel_s .panel-body,
  #register-form > .panel_s > .panel-body {
    padding: 17px;
    border-radius: 16px;
  }

  .invoices-stats > [class*="col-"],
  .estimates-stats > [class*="col-"] {
    width: 50%;
  }

  .invoices-stats > [class*="col-"] > .row,
  .estimates-stats > [class*="col-"] > .row {
    min-height: 106px;
  }

  .table > thead > tr > th,
  .table > tbody > tr > td {
    padding: 11px;
  }

  .kb-search-jumbotron {
    margin-top: -18px;
    padding: 42px 10px;
    border-radius: 0 0 22px 22px;
  }

  .modal-dialog {
    margin: 10px;
  }

  .modal-content {
    border-radius: 16px;
  }

  body:has(.waz-auth-page) .waz-content-stage {
    padding: 0;
  }

  body:has(.waz-auth-page) .waz-main-container {
    width: 100%;
  }

  .waz-auth-page {
    padding: 0;
  }

  .waz-auth-layout {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .waz-auth-form-side {
    min-height: 100vh;
    padding: 42px 24px;
  }
}

@media (max-width: 480px) {
  .invoices-stats > [class*="col-"],
  .estimates-stats > [class*="col-"] {
    width: 100%;
  }

  .submenu.customer-top-submenu {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .submenu.customer-top-submenu li {
    flex: 1;
  }

  .submenu.customer-top-submenu li a {
    width: 100%;
    justify-content: center;
  }

  .waz-auth-form-heading h1 {
    margin-bottom: 30px;
    font-size: 31px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  body.waz-theme {
    background: #fff !important;
  }

  .waz-sidebar,
  .waz-mobile-header,
  .waz-sidebar-toggle,
  #waz-naive-root,
  .waz-footer,
  .submenu,
  .btn,
  .preview-sticky-header {
    display: none !important;
  }

  .waz-sidebar ~ .waz-app-shell,
  .waz-app-shell {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .waz-content-stage {
    padding: 0;
  }

  .panel_s > .panel-body,
  .panel_s .panel-body {
    padding: 0;
    border: 0;
    box-shadow: none;
  }
}

/* Workspace header */

.waz-workspace-header {
  display: flex;
  min-height: 88px;
  margin-bottom: 18px;
  align-items: center;
  justify-content: space-between;
}

.waz-workspace-title > span {
  display: block;
  margin-bottom: 7px;
  color: #919198;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.waz-workspace-title > h1 {
  max-width: 780px;
  margin: 0;
  overflow: hidden;
  color: #09090a;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 850;
  letter-spacing: -.052em;
  line-height: 1.06;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.waz-workspace-meta {
  display: flex;
  width: 66px;
  height: 66px;
  color: #fff;
  border-radius: 20px;
  background: #000;
  box-shadow: 0 14px 32px rgba(0, 0, 0, .16);
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.waz-workspace-meta > span {
  font-size: 20px;
  font-weight: 850;
  line-height: 1;
}

.waz-workspace-meta > small {
  margin-top: 5px;
  color: #909096;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.waz-main-container > .row,
.waz-workspace-header,
.waz-alerts-container {
  animation: waz-enter 420ms cubic-bezier(.2, .8, .2, 1) both;
}

.waz-main-container > .row {
  animation-delay: 45ms;
}

@keyframes waz-enter {
  from {
    opacity: 0;
    transform: translateY(9px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 767px) {
  .waz-workspace-header {
    min-height: 72px;
    margin-bottom: 12px;
  }

  .waz-workspace-title > h1 {
    max-width: calc(100vw - 115px);
    font-size: 27px;
  }

  .waz-workspace-meta {
    width: 54px;
    height: 54px;
    border-radius: 16px;
  }
}

/* Authentication isolation — keep login outside the client workspace layout */

body.waz-auth-mode,
body:has(.waz-auth-page) {
  overflow: hidden;
  background: #ededee;
}

body.waz-auth-mode .waz-sidebar,
body.waz-auth-mode .waz-mobile-header,
body.waz-auth-mode .waz-sidebar-toggle,
body.waz-auth-mode .waz-workspace-header,
body.waz-auth-mode .waz-alerts-container,
body:has(.waz-auth-page) .waz-sidebar,
body:has(.waz-auth-page) .waz-mobile-header,
body:has(.waz-auth-page) .waz-sidebar-toggle,
body:has(.waz-auth-page) .waz-workspace-header,
body:has(.waz-auth-page) .waz-alerts-container {
  display: none !important;
}

body.waz-auth-mode .waz-app-shell,
body.waz-auth-mode .waz-sidebar ~ .waz-app-shell,
body:has(.waz-auth-page) .waz-app-shell,
body:has(.waz-auth-page) .waz-sidebar ~ .waz-app-shell {
  width: 100% !important;
  min-height: 100vh;
  margin: 0 !important;
  padding: 0 !important;
}

body.waz-auth-mode .waz-content-stage,
body:has(.waz-auth-page) .waz-content-stage {
  display: block;
  min-height: 100vh;
  padding: 0 !important;
}

body.waz-auth-mode .waz-main-container,
body:has(.waz-auth-page) .waz-main-container {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.waz-auth-mode .waz-main-container > .row,
body:has(.waz-auth-page) .waz-main-container > .row {
  margin: 0 !important;
}

body.waz-auth-mode .waz-footer,
body:has(.waz-auth-page) .waz-footer {
  display: none !important;
}

.waz-auth-page {
  position: fixed;
  z-index: 2000;
  inset: 0;
  display: flex;
  width: 100vw !important;
  max-width: none !important;
  height: 100vh;
  margin: 0 !important;
  padding: 22px !important;
  overflow: auto;
  background: #ededee;
  float: none !important;
  align-items: center;
  justify-content: center;
}

.waz-auth-layout {
  width: min(1180px, 100%);
  height: min(780px, calc(100vh - 44px));
  min-height: 640px;
  margin: auto;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
}

.waz-auth-form-side {
  min-height: 0;
  padding-block: 36px;
  overflow-x: hidden;
  overflow-y: auto;
}

.waz-auth-showcase {
  min-height: 0;
}

.waz-login-form .g-recaptcha {
  width: 100%;
  max-width: 100%;
  margin-bottom: 18px;
  overflow: hidden;
}

.waz-login-form .g-recaptcha > div {
  margin-inline: auto;
}

@media (max-width: 991px) {
  body.waz-auth-mode,
  body:has(.waz-auth-page) {
    overflow: hidden;
  }

  .waz-auth-page {
    height: 100svh;
    padding: 0 !important;
  }

  .waz-auth-layout {
    width: 100%;
    height: 100svh;
    min-height: 0;
    border: 0;
    border-radius: 0;
    grid-template-columns: 1fr;
  }

  .waz-auth-showcase {
    display: none;
  }

  .waz-auth-form-side {
    min-height: 100svh;
    padding: 38px 24px;
  }
}

@media (max-height: 720px) and (min-width: 992px) {
  .waz-auth-page {
    padding: 14px !important;
    align-items: flex-start;
  }

  .waz-auth-layout {
    height: auto;
    min-height: calc(100vh - 28px);
  }

  .waz-auth-showcase {
    min-height: 692px;
  }

  .waz-auth-form-side {
    min-height: 692px;
  }
}

@media (max-width: 390px) {
  .waz-auth-form-side {
    padding-inline: 18px;
  }

  .waz-login-form .g-recaptcha {
    transform: scale(.92);
    transform-origin: center top;
    margin-bottom: -4px;
  }
}

/* Sidebar refinement: real icons, contained account menu, aligned header and mobile identity */

.waz-sidebar-nav .waz-nav-icon {
  color: #a5a5ac;
  font-size: 17px;
  transition: color var(--waz-ease), transform var(--waz-ease);
}

.waz-sidebar-nav .waz-nav-icon i {
  width: 20px;
  line-height: 1;
  text-align: center;
}

.waz-sidebar-nav > li > a:hover .waz-nav-icon {
  color: #fff;
  transform: scale(1.08);
}

.waz-sidebar-nav > li.active .waz-nav-icon {
  color: #000;
}

/* Keep the account menu inside the sidebar instead of spilling over the page. */
.waz-sidebar-profile {
  position: relative;
}

.waz-sidebar-profile > .dropdown-menu {
  inset-inline-start: 0 !important;
  inset-inline-end: auto !important;
  top: auto !important;
  bottom: calc(100% + 10px) !important;
  width: 100%;
  min-width: 0;
  max-height: calc(100vh - 126px);
  margin: 0;
  padding: 8px;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 17px;
  background: #18181a;
  box-shadow: 0 24px 65px rgba(0, 0, 0, .38);
  transform: none !important;
  scrollbar-width: thin;
  scrollbar-color: #505055 transparent;
}

[dir="rtl"] .waz-sidebar-profile > .dropdown-menu {
  right: 0 !important;
  left: auto !important;
}

.waz-sidebar-profile .waz-profile-menu-heading {
  padding: 8px 10px 11px;
  color: #797980;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.waz-sidebar-profile .dropdown-menu > li > a {
  min-height: 39px;
  color: #b5b5bb;
}

.waz-sidebar-profile .dropdown-menu > li > a i {
  color: #77777e;
}

.waz-sidebar-profile .dropdown-menu > li > a:hover,
.waz-sidebar-profile .dropdown-menu > li > a:focus {
  color: #000;
  background: #fff;
}

.waz-sidebar-profile .dropdown-menu > li > a:hover i,
.waz-sidebar-profile .dropdown-menu > li > a:focus i {
  color: #000;
}

.waz-sidebar-profile .divider {
  background: rgba(255, 255, 255, .1);
}

.waz-profile-language {
  margin: 7px 0;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 12px;
  background: rgba(255, 255, 255, .035);
}

.waz-profile-section-title {
  display: flex;
  margin-bottom: 7px;
  padding: 0 2px;
  color: #8c8c93;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .055em;
  text-transform: uppercase;
  align-items: center;
  gap: 7px;
}

.waz-language-list {
  display: grid;
  gap: 4px;
}

.waz-language-list > a {
  display: flex;
  min-height: 34px;
  padding: 7px 9px;
  color: #babac0;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 620;
  align-items: center;
  justify-content: space-between;
}

.waz-language-list > a:hover {
  color: #fff;
  background: rgba(255, 255, 255, .08);
}

.waz-language-list > a.active {
  color: #000;
  background: #fff;
}

.waz-language-list > a i {
  font-size: 9px;
}

body.waz-sidebar-collapsed .waz-sidebar-profile > .dropdown-menu {
  inset-inline-start: calc(100% + 12px) !important;
  bottom: 0 !important;
  width: 270px;
  max-height: calc(100vh - 36px);
  background: #18181a;
}

[dir="rtl"] body.waz-sidebar-collapsed .waz-sidebar-profile > .dropdown-menu {
  right: calc(100% + 12px) !important;
  left: auto !important;
}

/* Page title and date share the same left-aligned row as the content. */
.waz-workspace-header {
  min-height: 74px;
  margin-bottom: 22px;
  direction: ltr !important;
  text-align: left !important;
  justify-content: flex-start !important;
  gap: 16px;
}

.waz-workspace-title {
  width: auto;
  min-width: 0;
  text-align: left !important;
}

.waz-workspace-title > span,
.waz-workspace-title > h1 {
  text-align: left !important;
}

[dir="rtl"] .waz-workspace-title > h1,
[dir="rtl"] .waz-workspace-title > span {
  direction: rtl;
  unicode-bidi: plaintext;
}

.waz-workspace-meta {
  width: 58px;
  min-width: 58px;
  height: 58px;
  border-radius: 17px;
  order: 2;
}

.waz-workspace-title {
  order: 1;
}

/* Keep percentages from overflowing the compact progress bars. */
.invoices-stats .progress,
.estimates-stats .progress,
.project-progress-bars .progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
}

.invoices-stats .progress-bar,
.estimates-stats .progress-bar,
.project-progress-bars .progress-bar {
  height: 100%;
  min-width: 0;
  overflow: hidden;
  color: transparent !important;
  border-radius: 999px;
  font-size: 0 !important;
  line-height: 0 !important;
  text-indent: -9999px;
  white-space: nowrap;
}

.n-loading-bar-container {
  z-index: 1100 !important;
}

.n-loading-bar-container .n-loading-bar {
  border-radius: 0 999px 999px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
}

/* Mobile logo and customer identity. */
.waz-mobile-header {
  gap: 12px;
}

.waz-mobile-logo {
  display: inline-flex;
  min-width: 0;
  align-items: center;
}

.waz-mobile-logo-image {
  width: auto;
  max-width: 118px !important;
  max-height: 30px !important;
  object-fit: contain;
}

.waz-mobile-profile {
  position: relative;
  display: inline-flex;
  width: 40px;
  min-width: 40px;
  height: 40px;
  margin-inline-start: auto;
  margin-inline-end: 52px;
  padding: 3px;
  border: 1px solid var(--waz-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(0, 0, 0, .08);
  align-items: center;
  justify-content: center;
}

.waz-mobile-profile img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  object-fit: cover;
}

.waz-mobile-profile-badge {
  position: absolute;
  top: -5px;
  inset-inline-end: -5px;
  display: inline-flex;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #000;
  font-size: 8px;
  font-weight: 800;
  align-items: center;
  justify-content: center;
}

@media (max-width: 991px) {
  .waz-mobile-header {
    height: 64px;
    padding: 12px 14px;
  }

  .waz-sidebar ~ .waz-app-shell {
    padding-top: 64px;
  }

  .waz-mobile-trigger {
    top: 10px;
    inset-inline-end: 12px;
  }

  .waz-workspace-header {
    min-height: 62px;
    gap: 11px;
  }

  .waz-workspace-meta {
    width: 50px;
    min-width: 50px;
    height: 50px;
    border-radius: 14px;
  }
}

@media (max-width: 420px) {
  .waz-mobile-logo-image {
    max-width: 96px !important;
    max-height: 27px !important;
  }

  .waz-mobile-profile {
    margin-inline-end: 48px;
  }
}
