@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800;900&display=swap");

:root {
  font-synthesis: none;
  --bg: #f5f7fb;
  --ink: #152033;
  --muted: #667085;
  --paper: #ffffff;
  --gold: #c6a35b;
  --nav: #000000;
  --nav-ink: #ffffff;
  --nav-muted: #b9c7cf;
  --line: #e6eaf0;
  --green: #18a058;
  --green-soft: #eef7f2;
  --shadow: 0 8px 18px rgba(16, 24, 40, 0.05);
  --sidebar: 280px;
  --radius: 20px;
  --gap: 16px;
  --page-pad: 28px;
  --font: Inter, "Segoe UI", Arial, sans-serif;
}

[hidden] {
  display: none !important;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.app-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: var(--sidebar);
  min-height: 100vh;
  overflow-y: auto;
  padding: 24px;
  background: #000000 !important;
  background-color: #000000 !important;
  color: var(--nav-ink);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 131px;
  margin: 0 0 28px;
  padding: 18px;
  background: #000000 !important;
  background-color: #000000 !important;
  color: var(--nav-ink);
}

.brand-logo {
  display: block;
  max-width: 100%;
  max-height: 76px;
  object-fit: contain;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  border-radius: 18px;
  background: var(--gold);
  color: #111111;
  font-size: 1.5rem;
  font-weight: 800;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-title {
  color: var(--nav-ink);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.1;
}

.brand-subtitle {
  color: var(--nav-muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.brand.has-logo .brand-mark,
.brand.has-logo .brand-copy {
  display: none;
}

.brand:not(.has-logo) .brand-logo {
  display: none;
}

.sidebar-section {
  margin: 0;
}

.sidebar-section-title {
  display: none;
}

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

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 14px;
  color: var(--nav-muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-active {
  background: rgba(255, 255, 255, 0.09);
  color: var(--nav-ink);
  outline: none;
}

.nav-icon {
  width: 24px;
  flex: 0 0 24px;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1;
}

.main-area {
  min-height: 100vh;
  margin-left: var(--sidebar);
}

.site-header,
.page-content,
.site-footer {
  width: 100%;
  max-width: 1180px;
  margin-right: auto;
  margin-left: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 67px;
  padding: 28px var(--page-pad) 0;
  color: var(--ink);
}

.header-left {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
}

.header-right {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
  cursor: pointer;
}

.menu-lines,
.menu-lines::before,
.menu-lines::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.menu-lines {
  position: relative;
}

.menu-lines::before,
.menu-lines::after {
  position: absolute;
  left: 0;
  content: "";
}

.menu-lines::before {
  top: -6px;
}

.menu-lines::after {
  top: 6px;
}

.header-title {
  min-width: 0;
}

.header-title h1 {
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-title p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 0;
  border-radius: 14px;
  background: var(--gold);
  color: #111111;
  cursor: pointer;
  font-weight: 800;
}

.button:hover,
.button:focus-visible {
  filter: brightness(0.96);
  outline: none;
}

.button.secondary {
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}

.user-avatar {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: #111111;
  font-size: 0.82rem;
  font-weight: 900;
}

.user-meta {
  display: grid;
  gap: 1px;
}

.user-name {
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 800;
}

.user-role {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.page-content {
  padding: 22px var(--page-pad) 28px;
}

.page-hero {
  margin-bottom: 22px;
}

.page-kicker {
  margin: 0 0 4px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.page-hero h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.18;
}

.page-hero p {
  max-width: 760px;
  margin: 6px 0 0;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: var(--gap);
}

.dashboard-grid,
.module-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.module-card,
.metric-card,
.panel,
.login-card {
  padding: 20px;
}

.module-card {
  min-height: 253px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.module-card:hover,
.module-card:focus-visible {
  transform: translateY(-2px);
  outline: none;
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.09);
}

.module-icon {
  display: block;
  margin-bottom: 22px;
  color: var(--ink);
  font-size: 2.05rem;
  line-height: 1;
}

.module-card h3,
.panel h3,
.login-card h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 1.06rem;
  font-weight: 800;
  line-height: 1.2;
}

.module-card p,
.panel p,
.login-card p {
  margin: 0;
  color: var(--muted);
}

.card-action {
  display: inline-flex;
  margin-top: 22px;
  color: var(--gold);
  font-weight: 900;
}

.metric-card {
  min-height: 128px;
}

.metric-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.metric-value {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 1.9rem;
  font-weight: 900;
  line-height: 1;
}

.metric-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.account-card {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 360px;
  margin-bottom: 22px;
  padding: 18px;
}

.account-card .user-avatar {
  width: 52px;
  height: 52px;
}

.content-columns,
.placeholder-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: var(--gap);
}

.section-stack {
  margin-top: var(--gap);
}

.status-list,
.placeholder-list {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.status-item,
.placeholder-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.badge.success {
  background: var(--green-soft);
  color: var(--green);
}

.badge.warning {
  background: #fff6e8;
  color: #9d5b00;
}

.badge.neutral {
  background: #eef2f6;
  color: var(--muted);
}

.login-card {
  max-width: 520px;
}

.form-grid {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  color: var(--ink);
  font-weight: 800;
}

.field input {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #d8e2e8;
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
}

.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #d8e2e8;
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

.field textarea {
  min-height: 112px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold);
  outline: 3px solid rgba(198, 163, 91, 0.22);
}

.login-help {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.form-panel {
  padding: 28px;
}

.application-form {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.submit-button {
  width: fit-content;
  min-height: 40px;
  padding: 9px 16px;
  background: var(--green);
  color: #ffffff;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.admin-tab {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--muted);
  font-weight: 800;
  box-shadow: var(--shadow);
}

.admin-tab.is-active,
.admin-tab:hover,
.admin-tab:focus-visible {
  background: var(--ink);
  color: #ffffff;
  outline: none;
}

.admin-tab-panel {
  padding: 24px;
}

.compact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.compact-card {
  min-height: 190px;
}

.maintenance-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 900px;
}

.maintenance-card {
  min-height: 160px;
}

.icon-tile {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 14px;
  background: var(--green-soft);
  font-size: 1.5rem;
}

.table-panel {
  padding: 22px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-top: 16px;
}

.data-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  color: var(--ink);
  font-size: 0.92rem;
}

.data-table th,
.data-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.data-table th {
  background: #f8fafc;
  color: var(--ink);
  font-weight: 900;
}

.status-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 8px;
  border-radius: 50%;
  vertical-align: middle;
}

.status-dot.red {
  background: #ef4444;
}

.status-dot.green {
  background: var(--green);
}

.check-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #d8e2e8;
  border-radius: 10px;
  background: #f8fafc;
  color: var(--ink);
  font-weight: 700;
}

.check-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--green);
}

