/* ── reset pico's defaults to match the original tailwind stone palette ── */

:root {
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d0;
  --stone-400: #a8a29e;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;

  --green-50: #f0fdf4;
  --green-200: #bbf7d0;
  --green-700: #15803d;

  --red-500: #ef4444;
  --red-700: #b91c1c;

  /* override pico's theme colors */
  --pico-background-color: var(--stone-50);
  --pico-color: var(--stone-800);
  --pico-muted-color: var(--stone-500);
  --pico-muted-border-color: var(--stone-200);
  --pico-primary: var(--stone-800);
  --pico-primary-hover: var(--stone-700);
  --pico-secondary: var(--stone-600);
  --pico-card-background-color: #fff;
  --pico-card-border-color: transparent;
  --pico-card-sectioning-background-color: #fff;

  /* compact spacing overrides */
  --pico-spacing: 0.75rem;
  --pico-form-element-spacing-vertical: 0.4rem;
  --pico-form-element-spacing-horizontal: 0.6rem;
  --pico-typography-spacing-vertical: 0.75rem;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--stone-50);
  color: var(--stone-800);
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  color: var(--stone-800);
}

/* ── layout ── */

main.container {
  max-width: 56rem;
  padding: 1.5rem 1rem;
}

/* dashboard-specific compact layout */
body:has(.counters-row) main.container {
  padding: 1rem;
}

hr.footer-separator {
  border-color: var(--stone-200);
  margin: 2rem 0 0;
}

footer {
  padding: 1rem 0;
  text-align: center;
  font-size: 0.5rem;
}

footer a {
  color: var(--stone-400);
  text-decoration: none;
}

footer a:hover {
  color: var(--stone-600);
}

/* ── setup guard ── */

.setup-guard {
  text-align: center;
  padding: 6rem 1rem;
}

.setup-guard h1 {
  font-size: 1.5rem;
  color: var(--stone-500);
  margin-bottom: 0.75rem;
}

.setup-guard p {
  font-size: 0.875rem;
}

.setup-guard a {
  color: var(--stone-600);
  text-decoration: underline;
}

.setup-guard a:hover {
  color: var(--stone-800);
}

/* ── counters row ── */

.counters-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.counter-card {
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.125rem;
}

.counter-value {
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--stone-800);
  line-height: 1;
}

.counter-value small {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--stone-400);
}

.counter-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--stone-400);
}

/* ── cards (article) ── */

article {
  background: #fff;
  border: none;
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  padding: 1rem;
  margin-bottom: 1rem;
}

article h2 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

/* ── forms ── */

label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--stone-600);
  margin-bottom: 0.25rem;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
select, textarea {
  border: 1px solid var(--stone-300);
  border-radius: 0.375rem;
  padding: 0.35rem 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.25rem;
  height: 2rem;
  background: #fff;
  color: var(--stone-800);
  margin-bottom: 0.5rem;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--stone-400);
  box-shadow: 0 0 0 2px rgba(168,162,158,0.3);
  outline: none;
}

button[type="submit"] {
  background: var(--stone-800);
  color: #fff;
  border: 1px solid transparent;
  border-radius: 0.375rem;
  padding: 0.35rem 1rem;
  font-size: 0.8125rem;
  line-height: 1.25rem;
  height: 2rem;
  font-weight: 500;
  cursor: pointer;
  width: auto;
}

button[type="submit"]:hover {
  background: var(--stone-700);
}

small {
  color: var(--stone-400);
}

/* ── grid (pico .grid) ── */

.grid {
  gap: 0.5rem;
}

/* ── flash message ── */

.flash-success {
  background: var(--green-50);
  border: 1px solid var(--green-200);
  color: var(--green-700);
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  margin-bottom: 0.75rem;
  font-size: 0.8125rem;
}

/* ── table ── */

table {
  font-size: 0.8125rem;
  width: 100%;
}

thead tr {
  border-bottom: 1px solid var(--stone-200);
}

thead th {
  color: var(--stone-500);
  font-weight: 500;
  text-align: left;
  padding: 0.25rem 0.75rem 0.25rem 0;
}

