/* Finance shared Material 3 layer — loaded after legacy inline styles. */
:root {
  --fm3-primary:#0b57d0;
  --fm3-on-primary:#fff;
  --fm3-primary-container:#d3e3fd;
  --fm3-on-primary-container:#041e49;
  --fm3-bg:#f8fafd;
  --fm3-surface:#fff;
  --fm3-surface-2:#f1f3f4;
  --fm3-line:#dadce0;
  --fm3-text:#202124;
  --fm3-muted:#5f6368;
  --fm3-green:#137333;
  --fm3-red:#b3261e;
  --fm3-yellow:#b06000;
  --fm3-shadow:0 1px 2px rgba(60,64,67,.12),0 1px 3px rgba(60,64,67,.08);
}
html[data-finance-theme="dark"] {
  --fm3-primary:#a8c7fa;
  --fm3-on-primary:#062e6f;
  --fm3-primary-container:#394457;
  --fm3-on-primary-container:#d3e3fd;
  --fm3-bg:#111315;
  --fm3-surface:#202124;
  --fm3-surface-2:#292a2d;
  --fm3-line:#3c4043;
  --fm3-text:#e8eaed;
  --fm3-muted:#bdc1c6;
  --fm3-green:#81c995;
  --fm3-red:#f28b82;
  --fm3-yellow:#fdd663;
  --fm3-shadow:0 1px 3px rgba(0,0,0,.5);
  color-scheme:dark;
}
body.standard-page,body.detail-page,body.login-page,body.sign-page {
  background:var(--fm3-bg)!important;color:var(--fm3-text)!important;
  font-family:Roboto,"Google Sans","Segoe UI",Arial,sans-serif!important;
}
body.standard-page,body.standard-page *:not(i),
body.detail-page,body.detail-page *:not(i),
body.login-page,body.login-page *:not(i),
body.sign-page,body.sign-page *:not(i) {
  font-family:Roboto,"Google Sans","Segoe UI",Arial,sans-serif!important;
}
body.standard-page .app-shell { grid-template-columns:280px minmax(0,1fr)!important;background:var(--fm3-bg)!important; }
body.standard-page.finance-sidebar-collapsed .app-shell { grid-template-columns:0 minmax(0,1fr)!important; }
body.standard-page .topbar {
  width:280px!important;padding:20px 16px 24px!important;gap:18px!important;
  background:var(--fm3-surface)!important;border-right:1px solid var(--fm3-line)!important;
  color:var(--fm3-text)!important;box-shadow:none!important;
  overflow-y:auto!important;scrollbar-width:thin;scrollbar-color:var(--fm3-line) transparent;
}
body.standard-page .brand { padding:2px 4px 14px!important;border:0!important; }
body.standard-page .brand-stack { display:grid!important;grid-template-columns:48px minmax(0,1fr)!important;gap:12px!important;align-items:center!important; }
body.standard-page .brand-mark {
  width:48px!important;height:48px!important;border:1px solid var(--fm3-line)!important;
  border-radius:12px!important;background:#fff!important;box-shadow:none!important;
}
body.standard-page .brand-text {
  color:var(--fm3-text)!important;font-size:16px!important;font-weight:500!important;line-height:1.2!important;
  white-space:normal!important;overflow:visible!important;
}
body.standard-page .brand-text small { margin-top:4px!important;color:var(--fm3-muted)!important;font-size:13px!important;font-weight:400!important; }
body.standard-page .sidebar-section { gap:4px!important; }
body.standard-page .sidebar-label {
  margin:0!important;padding:0 16px 8px!important;color:var(--fm3-muted)!important;
  font-size:11px!important;font-weight:700!important;letter-spacing:.08em!important;
}
body.standard-page .nav { gap:4px!important; }
body.standard-page .nav-link {
  display:grid!important;grid-template-columns:28px minmax(0,1fr)!important;align-items:center!important;
  gap:16px!important;min-height:48px!important;margin:0!important;padding:0 18px!important;
  border:0!important;border-radius:24px!important;background:transparent!important;
  color:var(--fm3-muted)!important;font-size:14px!important;font-weight:500!important;box-shadow:none!important;
}
body.standard-page .nav-link:hover { background:var(--fm3-surface-2)!important;color:var(--fm3-text)!important; }
body.standard-page .nav-link.active { background:var(--fm3-primary-container)!important;color:var(--fm3-primary)!important; }
body.standard-page .nav-link svg { width:20px!important;height:20px!important; }
body.standard-page .sidebar-profile {
  margin-top:auto!important;padding:16px!important;border:1px solid var(--fm3-line)!important;
  border-radius:20px!important;background:var(--fm3-surface)!important;color:var(--fm3-text)!important;box-shadow:none!important;
}
body.standard-page .profile-avatar {
  width:38px!important;height:38px!important;border-radius:50%!important;
  background:var(--fm3-primary-container)!important;color:var(--fm3-primary)!important;
}
body.standard-page .sidebar-profile strong { color:var(--fm3-text)!important;font-weight:500!important; }
body.standard-page .sidebar-profile span { color:var(--fm3-muted)!important; }
.finance-theme-toggle {
  display:flex!important;align-items:center!important;gap:10px!important;width:100%!important;
  min-height:42px!important;margin:0 0 14px!important;padding:0 13px!important;border:0!important;
  border-radius:14px!important;background:var(--fm3-surface-2)!important;color:var(--fm3-text)!important;
  font-size:13px!important;font-weight:500!important;
}
.finance-theme-toggle:hover { background:var(--fm3-primary-container)!important;color:var(--fm3-primary)!important; }
.finance-theme-toggle svg { width:19px;height:19px; }
body.standard-page .sidebar-profile .btn {
  min-height:40px!important;border:1px solid var(--fm3-line)!important;border-radius:999px!important;
  background:transparent!important;color:var(--fm3-primary)!important;
}
body.standard-page .content {
  box-sizing:border-box!important;width:calc(100% - 280px)!important;max-width:none!important;
  min-width:0!important;margin:0 0 0 280px!important;padding:24px 28px 40px!important;
  overflow-x:hidden!important;background:var(--fm3-bg)!important;color:var(--fm3-text)!important;
}
body.standard-page .content > * { box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important; }
body.standard-page.finance-sidebar-collapsed .content {
  width:100%!important;margin-left:0!important;
}
body.standard-page .finance-sidebar-toggle {
  left:280px!important;z-index:1400!important;background:var(--fm3-surface)!important;
  border-color:var(--fm3-line)!important;color:var(--fm3-primary)!important;box-shadow:var(--fm3-shadow)!important;
}
body.standard-page.finance-sidebar-collapsed .finance-sidebar-toggle { left:0!important; }
body.standard-page .hero,
body.standard-page .page-hero,
body.standard-page .finance-hero,
body.standard-page .dashboard-hero {
  padding:clamp(24px,3vw,36px)!important;border:1px solid #b9d0f3!important;border-radius:26px!important;
  background:radial-gradient(circle at 96% 5%,rgba(255,255,255,.92),transparent 30%),linear-gradient(135deg,#e8f0fe,#d3e3fd)!important;
  color:var(--fm3-text)!important;box-shadow:none!important;
}
body.standard-page .material-symbols-outlined,
body.detail-page .material-symbols-outlined,
body.sign-page .material-symbols-outlined,
body.login-page .material-symbols-outlined {
  font-family:"Material Symbols Outlined"!important;font-weight:normal!important;font-style:normal!important;
  font-size:20px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;
  word-wrap:normal;direction:ltr;font-feature-settings:"liga"!important;-webkit-font-feature-settings:"liga"!important;
  -webkit-font-smoothing:antialiased;
}
.finance-home-header {
  display:flex;align-items:center;justify-content:space-between;gap:24px;margin:0 0 20px;padding:30px 34px;
  border:1px solid #b9d0f3;border-radius:26px;
  background:radial-gradient(circle at 96% 5%,rgba(255,255,255,.92),transparent 30%),linear-gradient(135deg,#e8f0fe,#d3e3fd);
}
.finance-home-eyebrow {
  display:inline-flex;min-height:28px;align-items:center;padding:0 12px;border-radius:999px;
  background:rgba(255,255,255,.64);color:#0b57d0;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;
}
.finance-home-header h1 { margin:12px 0 6px!important;font-size:34px!important;font-weight:500!important;line-height:42px; }
.finance-home-header p { max-width:720px;margin:0;color:var(--fm3-muted);font-size:14px;line-height:21px; }
.finance-home-action { display:inline-flex!important;align-items:center!important;gap:8px!important;white-space:nowrap; }
.finance-home-action .material-symbols-outlined { flex:0 0 20px; }
body.standard-page .finance-transfer-notice-icon {
  display:grid!important;place-items:center!important;
}
body.standard-page .finance-transfer-notice-icon .material-symbols-outlined { font-size:22px!important; }
body.standard-page .cards { display:block!important; }
body.standard-page .cards > * + * { margin-top:20px; }
body.standard-page h1,body.standard-page h2,body.standard-page h3,body.standard-page h4,body.standard-page h5,body.standard-page h6,
body.detail-page h1,body.detail-page h2,body.detail-page h3,body.detail-page h4,body.detail-page h5,body.detail-page h6,
body.sign-page h1,body.sign-page h2,body.sign-page h3,body.sign-page h4,body.sign-page h5,body.sign-page h6 { color:var(--fm3-text)!important;letter-spacing:-.02em; }
body.standard-page .card,body.standard-page .form-card,body.standard-page .panel,
body.standard-page .summary-card,body.standard-page .stat-card,body.standard-page .table-card,
body.standard-page .border.rounded,body.standard-page .border.rounded-3,
body.detail-page .card,body.detail-page .border.rounded,body.detail-page .border.rounded-3,
body.sign-page .card,body.login-page .card {
  border:1px solid var(--fm3-line)!important;border-radius:20px!important;
  background:var(--fm3-surface)!important;color:var(--fm3-text)!important;box-shadow:var(--fm3-shadow)!important;
}
body.standard-page .finance-transfer-notice,
body.standard-page .finance-summary-card,
body.standard-page .finance-requests-card,
body.standard-page .finance-filter-shell,
body.standard-page .finance-advanced-filter,
body.standard-page .finance-guide-panel,
body.standard-page .quick-filter-panel,
body.standard-page .status-legend-panel,
body.standard-page .table-mini-desktop,
body.standard-page .table-mini-wrap {
  border-color:var(--fm3-line)!important;background:var(--fm3-surface)!important;
  color:var(--fm3-text)!important;box-shadow:var(--fm3-shadow)!important;
}
body.standard-page .finance-summary-card,
body.standard-page .finance-summary-card.warning,
body.standard-page .finance-summary-card.total {
  position:relative!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important;
  min-height:180px!important;padding:22px!important;border:1px solid var(--fm3-line)!important;
  border-radius:20px!important;background:var(--fm3-surface)!important;color:var(--fm3-text)!important;
  box-shadow:var(--fm3-shadow)!important;transform:none!important;
}
body.standard-page .finance-summary-card:hover,
body.standard-page .finance-summary-card.warning:hover,
body.standard-page .finance-summary-card.total:hover { transform:none!important;box-shadow:var(--fm3-shadow)!important; }
body.standard-page .finance-summary-top { width:100%!important;display:block!important; }
body.standard-page .finance-summary-icon { display:none!important; }
body.standard-page .finance-summary-label {
  color:var(--fm3-muted)!important;font-size:11px!important;font-weight:700!important;
  line-height:16px!important;letter-spacing:.08em!important;text-transform:uppercase!important;
}
body.standard-page .finance-summary-value,
body.standard-page .finance-summary-card.total .finance-summary-value {
  margin:20px 0 0!important;color:var(--fm3-text)!important;
  font-size:36px!important;font-weight:500!important;line-height:44px!important;letter-spacing:-.03em!important;
}
body.standard-page .finance-summary-card.total .finance-summary-value { font-size:32px!important; }
body.standard-page .finance-summary-meta {
  margin-top:auto!important;padding-top:10px!important;color:var(--fm3-muted)!important;
  font-size:13px!important;line-height:19px!important;
}
body.standard-page .finance-summary-grid .finance-summary-card:nth-child(1) {
  border-left:4px solid #1a73e8!important;
}
body.standard-page .finance-summary-grid .finance-summary-card:nth-child(2) {
  border-left:4px solid #34a853!important;
}
body.standard-page .finance-summary-grid .finance-summary-card:nth-child(3) {
  border-left:4px solid #f9ab00!important;
}
body.standard-page .finance-summary-grid .finance-summary-card:nth-child(4) {
  border-left:4px solid #d93025!important;
}
body.standard-page .finance-flow-step {
  border-color:var(--fm3-line)!important;background:var(--fm3-surface)!important;color:var(--fm3-text)!important;
}
body.standard-page .finance-flowchart {
  grid-template-columns:repeat(7,minmax(150px,1fr))!important;
  gap:8px!important;overflow-x:auto!important;overflow-y:hidden!important;
  padding:2px 0 8px!important;scrollbar-width:thin;scrollbar-color:var(--fm3-line) transparent;
}
body.standard-page .finance-flow-step {
  min-height:112px!important;padding:12px 13px!important;border-radius:16px!important;
}
body.standard-page .finance-flow-note {
  grid-column:1 / -1!important;min-width:max-content;
}
body.standard-page .finance-flow-step strong,
body.standard-page .finance-summary-label,
body.standard-page .finance-summary-value,
body.standard-page .finance-requests-title {
  color:var(--fm3-text)!important;
}
body.standard-page .finance-flow-step span,
body.standard-page .finance-flow-note,
body.standard-page .finance-summary-meta,
body.standard-page .finance-requests-subtitle {
  color:var(--fm3-muted)!important;
}
body.standard-page .card-header,body.standard-page .form-header,
body.detail-page .card-header,body.sign-page .card-header {
  background:var(--fm3-surface)!important;border-color:var(--fm3-line)!important;color:var(--fm3-text)!important;
}
body.standard-page input:not([type=checkbox]):not([type=radio]),body.standard-page select,body.standard-page textarea,
body.detail-page input:not([type=checkbox]):not([type=radio]),body.detail-page select,body.detail-page textarea,
body.sign-page input:not([type=checkbox]):not([type=radio]),body.sign-page select,body.sign-page textarea,
body.login-page input:not([type=checkbox]):not([type=radio]) {
  min-height:48px!important;border:1px solid var(--fm3-line)!important;border-radius:12px!important;
  background:var(--fm3-surface)!important;color:var(--fm3-text)!important;box-shadow:none!important;
}
input::placeholder,textarea::placeholder { color:var(--fm3-muted)!important;opacity:.8; }
input:focus,select:focus,textarea:focus {
  border-color:var(--fm3-primary)!important;outline:0!important;
  box-shadow:0 0 0 4px color-mix(in srgb,var(--fm3-primary) 14%,transparent)!important;
}
.form-label,label,.form-text,.text-muted { color:var(--fm3-muted)!important; }
.btn {
  min-height:42px!important;padding:9px 18px!important;border-radius:999px!important;font-weight:500!important;box-shadow:none!important;
}
.btn-primary,.btn-success { background:var(--fm3-primary)!important;border-color:var(--fm3-primary)!important;color:var(--fm3-on-primary)!important; }
.btn-outline-primary,.btn-outline-secondary,.btn-light {
  background:transparent!important;border-color:var(--fm3-line)!important;color:var(--fm3-primary)!important;
}
.btn-outline-primary:hover,.btn-outline-secondary:hover,.btn-light:hover { background:var(--fm3-primary-container)!important;border-color:transparent!important; }
.table-responsive { border:1px solid var(--fm3-line)!important;border-radius:18px!important;background:var(--fm3-surface)!important; }
table.table { --bs-table-bg:var(--fm3-surface);--bs-table-color:var(--fm3-text);--bs-table-border-color:var(--fm3-line);color:var(--fm3-text)!important; border-collapse:collapse!important; }
table.table thead th {
  background:var(--fm3-surface)!important;color:var(--fm3-muted)!important;
  font-size:12px!important;font-weight:500!important;letter-spacing:.05em!important;text-transform:uppercase;
  padding:14px 16px!important;border:0!important;border-bottom:1px solid var(--fm3-line)!important;
}
table.table td {
  background:var(--fm3-surface)!important;color:var(--fm3-text)!important;
  border:0!important;border-bottom:1px solid var(--fm3-line)!important;
  vertical-align:middle!important;padding:14px 16px!important;
}
table.table tbody tr:last-child td { border-bottom:0!important; }
table.table tbody tr:hover td {
  background:color-mix(in srgb,var(--fm3-primary) 8%,transparent)!important;
  box-shadow:inset 0 0 0 9999px color-mix(in srgb,var(--fm3-primary) 8%,transparent)!important;
}
body.standard-page table.table tr.needs-action td {
  background:color-mix(in srgb,var(--fm3-yellow) 8%,var(--fm3-surface))!important;
}
body.standard-page table.table tr.row-complete td {
  background:color-mix(in srgb,var(--fm3-green) 8%,var(--fm3-surface))!important;
}
body.standard-page table.table tr.deadline-overdue td {
  background:color-mix(in srgb,var(--fm3-red) 8%,var(--fm3-surface))!important;
}
.badge { border-radius:999px!important;font-weight:500!important; }
.text-bg-warning,.badge.bg-warning { background:#fef7e0!important;color:#7a4f01!important; }
.text-bg-info,.badge.bg-info { background:#e8f0fe!important;color:#174ea6!important; }
.text-bg-success,.badge.bg-success { background:#e6f4ea!important;color:#137333!important; }
.text-bg-danger,.badge.bg-danger { background:#fce8e6!important;color:#a50e0e!important; }
.text-bg-secondary,.badge.bg-secondary { background:#f1f3f4!important;color:#3c4043!important; }
.modal-content {
  border:1px solid var(--fm3-line)!important;border-radius:24px!important;
  background:var(--fm3-surface)!important;color:var(--fm3-text)!important;box-shadow:0 24px 64px rgba(0,0,0,.28)!important;
}
.modal-header,.modal-footer { border-color:var(--fm3-line)!important; }
.modal-backdrop.show { opacity:.45!important;backdrop-filter:blur(3px); }
.alert { border-radius:14px!important;box-shadow:none!important; }
.mobile-header { background:var(--fm3-surface)!important;border-color:var(--fm3-line)!important;color:var(--fm3-text)!important; }
body.detail-page,body.sign-page,body.login-page { background:var(--fm3-bg)!important; }
body.detail-page .content,body.sign-page .content { background:var(--fm3-bg)!important;color:var(--fm3-text)!important; }
html[data-finance-theme="dark"] body.standard-page .hero,
html[data-finance-theme="dark"] body.standard-page .page-hero,
html[data-finance-theme="dark"] body.standard-page .finance-hero,
html[data-finance-theme="dark"] body.standard-page .dashboard-hero {
  background:linear-gradient(135deg,#1f2d40,#263a55)!important;border-color:#405575!important;
}
html[data-finance-theme="dark"] .finance-home-header {
  background:linear-gradient(135deg,#1f2d40,#263a55)!important;border-color:#405575!important;
}
html[data-finance-theme="dark"] .finance-home-eyebrow { background:#394457;color:#d3e3fd; }
html[data-finance-theme="dark"] .text-bg-warning,
html[data-finance-theme="dark"] .badge.bg-warning { background:#4d4530!important;color:#fdd663!important; }
html[data-finance-theme="dark"] .text-bg-info,
html[data-finance-theme="dark"] .badge.bg-info { background:#394457!important;color:#d3e3fd!important; }
html[data-finance-theme="dark"] .text-bg-success,
html[data-finance-theme="dark"] .badge.bg-success { background:#294436!important;color:#81c995!important; }
html[data-finance-theme="dark"] .text-bg-danger,
html[data-finance-theme="dark"] .badge.bg-danger { background:#512f2d!important;color:#f28b82!important; }
html[data-finance-theme="dark"] .text-bg-secondary,
html[data-finance-theme="dark"] .badge.bg-secondary { background:#303134!important;color:#bdc1c6!important; }
html[data-finance-theme="dark"] .bg-light { background:var(--fm3-surface-2)!important; }
html[data-finance-theme="dark"] .text-dark { color:var(--fm3-text)!important; }
html[data-finance-theme="dark"] .btn-close { filter:invert(1) grayscale(1); }
html[data-finance-theme="dark"] body.standard-page .brand {
  background:transparent!important;color:var(--fm3-text)!important;
}
html[data-finance-theme="dark"] body.standard-page .finance-transfer-notice,
html[data-finance-theme="dark"] body.standard-page .finance-summary-card,
html[data-finance-theme="dark"] body.standard-page .finance-summary-card.total,
html[data-finance-theme="dark"] body.standard-page .finance-summary-card.warning,
html[data-finance-theme="dark"] body.standard-page .finance-requests-card,
html[data-finance-theme="dark"] body.standard-page .finance-requests-card > .card-header,
html[data-finance-theme="dark"] body.standard-page .finance-requests-card > .card-body,
html[data-finance-theme="dark"] body.standard-page .finance-filter-panel,
html[data-finance-theme="dark"] body.standard-page .finance-control-section,
html[data-finance-theme="dark"] body.standard-page .finance-filter-shell,
html[data-finance-theme="dark"] body.standard-page .finance-advanced-filter,
html[data-finance-theme="dark"] body.standard-page .finance-guide-panel,
html[data-finance-theme="dark"] body.standard-page .quick-filter-panel,
html[data-finance-theme="dark"] body.standard-page .status-legend-panel,
html[data-finance-theme="dark"] body.standard-page .table-mini-desktop {
  background:var(--fm3-surface)!important;border-color:var(--fm3-line)!important;color:var(--fm3-text)!important;
}
html[data-finance-theme="dark"] body.standard-page .finance-transfer-notice-meta,
html[data-finance-theme="dark"] body.standard-page .finance-summary-icon {
  background:var(--fm3-surface-2)!important;border-color:var(--fm3-line)!important;color:var(--fm3-muted)!important;
}
html[data-finance-theme="dark"] body.standard-page .finance-summary-card.warning .finance-summary-icon {
  background:#4d4530!important;border-color:#6b5d32!important;color:#fdd663!important;
}
html[data-finance-theme="dark"] body.standard-page .finance-transfer-notice-meta strong {
  color:var(--fm3-text)!important;
}
html[data-finance-theme="dark"] body.standard-page .finance-transfer-notice-meta span {
  color:var(--fm3-muted)!important;
}
html[data-finance-theme="dark"] body.standard-page .finance-flow-step,
html[data-finance-theme="dark"] body.standard-page .finance-flow-step.finish,
html[data-finance-theme="dark"] body.standard-page .finance-flow-step.optional {
  background:var(--fm3-surface)!important;border-color:var(--fm3-line)!important;color:var(--fm3-text)!important;
}
html[data-finance-theme="dark"] body.standard-page .finance-flow-step strong,
html[data-finance-theme="dark"] body.standard-page .finance-flow-step.finish strong,
html[data-finance-theme="dark"] body.standard-page .finance-summary-label,
html[data-finance-theme="dark"] body.standard-page .finance-summary-value,
html[data-finance-theme="dark"] body.standard-page .finance-summary-card.total .finance-summary-value,
html[data-finance-theme="dark"] body.standard-page .finance-requests-card h5,
html[data-finance-theme="dark"] body.standard-page .finance-control-heading strong {
  color:var(--fm3-text)!important;
}
html[data-finance-theme="dark"] body.standard-page .finance-flow-step span,
html[data-finance-theme="dark"] body.standard-page .finance-flow-step.finish span,
html[data-finance-theme="dark"] body.standard-page .finance-summary-meta,
html[data-finance-theme="dark"] body.standard-page .finance-requests-card p,
html[data-finance-theme="dark"] body.standard-page .finance-control-heading span {
  color:var(--fm3-muted)!important;
}
html[data-finance-theme="dark"] body.standard-page .quick-filter-chip,
html[data-finance-theme="dark"] body.standard-page .status-legend a,
html[data-finance-theme="dark"] body.standard-page .deadline-summary .summary-card {
  background:transparent!important;border-color:#5f6368!important;color:var(--fm3-text)!important;
}
html[data-finance-theme="dark"] body.standard-page .quick-filter-chip:hover,
html[data-finance-theme="dark"] body.standard-page .status-legend a:hover,
html[data-finance-theme="dark"] body.standard-page .deadline-summary .summary-card:hover {
  background:var(--fm3-surface-2)!important;color:var(--fm3-text)!important;
}
html[data-finance-theme="dark"] body.standard-page .quick-filter-chip.active,
html[data-finance-theme="dark"] body.standard-page .status-legend a.active,
html[data-finance-theme="dark"] body.standard-page .deadline-summary .summary-card.active {
  background:var(--fm3-primary-container)!important;border-color:transparent!important;color:var(--fm3-on-primary-container)!important;
}
html[data-finance-theme="dark"] .agreement-paper,
html[data-finance-theme="dark"] .print-invoice-sheet { color:#000!important;background:#fff!important;color-scheme:light; }

/* Office-style finance table and pagination. */
body.standard-page .table-mini-wrap,
body.standard-page .table-mini-desktop {
  border:1px solid var(--fm3-line)!important;border-radius:18px!important;
  background:var(--fm3-surface)!important;box-shadow:none!important;
}
body.standard-page .finance-pengajuan-table {
  width:100%!important;min-width:1180px!important;height:auto!important;
  border-collapse:separate!important;border-spacing:0!important;
  background:var(--fm3-surface)!important;color:var(--fm3-text)!important;
  font-size:12.5px!important;line-height:1.4!important;
}
body.standard-page .table-sticky-head .finance-pengajuan-table thead th {
  height:48px!important;padding:0 10px!important;background:var(--fm3-surface-2)!important;
  border:0!important;border-bottom:1px solid var(--fm3-line)!important;
  color:var(--fm3-muted)!important;box-shadow:none!important;
  font-size:10.5px!important;font-weight:700!important;letter-spacing:.07em!important;text-transform:uppercase!important;
}
body.standard-page .finance-pengajuan-table tbody tr { height:auto!important; }
body.standard-page .finance-pengajuan-table tbody td,
body.standard-page .finance-pengajuan-table tbody tr:nth-child(even) td {
  height:auto!important;padding:13px 10px!important;background:var(--fm3-surface)!important;
  border:0!important;border-bottom:1px solid var(--fm3-line)!important;
  color:var(--fm3-text)!important;box-shadow:none;
}
body.standard-page .finance-pengajuan-table tbody tr:hover td,
body.standard-page .finance-pengajuan-table tbody tr.is-active-row td {
  --bs-table-bg-state:var(--fm3-surface-2)!important;
  background:var(--fm3-surface-2)!important;box-shadow:inset 0 0 0 9999px var(--fm3-surface-2)!important;
}
body.standard-page .finance-pengajuan-table .cell-primary,
body.standard-page .finance-pengajuan-table .name-cell,
body.standard-page .finance-pengajuan-table .price-cell,
body.standard-page .finance-pengajuan-table .number-cell,
body.standard-page .finance-pengajuan-table .date-cell {
  color:var(--fm3-text)!important;font-weight:500!important;
}
body.standard-page .finance-pengajuan-table .cell-secondary,
body.standard-page .finance-pengajuan-table .invoice-description,
body.standard-page .finance-pengajuan-table .desc-cell .desc-cell-text,
body.standard-page .finance-pengajuan-table .invoice-cell,
body.standard-page .finance-pengajuan-table .creator-cell {
  color:var(--fm3-muted)!important;
}
body.standard-page .finance-pengajuan-table .status-cell {
  border-left:0!important;
}
body.standard-page .finance-filter-panel {
  padding:14px!important;border:1px solid var(--fm3-line)!important;border-radius:18px!important;
  background:var(--fm3-surface-2)!important;
}
body.standard-page .finance-filter-panel #finance-filter-search {
  background:var(--fm3-surface)!important;border-color:transparent!important;
}
body.standard-page .finance-filter-panel #finance-filter-search:focus {
  border-color:var(--fm3-primary)!important;background:var(--fm3-surface)!important;
}
body.standard-page .finance-pengajuan-table .actions-group .btn {
  border:1px solid var(--fm3-line)!important;background:transparent!important;color:var(--fm3-muted)!important;
}
body.standard-page .finance-pengajuan-table .actions-group .btn:hover {
  background:var(--fm3-surface-2)!important;color:var(--fm3-primary)!important;
}
body.standard-page .pagination {
  display:flex!important;align-items:center!important;gap:4px!important;width:max-content!important;max-width:100%!important;
  margin:0 auto!important;padding:5px!important;border:1px solid var(--fm3-line)!important;
  border-radius:999px!important;background:var(--fm3-surface)!important;box-shadow:var(--fm3-shadow)!important;
}
body.standard-page .pagination .page-link {
  display:grid!important;place-items:center!important;min-width:36px!important;height:36px!important;padding:0 10px!important;
  border:0!important;border-radius:999px!important;background:transparent!important;color:var(--fm3-primary)!important;
}
body.standard-page .pagination .page-item.active .page-link {
  background:var(--fm3-primary)!important;color:var(--fm3-on-primary)!important;
}
body.standard-page .pagination .page-item.disabled .page-link {
  background:transparent!important;color:var(--fm3-muted)!important;opacity:.65;
}
body.standard-page .pagination .finance-page-ellipsis { min-width:28px!important;padding:0!important; }
html[data-finance-theme="dark"] body.standard-page .topbar {
  background:var(--fm3-surface)!important;border-color:var(--fm3-line)!important;
}
html[data-finance-theme="dark"] body.standard-page .nav-link { color:#bdc1c6!important; }
html[data-finance-theme="dark"] body.standard-page .nav-link.active {
  background:var(--fm3-primary-container)!important;color:var(--fm3-on-primary-container)!important;
}
html[data-finance-theme="dark"] body.standard-page .sidebar-profile {
  background:var(--fm3-surface)!important;border-color:var(--fm3-line)!important;
}
html[data-finance-theme="dark"] body.standard-page .table-mini-desktop::-webkit-scrollbar-thumb {
  background:#5f6368!important;
}

/* Pengajuan form — Material 3 form composition. */
body.standard-page .finance-pengajuan-form-card {
  width:min(100%,1280px)!important;margin:6px auto 36px!important;overflow:hidden!important;
  border:1px solid var(--fm3-line)!important;border-radius:26px!important;
  background:var(--fm3-surface)!important;box-shadow:var(--fm3-shadow)!important;
}
body.standard-page .finance-pengajuan-form-card > .card-header {
  min-height:124px!important;padding:26px 30px!important;
  background:radial-gradient(circle at 95% 10%,rgba(255,255,255,.9),transparent 28%),linear-gradient(135deg,#e8f0fe,#d3e3fd)!important;
  border-bottom:1px solid #b9d0f3!important;
}
body.standard-page .finance-pengajuan-form-card > .card-header h5 {
  color:var(--fm3-text)!important;font-size:28px!important;font-weight:500!important;line-height:36px!important;letter-spacing:-.025em!important;
}
body.standard-page .finance-pengajuan-form-card > .card-header small {
  display:block!important;margin-top:4px!important;color:var(--fm3-muted)!important;font-size:14px!important;
}
body.standard-page .finance-pengajuan-form-card > .card-body { padding:28px 30px 36px!important; }
body.standard-page #pengajuan-form { width:100%!important;max-width:1160px!important;margin:0 auto!important; }
body.standard-page #pengajuan-form > .mb-3,
body.standard-page #pengajuan-form > .row { margin-bottom:22px!important; }
body.standard-page #pengajuan-form .form-label {
  margin-bottom:8px!important;color:var(--fm3-text)!important;font-size:13px!important;font-weight:500!important;
}
body.standard-page #pengajuan-form .form-control,
body.standard-page #pengajuan-form .form-select {
  min-height:52px!important;padding:13px 15px!important;border:1px solid var(--fm3-line)!important;
  border-radius:14px!important;background:var(--fm3-surface)!important;color:var(--fm3-text)!important;
  font-size:15px!important;box-shadow:none!important;
}
body.standard-page #pengajuan-form .form-control:hover,
body.standard-page #pengajuan-form .form-select:hover { border-color:#aeb4ba!important; }
body.standard-page #pengajuan-form .form-control:focus,
body.standard-page #pengajuan-form .form-select:focus {
  border-color:var(--fm3-primary)!important;box-shadow:0 0 0 4px color-mix(in srgb,var(--fm3-primary) 14%,transparent)!important;
}
body.standard-page #pengajuan-form .alert-light {
  padding:16px 18px!important;border:0!important;border-radius:16px!important;
  background:var(--fm3-primary-container)!important;color:var(--fm3-on-primary-container)!important;
  font-size:13px!important;line-height:20px!important;
}
body.standard-page #pengajuan-form > .mb-3 .d-grid.gap-2 > div {
  padding:14px 16px!important;border:1px solid var(--fm3-line)!important;border-radius:16px!important;
  background:var(--fm3-surface)!important;
}
body.standard-page #pengajuan-form .form-check-inline {
  position:relative!important;margin:4px 6px 4px 0!important;padding:0!important;
}
body.standard-page #pengajuan-form .form-check-inline .form-check-input {
  position:absolute!important;width:1px!important;height:1px!important;margin:0!important;opacity:0!important;
}
body.standard-page #pengajuan-form .form-check-inline .form-check-label {
  display:inline-flex!important;align-items:center!important;min-height:40px!important;padding:8px 14px!important;
  border:1px solid var(--fm3-line)!important;border-radius:999px!important;
  background:transparent!important;color:var(--fm3-text)!important;font-size:14px!important;font-weight:500!important;cursor:pointer;
}
body.standard-page #pengajuan-form .form-check-inline .form-check-input:checked + .form-check-label {
  padding-left:13px!important;background:var(--fm3-primary-container)!important;border-color:transparent!important;
  color:var(--fm3-on-primary-container)!important;
}
body.standard-page #pengajuan-form .form-check-inline .form-check-input:checked + .form-check-label::before {
  content:"✓";margin-right:7px;font-weight:700;
}
body.standard-page #pengajuan-form .finance-tax-option {
  min-height:84px!important;padding:16px 18px!important;border:1px solid var(--fm3-line)!important;
  border-radius:18px!important;background:var(--fm3-surface-2)!important;
}
body.standard-page #pengajuan-form .finance-tax-option > input[type="checkbox"] {
  position:relative!important;width:44px!important;height:24px!important;min-height:24px!important;margin:0!important;
  appearance:none!important;border:2px solid var(--fm3-muted)!important;border-radius:999px!important;
  background:transparent!important;cursor:pointer!important;transition:.18s ease;
}
body.standard-page #pengajuan-form .finance-tax-option > input[type="checkbox"]::after {
  content:"";position:absolute;top:3px;left:3px;width:14px;height:14px;border-radius:50%;
  background:var(--fm3-muted);transition:.18s ease;
}
body.standard-page #pengajuan-form .finance-tax-option > input[type="checkbox"]:checked {
  border-color:var(--fm3-primary)!important;background:var(--fm3-primary)!important;
}
body.standard-page #pengajuan-form .finance-tax-option > input[type="checkbox"]:checked::after {
  left:23px;background:var(--fm3-on-primary);
}
body.standard-page #pengajuan-form .finance-tax-rate {
  padding:8px 12px!important;border-radius:999px!important;
  background:var(--fm3-primary-container)!important;color:var(--fm3-on-primary-container)!important;
}
body.standard-page #pengajuan-form .border.rounded-4,
body.standard-page #pengajuan-form section {
  border:1px solid var(--fm3-line)!important;border-radius:20px!important;
  background:var(--fm3-surface-2)!important;box-shadow:none!important;
}
body.standard-page #pengajuan-form .table-responsive {
  border:1px solid var(--fm3-line)!important;border-radius:18px!important;background:var(--fm3-surface)!important;
}
body.standard-page #pengajuan-form table thead th {
  background:var(--fm3-surface-2)!important;color:var(--fm3-muted)!important;border-color:var(--fm3-line)!important;
}
body.standard-page #pengajuan-form table tbody td {
  padding:12px!important;background:var(--fm3-surface)!important;color:var(--fm3-text)!important;
  border-color:var(--fm3-line)!important;vertical-align:top!important;
}
body.standard-page #pengajuan-form table tbody td .form-control,
body.standard-page #pengajuan-form table tbody td .form-select,
body.standard-page #pengajuan-form table tbody td .btn {
  margin-top:0!important;
}
html[data-finance-theme="dark"] body.standard-page .finance-pengajuan-form-card > .card-header {
  background:linear-gradient(135deg,#1f2d40,#263a55)!important;border-color:#405575!important;
}
html[data-finance-theme="dark"] body.standard-page #pengajuan-form > .mb-3 .d-grid.gap-2 > div,
html[data-finance-theme="dark"] body.standard-page #pengajuan-form .finance-tax-option {
  background:var(--fm3-surface-2)!important;border-color:var(--fm3-line)!important;
}
@media(max-width:700px) {
  body.standard-page .finance-pengajuan-form-card > .card-header {
    min-height:0!important;padding:20px!important;align-items:flex-start!important;gap:16px!important;
  }
  body.standard-page .finance-pengajuan-form-card > .card-body { padding:20px!important; }
}

