:root {
  --tvl-primary: #0f6b55;
  --tvl-primary-dark: #0a4c3d;
  --tvl-primary-soft: #e9f6f2;
  --tvl-income: #138a61;
  --tvl-expense: #d64a4a;
  --tvl-warning: #b7791f;
  --tvl-bg: #f4f7f6;
  --tvl-surface: #ffffff;
  --tvl-text: #17211e;
  --tvl-muted: #697772;
  --tvl-border: #dfe7e4;
  --tvl-shadow: 0 14px 36px rgba(20, 44, 36, .08);
  --tvl-radius: 20px;
}

.tvl-app, .tvl-app * { box-sizing: border-box; }
.tvl-app { min-height: 620px; color: var(--tvl-text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.5; }
.tvl-app button, .tvl-app input, .tvl-app select, .tvl-app textarea { font: inherit; }
.tvl-app button { cursor: pointer; }
.tvl-app h1, .tvl-app h2, .tvl-app h3, .tvl-app h4, .tvl-app p { margin-top: 0; }
.tvl-app a { color: var(--tvl-primary); }

.tvl-loading-screen, .tvl-login-wrap { min-height: 70vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at top right, #dff5ed, transparent 38%), var(--tvl-bg); border-radius: var(--tvl-radius); }
.tvl-loading-screen { align-content: center; color: var(--tvl-muted); }
.tvl-loader { width: 38px; height: 38px; border: 4px solid #d9e8e3; border-top-color: var(--tvl-primary); border-radius: 50%; animation: tvl-spin .8s linear infinite; }
@keyframes tvl-spin { to { transform: rotate(360deg); } }
.tvl-mini-loader { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: tvl-spin .8s linear infinite; }

.tvl-login-card { width: min(100%, 430px); padding: 38px; background: rgba(255,255,255,.96); border: 1px solid rgba(255,255,255,.7); border-radius: 28px; box-shadow: 0 24px 60px rgba(21, 62, 49, .14); text-align: center; }
.tvl-brand-mark { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 18px; background: var(--tvl-primary); color: #fff; font-size: 28px; font-weight: 800; border-radius: 18px; }
.tvl-eyebrow, .tvl-section-kicker { margin-bottom: 5px !important; color: var(--tvl-primary); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.tvl-login-card h1 { margin-bottom: 8px; font-size: clamp(24px, 5vw, 32px); line-height: 1.2; }
.tvl-muted { color: var(--tvl-muted); }
.tvl-security-note { margin: 18px 0 0; color: var(--tvl-muted); font-size: 12px; }
.tvl-pin-row { display: flex; gap: 8px; }
.tvl-pin-row input { flex: 1; text-align: center; font-size: 24px; letter-spacing: .35em; }

.tvl-shell { min-height: 760px; padding-bottom: 88px; background: var(--tvl-bg); border-radius: var(--tvl-radius); overflow: hidden; position: relative; }
.tvl-topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px clamp(18px, 4vw, 38px); background: var(--tvl-surface); border-bottom: 1px solid var(--tvl-border); }
.tvl-topbar h1 { margin: 0; font-size: clamp(18px, 3vw, 25px); }
.tvl-topbar .tvl-eyebrow { margin-bottom: 1px !important; }
.tvl-main { width: min(1180px, 100%); margin: 0 auto; padding: 30px clamp(16px, 3vw, 32px) 44px; }
.tvl-section { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.tvl-section h2 { margin: 0; font-size: clamp(24px, 4vw, 34px); line-height: 1.2; }
.tvl-quick-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.tvl-primary-button, .tvl-secondary-button, .tvl-lock-button, .tvl-icon-button { min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 750; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.tvl-primary-button { background: var(--tvl-primary); color: #fff; box-shadow: 0 8px 18px rgba(15,107,85,.18); }
.tvl-primary-button:hover { background: var(--tvl-primary-dark); transform: translateY(-1px); }
.tvl-secondary-button { background: var(--tvl-surface); color: var(--tvl-primary-dark); border-color: var(--tvl-border); }
.tvl-secondary-button:hover { border-color: var(--tvl-primary); }
.tvl-lock-button { background: #fff3f3; color: #b83535; border-color: #f3dada; }
.tvl-icon-button { min-width: 70px; padding-inline: 12px; background: #f4f7f6; color: var(--tvl-text); border-color: var(--tvl-border); font-size: 12px; }
.tvl-full { width: 100%; }
.tvl-primary-button:disabled, .tvl-secondary-button:disabled { opacity: .65; cursor: not-allowed; transform: none; }

.tvl-filter-card { display: grid; grid-template-columns: minmax(150px,1fr) minmax(150px,1fr) auto; gap: 14px; align-items: end; margin-bottom: 20px; padding: 16px; background: var(--tvl-surface); border: 1px solid var(--tvl-border); border-radius: 16px; }
.tvl-field { display: flex; flex-direction: column; gap: 7px; }
.tvl-field label, .tvl-form > label { color: #3e4b47; font-size: 13px; font-weight: 750; text-align: left; }
.tvl-field label em { color: var(--tvl-expense); font-style: normal; }
.tvl-field label small { color: var(--tvl-muted); font-weight: 500; }
.tvl-field input, .tvl-field select, .tvl-field textarea, .tvl-form > input, .tvl-pin-row input { width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid #ccd8d4; border-radius: 11px; background: #fff; color: var(--tvl-text); outline: none; }
.tvl-field textarea { min-height: 110px; resize: vertical; }
.tvl-field input:focus, .tvl-field select:focus, .tvl-field textarea:focus, .tvl-form > input:focus, .tvl-pin-row input:focus { border-color: var(--tvl-primary); box-shadow: 0 0 0 3px rgba(15,107,85,.1); }

.tvl-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.tvl-summary-card { min-height: 152px; padding: 21px; background: var(--tvl-surface); border: 1px solid var(--tvl-border); border-radius: 18px; box-shadow: 0 8px 24px rgba(25,50,42,.045); position: relative; overflow: hidden; }
.tvl-summary-card::after { content: ''; position: absolute; width: 90px; height: 90px; right: -30px; top: -30px; border-radius: 50%; background: var(--tvl-primary-soft); }
.tvl-summary-card p { margin-bottom: 13px; color: var(--tvl-muted); font-size: 13px; font-weight: 700; }
.tvl-summary-card strong { display: block; margin-bottom: 8px; font-size: clamp(21px, 2.7vw, 29px); line-height: 1.15; word-break: break-word; }
.tvl-summary-card span { color: var(--tvl-muted); font-size: 12px; }
.tvl-summary-card.tvl-income::after, .tvl-summary-card.tvl-safe::after { background: #e4f6ec; }
.tvl-summary-card.tvl-expense::after, .tvl-summary-card.tvl-danger::after { background: #fdeaea; }
.tvl-summary-card.tvl-safe strong { color: var(--tvl-income); }
.tvl-summary-card.tvl-danger strong { color: var(--tvl-expense); }

.tvl-panel, .tvl-form-card { margin-bottom: 20px; padding: clamp(18px, 3vw, 25px); background: var(--tvl-surface); border: 1px solid var(--tvl-border); border-radius: 18px; box-shadow: 0 8px 24px rgba(25,50,42,.04); }
.tvl-panel-head { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 20px; }
.tvl-panel-head h3 { margin: 0; font-size: 19px; }
.tvl-count { padding: 5px 10px; background: var(--tvl-bg); border-radius: 999px; color: var(--tvl-muted); font-size: 12px; font-weight: 700; }

.tvl-flow-bars { display: grid; gap: 18px; }
.tvl-flow-row > div:first-child { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 8px; font-size: 13px; }
.tvl-flow-track, .tvl-progress { height: 10px; background: #edf2f0; border-radius: 999px; overflow: hidden; }
.tvl-flow-track span, .tvl-progress span { display: block; height: 100%; border-radius: inherit; min-width: 3px; }
.tvl-flow-income { background: var(--tvl-income); }
.tvl-flow-expense { background: var(--tvl-expense); }

.tvl-category-list { display: grid; gap: 15px; }
.tvl-category-label { display: flex; justify-content: space-between; gap: 18px; margin-bottom: 6px; font-size: 13px; }
.tvl-category-label strong { white-space: nowrap; }
.tvl-progress { height: 7px; }
.tvl-progress span { background: var(--tvl-primary); }
.tvl-empty-small { color: var(--tvl-muted); font-size: 14px; }

.tvl-history-tools { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.tvl-tabs { display: inline-flex; padding: 4px; background: var(--tvl-bg); border-radius: 12px; }
.tvl-tab { min-height: 36px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; color: var(--tvl-muted); font-size: 12px; font-weight: 750; }
.tvl-tab.is-active { background: #fff; color: var(--tvl-primary); box-shadow: 0 3px 10px rgba(24,44,38,.09); }
.tvl-search-row { display: flex; gap: 8px; flex: 1; justify-content: flex-end; }
.tvl-search-row input, .tvl-search-row select { min-height: 42px; padding: 8px 11px; border: 1px solid var(--tvl-border); border-radius: 10px; background: #fff; }
.tvl-search-row input { width: min(300px, 100%); }

.tvl-transaction-list { display: grid; gap: 10px; }
.tvl-transaction-card { display: grid; grid-template-columns: 44px minmax(0,1fr); gap: 13px; padding: 15px; border: 1px solid var(--tvl-border); border-radius: 14px; transition: border .15s ease, transform .15s ease; }
.tvl-transaction-card:hover { border-color: #b8cbc4; transform: translateY(-1px); }
.tvl-transaction-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; font-size: 19px; font-weight: 800; }
.tvl-transaction-icon.income { background: #e6f6ee; color: var(--tvl-income); }
.tvl-transaction-icon.expense { background: #fdecec; color: var(--tvl-expense); }
.tvl-transaction-top { display: flex; justify-content: space-between; gap: 16px; }
.tvl-transaction-top h4 { margin: 5px 0 0; font-size: 15px; }
.tvl-badge { padding: 3px 7px; border-radius: 6px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.tvl-badge.income { background: #e6f6ee; color: var(--tvl-income); }
.tvl-badge.expense { background: #fdecec; color: #b73737; }
.tvl-amount { font-size: 15px; white-space: nowrap; }
.tvl-amount.income { color: var(--tvl-income); }
.tvl-amount.expense { color: var(--tvl-expense); }
.tvl-transaction-meta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; color: var(--tvl-muted); font-size: 12px; }
.tvl-transaction-meta span + span::before { content: '•'; margin-right: 12px; }
.tvl-transaction-actions { display: flex; gap: 14px; align-items: center; margin-top: 11px; }
.tvl-text-button { padding: 0; border: 0; background: transparent; color: var(--tvl-primary); font-size: 12px; font-weight: 750; text-decoration: none; }
.tvl-danger-text { color: var(--tvl-expense); }
.tvl-no-receipt { color: #9aa5a1; font-size: 12px; }
.tvl-empty-state { padding: 48px 20px; text-align: center; color: var(--tvl-muted); }
.tvl-empty-state h4 { margin: 10px 0 4px; color: var(--tvl-text); }
.tvl-empty-state p { margin: 0; }
.tvl-empty-icon { width: 48px; height: 48px; margin: auto; display: grid; place-items: center; border-radius: 50%; background: var(--tvl-bg); color: var(--tvl-primary); font-size: 22px; }

.tvl-form-heading { align-items: center; }
.tvl-form-card { max-width: 820px; margin-inline: auto; }
.tvl-form-intro { display: flex; gap: 15px; align-items: center; padding: 16px; margin-bottom: 22px; border-radius: 14px; }
.tvl-form-intro.income { background: #eaf7f1; }
.tvl-form-intro.expense { background: #fff0f0; }
.tvl-form-intro h3 { margin: 0 0 3px; font-size: 17px; }
.tvl-form-intro p { margin: 0; color: var(--tvl-muted); font-size: 13px; }
.tvl-form-icon { width: 43px; height: 43px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; background: #fff; font-size: 20px; font-weight: 900; }
.tvl-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.tvl-field-full { grid-column: 1 / -1; }
.tvl-money-input { display: flex; align-items: stretch; }
.tvl-money-input span { display: grid; place-items: center; padding: 0 13px; background: #f2f5f4; border: 1px solid #ccd8d4; border-right: 0; border-radius: 11px 0 0 11px; color: var(--tvl-muted); font-weight: 750; }
.tvl-money-input input { border-radius: 0 11px 11px 0; }
.tvl-file-drop { min-height: 120px; padding: 18px; display: flex !important; flex-direction: column; align-items: center; justify-content: center; text-align: center !important; border: 1.5px dashed #b8c9c3; border-radius: 13px; background: #fbfcfc; cursor: pointer; }
.tvl-file-drop:hover { border-color: var(--tvl-primary); background: var(--tvl-primary-soft); }
.tvl-file-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.tvl-file-drop strong { margin: 4px 0 2px; color: var(--tvl-text); }
.tvl-file-drop small { color: var(--tvl-muted); }
.tvl-file-icon { color: var(--tvl-primary); font-size: 23px; }
.tvl-current-file, .tvl-help-text { margin: 6px 0 0; color: var(--tvl-muted); font-size: 11px; }
.tvl-form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }

.tvl-alert { margin: 14px 0; padding: 11px 13px; border-radius: 10px; font-size: 13px; text-align: left; }
.tvl-alert-error { background: #fff0f0; border: 1px solid #f5d1d1; color: #a52d2d; }
.tvl-toast { position: fixed; z-index: 999999; left: 50%; bottom: 24px; transform: translate(-50%, 20px); max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 12px; background: #17211e; color: #fff; box-shadow: var(--tvl-shadow); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; font-size: 13px; font-weight: 700; }
.tvl-toast-show { opacity: 1; transform: translate(-50%, 0); }
.tvl-toast-error { background: #a52d2d; }

.tvl-bottom-nav { position: absolute; left: 0; right: 0; bottom: 0; z-index: 20; height: 72px; display: grid; grid-template-columns: repeat(3,1fr); background: rgba(255,255,255,.96); border-top: 1px solid var(--tvl-border); backdrop-filter: blur(12px); }
.tvl-nav-button { border: 0; background: transparent; color: #7b8883; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 700; }
.tvl-nav-button svg { width: 23px; height: 23px; fill: currentColor; }
.tvl-nav-button.is-active { color: var(--tvl-primary); background: linear-gradient(to top, var(--tvl-primary-soft), transparent); }

@media (max-width: 900px) {
  .tvl-summary-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 640px) {
  .tvl-shell { border-radius: 0; min-height: 100vh; margin-inline: -15px; }
  .tvl-topbar { padding: 16px; }
  .tvl-topbar h1 { font-size: 17px; }
  .tvl-topbar .tvl-eyebrow { font-size: 9px; }
  .tvl-lock-button { min-height: 38px; padding-inline: 12px; font-size: 12px; }
  .tvl-main { padding: 22px 14px 40px; }
  .tvl-section { align-items: flex-start; flex-direction: column; }
  .tvl-section h2 { font-size: 25px; }
  .tvl-quick-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .tvl-filter-card { grid-template-columns: 1fr 1fr; }
  .tvl-filter-card .tvl-primary-button { grid-column: 1 / -1; }
  .tvl-summary-grid { gap: 10px; }
  .tvl-summary-card { min-height: 130px; padding: 16px; }
  .tvl-summary-card strong { font-size: 19px; }
  .tvl-panel, .tvl-form-card { padding: 16px; border-radius: 15px; }
  .tvl-history-head { align-items: flex-start; }
  .tvl-history-tools, .tvl-search-row { flex-direction: column; align-items: stretch; }
  .tvl-tabs { display: grid; grid-template-columns: repeat(3,1fr); }
  .tvl-search-row input, .tvl-search-row select { width: 100%; }
  .tvl-transaction-card { grid-template-columns: 38px minmax(0,1fr); padding: 13px; }
  .tvl-transaction-icon { width: 36px; height: 36px; }
  .tvl-transaction-top { gap: 7px; }
  .tvl-amount { font-size: 13px; }
  .tvl-transaction-actions { gap: 12px; flex-wrap: wrap; }
  .tvl-form-grid { grid-template-columns: 1fr; }
  .tvl-field-full { grid-column: auto; }
  .tvl-form-actions { display: grid; grid-template-columns: 1fr; }
  .tvl-form-actions .tvl-primary-button { order: -1; }
  .tvl-login-card { padding: 28px 20px; }
}

@media (max-width: 390px) {
  .tvl-summary-grid { grid-template-columns: 1fr; }
  .tvl-filter-card { grid-template-columns: 1fr; }
  .tvl-filter-card .tvl-primary-button { grid-column: auto; }
}

/* Slip Gaji v1.1.0 */
.tvl-bottom-nav { grid-template-columns: repeat(4, 1fr); }
.tvl-salary-summary { margin-bottom: 20px; }
.tvl-salary-list, .tvl-employee-grid { display: grid; gap: 12px; }
.tvl-salary-card, .tvl-employee-card { display: flex; justify-content: space-between; gap: 22px; align-items: center; padding: 18px; border: 1px solid var(--tvl-border); border-radius: 15px; background: #fff; }
.tvl-salary-card h4, .tvl-employee-card h4 { margin: 8px 0 3px; font-size: 17px; }
.tvl-salary-card p, .tvl-employee-card p { margin: 0 0 3px; color: var(--tvl-muted); font-size: 13px; }
.tvl-salary-card small, .tvl-employee-card small { display: block; color: var(--tvl-muted); }
.tvl-salary-card-side, .tvl-employee-card > div:last-child { min-width: 220px; text-align: right; }
.tvl-salary-card-side > strong, .tvl-employee-card > div:last-child > strong { display: block; color: var(--tvl-primary-dark); font-size: 20px; }
.tvl-salary-card-side .tvl-transaction-actions, .tvl-employee-card .tvl-transaction-actions { justify-content: flex-end; }
.tvl-employee-card.is-inactive { opacity: .66; background: #f7f8f8; }
.tvl-status-badge { display: inline-flex; padding: 5px 9px; border-radius: 999px; font-size: 10px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.tvl-status-badge.status-paid { color: #0e704f; background: #e5f7ef; }
.tvl-status-badge.status-unpaid { color: #a34a19; background: #fff0dd; }
.tvl-status-badge.status-draft { color: #68736f; background: #edf1ef; }
.tvl-check-row { display: inline-flex !important; flex-direction: row !important; align-items: center; gap: 9px; width: fit-content; cursor: pointer; }
.tvl-check-row input { width: 18px !important; min-height: 18px !important; height: 18px; margin: 0; padding: 0; }
.tvl-salary-form-card { max-width: 980px; }
.tvl-repeat-section { margin: 26px 0; padding: 20px; border: 1px solid var(--tvl-border); border-radius: 15px; background: #fbfcfc; }
.tvl-repeat-head { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-bottom: 15px; }
.tvl-repeat-head h3 { margin: 0 0 4px; font-size: 18px; }
.tvl-repeat-head p { margin: 0; color: var(--tvl-muted); font-size: 12px; }
#tvl-income-rows, #tvl-deduction-rows { display: grid; gap: 12px; }
.tvl-repeat-row { display: grid; grid-template-columns: minmax(180px, 1.2fr) minmax(160px, 1fr) minmax(170px, .8fr) 42px; gap: 12px; align-items: end; padding: 13px; border: 1px solid var(--tvl-border); border-radius: 13px; background: #fff; }
.tvl-remove-row { width: 42px; height: 46px; border: 1px solid #f1cece; border-radius: 10px; background: #fff2f2; color: #b73535; font-size: 24px; line-height: 1; }
.tvl-total-box { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 22px; padding: 16px; border-radius: 15px; background: #f2f7f5; }
.tvl-total-box > div { padding: 12px; border-radius: 12px; background: #fff; border: 1px solid var(--tvl-border); }
.tvl-total-box span { display: block; color: var(--tvl-muted); font-size: 12px; font-weight: 700; }
.tvl-total-box strong { display: block; margin-top: 6px; font-size: 18px; }
.tvl-total-box .net { border-color: #a9d4c5; background: #eaf7f1; }
.tvl-total-box .net strong { color: var(--tvl-primary-dark); font-size: 22px; }
.tvl-slip-preview { max-width: 920px; margin: 0 auto 20px; padding: clamp(20px, 4vw, 38px); border: 1px solid #cbdcf1; border-radius: 18px; background: #fff; box-shadow: 0 12px 34px rgba(27, 64, 110, .08); }
.tvl-preview-head { display: flex; justify-content: space-between; align-items: center; gap: 28px; padding-bottom: 20px; border-bottom: 4px solid #0b66b2; }
.tvl-preview-head img { width: min(58%, 470px); height: auto; max-height: 95px; object-fit: contain; object-position: left center; }
.tvl-preview-head > div { text-align: right; }
.tvl-preview-head h3 { margin: 8px 0 2px; color: #0b4a95; font-size: 33px; }
.tvl-preview-head p { margin: 0; color: var(--tvl-muted); }
.tvl-preview-info { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px 20px; margin: 22px 0; padding: 18px; border: 1px solid #b8d3f3; border-radius: 14px; }
.tvl-preview-info span { display: block; color: var(--tvl-muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.tvl-preview-info strong { display: block; margin-top: 3px; }
.tvl-preview-table { margin: 18px 0; border: 1px solid #8bb8ed; border-radius: 14px; overflow: hidden; }
.tvl-preview-table h4 { margin: 0; padding: 10px 15px; background: #0b66b2; color: #fff; text-transform: uppercase; }
.tvl-preview-table.deduction { border-color: #efbd57; }
.tvl-preview-table.deduction h4 { background: #f0a400; }
.tvl-preview-table > div { display: flex; justify-content: space-between; gap: 18px; padding: 10px 15px; border-top: 1px dashed #d5e0ed; }
.tvl-preview-table > div span small { color: var(--tvl-muted); }
.tvl-preview-table > div.total { background: #eef5ff; border-top-style: solid; font-weight: 800; }
.tvl-preview-table.deduction > div.total { background: #fff6df; }
.tvl-preview-table > .tvl-empty-small { padding: 14px 15px; }
.tvl-preview-net { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 20px; padding: 22px; border: 2px solid #0b66b2; border-radius: 16px; background: #f1f7ff; color: #0b4a95; }
.tvl-preview-net span { font-weight: 800; }
.tvl-preview-net strong { font-size: clamp(27px, 5vw, 46px); }
.tvl-preview-note { margin-top: 16px; padding: 13px 15px; border: 1px solid #cbdcf1; border-radius: 12px; }

@media (max-width: 760px) {
  .tvl-salary-card, .tvl-employee-card { align-items: flex-start; flex-direction: column; }
  .tvl-salary-card-side, .tvl-employee-card > div:last-child { min-width: 0; width: 100%; text-align: left; }
  .tvl-salary-card-side .tvl-transaction-actions, .tvl-employee-card .tvl-transaction-actions { justify-content: flex-start; }
  .tvl-repeat-head { align-items: stretch; flex-direction: column; }
  .tvl-repeat-row { grid-template-columns: 1fr; }
  .tvl-remove-row { width: 100%; }
  .tvl-total-box { grid-template-columns: 1fr; }
  .tvl-preview-head { align-items: flex-start; flex-direction: column; }
  .tvl-preview-head img { width: 100%; }
  .tvl-preview-head > div { text-align: left; }
  .tvl-preview-info { grid-template-columns: 1fr; }
  .tvl-preview-net { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 420px) {
  .tvl-nav-button { font-size: 9px; }
  .tvl-nav-button svg { width: 20px; height: 20px; }
}


/* Exact PDF preview before download */
.tvl-field-help { display: block; margin-top: 6px; color: var(--tvl-muted); font-size: 11px; }
.tvl-preview-description { margin: 6px 0 0; color: var(--tvl-muted); }
.tvl-pdf-preview-shell { max-width: 920px; margin: 0 auto 24px; padding: 18px; border: 1px solid #cbdcf1; border-radius: 18px; background: #e9eef5; box-shadow: 0 12px 34px rgba(27, 64, 110, .09); }
.tvl-pdf-preview-image { display: block; width: 100%; height: auto; border-radius: 8px; background: #fff; box-shadow: 0 6px 22px rgba(25, 48, 78, .15); }
.tvl-pdf-preview-loading { min-height: 360px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--tvl-muted); text-align: center; }
.tvl-pdf-preview-loading[hidden] { display: none !important; }
.tvl-spinner { width: 34px; height: 34px; border: 4px solid #cbdcf1; border-top-color: #0b66b2; border-radius: 50%; animation: tvl-spin .8s linear infinite; }
@keyframes tvl-spin { to { transform: rotate(360deg); } }
@media (max-width: 640px) { .tvl-pdf-preview-shell { padding: 8px; border-radius: 12px; } .tvl-pdf-preview-loading { min-height: 240px; } }
