/* path: /home/bruhatag/d.vltechlabs.com/app/static/css/extras.css
 * Call scripts, pricing cards, activity charts. Loaded after app.css.
 */

/* ---------------------------------------------------------- call script */
.pitch-head { display: flex; justify-content: space-between;
              align-items: baseline; gap: 10px; margin-bottom: 10px; }
.pitch-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px;
              border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.pitch-tab { border: 1px solid var(--border); background: var(--surface);
             color: var(--ink); border-radius: 999px; padding: 4px 12px;
             font-size: 12.5px; cursor: pointer; }
.pitch-tab.on { background: var(--accent); border-color: var(--accent);
                color: #fff; }
.pitch-pane { display: none; }
.pitch-pane.on { display: block; }
.pitch-tagline { margin: 0 0 8px; font-size: 12.5px; }

.pitch-script { background: var(--bg); border: 1px solid var(--border);
                border-radius: var(--radius); padding: 12px 14px;
                font-size: 14.5px; line-height: 1.7; max-height: 420px;
                overflow-y: auto; }
.pitch-script p { margin: 0 0 8px; }
.pitch-script p:last-child { margin-bottom: 0; }
.pitch-script strong { color: var(--accent-dark); text-transform: uppercase;
                       font-size: 11.5px; letter-spacing: .04em; }
.pitch-script em { color: var(--ink-mute); }

.filled { background: var(--accent-soft); color: var(--accent-dark);
          padding: 0 4px; border-radius: 3px; font-weight: 600; }
.blank { display: inline-block; min-width: 70px; color: var(--warn);
         border-bottom: 1.5px solid var(--warn); line-height: 1.1;
         letter-spacing: -1px; }

.pitch-faq { margin-top: 10px; font-size: 13.5px; }
.pitch-faq summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.pitch-faq > div { padding: 8px 0 0 4px; }

.pitch-sub { font-size: 13px; margin: 16px 0 8px; text-transform: uppercase;
             letter-spacing: .04em; color: var(--ink-mute); }
.plan { border: 1px solid var(--border); border-radius: var(--radius);
        padding: 10px 12px; margin-bottom: 8px; }
.plan-top { display: flex; justify-content: space-between; gap: 10px;
            align-items: baseline; flex-wrap: wrap; }
.plan-price { font-weight: 700; color: var(--ok); white-space: nowrap; }
.plan-price small { font-weight: 500; color: var(--ink-mute); margin-left: 4px; }
.plan-desc { font-size: 12.5px; color: var(--ink-mute); margin-top: 3px; }
.plan-renew { font-size: 12.5px; margin-top: 4px; }

/* --------------------------------------------------- admin plan editor */
.plan-row { display: grid; gap: 8px; border: 1px solid var(--border);
            border-radius: var(--radius); padding: 10px; margin-bottom: 10px;
            grid-template-columns: 2fr 1fr 1.4fr 1fr .8fr 1.2fr auto; }
.plan-row .plan-row-desc { grid-column: 1 / -1; }
.plan-row input { width: 100%; }
@media (max-width: 900px) {
  .plan-row { grid-template-columns: 1fr 1fr; }
}

/* -------------------------------------------------------- activity bars */
.hour-strip { display: flex; align-items: flex-end; gap: 4px; height: 120px;
              padding-top: 6px; }
.hour-col { flex: 1; display: flex; flex-direction: column;
            justify-content: flex-end; height: 100%; }
.hour-bar { background: var(--accent); border-radius: 3px 3px 0 0;
            min-height: 2px; }
.hour-label { font-size: 10.5px; text-align: center; color: var(--ink-mute);
              margin-top: 3px; }

.meter { height: 6px; background: var(--border); border-radius: 3px;
         overflow: hidden; min-width: 80px; }
.meter > span { display: block; height: 100%; background: var(--ok); }
.meter.low > span { background: var(--danger); }
.meter.mid > span { background: var(--warn); }

/* ------------------------------------------------ legal document editor */
.doc-toolbar { position: sticky; top: 56px; z-index: 20; background: var(--bg);
               padding: 8px 0; }
.save-state { font-size: 12px; color: var(--ink-mute); margin-right: 4px; }
.save-state.ok { color: var(--ok); }
.save-state.warn { color: var(--warn); }
.save-state.bad { color: var(--danger); font-weight: 600; }
.unknown-box { border-color: #f2c3bf; background: var(--danger-soft); }
.unknown-box code { background: #fff; padding: 1px 5px; border-radius: 3px;
                    margin-right: 4px; }

.doc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px;
              gap: 16px; align-items: start; margin-top: 12px; }
@media (max-width: 1100px) { .doc-layout { grid-template-columns: 1fr; } }
.doc-side { position: sticky; top: 120px; max-height: calc(100vh - 130px);
            overflow-y: auto; }
.doc-side-card .tag-scroll { max-height: 42vh; overflow-y: auto; }
.tag-chip[hidden], .tag-group[hidden] { display: none; }

/* An A4 sheet: 210mm wide, 18mm side margins like the letterhead default */
.paper { background: #fff; width: 210mm; max-width: 100%; min-height: 297mm;
         margin: 0 auto; padding: 16mm 18mm 20mm;
         box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 8px 24px rgba(0,0,0,.08);
         font-family: Helvetica, Arial, sans-serif; font-size: 10.5pt;
         line-height: 1.55; color: #1a1a1a; }
.doc-sec { position: relative; border: 1px dashed transparent;
           border-radius: 4px; padding: 4px 6px; margin: 0 -7px 6px; }
.doc-sec:hover, .doc-sec:focus-within { border-color: var(--border-strong); }
.doc-sec.locked { background: #fafafa; }
.doc-sec-bar { display: flex; gap: 6px; align-items: center; flex-wrap: wrap;
               font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
               font-size: 11.5px; opacity: .35; margin-bottom: 2px; }
.doc-sec:hover .doc-sec-bar, .doc-sec:focus-within .doc-sec-bar { opacity: 1; }
.doc-sec-bar select { width: auto; padding: 1px 4px; font-size: 11.5px; }
.doc-sec-bar .check span { font-size: 11.5px; }
.sec-no { color: var(--ink-mute); font-weight: 700; min-width: 16px; }
.sec-actions-inline { margin-left: auto; display: flex; gap: 2px; }

.doc-heading { width: 100%; border: none; background: transparent; padding: 2px 0;
               font-family: inherit; color: #B01116; outline: none; }
.doc-heading:disabled { color: #B01116; }
.doc-heading.hs-none { display: block; font-size: 10pt; color: var(--ink-mute); }
.doc-heading.hs-none:placeholder-shown { height: 0; padding: 0; }
.doc-sec:hover .doc-heading.hs-none:placeholder-shown { height: auto; }
.doc-heading.hs-h1 { font-size: 15pt; font-weight: 700; }
.doc-heading.hs-h2 { font-size: 12pt; font-weight: 700; }
.doc-heading.hs-h3 { font-size: 10.5pt; font-weight: 700; color: #1a1a1a; }
.doc-heading.hs-center_bold { text-align: center; font-weight: 700;
                              font-size: 11.5pt; letter-spacing: .6pt; }

.doc-body { min-height: 1.6em; outline: none; }
.doc-body.editable { cursor: text; }
.doc-body.editable:focus { box-shadow: 0 0 0 2px var(--accent-soft); border-radius: 3px; }
.doc-body p { margin: 0 0 9pt; text-align: justify; }
.doc-body ul, .doc-body ol { margin: 0 0 9pt 16pt; }
.doc-body table { width: 100%; border-collapse: collapse; }
.doc-body td, .doc-body th { border: 1px solid #ddd; padding: 4px 6px; }
.doc-placeholder { border: 1px dashed var(--border-strong); color: var(--ink-mute);
                   text-align: center; padding: 14px; margin: 4px 0 8px;
                   font-size: 12px; border-radius: 4px; }
.doc-pagebreak { text-align: center; color: var(--ink-mute); font-size: 11px;
                 border-top: 2px dashed var(--border-strong); padding-top: 4px; }
.doc-spacer { height: 12pt; border-left: 2px solid var(--border); }
.doc-sig select { width: auto; margin-top: 4px; }

/* ------------------------------------------------------ category strip */
.cat-strip { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0; }
.cat-pill { border: 1px solid var(--border); background: var(--surface);
            border-radius: 999px; padding: 4px 12px; font-size: 13px;
            color: var(--ink); text-decoration: none; }
.cat-pill.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.cat-pill.on .muted { color: rgba(255,255,255,.8); }

/* -------------------------------------------------------------- compare */
.diff-table td { font-size: 13px; vertical-align: top; white-space: pre-wrap; }
.diff-del td:first-child { background: var(--danger-soft); }
.diff-ins td:last-child { background: var(--ok-soft); }
.diff-mod td { background: var(--warn-soft); }
.diff-table del { background: #f7c6c1; text-decoration: line-through; }
.diff-table ins { background: #bfe8cc; text-decoration: none; }
.diff-same td { color: var(--ink-mute); }

/* ------------------------------------------------------ admin documents */
.approve-card { border-color: #eeddb2; }
.approve-row { display: flex; justify-content: space-between; gap: 12px;
               align-items: center; flex-wrap: wrap; padding: 10px 0;
               border-top: 1px solid var(--border); }
.approve-row:first-of-type { border-top: none; }
.approve-info { min-width: 220px; flex: 1; }
.sendback summary { list-style: none; display: inline-block; }
.sendback summary::-webkit-details-marker { display: none; }
.sendback[open] form { margin-top: 6px; display: flex; flex-direction: column;
                       gap: 6px; min-width: 260px; }

.docs-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr);
               gap: 16px; align-items: start; }
@media (max-width: 900px) { .docs-layout { grid-template-columns: 1fr; } }
.cat-list { display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; }
.cat-list a { display: block; padding: 5px 8px; border-radius: 6px;
              color: var(--ink); text-decoration: none; font-size: 13.5px; flex: 1; }
.cat-list a:hover { background: var(--bg); }
.cat-list a.on { background: var(--accent-soft); color: var(--accent-dark);
                 font-weight: 600; }
.cat-item { display: flex; align-items: flex-start; gap: 2px; flex-wrap: wrap; }
.cat-item.off a { opacity: .5; }
.cat-item details { font-size: 12px; }
.cat-item summary { cursor: pointer; list-style: none; padding: 5px 6px;
                    color: var(--ink-mute); }
.cat-item summary::-webkit-details-marker { display: none; }
.cat-item details[open] { flex-basis: 100%; }
.cat-item details form { display: flex; flex-direction: column; gap: 6px;
                         padding: 6px 0; }
.cat-add { display: flex; flex-direction: column; gap: 6px;
           border-top: 1px solid var(--border); padding-top: 10px; }

.starter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
                gap: 8px; margin: 6px 0 4px; }
.starter { display: flex; gap: 8px; align-items: center; border: 1px solid var(--border);
           border-radius: 8px; padding: 9px 10px; cursor: pointer; font-size: 13px; }
.starter:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }

.sig-preview { background: #fff; border: 1px dashed var(--border);
               border-radius: 6px; padding: 12px; }

/* --------------------------------------------------- salary structures */
.pay-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px;
              gap: 16px; align-items: start; }
@media (max-width: 1100px) { .pay-layout { grid-template-columns: 1fr; } }
.head-table th, .head-table td { padding: 4px 5px; font-size: 12.5px;
                                 vertical-align: middle; }
.head-table input, .head-table select { padding: 3px 5px; font-size: 12.5px;
                                        width: 100%; }
.head-table select { min-width: 92px; }
.head-table .drag-col { width: 22px; color: var(--ink-mute); text-align: right; }
.head-table .row-tools { white-space: nowrap; }
.head-table .row-tools .btn { padding: 1px 6px; }
.pay-totals { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px;
              margin-bottom: 10px; }
.pay-totals span { display: block; font-size: 11px; color: var(--ink-mute); }
.pay-totals strong { font-size: 15px; }
.pay-preview table { width: 100%; font-size: 11px; }
.pay-preview td, .pay-preview th { padding: 3px 5px !important; }

/* ------------------------------------------------------- legal my work */
.work-row { display: flex; justify-content: space-between; gap: 12px;
            align-items: center; flex-wrap: wrap; padding: 9px 0;
            border-top: 1px solid var(--border); }
.work-row:first-of-type { border-top: none; }
.how-box summary { cursor: pointer; }
.how-steps { margin: 10px 0 0; padding-left: 20px; font-size: 13.5px;
             line-height: 1.7; }
.help-strip { background: var(--accent-soft); border-color: var(--accent);
              font-size: 13px; }
.submit-check { list-style: none; margin: 0 0 10px; padding: 0;
                font-size: 12.5px; }
.submit-check li { padding-left: 18px; position: relative; margin-bottom: 3px; }
.submit-check li::before { position: absolute; left: 0; }
.submit-check li.ok { color: var(--ok); }
.submit-check li.ok::before { content: "✓"; }
.submit-check li.bad { color: var(--danger); }
.submit-check li.bad::before { content: "!"; font-weight: 700; }

/* --------------------------------------------------------- HR issuing */
.pay-box { border: 1px solid var(--border); border-left: 3px solid var(--ok);
           border-radius: var(--radius); padding: 12px; margin-bottom: 14px;
           background: var(--bg); }
.starter.on { border-color: var(--accent); background: var(--accent-soft); }
a.starter { text-decoration: none; color: var(--ink); }
.letter-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px;
               font-size: 13px; }
.letter-meta span { color: var(--ink-mute); }

/* ------------------------------------------------------------ policies */
.nav-badge { display: inline-block; min-width: 16px; padding: 0 4px;
             margin-left: 4px; border-radius: 8px; background: var(--danger);
             color: #fff; font-size: 10.5px; line-height: 16px;
             text-align: center; vertical-align: middle; }
.policy-read { display: grid; grid-template-columns: minmax(0,1fr) 320px;
               gap: 16px; align-items: start; }
@media (max-width: 1000px) { .policy-read { grid-template-columns: 1fr; } }
.policy-read iframe { width: 100%; height: 76vh; border: 1px solid var(--border);
                      border-radius: 6px; background: #fff; }
.accept-box { border: 2px solid var(--ok); border-radius: var(--radius);
              padding: 14px; }
.accept-box .stmt { font-style: italic; background: var(--bg); padding: 10px;
                    border-radius: 6px; font-size: 13px; margin-bottom: 10px; }
.bar { height: 8px; background: var(--border); border-radius: 4px;
       overflow: hidden; min-width: 110px; }
.bar > span { display: block; height: 100%; background: var(--ok); }