.pale-button {
  background: #b7e4cf;
  color: #ffffff;
}

.rental-panel {
  max-width: 1040px;
  margin-top: 28px;
  scroll-margin-top: 24px;
}

.rental-catalog-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.rental-catalog-intro h2 {
  margin: 4px 0 8px;
  color: var(--ink);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
}

.rental-catalog-intro p:last-child {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
}

.rental-catalog {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.rental-space-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(22, 42, 58, 0.08);
}

.rental-space-card-image {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e8eef1;
}

.rental-space-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.rental-space-card:hover .rental-space-card-image img {
  transform: scale(1.025);
}

.rental-space-card-body {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.rental-space-card-body > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.rental-space-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.rental-space-card-heading h3 {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 1.3rem;
}

.rental-regulatory-name {
  margin: 0;
  color: #607782;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rental-status-badge {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e7f7ef;
  color: #18794e;
  font-size: 0.75rem;
  font-weight: 850;
}

.rental-card-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rental-card-facts span {
  padding: 8px 10px;
  border-radius: 10px;
  background: #f3f7f9;
  color: #536873;
  font-size: 0.82rem;
}

.rental-card-facts strong {
  color: var(--ink);
}

.rental-card-button {
  justify-self: start;
}

.rental-detail-link {
  display: inline-flex;
  margin-top: 6px;
  color: #007f8d;
  font-weight: 850;
  text-decoration: none;
}

.rental-detail-link:hover {
  text-decoration: underline;
}

.rental-terms {
  max-height: 360px;
  overflow-y: auto;
  padding: 18px;
  border: 1px solid #f5d58a;
  border-radius: 14px;
  background: #fff8e6;
  color: var(--ink);
}

.rental-terms h3 {
  margin: 0 0 10px;
}

.rental-terms p {
  margin: 0 0 12px;
  color: var(--ink);
}

.rental-terms ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
}

.rental-terms li {
  color: var(--ink);
}

.terms-accept {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
}

.terms-accept input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--green);
}

.rental-space-detail,
.rental-documents,
.rental-calculation {
  margin-top: 18px;
}

.rental-space-detail,
.rental-documents {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fafc;
}

.rental-space-detail h3,
.rental-documents h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 1.12rem;
}

.rental-feature-grid,
.rental-calculation,
.rental-config-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.rental-feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 14px 0;
}

.rental-calculation {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.rental-feature-grid span,
.rental-calculation div,
.rental-config-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
}

.rental-calculation div {
  display: grid;
  gap: 6px;
}

.rental-calculation span,
.rental-config-card small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.rental-calculation strong {
  color: #0097a7;
  font-size: 1.2rem;
  font-weight: 950;
}

.rental-internal-production {
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid #c58b21;
  border-radius: 14px;
  background: #fff9e8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.rental-internal-production[hidden],
.rental-internal-production-status[hidden] {
  display: none !important;
}

.rental-internal-production p {
  margin: 5px 0 0;
  color: var(--muted);
}

.rental-internal-production-button {
  flex: 0 0 auto;
  background: #3f3f46;
  color: #fff;
}

.rental-internal-production-button.is-active {
  background: #a66f0a;
  box-shadow: 0 0 0 3px rgba(197, 139, 33, 0.2);
}

.rental-internal-production-status {
  margin: 18px 0 0;
  padding: 12px 16px;
  border: 2px solid #a66f0a;
  border-radius: 10px;
  background: #fff9e8;
  color: #744d05;
  font-weight: 900;
  text-align: center;
}

.rental-admin-panel {
  margin-top: 22px;
  padding: 28px;
}

.rental-approval-checkbox {
  width: 18px;
  height: 18px;
  accent-color: #159447;
}

.rental-approved-by {
  min-width: 180px;
}

.rental-config-card {
  display: grid;
  gap: 6px;
}

.rental-config-card label {
  display: grid;
  gap: 5px;
}

.rental-config-card input,
.rental-config-card select,
.rental-config-card textarea {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  color: var(--ink);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 750;
}

.rental-public-page {
  display: grid;
  gap: 24px;
}

.rental-detail-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.rental-detail-nav a {
  color: #007f8d;
  font-weight: 850;
  text-decoration: none;
}

.rental-detail-nav a:hover {
  text-decoration: underline;
}

.rental-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(22, 42, 58, 0.09);
}

