:root { color: #162d29; background: #f0f5f3; font-family: "Segoe UI", system-ui, sans-serif; font-size: 16px; color-scheme: light; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(1.8rem, 4vw, 2.65rem); line-height: 1.2; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.05rem; }
p { color: #536963; margin-block-start: .35rem; line-height: 1.5; }
button, input, select, textarea, .button { font: inherit; }
button, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: .47rem .8rem; border: 1px solid #b9cec6; border-radius: .55rem; background: #fff; color: #21423a; font-weight: 650; text-align: center; text-decoration: none; cursor: pointer; }
button:hover, .button:hover { background: #e9f3ee; }
button:disabled { opacity: .52; cursor: default; }
button.primary, .button.primary { color: #fff; background: #00654c; border-color: #00654c; }
button.primary:hover, .button.primary:hover { background: #00563e; }
:focus-visible, .upload:focus-within { outline: 3px solid #1a86b0; outline-offset: 3px; }
input, select, textarea { min-height: 42px; padding: .45rem .6rem; border: 1px solid #9db7ad; border-radius: .5rem; background: white; color: #162d29; }
label { display: block; color: #3e5b54; font-weight: 600; }
.sign-in { min-height: 100vh; display: grid; place-items: center; padding: 1.2rem; }
.login-card { width: min(100%, 440px); padding: 2rem; }
.login-card h1 { margin-block-start: .7rem; }
.login-card form { display: grid; gap: .55rem; margin-block-start: 1rem; }
.panel { background: #fff; border: 1px solid #d8e6df; border-radius: .9rem; box-shadow: 0 3px 12px #264c3c09; }
.logo { width: max-content; font-size: 1.7rem; font-weight: 900; letter-spacing: -.06em; }
.logo span { color: #2fbe91; margin-inline-start: .12rem; }
.shell { min-height: 100vh; display: grid; grid-template-columns: 220px minmax(0, 1fr); }
.sidebar { display: flex; flex-direction: column; min-width: 0; background: #12332c; color: white; padding: 1.65rem 1rem; }
.side-caption { color: #c4d9d3; font-size: .91rem; margin: .2rem 0 1.7rem; }
.sidebar nav { display: grid; gap: .4rem; }
.sidebar button { justify-content: space-between; gap: .45rem; color: #d9e9e4; background: transparent; border-color: transparent; padding-inline: .72rem; text-align: start; }
.sidebar button:hover, .sidebar button[aria-current] { background: #26564b; color: #fff; }
.sidebar button span { background: #3a6b5f; padding-inline: .37rem; border-radius: .35rem; min-width: 1.5rem; text-align: center; color: white; }
.side-footer { margin-block-start: auto; padding-block-start: 1rem; display: grid; gap: .45rem; color: #c4d9d3; font-size: .86rem; }
.side-footer button { width: max-content; }
.main { width: min(100%, 1480px); margin-inline: auto; padding: clamp(.8rem, 3vw, 2.15rem); }
.page-header, .operations, .list-top, .list-tools { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.day-field { display: grid; gap: .27rem; }
.day-field label { font-size: .9rem; }
.stats { margin-block: 1.25rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
.metric { display: grid; justify-content: stretch; min-height: 100px; text-align: start; padding: .85rem 1rem; border-color: #d4e3dc; }
.metric span { color: #49635c; font-size: .95rem; font-weight: 600; }
.metric strong { font-size: 1.9rem; font-variant-numeric: tabular-nums; line-height: 1; }
.metric.amber strong { color: #875210; }
.metric.green strong { color: #00644b; }
.metric[aria-pressed="true"] { border-color: #007757; box-shadow: inset 0 0 0 1px #007757; }
.operations { padding: 1rem; margin-block-end: 1.1rem; }
.operations p, .list-top p { font-size: .91rem; }
.actions { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.upload { position: relative; }
.upload input { width: 100%; height: 100%; position: absolute; inset: 0; opacity: 0; cursor: pointer; min-height: 0; }
.feedback { padding: .6rem .8rem; margin-block: .7rem; border: 1px solid #b4d9c8; border-radius: .5rem; background: #eaf7f0; color: #194f42; }
.feedback[data-error="true"], .danger-text { color: #921e2e; }
.feedback[data-error="true"] { border-color: #e2a9ae; background: #fff0f1; }
.work-list { overflow: hidden; }
.list-top, .list-tools { padding: .9rem 1rem; }
.list-top { border-block-end: 1px solid #e2ede8; }
.list-tools { justify-content: flex-end; }
.segments { display: flex; flex-wrap: wrap; gap: .35rem; margin-inline-end: auto; }
.segments button { gap: .3rem; }
.segments button[aria-pressed="true"] { color: #00624b; background: #e5f4ed; border-color: #3f987c; }
.search-label { display: flex; align-items: center; gap: .45rem; }
.search-label input { width: min(67vw, 250px); }
.table-wrap { overflow-x: auto; }
table { width: 100%; min-width: 740px; border-collapse: collapse; text-align: start; }
th, td { padding: .7rem .8rem; text-align: start; }
th { background: #edf5f1; color: #31564b; font-size: .9rem; }
td { border-block-end: 1px solid #ebf1ee; }
td strong { display: block; overflow-wrap: anywhere; }
td small { display: block; margin-block-start: .18rem; color: #506960; font-size: .83rem; }
td .phone, td .voucher { text-align: right; }
td .badge { display: inline-block; font-size: .83rem; font-weight: 650; padding: .2rem .48rem; border-radius: .4rem; background: #edf2f0; color: #3b554c; }
td .badge.waiting { background: #fff1df; color: #795014; }
td .badge.success { background: #e2f5eb; color: #06553e; }
td .badge.error { background: #fce7ea; color: #8c2333; }
.empty { padding: 1.65rem; text-align: center; color: #526d63; }
.pager { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: .5rem; padding: .75rem 1rem; color: #45675c; }
dialog { width: min(590px, calc(100% - 24px)); max-height: 90vh; overflow: auto; padding: 1.2rem; border: 1px solid #a6c4b7; border-radius: .8rem; color: #162d29; }
dialog::backdrop { background: #132e29a6; }
.dialog-head { display: flex; justify-content: space-between; align-items: start; gap: .8rem; }
.order-data { margin-block: .8rem; display: grid; gap: .35rem; background: #eef5f1; padding: .7rem; border-radius: .55rem; }
.order-data a { color: #00634c; }
.dialog-section { margin-block-start: 1rem; border-block-start: 1px solid #deebe4; padding-block-start: .8rem; }
.dialog-section h3 { margin-block-end: .55rem; }
.mini-form { display: grid; gap: .35rem; margin-block-start: .65rem; }
.mini-form button { justify-self: start; }
.mini-form label input, .mini-form label textarea, #link-value { display: block; width: 100%; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
#copy-fallback { margin-block-start: .55rem; }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { padding: .65rem 1rem; }
  .side-caption { margin: .1rem 0 .45rem; }
  .sidebar nav { display: flex; flex-wrap: wrap; }
  .side-footer { padding: .35rem 0; display: flex; justify-content: space-between; align-items: center; }
}
@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr 1fr; gap: .55rem; }
  .metric { min-height: 89px; }
}