thead th:nth-child(n+3),
tbody td:nth-child(n+3) {
  text-align: right;
  padding-right: 0;
}

tbody tr {
  border-bottom: 1px solid var(--stone-100);
}

tbody td {
  padding: 0.25rem 0.75rem 0.25rem 0;
  color: var(--stone-500);
}

tbody td:first-child {
  color: var(--stone-700);
  font-weight: 500;
}

/* actions cell */
.actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: flex-end;
  white-space: nowrap;
}

.actions a {
  color: var(--stone-600);
  text-decoration: underline;
  font-size: 0.75rem;
}

.actions a:hover {
  color: var(--stone-800);
}

.actions form {
  margin: 0;
  padding: 0;
}

.actions button {
  background: none;
  border: none;
  color: var(--red-500);
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  margin: 0;
  font-size: 0.75rem;
  width: auto;
  box-shadow: none;
}

.actions button:hover {
  background: none;
  color: var(--red-700);
  box-shadow: none;
}

.actions button:hover {
  color: var(--red-700);
}

/* ── home page ── */

body:has(.hero) {
  font-family: 'Playfair Display', serif;
}

.hero {
  text-align: center;
  padding: 4rem 0 2rem;
}

.hero small {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--stone-400);
  font-size: 0.875rem;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .hero h1 { font-size: 4.5rem; }
}

.hero .amp {
  font-weight: 400;
  color: var(--stone-400);
}

.muted {
  color: var(--stone-500);
  font-size: 1.25rem;
}

hr {
  border-color: var(--stone-200);
  margin: 3rem 0;
}

/* ── venue sections ── */

.venue {
  text-align: center;
  margin-bottom: 2.5rem;
}

.venue h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.venue strong {
  color: var(--stone-600);
}

.venue small {
  color: var(--stone-400);
}

.venue-image {
  max-width: 20rem;
  width: 100%;
  border-radius: 0.5rem;
  margin: 0.75rem auto;
  display: block;
}

/* dashboard venue image upload */
.venue-image-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.venue-file-input {
  font-size: 0.6875rem;
  padding: 0;
  height: 2rem;
  border: 1px solid var(--stone-300);
  border-radius: 0.375rem;
  background: #fff;
  margin: 0;
  box-sizing: border-box;
}

.venue-file-input::file-selector-button {
  height: 100%;
  padding: 0 0.5rem;
  margin-right: 0.5rem;
  border: none;
  border-right: 1px solid var(--stone-300);
  background: var(--stone-100);
  color: var(--stone-600);
  font-size: 0.6875rem;
  cursor: pointer;
}

.venue-file-input::file-selector-button:hover {
  background: var(--stone-200);
}

.venue-image-preview {
  width: 3rem;
  height: 3rem;
  object-fit: cover;
  border-radius: 0.375rem;
}

/* ── guest cards (home page) ── */

.guest-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.guest-card strong {
  color: var(--stone-700);
}

.guest-card small {
  color: var(--stone-400);
}

/* ── autocomplete dropdown ── */

.autocomplete-dropdown {
  display: block;
  position: absolute;
  z-index: 10;
  width: 100%;
  background: #fff;
  border: 1px solid var(--stone-200);
  border-radius: 0.5rem;
  margin-top: 0.25rem;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
}

.autocomplete-dropdown.hidden,
.autocomplete-dropdown:empty {
  display: none;
}

/* ── back link ── */

a[href="/dashboard"]:not(footer a) {
  font-size: 0.875rem;
  color: var(--stone-500);
  display: inline-block;
  margin-bottom: 1rem;
}

a[href="/dashboard"]:not(footer a):hover {
  color: var(--stone-700);
}

/* ── gift form ── */

.buy-btn {
  background: var(--stone-800);
  color: #fff;
  border: 1px solid transparent;
  border-radius: 0.375rem;
  padding: 0.35rem 1rem;
  font-size: 0.8125rem;
  line-height: 1.25rem;
  height: 2rem;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
}

.buy-btn:hover {
  background: var(--stone-700);
}

.buy-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ── progress bar (partially claimed items) ── */