.rental-detail-main-image {
  min-height: 480px;
  background: #e8eef1;
}

.rental-detail-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rental-detail-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
  padding: clamp(26px, 4vw, 48px);
}

.rental-detail-copy h2,
.rental-detail-copy p {
  margin: 0;
}

.rental-detail-copy h2 {
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.03;
}

.rental-detail-copy[data-rental-space-slug="estacionamiento"] h2 {
  font-size: clamp(1.7rem, 3vw, 2.45rem);
}

.rental-detail-copy > p:not(.page-kicker) {
  color: var(--muted);
  line-height: 1.65;
}

.rental-price-block {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.rental-price-block div {
  display: grid;
  gap: 5px;
  padding: 14px;
  border-radius: 12px;
  background: #f3f7f9;
}

.rental-price-block span,
.rental-detail-facts span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.rental-price-block strong {
  color: var(--ink);
}

.rental-thumbnail-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.rental-thumbnail-grid button {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  padding: 0;
  border: 3px solid transparent;
  border-radius: 12px;
  background: #e8eef1;
  cursor: pointer;
}

.rental-thumbnail-grid button.is-active {
  border-color: #0097a7;
  box-shadow: 0 0 0 2px rgba(0, 151, 167, 0.15);
}

.rental-thumbnail-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rental-detail-facts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.rental-detail-facts div {
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
}

.rental-detail-facts strong {
  color: var(--ink);
  line-height: 1.4;
}

.rental-detail-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.rental-detail-columns article,
.rental-rules-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
}

.rental-detail-columns h3,
.rental-rules-card h3 {
  margin: 0 0 14px;
  color: var(--ink);
}

.rental-detail-columns ul,
.rental-rules-card ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
}

.rental-detail-columns li,
.rental-rules-card li,
.rental-rules-card > p:last-child {
  color: var(--muted);
  line-height: 1.5;
}

.rental-rules-card > p:last-child {
  margin: 18px 0 0;
  font-weight: 750;
}

.rental-config-card textarea {
  resize: vertical;
}

.form-message {
  min-height: 22px;
  margin: 0;
  font-weight: 800;
}

.form-message.error {
  color: #b42318;
}

.form-message.success {
  color: var(--green);
}

.request-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.request-meta div {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
}

.request-meta span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.request-meta strong {
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 900;
}

.materials-log {
  display: grid;
  gap: 12px;
}

.request-log-item {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
}

.request-log-item div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.request-log-item strong {
  color: var(--ink);
}

.request-log-item span,
.request-log-item p {
  margin: 0;
  color: var(--muted);
}

.empty-state {
  margin: 0;
  color: var(--muted);
}

.document-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.document-card {
  min-height: 260px;
  padding: 20px;
}

.document-card h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.25;
}

.document-card p {
  margin: 0;
  color: var(--muted);
}

.document-preview-card {
  display: grid;
  gap: 16px;
}

.document-preview {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #111111;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 var(--page-pad) 28px;
  color: var(--muted);
  font-size: 0.85rem;
}

.sidebar-backdrop {
  display: none;
}

@media (max-width: 1160px) {
  .dashboard-grid,
  .module-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 180ms ease;
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
  }

  .main-area {
    margin-left: 0;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: none;
    background: rgba(0, 0, 0, 0.45);
  }

  body.sidebar-open .sidebar-backdrop {
    display: block;
  }

  .dashboard-grid,
  .module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-columns,
  .placeholder-layout {
    grid-template-columns: 1fr;
  }

  .compact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .maintenance-grid {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .document-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  :root {
    --page-pad: 18px;
  }

  .site-header {
    align-items: flex-start;
  }

  .header-title h1 {
    font-size: 1.55rem;
    white-space: normal;
  }

  .header-right {
    display: none;
  }

  .dashboard-grid,
  .module-grid,
  .grid.two,
  .compact-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .module-card {
    min-height: 210px;
  }

  .site-footer {
    display: grid;
  }
}

/* Unified clean dashboard style */
:root {
  --bg: #f7f8fa;
  --ink: #0f1728;
  --muted: #596171;
  --paper: #ffffff;
  --line: #e7e9ee;
  --nav: #050505;
  --nav-muted: #e6e6e6;
  --shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
  --shadow-strong: 0 18px 42px rgba(15, 23, 42, 0.12);
  --radius: 16px;
}

