/* base.css */
/**
 * Base: design tokens, reset, typography, form controls, buttons, alerts, badges.
 */

:root {
  --bg: #f4f7fb;
  --card: #fff;
  --text: #172033;
  --muted: #6b7280;
  --border: #e5e7eb;
  --primary: #0f172a;
  --accent: #2563eb;
  --danger: #b91c1c;
  --success: #166534;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  font-size: 16px;
}
a {
  text-decoration: none;
  color: inherit;
}
.right {
  text-align: right;
  white-space: nowrap;
}
.balance {
  font-size: 15px;
}
.empty {
  padding: 30px;
  text-align: center;
  color: var(--muted);
}
label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #374151;
}
input,
select,
textarea {
  width: 100%;
  margin-top: 7px;
  min-height: 48px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 11px 13px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 16px;
}
textarea {
  resize: vertical;
}
.primary,
.secondary,
.search button,
.fab {
  border: 0;
  border-radius: 12px;
  min-height: 48px;
  padding: 10px 16px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.primary {
  background: var(--primary);
  color: #fff;
}
.secondary,
.search button {
  background: #eef2ff;
  color: #1e3a8a;
}
.wide {
  width: 100%;
}
.alert {
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 12px;
  font-size: 14px;
}
.alert.error {
  background: #fee2e2;
  color: var(--danger);
}
.alert.success {
  background: #dcfce7;
  color: var(--success);
}
.pill {
  font-size: 10px;
  border-radius: 99px;
  background: #e5e7eb;
  padding: 4px 8px;
  color: #4b5563;
}
.muted {
  color: var(--muted);
}
code {
  word-break: break-all;
  background: #f3f4f6;
  padding: 4px 6px;
  border-radius: 7px;
}

/* layout.css */
/**
 * Layout: app shell, top bar (brand, user name, Logout button), bottom navigation, floating action button.
 */

.app-shell {
  min-height: 100vh;
  padding-bottom: 72px;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.brand {
  font-size: 20px;
  font-weight: 800;
}
.brand.big {
  font-size: 30px;
}
.subbrand {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}
.page {
  width: min(760px,100%);
  margin: auto;
  padding: 14px;
}
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  gap: 2px;
  overflow-x: auto;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
  box-shadow: 0 -5px 20px rgba(0,0,0,.05);
}
.bottom-nav a {
  flex: 1;
  min-width: 68px;
  text-align: center;
  font-size: 11px;
  padding: 10px 5px;
  border-radius: 10px;
}
.bottom-nav a:hover {
  background: #eef2ff;
}
.fab {
  position: fixed;
  right: 18px;
  bottom: 88px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-size: 30px;
  box-shadow: 0 8px 24px rgba(37,99,235,.3);
}
.brand-area {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.top-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 7px;
}

/* Top bar: signed-in user name and the Logout button */
.top-user {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
  color: var(--text, #172033);
}
.logout-form {
  margin: 0;
}
.logout-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 16px;
  border: 1.5px solid #fca5a5;
  border-radius: 999px;
  background: #fef2f2;
  color: #b91c1c;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.logout-btn:hover,
.logout-btn:focus-visible {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
  outline: none;
}
.logout-icon {
  font-size: 17px;
  line-height: 1;
}

/* Responsive */
@media(max-width:480px) {
  .top-user {
    display: none;
  }
  .logout-btn {
    padding: 0 13px;
  }
}


/* components.css */
/**
 * Components: cards, stat tiles, quick links, search bars, list rows, toolbars.
 */

.range-card,
.form-card,
.stat,
.list,
.search,
.quick {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 14px;
}
.range-card {
  padding: 12px;
}
.date-grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  align-items: end;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.stat {
  padding: 14px;
  min-height: 115px;
}
.stat span,
.stat small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.stat strong {
  display: block;
  font-size: 26px;
  margin: 12px 0 4px;
}
.quick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px;
  background: transparent;
  border: 0;
}
.quick a {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  font-weight: 700;
}
.search form {
  display: flex;
  padding: 8px;
  gap: 8px;
}
.search input {
  flex: 1;
}
.list {
  overflow: hidden;
}
.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px;
  border-bottom: 1px solid var(--border);
}
.list-row:last-child {
  border-bottom: 0;
}
.list-row small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}
.form-card {
  padding: 15px;
}
.add-customer-btn {
  display: block;
  text-align: center;
  margin-bottom: 14px;
}
.info-box {
  padding: 12px 14px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e3a8a;
  border-radius: 12px;
  margin: 10px 0 14px;
  font-size: 13px;
}
.form-card h2 {
  font-size: 18px;
  margin: 0 0 14px;
}
.status {
  font-weight: 800;
  font-size: 10px;
}
.status.pending {
  color: #a16207;
}
.status.imported {
  color: #15803d;
}
.status.cancelled {
  color: #b91c1c;
}
.toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0;
}
.toolbar-row .primary {
  white-space: nowrap;
}
.stock-select-row input {
  width: 22px;
  height: 22px;
}
.toolbar-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.stock-list {
  margin-top: 4px;
}
.stock-list + .empty {
  margin-top: 0;
}
.stock-select-row {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  min-height: 54px;
}
.stock-order-toolbar .muted {
  margin: 0;
}
.customer-history-section>summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}
.customer-history-section>summary::-webkit-details-marker {
  display: none;
}
.customer-history-section>summary:before {
  content: "▶";
  font-size: .75rem;
  margin-right: 8px;
  transition: transform .15s;
}
.customer-history-section[open]>summary:before {
  transform: rotate(90deg);
}
.customer-history-section[open]>summary {
  margin-bottom: 12px;
}
/* Responsive */
@media(max-width:560px) {
  .date-grid {
    grid-template-columns: 1fr 1fr;
  }
  .date-grid button {
    grid-column: 1/-1;
  }
  .toolbar-row {
    align-items: stretch;
    flex-direction: column;
  }
  .stock-select-row {
    grid-template-columns: 30px 1fr auto;
  }
  .toolbar-actions {
    width: 100%;
  }
  .toolbar-actions button {
    flex: 1;
  }
}

