﻿:root {
  --admin-ink: #1a2c2a;
  --admin-green: #0877c9;
  --admin-green-dark: #07599a;
  --admin-accent-green: #159447;
  --admin-muted: #71807e;
  --admin-line: #e8eeeb;
  --admin-sidebar-width: 264px;
}

* {
  box-sizing: border-box;
}

body {
  color: var(--admin-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.admin-body {
  min-height: 100vh;
  background: #f5f7f8;
}

.admin-layout {
  min-height: 100vh;
}

.admin-sidebar {
  --bs-offcanvas-width: var(--admin-sidebar-width);
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1045;
  display: flex;
  flex-direction: column;
  width: var(--admin-sidebar-width);
  color: #eaf4f1;
  background: linear-gradient(180deg, #103f68 0%, #092e4e 100%);
  border: 0;
  box-shadow: 8px 0 30px #092e4e18;
  /* Scroll enabled, scrollbar hidden */
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* Old Edge / IE */
}

/* Chrome, Edge, Safari */
.admin-sidebar::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.sidebar-brand {
  display: block;
  flex: 0 0 auto;
  margin: 17px 14px 26px;
  padding: 10px;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
}

.sidebar-logo {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

.sidebar-mobile-header {
  min-height: 84px;
  padding: 12px 14px;
  background: #fff;
}

.sidebar-mobile-header .navbar-brand {
  width: min(215px, calc(100% - 45px));
  margin: 0;
  padding: 6px;
  border-radius: 9px;
  background: #fff;
}

.sidebar-mobile-header .btn-close {
  margin-left: 8px;
}

.sidebar-section-label {
  padding: 0 22px 10px;
  color: #9fc9e8;
  font-size: .66rem;
  font-weight: 750;
  letter-spacing: .16em;
}

.sidebar-section-spaced {
  padding-top: 22px;
}

.admin-nav {
  gap: 5px;
  padding: 0 12px;
}

.admin-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 48px;
  padding: 0 13px;
  border-radius: 9px;
  color: #d1e2ef;
  font-size: .91rem;
  font-weight: 550;
  transition: background .16s ease, color .16s ease;
}

.admin-nav .nav-link i {
  width: 20px;
  color: #93bfdf;
  font-size: 1rem;
  text-align: center;
}

.admin-nav .nav-link:hover {
  color: white;
  background: #ffffff10;
}

.admin-nav .nav-link.active {
  color: white;
  background: #0877c9;
  box-shadow: inset 3px 0 #28a858;
}

.admin-nav .nav-link.active i {
  color: #e0f2ff;
}

.nav-arrow {
  margin-left: auto;
  font-size: 1.3rem;
  line-height: 1;
  opacity: .75;
}

.sidebar-bottom {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: auto 16px 18px;
  padding: 15px 13px;
  border: 1px solid #ffffff1a;
  border-radius: 11px;
  background: #ffffff08;
}

.sidebar-status-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #5ed39e;
  box-shadow: 0 0 0 4px #5ed39e20;
}

.sidebar-bottom strong,
.sidebar-bottom small {
  display: block;
}

.sidebar-bottom strong {
  color: #eaf4f1;
  font-size: .79rem;
}

.sidebar-bottom small {
  margin-top: 2px;
  color: #9bb9b0;
  font-size: .7rem;
}

.admin-main {
  min-height: 100vh;
  margin-left: var(--admin-sidebar-width);
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 1020;
  min-height: 72px;
  border-bottom: 1px solid var(--admin-line);
  background: #fff;
}

.topbar-context {
  align-items: center;
  gap: 12px;
  color: var(--admin-muted);
  font-size: .84rem;
}

.topbar-context i {
  color: #a8b4b1;
  font-size: .65rem;
}

.topbar-context strong {
  color: var(--admin-ink);
  font-weight: 650;
}

.sidebar-toggle {
  width: 40px;
  height: 40px;
  color: var(--admin-ink);
  font-size: 1.25rem;
}

.admin-identity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-identity strong,
.admin-identity small {
  display: block;
}

.admin-identity strong {
  font-size: .8rem;
}

.admin-identity small {
  margin-top: 2px;
  color: var(--admin-muted);
  font-size: .68rem;
}

.admin-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #d9e9e2;
  border-radius: 50%;
  background: #edf6f1;
  color: var(--admin-green);
  font-size: 1.1rem;
}

.signout-button {
  border-color: #dbe4e1;
  color: #566663;
}

.admin-content {
  padding: 0;
}

.admin-page-content {
  max-width: 1600px;
  margin: 0 auto;
  padding-right: clamp(18px, 3vw, 48px);
  padding-left: clamp(18px, 3vw, 48px);
}

.eyebrow {
  color: var(--admin-green);
  font-size: .7rem;
  font-weight: 750;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.admin-page-content h1 {
  color: var(--admin-ink);
  letter-spacing: -.035em;
}

.admin-page-content h2 {
  color: #213b37;
  letter-spacing: -.02em;
}

.admin-page-content>.text-secondary {
  max-width: 720px;
}

#stats>div>.card,
.admin-page-content .card {
  border: 1px solid var(--admin-line) !important;
  border-radius: 13px;
  box-shadow: 0 4px 15px #1e38310a !important;
}

#stats>div>.card .card-body {
  padding: 22px;
}

#stats .h3 {
  color: var(--admin-green-dark);
  font-size: 1.8rem;
  letter-spacing: -.04em;
}