body {
  background:
    radial-gradient(circle at 85% 8%, rgba(0, 0, 0, 0.04), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #f5f6f8 100%);
}

.sidebar {
  padding: 32px 18px;
  background: linear-gradient(180deg, #111111 0%, #050505 48%, #000000 100%) !important;
}

.brand {
  min-height: auto;
  margin-bottom: 44px;
  padding: 8px 12px 18px;
}

.brand-logo {
  max-height: 82px;
}

.nav-list {
  gap: 12px;
}

.nav-link {
  min-height: 56px;
  padding: 14px 18px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.02rem;
  font-weight: 600;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-active {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.1));
  color: #ffffff;
}

.nav-icon {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  place-items: center;
  color: #ffffff;
}

.svg-icon {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-icon .svg-icon {
  width: 24px;
  height: 24px;
  stroke-width: 2.35;
}

.main-area {
  background: transparent;
}

.site-header {
  max-width: none;
  min-height: 138px;
  padding: 34px 40px 30px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(14px);
}

.page-content,
.site-footer {
  max-width: 1280px;
}

.header-title h1 {
  font-size: 2.45rem;
  font-weight: 900;
}

.header-title p {
  margin-top: 2px;
  color: #333846;
  font-size: 1.2rem;
}

.page-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: min(820px, 70vw);
  margin-top: 14px;
}

.page-shortcut {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 10px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.page-shortcut .svg-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.page-shortcut:hover,
.page-shortcut:focus-visible,
.page-shortcut.is-active {
  border-color: #050505;
  background: #050505;
  color: #ffffff;
  outline: none;
}

.notification-button {
  position: relative;
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #000000;
  cursor: pointer;
}

.notification-button .svg-icon {
  width: 32px;
  height: 32px;
  stroke-width: 2.5;
}

.notification-badge {
  position: absolute;
  top: 3px;
  right: 2px;
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: #ff1f2d;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
}

.notification-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 40;
  width: min(360px, calc(100vw - 40px));
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.notification-menu h3 {
  margin: 2px 0 12px;
  color: var(--ink);
}

.notification-menu a {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
}

.notification-menu a:hover {
  background: #f5f7fb;
}

.notification-menu span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.account-button {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  gap: 14px;
  padding: 12px 22px;
  border: 0;
  border-radius: 10px;
  background: #050505;
  color: #ffffff;
  box-shadow: var(--shadow);
  font-size: 1.06rem;
  font-weight: 700;
  cursor: pointer;
}

.account-button .svg-icon:first-child {
  width: 28px;
  height: 28px;
  stroke: #ffffff;
}

.account-button .svg-icon:last-child {
  width: 18px;
  height: 18px;
}

.account-button.is-logged-in {
  background: #050505;
  border: 1px solid rgba(21, 148, 71, 0.5);
}

.account-button.is-logged-in::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #18b45b;
}

.account-menu-wrap {
  position: relative;
}

.account-photo {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.78);
}