/* Card heading with actions on the right (customer details, user form) */
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 17px;
  font-weight: 800;
}
.section-title-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.section-title .secondary {
  min-height: 40px;
  padding: 8px 14px;
  text-decoration: none;
}


/* forms.css */
/**
 * Forms: search pickers, sales-order lines & totals, receipts, payment modes, document list actions.
 */

.order-line {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 10px;
}
.line-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 150px;
  gap: 8px;
  align-items: end;
}
.picker {
  position: relative;
}
.picker-input {
  padding-right: 52px;
}
.picker-plus {
  position: absolute;
  right: 6px;
  top: 6px;
  width: 40px;
  height: 36px;
  border: 0;
  border-radius: 9px;
  background: #e2e8f0;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.picker-results {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: calc(100% + 5px);
  max-height: 310px;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(15,23,42,.16);
}
.picker-option {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: #fff;
  padding: 12px 13px;
  font: inherit;
  color: var(--text);
  cursor: pointer;
}
.picker-option:last-child {
  border-bottom: 0;
}
.picker-option:active,
.picker-option:hover {
  background: #f8fafc;
}
.picker-main b {
  display: block;
  font-size: 14px;
}
.picker-main small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}
.picker-loading,
.picker-empty {
  padding: 14px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.picker.invalid .picker-input {
  border-color: #dc2626;
  box-shadow: 0 0 0 2px rgba(220,38,38,.08);
}
.helper-text {
  font-size: 12px;
  color: var(--muted);
  margin: -3px 0 12px;
}
.selected-balance {
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid var(--border);
  font-size: 13px;
  margin: -2px 0 14px;
}
.item-selected-info {
  padding: 9px 11px;
  background: #f8fafc;
  border-radius: 10px;
  font-size: 12px;
  color: var(--muted);
  margin: -2px 0 9px;
}
.remove-line {
  width: 100%;
  min-height: 40px;
  margin-top: 2px;
}
.order-line .line-amount {
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 12px;
}
.order-line .line-amount b {
  display: block;
  color: var(--text);
  font-size: 16px;
  margin-top: 2px;
}
.discount-card {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  margin: 12px 0;
}
.discount-title {
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 8px;
}
.totals-panel {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}
.totals-panel>div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 10px;
  font-size: 13px;
}
.totals-panel .grand {
  background: #eef2ff;
  border: 1px solid #c7d2fe;
}
.totals-panel .grand strong {
  font-size: 21px;
}
.payment-mode-row {
  display: grid;
  grid-template-columns: 1fr 52px;
  gap: 8px;
  align-items: end;
}
.payment-mode-create {
  margin: 8px 0 12px;
  padding: 12px;
  background: #f8fafc;
  border: 1px dashed var(--border);
  border-radius: 12px;
}
.payment-mode-create-actions {
  display: flex;
  gap: 8px;
}
.payment-mode-create-actions button {
  flex: 1;
}
.payment-mode-plus {
  min-height: 48px;
  padding: 4px;
  font-size: 26px !important;
  line-height: 1;
  min-width: 50px;
}
.discount-card input:disabled {
  background: #eef2f7;
  color: #9ca3af;
  cursor: not-allowed;
}
.readonly-date {
  background: #f3f4f6;
  cursor: not-allowed;
}
/* Responsive */
@media(max-width:560px) {
  .line-grid {
    grid-template-columns: 1fr 1fr;
  }
  .order-line .line-amount {
    grid-column: 1/-1;
  }
  .payment-mode-row {
    grid-template-columns: 1fr 50px;
  }
  .payment-mode-create-actions {
    flex-direction: column;
  }
}

