html {
  min-height: 100%;
  font-size: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--color-bg-page);
  color: var(--color-neutral-700);
  font-family: var(--font-family-base);
  line-height: var(--line-height-base);
}

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

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

:focus-visible {
  outline: 3px solid var(--color-primary-200);
  outline-offset: 2px;
}

main,
.container,
.row,
[class*="col-"] {
  min-width: 0;
}

img,
canvas,
table,
textarea,
input,
select,
button {
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

.btn {
  white-space: normal;
}

.table {
  --bs-table-color: var(--color-neutral-700);
  --bs-table-border-color: var(--color-neutral-200);
  margin-bottom: 0;
  font-size: var(--font-size-sm);
}

.table > :not(caption) > * > * {
  padding: 0.7rem 0.8rem;
}

.table thead th {
  border-bottom-width: 1px;
  color: var(--color-neutral-600);
  font-size: var(--font-size-xs);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.table tbody td {
  vertical-align: middle;
}

.badge {
  border-radius: 999px;
  padding: 0.35rem 0.55rem;
  font-size: var(--font-size-xs);
  font-weight: 800;
  white-space: nowrap;
}

.btn-primary {
  --bs-btn-bg: var(--color-primary-500);
  --bs-btn-border-color: var(--color-primary-500);
  --bs-btn-hover-bg: var(--color-primary-600);
  --bs-btn-hover-border-color: var(--color-primary-600);
  --bs-btn-active-bg: var(--color-primary-700);
  --bs-btn-active-border-color: var(--color-primary-700);
}

.text-muted {
  color: var(--color-neutral-600) !important;
}

.form-control,
.form-select {
  min-height: 42px;
}

.form-control::placeholder,
.form-select::placeholder {
  color: var(--color-neutral-400);
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  border-color: var(--color-primary-500);
  box-shadow: 0 0 0 0.2rem rgba(59, 85, 217, 0.16);
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
  color: var(--color-neutral-400);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.pr-app-shell {
  min-height: 100vh;
}

.pr-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: var(--z-sidebar);
  display: flex;
  width: 232px;
  flex-direction: column;
  gap: var(--space-3);
  border-right: 1px solid var(--color-neutral-200);
  background: var(--color-bg-surface);
  padding: var(--space-4) var(--space-2);
  overflow: hidden;
}

.pr-brand {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-neutral-900);
  font-weight: 700;
  text-decoration: none;
}

.pr-brand:hover {
  color: var(--color-neutral-900);
}

.pr-brand-mark {
  display: inline-grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: var(--radius-lg);
  background: var(--color-primary-500);
  color: #fff;
  font-size: var(--font-size-sm);
  font-weight: 800;
}

.pr-sidebar-nav {
  display: grid;
  gap: var(--space-1);
}

.pr-sidebar-nav-secondary {
  margin-top: auto;
}

.pr-nav-item {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: var(--space-2);
  border: 0;
  border-radius: var(--radius-lg);
  background: transparent;
  color: var(--color-neutral-600);
  font-weight: 600;
  line-height: 1.2;
  min-width: 0;
  padding: var(--space-1) var(--space-2);
  text-align: left;
  text-decoration: none;
}

.pr-nav-item:hover {
  background: var(--color-neutral-100);
  color: var(--color-neutral-900);
}

.pr-nav-item.is-active {
  background: var(--color-primary-50);
  color: var(--color-primary-700);
}

.pr-nav-icon {
  display: inline-grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  border-radius: var(--radius-md);
  background: var(--color-neutral-50);
  color: var(--color-neutral-600);
  font-size: var(--font-size-xs);
  font-weight: 900;
  letter-spacing: 0.02em;
}

.pr-nav-item.is-active .pr-nav-icon {
  background: var(--color-primary-100);
  color: var(--color-primary-700);
}

.pr-brand-text,
.pr-user-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pr-nav-label {
  min-width: 0;
  overflow-wrap: anywhere;
}

.pr-nav-button {
  width: 100%;
}

.pr-sidebar-user {
  display: grid;
  gap: var(--space-2);
  border-top: 1px solid var(--color-neutral-200);
  padding-top: var(--space-3);
  min-width: 0;
}

.pr-sidebar-user form {
  min-width: 0;
  margin: 0;
}

.pr-user-summary {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-neutral-700);
  min-width: 0;
  padding: 0 var(--space-2);
}

.pr-user-avatar {
  display: inline-grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  border-radius: 999px;
  background: var(--color-neutral-100);
  color: var(--color-neutral-700);
  font-weight: 700;
}

.pr-sidebar-register {
  width: 100%;
}

.pr-shell-content {
  min-height: 100vh;
  margin-left: 232px;
}

.pr-main {
  width: 100%;
  margin: 0;
  padding: var(--space-7, 1.75rem) var(--space-6);
}

.pr-page-narrow {
  max-width: 820px;
}

.pr-page-standard {
  max-width: 1240px;
}

.pr-page-wide {
  max-width: 1680px;
}

.pr-footer {
  width: min(100%, 1240px);
  margin: 0 auto;
  padding: var(--space-4) var(--space-6) var(--space-6);
  color: var(--color-neutral-600);
  font-size: var(--font-size-sm);
}

.pr-mobile-topbar,
.pr-bottom-tabs {
  display: none;
}

.pr-signature-main {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: var(--space-6);
}

.pr-auth-body {
  display: grid;
  min-height: 100vh;
  grid-template-rows: 1fr auto;
  background: var(--color-bg-page);
}

.pr-auth-main {
  display: grid;
  width: min(100%, 480px);
  align-content: center;
  gap: var(--space-6);
  margin: 0 auto;
  padding: var(--space-8) var(--space-4);
}

.pr-auth-brand {
  display: inline-flex;
  align-items: center;
  justify-self: center;
  gap: var(--space-3);
  color: var(--color-neutral-900);
  font-size: var(--font-size-lg);
  font-weight: 800;
  text-decoration: none;
}

.pr-auth-brand:hover {
  color: var(--color-neutral-900);
}

.pr-auth-panel {
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-xl);
  background: var(--color-bg-surface);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.pr-auth-panel h1 {
  color: var(--color-neutral-900);
  text-align: center;
}

.pr-auth-footer {
  padding: var(--space-4);
  color: var(--color-neutral-600);
  font-size: var(--font-size-sm);
  text-align: center;
}

.pr-btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  padding: 0.625rem 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.pr-btn-primary {
  background: var(--color-primary-500);
  color: #fff;
}

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

.pr-btn-secondary {
  border-color: var(--color-neutral-300);
  background: var(--color-bg-surface);
  color: var(--color-neutral-700);
}

.pr-btn-secondary:hover {
  border-color: var(--color-neutral-400);
  background: var(--color-neutral-50);
  color: var(--color-neutral-900);
}

.pr-btn-ghost {
  background: transparent;
  color: var(--color-neutral-700);
}

.pr-btn-ghost:hover {
  background: var(--color-neutral-100);
  color: var(--color-neutral-900);
}

.pr-btn-danger {
  background: var(--color-danger-600);
  color: #fff;
}

.pr-btn-danger:hover {
  background: var(--color-danger-700);
  color: #fff;
}

.pr-btn.is-disabled,
.pr-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  pointer-events: none;
}

