@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("vendor/inter-latin.woff2") format("woff2");
}
:root {
  --ink: #24222b;
  --muted: #706d78;
  --line: #e8e5e9;
  --bg: #f5f5f8;
  --accent: #b52856;
  --accent-dark: #922044;
  --accent-wash: #faeaf0;
  --bs-body-font-family: Inter, system-ui, sans-serif;
}
body { font-family: Inter, system-ui, sans-serif; }
h1, h2, h3 { letter-spacing: -.045em; }
h1 { font-size: clamp(1.8rem, 2.5vw, 2.5rem); font-weight: 750; }
h2 { font-size: 1.18rem; }
.topbar { height: 78px; border-bottom: 1px solid var(--line); padding-inline: 30px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: #312536; font-weight: 750; font-size: 1.18rem; letter-spacing: -.05em; }
.brand-symbol { display: inline-grid; place-items: center; flex: none; width: 38px; height: 42px; border-radius: 5px 12px 12px 5px; background: #b52856; color: #fff; font-size: .92rem; letter-spacing: -.04em; box-shadow: inset 3px 0 0 #8d1c40; }
.header-link { font-size: .83rem; font-weight: 650; }
.top-actions { gap: 14px; }
.staff-user { display: flex; align-items: center; gap: 10px; }
.user-avatar { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 50%; background: #eee4ea; color: #8b3656; font-weight: 750; }
.user-identity { display: grid; line-height: 1.35; font-size: .82rem; }
.user-identity small { color: var(--muted); font-size: .72rem; }
.role { background: #f0edf2; color: #5e4261; font-size: .72rem; }
.personal { background: linear-gradient(90deg,#282131 0,#282131 246px,#f5f5f8 246px); }
.staff-shell { max-width: none; padding: 0; grid-template-columns: 246px minmax(0,1fr); gap: 0; }
.sidebar { top: 78px; border: 0; border-radius: 0; background: #282131; margin: 0; padding: 22px 16px; max-height: calc(100dvh - 78px); height: calc(100dvh - 78px); display: flex; flex-direction: column; }
.sidebar nav { gap: 3px; }
.sidebar .menu-label { color: #a89bac; font-size: .62rem; letter-spacing: .13em; margin-top: 1.1rem; }
.sidebar .menu-item { display: flex; gap: 11px; align-items: center; color: #e1dae5; font-size: .82rem; font-weight: 500; padding: 11px 12px; border-radius: 9px; }
.menu-icon { display: inline-grid; place-items: center; width: 20px; font-size: 1.07rem; line-height: 1; color: #bfabbc; }
.sidebar .menu-item:hover { background: #362b40; color: white; }
.sidebar .menu-item.current { background: #493044; color: #fff; font-weight: 650; }
.sidebar .menu-item.current .menu-icon { color: #f3a6c1; }
.sidebar .logout { margin-top: auto; border-color: #4a3f51; padding-top: 18px; }
.sidebar .logout .btn { background: transparent; border-color: #5a4962; color: #ddd1df; font-size: .81rem; }
.sidebar .logout .btn:hover { background: #493044; }
.staff-main { padding: 32px 34px 40px; max-width: 1530px; width: 100%; margin-inline: auto; }
.page-heading { margin-bottom: 23px; }
.page-heading p { font-size: .88rem; margin-top: .5rem; }
.surface { padding: 24px; border-color: #e8e5eb; border-radius: 14px; margin-bottom: 20px; box-shadow: 0 2px 5px #25213903; }
.surface h2 { font-weight: 700; margin-bottom: 20px; }
.btn { font-size: .82rem; font-weight: 650; gap: 9px; min-height: 43px; padding: .65rem .95rem; border-radius: 8px; }
.btn-primary { box-shadow: 0 3px 5px #a8224c18; }
.btn-light { --bs-btn-border-color: #ded9e2; --bs-btn-color: #514758; --bs-btn-hover-color: #842046; --bs-btn-hover-bg: #faf1f5; box-shadow: 0 1px 2px #21102904; }
.field { color: #61586a; font-size: .76rem; font-weight: 600; gap: 7px; }
.form-control, .form-select { font-size: .86rem; min-height: 44px; border-color: #dfdbe4; background-color: #fdfdfe; }
.form-control::placeholder { color: #a19aa8; }
.form-control:focus, .form-select:focus { background-color: #fff; }
.form-grid { column-gap: 20px; row-gap: 18px; }
.filters { padding-bottom: 18px; margin-bottom: 0; gap: 12px; }
.stack-table { font-size: .81rem; }
.stack-table th { background: #f7f6f9; font-size: .68rem; text-transform: uppercase; letter-spacing: .035em; padding-block: 13px; }
.stack-table td { padding-block: 17px; color: #554c5f; }
.stack-table td strong { font-weight: 650; color: #33293d; }
.stack-table tbody tr:last-child td { border-bottom: 0; }
.stack-table .actions-cell a { font-size: .73rem; text-decoration: none; }
.stack-table .actions-cell a:hover { text-decoration: underline; }
.status { font-size: .65rem; font-weight: 650; padding: 6px 9px; }
.status::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: currentColor; margin-right: 5px; vertical-align: middle; }
.status.normal { background: #e7f4ed; color: #28664b; }
.status.bajo { background: #fff2db; color: #916017; }
.status.agotado { background: #fbe9ed; color: #a83850; }
.code { color: #84798f; font-size: .75rem; }
.stat { padding: 22px 24px; background: #fff; border-color: #e8e5eb; border-radius: 12px; gap: 9px; }
.stat span { font-size: .78rem; }
.stat strong { font-size: 1.8rem; font-weight: 720; letter-spacing: -.05em; color: #3b293e; }
.stats-grid { gap: 18px; margin-bottom: 22px; }
.small-card { padding: 20px; background: #fcfbfd; border-color: #e8e3ed; }
.small-card h3 { font-weight: 700; }
.sale-grid { grid-template-columns: minmax(0,1fr) minmax(270px,.43fr); gap: 22px; }
.sale-search { gap: 10px; }
.sale-summary { top: 100px; }
.summary-meta { gap: 14px; padding-block: 0 20px; font-size: .76rem; }
.summary-meta strong { font-weight: 550; }
.sale-total { margin-top: 25px; padding-top: 20px; }
.sale-total strong { font-size: 1.9rem; color: #442738; font-weight: 750; }
.sale-summary .btn { margin-top: 10px; }
.sale-summary .sale-total { margin-bottom: 10px; }
.search-option { padding: 12px; gap: 4px; }
.empty-state { background: #faf9fc; border-color: #e4dce9; padding: 33px 18px; font-size: .85rem; }
.pill { font-size: .78rem; background: #f7f5f9; border-color: #e9e3ed; min-height: 37px; padding-inline: 17px; }
.chart { height: 285px; }
.chart-details, .periodo-fechas { font-size: .8rem; }
.catalog-page { background: #fbf9f6; }
.catalog-page .topbar { border-bottom: 1px solid #ebe4df; background: #fffdfb; }
.catalog-page .simple-main { max-width: 1250px; padding: 48px 32px; }
.catalog-page .page-heading { align-items: end; margin-bottom: 30px; }
.catalog-page h1 { font-size: clamp(2rem,4vw,3.8rem); font-weight: 730; letter-spacing: -.065em; line-height: 1.08; color: #392734; }
.catalog-page .page-heading p { margin-top: 12px; font-size: .96rem; color: #827079; }
.catalog-filters { padding: 20px; border-color: #e8dfd9; border-radius: 13px; background: #fffdfb; box-shadow: 0 3px 15px #45322604; }
.catalog-filters .form-control { border-color: #e7ded8; background: #fff; min-height: 47px; }
.catalog-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.catalog-card { padding: 24px; min-height: 202px; border: 1px solid #e8dfd9; border-radius: 12px; background: #fffefd; position: relative; gap: 13px; transition: box-shadow .18s,transform .18s; }
.catalog-card::after { content: ""; position: absolute; top: 23px; bottom: 23px; left: 0; width: 3px; background: #dcb5aa; border-radius: 0 3px 3px 0; }
.catalog-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px #4324320b; }
.catalog-card .code { font-size: .65rem; letter-spacing: .025em; color: #927f87; }
.catalog-card h2 { font-size: 1.06rem; line-height: 1.35; font-weight: 640; letter-spacing: -.025em; min-height: 2.7em; margin: 0; color: #43323b; }
.catalog-card strong { font-weight: 700; font-size: 1.32rem; letter-spacing: -.045em; color: #43323b; }
.catalog-card .status { font-size: .62rem; }
.results-caption { margin: 26px 0 17px; font-size: .76rem; color: #927f87; }
.login-page { background: #f7f4f7; }
.login-page .topbar { background: #fffcfe; }
.login-page .simple-main { min-height: calc(100dvh - 78px); max-width: 1150px; }
.login-layout { display: grid; grid-template-columns: 1fr 1fr; width: 100%; max-width: 950px; gap: 80px; align-items: center; padding-block: 35px; }
.login-intro { position: relative; padding-bottom: 15px; }
.overline { text-transform: uppercase; letter-spacing: .18em; font-size: .68rem; font-weight: 650; color: #9c536b; }
.login-intro h2 { margin-top: 24px; font-size: clamp(2.6rem,5vw,4.2rem); line-height: 1.07; letter-spacing: -.065em; color: #3c293e; font-weight: 730; }
.login-intro p { color: #837184; font-size: .89rem; margin-block: 20px 40px; }
.book-spines { display: flex; gap: 8px; align-items: end; height: 120px; }
.book-spines span { display: block; width: 39px; height: 100%; border-radius: 4px 7px 7px 4px; background: #a1385b; box-shadow: inset 4px 0 0 #00000016; }
.book-spines span:nth-child(2) { height: 80%; background: #c3a6b4; }
.book-spines span:nth-child(3) { height: 90%; background: #584257; }
.book-spines span:nth-child(4) { height: 76%; background: #d5b69e; transform: rotate(12deg); transform-origin: bottom left; margin-left: 8px; }
.login-card { width: 100%; padding: 37px; border-radius: 16px; box-shadow: 0 16px 60px #30213d08; margin: 0; }
.login-card h1 { font-size: 1.75rem; }
.login-card .muted { font-size: .85rem; margin-block: 12px 26px; }
.login-card .form-stack { gap: 19px; }
.login-card .btn { margin-top: 9px; justify-content: space-between; }
.login-catalog { color: #8c6c82; font-size: .76rem; margin-top: 23px; }
@media(min-width:691px) and (max-width:1080px) {
  .personal { background: linear-gradient(90deg,#282131 0,#282131 210px,#f5f5f8 210px); }
  .staff-shell { grid-template-columns: 210px minmax(0,1fr); }
  .staff-main { padding: 26px 20px; }
  .sale-grid { grid-template-columns: minmax(0,1fr); }
  .sale-summary { position: static; }
  .login-layout { gap: 35px; }
}
@media(max-width:690px) {
  .topbar { min-height: 64px; height: 64px; padding-inline: 16px; background: #fff; color: #332438; }
  .brand, .brand:hover { font-size: .98rem; color: #332438; gap: 8px; }
  .brand-symbol { width: 31px; height: 35px; font-size: .75rem; }
  .menu-toggle { color: #59415e; border-color: #ddd2e1; min-height: 34px; min-width: 34px; }
  .top-actions { gap: 7px; }
  .user-identity, .user-avatar { display: none; }
  .role { color: #6d3d5a; background: #f6ebf1; font-size: .62rem; padding-inline: 8px; }
  .personal { background: #f5f5f8; }
  .staff-shell { display: block; }
  .staff-main { padding: 23px 15px 18px; }
  .page-heading { gap: 14px; margin-bottom: 20px; }
  h1 { font-size: 1.65rem; }
  .page-heading p { font-size: .8rem; line-height: 1.5; }
  .surface { padding: 18px; border-radius: 12px; margin-bottom: 17px; }
  .sidebar { display: none; height: auto; top: 70px; max-height: calc(100dvh - 140px); padding: 14px; border-radius: 13px; }
  .sidebar.open { display: flex; }
  .sidebar .logout { margin-top: 20px; }
  .mobile-nav { background: #fff; padding-top: 5px; border-color: #e1dce6; }
  .mobile-nav .menu-item { padding: 7px 3px; font-size: .66rem; display: grid; justify-items: center; gap: 3px; color: #8b7c91; }
  .mobile-nav .menu-icon { font-size: 1.1rem; color: inherit; height: 18px; }
  .mobile-nav .menu-item.current { color: #a92250; text-decoration: none; }
  .mobile-nav button { font-size: .72rem; color: #806b83; }
  .staff-shell { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
  .personal:has(.jump-action,.mobile-bottom-action) .staff-shell { padding-bottom: calc(134px + env(safe-area-inset-bottom)); }
  .jump-action, .mobile-bottom-action { bottom: calc(72px + env(safe-area-inset-bottom)); left: 15px; right: 15px; min-height: 43px; }
  .filters { gap: 11px; padding-bottom: 18px; }
  .field { font-size: .71rem; gap: 6px; }
  .form-control, .form-select { font-size: .82rem; min-height: 43px; }
  .btn { font-size: .76rem; }
  .form-grid { gap: 16px; }
  .stack-table:not(.ticket .stack-table) tr { padding: 15px; gap: 6px 10px; background: #fff; border-color: #e6e0e9; border-radius: 11px; }
  .stack-table:not(.ticket .stack-table) tbody { gap: 12px; }
  .stack-table:not(.ticket .stack-table) td { font-size: .77rem; }
  .stack-table:not(.ticket .stack-table) td::before { font-size: .6rem; margin-bottom: 3px; }
  .inventory-table td:nth-child(2) { font-size: .87rem !important; }
  .inventory-table .status { font-size: .57rem; }
  .stack-table .actions-cell a { margin-top: 4px; font-size: .74rem; }
  .stats-grid { gap: 12px; margin-bottom: 18px; }
  .stat { padding: 17px; }
  .stat strong { font-size: 1.45rem; }
  .stat span { font-size: .69rem; }
  .sale-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 0; padding-bottom: 70px; }
  .sale-summary { position: static; }
  .sale-search { gap: 13px; }
  .sale-controls { bottom: calc(64px + env(safe-area-inset-bottom)); padding: 12px 15px; box-shadow: 0 -3px 12px #392b3806; }
  .sale-controls .sale-total { margin: 0; padding: 0; }
  .sale-controls .sale-total strong { font-size: 1.35rem; }
  .sale-controls .btn { margin-top: 0; min-height: 43px; }
  .catalog-page .simple-main { padding: 28px 17px; }
  .catalog-page h1 { font-size: 2.35rem; max-width: 320px; }
  .catalog-page .page-heading { margin-bottom: 23px; }
  .catalog-page .page-heading p { font-size: .8rem; margin-top: 11px; }
  .catalog-filters { padding: 16px; }
  .catalog-filters .form-control { min-height: 44px; }
  .category-pills { gap: 6px; }
  .pill { min-height: 34px; padding-inline: 13px; font-size: .73rem; }
  .catalog-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .catalog-card { min-height: 204px; padding: 17px 14px; gap: 12px; }
  .catalog-card .code { font-size: .56rem; }
  .catalog-card h2 { font-size: .85rem; line-height: 1.4; }
  .catalog-card strong { font-size: 1.17rem; }
  .catalog-card .status { font-size: .57rem; padding-inline: 7px; }
  .catalog-card::after { top: 16px; bottom: 16px; width: 2px; }
  .results-caption { font-size: .7rem; margin-top: 21px; }
  .header-link { font-size: .71rem; }
  .login-page .simple-main { min-height: calc(100dvh - 64px); padding: 30px 18px; display: grid; align-items: start; }
  .login-layout { grid-template-columns: minmax(0,1fr); padding: 0; gap: 25px; }
  .login-intro { display: none; }
  .login-card { padding: 28px 24px; }
  .login-card h1 { font-size: 1.8rem; }
}
@media print {
  .personal { background: #fff; }
  .staff-main { padding: 0; }
  .ticket { border: 0; box-shadow: none; }
}
