@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Poppins:wght@500;600&display=swap");

:root {
  --color-brand-blue: #008dd2;
  --color-brand-blue-hover: #0077b3;
  --color-brand-green: #7dc242;

  --color-status-success: #7dc242;
  --color-status-success-bg: #eaf5e1;
  --color-status-pending: #d97706;
  --color-status-pending-bg: #fef3c7;
  --color-status-danger: #ef4444;
  --color-status-danger-bg: #fee2e2;
  --color-status-info: #008dd2;
  --color-status-info-bg: #e0f2fe;
  /* "Approved" (internal workflow) must not read as "Won" (commercial outcome), so it gets its
     own teal instead of reusing the success green. */
  --color-status-approved: #0f766e;
  --color-status-approved-bg: #ccfbf1;
  /* Lost / cancelled: muted rather than alarming — they are closed, not broken. */
  --color-status-muted: #57534e;
  --color-status-muted-bg: #ede9e6;

  --color-bg-app: #f8fafc;
  --color-bg-surface: #ffffff;
  --color-text-primary: #1e293b;
  --color-text-secondary: #64748b;
  --color-border-subtle: #e2e8f0;

  --font-heading: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --font-size-body: 14px;
  --font-size-control: 13px;
  --font-size-page-title: 22px;
  --font-size-section-title: 16px;
  --font-size-meta: 11px;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);

  --motion-fast: 0.2s ease-in-out;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--color-bg-app);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: var(--font-size-body);
}


body.drawer-open {
  overflow: hidden;
}

/* Mobile nav toggle button strictly hidden on desktop */
.mobile-nav-toggle {
  display: none;
}

.mobile-account-menu {
  display: none;
}

/* Mobile Bottom Sheet Overlay default hidden on desktop */
.bottom-sheet-overlay {
  display: none !important;
}

a {
  color: var(--color-brand-blue);
  text-decoration: none;
  transition: var(--motion-fast);
}

a:hover {
  color: var(--color-brand-blue-hover);
}

.wrap {
  max-width: 1500px;
  margin: 0 auto;
  padding: 24px;
}

.card {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 16px;
}

.row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-subtle);
  color: var(--color-text-primary);
  cursor: pointer;
  transition: var(--motion-fast);
  font-family: var(--font-body);
  font-size: var(--font-size-control);
  font-weight: 500;
}

button.btn,
summary.btn,
a.btn,
span.btn {
  font-family: var(--font-body);
}

.btn:hover {
  transform: translateY(-1px);
  border-color: var(--color-brand-blue);
}

.btn-primary {
  background: var(--color-brand-blue);
  border-color: var(--color-brand-blue);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--color-brand-blue-hover);
  border-color: var(--color-brand-blue-hover);
  color: #ffffff;
}

.btn-sm {
  padding: 6px 10px;
  font-size: 12px;
}

.input,
select {
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-subtle);
  background: var(--color-bg-surface);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: var(--font-size-control);
}

.input:focus,
select:focus {
  outline: none;
  border-color: var(--color-brand-blue);
}

.help-icon {
  color: var(--muted);
  cursor: help;
  margin-left: 4px;
  font-size: 13px;
  transition: color var(--motion-fast);
}
.help-icon:hover {
  color: var(--color-brand-blue);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

th,
td {
  padding: 10px;
  border-bottom: 1px solid var(--color-border-subtle);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--color-text-secondary);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.35px;
  background: rgba(15, 23, 42, 0.03);
}

td {
  font-size: 13px;
}

tbody tr:hover {
  background: rgba(0, 141, 210, 0.05);
}

.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--color-border-subtle);
  margin-right: 6px;
  font-size: 12px;
  background: var(--color-bg-surface);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

.badge-pending {
  background: #FEF3C7;
  color: #92400E;
}

.badge-info {
  background: #DBEAFE;
  color: #1E40AF;
}

.badge-purple {
  background: #EDE9FE;
  color: #5B21B6;
}

.badge-success {
  background: #DCFCE7;
  color: #166534;
}

.badge-danger {
  background: #FEE2E2;
  color: #991B1B;
}

.text-danger {
  color: #b42318 !important;
}

.badge-neutral {
  background: #F1F5F9;
  color: #475569;
}

.muted {
  color: var(--color-text-secondary);
}

.is-hidden {
  display: none !important;
}

.admin-user-create {
  padding: 20px;
}

