:root {
  --bg: #f5f6f2;
  --paper: #fff;
  --ink: #233c36;
  --muted: #798680;
  --line: #e4e9e3;
  --green: #146b60;
  --pale: #e7f1eb;
  --amber: #bf8436;
  --danger: #af4d49;
  --radius: 18px;
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
a {
  color: var(--green);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 32px;
  letter-spacing: -1.2px;
  font-weight: 600;
  margin-bottom: 8px;
}
h2 {
  font-size: 19px;
  letter-spacing: -0.4px;
  font-weight: 600;
}
h3 {
  font-size: 15px;
}
button {
  border: 0;
  background: none;
  color: inherit;
}
input,
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #d8e1d9;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
}
input[type="checkbox"] {
  width: auto;
  accent-color: var(--green);
}
textarea {
  min-height: 80px;
  resize: vertical;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #66756d;
  margin-bottom: 7px;
}
label.check {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  font-weight: 400;
}
.field {
  margin-bottom: 16px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.caps {
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-size: 10px;
  font-weight: 700;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 17px;
  border-radius: 9px;
  background: var(--green);
  color: white;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}
.btn.secondary {
  background: white;
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn.ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
}
.btn.danger {
  background: #fbeceb;
  color: var(--danger);
}
.btn.sm {
  padding: 7px 11px;
  font-size: 12px;
}
.btn.icon {
  padding: 9px 12px;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.between {
  justify-content: space-between;
}
.wrap {
  flex-wrap: wrap;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.layout {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: #fdfefa;
  border-right: 1px solid var(--line);
  padding: 30px 22px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 27px;
  font-weight: 650;
  letter-spacing: -1px;
}
.brand img {
  width: 36px;
  height: 36px;
}
.brand-accent {
  color: #2975b9;
}
.brand-sub {
  margin: 7px 0 36px 47px;
  color: var(--muted);
  font-size: 11px;
}
.nav-label {
  padding: 0 14px;
  margin: 10px 0 14px;
  color: #93a095;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.nav button {
  padding: 13px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 9px;
  text-align: left;
  color: #77837c;
  font-size: 13px;
}
.nav button span:first-child {
  font-size: 18px;
  width: 20px;
  text-align: center;
}
.nav button.active {
  color: var(--green);
  background: var(--pale);
  font-weight: 650;
}
.nav button:hover {
  background: #f0f4ee;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 24px;
}
.person {
  display: flex;
  gap: 10px;
  align-items: center;
}
.avatar {
  width: 36px;
  height: 36px;
  background: var(--person, #146b60);
  color: white;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 650;
}
.person strong {
  display: block;
  font-size: 12px;
}
.person small {
  font-size: 11px;
  color: var(--muted);
}
.main {
  min-width: 0;
}
.topbar {
  height: 81px;
  padding: 0 38px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fafbf7;
}
.topbar-title {
  font-size: 12px;
  color: #839087;
}
.topbar-title b {
  color: #53665a;
  font-weight: 500;
}
.today-pill {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  background: white;
  color: #708073;
}
.bell {
  position: relative;
  font-size: 21px;
}
.dot {
  position: absolute;
  right: 5px;
  top: 3px;
  background: #d6a64d;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.content {
  padding: 34px 38px 50px;
  max-width: 1600px;
  margin: auto;
}
.pagehead {
  margin-bottom: 27px;
}
.pagehead p {
  color: var(--muted);
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.panel-head h2 {
  margin: 0;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 26px;
}
.stat {
  padding: 21px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.stat .label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #7b887f;
  font-size: 12px;
}
.stat .value {
  font-size: 34px;
  letter-spacing: -1px;
  font-weight: 600;
  margin: 14px 0 8px;
}
.stat small {
  color: #98a198;
  font-size: 11px;
}
.stat.primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.stat.primary .label,
.stat.primary small {
  color: #b6d4c7;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(260px, 1fr);
  gap: 22px;
}
.calendar-head {
  margin-bottom: 20px;
}
.calendar-head h2 {
  text-transform: capitalize;
  margin: 0;
}
.calendar-controls {
  display: flex;
  gap: 6px;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.weekday {
  font-size: 10px;
  color: #96a196;
  text-align: center;
  padding: 12px 2px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.day {
  min-height: 105px;
  border-top: 1px solid var(--line);
  border-right: 1px solid #eef1eb;
  padding: 8px 5px;
  overflow: hidden;
  background: #fff;
}
.day:nth-child(7n) {
  border-right: 0;
}
.day.outside {
  background: #fafbf8;
  color: #c3cbc3;
}
.day.blocked {
  background: repeating-linear-gradient(
    135deg,
    #f1f2ed,
    #f1f2ed 5px,
    #f7f8f4 5px,
    #f7f8f4 10px
  );
}
.day.weekend {
  background-color: #fafbf8;
}
.day-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  margin-bottom: 5px;
}
.day.is-today .day-number {
  background: var(--green);
  color: white;
}
.day .add-day {
  width: 100%;
  text-align: left;
}
.event {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: 4px;
  margin: 2px 0;
  padding: 4px 5px;
  font-size: 9px;
  text-align: left;
  width: 100%;
  background: color-mix(in srgb, var(--person) 12%, white);
  color: var(--person);
  border-left: 2px solid var(--person);
}
.holiday {
  font-size: 9px;
  color: #aa8c52;
  display: block;
  line-height: 1.4;
  margin-top: 3px;
}
.legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 16px;
  font-size: 10px;
  color: #819081;
}
.legend i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 5px;
  background: var(--person);
}
.request-card {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.request-card:first-child {
  padding-top: 0;
}
.request-card:last-child {
  border: 0;
  padding-bottom: 0;
}
.request-card .request-meta {
  margin: 12px 0;
  font-size: 12px;
  color: #78877c;
}
.tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  border-radius: 5px;
  padding: 5px 8px;
  background: #f1f3ee;
  color: #7b8a7d;
  white-space: nowrap;
}
.tag.pending {
  color: #b18332;
  background: #faf1dc;
}
.tag.approved {
  color: #37816b;
  background: #eaf3ed;
}
.tag.rejected {
  color: #b0635c;
  background: #faedeb;
}
.tag.cancelled {
  color: #8a8f8a;
  background: #f0f1ef;
}
.tag.paid {
  color: #8a6bb1;
  background: #f3edf9;
}
.empty {
  text-align: center;
  padding: 38px 18px;
  color: #94a093;
  font-size: 13px;
  line-height: 1.7;
}
.empty b {
  display: block;
  color: #5d7461;
  margin-bottom: 8px;
}
.balance-bar {
  height: 7px;
  background: #ecf1e9;
  border-radius: 8px;
  overflow: hidden;
  margin: 20px 0;
}
.balance-bar div {
  background: var(--green);
  height: 100%;
  border-radius: 8px;
}
.balance-rows {
  display: flex;
  flex-direction: column;
  gap: 15px;
  font-size: 12px;
  color: #7e8c80;
}
.balance-rows span {
  display: flex;
  justify-content: space-between;
}
.balance-rows strong {
  color: var(--ink);
}
.note {
  background: #f1f5ec;
  padding: 13px;
  border-radius: 8px;
  color: #75826b;
  font-size: 12px;
  line-height: 1.6;
}
.notice {
  padding: 13px 17px;
  background: #fff7e6;
  border: 1px solid #efe0bd;
  border-radius: 10px;
  margin-bottom: 20px;
  color: #91713d;
  font-size: 12px;
  line-height: 1.6;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  white-space: nowrap;
}
th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #8e9a8e;
  font-weight: 600;
  background: #fafbf8;
  padding: 13px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 15px 13px;
  border-bottom: 1px solid #edf0e9;
  vertical-align: middle;
}
tr:last-child td {
  border-bottom: 0;
}
tfoot {
  font-weight: 700;
  background: var(--pale);
}
.filters {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  align-items: end;
  flex-wrap: wrap;
}
.filters .field {
  margin: 0;
  min-width: 130px;
  flex: 1;
}
.filters input,
.filters select {
  padding: 9px;
  font-size: 12px;
}
.profile-card {
  text-align: center;
  padding: 26px 20px;
}
.profile-card .avatar {
  width: 52px;
  height: 52px;
  font-size: 17px;
  margin-bottom: 13px;
}
.profile-card h3 {
  margin: 0 0 6px;
}
.profile-card p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 12px;
}
.profile-card .row {
  justify-content: center;
}
.employee-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.year-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.mini-month .day {
  min-height: 33px;
  padding: 2px;
  border: 0;
  text-align: center;
}
.mini-month .day-number {
  font-size: 9px;
  width: 19px;
  height: 19px;
  margin: 0;
}
.mini-month .weekday {
  font-size: 8px;
  padding: 6px 0;
}
.mini-month h3 {
  text-transform: capitalize;
}
.mini-month .event-dot {
  height: 3px;
  margin: 1px;
  border-radius: 2px;
  background: var(--person);
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #17372f66;
  backdrop-filter: blur(3px);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
}
.modal {
  background: #fff;
  border-radius: 20px;
  width: min(660px, 100%);
  max-height: 90vh;
  overflow: auto;
  padding: 28px;
  box-shadow: 0 20px 90px #143e3026;
}
.modal.wide {
  width: min(900px, 100%);
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.modal-header h2 {
  margin: 0;
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.modal .grid2 {
  gap: 15px;
}
.modal .grid2 .field {
  margin-bottom: 0;
}
.form-error {
  color: var(--danger);
  font-size: 13px;
  line-height: 1.6;
  margin: 10px 0;
}
.checkbox-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.checkbox-grid label {
  border: 1px solid var(--line);
  padding: 8px;
  border-radius: 6px;
  margin: 0;
}
.list-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.6;
}
.list-item:last-child {
  border: 0;
}
.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.tabs button {
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 12px;
  color: var(--muted);
}
.tabs button.active {
  background: var(--pale);
  color: var(--green);
  font-weight: 650;
}
.login-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 100vh;
}
.login-art {
  background: #155f55;
  color: white;
  padding: 50px 70px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.login-art .brand {
  font-size: 32px;
}
.login-art .brand-accent {
  color: #f4d35e;
}
.autosplaza-lockup {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  color: #b6d4c4;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.autosplaza-lockup img {
  display: block;
  width: 165px;
  height: auto;
  box-sizing: content-box;
  padding: 5px 8px;
  border-radius: 5px;
  background: #fff;
}
.autosplaza-lockup.compact {
  margin: 0 0 20px 4px;
}
.autosplaza-lockup.compact img {
  width: 130px;
}
.login-art h1 {
  font-size: 60px;
  line-height: 1.1;
  letter-spacing: -2px;
  max-width: 490px;
  position: relative;
  z-index: 2;
}
.login-art p {
  max-width: 360px;
  color: #b6d4c4;
  line-height: 1.8;
  font-size: 15px;
}
.art-circle {
  position: absolute;
  width: 430px;
  height: 430px;
  border: 1px solid #639a6b55;
  border-radius: 50%;
  right: -170px;
  bottom: 20px;
}
.art-circle:after,
.art-circle:before {
  content: "";
  position: absolute;
  border: 1px solid #639a6b55;
  border-radius: 50%;
  inset: 50px;
}
.art-circle:after {
  inset: 100px;
}
.login-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.login-box {
  width: 360px;
}
.login-box h1 {
  font-size: 29px;
}
.login-box > p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 30px;
}
.login-box .btn {
  width: 100%;
}
.login-footer {
  font-size: 11px;
  color: #9aa598;
  margin-top: 35px;
  line-height: 1.7;
}
.loading {
  padding: 80px;
  text-align: center;
  color: var(--muted);
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #234d3c;
  color: white;
  padding: 13px 22px;
  z-index: 100;
  border-radius: 10px;
  box-shadow: 0 6px 30px #0002;
  transition: transform 0.2s;
  max-width: 90vw;
  font-size: 13px;
}
#toast.visible {
  transform: translateX(-50%) translateY(0);
}
.mobile-menu {
  display: none;
}
.notification-unread {
  border-left: 3px solid var(--green);
  padding-left: 13px;
}
.history-line {
  border-left: 2px solid var(--line);
  padding: 0 0 18px 18px;
  font-size: 12px;
  line-height: 1.6;
}
.history-line small {
  color: var(--muted);
}
.totals {
  font-size: 22px;
  font-weight: 650;
}
.helper {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 7px;
}
.neg {
  color: var(--danger);
}
.section-gap {
  margin-top: 22px;
}
.nowrap {
  white-space: nowrap;
}
.money {
  text-align: right;
}
.hide {
  display: none !important;
}
@media (min-width: 1600px) {
  .day {
    min-height: 120px;
  }
}
@media (max-width: 1150px) {
  .layout {
    grid-template-columns: 210px minmax(0, 1fr);
  }
  .sidebar {
    padding: 26px 15px;
  }
  .content {
    padding: 28px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .employee-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 17px;
  }
  .year-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .login-art {
    padding: 45px;
  }
  .login-art h1 {
    font-size: 48px;
  }
}
@media (max-width: 760px) {
  .layout {
    display: block;
  }
  .sidebar {
    position: fixed;
    left: -260px;
    z-index: 15;
    width: 244px;
    transition: left 0.2s;
    box-shadow: 5px 0 30px #0001;
  }
  .sidebar.open {
    left: 0;
  }
  .mobile-menu {
    display: block;
    font-size: 22px;
  }
  .topbar {
    height: 64px;
    padding: 0 18px;
  }
  .topbar-title {
    display: none;
  }
  .content {
    padding: 25px 16px;
  }
  .pagehead {
    align-items: flex-start;
    gap: 15px;
  }
  .pagehead h1 {
    font-size: 25px;
  }
  .pagehead > .btn {
    padding: 10px;
    font-size: 11px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat .value {
    font-size: 28px;
  }
  .panel {
    padding: 18px;
  }
  .grid2,
  .grid3,
  .employee-grid {
    grid-template-columns: 1fr;
  }
  .year-grid {
    gap: 10px;
  }
  .mini-month {
    padding: 12px;
  }
  .day {
    min-height: 83px;
    padding: 4px 2px;
  }
  .event {
    font-size: 8px;
    padding: 3px 2px;
  }
  .calendar-controls .btn {
    padding: 7px;
  }
  .modal-backdrop {
    padding: 10px;
  }
  .modal {
    padding: 22px;
    max-height: 94vh;
  }
  .modal .grid2 {
    grid-template-columns: 1fr 1fr;
  }
  .login-layout {
    display: block;
  }
  .login-art {
    padding: 26px;
    min-height: 240px;
  }
  .login-art .autosplaza-lockup img {
    width: 125px;
  }
  .login-art h1 {
    font-size: 31px;
    margin-top: 35px;
    max-width: 300px;
  }
  .login-art p,
  .login-art > small {
    display: none;
  }
  .login-form {
    padding: 35px 25px;
  }
  .today-pill {
    font-size: 10px;
  }
  .calendar-head {
    flex-wrap: wrap;
    gap: 12px;
  }
  .filters {
    gap: 8px;
  }
  .filters .field {
    min-width: 120px;
  }
  .tabs {
    gap: 3px;
  }
  .tabs button {
    padding: 9px 10px;
  }
}
@media print {
  .sidebar,
  .topbar,
  .btn,
  .filters {
    display: none;
  }
  .layout {
    display: block;
  }
  .content {
    padding: 0;
  }
  .panel {
    border: 0;
  }
}