.table-responsive {
  overflow: auto;
  border: 1px solid var(--admin-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 14px #1e383108;
}

.table {
  margin-bottom: 0;
}

.table> :not(caption)>*>* {
  padding: 13px 15px;
  border-color: var(--admin-line);
}

.table thead th {
  color: #647572;
  background: #f8faf9;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.list-group {
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 3px 14px #1e383108;
}

.list-group-item {
  padding: 16px 18px;
  border-color: var(--admin-line);
}

.form-control,
.form-select {
  border-color: #dce5e2;
  border-radius: 9px;
  padding: .65rem .8rem;
}

.form-control:focus,
.form-select:focus {
  border-color: #75b9a4;
  box-shadow: 0 0 0 .2rem #0877c91a;
}

.btn-primary {
  border-color: var(--admin-green);
  border-radius: 9px;
  background: var(--admin-green);
}

.btn-primary:hover {
  border-color: var(--admin-green-dark);
  background: var(--admin-green-dark);
}

.btn-outline-dark,
.btn-outline-secondary {
  border-radius: 8px;
}

.detail-label {
  color: #778681;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.detail-value {
  margin-top: 4px;
  color: #203b35;
  font-size: .92rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

#recordModal .modal-content,
#providerDetailModal .modal-content {
  border: 1px solid var(--admin-line);
  border-radius: 14px;
}

#recordModal .modal-header,
#providerDetailModal .modal-header {
  border-bottom-color: var(--admin-line);
  background: #fbfcfb;
}

#recordModal .list-group-item,
#providerDetailModal .list-group-item {
  background: transparent;
}

#gridBody td {
  max-width: 320px;
  vertical-align: middle;
}

#gridBody td:first-child {
  color: #263d38;
}

#gridBody .btn {
  white-space: nowrap;
}

.admin-page-content .badge.text-bg-light {
  border: 1px solid #e5ece9;
  color: #52635f !important;
  font-weight: 600;
}

.admin-kpi {
  border-color: #e5ece9 !important;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.admin-kpi:hover {
  transform: translateY(-3px);
  border-color: #c8dfd5 !important;
  box-shadow: 0 10px 25px #173e3312 !important;
}

.admin-kpi .card-body {
  position: relative;
  padding: 20px 21px 18px;
}

.admin-kpi .h3 {
  margin: 15px 0 2px;
  color: #174f43;
}

.kpi-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  font-size: 1rem;
}

.kpi-icon.mint {
  background: #e6f5ee;
  color: #218260;
}

.kpi-icon.blue {
  background: #eaf1fb;
  color: #4777b7;
}

.kpi-icon.amber {
  background: #fff4df;
  color: #b77b18;
}

.kpi-icon.violet {
  background: #f1edfc;
  color: #795bb2;
}

.kpi-icon.rose {
  background: #fcecef;
  color: #bd5566;
}

.admin-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.admin-shortcuts a {
  display: flex;
  min-height: 76px;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid var(--admin-line);
  border-radius: 12px;
  background: #fff;
  color: var(--admin-ink);
  text-decoration: none;
  transition: border-color .16s ease, transform .16s ease;
}

.admin-shortcuts a:hover {
  transform: translateY(-2px);
  border-color: #b8d9cb;
}

.admin-shortcuts a>i:first-child {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border-radius: 10px;
  background: #edf6f1;
  color: var(--admin-green);
}

.admin-shortcuts strong,
.admin-shortcuts small {
  display: block;
}

.admin-shortcuts strong {
  font-size: .82rem;
}

.admin-shortcuts small {
  margin-top: 2px;
  color: var(--admin-muted);
  font-size: .69rem;
}

.admin-shortcuts .ms-auto {
  color: #94a39e;
  font-size: .8rem;
}

