:root {
  --primary: #01a56f;
  --primary-dark: #019564;
  --primary-darker: #2E3D4D;
  --primary-light: #02bb7d;
  --primary-soft: #f8f7fa;

  --bg-body: #f8f7fa;
  --surface: #ffffff;
  --text-dark: #2E3D4D;
  --text-muted: #99a1af;
  --border-color: #ebe9f1;

  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 14px;

  --shadow-sm: 0 2px 6px rgba(47, 43, 61, 0.08);
  --shadow-md: 0 6px 20px rgba(47, 43, 61, 0.12);

  --danger: #F9615D;
  --warning: #ff9f43;
  --success: #28c76f;
  --info: #99a1af;

  --transition: all 0.2s ease;

  --bs-primary: #01a56f;
  --bs-primary-rgb: 115, 103, 240;
  --bs-info: #00e397;
  --bs-info-rgb: 0, 207, 232;
  --bs-warning: #ff9f43;
  --bs-warning-rgb: 255, 159, 67;
  --bs-success: #28c76f;
  --bs-success-rgb: 40, 199, 111;
  --bs-danger: #ea5455;
  --bs-danger-rgb: 234, 84, 85;
  --bs-link-color: #01a56f;
  --bs-link-color-rgb: 99, 85, 232;
  --bs-link-hover-color: #01a56f;
  --bs-link-hover-color-rgb: 83, 70, 217;
  --bs-body-font-family: 'Public Sans', 'Roboto', 'Helvetica Neue', sans-serif;
}
.bg-info{
  background-color: var(--info) !important;
}
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-dark);
}

html {
  height: 100%;
}

body {
  min-height: 100%;
  background-color: var(--bg-body);
  color: var(--text-dark);
  font-family: 'Public Sans', 'Roboto', 'Helvetica Neue', sans-serif;
}

img {
  max-width: 100%;
}

.mw-120 {
  max-width: 120px;
}

.mw-150 {
  max-width: 150px;
}

.container-wrap {
  display: flex;
  flex-direction: row;
  width: 100%;
  min-height: 100vh;
}

#navbarNav {
  flex-basis: auto;
  display: flex;
  flex-direction: column;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
  max-width: 300px;
  width: 100%;
}

.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border-color);
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  left: 0px;
  max-width: 300px;
  height: 100vh;
  box-shadow: none;
  box-sizing: border-box;
  transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1);
  position: fixed;
  top: 0;
  z-index: 1;
  width: 100%;
}

.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(47, 43, 61, 0.15);
  border-radius: 10px;
}

.main-content {
  width: 100%;
  display: flex;
  flex-direction: column;

}

.auth-page {
  min-height: 100vh;
  width: 100%;
  background: var(--bg-body);
  position: relative;
  padding: 40px 20px;
}

.auth-brand.logo {
  display: block;
  text-align: center;
  margin: 0 0 24px;
}

.auth-brand img {
  display: block;
  max-width: 190px;
  margin: 0 auto;
}

.auth-footer {
  margin-top: 24px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.auth-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 48px 44px;
  max-width: 440px;
  width: 100%;
}

.auth-card:has(.login-form-wide) {
  max-width: 640px;
}

.auth-toggle {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.auth-forgot {
  margin-top: 14px;
}

.auth-forgot a {
  color: var(--text-muted);
  text-decoration: none;
}

.auth-forgot a:hover {
  color: var(--primary-dark);
}

.auth-toggle a {
  color: var(--primary-dark);
  font-weight: 700;
  margin-left: 4px;
  text-decoration: none;
}

.auth-toggle a:hover {
  color: var(--primary-darker);
}

.login-form {
  max-width: 100%;
  margin: 0;
  width: 100%;
  color: var(--text-dark);
  padding: 0;
}

.login-form h3 {
  color: var(--text-dark);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
}

.login-form p {
  color: var(--text-muted);
  margin-bottom: 24px;
  text-align: center;
}

.login-form hr {
  border-color: var(--border-color);
  margin: 24px 0;
}

.login-form .form-control {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-dark);
  padding: 10px 15px;
  transition: var(--transition);
}