.auc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.auc-header h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 20px;
}

.auc-subtitle,
.auc-section-subtitle {
  margin-top: 4px;
  font-size: 13px;
}

.auc-lookup {
  padding: 14px;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  background: #f8fafc;
}

.auc-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.auc-section-title {
  font-weight: 600;
}

.auc-searchbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.auc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.auc-field > span {
  font-size: 13px;
}

.auc-field .input,
.auc-field select {
  width: 100%;
}

.auc-search-field {
  max-width: 520px;
}

.auc-selected {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid rgba(125, 194, 66, 0.45);
  border-radius: var(--radius-md);
  background: #f6fbf2;
}

.auc-avatar,
.auc-result-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #e0f2fe;
  color: #075985;
  font-weight: 700;
}

.auc-avatar {
  width: 36px;
  height: 36px;
}

.auc-selected-main {
  min-width: 0;
}

.auc-selected-name,
.auc-result-name {
  display: block;
  font-weight: 600;
}

.auc-selected-meta,
.auc-result-meta {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.auc-results {
  margin-top: 12px;
}

.auc-results-list {
  display: grid;
  gap: 8px;
}

.auc-result {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 10px;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  background: var(--color-bg-surface);
  color: var(--color-text-primary);
  text-align: left;
  cursor: pointer;
  font-family: var(--font-body);
  transition: var(--motion-fast);
}

.auc-result:hover,
.auc-result.is-selected {
  border-color: var(--color-brand-blue);
  box-shadow: 0 0 0 3px rgba(0, 141, 210, 0.12);
}

.auc-result:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.auc-result-avatar {
  width: 34px;
  height: 34px;
}

.auc-result-main {
  min-width: 0;
}

.auc-form {
  margin-top: 16px;
}

.auc-form-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) minmax(220px, 1fr) minmax(150px, 0.7fr) minmax(150px, 0.7fr);
  gap: 12px;
  align-items: end;
}

.auc-advanced {
  margin-top: 12px;
}

.auc-advanced summary,
.auc-permissions summary {
  color: var(--color-text-secondary);
  cursor: pointer;
  font-weight: 500;
}

.auc-advanced-grid {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(220px, 320px);
  gap: 12px;
  margin-top: 10px;
}

.auc-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.auc-actions .btn {
  min-width: 130px;
}

.auc-permissions {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border-subtle);
}

.auc-permissions ul {
  margin-top: 10px !important;
  columns: 2;
}

.arrow-icon {
  display: inline-block;
  margin-left: 6px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}


.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.app-topbar {
  padding: 14px 16px;
}

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

.brand .logo {
  width: 64px;
  height: 36px;
  flex: 0 0 auto;
  object-fit: contain;
  box-sizing: border-box;
  padding: 2px;
  border-radius: var(--radius-md);
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-subtle);
}

.brand .title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.app-version-badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--color-brand-blue);
  color: var(--color-bg-surface);
  font-family: var(--font-body);
  font-size: var(--font-size-meta);
  font-weight: 600;
  line-height: 1;
}

.brand-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.app-subtitle {
  font-size: 12px;
}

.page-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: var(--font-size-page-title);
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text-primary);
}

.small {
  font-size: 12px;
}

.topbar-actions {
  justify-content: flex-end;
}

.section-card {
  margin-top: 16px;
}

.section-title-row {
  font-size: var(--font-size-section-title);
  font-weight: 600;
  margin-bottom: 10px;
}

.section-title-row.tight {
  margin-bottom: 6px;
}

.page-alert {
  margin-bottom: 16px;
  border-left: 4px solid #94a3b8;
}

.page-alert--error {
  border-left-color: #dc2626;
}

.page-alert--success {
  border-left-color: #16a34a;
}

.page-alert--info {
  border-left-color: var(--color-brand-blue);
}

.page-alert-title {
  font-weight: 600;
  margin-bottom: 6px;
}

.page-block-actions {
  margin-top: 10px;
}

.table-wrap {
  overflow: auto;
}

.table-plain {
  width: 100%;
  border-collapse: collapse;
}

.table-plain th {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid var(--color-border-subtle);
  color: var(--color-text-secondary);
  font-size: 12px;
  background: transparent;
}

.table-plain td {
  padding: 10px;
  border-bottom: 1px solid var(--color-border-subtle);
}

.planned-list {
  margin: 0;
  padding-left: 18px;
  line-height: 1.8;
}

