/* पंचांग चार्ट — रंग: नील स्याही, हल्दी, सिन्दूर */
:root {
  --ink: #22306b;        /* नील स्याही — शीर्षक, मुख्य पाठ */
  --ink-soft: #5b6478;   /* स्वतः भरे खाने */
  --paper: #ffffff;
  --rule: #d9deea;
  --stripe: #f4f6fb;
  --haldi: #e2a31a;      /* भरने वाले खाने की पहचान */
  --haldi-bg: #fff7e0;
  --sindoor: #a61b1b;    /* पर्व */
  --ok: #1f7a4a;
  --font: 'Noto Sans Devanagari', 'Nirmala UI', 'Mangal', sans-serif;
  --display: 'Tiro Devanagari Hindi', 'Noto Serif Devanagari', serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.55; }
a { color: var(--ink); }
:focus-visible { outline: 2px solid var(--haldi); outline-offset: 1px; }

/* ---------- हेडर: बाएँ चिह्न + "अष्टांग चार्ट", दाएँ मेनू ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap;
  padding: .7rem 1.5rem; background: #fff; }
.brand { display: flex; align-items: center; gap: .9rem; text-decoration: none; color: var(--ink); }
.brand-logo { width: 58px; height: 58px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--display); font-size: 1.85rem; letter-spacing: .01em; }
.brand-sub { font-size: .8rem; color: var(--ink-soft); margin-top: .15rem; }
.mainnav { display: flex; gap: .3rem; flex-wrap: wrap; background: var(--stripe); padding: .3rem; border-radius: 999px; }
.mainnav a { text-decoration: none; color: var(--ink); padding: .38rem 1rem; border-radius: 999px; font-size: .95rem; transition: background .15s, color .15s; }
.mainnav a:hover { background: #fff; }
.mainnav a.active { background: var(--ink); color: #fff; }
/* चिह्न के रंगों वाली पट्टी: नीला, केसरिया, सिन्दूरी */
.topbar-strip { height: 4px; background: linear-gradient(90deg, var(--ink) 0 34%, #f08a3c 34% 67%, #d9372a 67% 100%); }
@media (max-width: 700px) {
  .topbar { padding: .6rem .9rem; }
  .brand-logo { width: 46px; height: 46px; }
  .brand-name { font-size: 1.45rem; }
  .mainnav { width: 100%; justify-content: space-between; }
  .mainnav a { padding: .35rem .6rem; font-size: .88rem; }
}
main { padding: 1.5rem; max-width: 1100px; margin: 0 auto; }
main.wide { max-width: none; padding: 0 1rem 2rem; }
.narrow { max-width: 640px; }

.title { font-family: var(--display); font-weight: 400; font-size: 2rem; margin: 0 0 .3rem; line-height: 1.25; }
.title.small { font-size: 1.4rem; }
.muted { color: var(--ink-soft); }
.error { color: var(--sindoor); font-weight: 600; }
.nowrap { white-space: nowrap; }

.home { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: 3rem; align-items: start; }
@media (max-width: 800px) { .home { grid-template-columns: 1fr; } }
.stack { display: grid; gap: 1rem; margin-top: 1rem; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
label { display: grid; gap: .25rem; font-weight: 600; font-size: .9rem; }
input { font: inherit; color: inherit; padding: .45rem .55rem; border: 1px solid var(--rule); border-radius: 4px; background: #fff; }
input:focus { border-color: var(--haldi); outline: none; box-shadow: 0 0 0 2px var(--haldi-bg); }

.btn { display: inline-block; font: inherit; font-weight: 600; padding: .5rem 1rem; border: 1px solid var(--ink); border-radius: 4px; background: #fff; color: var(--ink); text-decoration: none; cursor: pointer; }
.btn.primary { background: var(--ink); color: #fff; }
.btn:disabled { opacity: .5; cursor: wait; }
.link { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: underline; }
.danger { color: var(--sindoor); }

table.list { width: 100%; border-collapse: collapse; margin-top: .8rem; }
table.list th, table.list td { text-align: left; padding: .55rem .5rem; border-bottom: 1px solid var(--rule); }
table.list th { font-size: .85rem; color: var(--ink-soft); font-weight: 600; }
.actions { display: flex; gap: 1rem; align-items: center; }
.actions form { margin: 0; }

/* चार्ट पेज */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; padding: 1rem 0; }
.toolbar.sticky { position: sticky; top: 0; z-index: 5; background: var(--paper); border-bottom: 1px solid var(--rule); }
.toolbar .grow { flex: 1 1 280px; }
.tools { display: flex; gap: .5rem; flex-wrap: wrap; }
.title-input { font-family: var(--display); font-size: 1.6rem; border: 0; border-bottom: 1px dashed var(--rule); border-radius: 0; padding: 0; width: 100%; max-width: 420px; }
.kruti-toggle { display: flex; align-items: center; gap: .4rem; font-weight: 400; }
.status { font-size: .9rem; min-width: 12rem; }
.status.ok { color: var(--ok); }
.status.warn { color: #8a5a00; }
.status.err { color: var(--sindoor); font-weight: 600; }
.help { margin: .6rem 0 1rem; max-width: 900px; color: var(--ink-soft); }
.help summary { cursor: pointer; color: var(--ink); font-weight: 600; }

.sheet-wrap { overflow: auto; max-height: calc(100vh - 150px); border: 1px solid var(--rule); }
table.sheet { border-collapse: collapse; font-size: 13px; width: max-content; min-width: 100%; }
table.sheet th, table.sheet td { border: 1px solid var(--rule); padding: .2rem .35rem; white-space: nowrap; vertical-align: middle; }
table.sheet thead th { position: sticky; top: 0; background: var(--ink); color: #fff; font-weight: 600; z-index: 2; }
table.sheet thead tr.caption th { position: static; background: #fff; color: var(--ink); text-align: center; border: 0; padding: .6rem; }
.cap-title { font-family: var(--display); font-size: 1.5rem; }
.cap-range { font-size: .95rem; }
table.sheet tbody tr:nth-child(even) { background: var(--stripe); }
table.sheet tbody tr.sun .c-din { color: var(--sindoor); font-weight: 600; }
table.sheet td { color: var(--ink-soft); }
table.sheet tbody .c-eng_date { font-weight: 600; color: var(--ink); }
table.sheet tbody .c-parva { color: var(--sindoor); white-space: normal; min-width: 12rem; }
table.sheet tbody .c-tithi_nitya { color: var(--ink); }

/* भरने वाली ग्रिड */
.grid tbody th.c-eng_date { position: sticky; left: 0; background: #fff; z-index: 1; text-align: left; }
.grid thead th.c-eng_date { left: 0; z-index: 3; }
.grid thead th.t-manual { background: #7a5a0f; }
.grid td.in { background: var(--haldi-bg); padding: 0; }
.grid td.in input { border: 0; border-radius: 0; background: transparent; padding: .25rem .35rem; font-size: 13px; width: 100%; min-width: 3.2rem; }
.grid td.in input:focus { background: #fff; box-shadow: inset 0 0 0 2px var(--haldi); }
.grid td.c-parva { padding: 0; }
.grid td.c-parva .pv { display: flex; align-items: center; gap: .3rem; padding-left: .35rem; }
.grid .auto-parva { white-space: nowrap; }
.grid .auto-parva:empty { display: none; }
.grid tr.dirty th.c-eng_date { box-shadow: inset 4px 0 0 var(--haldi); }

.grid td.calc.bad { color: var(--sindoor); font-weight: 600; background: #fdecec; }

/* पेज-वार तालिका (देखें पेज) — हर 18 संख्या का अलग खंड */
table.sheet.page { margin-bottom: 1.2rem; }
table.sheet thead tr.pagehead th { position: static; background: #fff; color: var(--ink); border: 0; padding: .6rem .3rem .4rem; }
.ph { display: flex; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap; font-weight: 600; font-size: 14px; }
table.sheet thead tr.colhead th { top: 0; }
table.sheet tbody tr.has-parva td { color: var(--sindoor); }
.meta-fields { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: .4rem; }
.meta-fields label { display: flex; align-items: center; gap: .4rem; font-weight: 400; }
.meta-fields input { padding: .2rem .4rem; }
table.sheet tbody tr.has-parva td.c-eng_date, table.sheet tbody tr.has-parva td.c-tithi_nitya { color: var(--sindoor); }

/* ---------- हिन्दी ड्रॉपडाउन विजेट (भरने वाली ग्रिड) ---------- */
.grid td.in select { font: inherit; font-size: 13px; color: inherit; border: 0; background: transparent; padding: .2rem .15rem; max-width: 9rem; }
.grid td.in select:focus, .grid td.in .num:focus { background: #fff; box-shadow: inset 0 0 0 2px var(--haldi); outline: none; }
.grid .combo { display: flex; align-items: center; white-space: nowrap; }
.grid .combo .slash { padding: 0 .1rem; color: var(--ink-soft); }
.grid .combo .num { border: 0; background: transparent; font: inherit; font-size: 13px; width: 4.6rem; min-width: 0; padding: .25rem .3rem; }
.grid td.c-mas { position: relative; padding-right: 10px; }
.grid td.c-tithi { position: relative; padding-right: 10px; }
.grid td.c-mas .fill, .grid td.c-tithi .fill { position: absolute; right: 1px; bottom: 1px; width: 8px; height: 8px; background: var(--ink); cursor: ns-resize; border: 1px solid #fff; }
.grid td.fill-mark { box-shadow: inset 0 0 0 2px var(--ink); background: #e8ecf8; }
body.filling, body.filling * { cursor: ns-resize !important; user-select: none; }
.grid .pv select.addp { max-width: 6.5rem; color: var(--ink-soft); }
.notice { background: var(--haldi-bg); border-left: 4px solid var(--haldi); padding: .5rem .8rem; }
.inline-form { display: flex; gap: .5rem; margin: .8rem 0; }
.inline-form input { flex: 1; }
.rule-form { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .8rem 0 1rem; }
.rule-form select, .rule-form input { font: inherit; padding: .4rem .5rem; border: 1px solid var(--rule); border-radius: 4px; }
.rule-form input[name="tithi"] { width: 5rem; }
.chk { display: flex; flex-direction: row; align-items: center; gap: .3rem; font-weight: 400; }

.ok-t { color: var(--ok); font-weight: 600; }
.bad-t { color: var(--sindoor); font-weight: 600; }
.warn-box { background: #fdecec; padding: .6rem .8rem; border-left: 4px solid var(--sindoor); }

/* ================= डैशबोर्ड ================= */
main.dash { max-width: 1180px; }
.db-top { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.5rem; margin: .5rem 0 2rem; }
@media (max-width: 900px) { .db-top { grid-template-columns: 1fr; } }
.db-today { background: var(--ink); color: #fff; border-radius: 10px; padding: 1.4rem 1.6rem; position: relative; overflow: hidden; }
.db-today::after { content: "ॐ"; position: absolute; right: -.5rem; bottom: -2.6rem; font-family: var(--display); font-size: 11rem; line-height: 1; color: rgba(255,255,255,.06); pointer-events: none; }
.db-label { font-size: .8rem; letter-spacing: .08em; color: var(--haldi); font-weight: 600; }
.db-date { font-family: var(--display); font-size: 2.4rem; line-height: 1.2; }
.db-date span { font-size: 1.1rem; opacity: .8; margin-left: .4rem; }
.db-heading { font-size: .92rem; opacity: .9; margin: .4rem 0 1rem; max-width: 46rem; }
.db-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem 1.2rem; margin: 0; }
.db-facts div { border-top: 1px solid rgba(255,255,255,.18); padding-top: .4rem; }
.db-facts dt { font-size: .75rem; opacity: .7; }
.db-facts dd { margin: 0; font-weight: 600; font-size: 1.02rem; }
.db-parva { margin-top: 1rem; background: var(--haldi); color: #2b1d00; display: inline-block; padding: .3rem .8rem; border-radius: 999px; font-size: .92rem; }
.db-stats { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.db-stat { border: 1px solid var(--rule); border-radius: 10px; padding: 1rem 1.1rem; text-decoration: none; display: flex; flex-direction: column; justify-content: space-between; transition: border-color .15s, transform .15s; }
.db-stat:hover { border-color: var(--ink); transform: translateY(-2px); }
.db-stat b { font-family: var(--display); font-size: 2.3rem; font-weight: 400; line-height: 1; }
.db-stat span { color: var(--ink-soft); font-size: .9rem; margin-top: .4rem; }
.db-section { margin: 0 0 2.2rem; }
.db-section > .title { border-bottom: 1px solid var(--rule); padding-bottom: .4rem; margin-bottom: 1rem; }
.db-new { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr auto; gap: .8rem; align-items: end; }
@media (max-width: 900px) { .db-new { grid-template-columns: 1fr 1fr; } }
.db-new label { font-size: .85rem; }
.db-charts td { vertical-align: middle; }
.db-fill { min-width: 9rem; }
.db-fill .bar { height: 6px; background: var(--stripe); border-radius: 3px; overflow: hidden; margin-bottom: .2rem; }
.db-fill .bar span { display: block; height: 100%; background: var(--haldi); }
.db-fill small, .small { color: var(--ink-soft); font-size: .8rem; }
.db-group { font-family: var(--font); font-size: .85rem; color: var(--ink-soft); font-weight: 600; margin: 1.2rem 0 .6rem; }
.db-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .8rem; }
.db-card { display: flex; align-items: center; gap: .9rem; border: 1px solid var(--rule); border-radius: 10px; padding: .8rem 1rem; text-decoration: none; background: #fff; transition: border-color .15s, box-shadow .15s; }
.db-card:hover { border-color: var(--ink); box-shadow: 0 4px 14px rgba(34,48,107,.08); }
.db-akshar { flex: none; width: 2.6rem; height: 2.6rem; border-radius: 8px; background: var(--haldi-bg); border: 1px solid var(--haldi); display: grid; place-items: center; font-family: var(--display); font-size: 1.25rem; color: var(--ink); }
.db-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.db-card-body small { color: var(--ink-soft); font-size: .8rem; line-height: 1.35; }
.db-count { font-family: var(--display); font-size: 1.5rem; color: var(--ink-soft); }

/* मास्टर पेज */
.crumbs { margin: 0 0 .4rem; }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.box-note { background: var(--stripe); border-left: 4px solid var(--ink); padding: .6rem .9rem; margin: .8rem 0 1rem; max-width: 60rem; }
.master-table { max-width: 760px; }
.master-table td { padding: .3rem .5rem; }
.master-table td.c, .master-table th.c { text-align: center; width: 3rem; }
.row-form { display: inline-flex; gap: .4rem; align-items: center; }
.row-form input[name="name"] { width: 18rem; }
.row-form input.kram, .inline-form input.kram { width: 5.5rem; flex: none; }
.row-del { display: inline-block; margin-left: .8rem; }
.small-btn { padding: .25rem .7rem; font-size: .85rem; }

/* ---------- नया चार्ट: डैशबोर्ड का सबसे प्रमुख हिस्सा ---------- */
.db-create { margin: .8rem 0 1.8rem; padding: 1.4rem 1.6rem 1.5rem; border-radius: 12px;
  background: linear-gradient(135deg, #fff7e0 0%, #ffe9c2 100%); border: 2px solid #f08a3c;
  box-shadow: 0 6px 20px rgba(240, 138, 60, .18); position: relative; overflow: hidden; }
.db-create::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px;
  background: linear-gradient(180deg, #f08a3c, #d9372a); }
.db-create-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.1rem; }
.db-create-icon { flex: none; width: 3rem; height: 3rem; border-radius: 50%; background: #d9372a; color: #fff;
  display: grid; place-items: center; font-size: 2rem; font-weight: 600; line-height: 1; box-shadow: 0 3px 8px rgba(217,55,42,.35); }
.db-create-title { font-family: var(--display); font-weight: 400; font-size: 2rem; color: var(--ink); margin: 0; line-height: 1.2; }
.db-create-hint { margin: .15rem 0 0; color: #6b4a12; font-size: .92rem; }
.db-create-error { background: #fff; color: var(--sindoor); font-weight: 600; border-left: 4px solid var(--sindoor); padding: .5rem .8rem; margin: 0 0 1rem; }
.db-create .db-new label { font-size: .9rem; color: #5a3d06; }
.db-create .db-new input { background: #fff; border: 1.5px solid #e8b46a; padding: .65rem .7rem; font-size: 1rem; border-radius: 6px; }
.db-create .db-new input:focus { border-color: #d9372a; box-shadow: 0 0 0 3px rgba(217,55,42,.15); }
.db-create-btn { background: #d9372a; border-color: #d9372a; color: #fff; padding: .72rem 1.4rem; font-size: 1.05rem; border-radius: 6px;
  box-shadow: 0 3px 10px rgba(217,55,42,.3); transition: transform .12s, box-shadow .12s, background .12s; }
.db-create-btn:hover { background: #b92a1f; transform: translateY(-1px); box-shadow: 0 5px 14px rgba(217,55,42,.35); }
@media (max-width: 700px) { .db-create { padding: 1.1rem 1rem 1.2rem 1.4rem; } .db-create-title { font-size: 1.6rem; } }

/* ---------- खंड शीर्षक ---------- */
.db-sec-head { display: flex; align-items: center; gap: .8rem; margin: 0 0 1.2rem; }
.db-sec-title { font-family: var(--display); font-weight: 400; font-size: 2rem; margin: 0; color: var(--ink); position: relative; padding-bottom: .3rem; }
.db-sec-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 3.5rem; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, #f08a3c, #d9372a); }
.db-sec-count { background: var(--ink); color: #fff; border-radius: 999px; padding: .1rem .75rem; font-weight: 600; font-size: .95rem; }
.db-empty { font-size: 1.05rem; color: var(--ink-soft); background: var(--stripe); padding: 1.2rem; border-radius: 10px; }

/* ---------- सहेजे गए चार्ट: कार्ड ---------- */
.cc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(440px, 1fr)); gap: 1.2rem; }
@media (max-width: 520px) { .cc-grid { grid-template-columns: 1fr; } }
.cc { background: #fff; border: 1px solid var(--rule); border-top: 5px solid var(--ink); border-radius: 12px; padding: 1.3rem 1.4rem 1.2rem;
  box-shadow: 0 4px 16px rgba(34,48,107,.07); transition: transform .15s, box-shadow .15s; }
.cc:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(34,48,107,.13); }
.cc.cc-done { border-top-color: #1f7a4a; }
.cc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.cc-title { font-family: var(--display); font-size: 1.7rem; color: var(--ink); text-decoration: none; line-height: 1.2; }
.cc-title:hover { color: #d9372a; }
.cc-dates { font-size: 1.12rem; font-weight: 600; color: #333a55; margin-top: .25rem; }
.cc-dates span { font-weight: 400; color: var(--ink-soft); }
.cc-badge { flex: none; background: var(--haldi-bg); border: 1px solid #f0b45c; color: #7a4a00; border-radius: 999px; padding: .3rem .85rem; font-size: .9rem; font-weight: 600; }
.cc-progress { margin: 1.1rem 0 1.1rem; }
.cc-bar { height: 12px; background: #eef0f6; border-radius: 6px; overflow: hidden; }
.cc-bar span { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #f08a3c, #d9372a); }
.cc-done .cc-bar span { background: linear-gradient(90deg, #2e9e62, #1f7a4a); }
.cc-pct { margin-top: .4rem; font-size: .98rem; color: var(--ink-soft); }
.cc-pct b { color: var(--ink); font-size: 1.1rem; }
.cc-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; border-top: 1px dashed var(--rule); padding-top: 1rem; }
.cc-actions form { margin: 0; margin-left: auto; }
.cc-btn { display: inline-block; font: inherit; font-size: 1rem; font-weight: 600; padding: .5rem 1rem; border-radius: 8px; border: 1.5px solid var(--ink);
  color: var(--ink); background: #fff; text-decoration: none; cursor: pointer; transition: background .12s, color .12s; }
.cc-btn:hover { background: var(--stripe); }
.cc-primary { background: var(--ink); color: #fff; }
.cc-primary:hover { background: #18225a; color: #fff; }
.cc-danger { border-color: #e3a4a4; color: var(--sindoor); }
.cc-danger:hover { background: #fdecec; }

/* ---------- मास्टर: बड़े कार्ड ---------- */
.mc-group { font-family: var(--font); font-size: 1.15rem; font-weight: 600; margin: 1.6rem 0 .9rem; display: flex; align-items: center; gap: .6rem; }
.mc-group::before { content: ""; width: 12px; height: 12px; border-radius: 3px; }
.mc-group.mc-g0 { color: #b5541a; } .mc-group.mc-g0::before { background: #f08a3c; }
.mc-group.mc-g1 { color: var(--ink); } .mc-group.mc-g1::before { background: var(--ink); }
.mc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.1rem; }
.mc { position: relative; display: flex; flex-direction: column; gap: .35rem; text-decoration: none; color: var(--ink);
  border-radius: 14px; padding: 1.3rem 1.3rem 1.1rem; min-height: 190px; overflow: hidden;
  border: 1px solid var(--rule); background: #fff; transition: transform .15s, box-shadow .15s, border-color .15s; }
.mc:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(34,48,107,.14); }
.mc.mc-g0 { background: linear-gradient(160deg, #fff 55%, #fff1df 100%); }
.mc.mc-g0:hover { border-color: #f08a3c; }
.mc.mc-g1 { background: linear-gradient(160deg, #fff 55%, #eef1fb 100%); }
.mc.mc-g1:hover { border-color: var(--ink); }
.mc-akshar { width: 3.6rem; height: 3.6rem; border-radius: 12px; display: grid; place-items: center;
  font-family: var(--display); font-size: 1.8rem; color: #fff; box-shadow: 0 4px 10px rgba(0,0,0,.12); }
.mc-g0 .mc-akshar { background: linear-gradient(135deg, #f08a3c, #d9372a); }
.mc-g1 .mc-akshar { background: linear-gradient(135deg, #3b4c9a, var(--ink)); }
.mc-count { position: absolute; top: 1rem; right: 1.2rem; font-family: var(--display); font-size: 2.6rem; line-height: 1; opacity: .9; }
.mc-g0 .mc-count { color: #d9372a; }
.mc-title { font-size: 1.25rem; margin-top: .6rem; }
.mc-desc { color: var(--ink-soft); font-size: .92rem; line-height: 1.45; flex: 1; }
.mc-go { font-size: .9rem; font-weight: 600; opacity: 0; transform: translateX(-4px); transition: opacity .15s, transform .15s; }
.mc:hover .mc-go { opacity: 1; transform: none; }
.mc-g0 .mc-go { color: #d9372a; }

/* ---------- Excel से भरें ---------- */
.btn-excel { border-color: #1f7a4a; color: #1f7a4a; }
.btn-excel:hover { background: #eaf6ef; }
.x-dialog { border: 0; border-radius: 12px; padding: 1.4rem 1.6rem; width: min(640px, 92vw); box-shadow: 0 20px 50px rgba(0,0,0,.25); color: var(--ink); }
.x-dialog::backdrop { background: rgba(20, 26, 60, .45); }
.x-h { font-size: .95rem; margin: 1rem 0 .4rem; }
.x-cols { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.x-summary { background: var(--stripe); border-radius: 8px; padding: .8rem 1rem .8rem 2rem; margin: 1rem 0 .6rem; line-height: 1.8; }
.x-actions { display: flex; justify-content: flex-end; gap: .6rem; margin-top: .8rem; }
.x-quick { display: flex; gap: 1.2rem; margin-top: .5rem; font-size: .9rem; }