/* Free business tools (membr.id/alat). Builds on seo.css variables. */
.crumbs { font-size: 14px; color: var(--muted); margin: 0 0 14px; }
.crumbs a { color: var(--accent-d); text-decoration: none; }
.tool-hero { padding: 40px 0 8px; }
.tool-hero h1 { max-width: 26ch; }
.tool { padding: 12px 0 36px; }
.tool-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: 0 14px 36px -24px rgba(70,40,25,.35); }
.tool-grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
.tool-grid > *, .row2 > *, .row3 > *, .line > * { min-width: 0; }
.line input { min-width: 0; }
@media (min-width: 900px) { .tool-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: start; } .sticky-col { position: sticky; top: 84px; } }
@media (min-width: 900px) { .tool-grid.wide { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); } }
.tool h2.sub { font-family: var(--sans); font-weight: 700; font-size: 17px; margin: 0 0 12px; }
.fld { display: block; margin: 0 0 14px; }
.fld > span { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.fld small { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; font-weight: 400; }
.fld input, .fld select, .fld textarea { width: 100%; font: 500 16px var(--sans); color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.fld textarea { min-height: 72px; resize: vertical; }
.row2 { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.row3 { display: grid; gap: 12px; grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 560px) { .row3 { grid-template-columns: 1fr 1fr; } }
.inp-pre { position: relative; }
.inp-pre > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--muted); font-weight: 600; pointer-events: none; }
.inp-pre > input { padding-left: 44px; }
.inp-suf { position: relative; }
.inp-suf > i { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--muted); font-weight: 600; pointer-events: none; }
.inp-suf > input { padding-right: 40px; }
.lines { display: grid; gap: 10px; margin-bottom: 10px; }
.line { display: grid; gap: 8px; grid-template-columns: 1.4fr 1fr 40px; align-items: center; }
.line.it { grid-template-columns: 1.6fr .6fr 1fr 40px; }
.line input { width: 100%; font: 500 15px var(--sans); background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; color: var(--ink); }
.line button, .btn-line { font: 600 14px var(--sans); background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; cursor: pointer; color: var(--ink); }
.line button { padding: 9px 0; color: var(--muted); }
.btn-line:hover, .line button:hover { border-color: var(--accent); color: var(--accent-d); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.btn-fill { font: 700 15px var(--sans); background: var(--accent); color: #fff; border: 0; border-radius: 12px; padding: 12px 20px; cursor: pointer; }
.btn-fill:hover { background: var(--accent-d); }
.seg { display: inline-flex; background: var(--soft); border-radius: 12px; padding: 4px; gap: 4px; margin-bottom: 16px; }
.seg button { font: 600 14px var(--sans); border: 0; background: transparent; padding: 9px 16px; border-radius: 9px; cursor: pointer; color: var(--muted); }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.result { background: var(--soft); border-radius: 16px; padding: 18px; }
.result .big { font-family: var(--serif); font-size: clamp(34px, 5vw, 46px); line-height: 1.1; margin: 4px 0 2px; color: var(--accent-d); }
.result .cap { color: var(--muted); font-size: 14px; margin: 0; }
.kv { display: grid; gap: 0; margin-top: 14px; }
.kv > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 15px; }
.kv > div b { font-weight: 700; text-align: right; }
.kv > div.neg b { color: #B3261E; }
.kv > div.pos b { color: #1B7F4B; }
.warn { background: #FFF3E0; border: 1px solid #F2C48D; color: #7A4A0C; border-radius: 12px; padding: 10px 14px; font-size: 14.5px; margin-top: 12px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; margin-top: 10px; }
.tbl th, .tbl td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: right; }
.tbl th:first-child, .tbl td:first-child { text-align: left; }
.tbl th { color: var(--muted); font-weight: 600; font-size: 13px; }
.explain h2 { margin-top: 8px; }
.explain p, .explain li { color: var(--ink); }
.explain .formula { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 10px; padding: 12px 16px; font-weight: 600; margin: 12px 0; }
.explain table { border-collapse: collapse; width: 100%; font-size: 15px; background: #fff; border-radius: 12px; overflow: hidden; }
.explain th, .explain td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.cta-box { background: var(--ink); color: #fff; border-radius: 20px; padding: 28px 24px; text-align: center; }
.cta-box h2 { color: #fff; margin-bottom: 8px; }
.cta-box p { color: rgba(255,255,255,.78); margin: 0 auto 16px; max-width: 52ch; }
.cta-box .btn { background: var(--accent); }
.tools-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.tools-grid a { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px; text-decoration: none; display: block; transition: transform .15s, border-color .2s; }
.tools-grid a:hover { transform: translateY(-2px); border-color: var(--accent); }
.tools-grid b { display: block; font-size: 18px; margin-bottom: 6px; }
.tools-grid span { color: var(--muted); font-size: 15px; }
.tools-grid em { display: inline-block; margin-top: 10px; font-style: normal; font-weight: 600; font-size: 14px; color: var(--accent-d); }
.privacy-note { color: var(--muted); font-size: 14px; margin: 14px 0 0; }

/* Dropdown in the shared header (all pages that use seo.css) */
.dd { position: relative; }
.dd > button { font: inherit; font-size: 15px; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0; display: inline-flex; align-items: center; gap: 4px; }
.dd > button::after { content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.dd-panel { display: none; position: absolute; top: calc(100% + 10px); right: -8px; min-width: 290px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 8px; box-shadow: 0 24px 50px -20px rgba(43,34,31,.35); z-index: 20; }
.dd:hover .dd-panel, .dd:focus-within .dd-panel, .dd.open .dd-panel { display: block; }
.dd-panel a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--ink) !important; text-decoration: none; font-size: 15px; }
.dd-panel a:hover { background: var(--soft); }
.dd-panel a b { display: block; font-size: 15px; }
.dd-panel a span { display: block; font-size: 13px; color: var(--muted); }

/* Printable documents (invoice, kwitansi) */
.doc-wrap { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0; overflow-x: auto; }
.doc { background: #fff; color: #1d1411; padding: 28px 28px; min-width: 500px; font-size: 13.5px; line-height: 1.5; }
.doc h3 { font-size: 22px; letter-spacing: .04em; margin: 0; }
.doc .doc-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; border-bottom: 2px solid #1d1411; padding-bottom: 14px; margin-bottom: 14px; }
.doc .doc-biz { display: flex; gap: 12px; align-items: center; }
.doc .doc-biz img { max-height: 54px; max-width: 120px; object-fit: contain; }
.doc .doc-biz b { font-size: 16px; display: block; }
.doc .muted { color: #6b5a52; }
.doc .doc-meta { text-align: right; }
.doc .doc-cols { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.doc table { width: 100%; border-collapse: collapse; margin: 6px 0 10px; }
.doc th { background: #f3ebe4; text-align: left; padding: 8px; font-size: 12.5px; }
.doc td { padding: 8px; border-bottom: 1px solid #eadfd6; vertical-align: top; }
.doc .r { text-align: right; }
.doc .tot { margin-left: auto; width: 270px; }
.doc .tot div { display: flex; justify-content: space-between; padding: 4px 0; }
.doc .tot .grand { border-top: 2px solid #1d1411; font-weight: 800; font-size: 16px; margin-top: 4px; padding-top: 8px; }
.doc .stamp { display: inline-block; border: 3px solid #1B7F4B; color: #1B7F4B; font-weight: 800; letter-spacing: .12em; padding: 2px 12px; transform: rotate(-6deg); border-radius: 6px; }
.doc .terbilang { margin: 8px 0; font-style: italic; }
.doc .doc-foot { margin-top: 22px; display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; border-top: 1px solid #eadfd6; padding-top: 12px; font-size: 12.5px; }
.doc .made { color: #8a7a72; font-size: 11.5px; }
.doc .sign { text-align: center; min-width: 170px; }
.doc .sign .line-sign { border-bottom: 1px solid #1d1411; height: 56px; margin-bottom: 4px; }
.doc .meterai { display: inline-block; border: 1px dashed #8a7a72; color: #8a7a72; padding: 14px 10px; font-size: 11px; margin-bottom: 6px; }
.doc.kw { border: 3px double #1d1411; margin: 10px; }
.doc.kw h3 { text-align: center; font-size: 26px; margin-bottom: 14px; }
.doc.kw .kw-row { display: grid; grid-template-columns: 150px 1fr; gap: 6px; padding: 6px 0; border-bottom: 1px dotted #b9aaa1; }
.doc.kw .kw-amount { font-size: 22px; font-weight: 800; margin-top: 14px; }
@media print {
  @page { size: A4; margin: 12mm; }
  body { background: #fff !important; }
  body > *:not(main), main > *:not(.print-target) { display: none !important; }
  .print-target .tool-grid { display: block !important; }
  .print-target .tool-grid > *:not(.sticky-col) { display: none !important; }
  .print-target .sticky-col { position: static !important; }
  .print-target .sticky-col > *:not(.doc-wrap) { display: none !important; }
  .doc-wrap { border: 0 !important; overflow: visible !important; }
  .doc { padding: 0 !important; min-width: 0 !important; transform: none !important; width: auto !important; }
  .doc-wrap { height: auto !important; }
  .doc.kw { margin: 0; }
}
@media (max-width: 560px) { .row2 > .fld > span, .row3 > .fld > span { min-height: 2.8em; } .dd { display: none; } .line.it { grid-template-columns: 1fr 60px 1fr 36px; } }