.progress-bar {
  width: 100%;
  height: 0.375rem;
  background: var(--stone-200);
  border-radius: 0.25rem;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--stone-600);
  border-radius: 0.25rem;
  transition: width 0.3s;
}

/* ── generic gift card ── */

.generic-gift-card {
  border: 2px dashed var(--stone-300);
  background: var(--stone-50);
}

.generic-gift-icon {
  font-size: 2.5rem;
  line-height: 1;
}

.generic-amounts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.375rem;
  width: 100%;
}

.amount-btn {
  background: #fff;
  border: 1px solid var(--stone-300);
  border-radius: 0.375rem;
  padding: 0.35rem 0.5rem;
  font-size: 0.8125rem;
  cursor: pointer;
  color: var(--stone-700);
  font-weight: 500;
  height: 2rem;
}

.amount-btn:hover {
  border-color: var(--stone-500);
}

.amount-btn.selected {
  background: var(--stone-800);
  color: #fff;
  border-color: var(--stone-800);
}

.custom-amount-input {
  width: 100%;
}

/* ── modal overlay ── */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-box {
  background: #fff;
  border-radius: 0.75rem;
  padding: 1.5rem;
  max-width: 28rem;
  width: 100%;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
}

.modal-box h3 {
  margin: 0 0 0.25rem;
  font-size: 1.125rem;
}

.modal-box p {
  margin: 0 0 0.75rem;
}

.modal-intro {
  color: var(--stone-600);
  font-size: 0.875rem;
}

.modal-confirm-text {
  margin-top: 0.75rem;
}

.modal-field {
  margin-bottom: 0.75rem;
}

.modal-field label {
  display: block;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--stone-400);
  margin-bottom: 0.25rem;
}

.modal-field code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.9375rem;
  letter-spacing: 0.05em;
  color: var(--stone-800);
}

.modal-field strong {
  font-size: 1.125rem;
  color: var(--stone-800);
}

.copyable {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.copy-btn {
  background: var(--stone-100);
  border: 1px solid var(--stone-300);
  border-radius: 0.25rem;
  padding: 0.2rem 0.5rem;
  font-size: 0.6875rem;
  cursor: pointer;
  color: var(--stone-600);
  white-space: nowrap;
  height: auto;
  width: auto;
}

.copy-btn:hover {
  background: var(--stone-200);
}

.modal-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 1rem;
}

.modal-actions button {
  border-radius: 0.375rem;
  padding: 0.4rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  height: auto;
  width: auto;
}

.modal-actions button:not(.outline) {
  background: var(--stone-800);
  color: #fff;
  border: 1px solid transparent;
}

.modal-actions button:not(.outline):hover {
  background: var(--stone-700);
}

.modal-actions button:not(.outline):disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.modal-actions button.outline {
  background: #fff;
  color: var(--stone-600);
  border: 1px solid var(--stone-300);
}

.modal-actions button.outline:hover {
  background: var(--stone-50);
}

/* thank you modal */
.thanks-box {
  text-align: center;
}

.thanks-box h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.thanks-box p {
  color: var(--stone-500);
}

.thanks-box .modal-actions {
  justify-content: center;
}

/* ── percentage selector ── */

.pct-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.375rem;
  margin-bottom: 0.75rem;
}

.pct-btn {
  background: #fff;
  border: 1px solid var(--stone-300);
  border-radius: 0.375rem;
  padding: 0.4rem;
  font-size: 0.875rem;
  cursor: pointer;
  color: var(--stone-700);
  font-weight: 500;
  height: auto;
  width: auto;
}

.pct-btn:hover {
  border-color: var(--stone-500);
}

.pct-btn.selected {
  background: var(--stone-800);
  color: #fff;
  border-color: var(--stone-800);
}

.pct-custom-row {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: 0.75rem;
}

.pct-custom-row input {
  flex: 1;
  margin-bottom: 0 !important;
}

.pct-custom-row span {
  color: var(--stone-500);
  font-weight: 500;
}

/* ── utilities ── */

.overflow-auto {
  overflow-x: auto;
}

/* ── registry grid (home page) ── */

.registry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 1.5rem;
  max-width: 48rem;
  margin: 1.5rem auto 0;
}