.u-gap-16 {
  gap: 16px;
}

.u-card-flat {
  margin: 0;
}

.u-line-17 {
  line-height: 1.7;
}

.u-mt-4 {
  margin-top: 4px;
}

.u-mt-6 {
  margin-top: 6px;
}

.u-mt-8 {
  margin-top: 8px;
}

.u-mt-12 {
  margin-top: 12px;
}

.u-mb-10 {
  margin-bottom: 10px;
}

.client-edit-page {
  padding: 0;
  overflow: hidden;
}

.client-edit-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--color-border-subtle);
}

.client-edit-subtitle {
  margin-top: 4px;
}

.client-detail-subtitle {
  margin-top: 4px;
}

.client-empty-project-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(0, 141, 210, 0.2);
  border-radius: var(--radius-md);
  background: rgba(0, 141, 210, 0.06);
}

.client-empty-title {
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 4px;
}

.client-section-headline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.client-edit-form {
  display: grid;
  gap: 0;
}

.client-form-section {
  padding: 18px 22px;
  border-bottom: 1px solid var(--color-border-subtle);
}

.client-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.client-section-title {
  font-weight: 600;
  color: var(--color-text-primary);
}

.client-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--color-border-subtle);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.client-status-pill--active {
  background: #dcfce7;
  border-color: #bbf7d0;
  color: #166534;
}

.client-status-pill--inactive {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #475569;
}

.client-status-pill--archived {
  background: #fee2e2;
  border-color: #fecaca;
  color: #991b1b;
}

.client-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 16px 22px;
  align-items: start;
}

.client-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.client-field--wide {
  grid-column: 1 / -1;
}

.client-field--compact {
  max-width: 260px;
}

.client-field label {
  font-size: 12px;
  color: var(--color-text-secondary);
}

.client-field label span {
  color: var(--color-status-danger);
}

.client-field .input,
.client-field select {
  width: 100%;
  min-height: 40px;
}

.client-contact-details {
  margin: 0;
}

.client-contact-details summary {
  cursor: pointer;
  list-style-position: outside;
}

.client-contact-details summary .small {
  display: block;
  margin-top: 4px;
  font-weight: 400;
}

.client-contact-grid {
  margin-top: 16px;
}

.client-contact-list {
  display: grid;
  gap: 14px;
}

.client-contact-row {
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  background: #fff;
  padding: 14px;
}

.client-contact-row-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.client-primary-choice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--color-text-primary);
  font-size: 13px;
  font-weight: 600;
}

.client-primary-choice input {
  width: auto;
}

.client-contact-limit-note {
  margin-top: 10px;
}

.client-form-actions {
  display: flex;
  justify-content: flex-end;
  padding: 16px 22px;
  background: #f8fafc;
  border-bottom: 1px solid var(--color-border-subtle);
}

.client-form-actions .btn {
  min-width: 118px;
  text-align: center;
}

.client-danger-zone {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 18px 22px;
  background: #fff7f7;
}

.btn-danger-soft {
  border-color: #fecaca;
  color: #991b1b;
  background: #ffffff;
}

.btn-danger-soft:hover {
  border-color: #ef4444;
  background: #fee2e2;
  color: #991b1b;
}

.nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  color: var(--color-text-primary);
}

.nav a:hover {
  border-color: var(--color-border-subtle);
  background: var(--color-bg-surface);
}

.nav .active {
  border-color: var(--color-brand-blue);
  background: rgba(0, 141, 210, 0.08);
  color: var(--color-brand-blue);
}

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

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  font-size: var(--font-size-control);
  border-radius: 999px;
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-subtle);
}

.chip-meta {
  font-size: var(--font-size-meta);
}

.chip-name {
  font-weight: 600;
}

.app-shell {
  --sidebar-width: 284px;
  --sidebar-collapsed-width: 84px;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

body.sidebar-collapsed .app-shell {
  grid-template-columns: var(--sidebar-collapsed-width) minmax(0, 1fr);
}

.sidebar {
  width: 100%;
  padding: 14px;
  position: sticky;
  top: 24px;
  max-height: calc(100vh - 48px);
  overflow: auto;
  z-index: 40;
  transition: var(--motion-fast);
}

.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 10px;
}

.sidebar-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.side-collapse-btn {
  min-width: 110px;
  justify-content: center;
  gap: 8px;
}