/* documents.css */
/**
 * Documents: order/receipt list rows, printable document sheet, share card and print rules.
 */

.doc-main {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex: 1;
  padding: 14px 12px;
  text-decoration: none;
  color: inherit;
}
.mini-action {
  display: grid;
  place-items: center;
  width: 48px;
  border-left: 1px solid var(--border);
  text-decoration: none;
  font-size: 20px;
  color: inherit;
}
.mini-action:hover {
  background: #f8fafc;
}
.doc-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 14px;
}
.document-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.document-sheet {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(15,23,42,.08);
}
.doc-brand {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 2px solid #0f172a;
  padding-bottom: 14px;
  margin-bottom: 16px;
}
.doc-title {
  font-size: 24px;
  font-weight: 800;
}
.doc-meta {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 10px;
  font-size: 12px;
  margin-bottom: 18px;
}
.doc-meta>div {
  padding: 10px;
  background: #f8fafc;
  border-radius: 10px;
}
.party-block {
  padding: 14px;
  background: #f8fafc;
  border-radius: 12px;
  margin-bottom: 18px;
  font-size: 13px;
}
.party-name {
  font-size: 18px;
  font-weight: 800;
  margin: 4px 0;
}
.doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.doc-table th,
.doc-table td {
  border-bottom: 1px solid var(--border);
  padding: 9px 6px;
  text-align: left;
}
.doc-table th:nth-child(n+2),
.doc-table td:nth-child(n+2) {
  text-align: right;
}
.doc-table tfoot td {
  font-weight: 700;
}
.doc-table .grand td {
  font-size: 16px;
  border-top: 2px solid #0f172a;
  border-bottom: 0;
  padding-top: 12px;
}
.doc-note {
  margin-top: 18px;
  padding: 12px;
  background: #f8fafc;
  border-radius: 10px;
  font-size: 13px;
}
.receipt-box {
  display: grid;
  gap: 12px;
  padding: 20px;
  background: #f8fafc;
  border-radius: 12px;
  font-size: 14px;
}
.receipt-box>div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.receipt-total {
  font-size: 23px;
  font-weight: 800;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.doc-footer {
  text-align: center;
  margin-top: 28px;
  color: #64748b;
  font-size: 11px;
}
.share-card {
  margin-top: 14px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
}
.share-card h3 {
  margin-top: 0;
}
.share-buttons {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.email-form {
  display: grid;
  gap: 10px;
}
.back-link {
  margin: 12px 0;
}
.modify-action:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.edit-symbol {
  display: block;
  font-family: "Segoe UI Symbol","Noto Sans Symbols 2",serif;
  font-size: 23px;
  line-height: 1;
  color: currentColor;
  font-weight: 700;
  visibility: visible;
}
.modify-action {
  font-weight: 800;
  padding-left: 10px;
  padding-right: 10px;
  font-size: inherit !important;
  min-width: 48px;
  padding: 0 8px !important;
  color: var(--accent) !important;
  display: grid;
  place-items: center;
}
.doc-horizontal-list .doc-list-row {
  min-width: 520px;
  display: flex;
}
.doc-horizontal-list .mini-action {
  flex: 0 0 48px;
}
.doc-horizontal-list .modify-action {
  flex: 0 0 48px;
  display: grid;
  place-items: center;
}
.doc-horizontal-list .edit-symbol {
  display: block !important;
  font-family: Arial,sans-serif;
  font-size: 22px;
  line-height: 1;
  font-weight: 700;
}
.doc-list-row {
  padding: 0;
  display: flex;
  min-width: 0;
  align-items: stretch;
  overflow: hidden;
}
.doc-list-row .doc-main {
  min-width: 0;
  flex: 1;
}
.doc-main small strong {
  font-weight: 800;
  color: var(--text);
}
.doc-actions {
  display: flex;
  flex: 0 0 144px;
  width: 144px;
  align-items: stretch;
}
.doc-actions .mini-action {
  width: 48px;
  flex: 0 0 48px;
  border-left: 1px solid var(--border);
  display: grid;
  place-items: center;
  text-decoration: none;
  font-size: 21px;
  color: inherit;
}
.doc-actions .status-icon {
  font-size: 18px;
  font-weight: 800;
}
.doc-actions .modify-action {
  font-size: 13px;
  font-weight: 800;
  color: var(--accent);
}
.doc-actions .action-placeholder {
  visibility: hidden;
}
.doc-horizontal-list {
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  display: block;
  padding-bottom: 4px;
  overflow-x: auto;
}
/* Responsive */
@media print {
  body {
    background: #fff;
  }
  .document-toolbar,
  .share-card {
    display: none !important;
  }
  .doc-wrap {
    max-width: none;
    padding: 0;
  }
  .document-sheet {
    border: 0;
    box-shadow: none;
    border-radius: 0;
  }
  .bottom-nav,
  .topbar {
    display: none !important;
  }
}

/* Responsive */
@media(max-width:560px) {
  .document-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .document-sheet {
    padding: 15px;
    border-radius: 12px;
  }
  .doc-meta {
    grid-template-columns: 1fr 1fr;
  }
  .doc-table {
    font-size: 12px;
  }
  .doc-title {
    font-size: 20px;
  }
  .doc-horizontal-list .doc-list-row {
    min-width: 540px;
  }
  .doc-horizontal-list .mini-action {
    width: 48px;
    flex-basis: 48px;
    flex-shrink: 0;
  }
  .doc-horizontal-list {
    margin-right: -2px;
    margin-left: -2px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .doc-list-row {
    min-width: 420px;
  }
  .doc-actions {
    flex-basis: 144px;
    width: 144px;
  }
  .doc-actions .mini-action {
    flex-basis: 48px;
    width: 48px;
  }
  .doc-main {
    padding: 12px 10px;
  }
}

/* admin.css */
/**
 * Admin: accordions, add / edit user form (two fields per row), permission checkboxes, logo preview.
 */

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.admin-grid .checks,
.admin-grid .full-span,
.admin-grid button {
  grid-column: 1/-1;
}
.checks {
  display: grid;
  gap: 7px;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 12px;
}
.checks label {
  font-weight: 600;
  margin: 0;
  display: flex;
  gap: 9px;
  align-items: center;
}
.checks input {
  width: 20px;
  min-height: 20px;
  margin: 0;
}
.admin-accordion {
  padding: 0;
  overflow: hidden;
}
.admin-accordion>details>summary,
.user-accordion>summary,
.user-create-box>summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px;
}
.admin-accordion>details>summary::-webkit-details-marker,
.user-accordion>summary::-webkit-details-marker,
.user-create-box>summary::-webkit-details-marker {
  display: none;
}
.admin-accordion>details>summary:after,
.user-accordion>summary:after,
.user-create-box>summary:after {
  content: '⌄';
  font-size: 18px;
  color: var(--muted);
  transition: transform .15s;
}
.admin-accordion>details[open]>summary:after,
.user-accordion[open]>summary:after,
.user-create-box[open]>summary:after {
  transform: rotate(180deg);
}
.summary-hint {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  text-align: right;
}
.admin-detail {
  padding: 0 15px 15px;
}
.admin-detail small {
  display: block;
  color: var(--muted);
  font-weight: 400;
  margin-top: 4px;
}
.section-note {
  grid-column: 1/-1;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 10px;
  color: var(--muted);
  font-size: 12px;
}
.user-create-box {
  margin: 0 0 12px;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  overflow: hidden;
}
.user-create-box form {
  padding: 0 12px 12px;
}
.compact-list {
  margin-top: 12px;
}
.logo-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.logo-preview img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
  background: #fff;
}
/* Add / edit user page */
.user-form .admin-grid {
  gap: 12px 14px;
  margin-bottom: 14px;
}
.user-form .admin-grid label {
  margin: 0;
}
.form-subtitle {
  margin: 6px 0 8px;
  font-size: 15px;
  font-weight: 800;
}
.checks.two-col {
  grid-template-columns: 1fr 1fr;
  gap: 9px 14px;
  margin-bottom: 14px;
}
.field-note {
  align-self: end;
  margin: 0;
}
.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}
.form-actions .primary {
  flex: 1;
}
.form-actions .secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.add-user-btn {
  display: block;
  margin-bottom: 12px;
  text-align: center;
  text-decoration: none;
}
.pill {
  margin-left: 6px;
  text-transform: capitalize;
}
.test-email-form {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  align-items: end;
}
.test-email-button .secondary {
  width: 100%;
}

