:root {
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  color: #242b37;
  font-weight: 500;
  background: #f7f8fa;
  font-synthesis: none;
  --red: #d93936;
  --ink: #242b37;
  --muted: #687383;
  --line: #e9ebef;
  --sidebar: 258px;
}
* {
  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 {
  cursor: wait;
  opacity: 0.5;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  border: 0;
  background: none;
  color: inherit;
}
svg.icon {
  width: 19px;
  height: 19px;
  flex: none;
  stroke: currentColor;
  stroke-width: 1.65;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
h1,
h2,
h3,
p {
  margin: 0;
}
button.primary,
.primary {
  background: var(--red);
  border: 1px solid var(--red);
  color: #fff;
  box-shadow: 0 2px 3px #bb272218;
}
button.primary:hover,
.primary:hover {
  background: #c62e2c;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #e1e4e9;
  border-radius: 8px;
  background: white;
  padding: 10px 15px;
  font-weight: 600;
  font-size: 15px;
  min-height: 39px;
  white-space: nowrap;
}
.btn:hover {
  background: #f7f8fa;
}
.btn.small {
  padding: 6px 10px;
  min-height: 31px;
  font-size: 14px;
}
.btn.danger {
  color: #c63030;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  border: 1px solid var(--line);
  width: 34px;
  height: 34px;
  background: white;
}
.icon-btn:hover {
  background: #f5f6f8;
}
.text-btn {
  color: var(--red);
  font-size: 15px;
  font-weight: 650;
  padding: 6px 0;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1.7px;
  font-weight: 700;
  color: #9399a4;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  background: white;
  border-right: 1px solid var(--line);
  padding: 25px 17px 15px;
  display: flex;
  flex-direction: column;
  z-index: 30;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px 27px;
}
.brand img {
  width: 52px;
  height: 45px;
  object-fit: contain;
}
.brand-word {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.brand-word small {
  display: block;
  color: #8c929e;
  font-size: 12px;
  letter-spacing: 0.8px;
  margin-top: 3px;
  font-weight: 500;
}
.workspace {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 11px;
  background: #fafafb;
  border: 1px solid var(--line);
  border-radius: 9px;
  margin-bottom: 32px;
  font-size: 14px;
  font-weight: 650;
}
.workspace-icon {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  background: #fff0ef;
  color: var(--red);
  border-radius: 7px;
}
.workspace small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
  font-weight: 500;
}
.workspace .icon:last-child {
  margin-left: auto;
  width: 14px;
}
.nav-label {
  padding: 0 13px;
  margin: 0 0 12px;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 11px 13px;
  border-radius: 8px;
  font-size: 15px;
  color: #757d8a;
  font-weight: 600;
}
.nav button:hover {
  background: #f7f8fa;
  color: #242b37;
}
.nav button.active {
  background: #fff0ef;
  color: var(--red);
  font-weight: 650;
}
.count {
  margin-left: auto;
  border-radius: 5px;
  padding: 2px 6px;
  font-size: 12px;
  background: #f0f1f5;
  color: #666d7b;
}
.nav button.active .count {
  background: #f9d8d5;
  color: var(--red);
}
.nav-divider {
  border-top: 1px solid var(--line);
  margin: 24px 12px;
}
.sidebar-bottom {
  margin-top: auto;
}
.workspace-note {
  margin: 20px 10px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.7;
  color: #8b929e;
}
.workspace-note span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #62756e;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6a9a84;
}
.profile {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 8px;
  border-top: 1px solid var(--line);
}
.avatar {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border-radius: 50%;
  background: #f0e8e4;
  color: #976f61;
  font-size: 13px;
  font-weight: 700;
  flex: none;
}
.avatar.c1 {
  background: #e8eef9;
  color: #5e7ba3;
}
.avatar.c2 {
  background: #eeebf8;
  color: #8b70b0;
}
.avatar.c3 {
  background: #e6f1ec;
  color: #6e9682;
}
.profile .name {
  font-size: 14px;
  font-weight: 650;
}
.profile small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}
.profile button {
  margin-left: auto;
  color: #939aa6;
  padding: 4px;
}
.main {
  margin-left: var(--sidebar);
  min-height: 100vh;
}
.topbar {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
  border-bottom: 1px solid var(--line);
  background: white;
  font-size: 14px;
  color: #9a9faa;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 11px;
}
.breadcrumb strong {
  font-weight: 600;
  color: #656d7a;
}
.breadcrumb .icon {
  width: 15px;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.topbar-right .badge {
  background: #f6f7f9;
  color: #7d8591;
}
.demo-bar {
  background: #fff4df;
  border-bottom: 1px solid #efdfba;
  padding: 8px 38px;
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 13px;
  color: #85692e;
}
.demo-bar strong {
  font-weight: 700;
}
.demo-bar select {
  margin-left: auto;
  border: 1px solid #e9d6ad;
  background: #fff9ed;
  padding: 5px 8px;
  border-radius: 5px;
  font-size: 13px;
  color: #6d572e;
}
.content {
  padding: 35px 38px 26px;
  max-width: 1800px;
  margin: auto;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 29px;
}
.page-heading h1 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.25;
}
.page-heading p {
  font-size: 14px;
  line-height: 1.7;
  color: #858c98;
  margin-top: 8px;
}
.page-heading .actions {
  display: flex;
  gap: 9px;
}
.overview-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 25px;
}
.metric {
  padding: 19px 21px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}