@media (min-width: 992px) {
  .admin-sidebar {
    position: fixed !important;
    width: var(--admin-sidebar-width) !important;
    height: 100vh;
    visibility: visible !important;
    transform: none !important;
  }
}

@media (max-width: 991.98px) {
  .admin-main {
    margin-left: 0;
  }

  .admin-topbar {
    min-height: 64px;
  }

  .admin-identity {
    gap: 0;
  }
}

@media (max-width: 575.98px) {
  .admin-page-content {
    padding-top: 26px !important;
  }

  #stats>div>.card .card-body {
    padding: 16px;
  }

  #stats .h3 {
    font-size: 1.5rem;
  }

  .signout-button {
    padding-right: 9px;
    padding-left: 9px;
  }
}

/* Dedicated, data-driven admin module pages */
.admin-nav .sidebar-section-label {
  margin: 14px 0 2px;
  padding: 0 20px 7px;
  color: #8eafa5;
  font-size: .64rem;
  font-weight: 750;
  letter-spacing: .11em;
}

.admin-nav .sidebar-section-spaced {
  margin-top: 19px;
  padding-top: 0;
}

.admin-nav .nav-link {
  min-height: 42px;
  margin: 2px 10px;
  padding: 10px 13px;
  border-radius: 9px;
  font-size: .84rem;
}

.admin-nav .nav-link i {
  width: 19px;
  font-size: .95rem;
}

.ops-page {
  max-width: 1600px;
}

.ops-heading {
  margin-bottom: 4px;
}

.ops-heading p {
  max-width: 720px;
}

.ops-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 25px;
}

.ops-subnav a {
  padding: 8px 14px;
  border: 1px solid #dce7e2;
  border-radius: 999px;
  background: #fff;
  color: #546963;
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  transition: .15s ease;
}

.ops-subnav a:hover,
.ops-subnav a.active {
  border-color: #b7d9ca;
  background: #eaf5ef;
  color: #176c59;
}

.btn-admin-primary {
  border-color: #176c59;
  background: #176c59;
  color: #fff;
  font-weight: 650;
}

.btn-admin-primary:hover,
.btn-admin-primary:focus {
  border-color: #105344;
  background: #105344;
  color: #fff;
}

.ops-table-card {
  overflow: hidden;
  border: 1px solid #e3ebe7;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 5px 20px #193d3308;
}

.ops-toolbar {
  min-height: 72px;
  border-bottom: 1px solid #e8eeeb;
}

.ops-search {
  width: min(100%, 350px);
}

.ops-search .input-group-text {
  border-color: #dce6e1;
  border-right: 0;
  border-radius: 9px 0 0 9px;
  background: #f8faf9;
  color: #70817b;
}

.ops-search .form-control {
  border-left: 0;
  border-radius: 0 9px 9px 0;
}

.ops-status {
  width: auto;
  min-width: 160px;
  border-radius: 9px;
}

.ops-table-card .table {
  --bs-table-bg: #fff;
}

.ops-table-card thead th {
  padding: 13px 16px;
  border-bottom: 1px solid #e6ece9;
  background: #f8faf9;
  color: #60736c;
  font-size: .69rem;
  font-weight: 750;
  letter-spacing: .055em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ops-table-card tbody td {
  max-width: 340px;
  padding: 15px 16px;
  border-color: #edf1ef;
  color: #43554f;
  font-size: .83rem;
  vertical-align: middle;
}

.ops-table-card tbody tr:hover td {
  background: #fbfdfc;
}

.ops-table-card tbody td:first-child {
  color: #203b34;
  font-weight: 650;
}

.ops-table-card .btn {
  border-radius: 7px;
  font-size: .74rem;
  font-weight: 600;
}

.empty-state {
  height: 220px;
  text-align: center;
}

.empty-state i,
.empty-state strong,
.empty-state span {
  display: block;
}

.empty-state i {
  margin-bottom: 10px;
  color: #9aada5;
  font-size: 1.7rem;
}

.empty-state strong {
  color: #334d45;
  font-size: .92rem;
}

.empty-state span {
  margin-top: 4px;
  color: #87958f;
  font-size: .8rem;
}

#recordModal .modal-content {
  overflow: hidden;
  border: 1px solid #e1eae5;
  border-radius: 16px;
  box-shadow: 0 20px 70px #102e2729;
}

#recordModal .modal-header {
  padding: 20px 24px;
  border-bottom-color: #e8eeeb;
  background: #fbfdfc;
}

#recordModal .modal-body {
  padding: 24px;
}

#recordModal .modal-footer {
  padding: 16px 24px;
  border-top-color: #e8eeeb;
  background: #fbfdfc;
}

