:root {
  --menu-green: #123c32;
  --menu-green-deep: #0b2d26;
  --menu-green-soft: #e8f0e8;
  --menu-lime: #d9ef72;
  --menu-coral: #ff775f;
  --menu-canvas: #f4f3ed;
  --menu-card: #fffefa;
}

body {
  background:
    radial-gradient(circle at 82% 8%, rgba(217, 239, 114, .16), transparent 22rem),
    var(--menu-canvas);
}

.app-shell:not(.admin-shell) {
  background: transparent;
}

.app-shell:not(.admin-shell) .main-content {
  padding-right: clamp(22px, 3vw, 52px);
  padding-left: clamp(22px, 3vw, 52px);
}

.app-shell:not(.admin-shell) .topbar {
  position: sticky;
  top: 0;
  z-index: 16;
  height: 92px;
  margin-bottom: 24px;
  border-bottom-color: rgba(18, 60, 50, .1);
  background: rgba(244, 243, 237, .88);
  backdrop-filter: blur(18px);
}

.app-shell:not(.admin-shell) .topbar h1 {
  font-size: clamp(22px, 2vw, 30px);
}

.app-shell:not(.admin-shell) .cart-pill {
  min-height: 46px;
  padding: 8px 14px;
  border-color: transparent;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(18, 60, 50, .1);
}

.app-shell:not(.admin-shell) .cart-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(18, 60, 50, .15);
}

.nav-count:empty {
  display: none;
}

.welcome-strip {
  min-height: 206px;
  padding: 38px 42px;
  border: 0;
  border-radius: 32px;
  background:
    radial-gradient(circle at 73% 35%, rgba(217, 239, 114, .18), transparent 18rem),
    linear-gradient(125deg, var(--menu-green-deep), #215747 66%, #2e6956);
  box-shadow: 0 28px 70px rgba(18, 60, 50, .18);
}

.welcome-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 54px 100%;
  mask-image: linear-gradient(90deg, transparent, #000, transparent);
  pointer-events: none;
}

.welcome-strip h2 {
  max-width: 660px;
  font-size: clamp(30px, 3.2vw, 48px);
  line-height: 1;
}

.welcome-strip p:not(.eyebrow) {
  max-width: 520px;
  margin-top: 13px;
  color: #c7dbd0;
  font-size: 13px;
}

.welcome-art {
  gap: 10px;
  margin-right: 42px;
}

.welcome-art span {
  width: 72px;
  height: 72px;
  border-radius: 24px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, .22);
}

.welcome-art span:nth-child(2) {
  width: 38px;
  height: 38px;
}

.restaurant-picker {
  margin-top: 40px;
}

.restaurant-picker .section-heading {
  margin-bottom: 20px;
}

.restaurant-picker .section-heading h2 {
  font-size: clamp(24px, 2.4vw, 34px);
}

.provider-grid {
  grid-template-columns: repeat(5, minmax(170px, 1fr));
  gap: 14px;
}

.provider-card {
  min-height: 188px;
  padding: 17px;
  border: 1px solid rgba(18, 60, 50, .09);
  border-radius: 24px;
  background: rgba(255, 254, 250, .9);
  box-shadow: 0 8px 24px rgba(18, 60, 50, .04);
}

.provider-card::before {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  right: -60px;
  top: -58px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  transition: transform .3s ease;
}

.provider-card:hover::before,
.provider-card.selected::before {
  transform: scale(1.35);
}

.provider-card:hover,
.provider-card.selected {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--accent) 36%, transparent);
  box-shadow: 0 18px 42px rgba(18, 60, 50, .12);
}

.provider-card.selected {
  color: #fff;
  background: linear-gradient(145deg, var(--menu-green-deep), var(--menu-green));
}

.provider-card.selected::after {
  right: 18px;
  left: 18px;
  height: 4px;
  background: var(--menu-lime);
}

.provider-card.selected .provider-logo {
  color: var(--menu-green-deep);
  background: var(--menu-lime);
}