.pr-icon-btn {
  display: inline-grid;
  width: 44px;
  min-width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-lg);
  background: var(--color-bg-surface);
  color: var(--color-neutral-700);
  font-weight: 700;
}

.pr-icon-btn:hover {
  background: var(--color-neutral-100);
}

.pr-card {
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-lg);
  background: var(--color-bg-surface);
  box-shadow: var(--shadow-sm);
}

.pr-card-clickable {
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.pr-card-clickable:hover {
  border-color: var(--color-primary-200);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.pr-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  font-size: var(--font-size-xs);
  font-weight: 800;
  line-height: 1.1;
}

.pr-badge-draft {
  background: var(--color-neutral-100);
  color: var(--color-neutral-700);
}

.pr-badge-in-progress {
  background: var(--color-primary-50);
  color: var(--color-primary-700);
}

.pr-badge-signed {
  background: var(--color-success-100);
  color: var(--color-success-700);
}

.pr-badge-cancelled {
  background: var(--color-danger-100);
  color: var(--color-danger-700);
}

.pr-alert {
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}

.pr-alert-info {
  border-color: var(--color-primary-100);
  background: var(--color-primary-50);
  color: var(--color-primary-900);
}

.pr-alert-success {
  border-color: var(--color-success-100);
  background: var(--color-success-50);
  color: var(--color-success-700);
}

.pr-alert-warning {
  border-color: var(--color-warning-100);
  background: var(--color-warning-50);
  color: var(--color-warning-700);
}

.pr-alert-danger {
  border-color: var(--color-danger-100);
  background: var(--color-danger-50);
  color: var(--color-danger-700);
}

.pr-empty-state {
  display: grid;
  justify-items: center;
  gap: var(--space-3);
  padding: var(--space-10) var(--space-4);
  color: var(--color-neutral-600);
  text-align: center;
}

.pr-empty-state-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: var(--radius-xl);
  background: var(--color-neutral-100);
  color: var(--color-neutral-700);
  font-weight: 800;
}

.pr-empty-state-title {
  margin: 0;
  color: var(--color-neutral-900);
  font-size: var(--font-size-lg);
  font-weight: 800;
}

.pr-empty-state-description {
  max-width: 34rem;
  margin: 0;
}

.dashboard-page {
  display: grid;
  gap: var(--space-5);
  width: 100%;
}

.dashboard-hero {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: var(--space-4);
}

.dashboard-hero-copy {
  min-width: 0;
}

.dashboard-eyebrow,
.dashboard-card-kicker {
  margin: 0;
  color: var(--color-neutral-500);
  font-size: var(--font-size-xs);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.dashboard-hero h1 {
  margin: var(--space-1) 0;
  color: var(--color-neutral-900);
  font-size: 1.85rem;
  font-weight: 900;
  letter-spacing: 0;
}

.dashboard-hero p:last-child {
  margin: 0;
  color: var(--color-neutral-600);
  font-size: var(--font-size-base);
}

.dashboard-primary-action {
  display: inline-flex;
  min-width: 0;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border-radius: var(--radius-lg);
  padding: 0.625rem 1rem;
  background: var(--color-primary-500);
  color: #fff;
  font-size: var(--font-size-base);
  font-weight: 700;
  text-decoration: none;
  box-shadow: none;
  transition: background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.dashboard-primary-action:hover {
  background: var(--color-primary-600);
  color: #fff;
  box-shadow: none;
}

.dashboard-primary-action-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 1rem;
  line-height: 1;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-4);
  align-items: stretch;
}

.dashboard-card {
  display: grid;
  min-width: 0;
  gap: var(--space-4);
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-lg);
  background: var(--color-bg-surface);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}

.dashboard-card-header {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
}

.dashboard-card-header h2 {
  margin: var(--space-1) 0 0;
  color: var(--color-neutral-900);
  font-size: var(--font-size-lg);
  font-weight: 900;
  letter-spacing: 0;
}

.dashboard-card-link {
  color: var(--color-primary-700);
  font-size: var(--font-size-sm);
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.dashboard-card-link:hover {
  color: var(--color-primary-800);
  text-decoration: underline;
}

.dashboard-signing-card {
  grid-column: 1 / span 7;
  align-content: start;
  border-color: var(--color-primary-100);
}

.dashboard-today-card {
  grid-column: 8 / span 2;
}

.dashboard-week-card {
  grid-column: 10 / span 3;
}

.dashboard-customers-card {
  grid-column: 8 / span 5;
}

.dashboard-recent-card {
  grid-column: 1 / span 12;
}

.dashboard-count-pill {
  display: grid;
  min-width: 52px;
  height: 52px;
  place-items: center;
  border-radius: var(--radius-lg);
  background: var(--color-primary-50);
  color: var(--color-primary-700);
  font-size: 1.45rem;
  font-weight: 900;
}

.dashboard-positive-empty,
.dashboard-inline-empty {
  display: grid;
  gap: 2px;
  border: 1px dashed var(--color-neutral-300);
  border-radius: var(--radius-lg);
  color: var(--color-neutral-600);
  padding: var(--space-4);
}

.dashboard-positive-empty {
  border-color: var(--color-success-100);
  background: var(--color-success-50);
  color: var(--color-success-700);
}

.dashboard-positive-empty strong,
.dashboard-inline-empty strong {
  color: var(--color-neutral-900);
}

.dashboard-signing-list,
.dashboard-recent-list,
.dashboard-customer-list {
  display: grid;
  gap: var(--space-3);
}

.dashboard-intervention-row,
.dashboard-recent-item,
.dashboard-customer-item {
  min-width: 0;
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-lg);
  background: var(--color-bg-surface);
}

.dashboard-intervention-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3);
}

.dashboard-row-main,
.dashboard-recent-main,
.dashboard-customer-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.dashboard-row-main strong,
.dashboard-recent-main strong,
.dashboard-customer-copy strong {
  overflow: hidden;
  color: var(--color-neutral-900);
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-row-main span,
.dashboard-recent-main span,
.dashboard-customer-copy span {
  overflow: hidden;
  color: var(--color-neutral-500);
  font-size: var(--font-size-sm);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-row-number {
  color: var(--color-neutral-600);
  font-size: var(--font-size-xs);
  font-weight: 900;
}

.dashboard-row-action {
  display: inline-flex;
  min-height: 40px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-md);
  color: var(--color-neutral-700);
  font-size: var(--font-size-sm);
  font-weight: 900;
  padding: 0 var(--space-3);
  text-decoration: none;
}

.dashboard-row-action:hover {
  border-color: var(--color-primary-200);
  background: var(--color-primary-50);
  color: var(--color-primary-700);
}

.dashboard-metric-card {
  align-content: center;
  min-height: 144px;
}

.dashboard-metric-card h2 {
  margin: 0;
  color: var(--color-neutral-900);
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: 0;
}

.dashboard-metric-card span {
  color: var(--color-neutral-600);
  font-weight: 800;
}

.dashboard-customer-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: inherit;
  padding: var(--space-3);
  text-decoration: none;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.dashboard-customer-item:hover {
  border-color: var(--color-primary-200);
  background: var(--color-primary-50);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.dashboard-customer-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 999px;
  background: var(--color-primary-100);
  color: var(--color-primary-800);
  font-size: var(--font-size-sm);
  font-weight: 900;
}

.dashboard-recent-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3);
}