.side-collapse-btn i {
  font-size: 13px;
}

body.sidebar-collapsed .side-collapse-btn {
  min-width: 36px;
  padding: 6px 8px;
}

body.sidebar-collapsed .side-collapse-btn span {
  display: none;
}

@media (min-width: 981px) {
  body.sidebar-collapsed .sidebar-head-actions,
  body.sidebar-collapsed .sidebar-head-actions .side-collapse-btn {
    width: 100%;
  }
}

.drawer-close {
  display: none;
}

.drawer-fab {
  display: none;
}

.drawer-overlay {
  display: none;
}

.info-toggle-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.info-toggle-btn {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 999px;
  border: 1px solid var(--color-border-subtle);
  background: #ffffff;
  color: var(--color-brand-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.info-toggle-btn i {
  font-size: 12px;
}

.info-toggle-btn:hover,
.info-toggle-btn:focus-visible,
.info-toggle-wrap.is-open .info-toggle-btn {
  border-color: var(--color-brand-blue);
  background: rgba(0, 141, 210, 0.08);
}

.info-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-60%);
  min-width: 220px;
  max-width: min(360px, calc(100vw - 24px));
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-subtle);
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.16);
  padding: 10px 12px;
  display: none;
  z-index: 1300;
}

.info-popover-line + .info-popover-line {
  margin-top: 6px;
}

.info-toggle-wrap:hover .info-popover,
.info-toggle-wrap.is-open .info-popover {
  display: block;
}

.portal-tooltip {
  position: fixed;
  z-index: 3000;
  max-width: min(360px, calc(100vw - 24px));
  padding: 10px 12px;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--color-text-primary);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.16);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  text-transform: none;
  white-space: pre-line;
  pointer-events: none;
}

.portal-tooltip strong {
  color: var(--color-text-primary);
  font-weight: 400;
}

.portal-tooltip .info-popover-line + .info-popover-line {
  margin-top: 6px;
}

.floating-menu-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  overflow: visible;
  position: relative;
}

.floating-menu-details {
  position: relative;
  overflow: visible;
}

.floating-menu-details[open] {
  z-index: 80;
}

.floating-menu-summary {
  list-style: none;
  cursor: pointer;
}

.floating-menu-summary::-webkit-details-marker {
  display: none;
}

.floating-menu-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 90;
  min-width: 220px;
  padding: 8px;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.floating-menu-panel--wide {
  min-width: 260px;
}

.action-menu-portaled {
  position: fixed !important;
  top: auto;
  right: auto !important;
  bottom: auto;
  left: auto;
  z-index: 4000 !important;
  max-width: min(360px, calc(100vw - 24px));
}

.floating-form-zero {
  margin: 0;
}

.side-section {
  margin-bottom: 14px;
}

.side-title {
  font-size: var(--font-size-meta);
  font-weight: 600;
  letter-spacing: 0.2px;
  margin: 4px 8px 8px;
  text-transform: none;
}

body.sidebar-collapsed .side-title {
  max-height: 0;
  margin: 0;
  overflow: hidden;
  opacity: 0;
}

.side-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 42px 8px 10px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  color: var(--color-text-primary);
  margin: 4px 0;
  transition: var(--motion-fast);
}

.side-link-icon {
  width: 18px;
  min-width: 18px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  color: inherit;
}

.side-link-title {
  min-width: 0;
  flex: 1 1 auto;
  font-size: var(--font-size-control);
  font-weight: 600;
  line-height: 1.35;
}

.side-link-badge {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  background: #fef3c7;
  color: #92400e;
  font-weight: 600;
  pointer-events: none;
}

.side-link:hover {
  border-color: var(--color-border-subtle);
  background: rgba(0, 141, 210, 0.06);
}

.side-link.active {
  border-color: var(--color-brand-blue);
  background: rgba(0, 141, 210, 0.1);
  color: var(--color-brand-blue);
}

body.sidebar-collapsed .side-link {
  justify-content: center;
  padding: 10px 8px;
  overflow: visible;
}