.provider-card.selected .provider-copy small,
.provider-card.selected .provider-bottom em,
.provider-card.selected .provider-arrow {
  color: #b9cec3;
}

.provider-card.selected .provider-state {
  color: #ddf3d0;
}

.provider-logo {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  box-shadow: 0 8px 16px color-mix(in srgb, var(--accent) 20%, transparent);
}

.provider-arrow {
  position: relative;
  z-index: 1;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(18, 60, 50, .05);
  transition: transform .2s ease;
}

.provider-card:hover .provider-arrow {
  transform: translateX(3px);
}

.provider-card.selected .provider-arrow {
  background: rgba(255, 255, 255, .08);
}

.provider-copy {
  padding: 21px 0 16px;
}

.provider-copy b {
  font-size: 15px;
}

.provider-copy small {
  min-height: 34px;
  font-size: 10px;
  line-height: 1.5;
}

.menu-section {
  margin-top: 38px;
  padding: clamp(22px, 2.6vw, 38px);
  border-color: rgba(18, 60, 50, .08);
  border-radius: 32px;
  background: rgba(255, 254, 250, .92);
  box-shadow: 0 26px 80px rgba(18, 60, 50, .09);
  scroll-margin-top: 100px;
}

.menu-header {
  align-items: center;
  margin-bottom: 25px;
}

.menu-heading-copy {
  display: flex;
  align-items: center;
  gap: 15px;
}

.menu-provider-logo {
  width: 58px;
  height: 58px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 19px;
  color: #fff;
  background: var(--menu-green);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: -.08em;
  box-shadow: 0 12px 24px rgba(18, 60, 50, .16);
}