.metric-top {
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #7f8794;
}
.metric-top .metric-icon {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  background: #f7f5f3;
  border-radius: 8px;
  color: #ad9685;
}
.metric:nth-child(2) .metric-icon {
  background: #edf4f1;
  color: #80a494;
}
.metric:nth-child(3) .metric-icon {
  background: #fff5e8;
  color: #c9a468;
}
.metric-number {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.8px;
  line-height: 1;
  margin-top: 10px;
}
.metric-number small {
  font-weight: 500;
  font-size: 13px;
  color: #989ea8;
  letter-spacing: 0;
  margin-left: 6px;
}
.metric-foot {
  font-size: 12px;
  color: #999fab;
  margin-top: 12px;
}
.metric-foot strong {
  font-weight: 600;
  color: #5a8a76;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
  margin-bottom: 22px;
}
.panel-head {
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid var(--line);
}
.panel-head h2 {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.1px;
}
.panel-head p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 5px;
}
.calendar-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.month-controls {
  display: flex;
  align-items: center;
  gap: 7px;
}
.month-title {
  font-size: 16px;
  font-weight: 650;
  margin-right: 13px;
  min-width: 140px;
}
.filters {
  display: flex;
  gap: 9px;
  align-items: center;
}
.filters select,
.filters input,
.year-select {
  border: 1px solid #e5e7ec;
  border-radius: 7px;
  background: white;
  padding: 8px 11px;
  font-size: 13px;
  color: #727b89;
  max-width: 200px;
  height: 34px;
}
.search {
  position: relative;
}
.search .icon {
  position: absolute;
  left: 10px;
  top: 9px;
  width: 15px;
  height: 15px;
  color: #a1a7b1;
}
.filters .search input {
  padding-left: 32px;
  width: 190px;
}
.planner-scroll {
  overflow: auto;
  max-height: 560px;
}
.planner {
  display: grid;
  min-width: 1160px;
  grid-template-columns: 225px repeat(var(--days), minmax(29px, 1fr));
  position: relative;
}
.planner > div {
  min-height: 66px;
  border-bottom: 1px solid #eff0f3;
  border-right: 1px solid #f0f1f4;
}
.planner .day-header {
  min-height: 65px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: #fdfdfe;
  position: sticky;
  top: 0;
  z-index: 5;
}
.day-header small {
  font-size: 10px;
  color: #a0a6b1;
  font-weight: 500;
}
.day-header b {
  font-size: 13px;
  font-weight: 600;
  color: #686f7d;
}
.planner .employee-header {
  position: sticky;
  left: 0;
  top: 0;
  z-index: 9;
  background: #fdfdfe;
  display: flex;
  align-items: center;
  padding: 0 20px;
  font-size: 12px;
  color: #9299a5;
  font-weight: 600;
}
.planner .person-cell {
  position: sticky;
  left: 0;
  z-index: 6;
  background: white;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 19px;
}
.person-cell .avatar {
  width: 30px;
  height: 30px;
  font-size: 12px;
}
.person-cell strong {
  font-size: 13px;
  font-weight: 600;
  display: block;
}
.person-cell small {
  display: block;
  color: #9a9fab;
  font-size: 11px;
  margin-top: 4px;
}
.person-cell .you {
  font-size: 10px;
  display: inline;
  color: #a0a7b3;
  margin-left: 4px;
  font-weight: 500;
}
.planner .day {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: center;
  padding: 0 1px;
  background: white;
  min-width: 0;
}
.planner .weekend {
  background: #fafafb;
}
.planner .today-col {
  background: #fff8f7;
}
.planner .today-col b {
  background: var(--red);
  color: white;
  border-radius: 50%;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin: -3px;
}
.planner .holiday-col {
  background: repeating-linear-gradient(
    135deg,
    #f5f7f7,
    #f5f7f7 3px,
    #fafbfb 3px,
    #fafbfb 7px
  );
}
.leave-block {
  height: 27px;
  width: 100%;
  border-radius: 4px;
  color: var(--leave-color);
  background: color-mix(in srgb, var(--leave-color) 13%, white);
  border: 1px solid color-mix(in srgb, var(--leave-color) 20%, white);
  font-size: 11px;
  font-weight: 650;
  padding: 0;
  position: relative;
  min-width: 0;
}
.leave-block.pending {
  background: repeating-linear-gradient(
    135deg,
    color-mix(in srgb, var(--leave-color) 9%, white),
    color-mix(in srgb, var(--leave-color) 9%, white) 3px,
    color-mix(in srgb, var(--leave-color) 18%, white) 3px,
    color-mix(in srgb, var(--leave-color) 18%, white) 5px
  );
  border-style: dashed;
}
.leave-block:hover {
  filter: brightness(0.93);
}
.leave-block.half {
  height: 14px;
  align-self: flex-start;
  margin-top: 15px;
}
.leave-block.pm {
  align-self: flex-end;
  margin: 0 0 15px;
}
.calendar-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 17px 21px;
  font-size: 12px;
  color: #959ca8;
}
.legend {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}
.legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--leave-color);
}
.pending-dot {
  border: 1px dashed #a0a8b4;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: #f6f7f9;
}
.bottom-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 22px;
}
.bottom-grid .panel {
  margin-bottom: 0;
}
.list-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 15px 21px;
  border-bottom: 1px solid #f0f1f4;
  font-size: 13px;
}
.list-item:last-child {
  border-bottom: 0;
}
.list-item strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
}
.list-item small {
  display: block;
  color: #949ca8;
  font-size: 12px;
  margin-top: 4px;
}
.list-item .right {
  margin-left: auto;
  text-align: right;
  white-space: nowrap;
}
.list-item .right strong {
  font-size: 12px;
}
.list-item .right small {
  font-size: 11px;
}
.date-icon {
  background: #f8f6f4;
  border: 1px solid #eeebe7;
  width: 36px;
  height: 38px;
  border-radius: 7px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: none;
}
.date-icon small {
  font-size: 10px;
  text-transform: uppercase;
  margin: 0 0 2px;
  color: #ad9988;
  letter-spacing: 0.7px;
}
.date-icon b {
  font-size: 15px;
  color: #806d60;
  font-weight: 600;
}
.badge {
  display: inline-flex;
  padding: 4px 7px;
  gap: 4px;
  align-items: center;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  background: #f2f4f7;
  color: #7b8493;
  text-transform: capitalize;
}
.badge.pending {
  background: #fff3dd;
  color: #a58039;
}
.badge.approved {
  background: #edf5ef;
  color: #678b71;
}
.badge.declined {
  background: #fceceb;
  color: #b86460;
}
.badge.cancelled {
  background: #f0f1f5;
  color: #8f96a2;
}
.footer {
  font-size: 11px;
  color: #a3a9b3;
  display: flex;
  justify-content: space-between;
  padding: 24px 0 4px;
}
.footer .dot {
  margin: 0 6px;
}
.empty {
  padding: 40px 25px;
  text-align: center;
  color: #929aa6;
  font-size: 14px;
  line-height: 1.8;
}
.empty .icon {
  width: 28px;
  height: 28px;
  color: #c0c6d0;
  margin-bottom: 10px;
}
.empty h3 {
  font-size: 15px;
  color: #727b89;
  font-weight: 600;
  margin-bottom: 4px;
}
.table-scroll {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: #929aa7;
  background: #fcfcfd;
  padding: 13px 20px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td {
  padding: 17px 20px;
  border-bottom: 1px solid #f0f1f4;
  vertical-align: middle;
}
tr:last-child td {
  border-bottom: 0;
}
.td-person {
  display: flex;
  gap: 10px;
  align-items: center;
  white-space: nowrap;
}
.td-person strong {
  font-size: 13px;
  font-weight: 600;
}
.td-person small {
  display: block;
  font-size: 11px;
  color: #939ba8;
  margin-top: 4px;
}
.td-sub {
  display: block;
  font-size: 12px;
  color: #929aa7;
  margin-top: 5px;
}
.type-label {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  font-size: 13px;
}
.type-label i {
  height: 7px;
  width: 7px;
  border-radius: 50%;
  background: var(--leave-color);
}
.row-actions {
  display: flex;
  gap: 7px;
  justify-content: flex-end;
}
.balance-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}
.balance-card {
  padding: 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.balance-card h3 {
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.balance-card h3 i {
  height: 8px;
  width: 8px;
  border-radius: 3px;
  background: var(--leave-color);
}
.balance-value {
  font-size: 38px;
  letter-spacing: -1px;
  margin: 19px 0 7px;
}
.balance-value small {
  font-size: 13px;
  letter-spacing: 0;
  color: #929aa7;
  margin-left: 5px;
}
.balance-card p {
  font-size: 12px;
  color: #929aa7;
  line-height: 1.8;
}
.balance-meter {
  display: flex;
  background: #f1f2f5;
  height: 5px;
  border-radius: 4px;
  margin: 20px 0 15px;
  overflow: hidden;
}
.balance-meter .used {
  background: var(--leave-color);
}
.balance-meter .reserved {
  background: color-mix(in srgb, var(--leave-color) 35%, white);
}
.balance-stats {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  color: #9199a6;
}
.balance-stats b {
  display: block;
  font-size: 14px;
  color: #697280;
  margin-top: 6px;
  font-weight: 600;
}
.settings-tabs {
  display: flex;
  gap: 25px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.settings-tabs button {
  font-size: 14px;
  color: #89919e;
  padding: 0 0 13px;
  border-bottom: 2px solid transparent;
}
.settings-tabs button.active {
  border-color: var(--red);
  color: var(--red);
}
.notice {
  font-size: 13px;
  line-height: 1.8;
  padding: 15px 18px;
  border: 1px solid #e9e5d7;
  background: #fdfbf5;
  color: #99804b;
  border-radius: 8px;
  margin-bottom: 22px;
}
.workweek {
  display: flex;
  gap: 8px;
}
.workweek label {
  display: flex;
  gap: 4px;
  align-items: center;
  font-size: 13px;
}
.loading {
  display: grid;
  place-items: center;
  min-height: 100vh;
  color: #8a92a0;
  font-size: 15px;
}
.login {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  background: white;
}
.login-story {
  padding: 45px 9%;
  background: #f5f3f0;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.login-story .brand {
  padding: 0;
}
.login-story h1 {
  font-size: clamp(36px, 4vw, 57px);
  font-weight: 600;
  letter-spacing: -2px;
  line-height: 1.17;
  margin: 70px 0 20px;
  max-width: 500px;
}
.login-story > p {
  font-size: 16px;
  color: #8a8580;
  line-height: 1.8;
  max-width: 340px;
}
.login-story .footnote {
  font-size: 12px;
  color: #a19a93;
  margin-top: auto;
  padding-top: 40px;
}
.login-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px;
}
.login-box {
  max-width: 340px;
  width: 100%;
}
.login-box .eyebrow {
  color: #c89b90;
  margin-bottom: 15px;
}
.login-box h2 {
  font-size: 32px;
  font-weight: 650;
  letter-spacing: -0.9px;
  margin-bottom: 13px;
}
.login-box > p {
  font-size: 14px;
  line-height: 1.9;
  color: #949ba6;
  margin-bottom: 30px;
}
.login-box .btn {
  width: 100%;
  min-height: 47px;
}
.microsoft {
  display: grid;
  grid-template-columns: repeat(2, 8px);
  gap: 2px;
  margin-right: 5px;
}
.microsoft i {
  width: 8px;
  height: 8px;
  background: white;
}
.login-info {
  font-size: 12px;
  line-height: 1.8;
  color: #a6acb5;
  text-align: center;
  margin-top: 24px;
}
.mini-planner {
  background: white;
  border: 1px solid #e5dfd8;
  border-radius: 14px;
  margin-top: 45px;
  padding: 22px;
  transform: rotate(-3deg);
  max-width: 470px;
  box-shadow: 0 15px 50px #6754470a;
}
.mini-title {
  font-size: 14px;
  font-weight: 650;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
}
.mini-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}
.mini-grid span {
  height: 35px;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: #9d9691;
  background: #faf9f7;
  border-radius: 4px;
}
.mini-grid .highlight {
  background: #fae5e1;
  color: #d46c61;
}
.mini-grid .teal {
  background: #e5f0ec;
  color: #7b9c8a;
}
.mini-caption {
  margin-top: 20px;
  font-size: 11px;
  color: #a39b94;
  display: flex;
  align-items: center;
  gap: 7px;
}
.mini-caption i {
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: #b5c8ba;
}
dialog {
  border: 1px solid #e8ebef;
  border-radius: 14px;
  padding: 0;
  width: 520px;
  max-width: calc(100vw - 30px);
  color: var(--ink);
  box-shadow: 0 24px 100px #1e293b25;
}
dialog::backdrop {
  background: #20273660;
  backdrop-filter: blur(3px);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 27px;
  border-bottom: 1px solid var(--line);
}
.modal-head h2 {
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.4px;
}
.modal-head p {
  font-size: 13px;
  color: #8c94a1;
  margin-top: 5px;
}
.modal-body {
  padding: 24px 27px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 18px;
}
.field:last-child {
  margin-bottom: 0;
}
.field > span {
  font-weight: 600;
  color: #697281;
}
.field input,
.field select,
.field textarea {
  border: 1px solid #e1e5eb;
  border-radius: 7px;
  min-height: 40px;
  padding: 9px 11px;
  background: white;
  color: #444f60;
  font-size: 14px;
  width: 100%;
}
.field textarea {
  resize: vertical;
  line-height: 1.7;
  min-height: 82px;
}
.field small {
  font-size: 12px;
  color: #a0a7b2;
  line-height: 1.5;
}
.field input[type="color"] {
  padding: 4px;
}
.field.checkbox {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 9px;
}
.field.checkbox input {
  width: 14px;
  height: 14px;
  min-height: 0;
  accent-color: var(--red);
}
.modal-foot {
  border-top: 1px solid var(--line);
  padding: 18px 27px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: #fdfdfe;
}
.estimate {
  font-size: 13px;
  padding: 14px 15px;
  border-radius: 7px;
  background: #f6f8f7;
  color: #6f8a7d;
  line-height: 1.8;
  margin-bottom: 18px;
}
.estimate.error,
.form-error {
  color: #c16660;
  background: #fff1ef;
}
.form-error {
  padding: 12px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 15px;
  line-height: 1.7;
}
.request-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 22px;
  font-size: 14px;
}
.request-detail dt {
  font-size: 12px;
  color: #929aa7;
  margin-bottom: 7px;
}
.request-detail dd {
  margin: 0;
  line-height: 1.7;
}
.detail-note {
  font-size: 13px;
  line-height: 1.8;
  background: #f7f8fa;
  padding: 15px;
  border-radius: 7px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.detail-note strong {
  display: block;
  color: #8c95a3;
  font-size: 12px;
  margin-bottom: 5px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: calc(50% + 80px);
  transform: translateX(-50%);
  padding: 12px 19px;
  border-radius: 9px;
  background: #323e3b;
  color: white;
  font-size: 14px;
  box-shadow: 0 4px 20px #26352c20;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s;
}
#toast.show {
  opacity: 1;
}
.mobile-toggle {
  display: none;
}
.year-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #939ba6;
}
.settings-note {
  padding: 20px 22px;
  font-size: 13px;
  color: #939ba8;
  line-height: 1.9;
}
.wrap {
  white-space: normal;
  overflow-wrap: anywhere;
  max-width: 280px;
}
.audit-details {
  max-width: 380px;
  overflow-wrap: anywhere;
  font-size: 12px;
  color: #8c95a4;
}
.pill {
  background: #faf2ec;
  color: #ad8b72;
  padding: 3px 7px;
  border-radius: 4px;
  font-size: 11px;
}
.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
#filter-status {
  max-width: 150px;
}
@media (min-width: 1500px) {
  .content {
    padding-top: 44px;
  }
  .planner {
    grid-template-columns: 245px repeat(var(--days), minmax(29px, 1fr));
  }
  .planner > div {
    min-height: 74px;
  }
  .planner .day-header {
    min-height: 72px;
  }
  .overview-strip {
    gap: 22px;
  }
  .metric {
    padding: 23px 25px;
  }
  .metric-number {
    font-size: 35px;
  }
}
@media (max-width: 1150px) {
  :root {
    --sidebar: 225px;
  }
  .sidebar {
    padding-inline: 12px;
  }
  .content {
    padding: 28px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .brand {
    padding-inline: 5px;
  }
  .brand-word {
    font-size: 18px;
  }
  .calendar-tools {
    flex-wrap: wrap;
  }
  .filters {
    flex-wrap: wrap;
  }
  .topbar-right .muted {
    display: none;
  }
  .bottom-grid {
    grid-template-columns: 1fr 1fr;
  }
  .list-item {
    padding-inline: 16px;
  }
  .page-heading h1 {
    font-size: 29px;
  }
}
@media (max-width: 800px) {
  :root {
    --sidebar: 0px;
  }
  .sidebar {
    transform: translateX(-100%);
    width: 258px;
    box-shadow: 4px 0 40px #1e293b15;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .mobile-toggle {
    display: inline-flex;
  }
  .main {
    margin-left: 0;
  }
  .topbar {
    height: 60px;
    padding: 0 18px;
  }
  .topbar-right .badge {
    display: none;
  }
  .content {
    padding: 25px 17px;
  }
  .page-heading {
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 22px;
  }
  .page-heading h1 {
    font-size: 27px;
  }
  .page-heading p {
    font-size: 13px;
    max-width: 260px;
  }
  .page-heading .actions .btn:not(.primary) {
    display: none;
  }
  .btn {
    padding: 9px 11px;
    font-size: 13px;
  }
  .overview-strip {
    gap: 10px;
  }
  .metric {
    padding: 14px 13px;
  }
  .metric-top {
    font-size: 12px;
  }
  .metric-top .metric-icon {
    display: none;
  }
  .metric-number {
    font-size: 27px;
  }
  .metric-number small {
    font-size: 11px;
    display: block;
    margin: 7px 0 0;
  }
  .metric-foot {
    font-size: 11px;
    line-height: 1.5;
    min-height: 26px;
  }
  .calendar-tools {
    padding: 14px;
  }
  .month-title {
    min-width: 125px;
    margin-right: 3px;
  }
  .filters {
    width: 100%;
  }
  .filters select {
    max-width: 160px;
  }
  .filters .search {
    flex: 1;
  }
  .filters .search input {
    width: 100%;
    max-width: none;
  }
  .calendar-footer {
    padding: 15px 14px;
  }
  .calendar-footer > span {
    display: none;
  }
  .legend {
    gap: 12px;
    font-size: 11px;
  }
  .bottom-grid,
  .two-columns {
    grid-template-columns: 1fr;
  }
  .bottom-grid .panel {
    margin-bottom: 0;
  }
  .balance-cards {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .balance-card {
    padding: 18px;
  }
  .balance-value {
    font-size: 32px;
  }
  .demo-bar {
    padding: 7px 17px;
    font-size: 11px;
    gap: 7px;
  }
  .demo-bar > span {
    display: none;
  }
  .demo-bar select {
    max-width: 210px;
    font-size: 12px;
  }
  .login {
    grid-template-columns: 1fr;
  }
  .login-story {
    padding: 28px 30px 40px;
  }
  .login-story h1 {
    margin-top: 30px;
    font-size: 42px;
  }
  .login-story > p {
    font-size: 14px;
  }
  .mini-planner,
  .login-story .footnote {
    display: none;
  }
  .login-form {
    padding: 40px 28px;
  }
  .footer {
    font-size: 10px;
    gap: 10px;
    line-height: 1.7;
  }
  .settings-tabs {
    gap: 18px;
    overflow: auto;
  }
  .settings-tabs button {
    white-space: nowrap;
    font-size: 13px;
  }
  #toast {
    left: 50%;
    width: max-content;
    max-width: 90vw;
  }
  .topbar-right {
    gap: 9px;
  }
  .form-grid {
    gap: 12px;
  }
  .modal-body {
    padding: 20px;
  }
  .modal-head {
    padding: 20px;
  }
  .modal-foot {
    padding: 16px 20px;
  }
}
@media (max-width: 600px) {
  .page-heading {
    flex-wrap: wrap;
  }
  .overview-strip {
    grid-template-columns: 1fr;
  }
  .metric {
    min-height: 105px;
  }
  .balance-cards {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
