:root {
  color-scheme: light;
  font-family: "DM Sans", Arial, sans-serif;
}

html,
body.franchise-users-page {
  overflow-x: clip;
}

* {
  box-sizing: border-box;
}

body.franchise-users-page {
  background: #ffffff;
  color: #231f20;
  margin: 0;
  min-height: 100vh;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.franchise-users-header {
  background: #ffffff;
  border-bottom: 1px solid #d8d8d4;
}

.franchise-users-header-inner {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1240px;
  min-height: 72px;
  padding: 10px 24px;
}

.franchise-users-brand img {
  display: block;
  height: auto;
  width: 190px;
}

.franchise-users-nav {
  align-items: center;
  display: flex;
  gap: 18px;
}

.franchise-users-nav a {
  color: #231f20;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.franchise-users-account {
  color: #666660;
  font-size: 13px;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.franchise-users-main {
  margin: 0;
  max-width: none;
  padding: 40px 24px 64px;
  width: 100%;
}

.franchise-users-toolbar {
  align-items: flex-end;
  display: flex;
  justify-content: space-between;
  margin-bottom: 26px;
}

.franchise-users-eyebrow {
  color: #777770;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.franchise-users-toolbar h1,
.franchise-dialog-header h2 {
  letter-spacing: 0;
  margin: 0;
}

.franchise-users-toolbar h1 {
  font-size: 32px;
  line-height: 1.15;
}

.franchise-users-toolbar-actions,
.franchise-user-actions {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.franchise-impersonate-command {
  min-height: 36px;
  padding: 7px 10px;
}

.franchise-test-user-badge {
  background: #eeeeeb;
  border: 1px solid #c9c9c4;
  border-radius: 3px;
  color: #4d4d48;
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  margin-top: 5px;
  padding: 2px 6px;
  text-transform: uppercase;
}

.primary-command,
.secondary-command,
.icon-command {
  align-items: center;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
}

.primary-command,
.secondary-command {
  border: 1px solid #231f20;
  font-size: 14px;
  font-weight: 800;
  gap: 8px;
  min-height: 42px;
  padding: 10px 16px;
}

.primary-command {
  background: #f5a706;
  color: #231f20;
}

.primary-command:hover {
  background: #ffc13d;
}

.secondary-command {
  background: #ffffff;
  color: #231f20;
}

.secondary-command:hover {
  background: #eeeeeb;
}

.icon-command {
  background: transparent;
  border: 1px solid transparent;
  color: #231f20;
  font-size: 18px;
  height: 40px;
  padding: 0;
  width: 40px;
}

.icon-command:hover {
  background: #eeeeeb;
}

.primary-command:focus-visible,
.secondary-command:focus-visible,
.icon-command:focus-visible,
.franchise-users-nav a:focus-visible,
.franchise-access-dialog input:focus-visible {
  outline: 3px solid #f5a706;
  outline-offset: 2px;
}

.primary-command:disabled,
.secondary-command:disabled,
.icon-command:disabled {
  cursor: wait;
  opacity: 0.6;
}

.franchise-users-status {
  background: #ffffff;
  border-left: 4px solid #777770;
  margin: 0;
  padding: 14px 16px;
}

.franchise-users-status[data-type="error"] {
  background: #fff0f0;
  border-color: #a52020;
  color: #721c1c;
}

.franchise-users-content {
  background: #ffffff;
  border: 1px solid #d8d8d4;
}

.franchise-users-filters {
  align-items: end;
  background: #f7f7f4;
  border-bottom: 1px solid #d8d8d4;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, minmax(120px, 1fr)) auto;
  padding: 16px;
}

.franchise-filter-field {
  color: #444440;
  display: grid;
  font-size: 12px;
  font-weight: 800;
  gap: 6px;
}

.franchise-filter-field > input[type="search"],
.franchise-multiselect-panel > input[type="search"],
.franchise-multiselect-toggle {
  background: #ffffff;
  border: 1px solid #8b8b85;
  border-radius: 4px;
  color: #231f20;
  min-height: 42px;
  min-width: 0;
  padding: 8px 10px;
  width: 100%;
}

.franchise-filter-field > input[type="search"]:focus-visible,
.franchise-multiselect-panel > input[type="search"]:focus-visible,
.franchise-multiselect-toggle:focus-visible {
  outline: 3px solid #f5a706;
  outline-offset: 2px;
}

.franchise-multiselect {
  position: relative;
}

.franchise-multiselect-toggle {
  align-items: center;
  cursor: pointer;
  display: flex;
  font-weight: 500;
  gap: 8px;
  justify-content: space-between;
  text-align: left;
}

.franchise-multiselect-toggle > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.franchise-multiselect-chevron {
  font-size: 17px;
  line-height: 1;
  transition: transform 140ms ease;
}

.franchise-multiselect-toggle[aria-expanded="true"] .franchise-multiselect-chevron {
  transform: rotate(180deg);
}

.franchise-multiselect-panel {
  background: #ffffff;
  border: 1px solid #8b8b85;
  box-shadow: 0 8px 24px rgba(35, 31, 32, 0.16);
  left: 0;
  min-width: 240px;
  padding: 8px;
  position: absolute;
  top: calc(100% + 6px);
  width: max(100%, 260px);
  z-index: 20;
}

.franchise-multiselect-panel > input[type="search"] {
  margin-bottom: 8px;
}

.franchise-multiselect-actions {
  border-bottom: 1px solid #e3e3df;
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  margin-bottom: 4px;
  padding: 0 0 6px;
}

.franchise-multiselect-actions button {
  background: transparent;
  border: 0;
  color: #231f20;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 7px;
  text-decoration: underline;
}

.franchise-multiselect-actions button:disabled {
  color: #8b8b85;
  cursor: default;
  text-decoration: none;
}

.franchise-multiselect-actions button:focus-visible {
  outline: 3px solid #f5a706;
  outline-offset: 1px;
}

.franchise-multiselect-options {
  display: grid;
  max-height: 230px;
  overflow-y: auto;
}

.franchise-multiselect-option {
  align-items: center;
  cursor: pointer;
  display: flex;
  font-size: 13px;
  font-weight: 500;
  gap: 9px;
  min-height: 38px;
  padding: 7px 6px;
}

.franchise-multiselect-option:hover {
  background: #f1f1ed;
}

.franchise-multiselect-option input {
  accent-color: #231f20;
  flex: 0 0 auto;
  height: 17px;
  margin: 0;
  width: 17px;
}

.franchise-multiselect-empty {
  color: #666660;
  font-size: 13px;
  font-weight: 500;
  margin: 0;
  padding: 10px 6px;
}

.franchise-filter-clear {
  white-space: nowrap;
}

.franchise-users-table-wrap {
  overflow-x: auto;
}

.franchise-users-table {
  border-collapse: collapse;
  min-width: 820px;
  table-layout: fixed;
  width: 100%;
}

.franchise-users-table th,
.franchise-users-table td {
  border-bottom: 1px solid #e3e3df;
  padding: 16px;
  text-align: left;
  vertical-align: top;
}

.franchise-users-table th {
  background: #f7f7f4;
  color: #666660;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.franchise-users-table th:first-child,
.franchise-users-table td:first-child {
  width: 25%;
}

.franchise-users-table th:nth-child(2),
.franchise-users-table td:nth-child(2) {
  width: 11%;
}

.franchise-users-table th:nth-child(3),
.franchise-users-table td:nth-child(3) {
  width: 39%;
}

.franchise-users-table th:nth-child(4),
.franchise-users-table td:nth-child(4) {
  width: 18%;
}

.franchise-users-table th:last-child,
.franchise-users-table td:last-child {
  text-align: right;
  width: 7%;
}

.franchise-user-name {
  font-size: 14px;
  font-weight: 800;
  margin: 0;
  overflow-wrap: anywhere;
}

.franchise-user-email,
.franchise-user-phone,
.franchise-user-date {
  color: #666660;
  font-size: 13px;
  margin: 4px 0 0;
}

.franchise-user-access {
  display: grid;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.franchise-user-access li {
  font-size: 13px;
  line-height: 1.4;
}

.franchise-user-status {
  background: #ecece8;
  border-radius: 3px;
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 7px;
  text-transform: uppercase;
}

.franchise-user-status[data-status="active"] {
  background: #e4f2e6;
  color: #235b2c;
}

.franchise-user-status[data-status="invited"] {
  background: #fff1cf;
  color: #6b4a00;
}

.franchise-users-empty {
  color: #666660;
  margin: 0;
  padding: 36px 20px;
  text-align: center;
}

.franchise-access-dialog {
  border: 0;
  border-radius: 6px;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.28);
  max-height: calc(100vh - 40px);
  max-width: 820px;
  padding: 0;
  width: calc(100% - 32px);
}

.franchise-access-dialog::backdrop {
  background: rgba(35, 31, 32, 0.66);
}

.franchise-access-dialog form {
  padding: 26px;
}

.franchise-dialog-header {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  margin-bottom: 22px;
}

.franchise-dialog-header > div {
  min-width: 0;
}

.franchise-dialog-header h2 {
  font-size: 22px;
}

.franchise-access-user-label {
  color: #4d4d48;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  margin: 6px 0 0;
  overflow-wrap: anywhere;
}

.franchise-field-label,
.franchise-access-group legend {
  color: #333330;
  font-size: 13px;
  font-weight: 800;
}

.franchise-profile-fields {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr;
}

.franchise-field-label {
  display: block;
}

.franchise-access-dialog input[type="text"],
.franchise-access-dialog input[type="email"],
.franchise-access-dialog input[type="tel"] {
  border: 1px solid #8b8b85;
  border-radius: 4px;
  display: block;
  margin-top: 7px;
  min-height: 44px;
  padding: 9px 11px;
  width: 100%;
}

.franchise-access-dialog input[readonly] {
  background: #eeeeeb;
  color: #555550;
}

.franchise-access-options {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.franchise-password-reset {
  align-items: center;
  border-top: 1px solid #d8d8d4;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 16px;
}

.franchise-password-reset h3 {
  color: #22221f;
  font-size: 15px;
  margin: 0 0 4px;
}

.franchise-password-reset p {
  color: #5c5c55;
  font-size: 13px;
  line-height: 1.35;
  margin: 0;
}

.franchise-password-reset p[data-type="error"] {
  color: #9d1f1f;
}

.franchise-password-reset p[data-type="success"] {
  color: #1f6b3a;
}

.franchise-access-group {
  border: 0;
  margin: 0;
  padding: 0;
}

.franchise-access-group legend {
  margin-bottom: 9px;
}

.franchise-access-select .franchise-multiselect-toggle {
  min-height: 46px;
}

.franchise-access-select .franchise-multiselect-panel {
  min-width: 100%;
  width: 100%;
  z-index: 30;
}

.franchise-permission-overrides {
  border-top: 1px solid #d8d8d4;
  margin-top: 24px;
  padding-top: 20px;
}

.franchise-overrides-header {
  align-items: end;
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.franchise-overrides-header h3 {
  font-size: 17px;
  margin: 0;
}

.franchise-overrides-header label {
  color: #333330;
  font-size: 13px;
  font-weight: 800;
  min-width: min(320px, 55%);
}

.franchise-overrides-header select {
  background: #ffffff;
  border: 1px solid #8b8b85;
  border-radius: 4px;
  display: block;
  margin-top: 7px;
  min-height: 42px;
  padding: 8px 34px 8px 10px;
  width: 100%;
}

.franchise-overrides-status {
  border-left: 4px solid #8b8b85;
  color: #555550;
  font-size: 13px;
  margin: 16px 0 0;
  padding: 8px 10px;
}

.franchise-overrides-table-wrap {
  border: 1px solid #d8d8d4;
  margin-top: 16px;
  overflow-x: auto;
}

.franchise-overrides-table {
  border-collapse: collapse;
  min-width: 620px;
  width: 100%;
}

.franchise-overrides-table th,
.franchise-overrides-table td {
  border-bottom: 1px solid #e8e8e4;
  padding: 10px 12px;
  text-align: center;
}

.franchise-overrides-table th {
  background: #f7f7f4;
  color: #555550;
  font-size: 11px;
  text-transform: uppercase;
}

.franchise-overrides-table th:first-child,
.franchise-overrides-table td:first-child {
  text-align: left;
}

.franchise-overrides-table tbody tr:last-child th,
.franchise-overrides-table tbody tr:last-child td {
  border-bottom: 0;
}

.franchise-overrides-table input[type="checkbox"] {
  accent-color: #231f20;
  height: 18px;
  margin: 0;
  width: 18px;
}

.franchise-overrides-table input[type="checkbox"]:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.franchise-dialog-error {
  background: #fff0f0;
  border-left: 4px solid #a52020;
  color: #721c1c;
  font-size: 13px;
  margin: 20px 0 0;
  padding: 11px 12px;
}

.franchise-dialog-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 26px;
}

.sr-only {
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1100px) {
  .franchise-users-filters {
    grid-template-columns: repeat(3, minmax(140px, 1fr));
  }

  .franchise-filter-clear {
    justify-self: start;
  }
}

@media (max-width: 720px) {
  .franchise-users-header-inner,
  .franchise-users-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .franchise-users-brand img {
    width: 150px;
  }

  .franchise-users-account {
    display: none;
  }

  .franchise-users-toolbar {
    align-items: stretch;
    gap: 18px;
  }

  .franchise-users-toolbar h1 {
    font-size: 27px;
  }

  .franchise-users-toolbar .primary-command {
    align-self: flex-end;
  }

  .franchise-users-toolbar-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .franchise-users-filters {
    grid-template-columns: 1fr;
  }

  .franchise-filter-clear {
    justify-self: stretch;
  }

  .franchise-multiselect-panel {
    margin-top: 0;
    min-width: 0;
    position: static;
    width: 100%;
  }

  .franchise-users-content,
  .franchise-users-table-wrap {
    max-width: 100%;
    min-width: 0;
    overflow: visible;
  }

  .franchise-users-table {
    display: block;
    min-width: 0;
  }

  .franchise-users-table thead {
    display: none;
  }

  .franchise-users-table tbody {
    display: block;
  }

  .franchise-users-table tr {
    display: grid;
    gap: 4px 12px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 14px;
  }

  .franchise-users-table td,
  .franchise-users-table td:first-child,
  .franchise-users-table td:nth-child(2),
  .franchise-users-table td:nth-child(3),
  .franchise-users-table td:nth-child(4),
  .franchise-users-table td:last-child {
    border: 0;
    padding: 3px 0;
    text-align: left;
    width: auto;
  }

  .franchise-users-table td:first-child {
    grid-column: 1;
    grid-row: 1;
  }

  .franchise-users-table td:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }

  .franchise-users-table td:nth-child(3) {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .franchise-users-table td:nth-child(4) {
    grid-column: 1;
    grid-row: 3;
  }

  .franchise-users-table td:last-child {
    grid-column: 2;
    grid-row: 3;
    justify-self: end;
  }

  .franchise-access-dialog form {
    padding: 22px 18px;
  }

  .franchise-dialog-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .franchise-overrides-header {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .franchise-overrides-header label {
    min-width: 0;
  }

  .franchise-profile-fields {
    grid-template-columns: 1fr;
  }

  .franchise-password-reset {
    align-items: stretch;
    flex-direction: column;
  }

  .franchise-password-reset .secondary-command {
    width: 100%;
  }
}