.menu-provider-logo.olama { background: #a93416; }
.menu-provider-logo.tradicional { background: #3775c8; }
.menu-provider-logo.artesanos { background: #b98a2b; }
.menu-provider-logo.sweet { background: #245db0; }
.menu-provider-logo.bagel { background: #2f6957; }

.menu-header h2 {
  margin-bottom: 4px;
  font-size: clamp(22px, 2.2vw, 31px);
}

.menu-status {
  padding: 11px 14px;
  border: 1px solid #dce8d8;
  background: #f2f8ed;
}

.menu-toolbar {
  position: sticky;
  top: 101px;
  z-index: 12;
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 12px;
  margin: 0 -8px 24px;
  padding: 10px 8px;
  border-radius: 20px;
  background: rgba(255, 254, 250, .92);
  backdrop-filter: blur(18px);
}

.menu-search {
  min-width: 0;
  border-color: rgba(18, 60, 50, .12);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(18, 60, 50, .06);
}

.menu-search:focus-within {
  border-color: #7d9f8f;
  box-shadow: 0 0 0 4px rgba(79, 128, 106, .1);
}

.category-tabs {
  gap: 8px;
  padding: 2px 2px 4px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.category-tab {
  min-height: 44px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 15px;
  color: #66776f;
  background: #f1f1ea;
}

.category-tab:hover {
  border-color: #d4ddd5;
  background: #fff;
}

.category-tab.active {
  color: #fff;
  background: var(--menu-green);
  box-shadow: 0 10px 20px rgba(18, 60, 50, .16);
}

.category-tab.active small {
  color: var(--menu-lime);
}

.menu-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 2px 17px;
}

.menu-results-head > div {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.menu-results-head span {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -.035em;
}

.menu-results-head b,
.menu-results-head small {
  color: #819087;
  font-size: 10px;
  font-weight: 700;
}

.item-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
}

.item-card {
  min-height: 365px;
  flex-direction: column;
  border-color: rgba(18, 60, 50, .1);
  border-radius: 24px;
  background: var(--menu-card);
  box-shadow: 0 10px 28px rgba(18, 60, 50, .055);
}

.item-card:hover {
  transform: translateY(-6px);
  border-color: rgba(18, 60, 50, .18);
  box-shadow: 0 22px 46px rgba(18, 60, 50, .13);
}

.item-card.in-cart {
  border-color: rgba(18, 60, 50, .28);
  box-shadow: 0 16px 36px rgba(18, 60, 50, .12);
}

.item-visual {
  width: 100%;
  height: 182px;
  flex: none;
  align-items: center;
  border-radius: 21px 21px 16px 16px;
  isolation: isolate;
}

.item-visual::before {
  content: "";
  position: absolute;
  width: 145px;
  height: 145px;
  border: 1px solid rgba(255, 255, 255, .58);
  border-radius: 50%;
  box-shadow: 0 0 0 20px rgba(255, 255, 255, .14);
}

.item-visual span.item-emoji {
  z-index: 2;
  font-size: 76px;
  transform: rotate(-5deg);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}

.item-card:hover .item-emoji {
  transform: rotate(2deg) scale(1.08);
}

.item-visual i {
  width: 170px;
  height: 170px;
  right: -72px;
  bottom: -85px;
}

.item-visual small {
  position: absolute;
  top: 13px;
  left: 13px;
  z-index: 3;
  max-width: calc(100% - 26px);
  overflow: hidden;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 999px;
  color: var(--menu-green-deep);
  background: rgba(255, 255, 255, .7);
  backdrop-filter: blur(8px);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .08em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.item-card-body {
  min-height: 181px;
  padding: 17px;
}

.item-card-head {
  min-height: 25px;
}

.item-category {
  color: #7e8d84;
  font-size: 8px;
  letter-spacing: .13em;
}

.item-price {
  margin-top: -29px;
  margin-right: -25px;
  padding: 8px 16px 8px 12px;
  border-radius: 12px 0 0 12px;
  color: #fff;
  background: var(--menu-green);
  box-shadow: 0 8px 18px rgba(18, 60, 50, .24);
  font-size: 12px;
}

.item-card h3 {
  margin-top: 7px;
  font-size: 16px;
  line-height: 1.16;
}

.item-card p {
  min-height: 32px;
  margin-top: 7px;
  font-size: 10px;
  line-height: 1.5;
}

.item-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
}

.item-availability {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #66806f;
  font-size: 8px;
  font-weight: 800;
  white-space: nowrap;
}

.item-availability i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #70b65f;
  box-shadow: 0 0 0 4px rgba(112, 182, 95, .12);
}

.item-unavailable .item-availability {
  color: #a56855;
}

.item-unavailable .item-availability i {
  background: #df8064;
}

.add-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  margin-top: 0;
  padding: 8px 9px 8px 13px;
  border: 1px solid var(--menu-green);
  border-radius: 999px;
  color: var(--menu-green);
  background: transparent;
  text-transform: none;
  transition: all .18s ease;
}

.add-item span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  margin: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--menu-green);
}

.add-item:hover {
  color: var(--menu-green-deep);
  border-color: var(--menu-lime);
  background: var(--menu-lime);
}

.item-stepper {
  min-width: 106px;
  height: 38px;
  display: grid;
  grid-template-columns: 38px 30px 38px;
  align-items: center;
  overflow: hidden;
  border-radius: 999px;
  color: #fff;
  background: var(--menu-green);
  box-shadow: 0 8px 18px rgba(18, 60, 50, .18);
}

.item-stepper button {
  width: 38px;
  height: 38px;
  border: 0;
  color: #fff;
  background: transparent;
  font-size: 18px;
  font-weight: 700;
}

.item-stepper button:hover {
  color: var(--menu-green-deep);
  background: var(--menu-lime);
}

.item-stepper strong {
  text-align: center;
  font-size: 12px;
}

.menu-empty {
  grid-column: 1 / -1;
}

.cart-dock {
  bottom: 20px;
  max-width: 760px;
  margin-top: 35px;
  padding: 12px 13px 12px 16px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 20px;
  background: rgba(11, 45, 38, .96);
  backdrop-filter: blur(16px);
}

.cart-dock .button {
  border-radius: 13px;
  background: var(--menu-lime);
}

.empty-dock {
  border-color: transparent;
  background: #e6e5de;
}

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

@media (max-width: 1180px) {
  .provider-grid {
    display: flex;
    overflow-x: auto;
    padding: 4px 3px 15px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .provider-grid::-webkit-scrollbar { display: none; }
  .provider-card { min-width: 210px; scroll-snap-align: start; }
  .item-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .app-shell:not(.admin-shell) {
    padding-bottom: 86px;
  }

  .app-shell:not(.admin-shell) .sidebar {
    position: fixed;
    inset: auto 10px 10px;
    z-index: 40;
    width: auto;
    height: 68px;
    min-height: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 7px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 22px;
    transform: none;
    box-shadow: 0 18px 45px rgba(11, 45, 38, .34);
  }

  .app-shell:not(.admin-shell) .sidebar-brand,
  .app-shell:not(.admin-shell) .sidebar-note,
  .app-shell:not(.admin-shell) .sidebar-spacer {
    display: none;
  }

  .app-shell:not(.admin-shell) .main-nav {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
  }

  .app-shell:not(.admin-shell) .nav-item {
    min-height: 50px;
    justify-content: center;
    gap: 7px;
    padding: 8px 10px;
    border-radius: 15px;
    font-size: 10px;
    text-align: center;
  }

  .app-shell:not(.admin-shell) .nav-item span {
    width: auto;
  }

  .app-shell:not(.admin-shell) .sidebar-user {
    flex: none;
    gap: 4px;
    margin: 0;
    padding: 0;
    border: 0;
  }

  .app-shell:not(.admin-shell) .sidebar-user > div {
    display: none;
  }

  .app-shell:not(.admin-shell) .sidebar-user .avatar {
    width: 42px;
    height: 42px;
  }

  .app-shell:not(.admin-shell) .sidebar-user button {
    width: 30px;
    height: 42px;
    padding: 0;
  }

  .app-shell:not(.admin-shell) .main-content {
    padding: 0 14px 98px;
  }

  .app-shell:not(.admin-shell) .topbar {
    height: 74px;
    margin-bottom: 14px;
  }

  .app-shell:not(.admin-shell) .mobile-menu {
    display: none;
  }

  .app-shell:not(.admin-shell) .top-avatar {
    display: grid;
  }

  .app-shell:not(.admin-shell) .topbar .eyebrow {
    display: none;
  }

  .app-shell:not(.admin-shell) .topbar h1 {
    max-width: 175px;
    font-size: 19px;
  }

  .welcome-strip {
    min-height: 174px;
    padding: 27px 23px;
    border-radius: 25px;
  }

  .welcome-strip h2 {
    font-size: 29px;
  }

  .welcome-strip p:not(.eyebrow) {
    max-width: 215px;
    font-size: 11px;
    line-height: 1.45;
  }

  .welcome-art {
    margin-right: -18px;
    transform: scale(.72);
  }

  .restaurant-picker {
    margin-top: 29px;
  }

  .restaurant-picker .section-heading {
    flex-direction: row;
    align-items: flex-end;
  }

  .restaurant-picker .section-heading h2 {
    font-size: 23px;
  }

  .restaurant-picker .section-helper {
    max-width: 80px;
    font-size: 9px;
    text-align: right;
  }

  .provider-grid {
    margin-right: -14px;
  }

  .provider-card {
    min-width: 192px;
    min-height: 172px;
  }

  .menu-section {
    margin-top: 25px;
    padding: 20px 13px 18px;
    border-radius: 25px;
    scroll-margin-top: 82px;
  }

  .menu-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
    padding: 0 4px;
  }

  .menu-provider-logo {
    width: 50px;
    height: 50px;
    border-radius: 16px;
  }

  .menu-header h2 {
    font-size: 22px;
  }

  .menu-header .muted {
    font-size: 10px;
  }

  .menu-status {
    padding: 8px 11px;
    font-size: 9px;
  }

  .menu-toolbar {
    top: 80px;
    grid-template-columns: 1fr;
    gap: 9px;
    margin: 0 -3px 20px;
    padding: 8px 3px 10px;
  }

  .menu-search {
    min-height: 44px;
  }

  .category-tabs {
    order: 2;
    margin: 0;
  }

  .category-tab {
    min-height: 39px;
    padding: 8px 13px;
    border-radius: 13px;
    font-size: 9px;
  }

  .menu-results-head {
    margin: 0 3px 13px;
  }

  .menu-results-head > small {
    display: none;
  }

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

  .item-card {
    min-height: 318px;
    border-radius: 19px;
  }

  .item-visual {
    height: 142px;
    border-radius: 17px 17px 13px 13px;
  }

  .item-visual::before {
    width: 105px;
    height: 105px;
  }

  .item-visual span.item-emoji {
    font-size: 57px;
  }

  .item-visual small {
    top: 9px;
    left: 9px;
    max-width: calc(100% - 18px);
    padding: 5px 7px;
    font-size: 6px;
  }

  .item-card-body {
    min-height: 176px;
    padding: 13px 11px 11px;
  }

  .item-price {
    margin-top: -25px;
    margin-right: -18px;
    padding: 7px 10px;
    border-radius: 10px 0 0 10px;
    font-size: 10px;
  }

  .item-category {
    font-size: 6px;
  }

  .item-card h3 {
    min-height: 34px;
    font-size: 13px;
    line-height: 1.25;
  }

  .item-card p {
    min-height: 30px;
    font-size: 8px;
    -webkit-line-clamp: 2;
  }

  .item-availability {
    display: none;
  }

  .add-item {
    width: 100%;
    justify-content: space-between;
    min-height: 34px;
    padding-left: 11px;
    font-size: 9px;
  }

  .item-stepper {
    width: 100%;
    min-width: 0;
    grid-template-columns: 1fr 28px 1fr;
  }

  .cart-dock {
    position: fixed;
    right: 13px;
    bottom: 88px;
    left: 13px;
    max-width: none;
    margin: 0;
  }

  .cart-dock.empty-dock {
    display: none;
  }
}

@media (max-width: 360px) {
  .item-card { min-height: 305px; }
  .item-visual { height: 125px; }
  .item-card h3 { font-size: 12px; }
  .welcome-art { display: none; }
  .welcome-strip p:not(.eyebrow) { max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .provider-card,
  .provider-arrow,
  .item-card,
  .item-emoji,
  .add-item {
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Cortes y deducciones unificados */
.balance-pill{padding:10px 14px;border:1px solid rgba(18,60,50,.1);border-radius:14px;background:#fff;font-size:12px;font-weight:900;box-shadow:0 8px 24px rgba(18,60,50,.08)}
.balance-hero{min-height:230px;display:flex;align-items:center;justify-content:space-between;overflow:hidden;padding:38px 42px;border-radius:32px;color:#fff;background:radial-gradient(circle at 78% 34%,rgba(217,239,114,.22),transparent 17rem),linear-gradient(125deg,#0b2d26,#205846 68%,#2e6956);box-shadow:0 28px 70px rgba(18,60,50,.2)}
.balance-hero h2{margin:8px 0;font-size:clamp(48px,7vw,82px);line-height:1;color:var(--menu-lime);letter-spacing:-.075em}.balance-hero p:not(.eyebrow){color:#c6d9d0}.balance-hero-icon{width:120px;height:120px;display:grid;place-items:center;margin-right:5%;border:1px solid rgba(255,255,255,.2);border-radius:38px;background:rgba(255,255,255,.08);font-size:55px;transform:rotate(5deg);box-shadow:0 25px 55px rgba(0,0,0,.18)}
.deduction-source-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:18px 0 30px}.deduction-source-grid article,.deduction-admin-metrics>article:not(.unified-total){display:flex;align-items:center;gap:13px;padding:20px;border:1px solid rgba(18,60,50,.09);border-radius:20px;background:rgba(255,254,250,.92);box-shadow:0 10px 28px rgba(18,60,50,.055)}.deduction-source-grid small,.deduction-source-grid strong,.deduction-admin-metrics small,.deduction-admin-metrics strong{display:block}.deduction-source-grid small,.deduction-admin-metrics small{margin-bottom:5px;color:#7e8d84;font-size:10px}.deduction-source-grid strong,.deduction-admin-metrics strong{font-size:20px;letter-spacing:-.04em}.source-dot{width:13px;height:42px;display:block;border-radius:99px;background:#315e4e}.source-dot.food{background:var(--menu-lime)}.source-dot.reception{background:var(--menu-coral)}.source-dot.total{background:#2e6956}
.employee-deduction-detail{margin-top:0}.deduction-detail-list{display:grid;gap:9px}.deduction-detail-row{display:grid;grid-template-columns:44px 1fr auto;gap:13px;align-items:center;padding:14px;border:1px solid rgba(18,60,50,.08);border-radius:16px;background:#fff}.source-mark{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;font-size:10px;font-weight:950}.source-mark.food{color:#173c33;background:#e1ef8f}.source-mark.reception{color:#8c392c;background:#ffe0d8}.deduction-detail-main{min-width:0}.deduction-detail-main>div{display:flex;align-items:baseline;gap:8px}.deduction-detail-main b,.deduction-detail-main span,.deduction-detail-main small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.deduction-detail-main b{font-size:12px}.deduction-detail-main span,.deduction-detail-main small{color:#7d8c84;font-size:9px}.deduction-detail-main small{display:block;margin-top:5px}.deduction-detail-row>strong{font-size:12px}.no-cycle-state{min-height:430px;display:grid;place-items:center}
.deduction-admin-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;padding:27px 30px;border-radius:24px;color:#fff;background:linear-gradient(125deg,#0b2d26,#215747)}.deduction-admin-header h2{font-size:28px}.deduction-admin-header>div>p:last-child{margin-top:7px;color:#bcd2c7;font-size:11px}.cycle-history{display:flex;gap:8px;overflow:auto;margin-bottom:16px;padding-bottom:3px}.cycle-chip{min-width:190px;display:flex;align-items:center;justify-content:space-between;gap:13px;padding:10px 12px;border:1px solid var(--line);border-radius:13px;color:var(--ink);background:#fff;font-size:10px}.cycle-chip.active{border-color:#224e40;box-shadow:0 0 0 3px rgba(34,78,64,.1)}.cycle-chip small{padding:4px 7px;border-radius:99px;font-size:8px}.cycle-chip small.open{color:#336a45;background:#e5f3df}.cycle-chip small.closed{color:#6e746f;background:#eceeea}
.cycle-empty-card,.cycle-control-card{display:grid;grid-template-columns:1.05fr 1fr;gap:30px;align-items:center;padding:28px;border:1px solid rgba(18,60,50,.1);border-radius:24px;background:var(--menu-card);box-shadow:0 15px 44px rgba(18,60,50,.08)}.cycle-empty-icon{width:58px;height:58px;display:grid;place-items:center;margin-bottom:18px;border-radius:18px;color:#173c33;background:var(--menu-lime);font-size:27px}.cycle-empty-card h2,.cycle-control-card h2{font-size:25px}.cycle-empty-card>div>p:last-child,.cycle-control-head p:last-child{max-width:520px;margin-top:8px;color:#75837b;line-height:1.6;font-size:11px}.cycle-control-card{display:block}.cycle-control-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.cycle-control-head h2 span{color:#9bad9f}.cycle-status{display:flex;align-items:center;gap:7px;padding:8px 11px;border-radius:99px;font-size:9px;font-weight:850}.cycle-status i{width:6px;height:6px;border-radius:50%}.cycle-status.open{color:#2d6841;background:#e9f5e3}.cycle-status.open i{background:#64b45b}.cycle-status.closed{color:#69716b;background:#edf0ec}.cycle-status.closed i{background:#8c9890}.cycle-form{display:grid;grid-template-columns:minmax(180px,1fr) minmax(180px,1fr) auto auto;gap:10px;align-items:end;margin-top:24px;padding-top:22px;border-top:1px solid var(--line)}.cycle-form label{display:grid;gap:7px;color:#69786f;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.cycle-form input{height:43px;padding:0 12px;border:1px solid var(--line);border-radius:12px;color:var(--ink);background:#fff}.cycle-form .form-message{grid-column:1/-1}.button-danger-soft{color:#a1493b;background:#ffebe6}.cycle-closed-actions{display:flex;gap:9px;margin-top:24px;padding-top:22px;border-top:1px solid var(--line)}
.deduction-admin-metrics{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:14px;margin:18px 0}.unified-total{padding:22px 24px;border-radius:21px;color:#fff;background:linear-gradient(135deg,#123c32,#235c4b)}.unified-total span,.unified-total small{display:block}.unified-total span{font-size:10px;color:#bdd2c6}.unified-total strong{display:block;margin:7px 0 3px;color:var(--menu-lime);font-size:31px}.unified-total small{color:#9fb9ab;font-size:9px}.deduction-people-section{margin-top:0}.compact-search{width:min(330px,100%)}.deduction-people-table{overflow:hidden;border:1px solid var(--line);border-radius:17px;background:#fff}.deduction-person-row{width:100%;display:grid;grid-template-columns:1.7fr .7fr .8fr .7fr 24px;gap:12px;align-items:center;padding:13px 15px;border:0;border-bottom:1px solid var(--line);color:var(--ink);background:#fff;text-align:left}.deduction-person-row:last-child{border-bottom:0}.deduction-person-row:not(.heading):hover{background:#f6f8f2}.deduction-person-row.heading{color:#89938b;background:#fafaf6;font-size:8px;font-weight:850;letter-spacing:.1em;text-transform:uppercase}.deduction-person-row span b,.deduction-person-row span small{display:block}.deduction-person-row span b{font-size:11px}.deduction-person-row span small{margin-top:3px;color:#829087;font-size:9px}.deduction-person-row strong{font-size:11px}.deduction-person-row .person-total{color:#173c33;font-size:13px}.deduction-person-row>i{font-style:normal;color:#91a097}.cycle-modal{max-width:720px}.person-detail-modal{width:min(780px,calc(100vw - 30px));max-width:780px}.person-total-strip{display:flex;align-items:center;justify-content:space-between;margin:20px 0;padding:16px 18px;border-radius:15px;color:#fff;background:#123c32}.person-total-strip span{font-size:10px}.person-total-strip strong{color:var(--menu-lime);font-size:22px}.modal-detail-list{max-height:52vh;overflow:auto;padding-right:4px}

@media(max-width:1050px){.cycle-form{grid-template-columns:1fr 1fr}.deduction-admin-metrics{grid-template-columns:1fr 1fr}.unified-total{grid-column:1/-1}.deduction-person-row{grid-template-columns:1.4fr .7fr .8fr .7fr 20px}}
@media(max-width:760px){.app-shell:not(.admin-shell) .main-nav{grid-template-columns:repeat(3,1fr)}.app-shell:not(.admin-shell) .nav-item{padding:7px 5px;gap:4px}.balance-hero{min-height:200px;padding:28px 24px}.balance-hero h2{font-size:47px}.balance-hero-icon{width:76px;height:76px;margin-right:0;border-radius:24px;font-size:34px}.deduction-source-grid{grid-template-columns:1fr;margin-bottom:20px}.deduction-source-grid article{padding:14px 16px}.deduction-detail-row{grid-template-columns:38px 1fr auto;padding:11px;gap:9px}.source-mark{width:36px;height:36px}.deduction-detail-main>div{display:block}.deduction-detail-main span{display:block;margin-top:2px}.deduction-admin-header{align-items:flex-start;flex-direction:column;gap:17px;padding:22px}.cycle-empty-card{grid-template-columns:1fr;padding:22px}.cycle-control-head{align-items:flex-start;flex-direction:column}.cycle-form{grid-template-columns:1fr}.cycle-closed-actions{align-items:stretch;flex-direction:column}.deduction-admin-metrics{grid-template-columns:1fr}.unified-total{grid-column:auto}.deduction-people-section .section-heading{align-items:stretch;flex-direction:column}.compact-search{width:100%}.deduction-people-table{overflow:auto}.deduction-person-row{min-width:620px}.person-detail-modal{padding:22px 17px}}