.dashboard-recent-main {
  color: inherit;
  text-decoration: none;
}

.dashboard-recent-main:hover strong {
  color: var(--color-primary-700);
}

.intervention-workflow-page,
.intervention-detail-page,
.signature-workflow-page {
  display: grid;
  gap: var(--space-5);
  width: 100%;
}

.intervention-workflow-header,
.intervention-detail-hero,
.signature-workflow-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
}

.intervention-workflow-kicker {
  margin: 0;
  color: var(--color-neutral-500);
  font-size: var(--font-size-xs);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.intervention-workflow-header h1,
.intervention-detail-title h1,
.signature-workflow-header h1 {
  margin: var(--space-1) 0;
  color: var(--color-neutral-900);
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: 0;
}

.intervention-workflow-header p:last-child,
.signature-workflow-header p:last-child {
  max-width: 42rem;
  margin: 0;
  color: var(--color-neutral-600);
}

.intervention-form-card,
.signature-form-card {
  display: grid;
  gap: var(--space-5);
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-lg);
  background: var(--color-bg-surface);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}

.intervention-form-section {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-4);
}

.intervention-form-section + .intervention-form-section {
  border-top: 1px solid var(--color-neutral-200);
  padding-top: var(--space-5);
}

.intervention-form-section-header {
  grid-column: 1 / -1;
  display: grid;
  gap: 2px;
}

.intervention-form-section-header h2 {
  margin: 0;
  color: var(--color-neutral-900);
  font-size: var(--font-size-base);
  font-weight: 900;
}

.intervention-form-section-header p {
  margin: 0;
  color: var(--color-neutral-600);
  font-size: var(--font-size-sm);
}

.intervention-field {
  min-width: 0;
}

.intervention-field-half {
  grid-column: span 6;
}

.intervention-field-full {
  grid-column: 1 / -1;
}

.intervention-field-small {
  grid-column: span 4;
}

.intervention-field-large {
  grid-column: span 8;
}

.intervention-inline-action {
  min-height: 36px;
  padding: 0.4rem 0.7rem;
  font-size: var(--font-size-sm);
}

.intervention-form-actions,
.signature-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.intervention-form-actions .pr-btn,
.signature-actions .pr-btn {
  min-width: 160px;
}

.intervention-detail-hero {
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-lg);
  background: var(--color-bg-surface);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}

.intervention-detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-neutral-600);
}

.intervention-action-panel {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--space-2);
}

.intervention-action-panel form {
  margin: 0;
}

.intervention-main-action {
  min-width: 180px;
  font-weight: 900;
}

.intervention-detail-summary,
.intervention-system-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
  margin: 0;
}

.intervention-detail-summary div,
.intervention-system-list div {
  display: grid;
  gap: 2px;
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-lg);
  background: var(--color-bg-surface);
  padding: var(--space-3);
}

.intervention-detail-summary dt,
.intervention-system-list dt {
  color: var(--color-neutral-500);
  font-size: var(--font-size-xs);
  font-weight: 900;
  text-transform: uppercase;
}

.intervention-detail-summary dd,
.intervention-system-list dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--color-neutral-900);
  font-weight: 800;
}

.intervention-detail-card,
.intervention-system-card,
.signature-summary-card {
  display: grid;
  gap: var(--space-3);
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-lg);
  background: var(--color-bg-surface);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}

.intervention-detail-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.intervention-detail-section-header h2,
.intervention-system-card h2,
.signature-summary-card h2 {
  margin: 0;
  color: var(--color-neutral-900);
  font-size: var(--font-size-base);
  font-weight: 900;
}

.intervention-rich-text {
  color: var(--color-neutral-800);
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.intervention-system-card {
  color: var(--color-neutral-600);
  box-shadow: none;
}

.intervention-photos-section {
  gap: var(--space-4);
}

.intervention-photos-header > div {
  display: grid;
  gap: 2px;
}

.intervention-photos-header p,
.intervention-photo-locked {
  margin: 0;
  color: var(--color-neutral-600);
  font-size: var(--font-size-sm);
}

.intervention-photo-upload {
  display: grid;
  gap: var(--space-2);
}

.intervention-photo-upload-row {
  display: flex;
  gap: var(--space-2);
  align-items: stretch;
}

.intervention-photo-upload-row .form-control {
  min-width: 0;
}

.intervention-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-3);
}

.intervention-photo-item {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-lg);
  background: var(--color-bg-surface);
}

.intervention-photo-thumb-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-neutral-100);
}

.intervention-photo-thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.intervention-photo-order {
  position: absolute;
  inset: var(--space-2) auto auto var(--space-2);
  display: inline-grid;
  min-width: 28px;
  min-height: 28px;
  place-items: center;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.78);
  color: #fff;
  font-size: var(--font-size-xs);
  font-weight: 800;
}

.intervention-photo-body {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-3);
}

.intervention-photo-caption {
  min-height: 2.4em;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--color-neutral-700);
  font-size: var(--font-size-sm);
}

.intervention-photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.intervention-photo-actions form {
  display: flex;
  margin: 0;
}

.intervention-photo-actions .pr-icon-btn {
  width: 38px;
  min-width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
}

.intervention-photo-delete {
  min-height: 38px;
  padding: 0.4rem 0.7rem;
  font-size: var(--font-size-sm);
}

.intervention-photo-empty {
  border: 1px dashed var(--color-neutral-300);
  border-radius: var(--radius-lg);
  color: var(--color-neutral-600);
  padding: var(--space-4);
}

.intervention-photo-empty strong {
  color: var(--color-neutral-900);
}

.signature-summary-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  margin: 0;
}

.signature-summary-card dl div {
  display: grid;
  gap: 2px;
}

.signature-summary-card dt {
  color: var(--color-neutral-500);
  font-size: var(--font-size-xs);
  font-weight: 900;
  text-transform: uppercase;
}

.signature-summary-card dd {
  margin: 0;
  color: var(--color-neutral-900);
  font-weight: 900;
}

.signature-summary-card p {
  margin: var(--space-2) 0 0;
  color: var(--color-neutral-700);
  overflow-wrap: anywhere;
}

.signature-signer-field {
  max-width: 34rem;
}

.signature-canvas-panel {
  display: grid;
  gap: var(--space-2);
}

.signature-canvas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.signature-canvas-header span {
  color: var(--color-neutral-500);
  font-size: var(--font-size-sm);
  font-weight: 800;
}

.customers-page {
  display: grid;
  gap: var(--space-5);
  width: 100%;
}

.customers-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.customers-header h1 {
  margin: 0;
  color: var(--color-neutral-900);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0;
}

.customers-header p {
  margin: var(--space-1) 0 0;
  color: var(--color-neutral-600);
}

.customers-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-3);
  align-items: center;
}

.customers-search {
  position: relative;
  min-width: 0;
}

.customers-search .form-control {
  min-height: 44px;
  border-color: transparent;
  border-radius: var(--radius-lg);
  background: var(--color-neutral-100);
  padding-left: 4.9rem;
  padding-right: 2.75rem;
}