body.sidebar-collapsed .side-link-title {
  display: none;
  width: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

body.sidebar-collapsed .side-link-badge {
  top: -9px;
  right: -10px;
  transform: none;
  min-width: 18px;
  padding: 0 6px;
  font-size: 10px;
  box-shadow: 0 0 0 3px var(--color-bg-surface);
}

body.sidebar-collapsed .side-link.active .side-link-badge {
  box-shadow: 0 0 0 3px var(--color-bg-surface), 0 2px 8px rgba(15, 23, 42, 0.14);
}

.app-main {
  width: 100%;
  min-width: 0;
}

.app-main table {
  display: table;
  width: 100%;
}

@media (max-width: 980px) {
  .client-edit-header,
  .client-section-head,
  .client-section-headline,
  .client-empty-project-state,
  .client-danger-zone {
    flex-direction: column;
    align-items: stretch;
  }

  .client-form-grid {
    grid-template-columns: 1fr;
  }

  .client-field--compact {
    max-width: none;
  }

  .client-form-actions {
    justify-content: stretch;
  }

  .client-form-actions .row,
  .client-form-actions .btn,
  .client-danger-zone .btn {
    width: 100%;
  }

  body.sidebar-collapsed .app-shell {
    grid-template-columns: 1fr;
  }

  .app-shell {
    display: block;
  }

  .sidebar {
    width: 300px;
    max-width: calc(100vw - 28px);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    max-height: none;
    height: 100vh;
    z-index: 1200;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    transform: translateX(-104%);
  }

  body.drawer-open .sidebar {
    transform: translateX(0);
  }

  .side-collapse-btn {
    display: none;
  }

  .drawer-close {
    display: inline-flex;
    min-width: 70px;
  }

  .drawer-fab {
    position: fixed;
    left: 0;
    top: 42%;
    z-index: 1150;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 50px;
    width: 50px;
    height: 48px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    border-left: 0;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    white-space: nowrap;
    transition: width var(--motion-fast), background var(--motion-fast), border-color var(--motion-fast);
  }

  .drawer-fab i {
    min-width: 18px;
    text-align: center;
    color: var(--color-brand-blue);
  }

  .drawer-fab-label {
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity var(--motion-fast), transform var(--motion-fast);
    font-size: 13px;
    color: var(--color-text-primary);
  }

  .drawer-fab:hover,
  .drawer-fab:focus-visible {
    width: 122px;
    background: rgba(0, 141, 210, 0.06);
    border-color: var(--color-brand-blue);
  }

  .drawer-fab:hover .drawer-fab-label,
  .drawer-fab:focus-visible .drawer-fab-label {
    opacity: 1;
    transform: translateX(0);
  }

  body.drawer-open .drawer-fab {
    opacity: 0;
    pointer-events: none;
  }

  .drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 1100;
    border: 0;
    background: rgba(15, 23, 42, 0.38);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--motion-fast);
  }

  body.drawer-open .drawer-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  body.sidebar-collapsed .side-title {
    max-height: none;
    margin: 4px 8px 8px;
    opacity: 1;
  }

  body.sidebar-collapsed .side-link {
    justify-content: flex-start;
    padding: 10px 10px;
  }

  body.sidebar-collapsed .side-link-title {
    display: block;
    width: auto;
    opacity: 1;
    overflow: visible;
    pointer-events: auto;
  }

  body.sidebar-collapsed .side-link-badge {
    position: static;
    min-width: 20px;
    padding: 1px 8px;
    font-size: 11px;
  }

  .app-topbar {
    align-items: flex-start;
    gap: 10px;
  }

  .nav {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 720px) {
  .info-popover {
    left: 0;
    transform: translateX(0);
  }
}

.checklist-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.checklist-scopes {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.checklist-scope {
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-subtle);
  background: var(--color-bg-surface);
  color: var(--color-text-primary);
  font-size: 13px;
}

button.checklist-scope {
  cursor: pointer;
  font-family: var(--font-body);
}

.checklist-scope.active {
  border-color: var(--color-brand-blue);
  background: rgba(0, 141, 210, 0.1);
  color: var(--color-brand-blue);
}

.checklist-summary {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.checklist-summary .tag {
  margin-right: 0;
}

.accordion-card {
  padding: 0;
}

.section-accordion {
  width: 100%;
}

.section-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px;
}

.section-summary::-webkit-details-marker {
  display: none;
}

.section-title {
  font-weight: 600;
}

.section-body {
  border-top: 1px solid var(--color-border-subtle);
  padding: 12px 16px 16px;
}

.doc-list {
  display: grid;
  gap: 10px;
  width: 100%;
}

.doc-card {
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  background: var(--color-bg-surface);
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  width: 100%;
}