.login-form .form-control:focus {
  background-color: var(--surface);
  box-shadow: 0 0 0 3px var(--primary-soft);
  outline: none;
  border-color: var(--primary);
  color: var(--text-dark);
}

.login-form input[type="email"],
.login-form input[name="username"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f6b7d' stroke-width='1.8'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 14px center;
  background-size: 18px 18px;
  padding-left: 42px;
}

.login-form input[type="password"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f6b7d' stroke-width='1.8'%3E%3Crect x='5' y='11' width='14' height='9' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 14px center;
  background-size: 18px 18px;
  padding-left: 42px;
}

.login-form a {
  color: var(--primary-dark);
  text-decoration: none;
}

.login-form .form-check-input {
  width: 20px;
  height: 20px;
  margin-right: 5px;
}

.login-form .form-check-input:checked[type=checkbox] {
  background-color: var(--primary);
  border-color: var(--primary);
  box-shadow: none;
}

.btn {
  padding: 10px 15px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 16px;
  transition: var(--transition);
}

.btn-login {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-login:hover {
  background: var(--primary-darker);
  color: #fff;
}

.navbar-toggler {
  display: none;
}

.logo {
  display: inline-block;
}

.logo img {
  display: block;
  max-width: 190px;
}

.main-menu {
  margin-top: 8px;
}

.main-menu ul li {
  margin-bottom: 6px;
}

.main-menu ul li .bi {
  margin-right: 12px;
  font-size: 17px;
}

.main-menu ul li a.nav-link {
  color: var(--text-muted);
  position: relative;
  display: flex;
  align-items: center;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: var(--transition);
}

.main-menu ul li a.nav-link:hover {
  color: var(--primary-dark);
  background: var(--primary-soft);
}

.main-menu ul li a.nav-link.active {
  color: #fff;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
  box-shadow: 0 6px 16px rgba(115, 103, 240, 0.35);
}

.card {
  box-shadow: var(--shadow-sm);
  border: none;
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.dashboard-card {
  position: relative;
}

.dashboard-card:has(a.stretched-link):hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.card-icon-chip {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: var(--primary-soft);
  color: var(--primary);
}

.stat-mini {
  color: var(--text-dark);
}

.stat-mini:hover {
  color: var(--text-dark);
}

.stat-mini-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  transition: var(--transition);
}

.stat-mini:hover .stat-mini-icon {
  transform: scale(1.06);
}

.stat-mini-value {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.1;
}

.stat-mini-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.job-stats-row {
  height: 100%;
}

.stat-color-card {
  position: relative;
  overflow: hidden;
  min-height: 132px;
  height: 100%;
  padding: 22px;
  border-radius: var(--radius-lg);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: var(--transition);
}

.stat-color-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.stat-color-card-icon {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
}

.stat-color-card-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: 10px;
  padding-right: 46px;
}