.registry-card {
  background: #fff;
  border: 1px solid var(--stone-200);
  border-radius: 0.5rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.registry-card img {
  width: 100%;
  max-height: 12rem;
  object-fit: contain;
  border-radius: 0.375rem;
}

.registry-card strong {
  color: var(--stone-700);
  font-size: 0.9375rem;
}

.registry-card .price {
  color: var(--stone-500);
  font-size: 0.875rem;
}

.registry-card form {
  margin: 0;
  width: 100%;
}

.registry-card button {
  width: 100%;
}

.registry-card.sold {
  opacity: 0.55;
}

.sold-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--stone-500);
  border: 1px solid var(--stone-300);
  border-radius: 0.375rem;
}

/* ── registry dashboard ── */

.registry-add-form .grid {
  align-items: start;
}

.registry-add-form input[type="file"] {
  font-size: 0.6875rem;
  padding: 0;
  height: 2rem;
  border: 1px solid var(--stone-300);
  border-radius: 0.375rem;
  background: #fff;
  margin: 0;
  box-sizing: border-box;
}

.registry-add-form input[type="file"]::file-selector-button {
  height: 100%;
  padding: 0 0.5rem;
  margin-right: 0.5rem;
  border: none;
  border-right: 1px solid var(--stone-300);
  background: var(--stone-100);
  color: var(--stone-600);
  font-size: 0.6875rem;
  cursor: pointer;
}

.registry-add-form input[type="file"]::file-selector-button:hover {
  background: var(--stone-200);
}

.registry-thumb {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: cover;
  border-radius: 0.25rem;
}

/* invitation checkbox column */
.checkbox-col {
  width: 2rem;
  text-align: center !important;
  padding-right: 0 !important;
}

.checkbox-col input[type="checkbox"] {
  margin: 0;
  width: 1rem;
  height: 1rem;
  cursor: pointer;
}

/* invitation code badge on guest rows */
.invitation-badge {
  display: inline-block;
  background: var(--stone-100);
  color: var(--stone-600);
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.625rem;
  padding: 0.1rem 0.35rem;
  border-radius: 0.25rem;
  margin-left: 0.375rem;
  vertical-align: middle;
  letter-spacing: 0.02em;
}

/* invitation code in invitations table */
.invitation-code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.8125rem;
  letter-spacing: 0.03em;
  background: var(--stone-100);
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
}

/* create invitation bar */
.invitation-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.5rem;
}

.invitation-bar button {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  height: 1.75rem;
}

.invitation-bar button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ── envelope animation ── */

.hidden-until-opened {
  display: none;
}

#envelope-overlay {
  position: fixed;
  inset: 0;
  background: var(--stone-50);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.envelope {
  position: relative;
  width: 280px;
  height: 180px;
}

@media (min-width: 768px) {
  .envelope { width: 360px; height: 220px; }
}

.envelope-back {
  position: absolute;
  inset: 0;
  background: var(--stone-200);
  border-radius: 0.5rem;
}

.envelope-front {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: var(--stone-100);
  border-radius: 0 0 0.5rem 0.5rem;
  border-top: 1px solid var(--stone-300);
  z-index: 3;
}

.envelope-flap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: var(--stone-100);
  border-radius: 0.5rem 0.5rem 0 0;
  transform-origin: top center;
  z-index: 4;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  border-bottom: 1px solid var(--stone-300);
}

.envelope-letter {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 15%;
  height: 70%;
  background: #fff;
  border-radius: 0.375rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
}

.envelope-letter p {
  font-family: 'Playfair Display', serif;
  font-size: 1.125rem;
  color: var(--stone-700);
  margin: 0;
}

.envelope-letter .amp {
  color: var(--stone-400);
}

/* opening animation */
#envelope-overlay.opening .envelope-flap {
  animation: flap-open 0.6s ease-in-out forwards;
}

#envelope-overlay.opening .envelope-letter {
  animation: letter-rise 0.8s ease-out 0.5s forwards;
}

#envelope-overlay.opening {
  animation: overlay-fade 0.4s ease-out 1.4s forwards;
}

@keyframes flap-open {
  0% { transform: rotateX(0deg); }
  100% { transform: rotateX(180deg); }
}