.doc-card > :nth-child(3) {
  grid-column: 1 / -1;
}

.doc-card:target {
  border-color: var(--color-brand-blue);
  box-shadow: 0 0 0 2px rgba(0, 141, 210, 0.15);
}

.doc-meta-title {
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.35;
}

.doc-meta-lines {
  display: grid;
  gap: 4px;
}

.doc-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.doc-actions .btn {
  width: fit-content;
  max-width: 100%;
}

.doc-update-form {
  display: grid;
  gap: 8px;
  border-top: 1px dashed var(--color-border-subtle);
  padding-top: 10px;
}

.doc-update-row {
  display: grid;
  grid-template-columns: minmax(120px, 160px) minmax(180px, 1fr);
  gap: 8px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid var(--color-border-subtle);
}

.status-pill.pending {
  background: #fef3c7;
  color: #92400e;
}

.status-pill.uploaded {
  background: #e0f2fe;
  color: #075985;
}

.status-pill.verified {
  background: #eaf5e1;
  color: #166534;
}

.status-pill.waived {
  background: #f1f5f9;
  color: #475569;
}


@media (max-width: 980px) {
  .section-summary {
    flex-direction: column;
    align-items: flex-start;
  }

  .doc-card {
    grid-template-columns: 1fr;
  }

  .doc-update-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1280px) {
  .doc-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  .workflow-steps-table .col-optional {
    display: none;
  }

  .workflow-step-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .workflow-step-actions .btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 1180px) {
  .sync-queue-table .col-optional {
    display: none;
  }

  .sync-queue-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .sync-queue-actions .btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 980px) {
  .sync-queue-filter-grid {
    grid-template-columns: 1fr !important;
  }
}

.adm-settings {
  max-width: 100%;
}

.flash-toast-stack {
  position: fixed;
  right: 24px;
  top: 24px;
  z-index: 1200;
  display: grid;
  gap: 10px;
  width: min(420px, calc(100vw - 32px));
}

.flash-toast {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 14px 14px 16px;
  border: 1px solid var(--color-border);
  border-left-width: 4px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.16);
  color: var(--color-text);
  animation: flashToastIn 180ms ease-out;
}

.flash-toast strong {
  display: block;
  margin-bottom: 3px;
}

.flash-toast-success {
  border-left-color: #22c55e;
}

.flash-toast-error {
  border-left-color: #ef4444;
}

.flash-toast-warning {
  border-left-color: #f59e0b;
}

.flash-toast-info {
  border-left-color: #3b82f6;
}

.flash-toast-close {
  border: 0;
  background: transparent;
  color: var(--color-text-secondary);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.flash-toast.is-leaving {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 160ms ease, transform 160ms ease;
}

@keyframes flashToastIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.adm-settings-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.adm-settings-form {
  width: 100%;
}

.adm-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.adm-settings-panel {
  min-width: 0;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  background: var(--color-bg-surface);
}

.adm-settings-field {
  display: block;
  width: 100%;
  margin-bottom: 12px;
}

.adm-settings-field:last-child {
  margin-bottom: 0;
}

.adm-settings-field .input,
.adm-settings-field textarea,
.adm-settings-field input:not([type="checkbox"]):not([type="radio"]) {
  display: block;
  width: 100%;
  max-width: 100%;
}

.adm-settings-field textarea {
  min-height: 88px;
  resize: vertical;
}

.adm-settings-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  line-height: 1.35;
}

.adm-settings-check input {
  margin-top: 3px;
  flex: 0 0 auto;
  width: auto;
  max-width: none;
  display: inline-block;
}

.adm-settings-check span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.adm-settings-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.teams-routing-card {
  display: grid;
  gap: 16px;
}

.teams-health-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.teams-health-item {
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  background: #f8fafc;
  min-width: 0;
}

.teams-health-item strong {
  display: block;
  margin-top: 4px;
  color: var(--color-text-primary);
  font-size: 22px;
  line-height: 1.1;
}

.teams-routing-section {
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  background: var(--color-bg-surface);
}

.teams-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.teams-section-head h3 {
  margin: 0 0 2px;
}

.teams-channel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.teams-channel-box {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  background: #f8fafc;
}

.teams-channel-box.is-active {
  border-color: #9dd4b0;
  background: #f7fcf8;
}

.teams-channel-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
}

.teams-channel-title > div {
  min-width: 0;
}