.stat-color-card-value {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.stat-color-card-warning {
  background: linear-gradient(135deg, var(--warning), #ffc078);
}

.stat-color-card-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.stat-color-card-success {
  background: linear-gradient(135deg, var(--success), #6ee7a8);
}

.stat-color-card-info {
  background: linear-gradient(135deg, var(--info), #c2c2c2);
}

.stat-tile-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.stat-tile-highlight {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.stat-tile-highlight .stat-tile-label {
  color: rgba(255, 255, 255, 0.75);
}

.chart-title {
  font-size: 16px;
  font-weight: bold;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border-color);
  padding: 0.6rem 0;
}

.topbar h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

.topbar .topbar-divider {
  width: 0;
  border-right: 1px solid var(--border-color);
  height: calc(4.375rem - 2rem);
  margin: auto 1rem;
}

.topbar .dropdown-list {
  width: 20rem !important;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.topbar .dropdown-list .dropdown-header {
  background-color: var(--primary);
  border: 1px solid var(--primary);
  padding-top: .75rem;
  padding-bottom: .75rem;
  color: #fff;
}

.topbar .nav-item .nav-link .badge-counter {
  position: absolute;
  transform: scale(.6);
  transform-origin: top right;
  right: .25rem;
  margin-top: -0.15rem;
}

.topbar .nav-item #messagesDropdown::after {
  display: none;
}

.navbar-expand {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: .5rem 1rem;
  flex-flow: row nowrap;
  justify-content: flex-start;
}

/********Dashboard***********/
.surveyChart {
  max-width: 300px;
  margin: 0 auto;
}

.form-label {
  font-weight: 600;
  color: var(--text-dark);
}

.form-label sup {
  font-size: 16px;
  line-height: 16px;
  top: -4px;
}

.form-select,
.form-control {
  border-radius: var(--radius-sm);
  border-color: var(--border-color);
  transition: var(--transition);
}

.form-select:focus,
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.list-group-item {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 10px;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-sm) !important;
  transition: var(--transition);
}

.list-group-item:hover {
  border-color: var(--primary-light) !important;
  background-color: var(--primary-soft);
}

.list-group-item input[type="checkbox"] {
  display: none;
}

.list-group-item.active {
  background-color: var(--primary);
  border-color: var(--primary) !important;
  color: white;
}

.form-section-title {
  background: var(--primary-darker);
  color: var(--surface);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tick-icon {
  display: none;
  color: white;
}

.list-group-item.active .tick-icon {
  display: inline;
}

.table {
  font-family: 'Public Sans', 'Roboto', 'Helvetica Neue', sans-serif;
  --bs-table-hover-bg: var(--primary-soft);
}

.table thead th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-weight: 700;
  color: var(--primary-dark);
  background: var(--primary-soft);
  padding: 14px 16px;
  border-bottom: none;
  white-space: nowrap;
}

.table thead tr:first-child th:first-child {
  border-top-left-radius: var(--radius-md);
}

.table thead tr:first-child th:last-child {
  border-top-right-radius: var(--radius-md);
}

.table input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  accent-color: var(--primary);
  cursor: pointer;
}

.table td img {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  padding: 4px;
  background: #fff;
  transition: var(--transition);
}

.table td img:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.table-secondary,
.table > :not(caption) > * > .table-secondary {
  --bs-table-bg: transparent;
  --bs-table-color: var(--text-dark);
}

.table td,
.table th {
  vertical-align: middle;
  white-space: nowrap;
  padding-left: 16px;
  padding-right: 16px;
}

.table td.wrap,
.table th.wrap {
  white-space: normal;
}

.table tbody tr td {
  border-bottom-color: var(--border-color);
  padding-top: 14px;
  padding-bottom: 14px;
  font-size: 14px;
}

.table tbody tr:last-child td {
  border-bottom: none;
}

.table-responsive {
  border-radius: var(--radius-md);
}

.table-box-header {
  border-bottom: 1px solid var(--border-color);
}

.day-picker-btn {
  display: block;
  min-height: 80px;
  min-width: 90px;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-dark);
  text-decoration: none;
  transition: var(--transition);
}

.day-picker-btn small {
  color: var(--text-muted);
}

.day-picker-btn:hover {
  border-color: var(--primary-light);
  background: var(--primary-soft);
  color: var(--text-dark);
}

.day-picker-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.day-picker-btn.active small {
  color: rgba(255, 255, 255, 0.75);
}

.navbar button.navbar-toggler {
  color: var(--text-dark);
  position: relative;
  padding: 10px;
  box-shadow: none;
  outline: none;
  border: 0;
}

.navbar button.navbar-toggler.collapsed {
  color: var(--text-dark);
}

.day-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  background: var(--surface);
  border-radius: var(--radius-md);
}

.day-item {
  flex: 1;
  text-align: center;
  cursor: pointer;
  padding: 10px;
  min-width: 100px;
  position: relative;
}

.day-item input {
  display: none;
}

.day-item label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
  cursor: pointer;
}

.day-item small {
  display: block;
  color: var(--text-muted);
}

.day-item .progress-bar {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 4px;
  background: #d1d5db;
  border-radius: 5px;
  transition: all 0.3s ease-in-out;
}

.progress {
  height: 8px;
  border-radius: 999px;
  background-color: var(--bg-body);
}

