@import "variables.css";
@import "base.css";
@import "layout.css";
@import "tables.css";
@import "components.css";
@import "states.css";
@media (max-width: 768px) {
  body {
    font-size: 16px;
    line-height: 1.5;
  }

  main {
    padding: 1rem;
  }

  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  h3 {
    font-size: 1.1rem;
  }
}
@media (max-width: 768px) {

  /* Fully reset nav container */
  nav {
    height: auto !important;
    min-height: 0 !important;
    align-items: stretch !important;
    padding: 0.5rem !important;
    box-sizing: border-box;
  }

  /* Force vertical layout */
  nav .nav-left,
  nav .nav-center,
  nav .nav-right {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  /* Ensure links fit inside nav */
  nav a {
    display: block;
    width: 100%;
    padding: 0.6rem 0.75rem;
    line-height: 1.2;
    white-space: nowrap;
    box-sizing: border-box;
  }

}
@media (max-width: 768px) {
  .panel {
    padding: 1rem;
    margin-bottom: 1rem;
  }
}
@media (max-width: 768px) {

  /* Forms should stack vertically */
  form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  /* Labels stay readable */
  form label {
    display: flex;
    flex-direction: column;
    font-size: 0.95rem;
    gap: 0.25rem;
  }

  /* Inputs become finger-friendly */
  input,
  select,
  textarea {
    font-size: 1rem;
    padding: 0.6rem 0.75rem;
    border-radius: 4px;
  }

  textarea {
    min-height: 80px;
    resize: vertical;
  }

  /* Buttons are easy to tap */
  button,
  input[type="submit"] {
    font-size: 1rem;
    padding: 0.75rem;
    min-height: 44px; /* iOS / Android tap target */
  }

  /* Inline form buttons (edit / delete) */
  form.inline,
  form.inline form {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
  }

}
@media (max-width: 768px) {
  .table-wrapper {
    overflow-x: auto;
  }

  table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
  }

  th,
  td {
    padding: 0.5rem;
    white-space: nowrap;
  }
}
@media (max-width: 768px) {
  tr.paid {
    opacity: 0.6;
  }

  tr.deficit td {
    font-weight: 600;
  }
}
@media (max-width: 768px) {
  .landing-hero,
  .signup-marketing {
    text-align: left;
  }

  .landing-cta a,
  .signup-cta {
    display: block;
    text-align: center;
    margin-top: 1rem;
  }
}
@media (max-width: 768px) {
  a,
  button {
    touch-action: manipulation;
  }
}
@media (max-width: 480px) {
  h1 {
    font-size: 1.4rem;
  }

  table {
    min-width: 520px;
  }
}