.account-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 30;
  display: grid;
  min-width: 190px;
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.account-menu a,
.account-menu button {
  display: flex;
  width: 100%;
  min-height: 40px;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.account-menu a:hover,
.account-menu button:hover {
  background: #f5f7fb;
}

.page-content {
  padding: 34px 40px 26px;
}

.account-card,
.page-hero {
  display: none;
}

.dashboard-grid,
.module-grid {
  gap: 24px;
}

.card {
  border-color: rgba(15, 23, 42, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.module-card,
.document-card {
  --card-color: #159447;
  --card-soft: #dff5e7;
  display: flex;
  min-height: 306px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 36px 28px 28px;
  text-align: center;
}

.module-card:hover,
.module-card:focus-visible,
.document-card:hover,
.document-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

.module-icon,
.icon-tile {
  display: grid;
  width: 96px;
  height: 96px;
  margin: 0 auto 26px;
  place-items: center;
  border-radius: 50%;
  background: var(--card-soft);
  color: var(--card-color);
  font-size: 2.7rem;
}

.module-icon .svg-icon {
  width: 54px;
  height: 54px;
  stroke-width: 2.4;
}

.module-card h3,
.document-card h3 {
  margin-bottom: 12px;
  color: #070707;
  font-size: 1.38rem;
  font-weight: 900;
  line-height: 1.15;
}

.module-card p,
.document-card p {
  max-width: 260px;
  margin-right: auto;
  margin-left: auto;
  color: #333846;
  font-size: 1.02rem;
  line-height: 1.55;
}

.card-action {
  display: inline-flex;
  min-width: 205px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 10px 18px;
  border-radius: 7px;
  background: var(--card-color);
  color: #ffffff;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.12);
  font-size: 0.98rem;
  font-weight: 700;
}

.theme-green { --card-color: #159447; --card-soft: #dff5e7; }
.theme-orange { --card-color: #ef7d00; --card-soft: #ffe3bd; }
.theme-purple { --card-color: #5631a4; --card-soft: #ebe2fb; }
.theme-blue { --card-color: #195db6; --card-soft: #e1edff; }
.theme-red { --card-color: #e9364b; --card-soft: #ffdfe4; }
.theme-teal { --card-color: #0097a7; --card-soft: #dff8fb; }
.theme-gold { --card-color: #d99a00; --card-soft: #fff1bf; }

.compact-card {
  min-height: 260px;
}

.admin-tab-panel {
  padding: 26px;
}

.admin-tab-panel .page-kicker,
.admin-tab-panel > h3,
.admin-tab-panel > p {
  text-align: left;
}

.document-preview-card {
  gap: 18px;
}

.document-preview {
  aspect-ratio: 4 / 3;
  border-radius: 12px;
}

.site-footer {
  justify-content: center;
  padding: 16px 40px 32px;
  text-align: center;
  font-size: 1rem;
}

.site-footer span + span {
  display: none;
}

@media (max-width: 1160px) {
  .dashboard-grid,
  .module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .site-header {
    display: grid;
    gap: 18px;
    min-height: 104px;
    padding: 24px var(--page-pad);
  }

  .header-left,
  .header-right {
    width: 100%;
  }

  .header-right {
    justify-content: flex-end;
  }

  .header-title h1 {
    font-size: 2rem;
  }

  .header-title p {
    font-size: 1rem;
  }

  .page-shortcuts {
    max-width: none;
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: stretch;
  }

  .header-right {
    display: none;
  }

  .page-shortcuts {
    display: grid;
    grid-template-columns: 1fr;
  }

  .request-meta {
    grid-template-columns: 1fr;
  }

  .page-shortcut {
    width: 100%;
    justify-content: flex-start;
  }

  .page-content {
    padding: 24px var(--page-pad);
  }

  .dashboard-grid,
  .module-grid {
    grid-template-columns: 1fr;
  }

  .module-card,
  .document-card {
    min-height: 280px;
  }
}

.directory-panel,
.employee-profile,
.placeholder-panel {
  padding: 34px;
}

.employee-list {
  display: grid;
  gap: 12px;
}

.employee-row {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 82px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.employee-row:hover,
.employee-row:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(15, 23, 42, 0.18);
  outline: none;
  box-shadow: var(--shadow);
}

.employee-row.is-inactive {
  opacity: 0.65;
}

.employee-avatar {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  border-radius: 50%;
  background: #dff5e7;
  color: #159447;
  font-weight: 900;
}

.employee-row-photo {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 3px #ffffff;
}

.employee-avatar.large {
  width: 76px;
  height: 76px;
  flex-basis: 76px;
  font-size: 1.3rem;
}

.employee-info {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.employee-info strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.employee-info span,
.employee-action,
.employee-actions {
  color: var(--muted);
  font-weight: 700;
}

.employee-action,
.employee-actions {
  margin-left: auto;
  color: #159447;
}

.employee-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 420px;
}

.employee-actions a,
.employee-actions button {
  min-height: 32px;
  padding: 7px 10px;
  border: 0;
  border-radius: 999px;
  background: #eef2f6;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
  text-decoration: none;
}

.employee-actions a {
  background: #dff5e7;
  color: #159447;
}

.employee-actions button:hover,
.employee-actions button:focus-visible,
.employee-actions a:hover,
.employee-actions a:focus-visible {
  outline: none;
  filter: brightness(0.96);
}

.employee-form {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.panel-heading-inline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.notifications-panel {
  padding: 34px;
}

.notification-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.notification-sources span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #eef2f6;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.notifications-table th,
.notifications-table td {
  vertical-align: middle;
}

.table-subtext {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.switch-control {
  display: inline-flex;
  min-width: 54px;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #eef2f6;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 900;
}

.switch-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.switch-control:has(input:checked) {
  background: #dff5e7;
  color: #159447;
}

.switch-control:has(input:disabled) {
  cursor: not-allowed;
  opacity: 0.65;
}

.notification-status {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
}

.notification-status.is-on {
  background: #159447;
  color: #ffffff;
}

.notification-status.is-on::before {
  content: "";
  width: 10px;
  height: 6px;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(-45deg) translate(1px, -1px);
}

.notification-status.is-off {
  background: #cbd5e1;
}

.notification-status.is-off::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #64748b;
}

.finance-gate {
  max-width: 620px;
  margin: 0 auto;
  padding: 34px;
  text-align: center;
}

.finance-login {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  text-align: left;
}

.finance-module {
  display: grid;
  gap: 22px;
}

.finance-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.finance-toolbar h2 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.finance-sync-status {
  display: inline-flex;
  min-width: min(360px, 100%);
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.finance-sync-status-wide {
  width: 100%;
  min-width: 0;
}

.finance-sync-status strong,
.finance-sync-status span {
  display: block;
}

.finance-sync-status strong {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 900;
}

.finance-sync-status span:not(.sync-dot) {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.3;
}

.sync-dot {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  border-radius: 999px;
  background: #d0d5dd;
  box-shadow: 0 0 0 5px rgba(208, 213, 221, 0.28);
}

.finance-sync-status.is-connected .sync-dot {
  background: #159447;
  box-shadow: 0 0 0 5px rgba(21, 148, 71, 0.16);
}

.finance-sync-status.is-checking .sync-dot {
  background: #e0a500;
  box-shadow: 0 0 0 5px rgba(224, 165, 0, 0.18);
}

.finance-sync-status.is-error .sync-dot {
  background: #df3545;
  box-shadow: 0 0 0 5px rgba(223, 53, 69, 0.16);
}

.finance-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.finance-actions-bottom {
  justify-content: flex-start;
  padding-top: 4px;
}

.finance-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.finance-kpi {
  min-height: 142px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.finance-kpi span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
}

.finance-kpi strong {
  display: block;
  margin-top: 14px;
  color: var(--card-color);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 950;
  line-height: 1;
}

.finance-tabs {
  margin-top: 0;
}

.finance-panel {
  padding: 28px;
}

.finance-export-panel {
  display: grid;
  gap: 16px;
  padding: 26px;
}

.finance-export-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.finance-export-heading h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 1.35rem;
}

.finance-export-heading p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.45;
}

.finance-export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quickbooks-disabled {
  cursor: not-allowed;
  opacity: 0.68;
  white-space: nowrap;
}

.finance-table {
  min-width: 1180px;
}

.finance-table th,
.finance-table td {
  white-space: nowrap;
}

.finance-table th:first-child,
.finance-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: #ffffff;
}

.finance-category-row td {
  background: #050505 !important;
  color: #ffffff;
  font-weight: 950;
}

.finance-total-row td {
  background: #f7faf8;
  color: var(--ink);
}

.finance-total-row strong {
  color: #159447;
}

.finance-cell {
  width: 112px;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  color: var(--ink);
  font-weight: 800;
}

.finance-cell:focus {
  border-color: #159447;
  outline: none;
  box-shadow: 0 0 0 3px rgba(21, 148, 71, 0.14);
}

.finance-config-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.finance-config-grid span {
  min-height: 48px;
  padding: 14px;
  border-radius: 12px;
  background: #eef2f6;
  color: var(--ink);
  font-weight: 850;
}

@media (max-width: 900px) {
  .rental-catalog {
    grid-template-columns: 1fr;
  }

  .rental-detail-hero {
    grid-template-columns: 1fr;
  }

  .rental-detail-main-image {
    min-height: 340px;
  }

  .rental-thumbnail-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rental-detail-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rental-detail-columns {
    grid-template-columns: 1fr;
  }

  .rental-feature-grid,
  .rental-calculation,
  .rental-config-grid {
    grid-template-columns: 1fr;
  }

  .finance-toolbar {
    display: grid;
  }

  .finance-sync-status {
    width: 100%;
  }

  .finance-actions {
    justify-content: flex-start;
  }

  .finance-export-heading {
    display: grid;
  }

  .quickbooks-disabled {
    white-space: normal;
  }

  .finance-summary-grid,
  .finance-config-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .rental-catalog-intro,
  .rental-detail-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .rental-detail-main-image {
    min-height: 260px;
  }

  .rental-price-block,
  .rental-detail-facts {
    grid-template-columns: 1fr;
  }

  .rental-thumbnail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.profile-heading {
  display: flex;
  align-items: center;
  gap: 18px;
}

.employee-photo-card {
  display: grid;
  gap: 10px;
  justify-items: center;
}

.profile-heading h3 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 1.8rem;
  font-weight: 900;
}

.employee-photo-preview {
  width: 116px;
  height: 116px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.photo-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.photo-upload-button,
.photo-remove-button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  background: #050505;
  color: #ffffff;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
}

.photo-remove-button {
  background: #eef2f6;
  color: var(--muted);
}

.inline-upload {
  width: fit-content;
  margin-top: 4px;
  background: #159447;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(21, 148, 71, 0.2);
}

.field-hint {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.profile-photo-note {
  max-width: 560px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.profile-grid .field:nth-last-child(2) {
  grid-column: 1 / -1;
}

.placeholder-panel {
  max-width: 760px;
  text-align: center;
}

.placeholder-panel .module-icon {
  margin-bottom: 22px;
}

@media (max-width: 680px) {
  .directory-panel,
  .employee-profile,
  .placeholder-panel {
    padding: 24px;
  }

  .employee-row {
    align-items: flex-start;
  }

  .employee-action {
    display: none;
  }

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

  .profile-heading {
    align-items: flex-start;
  }
}

.pdf-panel {
  padding: 28px;
}

.pdf-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.pdf-toolbar h3 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 1.55rem;
  font-weight: 900;
}

.pdf-toolbar p {
  margin: 0;
  color: var(--muted);
}

.download-button {
  flex: 0 0 auto;
  background: #050505;
  color: #ffffff;
}

.pdf-viewer {
  overflow: hidden;
  min-height: 720px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f1f3f6;
}

.pdf-viewer object {
  display: block;
  width: 100%;
  height: 720px;
  border: 0;
}

.pdf-fallback {
  display: grid;
  min-height: 520px;
  place-items: center;
  padding: 32px;
  text-align: center;
}

@media (max-width: 680px) {
  .pdf-panel {
    padding: 20px;
  }

  .pdf-toolbar {
    display: grid;
  }

  .download-button {
    width: 100%;
  }

  .pdf-viewer,
  .pdf-viewer object {
    min-height: 560px;
    height: 560px;
  }
}

.inventory-panel {
  padding: 28px;
}

.inventory-actions,
.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.inventory-list-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.inventory-list-header h3 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 1.45rem;
  font-weight: 900;
}

.inventory-list-header p {
  margin: 0;
  color: var(--muted);
}

.inventory-entry-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.inventory-entry-header h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 900;
}

.inventory-entry-header p {
  margin: 4px 0 0;
  color: var(--muted);
}

.inventory-type-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.inventory-type-tabs .button.is-active {
  background: #050505;
  color: #ffffff;
}

.artwork-fields {
  display: grid;
  gap: 16px;
  padding-top: 8px;
}

.artwork-fields[hidden] {
  display: none !important;
}

.inventory-controls {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) minmax(200px, 0.8fr) minmax(200px, 0.8fr);
  gap: 16px;
  margin-bottom: 18px;
}

.inventory-table th button {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: flex-start;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  text-align: left;
}

.inventory-table th button::after {
  margin-left: 6px;
  color: var(--muted);
  content: "↕";
  font-size: 0.8rem;
}

.table-actions button {
  min-height: 32px;
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  background: #eef2f6;
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
}

.table-actions button:hover,
.table-actions button:focus-visible {
  background: #050505;
  color: #ffffff;
  outline: none;
}

@media (max-width: 960px) {
  .inventory-entry-header {
    display: grid;
  }

  .inventory-controls {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .inventory-panel {
    padding: 20px;
  }

  .inventory-type-tabs,
  .inventory-type-tabs .button {
    width: 100%;
  }
}

.calendar-panel {
  padding: 28px;
}

.calendar-toolbar,
.calendar-permissions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.calendar-toolbar h3 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 1.5rem;
  font-weight: 900;
}

.calendar-toolbar p,
.calendar-permissions p {
  margin: 0;
  color: var(--muted);
}

.calendar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.calendar-permissions {
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fafc;
}

.calendar-permissions .field {
  min-width: 240px;
}

.calendar-form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.calendar-form[hidden] {
  display: none !important;
}

.brand-deposit {
  max-width: 1120px;
  margin: 0 auto;
}

.brand-deposit-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.brand-deposit-heading h3 {
  margin: 2px 0 6px;
  color: var(--ink);
  font-size: 1.45rem;
  line-height: 1.15;
}

.brand-example {
  overflow: hidden;
  margin: 0 0 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0a0a0a;
  box-shadow: var(--shadow);
}

.brand-example img {
  display: block;
  width: 100%;
  max-height: 640px;
  object-fit: contain;
  background: #0a0a0a;
}

.brand-example figcaption {
  margin: 0;
  padding: 12px 16px;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 800;
  background: #0a0a0a;
}

.brand-assets-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.brand-asset-card {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 100%;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
}

.brand-asset-card h4 {
  margin: 0;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.2;
}

.brand-asset-card p {
  margin: 0;
  min-height: 48px;
  color: var(--muted);
  font-size: 0.92rem;
}

.brand-preview {
  display: grid;
  min-height: 170px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f7f8fb;
}

.brand-preview img {
  display: block;
  width: 100%;
  max-height: 168px;
  object-fit: contain;
  padding: 16px;
}

.brand-preview.is-dark {
  background: #0a0a0a;
}

.brand-preview.is-pdf {
  background: #fff8e8;
}

@media (max-width: 960px) {
  .brand-assets-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .brand-assets-grid {
    grid-template-columns: 1fr;
  }
}

.calendar-panel.is-readonly .calendar-form {
  opacity: 0.62;
}

.monthly-calendar {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
}

.calendar-weekdays,
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekdays {
  background: #050505;
  color: #ffffff;
  font-weight: 900;
}

.calendar-weekdays span {
  padding: 12px;
  text-align: center;
}

.calendar-day {
  min-height: 150px;
  padding: 10px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: #ffffff;
}

.calendar-day:nth-child(7n + 1) {
  border-left: 0;
}

.calendar-day.is-empty {
  background: #f8fafc;
}

.calendar-day-number {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: #eef2f6;
  color: var(--ink);
  font-weight: 900;
}

.calendar-item {
  display: grid;
  gap: 4px;
  margin-top: 8px;
  padding: 8px;
  border-radius: 10px;
  background: #f4f7fb;
  border-left: 5px solid #9aa5b1;
  color: var(--ink);
  font-size: 0.84rem;
}

.calendar-item.theme-green {
  background: #effaf3;
  border-left-color: #159447;
}

.calendar-item.theme-purple {
  background: #f3efff;
  border-left-color: #5b35b1;
}

.calendar-item.theme-gold {
  background: #fff8e5;
  border-left-color: #d99a00;
}

.calendar-item.theme-blue {
  background: #edf5ff;
  border-left-color: #1664c0;
}

.calendar-item.theme-teal {
  background: #eafafb;
  border-left-color: #008c95;
}

.calendar-item.theme-red {
  background: #fff0f2;
  border-left-color: #df3545;
}

.calendar-item.theme-government {
  background: #edf7ff;
  border-left-color: #005ea8;
}

.calendar-item.theme-orange {
  background: #fff4e8;
  border-left-color: #f47b00;
}

.calendar-item.theme-slate {
  background: #f5f7fa;
  border-left-color: #667085;
}

.calendar-item strong,
.calendar-item span,
.calendar-item small {
  overflow-wrap: anywhere;
}

.calendar-item small {
  color: var(--muted);
  font-weight: 700;
}

.calendar-item-actions {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.calendar-item-actions button {
  min-height: 28px;
  padding: 5px 8px;
  border: 0;
  border-radius: 7px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 800;
}

.calendar-item-actions button:hover,
.calendar-item-actions button:focus-visible {
  background: #050505;
  color: #ffffff;
  outline: none;
}

@media (max-width: 960px) {
  .calendar-toolbar,
  .calendar-permissions {
    display: grid;
  }

  .calendar-actions {
    justify-content: flex-start;
  }

  .calendar-days,
  .calendar-weekdays {
    min-width: 820px;
  }

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

@media (max-width: 680px) {
  .calendar-panel {
    padding: 20px;
  }
}

@media print {
  body:has(.rental-request-page) .sidebar,
  body:has(.rental-request-page) .site-header,
  body:has(.rental-request-page) .sidebar-backdrop,
  body:has(.rental-request-page) .site-footer,
  .rental-request-page .rental-detail-nav,
  .rental-request-page .rental-internal-production,
  .rental-request-page .inventory-actions,
  .rental-request-page .form-message {
    display: none !important;
  }

  body:has(.rental-request-page) .main-area,
  body:has(.rental-request-page) .page-content,
  .rental-request-page .rental-panel {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .rental-request-page input,
  .rental-request-page select,
  .rental-request-page textarea {
    border: 1px solid #9ca3af;
    background: #fff;
    color: #000;
  }

  .rental-request-page input[type="file"] {
    display: none;
  }
}

/* Membresías */
.membership-shell {
  display: grid;
  gap: 18px;
}

.membership-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.membership-intro h3,
.membership-panel h3,
.membership-plan-card h3,
.membership-dialog h3 {
  margin: 0;
}

.membership-intro p:last-child,
.membership-panel .panel-heading-inline p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.membership-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.membership-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.membership-stat {
  display: grid;
  gap: 8px;
  padding: 20px;
}

.membership-stat span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 750;
}

.membership-stat strong {
  color: var(--ink);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}

.membership-tabs {
  display: flex;
  gap: 8px;
  padding: 8px;
  overflow-x: auto;
}

.membership-tabs button {
  min-height: 38px;
  padding: 8px 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.membership-tabs button:hover,
.membership-tabs button:focus-visible,
.membership-tabs button.is-active {
  background: #111827;
  color: #fff;
  outline: none;
}

.membership-search {
  width: min(100%, 360px);
}

.membership-search input {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  font: inherit;
}

.membership-table td {
  vertical-align: middle;
}

.membership-table td:first-child strong,
.membership-table td:first-child small {
  display: block;
}

.membership-table td:first-child small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
}

.membership-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 850;
}

.membership-status.is-active {
  background: #dcfce7;
  color: #166534;
}

.membership-status.is-pending {
  background: #fef3c7;
  color: #92400e;
}

.membership-status.is-expired,
.membership-status.is-inactive {
  background: #f3f4f6;
  color: #4b5563;
}

.table-action {
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
}

.membership-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.membership-plan-grid[hidden],
.membership-panel[hidden] {
  display: none !important;
}

.membership-plan-card {
  padding: 22px;
}

.membership-plan-card .page-kicker {
  min-height: 2.4em;
}

.membership-price {
  margin: 14px 0 8px;
  color: #9a6a18;
  font-size: 1.35rem;
  font-weight: 900;
}

.membership-price small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
}

.membership-special-price {
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff7df;
  color: #7c5411;
  font-size: 0.78rem;
  font-weight: 800;
}

.membership-plan-card ul {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding-left: 18px;
  color: #374151;
  font-size: 0.82rem;
  line-height: 1.5;
}

.membership-general-benefits {
  grid-column: span 2;
  background: #fffaf0;
  border-color: #ead7aa;
}

.membership-insights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.membership-insights > article {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.membership-insights > article > span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.membership-insights > article > strong {
  font-size: 1.8rem;
}

.membership-interest-summary {
  grid-column: 1 / -1;
}

.membership-interest-summary div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.membership-interest-summary div > span {
  padding: 7px 10px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  font-size: 0.78rem;
}

.membership-dialog {
  width: min(760px, calc(100% - 32px));
  max-height: calc(100vh - 40px);
  padding: 0;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgb(15 23 42 / 0.3);
}

.membership-dialog::backdrop {
  background: rgb(15 23 42 / 0.58);
  backdrop-filter: blur(3px);
}

.membership-form {
  display: grid;
  gap: 16px;
  padding: 26px;
}

.membership-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.membership-dialog .icon-button {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: #111827;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

.membership-consents {
  display: grid;
  gap: 9px;
  padding: 15px;
  border: 1px solid #dbe3ec;
  border-radius: 10px;
  background: #f8fafc;
}

.membership-consents label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #374151;
  font-size: 0.8rem;
  line-height: 1.45;
}

.membership-consents input {
  margin-top: 2px;
}

.rental-municipal-payment {
  margin-top: 22px;
  padding: 20px;
  border: 1px solid #d6dee8;
  border-radius: 14px;
  background: #f8fafc;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.rental-municipal-payment[hidden] {
  display: none !important;
}

.rental-municipal-payment .panel-heading-inline {
  align-items: flex-start;
  margin-bottom: 16px;
}

.rental-payment-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 0.75rem;
  font-weight: 800;
  white-space: nowrap;
}

.rental-payment-status.is-validated {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.rental-payment-note {
  margin: 8px 0 0;
  color: #475569;
  font-size: 0.8rem;
  line-height: 1.5;
}

.rental-document-note {
  margin: 10px 0 0;
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.5;
}

@media print {
  .rental-municipal-payment {
    break-inside: avoid;
    box-shadow: none;
  }
}

@media (max-width: 1100px) {
  .membership-plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .membership-intro,
  .membership-panel .panel-heading-inline {
    align-items: stretch;
    flex-direction: column;
  }

  .membership-actions {
    justify-content: flex-start;
  }

  .membership-stats,
  .membership-insights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .membership-stats,
  .membership-plan-grid,
  .membership-insights {
    grid-template-columns: 1fr;
  }

  .membership-general-benefits,
  .membership-interest-summary {
    grid-column: auto;
  }

  .membership-form .form-row {
    grid-template-columns: 1fr;
  }
}