.progress-bar {
  border-radius: 999px;
}

.day-item input:checked+label+small+.progress-bar {
  background: var(--primary);
  width: 100%;
}

/********Add Property********/

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' class='bi bi-plus' viewBox='0 0 16 16'%3E%3Cpath d='M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4z'/%3E%3C/svg%3E");
  transition: all 0.5s;
}

.accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23fff' class='bi bi-dash' viewBox='0 0 16 16'%3E%3Cpath d='M4 8a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7A.5.5 0 0 1 4 8z'/%3E%3C/svg%3E");
}

.accordion-button::after {
  transition: all 0.5s;
}

.max-w-80 {
  max-width: 80px;
}

.max-w-100 {
  max-width: 100px;
}

.max-w-150 {
  max-width: 150px;
}

.max-w-300 {
  max-width: 300px;
}

.input-number {
  text-align: center;
}

#propertyAccordion .accordion-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

#propertyAccordion .accordion-item .accordion-button {
  justify-content: space-between;
  box-shadow: none;
  font-weight: 700;
  padding: 16px 20px;
  background: var(--surface);
  color: var(--text-dark);
  transition: var(--transition);
}

#propertyAccordion .accordion-item .accordion-button:hover {
  background: var(--primary-soft);
}

#propertyAccordion .accordion-item .accordion-button::after {
  margin: 0 0 0 10px;
  filter: none;
}

#propertyAccordion .accordion-item .accordion-button:not(.collapsed) {
  background: var(--primary-darker);
  color: #fff;
}

#propertyAccordion .accordion-item .accordion-button:not(.collapsed):hover {
  background: var(--primary-darker);
}

#propertyAccordion .accordion-item .accordion-button .property-title-icon {
  margin-right: 10px;
  opacity: 0.85;
}

.service-card {
  margin: 0 0 16px;
}

.service-name h6 {
  margin: 0;
}

.service-icon,
.service-icon-chip {
  --si-bg: var(--surface);
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: var(--radius-md);
}

.service-icon-svg {
  width: 26px;
  height: 26px;
}

.service-icon-chip {
  width: 38px;
  height: 38px;
}

.service-icon-chip .service-icon-svg {
  width: 22px;
  height: 22px;
}

.service-badge {
  --si-bg: var(--surface);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.service-badge .service-icon-svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

.service-price {
  padding: 2px 8px;
  font-weight: bold;
  color: #fff;
  background: var(--text-dark);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
}

.service-price p {
  margin: 0;
  font-size: 10px;
}

.due-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-top: 5px;
  margin: 0;
}

.add-btn {
  margin-left: 10px;
  font-size: 22px;
  line-height: normal;
  color: var(--primary);
  padding: 0;
  border: 0;
}

.action-required {
  /* background-color: var(--danger); */
  /* color: white; */
  font-weight: bold;
  border-radius: var(--radius-sm);
  padding: 3px 6px;
  border: none;
  text-decoration: none;
  margin-left: auto;
  font-size: 14px;
}

.service-due {
  border-left-color: var(--warning);
}

.service-normal {
  border-left-color: var(--success);
}

.service-title {
  font-weight: bold;
  margin-bottom: 5px;
}

.service-status {
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: bold;
}

.overdue {
  color: var(--danger);
}

.card-header {
  background-color: var(--bg-body);
}

.service-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0;
}

.service-row:last-child {
  border-bottom: none;
}

.status-badge {
  font-size: 0.75rem;
  padding: 0.3em 0.6em;
  border-radius: var(--radius-sm);
}

.overdue {
  background-color: var(--danger);
  color: white;
}

.green-status {
  color: var(--success);
}

.new-badge {
  background-color: var(--success);
  color: white;
  font-size: 0.7rem;
  border-radius: var(--radius-sm);
  padding: 2px 5px;
  margin-right: 5px;
}



/** BEGIN CSS NEEDED FOR SWITCH **/
.on-off-toggle {
  width: 56px;
  height: 24px;
  position: relative;
  display: inline-block;
}