.customers-search-icon {
  position: absolute;
  top: 50%;
  left: var(--space-3);
  z-index: 2;
  transform: translateY(-50%);
  color: var(--color-neutral-500);
  font-size: 0.68rem;
  font-weight: 800;
}

.customers-search-clear {
  position: absolute;
  top: 50%;
  right: var(--space-2);
  z-index: 2;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--color-neutral-600);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-50%);
}

.customers-search-clear:hover {
  background: var(--color-neutral-200);
  color: var(--color-neutral-900);
}

.customers-search-spinner {
  position: absolute;
  top: calc(50% - 8px);
  left: var(--space-3);
  z-index: 2;
  width: 16px;
  height: 16px;
  border: 2px solid var(--color-neutral-300);
  border-top-color: var(--color-primary-500);
  border-radius: 999px;
  animation: customer-spin 0.8s linear infinite;
}

@keyframes customer-spin {
  to {
    transform: rotate(360deg);
  }
}

.customers-segmented {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  min-width: min(100%, 21rem);
  border-radius: var(--radius-lg);
  background: var(--color-neutral-100);
  padding: 2px;
}

.customers-segmented a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: calc(var(--radius-lg) - 2px);
  color: var(--color-neutral-600);
  font-size: var(--font-size-sm);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.customers-segmented a:hover {
  background: var(--color-bg-surface);
  color: var(--color-neutral-900);
}

.customers-segmented a.is-active {
  background: var(--color-primary-500);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.customers-directory {
  display: grid;
  gap: var(--space-6);
  min-width: 0;
}

.customers-master-detail {
  min-width: 0;
}

.customers-list-pane {
  position: relative;
  min-width: 0;
}

.customers-detail-pane {
  display: none;
}

.customers-detail-empty {
  display: grid;
  min-height: 100%;
  align-content: center;
  justify-items: center;
  gap: var(--space-3);
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-xl);
  background: var(--color-bg-surface);
  color: var(--color-neutral-600);
  padding: var(--space-8);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.customers-detail-empty h2 {
  margin: 0;
  color: var(--color-neutral-900);
  font-size: var(--font-size-lg);
  font-weight: 900;
}

.customers-detail-empty p {
  max-width: 20rem;
  margin: 0;
}

.customers-detail-pane.is-loading {
  opacity: 0.6;
}

.customers-section {
  display: grid;
  gap: var(--space-3);
}

.customers-section-label,
.customer-alpha-heading {
  margin: 0;
  color: var(--color-neutral-500);
  font-size: var(--font-size-xs);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.customers-section-heading {
  display: grid;
  gap: 2px;
}

.customers-section-heading p {
  margin: 0;
  color: var(--color-neutral-500);
  font-size: var(--font-size-sm);
}

.customers-recent-section {
  border: 1px solid var(--color-primary-100);
  border-radius: var(--radius-lg);
  background: var(--color-primary-50);
  padding: var(--space-3);
}

.customers-recent-section .customer-row {
  border-color: transparent;
  box-shadow: none;
}

.customers-all-label {
  margin-top: var(--space-1);
}

.customer-alpha-section {
  display: grid;
  gap: var(--space-1);
  scroll-margin-top: 5rem;
}

.customer-alpha-heading {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--color-bg-page);
  padding: var(--space-1) var(--space-4);
}

.customer-alpha-index {
  position: sticky;
  top: var(--space-4);
  display: none;
  width: 18px;
  gap: 1px;
  justify-items: center;
  align-self: start;
}

.customer-alpha-index button,
.customer-alpha-index span {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--color-neutral-400);
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 1;
  padding: 0;
}

.customer-alpha-index button {
  color: var(--color-primary-700);
  cursor: pointer;
}

.customer-alpha-index button:hover {
  background: var(--color-primary-50);
}

.customer-list {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.customer-row {
  position: relative;
  display: block;
  min-height: 72px;
  overflow: hidden;
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-lg);
  background: var(--color-bg-surface);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease, background 0.16s ease;
}

.customer-row-surface {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: inherit;
  align-items: center;
  border-radius: inherit;
  background: var(--color-bg-surface);
  transition: transform 0.18s ease, background 0.16s ease;
}

.customer-row-main {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-items: center;
  gap: var(--space-4);
  color: inherit;
  text-decoration: none;
  padding: var(--space-3) var(--space-4);
}

.customer-row:hover {
  background: var(--color-neutral-50);
  border-color: var(--color-primary-100);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.customer-row:hover .customer-row-surface {
  background: var(--color-neutral-50);
}

.customer-row:active {
  background: var(--color-primary-50);
  transform: translateY(0);
}

.customer-row.is-selected {
  border-color: var(--color-primary-200);
  border-left: 4px solid var(--color-primary-500);
  background: var(--color-primary-50);
}

.customer-row.is-selected .customer-row-surface {
  background: var(--color-primary-50);
}

.customer-row-actions {
  position: absolute;
  inset-block: 0;
  z-index: 0;
  display: none;
  align-items: stretch;
}

.customer-row-actions a,
.customer-row-actions span {
  display: grid;
  min-width: 84px;
  place-items: center;
  border: 0;
  color: #fff;
  font-size: var(--font-size-xs);
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.customer-row-actions span {
  opacity: 0.45;
}

.customer-row-actions-left {
  left: 0;
}

.customer-row-actions-left a,
.customer-row-actions-left span {
  background: #25d366;
}

.customer-row-actions-right {
  right: 0;
}

.customer-row-actions-right a:first-child,
.customer-row-actions-right span:first-child {
  background: var(--color-primary-600);
}

.customer-row-actions-right a:last-child,
.customer-row-actions-right span:last-child {
  background: var(--color-neutral-700);
}

.customer-row-copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.customer-row-name {
  overflow: hidden;
  color: var(--color-neutral-900);
  font-size: var(--font-size-base);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-row-meta {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.2rem;
  overflow: hidden;
  color: var(--color-neutral-600);
  font-size: var(--font-size-sm);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-row-address {
  overflow: hidden;
  color: var(--color-neutral-500);
  font-size: var(--font-size-sm);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-row-state {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--color-warning-100);
  color: var(--color-warning-700);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.1rem 0.35rem;
}

.customer-row-inactive .customer-row-name {
  color: var(--color-neutral-500);
}

.customer-row-call {
  display: inline-grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-lg);
  background: var(--color-neutral-50);
  color: var(--color-neutral-600);
  text-decoration: none;
  margin-right: var(--space-3);
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.customer-row-call:hover {
  border-color: var(--color-primary-200);
  background: var(--color-primary-50);
  color: var(--color-primary-700);
}

.customer-row-call svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.customer-row-call-disabled {
  opacity: 0.35;
}

.interventions-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-3);
  align-items: center;
}

.interventions-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-2);
  min-width: 0;
}

.interventions-search-submit {
  min-width: 92px;
}

.interventions-segmented {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-width: min(100%, 27rem);
}

.interventions-master-detail {
  min-width: 0;
}

.interventions-list-pane {
  min-width: 0;
}

.interventions-list {
  display: grid;
  gap: var(--space-3);
  min-width: 0;
}

.intervention-card-list {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.intervention-list-item {
  min-width: 0;
}

.intervention-list-card {
  display: grid;
  min-width: 0;
  gap: var(--space-1);
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-lg);
  background: var(--color-bg-surface);
  color: inherit;
  padding: var(--space-3) var(--space-4);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease, background 0.16s ease;
}