#recordModal .form-label {
  color: #334a43;
  font-size: .82rem;
  font-weight: 650;
}

#recordModal .form-control,
#recordModal .form-select {
  border-color: #dce6e1;
  border-radius: 9px;
  font-size: .87rem;
}

.detail-label {
  color: #81908b;
  font-size: .69rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.detail-value {
  overflow-wrap: anywhere;
  margin-top: 4px;
  color: #29433b;
  font-size: .86rem;
}

.permission-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 3px;
  border-bottom: 1px solid #edf1ef;
  cursor: pointer;
}

.permission-row strong,
.permission-row small {
  display: block;
}

.permission-row strong {
  color: #344f46;
  font-size: .84rem;
}

.permission-row small {
  margin-top: 3px;
  color: #87958f;
  font-size: .72rem;
}

.permission-row .form-check-input {
  width: 2.2em;
  height: 1.15em;
  margin: 2px 0;
}

.admin-toast-container {
  z-index: 1100;
  width: min(420px, 100vw);
}

.admin-toast {
  width: 100%;
  overflow: hidden;
  transform: translate3d(26px, -5px, 0) scale(.985);
  border: 1px solid #dce8e2;
  border-radius: 15px;
  background: #fff;
  opacity: 0;
  box-shadow: 0 16px 45px #123a302b;
  transition: opacity .24s ease, transform .3s cubic-bezier(.2, .8, .2, 1);
}

.admin-toast.success {
  border-color: #b6ddc4;
  background: #e7f4eb;
}

.admin-toast.danger {
  border-color: #f1c7c5;
  background: #fff3f2;
}

.admin-toast.warning {
  border-color: #eeddb6;
  background: #fffaf0;
}

.admin-toast.info {
  border-color: #c8e0ed;
  background: #f2f9fc;
}

.admin-toast.showing,
.admin-toast.show {
  transform: translate3d(0, 0, 0) scale(1);
  opacity: 1;
}

.admin-toast.hide {
  transform: translate3d(20px, -3px, 0) scale(.985);
  opacity: 0;
}

.admin-toast-content {
  min-height: 82px;
  align-items: center !important;
}

.admin-toast-copy {
  min-width: 0;
  flex: 1;
  padding: 13px 5px 13px 0;
}

.admin-toast-copy>strong {
  display: block;
  margin-bottom: 2px;
  color: #203d33;
  font-size: .82rem;
  font-weight: 750;
  letter-spacing: .01em;
}

.admin-toast .toast-body {
  padding: 0;
  color: #536a61;
  font-size: .86rem;
  font-weight: 520;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.admin-toast-icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  margin: 0 14px 0 18px;
  border-radius: 50%;
  font-size: 1.05rem;
}

.admin-toast-icon.success {
  background: #e4f4eb;
  color: #168153;
}

.admin-toast-icon.danger {
  background: #fde9e8;
  color: #c43d3d;
}

.admin-toast-icon.warning {
  background: #fff2d8;
  color: #9b6811;
}

.admin-toast-icon.info {
  background: #e5f2fa;
  color: #247da6;
}

.admin-toast-close {
  flex: 0 0 auto;
  margin: 0 17px 0 10px;
  padding: 7px;
  opacity: .4;
}

.admin-toast-close:hover {
  opacity: .75;
}

.admin-toast-progress {
  height: 3px;
  background: #f0f4f1;
}

.admin-toast-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(1);
  transform-origin: left center;
  background: #238461;
}

.admin-toast-progress span.running {
  animation: admin-toast-countdown linear forwards;
}

.admin-toast-icon.toast-pop {
  animation: admin-toast-icon-pop .36s cubic-bezier(.18, .89, .32, 1.28) both;
}

.admin-toast-icon.toast-shake {
  animation: admin-toast-icon-shake .4s ease both;
}

.admin-toast-progress.success span {
  background: #238461;
}

.admin-toast-progress.danger span {
  background: #d64d4d;
}

.admin-toast-progress.warning span {
  background: #c58a20;
}

.admin-toast-progress.info span {
  background: #3183a8;
}

@keyframes admin-toast-countdown {
  to {
    transform: scaleX(0);
  }
}