/* Request detail — Google issue-detail composition. */
body.standard-page .request-detail-modal .modal-dialog {
  width:min(1320px,calc(100vw - 32px))!important;max-width:none!important;margin:16px auto!important;
}
body.standard-page .request-detail-modal .modal-content {
  height:calc(100vh - 32px)!important;border-radius:26px!important;overflow:hidden!important;
  background:var(--fm3-surface)!important;
}
body.standard-page .request-detail-modal .modal-header {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  min-height: 82px !important;
  padding: 24px 24px 16px !important;
  background: var(--fm3-surface) !important;
  border-bottom: 1px solid var(--fm3-line) !important;
  color: var(--fm3-text) !important;
  border-radius: 26px 26px 0 0 !important;
}
body.standard-page .request-detail-modal .modal-header::before,
body.standard-page .request-detail-modal .modal-header::after {
  display: none !important;
  content: none !important;
}
body.standard-page .request-detail-modal .modal-title {
  color: var(--fm3-text) !important;
  font-family: Roboto, "Google Sans", "Segoe UI", Arial, sans-serif !important;
  font-size: 24px !important;
  font-weight: 400 !important;
  line-height: 32px !important;
  letter-spacing: 0 !important;
}
body.standard-page .request-detail-modal .modal-header .small {
  color: var(--fm3-muted) !important;
  opacity: 1 !important;
}
body.standard-page .request-detail-modal .btn-close {
  width: 40px !important;
  height: 40px !important;
  border: 1px solid var(--fm3-line) !important;
  border-radius: 50% !important;
  background-color: var(--fm3-surface) !important;
  background-size: 10px !important;
  opacity: 1 !important;
  filter: none !important;
  transition: background-color 0.2s ease !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: 0 0 40px !important;
}
body.standard-page .request-detail-modal .btn-close:hover {
  background-color: color-mix(in srgb, var(--fm3-text) 8%, transparent) !important;
  border-color: var(--fm3-line) !important;
  opacity: 1 !important;
}
body.standard-page .request-detail-modal .modal-body { padding:0!important;background:var(--fm3-bg)!important; }
body.standard-page .request-detail-frame { width:100%!important;height:100%!important;border:0!important;background:var(--fm3-bg)!important; }
body.detail-page.embedded-detail .content {
  width:100%!important;max-width:none!important;margin:0!important;padding:18px!important;background:var(--fm3-bg)!important;
}
body.detail-page .print-actions {
  position:sticky!important;top:0!important;z-index:20!important;display:flex!important;align-items:center!important;
  flex-wrap:wrap!important;gap:8px!important;margin:0 0 16px!important;padding:12px 14px!important;
  border:1px solid var(--fm3-line)!important;border-radius:18px!important;background:color-mix(in srgb,var(--fm3-surface) 92%,transparent)!important;
  backdrop-filter:blur(12px);box-shadow:var(--fm3-shadow)!important;
}
body.detail-page .finance-detail-shell { width:100%!important;max-width:1180px!important;margin:0 auto!important;padding:0!important; }
body.detail-page .finance-detail-card {
  border:0!important;border-radius:24px!important;background:transparent!important;box-shadow:none!important;
}
body.detail-page .finance-detail-card > .card-body { padding:0!important; }
body.detail-page .finance-detail-overview {
  padding:24px!important;border:1px solid #b9d0f3!important;border-radius:22px!important;
  background:linear-gradient(135deg,#e8f0fe,#d3e3fd)!important;
}
body.detail-page .finance-detail-overview h5 {
  margin:4px 0 10px!important;color:var(--fm3-text)!important;font-size:28px!important;font-weight:500!important;letter-spacing:-.025em!important;
}
body.detail-page .finance-detail-overview > .small {
  min-width:240px;padding:14px 16px;border-radius:16px;background:rgba(255,255,255,.58);color:var(--fm3-text)!important;
}
body.detail-page .finance-detail-timeline {
  display:grid!important;grid-template-columns:repeat(10,minmax(116px,1fr))!important;gap:8px!important;
  margin:16px 0 0!important;padding:0 0 8px!important;overflow-x:auto!important;scrollbar-width:thin;
}
body.detail-page .finance-detail-step-col { width:auto!important;max-width:none!important;padding:0!important; }
body.detail-page .finance-detail-step {
  position:relative;min-height:126px!important;padding:14px!important;border:1px solid var(--fm3-line)!important;
  border-radius:16px!important;background:var(--fm3-surface)!important;color:var(--fm3-text)!important;
}
body.detail-page .finance-detail-step::before {
  content:"";display:block;width:10px;height:10px;margin-bottom:12px;border-radius:50%;background:#9aa0a6;
}
body.detail-page .finance-detail-step.is-done { background:#edf7ee!important;border-color:#81c995!important; }
body.detail-page .finance-detail-step.is-done::before { background:#34a853; }
body.detail-page .finance-detail-step.is-active { background:var(--fm3-primary-container)!important;border:2px solid var(--fm3-primary)!important; }
body.detail-page .finance-detail-step.is-active::before { background:var(--fm3-primary);box-shadow:0 0 0 5px color-mix(in srgb,var(--fm3-primary) 16%,transparent); }
body.detail-page .finance-detail-step .small { color:var(--fm3-text)!important;font-size:12px!important;line-height:17px!important; }
body.detail-page .finance-detail-step .text-muted { color:var(--fm3-muted)!important;font-size:11px!important; }
body.detail-page .finance-detail-grid { margin-top:18px!important; }
body.detail-page .finance-detail-panel,
body.detail-page .finance-detail-history {
  padding:20px!important;border:1px solid var(--fm3-line)!important;border-radius:20px!important;
  background:var(--fm3-surface)!important;color:var(--fm3-text)!important;box-shadow:var(--fm3-shadow)!important;
}
body.detail-page .finance-detail-panel > .fw-semibold:first-child,
body.detail-page .finance-detail-history > .fw-semibold:first-child {
  margin-bottom:16px!important;font-size:18px!important;font-weight:500!important;
}
body.detail-page .finance-detail-panel .alert { padding:14px 16px!important;border-radius:14px!important; }
body.detail-page .finance-detail-documents > .small {
  display:flex;justify-content:space-between;gap:16px;padding:9px 0;border-bottom:1px solid var(--fm3-line);
}
body.detail-page .finance-detail-documents .transfer-estimate-card {
  border:1px solid var(--fm3-line)!important;border-radius:14px!important;background:var(--fm3-surface-2)!important;
}
body.detail-page .finance-detail-history .table-responsive { border-radius:14px!important; }
html[data-finance-theme="dark"] body.detail-page .finance-detail-overview {
  background:linear-gradient(135deg,#1f2d40,#263a55)!important;border-color:#405575!important;
}
html[data-finance-theme="dark"] body.detail-page .finance-detail-overview > .small {
  background:rgba(32,33,36,.62)!important;
}
html[data-finance-theme="dark"] body.detail-page .finance-detail-step.is-done {
  background:#294436!important;border-color:#3f6b50!important;
}
html[data-finance-theme="dark"] body.detail-page .finance-detail-step.is-active {
  background:var(--fm3-primary-container)!important;
}
@media(max-width:700px) {
  body.standard-page .request-detail-modal .modal-dialog { width:calc(100vw - 12px)!important;margin:6px auto!important; }
  body.standard-page .request-detail-modal .modal-content { height:calc(100vh - 12px)!important;border-radius:18px!important; }
  body.detail-page.embedded-detail .content { padding:10px!important; }
  body.detail-page .finance-detail-overview { padding:18px!important; }
  body.detail-page .finance-detail-overview > .small { width:100%;min-width:0; }
}

/* Combined external signing session. */
body.sign-page .content:has(.combined-sign-shell) {
  width:100%!important;max-width:none!important;margin:0!important;padding:28px!important;background:var(--fm3-bg)!important;
}
.combined-sign-shell { width:min(1180px,100%);margin:0 auto 48px;color:var(--fm3-text); }
.combined-sign-hero {
  display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:20px;padding:30px 34px;
  border:1px solid #b9d0f3;border-radius:26px;
  background:radial-gradient(circle at 96% 5%,rgba(255,255,255,.92),transparent 30%),linear-gradient(135deg,#e8f0fe,#d3e3fd);
}
.combined-sign-eyebrow {
  display:inline-flex;align-items:center;min-height:28px;padding:0 12px;border-radius:999px;
  background:rgba(255,255,255,.65);color:#0b57d0;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;
}
.combined-sign-hero h1 { margin:12px 0 6px!important;font-size:34px!important;font-weight:500!important;line-height:42px;letter-spacing:-.03em; }
.combined-sign-hero p { margin:0;color:var(--fm3-muted); }
.combined-sign-invoice { min-width:220px;padding:16px 18px;border-radius:18px;background:rgba(255,255,255,.68);text-align:right; }
.combined-sign-invoice span,.combined-sign-invoice strong { display:block; }
.combined-sign-invoice span { color:var(--fm3-muted);font-size:11px;text-transform:uppercase;letter-spacing:.07em; }
.combined-sign-invoice strong { margin-top:4px;font-size:18px;font-weight:500; }
.combined-sign-documents { display:grid;gap:14px; }
.combined-sign-document {
  overflow:hidden;border:1px solid var(--fm3-line);border-radius:20px;background:var(--fm3-surface);box-shadow:var(--fm3-shadow);
}
.combined-sign-document > summary {
  display:grid;grid-template-columns:28px minmax(0,1fr) 24px;align-items:center;gap:12px;padding:18px 20px;
  color:var(--fm3-text);cursor:pointer;list-style:none;
}
.combined-sign-document > summary::-webkit-details-marker { display:none; }
.combined-sign-document > summary strong,.combined-sign-document > summary small { display:block; }
.combined-sign-document > summary strong { font-size:16px;font-weight:500; }
.combined-sign-document > summary small { margin-top:3px;color:var(--fm3-muted);font-size:12px; }
.combined-sign-document[open] > summary { border-bottom:1px solid var(--fm3-line); }
.combined-sign-document > summary > .material-symbols-outlined:last-child { transition:transform .18s ease; }
.combined-sign-document[open] > summary > .material-symbols-outlined:last-child { transform:rotate(180deg); }
.combined-sign-agreement { max-height:580px;padding:18px;overflow:auto;background:var(--fm3-surface-2); }
body.sign-page .combined-sign-agreement .agreement-shell { width:210mm!important;max-width:100%!important;margin:0 auto!important; }
body.sign-page .combined-sign-agreement .agreement-paper,
body.sign-page .combined-sign-agreement .agreement-paper * {
  color:#000!important;font-family:"Times New Roman",Times,serif!important;
}
.combined-sign-invoice-preview { padding:22px; }
.combined-sign-parties { display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:18px; }
.combined-sign-parties > div,.combined-sign-bank {
  padding:14px 16px;border:1px solid var(--fm3-line);border-radius:14px;background:var(--fm3-surface-2);
}
.combined-sign-parties span,.combined-sign-bank span { display:block;color:var(--fm3-muted);font-size:11px;text-transform:uppercase;letter-spacing:.06em; }
.combined-sign-parties strong,.combined-sign-bank strong { display:block;margin-top:5px;font-weight:500; }
.combined-sign-invoice-preview .table-responsive { border:1px solid var(--fm3-line);border-radius:14px; }
.combined-sign-invoice-preview .table th { background:var(--fm3-surface-2)!important;color:var(--fm3-muted)!important; }
.combined-sign-invoice-preview .table td,.combined-sign-invoice-preview .table tfoot th { background:var(--fm3-surface)!important;color:var(--fm3-text)!important; }
.combined-sign-bank { margin-top:16px; }
.combined-sign-card {
  margin-top:20px;padding:24px;border:1px solid var(--fm3-line);border-radius:22px;
  background:var(--fm3-surface);box-shadow:var(--fm3-shadow);
}
.combined-sign-card-head { display:flex;align-items:flex-start;gap:14px;margin-bottom:20px; }
.combined-sign-card-head > .material-symbols-outlined {
  display:grid!important;place-items:center;width:44px;height:44px;border-radius:14px;background:var(--fm3-primary-container);color:var(--fm3-primary);
}
.combined-sign-card h2 { margin:0 0 4px!important;font-size:22px!important;font-weight:500!important; }
.combined-sign-card p { margin:0;color:var(--fm3-muted); }
.combined-sign-card .form-control { min-height:52px!important;border-radius:14px!important;background:var(--fm3-surface)!important;color:var(--fm3-text)!important; }
.combined-sign-consent {
  display:flex;align-items:flex-start;gap:12px;margin:18px 0;padding:16px;border:1px solid var(--fm3-line);
  border-radius:16px;background:var(--fm3-surface-2);color:var(--fm3-text)!important;cursor:pointer;
}
.combined-sign-consent input { width:20px;height:20px;flex:0 0 20px;margin-top:1px;accent-color:var(--fm3-primary); }
.combined-sign-canvas-wrap { position:relative;overflow:hidden;border:1px dashed var(--fm3-muted);border-radius:18px;background:#fff; }
.combined-sign-canvas-wrap canvas { display:block;width:100%;height:230px;touch-action:none; }
.combined-sign-canvas-wrap > span {
  position:absolute;inset:auto 0 14px;text-align:center;color:#9aa0a6;font-size:12px;pointer-events:none;
}
.combined-sign-actions { display:flex;justify-content:flex-end;gap:10px;margin-top:16px; }
.combined-sign-actions .btn-primary { display:inline-flex;align-items:center;gap:8px; }
.combined-sign-success {
  display:flex;align-items:flex-start;gap:16px;padding:22px;border:1px solid #81c995;border-radius:20px;background:#e6f4ea;color:#137333;
}
.combined-sign-success > .material-symbols-outlined { font-size:28px!important; }
.combined-sign-success strong { display:block;font-size:18px;font-weight:500; }
.combined-sign-success p { margin:5px 0 0; }
html[data-finance-theme="dark"] .combined-sign-hero {
  background:linear-gradient(135deg,#1f2d40,#263a55);border-color:#405575;
}
html[data-finance-theme="dark"] .combined-sign-eyebrow { background:#394457;color:#d3e3fd; }
html[data-finance-theme="dark"] .combined-sign-invoice { background:rgba(32,33,36,.65); }
html[data-finance-theme="dark"] .combined-sign-success { background:#294436;color:#81c995;border-color:#3f6b50; }
@media(max-width:700px) {
  body.sign-page .content:has(.combined-sign-shell) { padding:12px!important; }
  .combined-sign-hero { align-items:stretch;flex-direction:column;padding:22px; }
  .combined-sign-invoice { min-width:0;text-align:left; }
  .combined-sign-parties { grid-template-columns:1fr; }
  .combined-sign-actions { align-items:stretch;flex-direction:column-reverse; }
  .combined-sign-actions .btn { width:100%;justify-content:center; }
}
@media(max-width:900px) {
  body.standard-page .app-shell { display:block!important; }
  body.standard-page .topbar { width:min(84vw,300px)!important; }
  body.standard-page .content { width:100%!important;margin-left:0!important;padding:82px 14px 28px!important; }
  .finance-home-header { align-items:stretch;flex-direction:column;padding:22px; }
  .finance-home-action { justify-content:center!important;width:100%; }
}
@media print {
  .finance-theme-toggle { display:none!important; }
  body.detail-page .print-actions,
  body.embedded-detail .print-actions {
    display:none!important;
  }
}

/* Dynamic M3 Red Asterisk for Required Form Fields */
body.standard-page .form-label:has(~ :required)::after,
body.standard-page label:has(~ :required)::after,
body.standard-page .form-label:has(~ * :required)::after,
body.standard-page label:has(~ * :required)::after,
body.detail-page .form-label:has(~ :required)::after,
body.detail-page label:has(~ :required)::after,
body.detail-page .form-label:has(~ * :required)::after,
body.detail-page label:has(~ * :required)::after {
  content: " *";
  color: var(--fm3-red) !important;
  font-weight: bold;
}

/* Align form table rows to top so inputs and delete buttons line up perfectly */
#pengajuan-rows td {
  vertical-align: top !important;
  padding-top: 8px !important;
}
#pengajuan-rows td .btn-outline-danger {
  height: 31px !important;
  min-height: 31px !important;
  width: 31px !important;
  min-width: 31px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  line-height: 1 !important;
  margin-top: 0 !important;
}

/* Google Material 3 Form Selection Cards */
body.standard-page .submission-type-intro {
  margin-bottom: 24px !important;
}
body.standard-page .submission-type-intro span {
  display: inline-flex !important;
  align-items: center !important;
  padding: 4px 12px !important;
  border-radius: 999px !important;
  background: var(--fm3-primary-container) !important;
  color: var(--fm3-on-primary-container) !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
}
body.standard-page .submission-type-intro h6 {
  font-size: 28px !important;
  font-weight: 400 !important;
  color: var(--fm3-text) !important;
  margin: 12px 0 6px !important;
}
body.standard-page .submission-type-intro p {
  color: var(--fm3-muted) !important;
  font-size: 14px !important;
}
body.standard-page .submission-type-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(280px, 1fr)) !important;
  gap: 16px !important;
}
@media (max-width: 768px) {
  body.standard-page .submission-type-grid {
    grid-template-columns: 1fr !important;
  }
}
body.standard-page .submission-type-card {
  display: grid !important;
  grid-template-columns: 48px minmax(0, 1fr) 24px !important;
  gap: 16px !important;
  padding: 20px !important;
  border: 1px solid var(--fm3-line) !important;
  border-radius: 20px !important;
  background: var(--fm3-surface) !important;
  color: var(--fm3-text) !important;
  text-decoration: none !important;
  box-shadow: var(--fm3-shadow) !important;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
  height: 100% !important;
}
body.standard-page .submission-type-card:hover {
  background: color-mix(in srgb, var(--fm3-primary) 5%, var(--fm3-surface)) !important;
  border-color: var(--fm3-primary) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
}
html[data-finance-theme="dark"] body.standard-page .submission-type-card:hover {
  background: color-mix(in srgb, var(--fm3-primary) 8%, var(--fm3-surface)) !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4) !important;
}
body.standard-page .submission-type-icon-m3 {
  width: 48px !important;
  height: 48px !important;
  border-radius: 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 22px !important;
  font-weight: 500 !important;
  background: #e3edfc !important;
  color: #0b57d0 !important;
}
html[data-finance-theme="dark"] body.standard-page .submission-type-icon-m3 {
  background: #1b2e4b !important;
  color: #a8c7fa !important;
}
body.standard-page .submission-type-card.is-service .submission-type-icon-m3 {
  background: #e6f4ea !important;
  color: #137333 !important;
}
html[data-finance-theme="dark"] body.standard-page .submission-type-card.is-service .submission-type-icon-m3 {
  background: #1f3525 !important;
  color: #81c995 !important;
}
body.standard-page .submission-type-card.is-rent .submission-type-icon-m3 {
  background: #fef7e0 !important;
  color: #b06000 !important;
}
html[data-finance-theme="dark"] body.standard-page .submission-type-card.is-rent .submission-type-icon-m3 {
  background: #3c2f16 !important;
  color: #fdd663 !important;
}
body.standard-page .submission-type-card.is-mixed .submission-type-icon-m3 {
  background: #fce8e6 !important;
  color: #c5221f !important;
}
html[data-finance-theme="dark"] body.standard-page .submission-type-card.is-mixed .submission-type-icon-m3 {
  background: #37201e !important;
  color: #f28b82 !important;
}
body.standard-page .submission-type-card.is-internal .submission-type-icon-m3 {
  background: #f1f3f4 !important;
  color: #5f6368 !important;
}
html[data-finance-theme="dark"] body.standard-page .submission-type-card.is-internal .submission-type-icon-m3 {
  background: #2d2f31 !important;
  color: #bdc1c6 !important;
}
body.standard-page .submission-type-copy h6 {
  font-size: 18px !important;
  font-weight: 500 !important;
  color: var(--fm3-text) !important;
  margin: 0 0 6px !important;
}
body.standard-page .submission-type-copy p,
body.standard-page .submission-type-copy .text-muted {
  font-size: 13px !important;
  color: var(--fm3-muted) !important;
  margin: 0 !important;
}
body.standard-page .submission-type-example {
  border-top: 1px dashed var(--fm3-line) !important;
  margin-top: 12px !important;
  padding-top: 10px !important;
  font-size: 12px !important;
  color: var(--fm3-muted) !important;
  line-height: 1.5 !important;
}
body.standard-page .submission-type-arrow-m3 {
  align-self: center !important;
  justify-self: end !important;
  color: var(--fm3-primary) !important;
  font-size: 20px !important;
  transition: transform 0.2s ease !important;
}
body.standard-page .submission-type-card:hover .submission-type-arrow-m3 {
  transform: translateX(4px) !important;
}