.intervention-list-card:hover {
  border-color: var(--color-primary-100);
  background: var(--color-neutral-50);
  color: inherit;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.intervention-list-card:active {
  background: var(--color-primary-50);
  transform: translateY(0);
}

.intervention-list-card.is-selected {
  border-color: var(--color-primary-200);
  border-left: 4px solid var(--color-primary-500);
  background: var(--color-primary-50);
}

.intervention-list-card-top {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-2);
}

.intervention-list-number {
  min-width: 0;
  overflow: hidden;
  color: var(--color-neutral-500);
  font-size: var(--font-size-xs);
  font-weight: 800;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.intervention-list-customer {
  min-width: 0;
  overflow: hidden;
  color: var(--color-neutral-900);
  font-size: var(--font-size-base);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.intervention-list-meta {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: var(--space-2);
  overflow: hidden;
  color: var(--color-neutral-600);
  font-size: var(--font-size-sm);
  white-space: nowrap;
}

.intervention-list-location {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.intervention-list-location::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: var(--space-2);
  border-radius: 999px;
  background: var(--color-neutral-300);
  vertical-align: middle;
}

.interventions-detail-pane {
  display: none;
}

.intervention-preview-card {
  display: grid;
  gap: var(--space-4);
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-xl);
  background: var(--color-bg-surface);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}

.intervention-preview-header {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
}

.intervention-preview-header h2 {
  margin: var(--space-1) 0 0;
  color: var(--color-neutral-900);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.intervention-preview-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  margin: 0;
}

.intervention-preview-summary div {
  display: grid;
  min-width: 0;
  gap: 2px;
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-lg);
  background: var(--color-neutral-50);
  padding: var(--space-3);
}

.intervention-preview-summary dt {
  color: var(--color-neutral-500);
  font-size: var(--font-size-xs);
  font-weight: 800;
  text-transform: uppercase;
}

.intervention-preview-summary dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--color-neutral-900);
  font-weight: 800;
}

.intervention-preview-description {
  display: grid;
  gap: var(--space-2);
  min-width: 0;
}

.intervention-preview-description h3 {
  margin: 0;
  color: var(--color-neutral-900);
  font-size: var(--font-size-base);
  font-weight: 800;
}

.intervention-preview-description p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--color-neutral-700);
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.intervention-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.intervention-preview-actions .pr-btn {
  min-width: 140px;
}

.interventions-empty {
  min-height: 20rem;
}

.customer-avatar {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  background: var(--customer-avatar-bg);
  color: #fff;
  font-weight: 900;
  line-height: 1;
}

.customer-avatar-sm {
  width: 40px;
  height: 40px;
  font-size: var(--font-size-sm);
}

.customer-avatar-lg {
  width: 72px;
  height: 72px;
  font-size: 1.25rem;
}

.customer-avatar-inactive {
  opacity: 0.5;
}

.customers-empty {
  min-height: 20rem;
}

.pr-bottom-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: var(--z-bottom-sheet-backdrop);
  background: var(--color-bg-overlay);
}

.customer-create-sheet {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: var(--z-bottom-sheet);
  width: min(480px, calc(100vw - 2rem));
  max-height: min(90vh, 760px);
  overflow-y: auto;
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-xl);
  background: var(--color-bg-surface);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translate(-50%, -46%) scale(0.98);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.customer-create-sheet.pr-bottom-sheet-open {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.customer-create-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-neutral-200);
  padding: var(--space-3) var(--space-4);
}

.customer-create-header h2 {
  margin: 0;
  color: var(--color-neutral-900);
  font-size: 1.5rem;
  font-weight: 800;
}

.customer-create-form {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-4);
}

.customer-type-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  margin: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--color-neutral-100);
  padding: 2px;
}

.customer-type-toggle legend {
  grid-column: 1 / -1;
  margin: 0 0 var(--space-1);
  color: var(--color-neutral-600);
  font-size: var(--font-size-sm);
  font-weight: 700;
}

.customer-type-toggle label {
  min-width: 0;
  margin: 0;
}

.customer-type-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.customer-type-toggle span {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: calc(var(--radius-lg) - 2px);
  color: var(--color-neutral-600);
  font-size: var(--font-size-sm);
  font-weight: 800;
}

.customer-type-toggle input:checked + span {
  background: var(--color-primary-500);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.customer-create-advanced {
  border-top: 1px solid var(--color-neutral-200);
  padding-top: var(--space-3);
}

.customer-create-advanced summary {
  min-height: 44px;
  color: var(--color-neutral-700);
  cursor: pointer;
  font-weight: 800;
}

.customer-create-advanced-fields {
  display: grid;
  gap: var(--space-4);
  padding-top: var(--space-2);
}

.customer-create-submit {
  width: 100%;
}

.customer-detail-page {
  display: grid;
  gap: var(--space-5);
  width: min(100%, 1080px);
  margin: 0 auto;
}

.customer-detail-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.customer-detail-warning {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.customer-detail-warning form {
  margin: 0;
}

.customer-identity {
  display: grid;
  justify-items: center;
  gap: var(--space-3);
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-xl);
  background: var(--color-bg-surface);
  padding: var(--space-8) var(--space-5) var(--space-6);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.customer-identity h1 {
  max-width: 100%;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--color-neutral-900);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0;
}

.customer-identity-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
}

.customer-detail-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
}

.customer-detail-actions form {
  margin: 0;
}

.customer-detail-actions .pr-btn {
  min-width: 164px;
}

.customer-contact-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-xl);
  background: var(--color-bg-surface);
  box-shadow: var(--shadow-sm);
}

.customer-contact-action {
  display: grid;
  min-width: 0;
  min-height: 72px;
  justify-items: center;
  align-content: center;
  gap: var(--space-1);
  border-right: 1px solid var(--color-neutral-200);
  color: var(--color-neutral-700);
  font-size: var(--font-size-xs);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.customer-contact-action:last-child {
  border-right: 0;
}

.customer-contact-action:hover {
  background: var(--color-neutral-50);
  color: var(--color-primary-700);
}

.customer-contact-action.is-disabled {
  cursor: not-allowed;
  opacity: 0.4;
  pointer-events: none;
}

.customer-contact-icon {
  display: grid;
  min-width: 28px;
  min-height: 28px;
  place-items: center;
  color: var(--color-neutral-600);
}

.customer-contact-icon-whatsapp {
  color: #25d366;
}

.customer-contact-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.customer-contact-icon-whatsapp svg {
  fill: #25d366;
  stroke: none;
}

.customer-detail-section {
  display: grid;
  gap: var(--space-3);
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-xl);
  background: var(--color-bg-surface);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}