.on-off-toggle__slider {
  width: 56px;
  height: 24px;
  display: block;
  border-radius: 34px;
  background-color: #d8d8d8;
  transition: background-color 0.4s
}

.on-off-toggle__slider:before {
  content: '';
  display: block;
  background-color: #fff;
  box-shadow: 0 0 0 1px #949494;
  bottom: 3px;
  height: 18px;
  left: 3px;
  position: absolute;
  transition: .4s;
  width: 18px;
  z-index: 5;
  border-radius: 100%;
}

.on-off-toggle__slider:after {
  display: block;
  line-height: 24px;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: bold;
  content: 'off';
  color: #484848;
  padding-left: 26px;
  transition: all 0.4s;
}

.on-off-toggle__input {
  /*
    This way of hiding the default input is better
    for accessibility than using display: none;
  */
  position: absolute;
  opacity: 0;
}

.on-off-toggle__input:checked+.on-off-toggle__slider {
  background-color: var(--primary)
}

.on-off-toggle__input:checked+.on-off-toggle__slider:before {
  transform: translateX(32px);
}

.on-off-toggle__input:checked+.on-off-toggle__slider:after {
  content: 'on';
  color: #FFFFFF;
  padding-left: 8px;
}

/*** END CSS NEEDED FOR SWITCH **/
.btn-number {
  padding: 6px;
  background: var(--primary);
}

a {
  color: var(--primary-dark);
}

a:hover {
  color: var(--primary-darker);
}

.btn:not(.btn-sm):not(.btn-lg) {
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.btn-primary {
  --bs-btn-bg: var(--primary);
  --bs-btn-border-color: var(--primary);
  --bs-btn-hover-bg: var(--primary-darker);
  --bs-btn-hover-border-color: var(--primary-darker);
  --bs-btn-active-bg: var(--primary-darker);
  --bs-btn-active-border-color: var(--primary-darker);
  --bs-btn-disabled-bg: var(--primary);
  --bs-btn-disabled-border-color: var(--primary);
  --bs-btn-focus-shadow-rgb: 115, 103, 240;
}

.btn-outline-primary {
  --bs-btn-color: var(--primary);
  --bs-btn-border-color: var(--primary);
  --bs-btn-hover-bg: var(--primary);
  --bs-btn-hover-border-color: var(--primary);
  --bs-btn-active-bg: var(--primary-dark);
  --bs-btn-active-border-color: var(--primary-dark);
  --bs-btn-focus-shadow-rgb: 115, 103, 240;
}

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

.form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.form-check-input:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 0.2rem var(--primary-soft);
}

.nav-tabs {
  border-bottom: 1px solid var(--border-color);
  gap: 4px;
}

.nav-tabs .nav-link {
  border: none;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  color: var(--text-muted);
  font-weight: 600;
  padding: 10px 20px;
}

.nav-tabs .nav-link:hover {
  border-color: transparent;
  color: var(--primary-dark);
}

.nav-tabs .nav-link.active {
  color: var(--primary-dark);
  background: var(--primary-soft);
  border-color: transparent;
}