/* Responsive */
@media(max-width:560px) {
  .admin-grid {
    grid-template-columns: 1fr;
  }
  .summary-hint {
    max-width: 45%;
  }
  .checks.two-col {
    grid-template-columns: 1fr;
  }
  .form-actions {
    flex-direction: column-reverse;
  }
}

/* auth.css */
/**
 * Auth: login card, password field, install button, company contact block.
 */

.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}
.login-card {
  width: min(420px,100%);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 18px 50px rgba(15,23,42,.08);
}
.login-install-btn,
.login-install-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 9px;
}
.login-install-text {
  margin-top: 10px;
  padding: 12px 13px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.login-logo {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin: 0 auto 12px;
  border-radius: 12px;
}
.login-card input {
  min-height: 42px;
  padding: 9px 12px;
}
.login-card label {
  margin-bottom: 9px;
}
.login-card .primary,
.login-card .secondary {
  min-height: 44px;
}
.login-contact a {
  color: var(--accent);
}
.login-contact {
  margin-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
  margin: 18px 0 0;
  padding: 15px 14px;
  text-align: center;
  border: 1px solid rgba(37,99,235,.16);
  border-radius: 16px;
  background: linear-gradient(135deg,#eef6ff 0%,#f6f0ff 52%,#eefbf5 100%);
  box-shadow: 0 8px 24px rgba(15,23,42,.08);
  line-height: 1.8;
}
.login-contact b {
  color: var(--text);
  display: block;
  text-align: center;
  font-size: 15px;
  margin-bottom: 4px;
}
.login-contact div {
  text-align: center;
}
.password-wrap {
  position: relative;
  width: 100%;
}
.password-wrap input {
  padding-right: 54px !important;
}
.show-password {
  border: 0;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
  position: absolute !important;
  right: 6px !important;
  left: auto !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 40px !important;
  height: 38px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

/* Forgot password / reset password links and buttons */
.auth-links {
  margin: -4px 0 12px;
  text-align: right;
  font-size: 14px;
}
.auth-links.center {
  margin: 14px 0 4px;
  text-align: center;
}
.auth-links a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}
.auth-links a:hover {
  text-decoration: underline;
}
.auth-button {
  display: block;
  text-align: center;
  text-decoration: none;
  padding: 14px 16px;
  border-radius: 12px;
}
.login-card .helper-text {
  margin: 10px 0 0;
  text-align: center;
}


