* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f8f6f4;
  color: #342e30;
  font:
    15px system-ui,
    sans-serif;
}
header {
  background: #fff;
  border-bottom: 1px solid #eee5e3;
  padding: 20px 6%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
header small {
  font-size: 10px;
  letter-spacing: 0.22em;
  color: #a66b77;
}
h1 {
  font-size: 23px;
  letter-spacing: 0.14em;
  margin: 4px 0;
}
header span,
.hint {
  color: #857b7c;
  font-size: 13px;
}
main {
  max-width: 1200px;
  margin: auto;
  padding: 36px 24px;
}
.intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 26px;
}
h2 {
  font-size: 28px;
  margin: 0;
}
.intro p {
  color: #887e7e;
}
.badge {
  background: #f3e8e8;
  border-radius: 20px;
  padding: 9px 14px;
  color: #88535c;
  font-size: 12px;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 20px;
}
section {
  background: white;
  border: 1px solid #eee5e3;
  border-radius: 16px;
  padding: 24px;
}
h3 {
  margin: 0 0 18px;
  font-size: 18px;
}
form {
  display: grid;
  gap: 14px;
  margin-bottom: 32px;
}
label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
}
input,
select {
  width: 100%;
  border: 1px solid #e2d9d8;
  border-radius: 8px;
  padding: 11px;
  font: inherit;
  background: #fff;
}
button {
  border: 0;
  border-radius: 8px;
  background: #985d6b;
  color: white;
  padding: 12px 18px;
  font-weight: 600;
  cursor: pointer;
}
button.secondary {
  background: #f4eded;
  color: #805460;
  padding: 8px;
}
ul {
  list-style: none;
  padding: 0;
}
li,
.appointment {
  padding: 13px 0;
  border-bottom: 1px solid #f1ebea;
}
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.appointment {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.appointment small {
  display: block;
  color: #857b7c;
  margin-top: 4px;
}
.notice {
  margin-top: 24px;
  color: #835e3a;
  background: #fff3df;
  padding: 15px;
  border-radius: 10px;
}
@media (max-width: 720px) {
  .grid,
  .row {
    grid-template-columns: 1fr;
  }
  .intro {
    display: block;
  }
  .badge {
    display: inline-block;
  }
  header span {
    display: none;
  }
}

.sessions {
  margin-top: 20px;
}
.session-card {
  border-top: 1px solid #eee5e3;
  padding: 16px 0;
}
.session-card form {
  display: flex;
  gap: 10px;
  margin: 10px 0;
}
.session-card select {
  max-width: 350px;
}
.session-card p {
  margin: 8px 0;
}

[hidden] {
  display: none !important;
}
.auth-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.auth-screen section {
  width: min(420px, 100%);
}
#user-management {
  margin-top: 20px;
}
#auth-error {
  color: #a23b3b;
}

#commercial,
#payments-panel,
#finance-admin {
  margin-top: 20px;
}
.line {
  border-top: 1px solid #eee5e3;
  padding: 12px 0;
}
.item-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin: 8px 0;
}
.item-actions select {
  max-width: 300px;
}

input[type="checkbox"] {
  width: auto;
}
#role-permissions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}
#role-permissions label {
  display: flex;
  align-items: center;
}

.link {
  padding: 0;
  background: none;
  color: #985d6b;
  text-align: left;
}
.week-nav {
  display: flex;
  gap: 8px;
  align-items: center;
}
.week-nav input {
  width: auto;
}
.week-day {
  border-top: 1px solid #eee5e3;
  padding: 4px 0;
}
.week-day h4 {
  text-transform: capitalize;
  margin: 12px 0;
}
.week-day .appointment button {
  margin: 3px;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  gap: 20px;
  overflow: auto;
  background: #fff;
  border-bottom: 1px solid #eee5e3;
  padding: 12px 6%;
  white-space: nowrap;
}
.nav a,
.quick-actions a {
  color: #80515d;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
}
.nav a:hover,
.quick-actions a:hover {
  text-decoration: underline;
}
#inicio {
  margin-bottom: 28px;
}
.overview {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 15px 0;
}
.overview div {
  background: #f8f2f2;
  border-radius: 10px;
  padding: 15px;
  min-width: 160px;
}
.overview strong {
  display: block;
  font-size: 24px;
}
.quick-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
html {
  scroll-behavior: smooth;
}
section {
  scroll-margin-top: 65px;
}

.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}