@keyframes letter-rise {
  0% { transform: translateY(0); }
  100% { transform: translateY(-120%); }
}

@keyframes overlay-fade {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

/* rsvp card (invitation public page) */
.rsvp-card {
  max-width: 28rem;
  margin: 0 auto 1rem;
  text-align: center;
}

.rsvp-card h2 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.rsvp-subtitle {
  color: var(--stone-500);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.rsvp-guest {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--stone-100);
}

.rsvp-guest:last-of-type {
  border-bottom: none;
}

/* rsvp radio button groups */
.rsvp-fields {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.rsvp-radio-group {
  border: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.rsvp-radio-group legend {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--stone-400);
  margin-bottom: 0.25rem;
  float: left;
  width: 100%;
}

.rsvp-radio-group label {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
  font-size: 0.875rem;
  margin-bottom: 0;
  color: var(--stone-700);
}

.rsvp-radio-group input[type="radio"] {
  width: 1rem;
  height: 1rem;
  cursor: pointer;
  flex-shrink: 0;
  margin: 0;
}

.rsvp-name {
  color: var(--stone-700);
  font-weight: 500;
}

.rsvp-card button[type="submit"] {
  margin-top: 1rem;
  width: 100%;
}

/* checkbox switch - compact size */
[role="switch"] {
  --pico-switch-color: var(--stone-800);
  height: 1.25rem;
  width: 2.25rem;
}

/* null/unanswered toggle — dimmed appearance */
[role="switch"].toggle-null {
  opacity: 0.3;
}


/* row containing add-guest and import-csv forms side by side */
.guest-forms-row {
  display: flex;
  gap: 0.5rem;
  align-items: start;
  margin-bottom: 0.5rem;
  width: 100%;
}

.guest-forms-row .add-guest-form {
  flex: 1;
}

.guest-forms-row .add-guest-form input[type="text"] {
  flex: 1;
  width: auto;
  min-width: 0;
}

#guest-search {
  width: 100%;
  height: 1.75rem;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  margin-bottom: 0.5rem;
}

/* right-align save button */
.save-btn {
  display: block;
  margin-left: auto;
}

/* inline add-guest form */
.add-guest-form {
  display: flex;
  gap: 0.375rem;
  align-items: start;
}

.add-guest-form input,
.add-guest-form button {
  margin: 0;
  height: 2rem;
  box-sizing: border-box;
}

.add-guest-form input[type="text"] {
  width: 8rem;
}

/* hide csrf input from grid layout */
.add-guest-form input[type="hidden"] {
  display: none;
}

/* csv import form — inline next to add-guest */
.import-csv-form {
  display: flex;
  gap: 0.375rem;
  align-items: start;
}

.import-csv-form input[type="hidden"] {
  display: none;
}

.import-csv-form input[type="file"] {
  font-size: 0.6875rem;
  padding: 0;
  height: 2rem;
  width: 10rem;
  border: 1px solid var(--stone-300);
  border-radius: 0.375rem;
  background: #fff;
  margin: 0;
  box-sizing: border-box;
}

.import-csv-form input[type="file"]::file-selector-button {
  height: 100%;
  padding: 0 0.5rem;
  margin-right: 0.5rem;
  border: none;
  border-right: 1px solid var(--stone-300);
  background: var(--stone-100);
  color: var(--stone-600);
  font-size: 0.6875rem;
  cursor: pointer;
}

.import-csv-form input[type="file"]::file-selector-button:hover {
  background: var(--stone-200);
}

.import-csv-form button {
  margin: 0;
  height: 2rem;
  box-sizing: border-box;
}

/* confirmed toggle in table */
td form:has([role="switch"]) {
  margin: 0;
  padding: 0;
}

td [role="switch"] {
  margin: 0;
}

/* pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 0.75rem;
  font-size: 0.75rem;
}

.pagination a {
  color: var(--stone-600);
  text-decoration: underline;
}

.pagination a:hover {
  color: var(--stone-800);
}

.pagination .disabled {
  color: var(--stone-300);
}

.pagination .page-info {
  color: var(--stone-500);
}