@keyframes admin-toast-icon-pop {
  from {
    transform: scale(.72);
    opacity: .4;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes admin-toast-icon-shake {
  0% {
    transform: rotate(-8deg) scale(.8);
  }

  65% {
    transform: rotate(5deg) scale(1.06);
  }

  100% {
    transform: rotate(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {

  .admin-toast,
  .admin-toast-icon,
  .admin-toast-progress span {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 575.98px) {
  .ops-heading {
    align-items: flex-start !important;
  }

  .ops-heading>div:last-child {
    width: 100%;
  }

  .ops-heading>div:last-child .btn {
    flex: 1;
  }

  .ops-toolbar {
    align-items: stretch !important;
  }

  .ops-search,
  .ops-status {
    width: 100%;
  }

  .ops-toolbar #resultCount {
    width: 100%;
    margin: 0 !important;
  }
}

@media (max-width: 1199.98px) {
  .admin-shortcuts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .admin-shortcuts {
    grid-template-columns: 1fr;
  }
}

/* HomeMaker admin sign-in */
.admin-login-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 36px;
  background: radial-gradient(ellipse at 12% 6%, #e4f2eb 0, transparent 31%), #f3f6f5;
}

.login-shell {
  display: grid;
  width: min(1080px, 100%);
  min-height: 660px;
  grid-template-columns: .92fr 1.08fr;
  overflow: hidden;
  border: 1px solid #e7eeea;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 28px 80px #193d3317, 0 3px 12px #193d3308;
}

.login-brand-panel {
  position: relative;
  display: flex;
  min-height: 660px;
  flex-direction: column;
  overflow: hidden;
  padding: 38px 42px 30px;
  color: #fff;
  background: linear-gradient(148deg, #176c59 0%, #145646 58%, #103e37 100%);
}

.login-brand-panel::before,
.login-brand-panel::after {
  position: absolute;
  border: 1px solid #ffffff12;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.login-brand-panel::before {
  top: 37%;
  right: -170px;
  width: 430px;
  height: 430px;
}

.login-brand-panel::after {
  top: 44%;
  right: -100px;
  width: 290px;
  height: 290px;
}

.login-brand {
  z-index: 1;
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 11px;
  color: #fff;
  font-size: 1.13rem;
  font-weight: 750;
  text-decoration: none;
  letter-spacing: -.025em;
}

.login-brand small,
.login-mobile-brand small {
  display: block;
  margin-top: 3px;
  color: #c4e4d8;
  font-size: .58rem;
  font-weight: 750;
  letter-spacing: .18em;
}

.login-brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #ffffff3b;
  border-radius: 13px;
  background: #ffffff18;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
}

.login-brand-content {
  z-index: 1;
  max-width: 390px;
  margin-top: 76px;
}

.login-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid #ffffff26;
  border-radius: 999px;
  background: #ffffff10;
  color: #d6f1e6;
  font-size: .72rem;
  font-weight: 650;
  letter-spacing: .03em;
}

.login-brand-content h1 {
  margin: 24px 0 15px;
  color: #fff;
  font-size: clamp(2rem, 3.4vw, 2.65rem);
  font-weight: 720;
  line-height: 1.18;
  letter-spacing: -.045em;
}

.login-brand-content h1 em {
  color: #9fe0bf;
  font-style: normal;
}

.login-brand-content p {
  max-width: 340px;
  margin: 0;
  color: #d0e3dc;
  font-size: .98rem;
  line-height: 1.7;
}

.login-art {
  position: absolute;
  right: 25px;
  bottom: 100px;
  display: grid;
  width: 225px;
  height: 180px;
  place-items: center;
}

.login-art-ring {
  position: absolute;
  width: 162px;
  height: 162px;
  border: 1px solid #ffffff36;
  border-radius: 50%;
  box-shadow: 0 0 0 18px #ffffff08, 0 0 0 38px #ffffff06;
}

.login-art-house {
  z-index: 1;
  display: grid;
  width: 106px;
  height: 106px;
  place-items: center;
  transform: rotate(-4deg);
  border: 1px solid #ffffff35;
  border-radius: 30px;
  background: #f6c78b;
  color: #176c59;
  font-size: 3.55rem;
  box-shadow: 10px 13px 0 #0e3b3338;
}

.login-art-check {
  position: absolute;
  z-index: 2;
  right: 27px;
  bottom: 18px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 3px solid #17634f;
  border-radius: 50%;
  background: #a9e1bd;
  color: #145646;
  font-size: 1.15rem;
}

.login-brand-footer {
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: #c1ded4;
  font-size: .73rem;
}

.login-form-panel {
  display: grid;
  place-items: center;
  padding: 54px clamp(36px, 6.5vw, 78px);
}

.login-form-wrap {
  width: min(100%, 420px);
}

.login-mobile-brand {
  display: none;
  align-items: center;
  gap: 11px;
  color: var(--admin-ink);
  font-size: 1.05rem;
  font-weight: 750;
}

.login-mobile-brand .login-brand-mark {
  border-color: var(--admin-green);
  background: var(--admin-green);
  color: #fff;
  box-shadow: 0 5px 12px #0877c924;
}

.login-mobile-brand small {
  color: var(--admin-green);
}

.login-eyebrow {
  color: var(--admin-green);
  font-size: .68rem;
  font-weight: 750;
  letter-spacing: .15em;
}

.login-form-heading h2 {
  margin: 12px 0 8px;
  color: var(--admin-ink);
  font-size: 2.15rem;
  font-weight: 740;
  letter-spacing: -.045em;
}

.login-form-heading p {
  margin: 0 0 31px;
  color: #71807e;
  font-size: .94rem;
  line-height: 1.6;
}

.login-form-panel .form-label {
  margin-bottom: 8px;
  color: #263b37;
  font-size: .84rem;
  font-weight: 650;
}

.login-input-group .input-group-text {
  padding: .78rem .9rem;
  border-color: #dce6e1;
  border-radius: 10px 0 0 10px;
  background: #f7faf8;
  color: #425b54;
  font-size: .88rem;
}

.login-input-group .form-control {
  min-height: 50px;
  padding-left: 14px;
  border-radius: 0 10px 10px 0;
  font-size: .92rem;
}

.login-form-panel .form-text {
  margin-top: 7px;
  color: #879490;
  font-size: .73rem;
}

.login-otp-input {
  min-height: 52px;
  font-size: 1.05rem;
  letter-spacing: .2em;
}

.login-otp-wrap .form-control {
  border-radius: 10px;
}

.login-resend {
  padding: 7px 0 0;
  color: var(--admin-green);
  font-size: .79rem;
  font-weight: 650;
  text-decoration: none;
}

.login-resend:hover {
  color: var(--admin-green-dark);
  text-decoration: underline;
}

.login-submit {
  display: flex;
  min-height: 51px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 10px;
  font-size: .92rem;
  font-weight: 650;
  box-shadow: 0 7px 16px #0877c924;
}

.login-submit i {
  transition: transform .18s ease;
}

.login-submit:hover i {
  transform: translateX(3px);
}

.login-notice {
  margin: 0 0 20px;
  border-radius: 10px;
  font-size: .86rem;
}

.login-bottom-note {
  display: flex;
  gap: 9px;
  margin-top: 27px;
  color: #788783;
  font-size: .77rem;
  line-height: 1.5;
}

.login-bottom-note i {
  color: var(--admin-green);
}

.login-protection {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 47px;
  padding-top: 18px;
  border-top: 1px solid #edf1ef;
  color: #96a29f;
  font-size: .7rem;
}

.login-protection i {
  color: var(--admin-green);
}

@media (max-width: 767.98px) {
  .admin-login-page {
    display: grid;
    min-height: 100svh;
    place-items: center;
    padding: 20px 14px;
    background: linear-gradient(145deg, #eaf3ee 0%, #f5f7f6 48%, #edf3f0 100%);
  }

  .login-shell {
    position: relative;
    display: block;
    width: min(100%, 460px);
    min-height: 0;
    border: 1px solid #e3ece7;
    border-radius: 20px;
    box-shadow: 0 18px 50px #193d3318, 0 2px 8px #193d3308;
  }

  .login-shell::before {
    position: absolute;
    top: 0;
    right: 24px;
    left: 24px;
    height: 4px;
    border-radius: 0 0 5px 5px;
    background: linear-gradient(90deg, #176c59, #8bc9a7);
    content: "";
  }

  .login-brand-panel {
    display: none;
  }

  .login-form-panel {
    display: block;
    min-height: 0;
    padding: 30px 25px 25px;
  }

  .login-form-wrap {
    width: min(100%, 440px);
    margin: 0 auto;
  }

  .login-mobile-brand {
    display: flex;
    margin-bottom: 34px;
  }

  .login-form-heading h2 {
    margin-top: 9px;
    font-size: 1.8rem;
  }

  .login-form-heading p {
    margin-bottom: 25px;
  }

  .login-protection {
    margin-top: 26px;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .admin-login-page {
    padding: 28px;
  }

  .login-shell {
    display: block;
    width: min(540px, 100%);
    min-height: 620px;
  }

  .login-brand-panel {
    display: none;
  }

  .login-form-panel {
    min-height: 620px;
    padding: 48px;
  }

  .login-mobile-brand {
    display: flex;
    margin-bottom: 45px;
  }
}

@media (max-width: 380px) {
  .admin-login-page {
    padding: 12px 9px;
  }

  .login-form-panel {
    padding: 27px 20px 22px;
  }

  .login-mobile-brand {
    margin-bottom: 29px;
  }

  .login-bottom-note {
    font-size: .73rem;
  }
}

/* Compact administrator sign-in and password recovery */
.login-simple-page {
  min-height: 100vh;
  grid-template-columns: 1fr;
  justify-items: center;
  padding: 24px 18px;
  background: radial-gradient(ellipse at 50% 0, #e6f3ed 0, transparent 36%), #f3f6f5;
}

.login-simple-card {
  width: min(100%, 510px);
  justify-self: center;
  padding: 28px 38px 22px;
  border: 1px solid #e5ece8;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 65px #173d3312, 0 2px 8px #173d3308;
}

.login-simple-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto 25px;
  color: var(--admin-ink);
  font-size: 1.05rem;
  font-weight: 760;
  line-height: 1.15;
  text-decoration: none;
}

.login-brand-logo {
  display: block;
  width: min(100%, 150px);
  height: auto;
}

.login-simple-brand small {
  display: block;
  margin-top: 5px;
  color: #79918a;
  font-size: .57rem;
  font-weight: 750;
  letter-spacing: .18em;
  text-align: center;
}

.login-simple-logo {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 4px solid #e6f4ed;
  border-radius: 17px;
  background: linear-gradient(145deg, #0877c9, #159447);
  color: #fff;
  font-size: 1.8rem;
  font-weight: 800;
  box-shadow: 0 6px 14px #176c5930;
}

.login-simple-card .login-form-heading h1 {
  margin: 11px 0 8px;
  color: var(--admin-ink);
  font-size: 2rem;
  font-weight: 740;
  letter-spacing: -.045em;
}

.login-simple-card .login-form-heading p {
  margin: 0 0 25px;
  color: #71807e;
  font-size: .92rem;
  line-height: 1.6;
}

.login-simple-card .form-label {
  margin-bottom: 8px;
  color: #263b37;
  font-size: .83rem;
  font-weight: 650;
}

.login-simple-card .login-input-group .input-group-text {
  min-width: 49px;
  justify-content: center;
  border-color: #dce6e1;
  background: #f7faf8;
  color: #476057;
}

.login-simple-card .login-input-group .form-control {
  min-height: 49px;
  font-size: .92rem;
}

.login-simple-card .login-input-group> :first-child {
  border-radius: 10px 0 0 10px;
}

.login-simple-card .login-input-group> :last-child {
  border-radius: 0 10px 10px 0;
}

.login-simple-card .login-password-toggle {
  cursor: pointer;
}

.login-text-button,
.login-back-button {
  padding: 5px 0;
  border: 0;
  background: transparent;
  color: var(--admin-green);
  font-size: .8rem;
  font-weight: 650;
}

.login-text-button:hover,
.login-back-button:hover {
  color: var(--admin-green-dark);
  text-decoration: underline;
}

.login-back-button {
  margin: -8px 0 18px;
}

.login-step-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin: 0 0 15px;
  place-items: center;
  border-radius: 14px;
  background: #eaf5ef;
  color: var(--admin-green);
  font-size: 1.25rem;
}

.login-code-input {
  min-height: 54px;
  border-color: #dce6e1;
  border-radius: 10px;
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: .45em;
  text-align: center;
}

.login-code-input:focus {
  border-color: #75b9a4;
  box-shadow: 0 0 0 .2rem #0877c91a;
}

.login-simple-card .login-notice {
  font-size: .82rem;
}

.login-simple-card .login-bottom-note {
  margin-top: 22px;
  font-size: .75rem;
}

.login-simple-card .login-protection {
  margin-top: 22px;
}

@media (max-width: 575.98px) {
  .login-simple-page {
    padding: 16px 13px;
  }

  .login-simple-card {
    padding: 25px 23px 20px;
    border-radius: 16px;
  }

  .login-simple-brand {
    margin-bottom: 28px;
  }
}

/* Admin list numbering and consistent row actions */
.admin-content table.table thead th,
.admin-content #gridHead th {
  text-align: center !important;
  vertical-align: middle;
}

.admin-content table.table tbody td,
.admin-content #gridBody td {
  text-align: center;
  vertical-align: middle;
}

.admin-content table.table tbody td .admin-row-actions,
.admin-content #gridBody td .admin-row-actions {
  justify-content: center;
}

.sr-column {
  width: 78px;
  white-space: nowrap;
}

.sr-cell {
  width: 78px;
}

.row-number {
  display: inline-grid;
  min-width: 30px;
  height: 30px;
  padding: 0 7px;
  place-items: center;
  border: 1px solid #d8e8e1;
  border-radius: 9px;
  background: linear-gradient(145deg, #f1f8f4, #e6f2ec);
  color: #176b57;
  font-size: .76rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.admin-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
  min-width: max-content;
}

.btn-admin-action {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: .76rem;
  font-weight: 680;
  line-height: 1.1;
  white-space: nowrap;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.btn-admin-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 12px #183b3215;
}

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

.btn-action-view {
  border-color: #d5e4ee;
  background: #edf5fa;
  color: #285c78;
}

.btn-action-view:hover {
  border-color: #b8d3e3;
  background: #e2eff7;
  color: #1b4e69;
}

.btn-action-edit {
  border-color: #dcd6f5;
  background: #f1effb;
  color: #5d4b9b;
}

.btn-action-edit:hover {
  border-color: #c9c0eb;
  background: #e9e5f8;
  color: #493a82;
}

.btn-action-success {
  border-color: #b8ddca;
  background: #e2f2e9;
  color: #176b49;
}

.btn-action-success:hover {
  border-color: #94cdb0;
  background: #d2eadc;
  color: #10583b;
}

.btn-action-danger {
  border-color: #f0c6c5;
  background: #fbebea;
  color: #a53c38;
}

.btn-action-danger:hover {
  border-color: #e6a9a7;
  background: #f7dddc;
  color: #8f2d29;
}

.btn-action-neutral {
  border-color: #e8d9b8;
  background: #fbf4e5;
  color: #80601f;
}

.btn-action-neutral:hover {
  border-color: #dfc88f;
  background: #f6ebd2;
  color: #684b15;
}

.btn-action-manage {
  border-color: #b9dfd8;
  background: #e6f4f1;
  color: #146b60;
}

.btn-action-manage:hover {
  border-color: #94cec4;
  background: #d7eeea;
  color: #0e574d;
}

/* Filled action colors keep labels readable at a glance in admin tables. */
.btn.btn-admin-action.btn-action-view {
  border-color: #176284;
  background: #176b8a;
  color: #fff;
}

.btn.btn-admin-action.btn-action-view:hover {
  border-color: #10536d;
  background: #105b79;
  color: #fff;
}

.btn.btn-admin-action.btn-action-edit {
  border-color: #51408f;
  background: #5d4b9b;
  color: #fff;
}

.btn.btn-admin-action.btn-action-edit:hover {
  border-color: #423477;
  background: #4e3d89;
  color: #fff;
}

.btn.btn-admin-action.btn-action-success {
  border-color: #126543;
  background: #16734e;
  color: #fff;
}

.btn.btn-admin-action.btn-action-success:hover {
  border-color: #0e5235;
  background: #105f40;
  color: #fff;
}

.btn.btn-admin-action.btn-action-danger {
  border-color: #a82f32;
  background: #b9363a;
  color: #fff;
}

.btn.btn-admin-action.btn-action-danger:hover {
  border-color: #8e2528;
  background: #a42c30;
  color: #fff;
}

.btn.btn-admin-action.btn-action-neutral {
  border-color: #79571b;
  background: #89631e;
  color: #fff;
}

.btn.btn-admin-action.btn-action-neutral:hover {
  border-color: #644713;
  background: #765419;
  color: #fff;
}

.btn.btn-admin-action.btn-action-manage {
  border-color: #115b52;
  background: #146b60;
  color: #fff;
}

.btn.btn-admin-action.btn-action-manage:hover {
  border-color: #0d493f;
  background: #10584e;
  color: #fff;
}

.btn.btn-admin-action:focus-visible {
  outline: 3px solid #1d79613d;
  outline-offset: 2px;
}

.request-list-row {
  position: relative;
  padding-left: 62px !important;
}

.request-row-number {
  position: absolute;
  top: 19px;
  left: 17px;
}

.dashboard-request-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.dashboard-request-row .row-number {
  flex: 0 0 auto;
  margin-top: 2px;
}

.match-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid #edf1ef;
}

.photo-review-card {
  overflow: hidden;
  border: 1px solid #e4ece8 !important;
  border-radius: 14px;
}

.photo-review-card .photo-review {
  width: 100%;
  max-height: 210px;
  object-fit: cover;
  background: #f0f4f2;
}

#gridBody td.actions-column {
  min-width: 240px;
}

#gridBody td.sr-cell {
  max-width: none;
}

@media (max-width: 767.98px) {
  .admin-row-actions {
    justify-content: flex-start;
    min-width: 0;
  }

  #gridBody td.actions-column {
    min-width: 205px;
  }

  .request-list-row {
    padding-left: 56px !important;
  }

  .request-row-number {
    left: 13px;
  }
}