.customer-detail-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.customer-detail-section-header h2 {
  margin: 0;
  color: var(--color-neutral-500);
  font-size: var(--font-size-xs);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.intervention-compact-list {
  display: grid;
  gap: var(--space-3);
}

.intervention-compact-card {
  display: grid;
  gap: 2px;
  min-height: 78px;
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-lg);
  background: var(--color-bg-surface);
  color: var(--color-neutral-700);
  padding: var(--space-4);
  text-decoration: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.intervention-compact-card:hover {
  border-color: var(--color-primary-200);
  box-shadow: var(--shadow-sm);
  color: var(--color-neutral-900);
  transform: translateY(-1px);
}

.intervention-compact-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.intervention-compact-number {
  color: var(--color-neutral-600);
  font-size: var(--font-size-xs);
  font-weight: 900;
}

.intervention-compact-title {
  overflow: hidden;
  color: var(--color-neutral-900);
  font-size: var(--font-size-sm);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.intervention-compact-date {
  color: var(--color-neutral-500);
  font-size: var(--font-size-xs);
}

.customer-inline-empty {
  display: grid;
  gap: 2px;
  border: 1px dashed var(--color-neutral-300);
  border-radius: var(--radius-md);
  color: var(--color-neutral-600);
  padding: var(--space-4);
}

.customer-inline-empty strong {
  color: var(--color-neutral-900);
}

.customer-new-intervention {
  width: 100%;
  min-height: 48px;
}

.customer-new-intervention.is-disabled {
  cursor: not-allowed;
  opacity: 0.5;
  pointer-events: none;
}

.customer-data-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  margin: 0;
}

.customer-data-list div {
  display: grid;
  gap: 2px;
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-lg);
  background: var(--color-neutral-50);
  padding: var(--space-3);
}

.customer-data-list dt {
  color: var(--color-neutral-500);
  font-size: var(--font-size-xs);
  font-weight: 900;
  text-transform: uppercase;
}

.customer-data-list dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--color-neutral-800, var(--color-neutral-700));
}

.customer-notes {
  white-space: pre-wrap;
}

.signature-canvas {
  width: 100%;
  max-width: 900px;
  height: 260px;
  display: block;
  border: 1px solid var(--color-neutral-300);
  border-radius: var(--radius-md);
  background: #fff;
  touch-action: none;
}

.signature-image {
  max-width: 520px;
  width: 100%;
  border: 1px solid var(--color-neutral-300);
  border-radius: var(--radius-md);
  background: #fff;
}

.mobile-card-list {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-4);
}

.mobile-list-card {
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  background: var(--color-bg-surface);
}

.mobile-card-fields {
  display: grid;
  grid-template-columns: minmax(6.5rem, auto) 1fr;
  gap: 0.35rem var(--space-3);
  margin: var(--space-3) 0 0;
}

.mobile-card-fields dt {
  color: var(--color-neutral-600);
  font-weight: 400;
}

.mobile-card-fields dd {
  min-width: 0;
  margin-bottom: 0;
  overflow-wrap: anywhere;
}

.customer-combobox {
  width: 100%;
}

.customer-suggestions {
  position: absolute;
  inset-inline: 0;
  top: calc(100% + 0.25rem);
  z-index: 1050;
  max-height: 16rem;
  overflow-x: hidden;
  overflow-y: auto;
  box-shadow: var(--shadow-md);
}

.customer-suggestion {
  display: grid;
  gap: 0.15rem;
  overflow-wrap: anywhere;
  text-align: left;
  white-space: normal;
}

.customer-suggestion-name {
  font-weight: 700;
}

.customer-suggestion-detail {
  color: var(--color-neutral-600);
  font-size: var(--font-size-sm);
}

.site-address-header {
  max-width: 100%;
}

.company-logo-preview img {
  display: block;
  max-width: 100%;
  max-height: 140px;
  width: auto;
  height: auto;
}

.user-menu-toggle {
  max-width: min(100%, 18rem);
  overflow-wrap: anywhere;
  text-align: left;
}

.user-menu {
  min-width: 13rem;
}

/* Typography refinement: keep component layout intact while softening hierarchy. */
h1,
.dashboard-hero h1,
.customers-header h1,
.intervention-workflow-header h1,
.intervention-detail-title h1,
.signature-workflow-header h1,
.customer-identity h1,
.customer-detail-identity h1 {
  font-weight: 700;
}

h2,
h3,
.dashboard-card-header h2,
.intervention-form-section-header h2,
.intervention-detail-section-header h2,
.intervention-system-card h2,
.signature-summary-card h2,
.customer-detail-section-header h2,
.customers-section-label,
.customer-alpha-heading,
.pr-empty-state-title {
  font-weight: 600;
}

.form-label,
dt,
.customer-data-list dt,
.intervention-detail-summary dt,
.intervention-system-list dt,
.signature-summary-card dt,
.mobile-card-fields dt {
  font-weight: 500;
}

dd,
.customer-data-list dd,
.intervention-detail-summary dd,
.intervention-system-list dd,
.signature-summary-card dd,
.mobile-card-fields dd,
.dashboard-row-main strong,
.dashboard-recent-main strong,
.dashboard-customer-copy strong,
.customer-row-name,
.intervention-rich-text,
.customer-notes,
.customer-inline-empty strong,
.dashboard-inline-empty strong,
.dashboard-positive-empty strong {
  font-weight: 500;
}

p,
.text-muted,
.customers-header p,
.dashboard-hero p:last-child,
.dashboard-card-kicker,
.dashboard-eyebrow,
.intervention-workflow-kicker,
.intervention-form-section-header p,
.intervention-workflow-header p:last-child,
.signature-workflow-header p:last-child,
.customer-row-meta,
.customer-row-address,
.intervention-compact-date,
.dashboard-row-main span,
.dashboard-recent-main span,
.dashboard-customer-copy span,
.signature-summary-card p {
  font-weight: 400;
}

.dashboard-metric-card h2,
.dashboard-count-pill,
.customer-avatar,
.customer-avatar-sm,
.customer-avatar-lg,
.dashboard-customer-avatar,
.pr-brand-mark,
.pr-user-avatar {
  font-weight: 600;
}

.pr-admin-table-wrap {
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-lg);
  background: var(--color-bg-surface);
}

.pr-admin-table {
  min-width: 980px;
}

.pr-admin-table th,
.pr-admin-table td {
  overflow-wrap: normal;
  word-break: normal;
}

.pr-table-strong {
  color: var(--color-neutral-900);
  font-weight: 700;
}

.pr-table-email {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pr-table-nowrap {
  white-space: nowrap;
}

.pr-table-actions-cell {
  width: 1%;
  white-space: nowrap;
}

.pr-table-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-2);
  white-space: nowrap;
}

.pr-table-actions form {
  margin: 0;
}

.pr-table-actions .btn,
.pr-table-actions-cell .btn {
  min-height: 34px;
  white-space: nowrap;
}

.border-top {
  border-top: 1px solid var(--color-neutral-200) !important;
}

.border-bottom {
  border-bottom: 1px solid var(--color-neutral-200) !important;
}

.box-shadow {
  box-shadow: var(--shadow-sm);
}

button.accept-policy {
  font-size: 1rem;
  line-height: inherit;
}