.teams-channel-title strong,
.teams-channel-title .muted {
  overflow-wrap: anywhere;
}

.teams-channel-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 8px 0 10px;
  color: var(--color-text-secondary);
  font-size: 12px;
}

.teams-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
  flex: 0 0 auto;
}

.teams-dot.is-on {
  background: #1f7a3a;
}

.teams-channel-fields {
  display: grid;
  gap: 8px;
}

.teams-channel-fields .adm-settings-field {
  margin-bottom: 0;
}

.teams-webhook-field input::placeholder {
  color: #64748b;
}

.teams-channel-footer,
.teams-channel-test {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.teams-active-check {
  margin: 0;
}

.teams-channel-meta {
  display: grid;
  gap: 4px;
  min-height: 18px;
  margin-top: 8px;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.teams-add-channel {
  border-style: dashed;
  background: #ffffff;
}

.teams-routes-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.teams-routes-table {
  table-layout: fixed;
}

.teams-route-groups {
  display: grid;
  gap: 14px;
}

.teams-route-group {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.teams-route-group-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: #f8fafc;
  border-bottom: 1px solid var(--color-border);
}

.teams-route-group-head strong {
  display: block;
  margin-bottom: 3px;
  color: var(--color-text);
}

.teams-route-group .teams-routes-table-wrap {
  border: 0;
}

.teams-route-group .teams-routes-table {
  margin-bottom: 0;
}

.teams-routes-table th,
.teams-routes-table td {
  vertical-align: middle;
}

.teams-routes-table th {
  font-size: 11px;
  line-height: 1.25;
}

.teams-routes-table th:first-child,
.teams-routes-table td:first-child {
  width: 44%;
}

.teams-routes-table th:not(:first-child),
.teams-routes-table td:not(:first-child) {
  text-align: center;
  width: 14%;
  min-width: 112px;
}

.teams-routes-table td:first-child strong {
  display: block;
  line-height: 1.25;
}

.teams-event-key {
  display: inline-flex;
  margin-top: 5px;
  padding: 2px 6px;
  border-radius: 6px;
  background: #eef2f7;
  color: var(--color-text-secondary);
  font-size: 11px;
  font-family: Consolas, "Courier New", monospace;
  overflow-wrap: anywhere;
}

.teams-routes-table input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

.teams-logs-summary {
  color: var(--color-text-secondary);
  font-size: 13px;
  white-space: nowrap;
}

.teams-logs-filter {
  display: grid;
  grid-template-columns: minmax(120px, 150px) minmax(160px, 1fr) minmax(150px, 180px) minmax(180px, 1.25fr) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--color-border-subtle);
  border-radius: 8px;
  background: #f8fafc;
}

.teams-logs-filter .adm-settings-field {
  margin-bottom: 0;
}

.teams-logs-filter-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  min-height: 38px;
}

.teams-logs-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.teams-logs-pagination .btn.disabled {
  pointer-events: none;
  opacity: 0.55;
}

.adm-settings-token-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 6px;
}

.adm-settings-preset-form {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.adm-settings-body-template {
  min-height: 180px;
  line-height: 1.5;
}

.adm-settings-preset-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.adm-email-preset-layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.adm-email-preset-side {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.adm-email-token-box {
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  background: #f8fafc;
}

.adm-email-token {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border: 1px solid var(--color-border-subtle);
  border-radius: 999px;
  background: var(--color-bg-surface);
  color: var(--color-text-secondary);
  font-size: 12px;
  font-family: Consolas, "Courier New", monospace;
  cursor: pointer;
}

.adm-email-token:hover {
  border-color: var(--color-brand-blue);
  color: var(--color-brand-blue);
}

.adm-email-preset-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 4px;
}

.projects-filter-card {
  margin-top: 14px;
}

.projects-filter-form {
  display: grid;
  gap: 12px;
}

.projects-filter-grid {
  display: grid;
  grid-template-columns: minmax(260px, 2fr) minmax(140px, 0.85fr) minmax(150px, 0.9fr) minmax(160px, 1fr) minmax(90px, 0.45fr);
  gap: 10px;
  align-items: end;
}

.projects-filter-field {
  min-width: 0;
}

.projects-filter-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.projects-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.projects-filter-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #eef6ff;
  color: #075985;
  font-size: 12px;
  font-weight: 600;
}

.projects-list-title-row {
  align-items: flex-start;
}