.modal-content {
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.modal-header,
.modal-footer {
  border-color: var(--border-color);
}

.alert {
  border: none;
  border-radius: var(--radius-md);
  border-left: 4px solid transparent;
}

.alert-info {
  border-left-color: var(--info);
  background: #e8fbfd;
  color: #055160;
}

.alert-danger {
  border-left-color: var(--danger);
  background: #fdecec;
  color: #8a2a2b;
}

.alert-success {
  border-left-color: var(--success);
  background: #e9f9f0;
  color: #16643f;
}

.alert-warning {
  border-left-color: var(--warning);
  background: #fff4e8;
  color: #94530a;
}

.pagination {
  gap: 6px;
}

.page-link {
  border: none;
  border-radius: 18px !important;
  color: var(--text-muted);
  font-weight: 600;
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  transition: var(--transition);
}

.page-link:hover {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.page-item.active .page-link {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 10px rgba(115, 103, 240, 0.35);
}

.dropdown-menu {
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.dropdown-item:active,
.dropdown-item.active {
  background-color: var(--primary);
}

.container-wrap-horizontal {
  width: 100%;
  min-height: 100vh;
}

.topbar-horizontal {
  background: var(--surface);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar-horizontal .logo img {
  display: block;
  max-width: 170px;
}

.topbar-icons {
  display: flex;
  flex-direction: row;
  gap: 10px;
}

.topbar-icons .nav-link {
  position: relative;
}

.topbar-icons .nav-link .badge-counter {
  position: absolute;
  top: 2px;
  right: 2px;
  transform: translate(50%, -50%) scale(0.85);
  transform-origin: top right;
}

.page-title-bar {
  background: var(--text-dark);
  padding: 16px 0;
  display: none;
}

.page-title-bar h3 {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
}

#horizontalNav {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
}

.horizontal-menu {
  margin: 0 12px;
}

.horizontal-nav-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.horizontal-nav-list .nav-link {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.85rem;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}

.horizontal-nav-list .nav-link .bi {
  font-size: 18px;
}

.horizontal-nav-list .nav-link:hover {
  color: var(--primary-dark);
  /* background: var(--primary-soft); */
}

.horizontal-nav-list .nav-link.active {
  color: var(--primary);
  /* border-bottom-color: var(--primary);
  background: var(--primary-soft); */
}

.main-content-horizontal {
  width: 100%;
  display: block;
}

/* Responsive Styles */
@media (max-width: 1023px) {
  .topbar .navbar-nav .dropdown-menu {
    position: absolute;
  }

  .topbar .navbar-nav {
    flex-direction: row;
    gap: 15px;
  }

  .topbar .container-fluid {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .topbar .d-flex.w-100 {
    width: auto !important;
    flex: 1 1 auto;
    min-width: 0;
  }

  .topbar h3 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 1 1 0%;
  }

  .topbar .navbar-nav {
    flex: 0 0 auto;
  }

  .topbar .d-flex.w-100 {
    min-width: 0;
  }

  .navbar-toggler {
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: relative;
    flex: 0 0 auto;
    padding: 8px;
    color: var(--text-dark);
  }

  .navbar-collapse {
    display: none !important;
  }

  .navbar-collapse.show {
    display: block !important;
  }

  .topbar-horizontal .container-fluid {
    flex-wrap: wrap;
  }

  .topbar-horizontal .logo {
    order: 1;
  }

  .topbar-end {
    order: 2;
  }

  #horizontalNav {
    order: 3;
    flex: 1 1 100%;
  }

  .horizontal-menu {
    margin: 12px 0 0;
  }

  .topbar-icons {
    flex: 0 0 auto;
  }

  .horizontal-nav-list {
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
  }

  .horizontal-nav-list .nav-link {
    flex-direction: row;
    justify-content: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: none;
    border-left: 3px solid transparent;
  }

  .horizontal-nav-list .nav-link.active {
    border-left-color: var(--primary);
    border-bottom: none;
  }
}

@media (max-width: 768px) {
  .day-list {
    flex-wrap: wrap;
    padding: 10px;
  }

  .day-item {
    flex: 1 1 33%;
    min-width: 120px;
  }
}

@media (max-width: 576px) {
  .day-item {
    flex: 1 1 50%;
  }
}

.additional-quotes-row > td {
  background: var(--bg-body, #f8f7fa);
  white-space: normal;
  padding-top: 4px;
  padding-bottom: 12px;
}

.additional-quotes-row:hover > td {
  --bs-table-accent-bg: transparent;
  --bs-table-bg-state: transparent;
}

.aq-panel {
  background: var(--surface, #fff);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--primary);  
  border-right: 3px solid var(--primary);
  border-bottom: 3px solid var(--primary);
  border-radius: var(--radius-md, 10px);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  width: 100%;
}
.nav-tabs .nav-link {
  font-size: 13px;
}
.aq-panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-color, #ebe9f1);
}

.aq-panel-icon {
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  background: var(--primary-soft, #f0eefd);
  color: var(--primary, #7367f0);
}

.aq-panel-title {
  font-weight: 700;
  color: var(--text-dark, #2f2b3d);
}

.aq-count {
  background: var(--primary-soft, #f0eefd);
  color: var(--primary, #7367f0);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 9px;
}

.aq-panel-outstanding {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--text-muted, #6f6b7d);
}

.aq-panel-outstanding strong {
  color: var(--text-dark, #2f2b3d);
}

.aq-item + .aq-item {
  border-top: 1px solid var(--border-color, #ebe9f1);
}

.aq-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  flex-wrap: wrap;
  padding: 10px 14px;
  cursor: pointer;
  transition: var(--transition, all 0.2s ease);
}

.aq-summary:hover,
.aq-summary:focus-visible {
  background: var(--primary-soft, #f0eefd);
}

.aq-summary:focus-visible {
  outline: 2px solid var(--primary, #7367f0);
  outline-offset: -2px;
}

.aq-summary-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.aq-ref {
  font-weight: 600;
  color: var(--text-dark, #2f2b3d);
  white-space: nowrap;
}

.aq-summary-desc {
  color: var(--text-muted, #6f6b7d);
  font-size: 0.85rem;
  max-width: 340px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}

.aq-summary-side {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.aq-summary-side .badge {
  min-width: 78px;
  text-align: center;
}

.aq-amount {
  font-weight: 700;
  color: var(--text-dark, #2f2b3d);
  font-variant-numeric: tabular-nums;
  min-width: 80px;
  text-align: right;
}

/* Additional Quote Date shown on the collapsed summary row */
.aq-released {
  font-size: 0.85rem;
  line-height: 1.25;
  text-align: right;
  min-width: 96px;
  white-space: nowrap;
}

/* Two-line date/time cells (datetime_lines()) across all listing tables */
.dt-date {
  display: block;
  line-height: 1.3;
  white-space: nowrap;
}

.dt-time {
  font-size: 0.82em;
  line-height: 1.3;
  white-space: nowrap;
}

.aq-actions {
  min-width: 96px;
  display: inline-flex;
  justify-content: flex-end;
  align-items: center;
}

.aq-note {
  font-size: 0.78rem;
  color: var(--text-muted, #6f6b7d);
  white-space: nowrap;
}

.aq-chevron {
  color: var(--text-muted, #6f6b7d);
  transition: transform 0.2s ease;
}

.aq-item.aq-open .aq-chevron {
  transform: rotate(180deg);
}

.aq-details {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  padding: 14px 16px 16px;
  background: var(--bg-body, #f8f7fa);
  border-top: 1px dashed var(--border-color, #ebe9f1);
}

.aq-detail {
  flex: 1 1 150px;
  max-width: 200px;
}

.aq-detail-wide {
  flex: 1 1 100%;
  max-width: 100%;
  padding-bottom: 12px;
  margin-bottom: 2px;
  border-bottom: 1px dashed var(--border-color, #ebe9f1);
}

.aq-detail-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted, #6f6b7d);
  margin-bottom: 4px;
}

.aq-detail-value {
  font-size: 0.9rem;
  color: var(--text-dark, #2f2b3d);
  font-weight: 500;
}

.aq-desc-list {
  margin: 0;
  padding-left: 1.1rem;
}

.aq-desc-list li + li {
  margin-top: 2px;
}

.pay-summary {
  background: var(--primary-soft, #f0eefd);
  color: var(--text-dark, #2f2b3d);
  border-radius: var(--radius-sm, 8px);
  font-size: 0.85rem;
  padding: 8px 12px;
  margin-bottom: 12px;
}

@media (max-width: 991.98px) {
  .aq-summary-side {
    gap: 10px;
  }

  .aq-actions {
    min-width: 0;
  }
}

@media (max-width: 575.98px) {
  .aq-summary-side {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .aq-summary-side .badge {
    min-width: 0;
  }

  .aq-amount {
    min-width: 0;
  }

  .aq-panel-outstanding {
    margin-left: 0;
    width: 100%;
  }
  .service-name h6,.form-label,.form-select, .form-control{
    font-size: 13px;
  }
  .form-section-title,.form-section-title h5{
    font-size:16px
  }
  .dashboard-card .btn-group .btn-outline-primary{
    font-size: 12px;
  }
}