@media (max-width: 1023.98px) and (min-width: 768px) {
  .pr-sidebar {
    width: 64px;
    padding-inline: 6px;
  }

  .pr-brand,
  .pr-nav-item,
  .pr-user-summary {
    justify-content: center;
    gap: 0;
  }

  .pr-brand-text,
  .pr-nav-label,
  .pr-user-name,
  .pr-sidebar-register {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .pr-brand-mark {
    width: 40px;
    height: 40px;
    font-size: 0.75rem;
  }

  .pr-nav-icon {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
  }

  .pr-user-avatar {
    width: 36px;
    height: 36px;
  }

  .pr-shell-content {
    margin-left: 64px;
  }

  .pr-main {
    padding: var(--space-6) var(--space-5);
  }
}

@media (max-width: 1199.98px) and (min-width: 768px) {
  .dashboard-signing-card,
  .dashboard-recent-card {
    grid-column: 1 / span 12;
  }

  .dashboard-today-card {
    grid-column: 1 / span 6;
  }

  .dashboard-week-card {
    grid-column: 7 / span 6;
  }

  .dashboard-customers-card {
    grid-column: 1 / span 12;
  }
}

@media (min-width: 1024px), (min-width: 768px) and (orientation: landscape) {
  .interventions-master-detail {
    display: grid;
    grid-template-columns: 420px minmax(0, 1fr);
    gap: var(--space-5);
    align-items: start;
  }

  .interventions-list-pane {
    max-height: calc(100vh - 180px);
    overflow-y: auto;
    padding-right: var(--space-1);
  }

  .interventions-detail-pane {
    display: block;
    min-height: calc(100vh - 180px);
    max-height: calc(100vh - 180px);
    overflow-y: auto;
    padding-right: var(--space-1);
  }

  .customers-master-detail {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: var(--space-5);
    align-items: start;
  }

  .customers-list-pane {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 18px;
    gap: var(--space-2);
    max-height: calc(100vh - 180px);
    overflow-y: auto;
    padding-right: var(--space-1);
  }

  .customers-list-pane .customers-directory {
    gap: var(--space-4);
  }

  .customers-list-pane .customers-recent-section {
    padding: var(--space-2);
  }

  .customers-list-pane .customer-row {
    min-height: 62px;
  }

  .customers-list-pane .customer-row-main {
    gap: var(--space-3);
    padding: var(--space-2) var(--space-3);
  }

  .customers-list-pane .customer-avatar-sm {
    width: 36px;
    height: 36px;
  }

  .customers-list-pane .customer-row-call {
    margin-right: var(--space-2);
  }

  .customers-detail-pane {
    display: block;
    min-height: calc(100vh - 180px);
    max-height: calc(100vh - 180px);
    overflow-y: auto;
    padding-right: var(--space-1);
  }

  .customers-detail-pane .customer-detail-page {
    width: 100%;
    margin: 0;
  }

  .customer-alpha-index {
    display: grid;
  }
}

@media (min-width: 768px) {
  .customer-row {
    min-height: 64px;
  }

  .customer-row-main {
    padding-block: var(--space-2);
  }
}

@media (max-width: 767.98px) {
  body {
    padding-bottom: calc(74px + env(safe-area-inset-bottom));
  }

  body.pr-sheet-is-open {
    overflow: hidden;
  }

  input,
  select,
  textarea,
  button,
  .btn,
  .form-control,
  .form-select {
    font-size: 16px;
  }

  .btn,
  .form-control,
  .form-select {
    min-height: 44px;
  }

  .container {
    max-width: 100%;
  }

  .pr-sidebar {
    display: none;
  }

  .pr-shell-content {
    margin-left: 0;
  }

  .pr-mobile-topbar {
    position: sticky;
    top: 0;
    z-index: 990;
    display: flex;
    min-height: 48px;
    align-items: center;
    gap: var(--space-3);
    border-bottom: 1px solid var(--color-neutral-200);
    background: rgba(255, 255, 255, 0.96);
    padding: 0 var(--space-4);
  }

  .pr-mobile-brand {
    flex: 0 0 auto;
    color: var(--color-neutral-900);
    font-weight: 800;
    text-decoration: none;
  }

  .pr-mobile-title {
    min-width: 0;
    overflow: hidden;
    color: var(--color-neutral-600);
    font-size: var(--font-size-sm);
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .pr-main {
    width: 100%;
    padding: var(--space-5) var(--space-4);
  }

  .dashboard-page {
    gap: var(--space-4);
  }

  .dashboard-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .dashboard-hero h1 {
    font-size: 1.55rem;
  }

  .dashboard-primary-action {
    width: 100%;
    min-width: 0;
    min-height: 58px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .dashboard-card,
  .dashboard-signing-card,
  .dashboard-today-card,
  .dashboard-week-card,
  .dashboard-customers-card,
  .dashboard-recent-card {
    grid-column: auto;
  }

  .dashboard-card {
    gap: var(--space-3);
    padding: var(--space-4);
  }

  .dashboard-card-header h2 {
    font-size: var(--font-size-base);
  }

  .dashboard-count-pill {
    min-width: 46px;
    height: 46px;
    font-size: 1.25rem;
  }

  .dashboard-intervention-row,
  .dashboard-recent-item {
    align-items: stretch;
  }

  .dashboard-intervention-row {
    display: grid;
  }

  .dashboard-row-action {
    width: 100%;
  }

  .dashboard-metric-card {
    min-height: 112px;
  }

  .dashboard-metric-card h2 {
    font-size: 2rem;
  }

  .dashboard-recent-item {
    display: grid;
  }

  .dashboard-recent-item .pr-badge {
    justify-self: start;
  }

  .intervention-workflow-page,
  .intervention-detail-page,
  .signature-workflow-page {
    gap: var(--space-4);
  }

  .intervention-workflow-header,
  .intervention-detail-hero,
  .signature-workflow-header {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .intervention-workflow-header h1,
  .intervention-detail-title h1,
  .signature-workflow-header h1 {
    font-size: 1.45rem;
  }

  .intervention-workflow-header .pr-btn,
  .signature-workflow-header .pr-btn,
  .intervention-form-actions .pr-btn,
  .signature-actions .pr-btn,
  .intervention-action-panel .pr-btn,
  .intervention-action-panel form,
  .intervention-action-panel button {
    width: 100%;
  }

  .intervention-form-card,
  .intervention-detail-hero,
  .intervention-detail-card,
  .intervention-system-card,
  .signature-form-card,
  .signature-summary-card {
    padding: var(--space-4);
  }

  .intervention-form-section {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .intervention-field-half,
  .intervention-field-full,
  .intervention-field-small,
  .intervention-field-large {
    grid-column: auto;
  }

  .intervention-inline-action {
    width: 100%;
  }

  .intervention-action-panel,
  .intervention-form-actions,
  .signature-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .intervention-photo-upload-row,
  .intervention-photo-actions,
  .intervention-photo-actions form,
  .intervention-photo-actions .pr-btn {
    width: 100%;
  }

  .intervention-photo-upload-row {
    display: grid;
  }

  .intervention-photo-grid {
    grid-template-columns: 1fr;
  }

  .intervention-photo-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intervention-photo-actions form:last-child {
    grid-column: 1 / -1;
  }

  .intervention-photo-actions .pr-icon-btn {
    width: 100%;
  }

  .intervention-detail-summary,
  .intervention-system-list,
  .signature-summary-card dl {
    grid-template-columns: 1fr;
  }

  .signature-canvas-header {
    display: grid;
    gap: 2px;
  }

  .signature-canvas {
    height: 220px;
  }

  .customers-page {
    gap: var(--space-4);
  }

  .customers-header {
    align-items: stretch;
  }

  .customers-header p {
    display: none;
  }

  .customers-header .pr-btn {
    width: 44px;
    min-width: 44px;
    padding-inline: 0;
    overflow: hidden;
    font-size: 0;
    white-space: nowrap;
  }

  .customers-header .pr-btn::before {
    content: "+";
    font-size: 1.35rem;
    line-height: 1;
  }

  .customers-toolbar {
    grid-template-columns: 1fr;
  }

  .interventions-toolbar,
  .interventions-search-form {
    grid-template-columns: 1fr;
  }

  .interventions-search-submit {
    width: 100%;
  }

  .customers-segmented {
    width: 100%;
  }

  .interventions-segmented {
    min-width: 0;
  }

  .intervention-list-card {
    min-height: 92px;
  }

  .intervention-list-location {
    display: none;
  }

  .customer-row-main {
    padding-left: 0;
    gap: var(--space-3);
  }

  .customer-row {
    min-height: 68px;
    border-radius: var(--radius-lg);
  }

  .customer-row-surface {
    touch-action: pan-y;
  }

  .customer-row-actions {
    display: flex;
  }

  .customer-row.is-swiped-left .customer-row-surface {
    transform: translateX(-168px);
  }

  .customer-row.is-swiped-right .customer-row-surface {
    transform: translateX(104px);
  }

  .customer-row-call {
    margin-right: var(--space-2);
  }

  .customer-alpha-heading {
    top: 48px;
    margin-inline: calc(var(--space-4) * -1);
    padding-inline: var(--space-4);
  }

  .pr-page-narrow,
  .pr-page-standard,
  .pr-page-wide {
    max-width: none;
  }

  .pr-footer {
    display: none;
  }

  .pr-bottom-tabs {
    position: fixed;
    inset: auto 0 0 0;
    z-index: var(--z-mobile-nav);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    min-height: calc(64px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--color-neutral-200);
    background: var(--color-bg-surface);
    padding: var(--space-1) var(--space-2) calc(var(--space-1) + env(safe-area-inset-bottom));
    box-shadow: 0 -8px 24px rgba(17, 24, 39, 0.08);
  }

  .pr-bottom-tab {
    display: flex;
    min-width: 0;
    min-height: 56px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border: 0;
    border-radius: var(--radius-lg);
    background: transparent;
    color: var(--color-neutral-600);
    font-size: var(--font-size-xs);
    font-weight: 800;
    text-decoration: none;
  }

  .pr-bottom-tab:hover,
  .pr-bottom-tab.is-active {
    background: var(--color-primary-50);
    color: var(--color-primary-700);
  }

  .pr-bottom-tab-icon {
    display: grid;
    height: 24px;
    place-items: center;
    font-size: 0.95rem;
    font-weight: 900;
    line-height: 1;
  }

  .pr-bottom-tab-new .pr-bottom-tab-icon {
    width: 28px;
    border-radius: 999px;
    background: var(--color-primary-500);
    color: #fff;
    font-weight: 900;
  }

  .pr-bottom-sheet-backdrop {
    position: fixed;
    inset: 0;
    z-index: var(--z-bottom-sheet-backdrop);
    background: var(--color-bg-overlay);
  }

  .pr-bottom-sheet {
    position: fixed;
    inset: auto 0 0 0;
    z-index: var(--z-bottom-sheet);
    max-height: min(78vh, 480px);
    overflow-y: auto;
    border-radius: 18px 18px 0 0;
    background: var(--color-bg-surface);
    box-shadow: var(--shadow-lg);
    transform: translateY(100%);
    transition: transform 0.2s ease;
  }

  .customer-create-sheet {
    top: auto;
    left: 0;
    width: 100%;
    max-height: 90vh;
    border: 0;
    border-radius: 18px 18px 0 0;
    opacity: 1;
    transform: translateY(100%);
    transition: transform 0.3s ease;
  }

  .customer-create-sheet.pr-bottom-sheet-open {
    transform: translateY(0);
  }

  .customer-create-header {
    padding-inline: var(--space-4);
  }

  .customer-detail-page {
    gap: var(--space-4);
    width: 100%;
  }

  .customer-detail-warning {
    align-items: stretch;
    flex-direction: column;
  }

  .customer-identity {
    padding: var(--space-6) var(--space-4);
  }

  .customer-detail-actions,
  .customer-detail-actions form,
  .customer-detail-actions .pr-btn {
    width: 100%;
  }

  .customer-contact-action {
    min-height: 64px;
  }

  .customer-contact-icon svg {
    width: 23px;
    height: 23px;
  }

  .customer-detail-section {
    padding: var(--space-4);
  }

  .customer-data-list {
    grid-template-columns: 1fr;
  }

  .pr-bottom-sheet-open {
    transform: translateY(0);
  }

  .pr-bottom-sheet-handle {
    width: 42px;
    height: 4px;
    margin: var(--space-3) auto var(--space-2);
    border-radius: 999px;
    background: var(--color-neutral-300);
  }

  .pr-bottom-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-4) var(--space-3);
  }

  .pr-bottom-sheet-header h2 {
    margin: 0;
    color: var(--color-neutral-900);
    font-size: 1rem;
    font-weight: 800;
  }

  .pr-bottom-sheet-content {
    display: grid;
    gap: var(--space-1);
    padding: 0 var(--space-4) calc(var(--space-4) + env(safe-area-inset-bottom));
  }

  .pr-sheet-item {
    display: flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    border: 0;
    border-radius: var(--radius-lg);
    background: transparent;
    color: var(--color-neutral-700);
    font-weight: 700;
    text-align: left;
    text-decoration: none;
  }

  .pr-sheet-item:hover {
    background: var(--color-neutral-100);
    color: var(--color-neutral-900);
  }

  .pr-sheet-button {
    padding: 0;
  }

  .mobile-card-list {
    padding-inline: 0;
  }

  .customer-suggestions {
    position: static;
    margin-top: var(--space-1);
  }

  .user-menu {
    width: 100%;
  }
}

.trash-page {
  display: grid;
  gap: var(--space-6);
}

.trash-header {
  align-items: flex-end;
}

.trash-section {
  display: grid;
  gap: var(--space-3);
}

.trash-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.trash-section-heading h2 {
  margin: 0;
  color: var(--color-neutral-900);
  font-size: 1.05rem;
  font-weight: 700;
}

.trash-section-heading span {
  display: inline-flex;
  min-width: 32px;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--color-neutral-100);
  color: var(--color-neutral-700);
  font-size: 0.9rem;
  font-weight: 700;
}

.trash-list {
  display: grid;
  gap: var(--space-2);
}

.trash-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg-surface);
  padding: var(--space-4);
}

.trash-item h3 {
  margin: var(--space-2) 0 var(--space-1);
  color: var(--color-neutral-900);
  font-size: 1rem;
  font-weight: 700;
}

.trash-item p {
  margin: 0;
  color: var(--color-neutral-600);
  font-size: 0.9rem;
}

.trash-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--space-2);
}

.trash-actions form {
  display: flex;
}

.trash-empty {
  min-height: 160px;
}

@media (max-width: 767.98px) {
  .trash-item {
    align-items: stretch;
    flex-direction: column;
  }

  .trash-actions,
  .trash-actions form,
  .trash-actions .pr-btn {
    width: 100%;
  }
}