.projects-table th a {
  color: inherit;
  text-decoration: none;
}

.projects-table th a:hover {
  color: var(--color-brand-blue);
}

.projects-code-cell {
  white-space: nowrap;
  font-weight: 700;
}

.projects-title-cell {
  min-width: 180px;
  max-width: 360px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.projects-pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.projects-pagination .btn.disabled {
  pointer-events: none;
  opacity: 0.55;
}

.quo-filter-grid {
  display: grid;
  grid-template-columns: minmax(200px, 2fr) minmax(150px, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.u-hidden {
  display: none !important;
}

[data-quick-chips-wrap][hidden] {
  display: none !important;
}

[data-quick-chips-wrap]:not(:has(.quick-chip)) {
  display: none !important;
}

.quo-filter-grid-more {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--color-border-subtle);
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(160px, 1fr);
  gap: 10px;
}

.quo-filter-field {
  min-width: 0;
}

.quo-filter-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #eef6ff;
  color: #0369a1;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #bae6fd;
}

.chip-remove {
  background: none;
  border: none;
  color: #0284c7;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0 2px;
  font-weight: bold;
}

.chip-remove:hover {
  color: #0c4a6e;
}

.clear-chips-btn {
  font-size: 12px;
  color: var(--color-text-secondary);
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
}

.clients-filter-card {
  margin-top: 14px;
}

.clients-filter-form {
  display: grid;
  gap: 12px;
}

.clients-filter-grid {
  display: grid;
  grid-template-columns: minmax(260px, 2fr) minmax(140px, 0.85fr) minmax(150px, 0.9fr) minmax(90px, 0.45fr);
  gap: 10px;
  align-items: end;
}

.clients-filter-field {
  min-width: 0;
}

.clients-filter-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.clients-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.clients-filter-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #eef6ff;
  color: #075985;
  font-size: 12px;
  font-weight: 600;
}

.clients-list-title-row {
  align-items: flex-start;
}

.clients-table th a {
  color: inherit;
  text-decoration: none;
}

.clients-table th a:hover {
  color: var(--color-brand-blue);
}

.clients-code-cell {
  white-space: nowrap;
  font-weight: 700;
}

.clients-title-cell {
  min-width: 180px;
  max-width: 360px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.clients-pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.clients-pagination .btn.disabled {
  pointer-events: none;
  opacity: 0.55;
}

@media (max-width: 1100px) {
  .adm-settings-grid {
    grid-template-columns: 1fr;
  }

  .adm-email-preset-layout {
    grid-template-columns: 1fr;
  }

  .teams-channel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .teams-health-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .teams-logs-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .projects-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .clients-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .flash-toast-stack {
    top: 12px;
    right: 12px;
    left: 12px;
    width: auto;
  }

  .adm-settings-head,
  .adm-email-preset-title,
  .adm-settings-preset-actions,
  .adm-settings-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .adm-settings-actions .btn {
    width: 100%;
    text-align: center;
  }

  .adm-settings-preset-actions .btn {
    width: 100%;
    text-align: center;
  }

  .adm-settings-panel {
    padding: 14px;
  }

  .teams-channel-grid,
  .teams-health-grid,
  .teams-logs-filter {
    grid-template-columns: 1fr;
  }

  .teams-routing-section {
    padding: 12px;
  }

  .teams-channel-footer,
  .teams-channel-test {
    align-items: stretch;
  }

  .teams-channel-test .btn,
  .teams-channel-footer .btn {
    width: 100%;
  }

  .projects-filter-grid {
    grid-template-columns: 1fr;
  }

  .projects-filter-actions,
  .projects-pagination {
    align-items: stretch;
    justify-content: stretch;
  }

  .projects-filter-actions .btn,
  .projects-pagination .btn {
    flex: 1 1 auto;
    text-align: center;
  }

  .clients-filter-grid {
    grid-template-columns: 1fr;
  }

  .clients-filter-actions,
  .clients-pagination {
    align-items: stretch;
    justify-content: stretch;
  }

  .clients-filter-actions .btn,
  .clients-pagination .btn {
    flex: 1 1 auto;
    text-align: center;
  }
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.loading-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.loading-overlay-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.loading-overlay-animation {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-overlay-text {
  font-size: 0.95rem;
  font-weight: 500;
  color: #3579d5;
  letter-spacing: 0.01em;
}
