@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root{
  --ui-font:'Inter',ui-sans-serif,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;
  --ui-bg:#f4f5f7;
  --ui-surface:#ffffff;
  --ui-surface-soft:#f8f8fa;
  --ui-text:#202124;
  --ui-muted:#5f6368;
  --ui-subtle:#747980;
  --ui-line:#e4e5e7;
  --ui-line-strong:#d4d6da;
  --ui-primary:#673de6;
  --ui-primary-hover:#5530c7;
  --ui-primary-soft:#f1edff;
  --ui-success:#15803d;
  --ui-success-soft:#eefbf3;
  --ui-warning:#9a5b00;
  --ui-warning-soft:#fff7e6;
  --ui-danger:#b42318;
  --ui-danger-soft:#fff1f0;
  --ui-radius:20px;
  --ui-radius-sm:12px;
  --ui-shadow:0 1px 2px rgba(16,24,40,.03),0 8px 24px rgba(16,24,40,.05);
  --ui-shadow-hover:0 12px 34px rgba(16,24,40,.09);
}

html{font-family:var(--ui-font);font-size:16px;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}
body,button,input,select,textarea{font-family:var(--ui-font)!important}
:focus-visible{outline:3px solid rgba(103,61,230,.22);outline-offset:2px}

/* Public and authentication pages */
body:not(.customer-app):not(.owner-page){background:var(--ui-bg)!important;color:var(--ui-text)!important;font-size:15px!important}
body:not(.customer-app):not(.owner-page) .public-head{min-height:76px;background:rgba(255,255,255,.96)!important;border-color:var(--ui-line)!important;box-shadow:0 1px 0 rgba(16,24,40,.02)}
body:not(.customer-app):not(.owner-page) .brand{font-size:15px!important;color:var(--ui-text)!important}
body:not(.customer-app):not(.owner-page) .brand-mark{width:40px;height:40px;border-radius:12px;border-color:var(--ui-line)!important;background:#111827!important;color:#fff!important;font-size:11px!important}
body:not(.customer-app):not(.owner-page) .hero{width:min(1240px,calc(100% - 48px));gap:42px;padding-top:54px}
body:not(.customer-app):not(.owner-page) .hero h1{font-size:clamp(42px,5vw,66px);font-weight:600;color:var(--ui-text)!important;letter-spacing:-.045em}
body:not(.customer-app):not(.owner-page) .hero-lead{color:var(--ui-muted)!important;font-size:18px;line-height:1.7}
body:not(.customer-app):not(.owner-page) .auth-stage,
body:not(.customer-app):not(.owner-page) .auth-card,
body:not(.customer-app):not(.owner-page) .card,
body:not(.customer-app):not(.owner-page) .hero-card{border:1px solid var(--ui-line)!important;background:var(--ui-surface)!important;border-radius:22px!important;box-shadow:var(--ui-shadow)!important}
body:not(.customer-app):not(.owner-page) .auth-stage{padding:22px!important}
body:not(.customer-app):not(.owner-page) .auth-stage-head h2{font-size:27px!important;color:var(--ui-text)!important}
body:not(.customer-app):not(.owner-page) .auth-panel{padding:24px!important;border-color:var(--ui-line)!important;border-radius:18px!important;box-shadow:none!important}
body:not(.customer-app):not(.owner-page) .auth-panel h3{font-size:20px!important}
body:not(.customer-app):not(.owner-page) label{font-size:13.5px!important;color:#34373c!important;font-weight:600!important}
body:not(.customer-app):not(.owner-page) input,
body:not(.customer-app):not(.owner-page) select,
body:not(.customer-app):not(.owner-page) textarea{min-height:50px!important;padding:0 14px!important;border:1px solid var(--ui-line-strong)!important;border-radius:12px!important;background:#fff!important;color:var(--ui-text)!important;font-size:14.5px!important}
body:not(.customer-app):not(.owner-page) textarea{padding-top:12px!important}
body:not(.customer-app):not(.owner-page) input:focus,
body:not(.customer-app):not(.owner-page) select:focus,
body:not(.customer-app):not(.owner-page) textarea:focus{border-color:var(--ui-primary)!important;box-shadow:0 0 0 4px rgba(103,61,230,.12)!important}
body:not(.customer-app):not(.owner-page) .btn{min-height:46px!important;padding:0 18px!important;border-radius:12px!important;border-color:var(--ui-line-strong)!important;background:#fff!important;color:var(--ui-text)!important;font-size:14px!important;font-weight:600!important;box-shadow:none!important}
body:not(.customer-app):not(.owner-page) .btn:hover{border-color:#c7bee8!important;background:#faf9ff!important;color:var(--ui-primary)!important;transform:none!important}
body:not(.customer-app):not(.owner-page) .btn.primary,
body:not(.customer-app):not(.owner-page) .owner-login-button{border-color:var(--ui-primary)!important;background:var(--ui-primary)!important;color:#fff!important}
body:not(.customer-app):not(.owner-page) .btn.primary:hover,
body:not(.customer-app):not(.owner-page) .owner-login-button:hover{background:var(--ui-primary-hover)!important;color:#fff!important}
body:not(.customer-app):not(.owner-page) .auth-mode-switch{padding:5px;border-color:var(--ui-line)!important;background:#f1f1f3!important;border-radius:13px!important}
body:not(.customer-app):not(.owner-page) .auth-mode-switch a,
body:not(.customer-app):not(.owner-page) .auth-mode-switch button{min-height:44px!important;font-size:14px!important;color:var(--ui-muted)!important}
body:not(.customer-app):not(.owner-page) .auth-mode-switch .active{background:#fff!important;color:var(--ui-primary)!important;box-shadow:0 1px 3px rgba(16,24,40,.08)!important}
body:not(.customer-app):not(.owner-page) .badge{min-height:30px!important;padding:0 11px!important;border-color:#d8d0ff!important;background:var(--ui-primary-soft)!important;color:#4d2bb8!important;font-size:12px!important}
body:not(.customer-app):not(.owner-page) .badge.ok,
body:not(.customer-app):not(.owner-page) .badge.success{border-color:#bde7cb!important;background:var(--ui-success-soft)!important;color:var(--ui-success)!important}
body:not(.customer-app):not(.owner-page) .mini-stats>div,
body:not(.customer-app):not(.owner-page) .hero-feature-card{border-color:var(--ui-line)!important;background:rgba(255,255,255,.94)!important;border-radius:16px!important}
body:not(.customer-app):not(.owner-page) .mini-stats strong{font-size:14px!important}.mini-stats span{font-size:12px!important;color:var(--ui-muted)!important}
body:not(.customer-app):not(.owner-page) .muted{color:var(--ui-muted)!important}
body:not(.customer-app):not(.owner-page) .section-head h2{font-size:28px!important;color:var(--ui-text)!important}
body:not(.customer-app):not(.owner-page) .card h3{font-size:18px!important;color:var(--ui-text)!important}
body:not(.customer-app):not(.owner-page) .bullets{font-size:14.5px!important;color:var(--ui-muted)!important;line-height:1.75!important}
body:not(.customer-app):not(.owner-page) .auth-body{background:var(--ui-bg)!important}

/* Customer application */
body.customer-app{
  --bg:var(--ui-bg);
  --surface:var(--ui-surface);
  --surface-2:var(--ui-surface-soft);
  --text:var(--ui-text);
  --muted:var(--ui-muted);
  --line:var(--ui-line);
  --primary:var(--ui-primary);
  --primary-2:var(--ui-primary-hover);
  --primary-soft:var(--ui-primary-soft);
  --nav:#fff;
  --nav-soft:#f1f1f3;
  --shadow:var(--ui-shadow);
  --radius:var(--ui-radius);
  --radius-sm:var(--ui-radius-sm);
  --sidebar:224px;
  --topbar:72px;
  margin:0!important;
  background:var(--ui-bg)!important;
  color:var(--ui-text)!important;
  font-size:15px!important;
  line-height:1.6!important;
}
body.customer-app h1{font-size:clamp(30px,3vw,42px)!important;font-weight:600!important;color:var(--ui-text);letter-spacing:-.035em}
body.customer-app h2{font-size:23px!important;font-weight:600!important;color:var(--ui-text)}
body.customer-app h3{font-size:17px!important;font-weight:600!important;color:var(--ui-text)}
body.customer-app p,body.customer-app .muted,body.customer-app small{color:var(--ui-muted)}
body.customer-app .customer-topbar{height:var(--topbar)!important;padding:0 22px!important;background:rgba(255,255,255,.97)!important;border-bottom:1px solid var(--ui-line)!important;box-shadow:0 1px 0 rgba(16,24,40,.02)!important;backdrop-filter:blur(12px)}
body.customer-app .customer-brand{font-size:14px!important;color:var(--ui-text)!important}
body.customer-app .customer-brand-mark{width:38px;height:38px;border-radius:11px;background:#171717!important;color:#fff!important;box-shadow:none!important}
body.customer-app .customer-brand small{font-size:10px!important;color:var(--ui-subtle)!important;letter-spacing:.04em!important}
body.customer-app .company-switch select{min-height:42px!important;min-width:220px!important;border-color:var(--ui-line)!important;background:#f8f8fa!important;color:var(--ui-text)!important;font-size:13.5px!important;font-weight:600!important}
body.customer-app .topbar-regime,
body.customer-app .customer-plan-summary{min-height:34px;display:inline-flex;align-items:center;padding:0 12px!important;border:1px solid #ddd7f6!important;background:#f6f3ff!important;color:#5136a6!important;font-size:12px!important;font-weight:600!important}
body.customer-app .topbar-icon-link,
body.customer-app .icon-button{width:42px!important;height:42px!important;border:1px solid transparent!important;border-radius:12px!important;color:#34373c!important}
body.customer-app .topbar-icon-link:hover,
body.customer-app .icon-button:hover{border-color:var(--ui-line)!important;background:#f3f3f5!important}
body.customer-app .customer-avatar{width:38px;height:38px;background:#171717!important;color:#fff!important;font-size:13px!important}
body.customer-app .customer-account-link{font-size:13.5px!important;color:var(--ui-text)!important}
body.customer-app .customer-shell{grid-template-columns:var(--sidebar) minmax(0,1fr)!important;background:var(--ui-bg)!important}
body.customer-app .customer-sidebar{width:var(--sidebar)!important;padding:18px 12px!important;background:#fff!important;color:var(--ui-text)!important;border-right:1px solid var(--ui-line)!important;box-shadow:none!important}
body.customer-app .sidebar-context{padding:10px 12px 16px!important;border-bottom:1px solid var(--ui-line)!important}
body.customer-app .sidebar-context span{font-size:10px!important;color:var(--ui-subtle)!important;font-weight:600!important;letter-spacing:.08em!important}
body.customer-app .sidebar-context strong{font-size:13.5px!important;color:var(--ui-text)!important;font-weight:600!important}
body.customer-app .sidebar-context small{font-size:11.5px!important;color:var(--ui-muted)!important}
body.customer-app .customer-sidebar nav{gap:4px!important;padding:14px 0!important}
body.customer-app .nav-item{min-height:45px!important;padding:0 12px!important;border-radius:10px!important;color:#3c4043!important;font-size:14px!important;font-weight:500!important;transition:background-color .15s,color .15s!important}
body.customer-app .nav-item svg{width:20px!important;height:20px!important;stroke-width:1.75!important}
body.customer-app .nav-item:hover{background:#f1f1f3!important;color:#202124!important}
body.customer-app .nav-item.active{background:#ececee!important;color:#171717!important;box-shadow:none!important;font-weight:600!important}
body.customer-app .nav-item.active .icon{color:var(--ui-primary)!important}
body.customer-app .sidebar-secondary{padding:12px!important;border-top:1px solid var(--ui-line)!important}
body.customer-app .sidebar-secondary a{padding:8px 0!important;color:var(--ui-muted)!important;font-size:13px!important;font-weight:500!important}
body.customer-app .sidebar-secondary a:hover{color:var(--ui-text)!important}
body.customer-app .customer-sidebar-foot{border-top:1px solid var(--ui-line)!important}
body.customer-app .customer-main{background:var(--ui-bg)!important}
body.customer-app .customer-content{width:min(1480px,100%)!important;padding:30px 34px 96px!important}
body.customer-app .welcome-hero{min-height:220px!important;padding:32px 36px!important;border:1px solid var(--ui-line)!important;border-radius:22px!important;background:radial-gradient(circle at 88% 8%,rgba(103,61,230,.10),transparent 30%),linear-gradient(135deg,#fff 0%,#fbfaff 58%,#f2edff 100%)!important;color:var(--ui-text)!important;box-shadow:var(--ui-shadow)!important}
body.customer-app .welcome-hero:after{border-color:rgba(103,61,230,.10)!important}
body.customer-app .welcome-hero h1{max-width:800px!important;margin-bottom:12px!important}
body.customer-app .welcome-hero p{font-size:15.5px!important;color:var(--ui-muted)!important}
body.customer-app .eyebrow{font-size:11px!important;color:#6846c7!important;letter-spacing:.1em!important;font-weight:700!important}
body.customer-app .hero-actions{gap:10px!important;margin-top:22px!important}
body.customer-app .btn{min-height:44px!important;padding:0 16px!important;border:1px solid var(--ui-line-strong)!important;border-radius:12px!important;background:#fff!important;color:var(--ui-text)!important;font-size:14px!important;font-weight:600!important;box-shadow:none!important;transform:none!important}
body.customer-app .btn:hover{border-color:#c7bee8!important;background:#faf9ff!important;color:var(--ui-primary)!important;box-shadow:none!important;transform:none!important}
body.customer-app .btn.primary,
body.customer-app .btn-primary,
body.customer-app .btn-floating{border-color:var(--ui-primary)!important;background:var(--ui-primary)!important;color:#fff!important}
body.customer-app .btn.primary:hover,
body.customer-app .btn-primary:hover,
body.customer-app .btn-floating:hover{background:var(--ui-primary-hover)!important;color:#fff!important}
body.customer-app .btn.light,
body.customer-app .btn.ghost,
body.customer-app .btn.glass{border-color:var(--ui-line-strong)!important;background:#fff!important;color:var(--ui-text)!important}
body.customer-app .hero-orbit{width:150px!important;height:150px!important;border-color:#d8d0ff!important;background:#fff!important;box-shadow:inset 0 0 0 13px #f4f1ff!important;color:var(--ui-primary)!important}
body.customer-app .hero-orbit span{font-size:42px!important;font-weight:700!important}
body.customer-app .hero-orbit small{color:var(--ui-muted)!important;font-size:12px!important}
body.customer-app .metric-grid{gap:16px!important;margin-bottom:22px!important}
body.customer-app .metric-card,
body.customer-app .panel,
body.customer-app .card,
body.customer-app .confirm-source,
body.customer-app .confirm-form,
body.customer-app .confirm-section,
body.customer-app .upload-dropzone,
body.customer-app .transaction-toolbar{border:1px solid var(--ui-line)!important;border-radius:20px!important;background:#fff!important;box-shadow:var(--ui-shadow)!important}
body.customer-app .metric-card{min-height:128px!important;padding:22px!important}
body.customer-app .metric-card span{font-size:13px!important;color:var(--ui-muted)!important;font-weight:500!important}
body.customer-app .metric-card strong{font-size:28px!important;font-weight:600!important;color:var(--ui-text)!important}
body.customer-app .metric-card small{font-size:12.5px!important;color:var(--ui-muted)!important}
body.customer-app .metric-card a{font-size:13px!important;color:var(--ui-primary)!important;font-weight:600!important}
body.customer-app .metric-card.attention{border-color:#f3d7a5!important;background:var(--ui-warning-soft)!important}
body.customer-app .panel,
body.customer-app .card{padding:24px!important}
body.customer-app .panel-head,
body.customer-app .section-head{margin-bottom:20px!important}
body.customer-app .panel-head p,
body.customer-app .section-head p{font-size:14px!important;color:var(--ui-muted)!important}
body.customer-app .quick-actions{gap:14px!important}
body.customer-app .quick-actions>a{min-height:175px!important;padding:20px!important;border:1px solid var(--ui-line)!important;border-radius:18px!important;background:linear-gradient(180deg,#fff,#f8f8fb)!important;color:var(--ui-text)!important}
body.customer-app .quick-actions>a:nth-child(1){background:linear-gradient(180deg,#fff,#f2fbf7)!important}
body.customer-app .quick-actions>a:nth-child(2){background:linear-gradient(180deg,#fff,#fff8ec)!important}
body.customer-app .quick-actions>a:nth-child(3){background:linear-gradient(180deg,#fff,#f2f6ff)!important}
body.customer-app .quick-actions>a:hover{border-color:#d2c8f7!important;box-shadow:var(--ui-shadow-hover)!important;transform:translateY(-2px)!important}
body.customer-app .quick-actions strong{font-size:15px!important;font-weight:600!important}
body.customer-app .quick-actions small{font-size:13px!important;color:var(--ui-muted)!important;line-height:1.55!important}
body.customer-app .quick-icon{width:46px!important;height:46px!important;border-radius:14px!important;font-size:12px!important}
body.customer-app .task-list>a,
body.customer-app .work-list>a{padding:15px 3px!important;border-color:#ececef!important}
body.customer-app .task-list strong,
body.customer-app .work-list strong{font-size:14px!important}
body.customer-app .task-list small,
body.customer-app .work-list small{font-size:12.5px!important}
body.customer-app .status-pill,
body.customer-app .badge,
body.customer-app .count-badge{min-height:28px!important;padding:0 10px!important;font-size:11.5px!important;font-weight:600!important}
body.customer-app .status-pill.success,
body.customer-app .badge.ok{background:var(--ui-success-soft)!important;color:var(--ui-success)!important}
body.customer-app .status-pill.warning,
body.customer-app .badge.warning{background:var(--ui-warning-soft)!important;color:var(--ui-warning)!important}
body.customer-app .alert{padding:14px 16px!important;border-radius:14px!important;font-size:13.5px!important}
body.customer-app label{font-size:13.5px!important;color:#34373c!important;font-weight:600!important}
body.customer-app input,
body.customer-app select,
body.customer-app textarea{min-height:48px!important;padding:0 14px!important;border:1px solid var(--ui-line-strong)!important;border-radius:12px!important;background:#fff!important;color:var(--ui-text)!important;font-size:14px!important}
body.customer-app textarea{padding-top:12px!important}
body.customer-app input:focus,
body.customer-app select:focus,
body.customer-app textarea:focus{border-color:var(--ui-primary)!important;box-shadow:0 0 0 4px rgba(103,61,230,.12)!important}
body.customer-app .table-wrap,
body.customer-app .owner-table-wrap{border-color:var(--ui-line)!important;border-radius:16px!important;background:#fff!important}
body.customer-app .table th{padding:13px 14px!important;background:#f8f8fa!important;color:#5f6368!important;font-size:11px!important;letter-spacing:.04em!important}
body.customer-app .table td{padding:14px!important;border-color:#ececef!important;color:#34373c!important;font-size:13.5px!important}
body.customer-app .table tbody tr:hover{background:#faf9ff!important}
body.customer-app .page-title-text{font-size:32px!important;font-weight:600!important;color:var(--ui-text)!important}
body.customer-app .page-subtitle-text{font-size:14px!important;color:var(--ui-muted)!important}
body.customer-app .btn-floating{right:28px!important;bottom:26px!important;min-height:48px!important;padding:0 20px!important;border-radius:999px!important;box-shadow:0 12px 26px rgba(103,61,230,.25)!important}
body.customer-app .legal-disclaimer{font-size:12.5px!important;color:var(--ui-subtle)!important;border-color:var(--ui-line)!important}

/* System owner application */
body.owner-page{
  --owner-primary:var(--ui-primary);
  --owner-primary-soft:var(--ui-primary-soft);
  --owner-primary-strong:var(--ui-primary-hover);
  --owner-ink:var(--ui-text);
  --owner-text:var(--ui-muted);
  --owner-muted:var(--ui-subtle);
  --owner-line:var(--ui-line);
  --owner-line-strong:var(--ui-line-strong);
  --owner-bg:var(--ui-bg);
  --owner-card:var(--ui-surface);
  --owner-card-soft:var(--ui-surface-soft);
  --owner-shadow-sm:var(--ui-shadow);
  --owner-shadow-md:var(--ui-shadow-hover);
  font-size:14px!important;
  line-height:1.6!important;
  background:var(--ui-bg)!important;
  color:var(--ui-text)!important;
}
body.owner-page .owner-layout{grid-template-columns:224px minmax(0,1fr)!important}
body.owner-page .owner-sidebar{padding:18px 12px!important;background:#fff!important;color:var(--ui-text)!important;border-right:1px solid var(--ui-line)!important;box-shadow:none!important}
body.owner-page .owner-brand{padding:8px 10px 18px!important;border-color:var(--ui-line)!important}
body.owner-page .owner-brand-mark{background:#171717!important;border-color:#171717!important;color:#fff!important}
body.owner-page .owner-brand strong{font-size:13px!important;color:var(--ui-text)!important}
body.owner-page .owner-brand small{background:var(--ui-primary-soft)!important;color:#5136a6!important}
body.owner-page .owner-nav-title{font-size:10px!important;color:var(--ui-subtle)!important}
body.owner-page .owner-sidebar nav{gap:4px!important}
body.owner-page .owner-sidebar nav a{min-height:45px!important;padding:0 12px!important;border-radius:10px!important;color:#3c4043!important;font-size:13.5px!important;font-weight:500!important}
body.owner-page .owner-sidebar nav a:hover{background:#f1f1f3!important;color:#202124!important}
body.owner-page .owner-sidebar nav a.active{background:#ececee!important;color:#171717!important;box-shadow:none!important;font-weight:600!important}
body.owner-page .owner-sidebar nav a.active::before{display:none!important}
body.owner-page .owner-side-foot{border-color:var(--ui-line)!important}
body.owner-page .owner-side-foot small,
body.owner-page .owner-side-foot span{color:var(--ui-muted)!important;font-size:11px!important}
body.owner-page .owner-side-foot strong{color:var(--ui-text)!important;font-size:12px!important}
body.owner-page .owner-side-foot a{color:#4b5563!important;font-size:12px!important}
body.owner-page .owner-side-foot a:last-child{color:var(--ui-danger)!important}
body.owner-page .owner-top{min-height:72px!important;padding:12px 24px!important;background:rgba(255,255,255,.97)!important;border-color:var(--ui-line)!important}
body.owner-page .owner-page-meta h1{font-size:20px!important;color:var(--ui-text)!important}
body.owner-page .owner-page-meta p{font-size:12.5px!important;color:var(--ui-muted)!important}
body.owner-page .owner-content{max-width:1500px!important;padding:28px 28px 36px!important}
body.owner-page .owner-stat,
body.owner-page .owner-card,
body.owner-page .card,
body.owner-page .owner-health-card{border:1px solid var(--ui-line)!important;border-radius:20px!important;background:#fff!important;box-shadow:var(--ui-shadow)!important}
body.owner-page .owner-stat{min-height:132px!important;padding:20px!important}
body.owner-page .owner-stat::after{height:3px!important;background:var(--ui-primary)!important}
body.owner-page .owner-stat span{font-size:11px!important;color:var(--ui-muted)!important}
body.owner-page .owner-stat strong{font-size:27px!important;color:var(--ui-text)!important}
body.owner-page .owner-stat small{font-size:12.5px!important;color:var(--ui-muted)!important}
body.owner-page .owner-card,
body.owner-page .card{padding:22px!important}
body.owner-page .owner-section-head h2,
body.owner-page .section-head h2,
body.owner-page .page-head h1{font-size:18px!important;color:var(--ui-text)!important}
body.owner-page .owner-section-head p,
body.owner-page .section-head p,
body.owner-page .muted{font-size:13px!important;color:var(--ui-muted)!important}
body.owner-page label{font-size:13px!important;color:#34373c!important;font-weight:600!important}
body.owner-page input,
body.owner-page select,
body.owner-page textarea{min-height:48px!important;padding:0 14px!important;border:1px solid var(--ui-line-strong)!important;border-radius:12px!important;background:#fff!important;color:var(--ui-text)!important;font-size:13.5px!important}
body.owner-page textarea{padding-top:12px!important}
body.owner-page input:focus,
body.owner-page select:focus,
body.owner-page textarea:focus{border-color:var(--ui-primary)!important;box-shadow:0 0 0 4px rgba(103,61,230,.12)!important}
body.owner-page .btn,
body.owner-page .owner-primary-button,
body.owner-page .owner-action,
body.owner-page .owner-toolbar button{min-height:44px!important;padding:0 15px!important;border-radius:12px!important;background:var(--ui-primary)!important;color:#fff!important;font-size:13px!important;font-weight:600!important;transform:none!important}
body.owner-page .owner-outline-button,
body.owner-page .btn:not(.primary):not(.danger),
body.owner-page .view-site{border:1px solid var(--ui-line-strong)!important;background:#fff!important;color:var(--ui-text)!important}
body.owner-page .owner-icon-button{width:40px!important;height:40px!important;border-color:var(--ui-line)!important;border-radius:11px!important;color:var(--ui-primary)!important}
body.owner-page .owner-table-wrap,
body.owner-page .table-wrap{border-color:var(--ui-line)!important;border-radius:16px!important}
body.owner-page .owner-table-wrap th,
body.owner-page .table th{padding:13px 14px!important;background:#f8f8fa!important;color:#5f6368!important;font-size:11px!important}
body.owner-page .owner-table-wrap td,
body.owner-page .table td{padding:14px!important;border-color:#ececef!important;color:#34373c!important;font-size:13px!important}
body.owner-page .owner-table-wrap tbody tr:hover,
body.owner-page .table tbody tr:hover{background:#faf9ff!important}

@media(max-width:1100px){
  body.customer-app .customer-content{padding:24px 22px 90px!important}
  body.customer-app .metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.owner-page .owner-layout{grid-template-columns:210px minmax(0,1fr)!important}
}
@media(max-width:860px){
  body.customer-app{--topbar:66px}
  body.customer-app .customer-topbar{padding:0 12px!important}
  body.customer-app .customer-sidebar{width:260px!important;border-right:0!important;box-shadow:18px 0 44px rgba(16,24,40,.14)!important}
  body.customer-app .customer-content{padding:20px 16px 88px!important}
  body.customer-app .welcome-hero{padding:26px!important}
  body.owner-page .owner-layout{display:block!important}
  body.owner-page .owner-sidebar{width:270px!important;box-shadow:18px 0 44px rgba(16,24,40,.14)!important}
}
@media(max-width:580px){
  html{font-size:15px}
  body.customer-app .metric-grid{grid-template-columns:1fr!important}
  body.customer-app .customer-content{padding-inline:12px!important}
  body.customer-app .welcome-hero{padding:22px!important;border-radius:18px!important}
  body.customer-app .welcome-hero h1{font-size:29px!important}
  body.customer-app .panel,
  body.customer-app .card{padding:18px!important;border-radius:17px!important}
  body.owner-page .owner-content{padding:16px!important}
  body:not(.customer-app):not(.owner-page) .hero{width:min(100% - 24px,1240px)!important}
}

@media print{
  body.customer-app{background:#fff!important}
  body.customer-app .book-paper,
  body.customer-app .voucher-paper{box-shadow:none!important}
}

/* v7.0.9 — one-step accounting flow */
.one-step-capture{display:grid;grid-template-columns:minmax(0,.85fr) minmax(420px,1.15fr);gap:28px;align-items:stretch;padding:30px;border:1px solid var(--fp-border,#e5e7eb);border-radius:28px;background:#fff;box-shadow:0 18px 50px rgba(17,24,39,.06)}
.one-step-copy{display:grid;align-content:center;padding:12px}.one-step-copy h1{max-width:520px;margin:8px 0 12px;font-size:clamp(34px,4vw,54px);line-height:1.04;letter-spacing:-.045em}.one-step-copy p{max-width:580px;margin:0;color:#5f6470;font-size:17px;line-height:1.75}.one-step-points{display:flex;flex-wrap:wrap;gap:9px;margin-top:22px}.one-step-points span{padding:9px 12px;border-radius:999px;background:#f3f4f6;color:#30323a;font-size:13px;font-weight:700}
.one-step-upload{min-height:420px;display:grid}.one-step-dropzone{position:relative;min-height:420px;display:grid;place-items:center;align-content:center;gap:12px;padding:36px;border:2px dashed #c7c9d1;border-radius:26px;background:linear-gradient(180deg,#fafafa,#f5f3ff);text-align:center;cursor:pointer;transition:.2s ease}.one-step-dropzone:hover,.one-step-dropzone.dragging{border-color:#673de6;background:#f1edff;transform:translateY(-2px)}.one-step-dropzone input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.one-step-upload-icon{display:grid;place-items:center;width:74px;height:74px;border-radius:24px;background:#673de6;color:#fff;font-size:34px;font-weight:800;box-shadow:0 16px 32px rgba(103,61,230,.24)}.one-step-dropzone strong{font-size:22px}.one-step-dropzone small{font-size:14px;color:#666}.one-step-dropzone em{font-style:normal;font-size:12px;color:#8a8d96}.one-step-loading{min-height:420px;display:grid;place-items:center;align-content:center;gap:10px;border-radius:26px;background:#f7f5ff;text-align:center}.one-step-loading>span{width:44px;height:44px;border:4px solid #ddd5ff;border-top-color:#673de6;border-radius:50%;animation:oneStepSpin .8s linear infinite}.one-step-loading strong{font-size:19px}.one-step-loading small{color:#6b7280}.one-step-note{display:flex;align-items:center;gap:14px;margin-top:18px;padding:16px 18px;border-radius:16px;background:#f4f4f5;color:#3f3f46}.one-step-note strong{white-space:nowrap}.one-step-note span{color:#60636d}@keyframes oneStepSpin{to{transform:rotate(360deg)}}

.narrative-confirm-shell{display:grid;gap:18px}.narrative-source-bar{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 20px;border:1px solid #e5e7eb;border-radius:18px;background:#fff}.narrative-source-bar>div{display:grid;gap:6px}.narrative-source-bar strong{font-size:16px}.narrative-source-bar p{margin:0;color:#60636d}.narrative-confirm-form{display:grid;gap:18px}.narrative-card{padding:28px;border:1px solid #dedfe5;border-radius:26px;background:#fff;box-shadow:0 16px 42px rgba(17,24,39,.055)}.narrative-kicker{display:block;margin-bottom:18px;color:#673de6;font-size:11px;font-weight:800;letter-spacing:.12em}.narrative-line{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0 0 16px;color:#22242a;font-size:18px;line-height:1.9}.narrative-line input,.narrative-line select{width:auto;min-width:150px;min-height:44px;padding:7px 10px;border:0;border-bottom:2px solid #d7d9e0;border-radius:8px;background:#f7f7f8;color:#111827;font-size:17px;font-weight:650}.narrative-line input:focus,.narrative-line select:focus{border-color:#673de6;box-shadow:0 0 0 3px rgba(103,61,230,.10);outline:none}.narrative-line input[name="seller"],.narrative-line input[name="buyer"]{min-width:260px}.narrative-line input[name="seller_tax_code"],.narrative-line input[name="buyer_tax_code"]{min-width:170px}.narrative-money input{min-width:180px;text-align:right}.narrative-description{display:grid;gap:8px;margin:22px 0;color:#30323a;font-size:14px;font-weight:750}.narrative-description textarea{min-height:100px;padding:14px 16px;border:1px solid #d9dbe2;border-radius:16px;background:#fafafa;font-size:17px;line-height:1.55}.narrative-details{border:1px solid #e1e2e7;border-radius:18px;background:#fff}.narrative-details>summary{padding:16px 18px;font-weight:750;cursor:pointer}.narrative-detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding:0 18px 18px}.narrative-detail-grid>.wide{grid-column:1/-1}.narrative-confirm-actions{position:sticky;bottom:12px;z-index:25;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:16px;padding:16px 18px;border:1px solid #dddfe6;border-radius:18px;background:rgba(255,255,255,.96);box-shadow:0 14px 34px rgba(17,24,39,.12);backdrop-filter:blur(14px)}.narrative-confirm-actions>div{display:grid;gap:2px}.narrative-confirm-actions span{color:#666b75;font-size:13px}

.book-blank-row td{height:42px;border-bottom:1px solid #ececf0}.book-empty-label{display:inline-flex;padding:5px 9px;border-radius:999px;background:#f2f2f4;color:#777b85;font-size:11px;font-weight:700}.book-table th{white-space:normal}
.opening-start-banner{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px;padding:18px 20px;border:1px solid #dedfe5;border-radius:18px;background:#fff}.opening-start-banner>div{display:grid;gap:3px}.opening-start-banner span{font-size:20px;font-weight:800}.opening-start-banner small{color:#6b7280}.setup-start-date{padding:16px;border:1px solid #dedfe5;border-radius:16px;background:#fafafa}.setup-start-date input{margin-top:7px}

@media(max-width:980px){.one-step-capture{grid-template-columns:1fr}.one-step-upload,.one-step-dropzone,.one-step-loading{min-height:320px}.narrative-detail-grid{grid-template-columns:1fr 1fr}.narrative-confirm-actions{grid-template-columns:1fr}.narrative-confirm-actions .btn{width:100%}}
@media(max-width:680px){.one-step-capture{padding:18px;border-radius:20px}.one-step-copy h1{font-size:36px}.one-step-copy p{font-size:15px}.one-step-dropzone{padding:24px;min-height:280px}.one-step-note,.opening-start-banner{align-items:flex-start;flex-direction:column}.narrative-card{padding:20px;border-radius:20px}.narrative-line{display:grid;grid-template-columns:1fr;font-size:16px;line-height:1.55}.narrative-line input,.narrative-line select,.narrative-line input[name="seller"],.narrative-line input[name="buyer"],.narrative-line input[name="seller_tax_code"],.narrative-line input[name="buyer_tax_code"]{width:100%;min-width:0}.narrative-detail-grid{grid-template-columns:1fr}.narrative-source-bar{align-items:flex-start;flex-direction:column}}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}

/* v7.0.10 — compact invoice review */
.invoice-review-shell{width:min(980px,100%);margin:0 auto;display:grid;gap:12px}
.invoice-source-strip{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:11px 14px;border:1px solid #e3e5ea;border-radius:14px;background:#fff}
.invoice-source-strip>div{display:flex;align-items:center;gap:10px;min-width:0}.invoice-source-strip strong{max-width:520px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}.invoice-source-strip small{color:#737780;font-size:12px;white-space:nowrap}
.invoice-review-form{display:grid;gap:12px}.invoice-summary-card{padding:20px 22px;border:1px solid #e0e2e7;border-radius:18px;background:#fff;box-shadow:0 8px 26px rgba(18,24,40,.045)}
.invoice-summary-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:22px}.invoice-summary-head h2{max-width:760px;margin:9px 0 5px;font-size:17px;line-height:1.55;font-weight:650;letter-spacing:-.01em;color:#202227}.invoice-total{font-size:21px;line-height:1.2;white-space:nowrap;color:#17181c}
.invoice-direction{display:inline-flex;align-items:center;min-height:26px;padding:0 9px;border-radius:999px;font-size:11px;font-weight:800}.invoice-direction.sale{background:#e9f8ef;color:#08733f}.invoice-direction.purchase,.invoice-direction.asset{background:#eef3ff;color:#3157a4}.invoice-direction.salary{background:#fff4dc;color:#8b5b00}.invoice-direction.other{background:#f0f1f3;color:#565b66}
.invoice-direction-note{margin:0;font-size:12px}.invoice-direction-note.verified{color:#168054}.invoice-direction-note.unverified{color:#a15c00}
.invoice-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;margin-top:17px;overflow:hidden;border:1px solid #e8e9ed;border-radius:13px;background:#e8e9ed}.invoice-facts>div{min-width:0;padding:11px 13px;background:#fafafa}.invoice-facts span,.invoice-facts strong{display:block}.invoice-facts span{margin-bottom:3px;color:#777b84;font-size:11px}.invoice-facts strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#292b31;font-size:13px;font-weight:650}
.invoice-review-warning{margin-top:12px;padding:10px 12px;border-radius:11px;background:#fff7e7;border:1px solid #f1dfb6;color:#76510a;font-size:12px}
.invoice-lines{margin-top:12px;border-top:1px solid #ececef}.invoice-lines>summary{padding:12px 0 0;color:#4f46b7;font-size:12px;font-weight:700;cursor:pointer}.invoice-lines .table-wrap{margin-top:10px;max-height:320px}
.invoice-edit-panel{border:1px solid #e0e2e7;border-radius:16px;background:#fff;overflow:hidden}.invoice-edit-panel>summary{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 16px;cursor:pointer;list-style:none}.invoice-edit-panel>summary::-webkit-details-marker{display:none}.invoice-edit-panel>summary span{font-size:13px;font-weight:750}.invoice-edit-panel>summary small{font-size:11px;color:#777b84}.invoice-edit-panel[open]>summary{border-bottom:1px solid #eceef1;background:#fafafa}
.invoice-edit-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:15px 16px}.invoice-edit-grid label{gap:5px;font-size:12px}.invoice-edit-grid input,.invoice-edit-grid select,.invoice-edit-grid textarea{min-height:40px;padding:8px 10px;border-radius:9px;font-size:13px}.invoice-edit-grid textarea{min-height:72px}.invoice-edit-grid .wide{grid-column:1/-1}
.invoice-advanced{margin:0 16px 16px;border:1px solid #e7e8eb;border-radius:12px;background:#fbfbfc}.invoice-advanced>summary{padding:11px 13px;font-size:12px;font-weight:700;cursor:pointer}.invoice-advanced .narrative-detail-grid{padding:0 13px 13px;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}
.invoice-confirm-bar{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:14px;padding:12px 14px;border:1px solid #e0e2e7;border-radius:14px;background:#fff}.invoice-confirm-bar span{color:#6c7079;font-size:12px}.invoice-confirm-bar .btn.primary{min-width:170px}
@media(max-width:800px){.invoice-summary-head{grid-template-columns:1fr}.invoice-total{font-size:19px}.invoice-facts{grid-template-columns:repeat(2,minmax(0,1fr))}.invoice-edit-grid,.invoice-advanced .narrative-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.invoice-source-strip{align-items:flex-start;flex-direction:column}.invoice-source-strip>div{align-items:flex-start;flex-wrap:wrap}.invoice-source-strip strong{max-width:100%;white-space:normal}.invoice-summary-card{padding:16px}.invoice-facts,.invoice-edit-grid,.invoice-advanced .narrative-detail-grid{grid-template-columns:1fr}.invoice-confirm-bar{grid-template-columns:1fr}.invoice-confirm-bar .btn{width:100%}.invoice-confirm-bar span{order:-1}.invoice-edit-panel>summary{align-items:flex-start;flex-direction:column}}

/* v7.0.11 compact soft UI */
body.customer-app{
  --ui-bg:#f1f3f5;
  --ui-line:#e8eaed;
  --ui-line-strong:#dde2e7;
  --ui-text:#1f2937;
  --ui-muted:#6b7280;
  --ui-primary:#6d5efc;
  --ui-primary-hover:#5f51ef;
  --ui-primary-soft:#f2f0ff;
  --ui-radius:14px;
  --ui-radius-sm:10px;
  --ui-shadow:0 1px 2px rgba(15,23,42,.03),0 8px 20px rgba(15,23,42,.04);
  --ui-shadow-hover:0 8px 20px rgba(15,23,42,.06);
  --sidebar:176px;
  --topbar:56px;
  font-size:13px!important;
  line-height:1.45!important;
}
body.customer-app h1{font-size:clamp(21px,2vw,28px)!important;font-weight:600!important;letter-spacing:-.02em!important}
body.customer-app h2{font-size:17px!important;font-weight:600!important}
body.customer-app h3{font-size:14px!important;font-weight:600!important}
body.customer-app .customer-topbar{height:var(--topbar)!important;padding:0 14px!important}
body.customer-app .customer-brand{font-size:12px!important}
body.customer-app .customer-brand-mark{width:30px!important;height:30px!important;border-radius:9px!important}
body.customer-app .company-switch select{min-height:34px!important;min-width:180px!important;font-size:12px!important;font-weight:500!important;padding:0 10px!important}
body.customer-app .topbar-regime,body.customer-app .customer-plan-summary{min-height:28px!important;padding:0 10px!important;font-size:11px!important;font-weight:500!important}
body.customer-app .topbar-icon-link,body.customer-app .icon-button{width:34px!important;height:34px!important;border-radius:10px!important}
body.customer-app .customer-avatar{width:30px!important;height:30px!important;font-size:11px!important}
body.customer-app .customer-account-link{font-size:12px!important}
body.customer-app .customer-sidebar{padding:10px 8px!important}
body.customer-app .sidebar-context{padding:8px 8px 12px!important}
body.customer-app .sidebar-context strong{font-size:12px!important;font-weight:600!important}
body.customer-app .sidebar-context small{font-size:10.5px!important}
body.customer-app .customer-sidebar nav{gap:2px!important;padding:10px 0!important}
body.customer-app .nav-item{min-height:36px!important;padding:0 10px!important;border-radius:8px!important;font-size:12px!important;font-weight:500!important}
body.customer-app .nav-item svg{width:17px!important;height:17px!important;stroke-width:1.7!important}
body.customer-app .sidebar-secondary{padding:10px 8px!important}
body.customer-app .sidebar-secondary a{padding:6px 0!important;font-size:11.5px!important}
body.customer-app .customer-content{width:min(1320px,100%)!important;padding:16px 18px 64px!important}
body.customer-app .panel,body.customer-app .card,body.customer-app .metric-card,body.customer-app .confirm-source,body.customer-app .confirm-form,body.customer-app .confirm-section,body.customer-app .upload-dropzone,body.customer-app .transaction-toolbar{border-radius:12px!important;box-shadow:var(--ui-shadow)!important}
body.customer-app .panel,body.customer-app .card{padding:14px!important}
body.customer-app .metric-grid{gap:10px!important;margin-bottom:14px!important}
body.customer-app .metric-card{min-height:92px!important;padding:14px!important}
body.customer-app .metric-card strong{font-size:22px!important}
body.customer-app .panel-head,body.customer-app .section-head{margin-bottom:12px!important}
body.customer-app .page-title-text{font-size:18px!important;font-weight:600!important}
body.customer-app .page-subtitle-text{font-size:12px!important}
body.customer-app label{font-size:12px!important;font-weight:500!important;color:#4b5563!important}
body.customer-app input,body.customer-app select,body.customer-app textarea{min-height:36px!important;padding:0 11px!important;border-radius:10px!important;font-size:12.5px!important}
body.customer-app textarea{padding-top:10px!important;min-height:82px!important}
body.customer-app .btn{min-height:34px!important;padding:0 12px!important;border-radius:10px!important;font-size:12px!important;font-weight:500!important}
body.customer-app .status-pill,body.customer-app .badge,body.customer-app .count-badge{min-height:22px!important;padding:0 8px!important;font-size:10px!important;font-weight:600!important}
body.customer-app .table-wrap,body.customer-app .owner-table-wrap{border-radius:12px!important}
body.customer-app .table th{padding:9px 10px!important;font-size:10px!important}
body.customer-app .table td{padding:10px!important;font-size:12px!important}
body.customer-app .alert{padding:10px 12px!important;border-radius:10px!important;font-size:12px!important}
body.customer-app .btn-floating{right:18px!important;bottom:18px!important;min-height:40px!important;padding:0 15px!important}
body.customer-app .legal-disclaimer{font-size:11px!important;margin-top:12px!important}

/* compact invoice review */
body.customer-app .invoice-review-shell{display:grid;gap:12px!important}
body.customer-app .invoice-source-strip{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;padding:12px 14px!important;border:1px solid var(--ui-line)!important;border-radius:12px!important;background:#fff!important;box-shadow:var(--ui-shadow)!important}
body.customer-app .invoice-source-strip>div:first-child{display:flex!important;align-items:center!important;gap:10px!important;flex-wrap:wrap!important}
body.customer-app .invoice-source-strip strong{font-size:12.5px!important;font-weight:600!important;color:var(--ui-text)!important}
body.customer-app .invoice-source-strip small{font-size:11px!important;color:var(--ui-muted)!important}
body.customer-app .invoice-source-strip .row{display:flex!important;gap:8px!important;align-items:center!important}
body.customer-app .invoice-review-form{display:grid!important;gap:12px!important}
body.customer-app .invoice-summary-card{padding:14px 16px!important;border:1px solid var(--ui-line)!important;border-radius:14px!important;background:#fff!important;box-shadow:var(--ui-shadow)!important}
body.customer-app .invoice-summary-head{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:12px!important;align-items:flex-start!important}
body.customer-app .invoice-direction{display:inline-flex!important;align-items:center!important;min-height:22px!important;padding:0 8px!important;border-radius:999px!important;font-size:10px!important;font-weight:600!important}
body.customer-app .invoice-summary-head h2{margin:8px 0 6px!important;font-size:16px!important;line-height:1.6!important;font-weight:600!important;letter-spacing:-.01em!important}
body.customer-app .invoice-direction-note{font-size:11px!important;color:#5c9b76!important;margin:0!important}
body.customer-app .invoice-total{font-size:14px!important;font-weight:700!important;color:#111827!important;white-space:nowrap!important}
body.customer-app .invoice-facts{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;border:1px solid var(--ui-line)!important;border-radius:12px!important;overflow:hidden!important;margin-top:12px!important;background:#fbfbfc!important}
body.customer-app .invoice-facts>div{padding:10px 12px!important;border-right:1px solid var(--ui-line)!important;border-bottom:1px solid var(--ui-line)!important;min-height:58px!important}
body.customer-app .invoice-facts>div:nth-child(3n){border-right:none!important}
body.customer-app .invoice-facts span{display:block!important;font-size:10px!important;color:#8a9099!important;margin-bottom:4px!important}
body.customer-app .invoice-facts strong{display:block!important;font-size:12px!important;font-weight:600!important;color:#1f2937!important;line-height:1.45!important}
body.customer-app .invoice-review-warning{margin-top:12px!important;padding:10px 12px!important;border:1px solid #edd9a6!important;border-radius:10px!important;background:#fff8e8!important;color:#9a6c0d!important;font-size:12px!important}
body.customer-app .invoice-lines{margin-top:10px!important;border:1px solid var(--ui-line)!important;border-radius:10px!important;background:#fff!important}
body.customer-app .invoice-lines>summary{padding:10px 12px!important;font-size:12px!important;font-weight:500!important;cursor:pointer!important}
body.customer-app .invoice-edit-panel{border:1px solid var(--ui-line)!important;border-radius:12px!important;background:#fff!important;box-shadow:var(--ui-shadow)!important}
body.customer-app .invoice-edit-panel>summary{display:flex!important;align-items:center!important;justify-content:space-between!important;padding:12px 14px!important;font-size:12.5px!important;font-weight:600!important;cursor:pointer!important;list-style:none!important}
body.customer-app .invoice-edit-panel>summary::-webkit-details-marker{display:none!important}
body.customer-app .invoice-edit-panel>summary small{font-size:11px!important;font-weight:400!important;color:var(--ui-muted)!important}
body.customer-app .invoice-edit-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important;padding:0 14px 14px!important}
body.customer-app .invoice-edit-grid .wide{grid-column:1/-1!important}
body.customer-app .invoice-advanced{margin:0 14px 14px!important;border:1px solid var(--ui-line)!important;border-radius:10px!important;background:#fbfbfc!important}
body.customer-app .invoice-advanced>summary{padding:10px 12px!important;font-size:12px!important;font-weight:500!important;cursor:pointer!important}
body.customer-app .narrative-detail-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important;padding:0 12px 12px!important}
body.customer-app .invoice-confirm-bar{position:sticky!important;bottom:10px!important;display:grid!important;grid-template-columns:auto 1fr auto!important;align-items:center!important;gap:10px!important;padding:10px 12px!important;border:1px solid var(--ui-line)!important;border-radius:12px!important;background:rgba(255,255,255,.96)!important;box-shadow:0 6px 18px rgba(15,23,42,.08)!important}
body.customer-app .invoice-confirm-bar span{font-size:11px!important;color:var(--ui-muted)!important}

@media(max-width:1100px){
  body.customer-app .invoice-facts,body.customer-app .invoice-edit-grid,body.customer-app .narrative-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:760px){
  body.customer-app .customer-content{padding:12px 12px 72px!important}
  body.customer-app .invoice-source-strip,body.customer-app .invoice-summary-head,body.customer-app .invoice-confirm-bar{grid-template-columns:1fr!important;display:grid!important}
  body.customer-app .invoice-facts,body.customer-app .invoice-edit-grid,body.customer-app .narrative-detail-grid{grid-template-columns:1fr!important}
}

/* v7.0.12 layout and loading-state corrections */
body.customer-app .page-head{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:12px!important;
  margin-bottom:12px!important;
}
body.customer-app .page-head .row{justify-content:flex-end!important}

/* Transactions: one compact filter row and valid empty table cell */
body.customer-app .transaction-toolbar{
  display:block!important;
  width:100%!important;
  padding:10px!important;
  margin:0 0 8px!important;
  border-radius:12px!important;
}
body.customer-app .transaction-filter-grid{
  display:grid!important;
  grid-template-columns:minmax(280px,1fr) 190px auto!important;
  align-items:center!important;
  gap:8px!important;
  width:100%!important;
}
body.customer-app .transaction-filter-grid input,
body.customer-app .transaction-filter-grid select,
body.customer-app .transaction-filter-grid button{
  width:100%!important;
  min-height:36px!important;
  margin:0!important;
}
body.customer-app .transaction-filter-grid button{width:auto!important;min-width:70px!important}
body.customer-app .transaction-table-wrap{margin-top:0!important;border-radius:12px!important}
body.customer-app .transaction-table{table-layout:fixed!important}
body.customer-app .transaction-table th:nth-child(1){width:105px!important}
body.customer-app .transaction-table th:nth-child(2){width:auto!important}
body.customer-app .transaction-table th:nth-child(3){width:210px!important}
body.customer-app .transaction-table th:nth-child(4){width:130px!important}
body.customer-app .transaction-table th:nth-child(5){width:130px!important}
body.customer-app .transaction-table th:nth-child(6){width:145px!important}
body.customer-app .table td.empty,
body.customer-app .transaction-empty{
  display:table-cell!important;
  min-height:0!important;
  height:92px!important;
  padding:28px 16px!important;
  text-align:center!important;
  vertical-align:middle!important;
}

/* Books: each four-item group stays on one row and the full catalog fits one screen */
body.customer-app .profile-banner{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:14px!important;
  margin-bottom:14px!important;
  padding:12px 14px!important;
  border-radius:12px!important;
}
body.customer-app .profile-banner h2{margin:4px 0 2px!important;font-size:15px!important}
body.customer-app .profile-banner p{font-size:11.5px!important}
body.customer-app .book-section{
  display:grid!important;
  grid-template-columns:170px minmax(0,1fr)!important;
  align-items:start!important;
  gap:12px!important;
  margin-bottom:12px!important;
}
body.customer-app .book-section .section-title{
  margin:0!important;
  padding:8px 2px!important;
}
body.customer-app .book-section .section-title h2{font-size:14px!important;margin:0 0 3px!important}
body.customer-app .book-section .section-title p{font-size:10.5px!important;line-height:1.45!important}
body.customer-app .book-grid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:8px!important;
  width:100%!important;
}
body.customer-app .book-card{
  min-height:86px!important;
  padding:11px 12px!important;
  gap:5px!important;
  border-radius:11px!important;
}
body.customer-app .book-card:hover{transform:none!important;box-shadow:var(--ui-shadow-hover)!important}
body.customer-app .book-code{padding:3px 6px!important;border-radius:6px!important;font-size:9.5px!important;font-weight:600!important}
body.customer-app .book-card h3{font-size:11.5px!important;line-height:1.35!important;font-weight:600!important}
body.customer-app .book-card div{font-size:10px!important}

/* Capture: hide loader until a real file is selected and reduce wasted space */
body.customer-app .one-step-capture{
  grid-template-columns:260px minmax(0,1fr)!important;
  gap:18px!important;
  align-items:center!important;
  padding:18px!important;
  border-radius:14px!important;
  max-width:1120px!important;
  margin:0 auto!important;
}
body.customer-app .one-step-copy h1{font-size:24px!important;margin:7px 0 8px!important}
body.customer-app .one-step-copy p{font-size:12.5px!important;line-height:1.55!important}
body.customer-app .one-step-points{display:flex!important;gap:6px!important;flex-wrap:wrap!important}
body.customer-app .one-step-points span{padding:5px 8px!important;font-size:10.5px!important;border-radius:999px!important}
body.customer-app .one-step-upload,
body.customer-app .one-step-dropzone,
body.customer-app .one-step-loading{min-height:230px!important}
body.customer-app .one-step-dropzone{
  padding:20px!important;
  gap:8px!important;
  border-width:1.5px!important;
  border-radius:13px!important;
}
body.customer-app .one-step-upload-icon{width:52px!important;height:52px!important;border-radius:15px!important;font-size:25px!important;box-shadow:none!important}
body.customer-app .one-step-dropzone strong{font-size:15px!important;font-weight:600!important}
body.customer-app .one-step-dropzone small{font-size:11px!important}
body.customer-app .one-step-dropzone em{font-size:10px!important}
body.customer-app .one-step-loading{
  display:grid!important;
  border-radius:13px!important;
  gap:7px!important;
}
body.customer-app .one-step-loading[hidden],
body.customer-app .one-step-dropzone[hidden]{display:none!important}
body.customer-app .one-step-loading>span{width:30px!important;height:30px!important;border-width:3px!important}
body.customer-app .one-step-loading strong{font-size:14px!important;font-weight:600!important}
body.customer-app .one-step-loading small{font-size:10.5px!important}
body.customer-app .one-step-note{
  max-width:1120px!important;
  margin:10px auto 0!important;
  padding:9px 12px!important;
  border-radius:10px!important;
  font-size:11px!important;
}

@media(max-width:1180px){
  body.customer-app .book-section{grid-template-columns:145px minmax(0,1fr)!important}
  body.customer-app .book-grid{grid-template-columns:repeat(4,minmax(135px,1fr))!important;overflow-x:auto!important;padding-bottom:3px!important}
}
@media(max-width:820px){
  body.customer-app .page-head{grid-template-columns:1fr!important}
  body.customer-app .page-head .row{justify-content:flex-start!important}
  body.customer-app .transaction-filter-grid{grid-template-columns:1fr 160px auto!important}
  body.customer-app .book-section{grid-template-columns:1fr!important;gap:6px!important}
  body.customer-app .one-step-capture{grid-template-columns:1fr!important}
}
@media(max-width:620px){
  body.customer-app .transaction-filter-grid{grid-template-columns:1fr!important}
  body.customer-app .transaction-filter-grid button{width:100%!important}
  body.customer-app .book-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;overflow:visible!important}
}

/* v7.0.13 — compact and unbreakable System Owner layout */
body.owner-page{
  --owner-primary:#6d5efc;
  --owner-primary-soft:#f2f0ff;
  --owner-primary-strong:#5f51ef;
  --owner-ink:#22252b;
  --owner-text:#676d76;
  --owner-muted:#9297a0;
  --owner-line:#e7e9ed;
  --owner-line-strong:#d9dde3;
  --owner-bg:#f1f3f5;
  --owner-card:#fff;
  --owner-card-soft:#f8f9fa;
  --owner-shadow-sm:0 1px 2px rgba(15,23,42,.025),0 5px 16px rgba(15,23,42,.035);
  --owner-shadow-md:0 8px 24px rgba(15,23,42,.055);
  --owner-radius-xs:7px;
  --owner-radius-sm:9px;
  --owner-radius-md:11px;
  --owner-radius-lg:13px;
  overflow-x:hidden!important;
  font-size:12px!important;
  line-height:1.45!important;
  background:var(--owner-bg)!important;
}
body.owner-page *,body.owner-page *::before,body.owner-page *::after{box-sizing:border-box}
body.owner-page .owner-layout{width:100%!important;min-width:0!important;grid-template-columns:176px minmax(0,1fr)!important;background:var(--owner-bg)!important}
body.owner-page .owner-sidebar{width:176px!important;min-width:0!important;padding:10px 8px!important;background:#fff!important;border-right:1px solid var(--owner-line)!important;color:var(--owner-ink)!important;overflow-y:auto!important;overflow-x:hidden!important}
body.owner-page .owner-brand{gap:8px!important;padding:6px 7px 12px!important;border-color:var(--owner-line)!important}
body.owner-page .owner-brand-mark{width:30px!important;height:30px!important;border-radius:8px!important;background:#18191c!important;border-color:#18191c!important;font-size:9px!important}
body.owner-page .owner-brand strong{font-size:11.5px!important;font-weight:600!important;color:var(--owner-ink)!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body.owner-page .owner-brand small{min-height:18px!important;padding:0 6px!important;border-radius:999px!important;font-size:8.5px!important;font-weight:600!important;background:var(--owner-primary-soft)!important;color:#5747ce!important}
body.owner-page .owner-nav-title{margin:12px 8px 6px!important;font-size:8.5px!important;letter-spacing:.07em!important;color:var(--owner-muted)!important}
body.owner-page .owner-sidebar nav{gap:2px!important}
body.owner-page .owner-sidebar nav a{min-width:0!important;min-height:35px!important;padding:0 9px!important;border-radius:7px!important;font-size:11.5px!important;font-weight:500!important;color:#555b65!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body.owner-page .owner-sidebar nav a:hover{background:#f5f5f7!important;color:#24262b!important}
body.owner-page .owner-sidebar nav a.active{background:#f0efff!important;color:#5747ce!important;font-weight:600!important;box-shadow:none!important}
body.owner-page .owner-side-foot{padding:10px 8px 2px!important;gap:3px!important;border-color:var(--owner-line)!important;min-width:0!important}
body.owner-page .owner-side-foot small{font-size:9px!important;color:var(--owner-muted)!important}
body.owner-page .owner-side-foot strong{font-size:10.5px!important;color:var(--owner-ink)!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
body.owner-page .owner-side-foot span{font-size:9.5px!important;color:var(--owner-text)!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
body.owner-page .owner-side-foot a{margin-top:4px!important;font-size:10.5px!important;color:#565c66!important}
body.owner-page .owner-main,body.owner-page .owner-content,body.owner-page .owner-grid,body.owner-page .owner-grid>*,body.owner-page .grid,body.owner-page .grid>*,body.owner-page .owner-card,body.owner-page .card{min-width:0!important;max-width:100%!important}
body.owner-page .owner-top{min-height:56px!important;padding:8px 14px!important;gap:10px!important;background:rgba(255,255,255,.97)!important;border-color:var(--owner-line)!important}
body.owner-page .owner-top-start,body.owner-page .owner-top-end{gap:8px!important;min-width:0!important}
body.owner-page .owner-page-meta{min-width:0!important}
body.owner-page .owner-page-meta h1{font-size:14px!important;font-weight:600!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body.owner-page .owner-page-meta p{margin-top:2px!important;font-size:9.5px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body.owner-page .view-site,body.owner-page .owner-outline-button{min-height:32px!important;padding:0 10px!important;border-radius:8px!important;font-size:10.5px!important;font-weight:500!important;box-shadow:none!important;white-space:nowrap!important}
body.owner-page .owner-profile-chip{min-height:34px!important;padding:0 9px 0 5px!important;gap:7px!important;border-radius:999px!important;box-shadow:none!important}
body.owner-page .owner-avatar{width:25px!important;height:25px!important;font-size:9px!important;background:#22252b!important}
body.owner-page .owner-profile-chip strong{font-size:10.5px!important;max-width:130px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
body.owner-page .owner-content{width:100%!important;max-width:1320px!important;margin:0 auto!important;padding:14px 14px 24px!important}
body.owner-page .owner-alert,body.owner-page .alert{gap:7px!important;margin-bottom:10px!important;padding:9px 11px!important;border-radius:9px!important;font-size:11px!important;box-shadow:none!important}

body.owner-page .owner-stat-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(145px,1fr))!important;gap:9px!important;margin-bottom:11px!important}
body.owner-page .owner-stat-grid-5,body.owner-page .owner-stat-grid-3{grid-template-columns:repeat(auto-fit,minmax(145px,1fr))!important}
body.owner-page .owner-stat,body.owner-page .owner-card,body.owner-page .card,body.owner-page .owner-health-card{border:1px solid var(--owner-line)!important;border-radius:10px!important;background:#fff!important;box-shadow:var(--owner-shadow-sm)!important;overflow:hidden!important}
body.owner-page .owner-stat{min-height:82px!important;padding:11px 12px!important}
body.owner-page .owner-stat::after{height:2px!important;background:var(--owner-primary)!important}
body.owner-page .owner-stat span{font-size:8.5px!important;font-weight:600!important;color:var(--owner-muted)!important}
body.owner-page .owner-stat strong{margin-top:7px!important;font-size:18px!important;font-weight:600!important}
body.owner-page .owner-stat small{margin-top:5px!important;font-size:9.5px!important;line-height:1.35!important}
body.owner-page .owner-card,body.owner-page .card{margin-bottom:10px!important;padding:12px!important}
body.owner-page .owner-grid,body.owner-page .grid{gap:10px!important}
body.owner-page .owner-grid-2,body.owner-page .cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}
body.owner-page .cols-3{grid-template-columns:repeat(3,minmax(0,1fr))!important}
body.owner-page .cols-4{grid-template-columns:repeat(4,minmax(0,1fr))!important}
body.owner-page .owner-plans-layout{grid-template-columns:minmax(0,1.15fr) minmax(310px,.85fr)!important;align-items:start!important}
body.owner-page .owner-section-head,body.owner-page .section-head,body.owner-page .page-head{gap:9px!important;margin-bottom:10px!important;padding-bottom:0!important}
body.owner-page .page-head{padding-bottom:8px!important}
body.owner-page .owner-section-head h2,body.owner-page .section-head h2,body.owner-page .page-head h1{font-size:13px!important;font-weight:600!important}
body.owner-page .owner-section-head h3,body.owner-page .section-head h3{font-size:11.5px!important}
body.owner-page .owner-section-head p,body.owner-page .section-head p,body.owner-page .muted{margin-top:3px!important;font-size:10px!important;line-height:1.4!important}
body.owner-page .row{gap:6px!important}
body.owner-page .stack{gap:8px!important}

body.owner-page .owner-toolbar,body.owner-page .owner-filter-row{width:100%!important;min-width:0!important;margin-bottom:9px!important;gap:7px!important}
body.owner-page .owner-toolbar{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important}
body.owner-page .owner-toolbar form{display:grid!important;grid-template-columns:minmax(180px,420px) auto!important;gap:7px!important;min-width:0!important}
body.owner-page .owner-toolbar>span{font-size:10px!important;color:var(--owner-text)!important;white-space:nowrap!important}
body.owner-page .owner-filter-row{display:grid!important;grid-template-columns:minmax(220px,1fr) minmax(130px,170px) minmax(130px,170px) auto!important;align-items:center!important}
body.owner-page .owner-filter-row input,body.owner-page .owner-filter-row select,body.owner-page .owner-toolbar input{max-width:none!important;min-width:0!important}
body.owner-page input,body.owner-page select,body.owner-page textarea,body.owner-page .owner-form input,body.owner-page .owner-form select,body.owner-page .owner-form textarea{min-width:0!important;min-height:35px!important;padding:0 10px!important;border-radius:8px!important;font-size:11px!important}
body.owner-page textarea,body.owner-page .owner-form textarea{min-height:72px!important;padding:9px 10px!important}
body.owner-page label,body.owner-page .owner-form label{gap:4px!important;font-size:10px!important;font-weight:500!important;color:#5c626c!important;min-width:0!important}
body.owner-page label small,body.owner-page .owner-form label small{font-size:9px!important}
body.owner-page .owner-form,body.owner-page .form-grid{gap:8px!important}
body.owner-page .owner-form-grid,body.owner-page .form-grid{grid-template-columns:repeat(auto-fit,minmax(155px,1fr))!important;gap:8px!important}
body.owner-page .owner-form-grid-3{grid-template-columns:repeat(auto-fit,minmax(190px,1fr))!important}
body.owner-page .owner-wide,body.owner-page .form-grid .wide{grid-column:1/-1!important}
body.owner-page .owner-form-actions{gap:7px!important;margin-top:2px!important}
body.owner-page .owner-check-row{gap:7px!important;padding:8px 9px!important;border-radius:8px!important;font-size:10px!important}
body.owner-page .owner-check-row input{margin-top:1px!important;flex:0 0 auto!important}
body.owner-page .btn,body.owner-page .owner-primary-button,body.owner-page .owner-action,body.owner-page .owner-toolbar button{min-height:33px!important;padding:0 11px!important;border-radius:8px!important;font-size:10.5px!important;font-weight:500!important;box-shadow:none!important;transform:none!important;white-space:nowrap!important}
body.owner-page .owner-action,body.owner-page .btn.small{min-height:29px!important;padding:0 9px!important;font-size:9.5px!important}
body.owner-page .owner-icon-button{width:31px!important;height:31px!important;min-width:31px!important;border-radius:8px!important;box-shadow:none!important}
body.owner-page .owner-icon-button svg{width:14px!important;height:14px!important}

body.owner-page .owner-table-wrap,body.owner-page .table-wrap{width:100%!important;max-width:100%!important;overflow:auto!important;border-radius:9px!important;-webkit-overflow-scrolling:touch!important}
body.owner-page .owner-table-wrap table,body.owner-page .table{width:100%!important;min-width:720px!important;table-layout:auto!important}
body.owner-page .owner-table-wrap th,body.owner-page .table th{position:sticky!important;top:0!important;padding:8px 9px!important;font-size:8.5px!important;letter-spacing:.035em!important;background:#f7f8f9!important;z-index:2!important}
body.owner-page .owner-table-wrap td,body.owner-page .table td{min-width:0!important;padding:9px!important;font-size:10.5px!important;line-height:1.35!important;overflow-wrap:anywhere!important}
body.owner-page .owner-table-wrap td strong,body.owner-page .table td strong{font-size:10.5px!important;font-weight:600!important}
body.owner-page .owner-table-wrap td small,body.owner-page .table td small{margin-top:2px!important;font-size:9px!important;line-height:1.3!important}
body.owner-page .owner-table-wrap td:last-child,body.owner-page .table td:last-child{white-space:nowrap!important;width:1%!important}
body.owner-page .owner-empty,body.owner-page .empty{display:table-cell!important;padding:20px 10px!important;font-size:10.5px!important;text-align:center!important}
body.owner-page .owner-status,body.owner-page .badge{min-height:21px!important;padding:0 7px!important;border-radius:999px!important;font-size:8.5px!important;font-weight:600!important;white-space:nowrap!important}

body.owner-page .owner-plan-cards{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
body.owner-page .owner-plan-cards article{min-width:0!important;padding:10px!important;border-radius:9px!important;gap:8px!important}
body.owner-page .owner-plan-cards article>div{min-width:0!important}
body.owner-page .owner-plan-cards h3{margin:5px 0 2px!important;font-size:11.5px!important}
body.owner-page .owner-plan-cards strong{font-size:15px!important}
body.owner-page .owner-plan-cards p{margin:5px 0!important;font-size:9.5px!important;line-height:1.4!important;overflow-wrap:anywhere!important}
body.owner-page .owner-plan-cards small{font-size:9px!important}
body.owner-page .owner-definition>div{gap:8px!important;padding:8px 0!important;font-size:10.5px!important}
body.owner-page .owner-inline-review{grid-template-columns:minmax(100px,1fr) auto auto!important;gap:6px!important}
body.owner-page .owner-health-grid{grid-template-columns:repeat(auto-fit,minmax(175px,1fr))!important;gap:9px!important}
body.owner-page .owner-health-card{padding:11px!important}
body.owner-page .owner-health-card span{font-size:8.5px!important}
body.owner-page .owner-health-card strong{margin:6px 0 3px!important;font-size:11.5px!important}
body.owner-page .owner-health-card small{font-size:9.5px!important}
body.owner-page .feature-stack>div{padding:5px 0!important;font-size:10.5px!important}
body.owner-page .payment-instruction{padding:9px!important;border-radius:8px!important}
body.owner-page .legal-disclaimer{margin-top:10px!important;padding-top:7px!important;font-size:9px!important}

@media(max-width:1180px){
  body.owner-page .owner-layout{grid-template-columns:164px minmax(0,1fr)!important}
  body.owner-page .owner-sidebar{width:164px!important}
  body.owner-page .owner-plans-layout{grid-template-columns:1fr!important}
  body.owner-page .owner-plan-cards{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  body.owner-page .cols-4{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:920px){
  body.owner-page .owner-layout{display:block!important}
  body.owner-page .owner-sidebar{position:fixed!important;inset:0 auto 0 0!important;width:220px!important;max-width:calc(100vw - 32px)!important;height:100vh!important;transform:translateX(-100%)!important;z-index:40!important;box-shadow:14px 0 32px rgba(15,23,42,.12)!important}
  body.owner-page .owner-layout.menu-open .owner-sidebar,body.owner-page .owner-sidebar.show{transform:translateX(0)!important}
  body.owner-page .owner-menu{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:32px!important;height:32px!important;border-radius:8px!important}
  body.owner-page .owner-content{padding:12px!important}
  body.owner-page .owner-plan-cards{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.owner-page .owner-filter-row{grid-template-columns:minmax(0,1fr) minmax(125px,160px) auto!important}
  body.owner-page .owner-filter-row select:nth-of-type(2){display:none!important}
}
@media(max-width:680px){
  body.owner-page .owner-top{align-items:center!important;flex-wrap:nowrap!important}
  body.owner-page .owner-top-end{margin-left:auto!important;width:auto!important}
  body.owner-page .view-site{display:none!important}
  body.owner-page .owner-profile-chip strong{display:none!important}
  body.owner-page .owner-profile-chip{padding-right:5px!important}
  body.owner-page .owner-page-meta p{display:none!important}
  body.owner-page .owner-stat-grid,body.owner-page .owner-stat-grid-5,body.owner-page .owner-stat-grid-3{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.owner-page .owner-grid-2,body.owner-page .cols-2,body.owner-page .cols-3,body.owner-page .cols-4{grid-template-columns:1fr!important}
  body.owner-page .owner-plan-cards{grid-template-columns:1fr!important}
  body.owner-page .owner-toolbar{grid-template-columns:1fr!important}
  body.owner-page .owner-toolbar form{grid-template-columns:minmax(0,1fr) auto!important}
  body.owner-page .owner-toolbar>span{justify-self:start!important}
  body.owner-page .owner-filter-row{grid-template-columns:1fr!important}
  body.owner-page .owner-filter-row select:nth-of-type(2){display:block!important}
  body.owner-page .owner-filter-row .owner-primary-button{width:100%!important}
  body.owner-page .owner-form-grid,body.owner-page .owner-form-grid-3,body.owner-page .form-grid{grid-template-columns:1fr!important}
  body.owner-page .owner-inline-review{grid-template-columns:1fr!important}
  body.owner-page .owner-form-actions>*{flex:1 1 auto!important}
  body.owner-page .owner-table-wrap table,body.owner-page .table{min-width:650px!important}
}

/* v7.1.0 multi-regime — public authentication alignment */
body:not(.customer-app):not(.owner-page) .auth-stage{width:100%!important;max-width:540px!important;padding:20px!important;border-radius:22px!important;overflow:visible!important}
body:not(.customer-app):not(.owner-page) .auth-stage-head{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:14px!important;width:100%!important;min-width:0!important}
body:not(.customer-app):not(.owner-page) .auth-mode-switch{display:flex!important;width:100%!important;height:48px!important;gap:0!important;margin:0!important;padding:4px!important;border:1px solid #e1e4e9!important;border-radius:13px!important;background:#f0f1f3!important;overflow:hidden!important}
body:not(.customer-app):not(.owner-page) .auth-mode-switch a,
body:not(.customer-app):not(.owner-page) .auth-mode-switch button{flex:1 1 50%!important;width:50%!important;min-width:0!important;min-height:38px!important;height:38px!important;margin:0!important;padding:0 12px!important;border-radius:9px!important;display:flex!important;align-items:center!important;justify-content:center!important;font-size:13px!important;font-weight:600!important;line-height:1!important;text-align:center!important;white-space:nowrap!important}
body:not(.customer-app):not(.owner-page) .landing-auth-grid,
body:not(.customer-app):not(.owner-page) .auth-panel,
body:not(.customer-app):not(.owner-page) .auth-panel form{width:100%!important;min-width:0!important}
body:not(.customer-app):not(.owner-page) .auth-panel{margin:0!important;padding:20px!important;border-radius:16px!important}
body:not(.customer-app):not(.owner-page) .auth-panel-top{display:grid!important;grid-template-columns:40px minmax(0,1fr)!important;align-items:start!important;gap:12px!important}
body:not(.customer-app):not(.owner-page) .auth-panel-top .brand-mark{width:40px!important;height:40px!important}

/* v7.1.0 — public login/register alignment */
body:not(.customer-app):not(.owner-page) .auth-stage [hidden]{display:none!important}
body:not(.customer-app):not(.owner-page) .auth-stage-head>div:first-child{width:100%!important;min-width:0!important}
body:not(.customer-app):not(.owner-page) .auth-mode-switch{box-sizing:border-box!important;align-items:center!important}
body:not(.customer-app):not(.owner-page) .auth-mode-switch a,
body:not(.customer-app):not(.owner-page) .auth-mode-switch button{box-sizing:border-box!important;position:relative!important;top:0!important;transform:none!important}
body:not(.customer-app):not(.owner-page) .auth-mode-switch a:hover,
body:not(.customer-app):not(.owner-page) .auth-mode-switch button:hover{transform:none!important}

/* v7.1.2 — dashboard component recovery and compact multi-regime layout */
body.customer-app .todo-block,
body.customer-app .dashboard-recent-card,
body.customer-app .dashboard-quick-links{
  min-width:0;
}
body.customer-app .todo-block{
  overflow:hidden;
  margin:0 0 12px;
  border:1px solid var(--ui-line);
  border-radius:12px;
  background:#fff;
  box-shadow:var(--ui-shadow);
}
body.customer-app .todo-block .header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:42px;
  padding:0 14px;
  border-bottom:1px solid var(--ui-line);
  color:var(--ui-text);
  font-size:12.5px;
  font-weight:600;
}
body.customer-app .todo-count{
  display:inline-flex;
  align-items:center;
  min-height:22px;
  padding:0 8px;
  border-radius:999px;
  background:var(--ui-primary-soft);
  color:var(--ui-primary);
  font-size:10.5px;
  font-weight:600;
}
body.customer-app .todo-item{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  min-height:44px;
  padding:8px 14px;
  border-bottom:1px solid #f0f1f3;
}
body.customer-app .todo-item:last-child{border-bottom:0}
body.customer-app .todo-title{
  display:flex;
  align-items:center;
  gap:9px;
  min-width:0;
  color:#374151;
  font-size:12px;
  line-height:1.45;
}
body.customer-app .todo-title i{
  flex:0 0 auto;
  width:7px;
  height:7px;
  border-radius:50%;
  background:#8b7cf6;
}
body.customer-app .todo-title:not(i){overflow-wrap:anywhere}
body.customer-app .todo-item .action{min-height:28px!important;padding:0 10px!important;font-size:11px!important}
body.customer-app .todo-empty{display:block!important;color:var(--ui-muted);font-size:12px}

body.customer-app .kpi-grid{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:10px;
  margin:0 0 12px;
}
body.customer-app .kpi-card{
  min-width:0;
  min-height:82px;
  padding:13px 14px;
  border:1px solid var(--ui-line);
  border-radius:12px;
  background:#fff;
  box-shadow:var(--ui-shadow);
}
body.customer-app .kpi-card .label{
  margin-bottom:8px;
  color:var(--ui-muted);
  font-size:10.5px;
  font-weight:500;
  line-height:1.35;
}
body.customer-app .kpi-card .value{
  overflow:hidden;
  color:#111827;
  font-size:18px;
  font-weight:600;
  line-height:1.2;
  text-overflow:ellipsis;
  white-space:nowrap;
}
body.customer-app .dashboard-recent-card{margin:0 0 10px!important;padding:0!important;overflow:hidden}
body.customer-app .dashboard-recent-card .section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:0!important;
  padding:13px 14px;
  border-bottom:1px solid var(--ui-line);
}
body.customer-app .dashboard-recent-card .section-head h2{margin:0 0 2px!important;font-size:14px!important}
body.customer-app .dashboard-recent-card .section-head p{margin:0!important;font-size:11.5px!important}
body.customer-app .text-link{color:var(--ui-primary);font-size:11.5px;font-weight:500;text-decoration:none;white-space:nowrap}
body.customer-app .text-link:hover{text-decoration:underline}
body.customer-app .table-responsive{width:100%;max-width:100%;overflow:auto}
body.customer-app .table-clean{width:100%;min-width:760px;border-collapse:collapse;table-layout:fixed}
body.customer-app .table-clean th{
  padding:9px 12px;
  border-bottom:1px solid var(--ui-line);
  background:#fafbfc;
  color:#6b7280;
  font-size:10px;
  font-weight:600;
  letter-spacing:.02em;
  text-align:left;
}
body.customer-app .table-clean td{
  padding:10px 12px;
  border-bottom:1px solid #f0f1f3;
  color:#374151;
  font-size:11.5px;
  line-height:1.4;
  vertical-align:middle;
}
body.customer-app .table-clean tbody tr:last-child td{border-bottom:0}
body.customer-app .table-clean tbody tr:hover{background:#fafaff}
body.customer-app .table-clean th:nth-child(1),body.customer-app .table-clean td:nth-child(1){width:104px}
body.customer-app .table-clean th:nth-child(2),body.customer-app .table-clean td:nth-child(2){width:125px}
body.customer-app .table-clean th:nth-child(4),body.customer-app .table-clean td:nth-child(4){width:120px}
body.customer-app .table-clean th:nth-child(5),body.customer-app .table-clean td:nth-child(5){width:112px}
body.customer-app .table-clean th:nth-child(6),body.customer-app .table-clean td:nth-child(6){width:54px}
body.customer-app .table-clean td strong{display:block;overflow:hidden;font-size:11.5px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}
body.customer-app .table-clean td small{display:block;overflow:hidden;margin-top:2px;color:var(--ui-muted);font-size:10.5px;text-overflow:ellipsis;white-space:nowrap}
body.customer-app .number-cell{text-align:right!important;white-space:nowrap}
body.customer-app .badge-confirmed{background:#eaf8ef!important;color:#237a46!important}
body.customer-app .badge-draft{background:#fff5dc!important;color:#9a6500!important}
body.customer-app .empty{height:74px!important;text-align:center!important;color:var(--ui-muted)!important}

body.customer-app .dashboard-quick-links{
  display:flex;
  align-items:center;
  gap:6px;
  overflow:auto;
  padding:8px 2px 2px;
  border:0;
  background:transparent;
  box-shadow:none;
  scrollbar-width:thin;
}
body.customer-app .dashboard-quick-links a{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  min-height:29px;
  padding:0 10px;
  border:1px solid var(--ui-line);
  border-radius:9px;
  background:#fff;
  color:#5b6472;
  font-size:10.5px;
  font-weight:500;
  text-decoration:none;
}
body.customer-app .dashboard-quick-links a:hover{border-color:#cfc9fa;color:var(--ui-primary);background:#faf9ff}

/* Keep long errors and notices inside the content area. */
body.customer-app .alert{max-width:100%;overflow-wrap:anywhere;word-break:break-word}

@media(max-width:1280px){
  body.customer-app .kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:760px){
  body.customer-app .kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.customer-app .todo-item{grid-template-columns:1fr}
  body.customer-app .todo-item .action{justify-self:start}
}
@media(max-width:430px){
  body.customer-app .kpi-grid{grid-template-columns:1fr}
}

/* ========================================================================== */
/* v7.1.3 — unified customer layout, evidence workspace and component audit   */
/* ========================================================================== */
body.customer-app *,body.owner-page *{box-sizing:border-box}
body.customer-app form,body.owner-page form{margin:0;min-width:0}
body.customer-app .btn,body.customer-app button.btn,body.customer-app a.btn,
body.owner-page .owner-button,body.owner-page .btn,body.owner-page button,body.owner-page a.owner-primary-button{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  gap:6px!important;line-height:1!important;text-align:center!important;vertical-align:middle!important;
  white-space:nowrap!important;box-sizing:border-box!important;
}
body.customer-app .btn.micro{min-height:28px!important;height:28px!important;padding:0 9px!important;border-radius:8px!important;font-size:10.5px!important}
body.customer-app .row>form,body.owner-page .row>form{display:inline-flex;align-items:center;min-width:0}
body.customer-app .page-head{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:14px!important;margin:0 0 12px!important;min-width:0!important}
body.customer-app .page-head .title-wrap{min-width:0!important}
body.customer-app .page-head .row{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;max-width:55%!important}
body.customer-app .page-title-text{margin:0 0 3px!important}
body.customer-app .page-subtitle-text{margin:0!important;line-height:1.4!important}
body.customer-app .grid{display:grid!important;gap:12px!important;min-width:0!important}
body.customer-app .cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}
body.customer-app .cols-3{grid-template-columns:repeat(3,minmax(0,1fr))!important}
body.customer-app .cols-4{grid-template-columns:repeat(4,minmax(0,1fr))!important}
body.customer-app .grid>*{min-width:0!important}
body.customer-app .form-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;align-items:end!important}
body.customer-app .form-grid>.wide{grid-column:1/-1!important}
body.customer-app label{display:grid!important;gap:5px!important;min-width:0!important}
body.customer-app input,body.customer-app select,body.customer-app textarea{width:100%!important;max-width:100%!important}
body.customer-app input[type="checkbox"],body.customer-app input[type="radio"]{width:auto!important;min-height:0!important}
body.customer-app input[type="file"]{padding:4px!important;line-height:1.2!important}
body.customer-app input[type="file"]::file-selector-button{height:28px;margin-right:8px;padding:0 10px;border:1px solid var(--ui-line-strong);border-radius:7px;background:#fff;color:#374151;font:inherit;cursor:pointer}
body.customer-app .card.stat{display:grid!important;align-content:center!important;gap:4px!important;min-width:0!important;min-height:76px!important;padding:12px 14px!important}
body.customer-app .card.stat>span{color:var(--ui-muted)!important;font-size:10.5px!important;font-weight:500!important}
body.customer-app .card.stat>strong{overflow:hidden;color:#111827!important;font-size:17px!important;font-weight:650!important;line-height:1.25!important;text-overflow:ellipsis!important;white-space:nowrap!important}
body.customer-app .card.stat>small{font-size:10.5px!important;line-height:1.35!important}
body.customer-app .dashboard-grid-tight{gap:10px!important;margin-bottom:12px!important}
body.customer-app .meta-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:0!important;border:1px solid var(--ui-line)!important;border-radius:10px!important;overflow:hidden!important;background:#fbfcfd!important}
body.customer-app .meta-grid>div{display:grid!important;gap:3px!important;min-width:0!important;padding:9px 11px!important;border-right:1px solid var(--ui-line)!important;border-bottom:1px solid var(--ui-line)!important}
body.customer-app .meta-grid>div:nth-child(2n){border-right:0!important}
body.customer-app .meta-grid span{font-size:10px!important}
body.customer-app .meta-grid strong{overflow-wrap:anywhere;font-size:11.5px!important;font-weight:600!important}
body.customer-app details{min-width:0!important}
body.customer-app details>summary{line-height:1.3!important}
body.customer-app .toolbar-card{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;padding:10px 12px!important;margin-bottom:10px!important;border:1px solid var(--ui-line)!important;border-radius:10px!important;background:#fff!important;box-shadow:var(--ui-shadow)!important}
body.customer-app .toolbar-card .row{width:100%!important;align-items:end!important}
body.customer-app .toolbar-card label{display:flex!important;align-items:center!important;gap:8px!important;font-size:11.5px!important}
body.customer-app .toolbar-card input,body.customer-app .toolbar-card select{width:auto!important;min-width:130px!important}

/* Report pages */
body.customer-app .report-groups{display:grid!important;gap:12px!important}
body.customer-app .report-groups>.card{margin:0!important;padding:13px!important}
body.customer-app .report-card-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:9px!important}
body.customer-app .report-card{display:grid!important;grid-template-rows:1fr auto!important;gap:10px!important;min-width:0!important;min-height:130px!important;padding:12px!important;border:1px solid var(--ui-line)!important;border-radius:10px!important;background:#fff!important}
body.customer-app .report-card h3{margin:7px 0 4px!important;font-size:12.5px!important;line-height:1.35!important;font-weight:600!important}
body.customer-app .report-card p{margin:0!important;font-size:10.5px!important;color:var(--ui-muted)!important}
body.customer-app .report-card>.row{display:flex!important;gap:6px!important;align-self:end!important}
body.customer-app .report-card>.row .btn{flex:1 1 auto!important;min-width:0!important}
body.customer-app .report-total-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(145px,1fr))!important;gap:8px!important}
body.customer-app .report-total-grid>div{display:grid!important;gap:3px!important;padding:9px 10px!important;border:1px solid var(--ui-line)!important;border-radius:9px!important;background:#fafbfc!important}
body.customer-app .report-total-grid span{font-size:10px!important;color:var(--ui-muted)!important}
body.customer-app .report-total-grid strong{font-size:12.5px!important}
body.customer-app .report-preview-sheet{overflow:hidden!important;padding:14px!important}
body.customer-app .report-preview-heading{display:grid!important;grid-template-columns:minmax(180px,.7fr) minmax(280px,1.3fr)!important;gap:16px!important;align-items:start!important;margin-bottom:12px!important;padding-bottom:10px!important;border-bottom:1px solid var(--ui-line)!important}
body.customer-app .report-preview-heading>div{display:grid!important;gap:3px!important;min-width:0!important}
body.customer-app .report-preview-heading h2{margin:0!important;text-align:center!important;font-size:15px!important}
body.customer-app .report-preview-heading span{font-size:10.5px!important;color:var(--ui-muted)!important}
body.customer-app .report-preview-heading>div:last-child span{text-align:center!important}

/* Subscription and general account pages */
body.customer-app .subscription-summary{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;margin-bottom:12px!important}
body.customer-app .subscription-current{margin:0!important}
body.customer-app .subscription-price{display:grid!important;justify-items:end!important;gap:2px!important}
body.customer-app .subscription-price strong{font-size:18px!important}
body.customer-app .subscription-period{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;margin-top:10px!important;padding-top:10px!important;border-top:1px solid var(--ui-line)!important}
body.customer-app .usage-list{display:grid!important;gap:10px!important}
body.customer-app .usage-bar{height:6px!important;overflow:hidden!important;border-radius:999px!important;background:#eef0f3!important}
body.customer-app .usage-bar>span{display:block!important;height:100%!important;border-radius:inherit!important;background:var(--ui-primary)!important}
body.customer-app .payment-layout{display:grid!important;grid-template-columns:190px minmax(0,1fr)!important;gap:14px!important;align-items:start!important}
body.customer-app .vietqr-box{display:grid!important;justify-items:center!important;gap:6px!important}
body.customer-app .vietqr-box img{display:block!important;width:180px!important;max-width:100%!important;border-radius:10px!important}
body.customer-app .payment-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
body.customer-app .payment-grid>div{display:grid!important;gap:3px!important;padding:9px 10px!important;border:1px solid var(--ui-line)!important;border-radius:9px!important}
body.customer-app .payment-grid>.wide{grid-column:1/-1!important}
body.customer-app .payment-grid span{font-size:10px!important;color:var(--ui-muted)!important}
body.customer-app .customer-plan-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(220px,1fr))!important;gap:10px!important}
body.customer-app .customer-plan-card{display:grid!important;grid-template-rows:1fr auto!important;gap:12px!important;min-width:0!important;padding:13px!important;border:1px solid var(--ui-line)!important;border-radius:10px!important;background:#fff!important}
body.customer-app .customer-plan-card.current{border-color:#bdb4ff!important;background:#faf9ff!important}
body.customer-app .customer-plan-card h3{margin:7px 0 4px!important}
body.customer-app .customer-plan-card ul{margin:8px 0 0!important;padding-left:17px!important;font-size:11px!important;line-height:1.6!important}
body.customer-app .plan-price{font-size:18px!important;font-weight:650!important}

/* Transactions list and evidence quick actions */
body.customer-app .transaction-toolbar-compact{padding:9px 10px!important;margin-bottom:10px!important}
body.customer-app .transaction-filter-grid{display:grid!important;grid-template-columns:minmax(260px,1fr) minmax(170px,220px) auto!important;gap:8px!important;align-items:center!important}
body.customer-app .transaction-filter-grid .btn{height:36px!important}
body.customer-app .transaction-workspace{min-width:0!important}
body.customer-app .transaction-list{display:grid!important;gap:8px!important}
body.customer-app .transaction-list-item{min-width:0!important;overflow:hidden!important;border:1px solid var(--ui-line)!important;border-radius:11px!important;background:#fff!important;box-shadow:0 1px 2px rgba(15,23,42,.025)!important}
body.customer-app .transaction-list-item.is-open{border-color:#cfc8ff!important;box-shadow:0 5px 16px rgba(15,23,42,.05)!important}
body.customer-app .transaction-row-main{display:grid!important;grid-template-columns:128px minmax(260px,1fr) 130px 160px 24px!important;align-items:center!important;gap:12px!important;width:100%!important;min-width:0!important;padding:11px 12px!important;border:0!important;background:#fff!important;color:inherit!important;text-align:left!important;cursor:pointer!important}
body.customer-app .transaction-row-main:hover{background:#fafaff!important}
body.customer-app .transaction-row-main>span{min-width:0!important}
body.customer-app .transaction-date,body.customer-app .transaction-description,body.customer-app .transaction-amount,body.customer-app .transaction-state{display:grid!important;gap:3px!important}
body.customer-app .transaction-row-main strong{overflow:hidden!important;font-size:11.8px!important;font-weight:600!important;line-height:1.35!important;text-overflow:ellipsis!important;white-space:nowrap!important}
body.customer-app .transaction-row-main small{overflow:hidden!important;color:var(--ui-muted)!important;font-size:10.3px!important;line-height:1.35!important;text-overflow:ellipsis!important;white-space:nowrap!important}
body.customer-app .transaction-amount{text-align:right!important}
body.customer-app .transaction-state{justify-items:start!important}
body.customer-app .transaction-chevron{font-size:17px!important;text-align:center!important;transition:transform .18s ease!important}
body.customer-app .transaction-list-item.is-open .transaction-chevron{transform:rotate(180deg)!important}
body.customer-app .transaction-evidence-strip{display:flex!important;align-items:stretch!important;gap:7px!important;min-width:0!important;padding:8px 12px 10px!important;border-top:1px solid #f0f1f3!important;overflow-x:auto!important;scrollbar-width:thin!important}
body.customer-app .evidence-quick{display:grid!important;grid-template-columns:minmax(135px,1fr) auto!important;align-items:center!important;gap:8px!important;flex:0 0 min(330px,80vw)!important;min-width:0!important;padding:8px 9px!important;border:1px solid var(--ui-line)!important;border-radius:9px!important;background:#fafbfc!important}
body.customer-app .evidence-quick.has-file{background:#f5fbf7!important;border-color:#d9eee0!important}
body.customer-app .transaction-list-item.has-missing-evidence{border-left:3px solid #f04438!important}
body.customer-app .transaction-evidence-strip.has-missing-evidence{background:linear-gradient(90deg,rgba(254,243,242,.7),rgba(255,255,255,0) 42%)!important}
body.customer-app .transaction-missing-docs{display:inline-flex!important;align-items:center!important;gap:4px!important;color:#b42318!important;font-weight:600!important}
body.customer-app .transaction-missing-docs>span{display:inline-grid!important;place-items:center!important;width:14px!important;height:14px!important;border-radius:50%!important;background:#fee4e2!important;color:#b42318!important;font-size:9px!important;font-weight:700!important;line-height:1!important}
body.customer-app .evidence-quick.needs-attention{position:relative!important;border-color:#f97066!important;background:#fff7f6!important;box-shadow:0 0 0 0 rgba(240,68,56,.18)!important;animation:evidenceAttentionPulse 1.8s ease-in-out infinite!important}
body.customer-app .evidence-quick.needs-attention::before{content:""!important;position:absolute!important;inset:-1px!important;border:1px solid rgba(240,68,56,.26)!important;border-radius:9px!important;pointer-events:none!important}
body.customer-app .evidence-quick.needs-attention:hover,body.customer-app .evidence-quick.needs-attention:focus-within{animation-play-state:paused!important;border-color:#d92d20!important;box-shadow:0 0 0 3px rgba(240,68,56,.12)!important}
body.customer-app .evidence-attention-badge{display:inline-flex!important;align-items:center!important;gap:4px!important;width:max-content!important;max-width:100%!important;margin-bottom:1px!important;padding:2px 6px!important;border-radius:999px!important;background:#fee4e2!important;color:#b42318!important;font-size:8.8px!important;font-weight:700!important;line-height:1.25!important;letter-spacing:.01em!important}
body.customer-app .evidence-attention-badge>span{display:inline-grid!important;place-items:center!important;width:12px!important;height:12px!important;border-radius:50%!important;background:#d92d20!important;color:#fff!important;font-size:8px!important;line-height:1!important}
body.customer-app .evidence-quick.needs-attention .evidence-quick-copy strong{color:#7a271a!important}
body.customer-app .evidence-quick.needs-attention .evidence-quick-copy small{color:#b42318!important}
body.customer-app .evidence-quick.needs-attention .evidence-action-link.primary{padding:4px 7px!important;border:1px solid #f97066!important;border-radius:7px!important;background:#fff!important;color:#b42318!important;font-weight:700!important}
@keyframes evidenceAttentionPulse{0%,100%{box-shadow:0 0 0 0 rgba(240,68,56,.12)}50%{box-shadow:0 0 0 4px rgba(240,68,56,.12)}}
@media(prefers-reduced-motion:reduce){body.customer-app .evidence-quick.needs-attention{animation:none!important;box-shadow:0 0 0 2px rgba(240,68,56,.10)!important}}
body.customer-app .evidence-quick-copy{display:grid!important;gap:2px!important;min-width:0!important}
body.customer-app .evidence-quick-copy strong,body.customer-app .evidence-quick-copy small{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
body.customer-app .evidence-quick-copy strong{font-size:10.8px!important;font-weight:600!important}
body.customer-app .evidence-quick-copy small{font-size:9.5px!important;color:var(--ui-muted)!important}
body.customer-app .evidence-quick-actions{display:flex!important;align-items:center!important;gap:5px!important}
body.customer-app .evidence-upload-form{display:inline-flex!important;align-items:center!important}
body.customer-app .evidence-upload-form input[type="file"]{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important}
body.customer-app .evidence-empty{padding:4px 0!important;color:var(--ui-muted)!important;font-size:10.5px!important}
body.customer-app .transaction-expanded{padding:12px!important;border-top:1px solid var(--ui-line)!important;background:#fbfcfd!important}
body.customer-app .transaction-expanded[hidden]{display:none!important}
body.customer-app .transaction-detail-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
body.customer-app .transaction-detail-card,body.customer-app .transaction-subsection{min-width:0!important;padding:11px!important;border:1px solid var(--ui-line)!important;border-radius:10px!important;background:#fff!important}
body.customer-app .compact-section-head{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:10px!important;min-width:0!important;margin-bottom:9px!important}
body.customer-app .compact-section-head h2,body.customer-app .compact-section-head h3{margin:0!important;font-size:12.5px!important}
body.customer-app .compact-section-head p{margin:3px 0 0!important;font-size:10.5px!important;color:var(--ui-muted)!important;line-height:1.4!important}
body.customer-app .compact-section-head>span{font-size:10px!important;color:var(--ui-muted)!important;white-space:nowrap!important}
body.customer-app .transaction-definition{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:0!important;margin:0!important;border:1px solid var(--ui-line)!important;border-radius:9px!important;overflow:hidden!important}
body.customer-app .transaction-definition>div{display:grid!important;grid-template-columns:minmax(88px,.7fr) minmax(0,1.3fr)!important;gap:8px!important;min-width:0!important;padding:7px 8px!important;border-right:1px solid var(--ui-line)!important;border-bottom:1px solid var(--ui-line)!important}
body.customer-app .transaction-definition>div:nth-child(2n){border-right:0!important}
body.customer-app .transaction-definition dt{color:var(--ui-muted)!important;font-size:9.8px!important}
body.customer-app .transaction-definition dd{min-width:0!important;margin:0!important;overflow-wrap:anywhere!important;font-size:10.8px!important;font-weight:600!important}
body.customer-app .transaction-subsection{margin-top:10px!important}
body.customer-app .transaction-subsection h3{margin:0 0 8px!important}
body.customer-app .transaction-expanded-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;margin-top:10px!important}
body.customer-app .empty-state.transaction-empty-state{min-height:130px!important}
body.customer-app .empty-inline{padding:10px!important;color:var(--ui-muted)!important;font-size:11px!important;text-align:center!important}

/* Transaction detail page */
body.customer-app .transaction-detail-page{display:grid!important;grid-template-columns:minmax(0,.86fr) minmax(0,1.14fr)!important;gap:12px!important;align-items:start!important}
body.customer-app .transaction-overview-card,body.customer-app .evidence-workspace-card{min-width:0!important;padding:14px!important;border:1px solid var(--ui-line)!important;border-radius:12px!important;background:#fff!important;box-shadow:var(--ui-shadow)!important}
body.customer-app .transaction-overview-head{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:12px!important;align-items:start!important;margin-bottom:11px!important}
body.customer-app .transaction-overview-head h2{margin:8px 0 3px!important;font-size:15px!important;line-height:1.4!important}
body.customer-app .transaction-overview-head p{margin:0!important;font-size:10.5px!important;color:var(--ui-muted)!important}
body.customer-app .transaction-overview-total{font-size:15px!important;white-space:nowrap!important}
body.customer-app .transaction-definition-main{grid-template-columns:1fr!important}
body.customer-app .transaction-definition-main>div{border-right:0!important}
body.customer-app .transaction-overview-actions{display:flex!important;gap:8px!important;margin-top:11px!important}
body.customer-app .evidence-card-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
body.customer-app .evidence-card{display:grid!important;grid-template-columns:90px minmax(0,1fr)!important;grid-template-rows:minmax(90px,auto) auto!important;min-width:0!important;overflow:hidden!important;border:1px solid var(--ui-line)!important;border-radius:10px!important;background:#fff!important}
body.customer-app .evidence-card.has-file{border-color:#d7eadf!important}
body.customer-app .evidence-card-preview{grid-row:1;grid-column:1;min-width:0!important;background:#f5f6f8!important;border-right:1px solid var(--ui-line)!important}
body.customer-app .evidence-image-button,body.customer-app .evidence-file-preview{display:grid!important;place-items:center!important;width:100%!important;height:100%!important;min-height:90px!important;padding:0!important;border:0!important;background:transparent!important;cursor:pointer!important}
body.customer-app .evidence-image-button img{display:block!important;width:100%!important;height:90px!important;object-fit:cover!important}
body.customer-app .evidence-file-preview{align-content:center!important;gap:5px!important;padding:8px!important}
body.customer-app .evidence-file-preview>span,body.customer-app .document-file-icon{display:grid!important;place-items:center!important;width:38px!important;height:38px!important;border-radius:9px!important;background:#edeaff!important;color:var(--ui-primary)!important;font-size:10px!important;font-weight:700!important}
body.customer-app .evidence-file-preview small{max-width:75px!important;overflow:hidden!important;font-size:9px!important;text-overflow:ellipsis!important;white-space:nowrap!important}
body.customer-app .evidence-placeholder{display:grid!important;place-items:center!important;align-content:center!important;gap:4px!important;height:100%!important;min-height:90px!important;color:#9ca3af!important}
body.customer-app .evidence-placeholder span{font-size:22px!important;font-weight:300!important}
body.customer-app .evidence-placeholder small{font-size:9.5px!important}
body.customer-app .evidence-card-body{grid-row:1;grid-column:2;display:grid!important;align-content:start!important;gap:5px!important;min-width:0!important;padding:9px!important}
body.customer-app .evidence-card-body h3{margin:0!important;font-size:11.5px!important;line-height:1.35!important}
body.customer-app .evidence-card-body p{display:-webkit-box!important;overflow:hidden!important;margin:0!important;color:var(--ui-muted)!important;font-size:9.8px!important;line-height:1.4!important;-webkit-line-clamp:3!important;-webkit-box-orient:vertical!important}
body.customer-app .evidence-card-body>.row small{font-size:8.8px!important}
body.customer-app .evidence-filename{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
body.customer-app .evidence-card-actions{grid-row:2;grid-column:1/-1;display:flex!important;align-items:center!important;gap:5px!important;padding:7px 8px!important;border-top:1px solid var(--ui-line)!important;background:#fbfcfd!important}
body.customer-app .evidence-card-actions form{display:inline-flex!important}
body.customer-app .evidence-card-actions input[type="file"]{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important}
body.customer-app .transaction-compact-details{grid-column:1/-1!important;overflow:hidden!important;border:1px solid var(--ui-line)!important;border-radius:10px!important;background:#fff!important}
body.customer-app .transaction-compact-details>summary{padding:10px 12px!important;font-size:11.5px!important;font-weight:600!important;cursor:pointer!important}
body.customer-app .transaction-compact-details[open]>summary{border-bottom:1px solid var(--ui-line)!important}
body.customer-app .transaction-compact-details>.table-wrap,body.customer-app .transaction-compact-details>.form-grid,body.customer-app .transaction-compact-details>.alert,body.customer-app .transaction-compact-details>.empty-inline{margin:10px!important}
body.customer-app .compact-form{padding:10px!important}

/* Document gallery and modal */
body.customer-app .document-gallery{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(92px,1fr))!important;gap:7px!important}
body.customer-app .document-thumb{display:grid!important;grid-template-rows:72px auto!important;gap:5px!important;min-width:0!important;padding:5px!important;border:1px solid var(--ui-line)!important;border-radius:9px!important;background:#fafbfc!important;color:inherit!important;cursor:pointer!important}
body.customer-app .document-thumb:hover{border-color:#c9c0ff!important;background:#faf9ff!important}
body.customer-app .document-thumb img{display:block!important;width:100%!important;height:72px!important;border-radius:6px!important;object-fit:cover!important}
body.customer-app .document-thumb>.document-file-icon{justify-self:center!important;align-self:center!important}
body.customer-app .document-thumb small{overflow:hidden!important;font-size:9px!important;text-overflow:ellipsis!important;white-space:nowrap!important}
body.document-viewer-open{overflow:hidden!important}
body.customer-app .document-viewer[hidden]{display:none!important}
body.customer-app .document-viewer{position:fixed!important;inset:0!important;z-index:200!important;display:grid!important;place-items:center!important;padding:20px!important}
body.customer-app .document-viewer-backdrop{position:absolute!important;inset:0!important;background:rgba(15,23,42,.64)!important;backdrop-filter:blur(3px)!important}
body.customer-app .document-viewer-panel{position:relative!important;display:grid!important;grid-template-rows:auto minmax(0,1fr)!important;width:min(1100px,96vw)!important;height:min(820px,92vh)!important;overflow:hidden!important;border-radius:12px!important;background:#fff!important;box-shadow:0 24px 80px rgba(0,0,0,.28)!important}
body.customer-app .document-viewer-panel>header{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;min-width:0!important;padding:10px 12px!important;border-bottom:1px solid var(--ui-line)!important}
body.customer-app .document-viewer-panel>header>strong{overflow:hidden!important;font-size:12px!important;text-overflow:ellipsis!important;white-space:nowrap!important}
body.customer-app .document-viewer-panel>header>div{display:flex!important;gap:6px!important}
body.customer-app .document-viewer-body{display:grid!important;place-items:center!important;min-height:0!important;overflow:auto!important;background:#eef0f3!important}
body.customer-app .document-viewer-body img{display:block!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important}
body.customer-app .document-viewer-body iframe{width:100%!important;height:100%!important;border:0!important;background:#fff!important}
body.customer-app .document-viewer-body>[data-document-unsupported]{padding:30px!important;color:#4b5563!important;font-size:12px!important;text-align:center!important}

/* Tax, XML, inventory and auxiliary pages previously missing structural CSS */
body.customer-app .tax-tabs{display:flex!important;gap:5px!important;overflow-x:auto!important;margin-bottom:10px!important;padding:4px!important;border:1px solid var(--ui-line)!important;border-radius:9px!important;background:#f2f3f5!important}
body.customer-app .tax-tab{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:30px!important;padding:0 10px!important;border:0!important;border-radius:7px!important;background:transparent!important;font-size:10.5px!important;white-space:nowrap!important}
body.customer-app .tax-tab.active{background:#fff!important;color:var(--ui-primary)!important;box-shadow:0 1px 3px rgba(15,23,42,.08)!important}
body.customer-app .tax-panel[hidden]{display:none!important}
body.customer-app .tax-panel-toolbar,body.customer-app .tax-period-picker,body.customer-app .tax-summary-strip{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;flex-wrap:wrap!important}
body.customer-app .tax-report-card,body.customer-app .tax-settings-panel{padding:12px!important;border:1px solid var(--ui-line)!important;border-radius:10px!important;background:#fff!important}
body.customer-app .tax-settings-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
body.customer-app .inventory-editor,body.customer-app .tax-line-editor{min-width:0!important;overflow:hidden!important}
body.customer-app .compact-table{width:100%!important;min-width:680px!important}
body.customer-app .actions-cell{white-space:nowrap!important}

@media(max-width:1280px){
  body.customer-app .report-card-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  body.customer-app .transaction-row-main{grid-template-columns:115px minmax(220px,1fr) 120px 145px 20px!important}
  body.customer-app .evidence-card-grid{grid-template-columns:1fr!important}
}
@media(max-width:1050px){
  body.customer-app .cols-4,body.customer-app .dashboard-grid-tight{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.customer-app .report-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.customer-app .transaction-detail-page{grid-template-columns:1fr!important}
  body.customer-app .transaction-row-main{grid-template-columns:105px minmax(180px,1fr) 120px 24px!important}
  body.customer-app .transaction-state{display:none!important}
}
@media(max-width:760px){
  body.customer-app .page-head{display:grid!important}
  body.customer-app .page-head .row{max-width:none!important;justify-content:flex-start!important}
  body.customer-app .cols-2,body.customer-app .cols-3,body.customer-app .cols-4,body.customer-app .form-grid,body.customer-app .subscription-summary,body.customer-app .payment-grid,body.customer-app .tax-settings-grid{grid-template-columns:1fr!important}
  body.customer-app .report-card-grid{grid-template-columns:1fr!important}
  body.customer-app .payment-layout{grid-template-columns:1fr!important}
  body.customer-app .transaction-filter-grid{grid-template-columns:1fr!important}
  body.customer-app .transaction-row-main{grid-template-columns:84px minmax(0,1fr) 20px!important;gap:8px!important}
  body.customer-app .transaction-amount,body.customer-app .transaction-state{display:none!important}
  body.customer-app .transaction-detail-grid{grid-template-columns:1fr!important}
  body.customer-app .transaction-definition{grid-template-columns:1fr!important}
  body.customer-app .transaction-definition>div{border-right:0!important}
  body.customer-app .evidence-card-grid{grid-template-columns:1fr!important}
  body.customer-app .report-preview-heading{grid-template-columns:1fr!important}
  body.customer-app .report-preview-heading h2,body.customer-app .report-preview-heading>div:last-child span{text-align:left!important}
}

/* Remaining audited structural components */
body.customer-app .password-card{width:min(680px,100%)!important;margin:0 auto!important}
body.customer-app .content-grid{display:grid!important;gap:12px!important;min-width:0!important}
body.customer-app .content-grid.main-dashboard{grid-template-columns:minmax(0,1.2fr) minmax(300px,.8fr)!important}
body.customer-app .content-grid.two-columns{grid-template-columns:minmax(0,1.2fr) minmax(300px,.8fr)!important}
body.customer-app .inline-details{display:inline-flex!important;align-items:center!important;gap:8px!important}
body.customer-app .inline-details>summary{cursor:pointer!important;font-size:11px!important}
body.customer-app .htkk-sheet{overflow:hidden!important;padding:14px!important}
body.customer-app .htkk-national,body.customer-app .htkk-form-title{text-align:center!important}
body.customer-app .htkk-national{font-size:10.5px!important;line-height:1.5!important}
body.customer-app .htkk-form-title{margin:10px 0!important;font-size:15px!important;font-weight:650!important}
body.customer-app .htkk-taxpayer-grid,body.customer-app .htkk-indicators{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
body.customer-app .htkk-taxpayer-grid>div,body.customer-app .htkk-indicators>div{display:grid!important;gap:3px!important;padding:8px 9px!important;border:1px solid var(--ui-line)!important;border-radius:8px!important}
body.customer-app .htkk-sign{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:20px!important;margin-top:24px!important;text-align:center!important}
body.customer-app .transaction-upload-card{display:grid!important;grid-template-columns:minmax(220px,.75fr) minmax(320px,1.25fr)!important;gap:16px!important;align-items:center!important}
body.customer-app .transaction-upload-intro{display:flex!important;align-items:flex-start!important;gap:10px!important;min-width:0!important}
body.customer-app .upload-step{display:grid!important;place-items:center!important;flex:0 0 28px!important;width:28px!important;height:28px!important;border-radius:8px!important;background:var(--ui-primary-soft)!important;color:var(--ui-primary)!important;font-size:11px!important;font-weight:700!important}
body.customer-app .transaction-upload-form{display:grid!important;gap:9px!important;min-width:0!important}
body.customer-app .transaction-upload-actions{display:flex!important;align-items:center!important;gap:8px!important;justify-content:flex-end!important}
body.customer-app .upload-dropzone-icon{display:grid!important;place-items:center!important;width:38px!important;height:38px!important;border-radius:10px!important;background:var(--ui-primary)!important;color:#fff!important;font-size:18px!important}
body.customer-app .badge-pending{background:#fff7e8!important;color:#9a6500!important}
@media(max-width:900px){body.customer-app .content-grid.main-dashboard,body.customer-app .content-grid.two-columns,body.customer-app .transaction-upload-card{grid-template-columns:1fr!important}}
@media(max-width:680px){body.customer-app .htkk-taxpayer-grid,body.customer-app .htkk-indicators,body.customer-app .htkk-sign{grid-template-columns:1fr!important}}

/* v7.1.3 final page-audit coverage */
body.customer-app .page-header-strip{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:12px!important;min-width:0!important;margin:0 0 12px!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important}
body.customer-app .page-header-strip>.title-wrap{min-width:0!important}
body.customer-app .page-header-strip>.row{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:7px!important;flex-wrap:wrap!important;min-width:0!important}
body.customer-app .transaction-search,body.customer-app .transaction-filter-select{width:100%!important;min-width:0!important}
body.customer-app .tax-toolbar-note{color:var(--ui-muted)!important;font-size:10.5px!important;line-height:1.4!important}
body.customer-app .report-totals{overflow:hidden!important}
body.customer-app .report-totals .report-total-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(150px,1fr))!important;gap:1px!important;overflow:hidden!important;border:1px solid var(--ui-line)!important;border-radius:9px!important;background:var(--ui-line)!important}
body.customer-app .report-totals .report-total-grid>div{display:grid!important;gap:3px!important;min-width:0!important;padding:9px 10px!important;background:#fff!important}
body.customer-app .report-totals .report-total-grid span{overflow:hidden!important;color:var(--ui-muted)!important;font-size:9.5px!important;text-overflow:ellipsis!important;white-space:nowrap!important}
body.customer-app .report-totals .report-total-grid strong{font-size:12px!important;font-weight:600!important}
body.customer-app button,body.customer-app .btn,body.customer-app .btn-primary,body.owner-page button,body.owner-page .owner-action,body.owner-page .owner-primary-button,body:not(.customer-app):not(.owner-page) button,body:not(.customer-app):not(.owner-page) .btn{box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;vertical-align:middle!important;line-height:1!important;text-align:center!important}
body.customer-app .btn svg,body.customer-app button svg,body.owner-page button svg{flex:0 0 auto!important}
@media(max-width:760px){body.customer-app .page-header-strip{display:grid!important}.page-header-strip>.row{justify-content:flex-start!important}}

/* v7.1.4 — formatting, header actions and removable evidence */
body.customer-app .page-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:7px!important;
  flex:0 0 auto!important;
  min-width:0!important;
  white-space:nowrap!important;
}
body.customer-app .page-actions>.row{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:7px!important;
  flex-wrap:nowrap!important;
  width:auto!important;
  max-width:none!important;
}
body.customer-app .page-actions form,
body.customer-app .page-actions a,
body.customer-app .page-actions button{flex:0 0 auto!important}
body.customer-app .btn.danger{border-color:#fecaca!important;background:#fff1f2!important;color:#b42318!important}
body.customer-app .btn.danger:hover{border-color:#fda4af!important;background:#ffe4e6!important;color:#9f1239!important}
body.customer-app .document-thumb-wrap{position:relative!important;min-width:0!important}
body.customer-app .document-thumb-wrap>.document-thumb{width:100%!important}
body.customer-app .document-thumb-delete{
  position:absolute!important;
  top:5px!important;
  right:5px!important;
  z-index:2!important;
  display:grid!important;
  place-items:center!important;
  width:24px!important;
  height:24px!important;
  padding:0!important;
  border:1px solid #fecaca!important;
  border-radius:7px!important;
  background:rgba(255,255,255,.95)!important;
  color:#b42318!important;
  font-size:16px!important;
  line-height:1!important;
  box-shadow:0 2px 8px rgba(15,23,42,.08)!important;
}
body.customer-app .document-thumb-delete:hover{background:#fff1f2!important}
body.customer-app .document-source-label{
  position:absolute!important;
  top:6px!important;
  right:6px!important;
  z-index:2!important;
  padding:3px 6px!important;
  border-radius:999px!important;
  background:rgba(17,24,39,.82)!important;
  color:#fff!important;
  font-size:8.5px!important;
  font-weight:600!important;
}
body.customer-app input[data-no-number-format]{font-variant-numeric:tabular-nums!important}
@media(max-width:980px){
  body.customer-app .page-header-strip{display:grid!important}
  body.customer-app .page-actions{justify-content:flex-start!important;white-space:normal!important}
  body.customer-app .page-actions>.row{justify-content:flex-start!important;flex-wrap:wrap!important}
}
body.customer-app .evidence-quick-actions,
body.customer-app .evidence-card-actions{flex-wrap:wrap!important}
body.customer-app .page-actions>.inline-filter{flex:0 0 auto!important}


/* v7.1.5 — asset-only fields, compact evidence actions and full-height viewer */
body.customer-app [hidden]{display:none!important}

body.customer-app .evidence-quick-actions,
body.customer-app .evidence-card-actions{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  flex-wrap:wrap!important;
}
body.customer-app .evidence-quick-actions form,
body.customer-app .evidence-card-actions form{
  display:inline-flex!important;
  align-items:center!important;
  margin:0!important;
}
body.customer-app .evidence-action-link{
  appearance:none!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:auto!important;
  padding:2px 0!important;
  border:0!important;
  border-bottom:1px solid transparent!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:#667085!important;
  font:inherit!important;
  font-size:10.5px!important;
  font-weight:500!important;
  line-height:1.25!important;
  text-decoration:none!important;
  white-space:nowrap!important;
  cursor:pointer!important;
  transition:color .14s ease,border-color .14s ease,transform .14s ease!important;
}
body.customer-app .evidence-action-link:hover{
  color:var(--ui-primary)!important;
  border-bottom-color:currentColor!important;
  transform:translateY(-1px)!important;
}
body.customer-app .evidence-action-link.primary{color:var(--ui-primary)!important}
body.customer-app .evidence-action-link.danger{color:#b42318!important}
body.customer-app .evidence-action-link.danger:hover{color:#8f1d15!important}
body.customer-app .evidence-card-actions{
  padding:6px 9px!important;
  background:#fcfcfd!important;
}
body.customer-app .evidence-quick-actions{justify-content:flex-end!important}

body.customer-app .document-viewer-body{
  position:relative!important;
  display:block!important;
  min-width:0!important;
  min-height:0!important;
  overflow:hidden!important;
  background:#eef0f3!important;
}
body.customer-app .document-viewer-body iframe{
  position:absolute!important;
  inset:0!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  min-width:100%!important;
  min-height:100%!important;
  margin:0!important;
  border:0!important;
  background:#eef0f3!important;
}
body.customer-app .document-viewer-body img{
  position:absolute!important;
  inset:0!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  padding:10px!important;
  object-fit:contain!important;
  background:#eef0f3!important;
}
body.customer-app .document-viewer-body>[data-document-unsupported]{
  position:absolute!important;
  inset:0!important;
  display:grid!important;
  place-items:center!important;
}

@media(max-width:760px){
  body.customer-app .evidence-quick-actions{justify-content:flex-start!important}
}
body.customer-app .document-viewer-body iframe[hidden],
body.customer-app .document-viewer-body img[hidden],
body.customer-app .document-viewer-body>[data-document-unsupported][hidden]{display:none!important}

/* v7.1.6 — guided payment and law-owned defaults */
body.customer-app .invoice-payment-check{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,240px);gap:10px;align-items:end;margin-top:12px;padding:11px 12px;border:1px solid var(--ui-line);border-radius:11px;background:#fbfbfc}
body.customer-app .payment-confirmation{min-width:0;margin:0;padding:0;border:0}
body.customer-app .payment-confirmation legend{display:flex;align-items:baseline;gap:8px;margin:0 0 8px;padding:0;font-size:11.5px;font-weight:600;color:var(--ui-text)}
body.customer-app .payment-confirmation legend small{font-size:10.5px;font-weight:400;color:var(--ui-muted)}
body.customer-app .payment-choice-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
body.customer-app .payment-choice{position:relative;display:block;min-width:0;margin:0!important}
body.customer-app .payment-choice input{position:absolute;opacity:0;pointer-events:none}
body.customer-app .payment-choice span{display:flex;align-items:center;justify-content:center;min-height:34px;padding:0 9px;border:1px solid var(--ui-line-strong);border-radius:9px;background:#fff;color:#4b5563;font-size:11.5px;font-weight:500;text-align:center;cursor:pointer;transition:border-color .15s ease,background-color .15s ease,color .15s ease,transform .15s ease}
body.customer-app .payment-choice:hover span{border-color:#bdb5f7;color:var(--ui-primary);transform:translateY(-1px)}
body.customer-app .payment-choice input:checked+span{border-color:var(--ui-primary);background:var(--ui-primary-soft);color:var(--ui-primary);box-shadow:inset 0 0 0 1px rgba(109,94,252,.08)}
body.customer-app .payment-split-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;grid-column:1/-1}
body.customer-app .payment-split-grid label,body.customer-app .invoice-payment-check>[data-due-date-wrap]{font-size:10.5px!important}
body.customer-app .payment-split-grid input,body.customer-app .invoice-payment-check input[type=date]{min-height:34px!important}
body.customer-app .tax-classification{margin:10px 14px 14px!important;border:1px solid var(--ui-line)!important;border-radius:10px!important;background:#fff!important}
body.customer-app .tax-classification>summary{padding:10px 12px;font-size:11.5px;font-weight:600;cursor:pointer}
body.customer-app .tax-classification .tax-line-editor{padding:0 10px 10px}
body.customer-app .tax-classification .section-head{display:none!important}
body.customer-app .tax-classification .table th,body.customer-app .tax-classification .table td{padding:7px!important}
body.customer-app .invoice-related-section{margin:10px 14px 14px;padding:10px;border:1px solid var(--ui-line);border-radius:10px;background:#fbfbfc}
body.customer-app .invoice-edit-panel .invoice-advanced{display:none!important}
@media(max-width:980px){body.customer-app .invoice-payment-check{grid-template-columns:1fr}.payment-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:560px){body.customer-app .payment-choice-grid,body.customer-app .payment-split-grid{grid-template-columns:1fr!important}}


/* v7.1.9 compact employee and payroll workspace */
body.customer-app .employees-page{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important;min-width:0!important;max-width:100%!important}
body.customer-app .employees-page>.card{width:100%!important;min-width:0!important;max-width:100%!important;margin:0!important}
body.customer-app .employee-editor{padding:0!important;overflow:hidden!important}
body.customer-app .employee-editor-summary{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:16px!important;min-height:58px!important;padding:11px 14px!important;cursor:pointer!important;list-style:none!important;user-select:none!important}
body.customer-app .employee-editor-summary::-webkit-details-marker{display:none!important}
body.customer-app .employee-editor-summary::marker{display:none!important;content:''!important}
body.customer-app .employee-editor-summary:hover{background:#f8fafc!important}
body.customer-app .employee-editor-copy{display:grid!important;gap:2px!important;min-width:0!important}
body.customer-app .employee-editor-copy strong{font-size:14px!important;font-weight:650!important;color:#10213a!important}
body.customer-app .employee-editor-copy small{overflow:hidden!important;color:var(--ui-muted)!important;font-size:11px!important;line-height:1.35!important;text-overflow:ellipsis!important;white-space:nowrap!important}
body.customer-app .employee-editor-toggle{display:inline-flex!important;align-items:center!important;gap:7px!important;flex:0 0 auto!important;color:var(--ui-primary)!important;font-size:11px!important;font-weight:650!important}
body.customer-app .employee-editor-chevron{display:inline-grid!important;place-items:center!important;width:24px!important;height:24px!important;border:1px solid #d9e2ec!important;border-radius:7px!important;background:#fff!important;color:#526177!important;font-size:15px!important;line-height:1!important;transition:transform .18s ease!important}
body.customer-app .employee-editor[open] .employee-editor-summary{border-bottom:1px solid var(--ui-line)!important;background:#fbfcfe!important}
body.customer-app .employee-editor[open] .employee-editor-chevron{transform:rotate(180deg)!important}
body.customer-app .employee-editor-body{padding:12px 14px 14px!important}
body.customer-app .employee-edit-strip{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;margin-bottom:10px!important;padding:7px 9px!important;border:1px solid #dbeafe!important;border-radius:8px!important;background:#eff6ff!important;font-size:11px!important}
body.customer-app .employee-form-compact{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:9px 10px!important;align-items:end!important}
body.customer-app .employee-form-compact label,body.customer-app .payroll-quick-form label{gap:5px!important;font-size:10.5px!important;line-height:1.3!important}
body.customer-app .employee-form-compact input,body.customer-app .employee-form-compact select,body.customer-app .employee-form-compact textarea,body.customer-app .payroll-quick-form input,body.customer-app .payroll-quick-form select{min-height:38px!important;height:38px!important;padding:0 10px!important;border-radius:8px!important;font-size:11.5px!important}
body.customer-app .employee-form-compact textarea{min-height:38px!important;height:38px!important;padding:9px 10px!important;resize:vertical!important}
body.customer-app .employee-form-compact small,body.customer-app .payroll-quick-form small{font-size:9.5px!important;line-height:1.25!important}
body.customer-app .employee-notes{grid-column:span 2!important}
body.customer-app .employee-save-btn{min-height:38px!important;align-self:end!important}
body.customer-app .payroll-quick-card{padding:12px 14px!important}
body.customer-app .payroll-quick-head{margin-bottom:9px!important}
body.customer-app .payroll-quick-head h2{font-size:14px!important}
body.customer-app .payroll-quick-head p{margin-top:2px!important;font-size:10.5px!important}
body.customer-app .payroll-quick-form{display:grid!important;grid-template-columns:minmax(230px,1.6fr) minmax(135px,.75fr) minmax(135px,.75fr) minmax(180px,1fr) auto!important;gap:9px 10px!important;align-items:end!important}
body.customer-app .payroll-actions{display:flex!important;align-items:center!important;gap:7px!important;min-height:38px!important;white-space:nowrap!important}
body.customer-app .payroll-actions .btn{min-height:38px!important;padding:0 14px!important}
body.customer-app .payroll-commitment{grid-column:1/-1!important;display:flex!important;align-items:center!important;gap:10px!important;min-height:28px!important;padding:5px 8px!important;border:1px solid #e2e8f0!important;border-radius:8px!important;background:#f8fafc!important}
body.customer-app .payroll-commitment[hidden]{display:none!important}
body.customer-app .payroll-commitment>span{display:inline-flex!important;align-items:center!important;gap:7px!important;white-space:nowrap!important}
body.customer-app .compact-payroll-result{display:grid!important;grid-template-columns:minmax(280px,1.5fr) minmax(220px,1fr)!important;gap:9px 12px!important;margin-top:10px!important;padding-top:10px!important;border-top:1px solid var(--ui-line)!important}
body.customer-app .compact-payroll-result>.alert{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;margin:0!important;padding:9px 11px!important}
body.customer-app .compact-payroll-result>.alert span{font-size:10.5px!important}
body.customer-app .payroll-result-metrics{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
body.customer-app .payroll-result-metrics>div{display:grid!important;gap:2px!important;padding:8px 10px!important;border:1px solid var(--ui-line)!important;border-radius:8px!important;background:#fff!important}
body.customer-app .payroll-result-metrics span{font-size:10px!important}
body.customer-app .payroll-result-metrics strong{font-size:12px!important}
body.customer-app .compact-payroll-result>details{grid-column:1/-1!important}
body.customer-app .payroll-formula{margin-top:7px!important;padding:8px 10px!important;border-radius:8px!important;background:#f8fafc!important}
body.customer-app .payroll-formula p{margin:3px 0!important;font-size:10.5px!important}
body.customer-app .employees-list-card,body.customer-app .recent-payroll-card{padding:12px!important}
body.customer-app .employees-list-card .section-head,body.customer-app .recent-payroll-card .section-head{margin-bottom:8px!important}
body.customer-app .employees-page .table th,body.customer-app .employees-page .table td{padding-top:8px!important;padding-bottom:8px!important}
body.customer-app .employees-page+footer{margin-top:14px!important}
@media(max-width:1180px){
  body.customer-app .employee-form-compact{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  body.customer-app .employee-notes{grid-column:span 2!important}
  body.customer-app .payroll-quick-form{grid-template-columns:minmax(220px,1.5fr) repeat(3,minmax(135px,1fr))!important}
  body.customer-app .payroll-actions{grid-column:1/-1!important}
}
@media(max-width:820px){
  body.customer-app .employee-form-compact{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.customer-app .payroll-quick-form{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.customer-app .payroll-employee-field{grid-column:1/-1!important}
  body.customer-app .payroll-actions{grid-column:1/-1!important}
  body.customer-app .compact-payroll-result{grid-template-columns:1fr!important}
  body.customer-app .compact-payroll-result>details{grid-column:auto!important}
}
@media(max-width:560px){
  body.customer-app .employee-editor-summary{align-items:flex-start!important;min-height:54px!important;padding:10px 12px!important}
  body.customer-app .employee-editor-copy small{white-space:normal!important}
  body.customer-app .employee-editor-toggle{font-size:0!important}
  body.customer-app .employee-form-compact,body.customer-app .payroll-quick-form{grid-template-columns:1fr!important}
  body.customer-app .employee-notes,body.customer-app .payroll-employee-field,body.customer-app .payroll-actions,body.customer-app .payroll-commitment{grid-column:auto!important}
  body.customer-app .payroll-actions{display:grid!important;grid-template-columns:1fr!important}
  body.customer-app .payroll-actions .btn{width:100%!important}
  body.customer-app .compact-payroll-result>.alert{align-items:flex-start!important;flex-direction:column!important}
}


/* v7.2.0 free-text accounting intake and special journal review */
.narrative-divider{display:flex;align-items:center;gap:12px;margin:2px 0;color:var(--muted,#667085);font-size:.75rem;font-weight:800;letter-spacing:.08em}.narrative-divider::before,.narrative-divider::after{content:"";height:1px;background:var(--line,#e4e7ec);flex:1}.narrative-entry{display:grid;gap:7px}.narrative-entry textarea{min-height:96px;resize:vertical}.narrative-entry small{color:var(--muted,#667085)}.narrative-accounting-note{padding:12px 14px;border:1px solid #d8d4ff;border-radius:12px;background:#f7f5ff;color:#312e81}.payment-choice-grid.two-options{grid-template-columns:repeat(2,minmax(0,1fr))}.invoice-direction.transfer,.invoice-direction.payroll_payment{background:#eef2ff;color:#3730a3}
@media(max-width:640px){.payment-choice-grid.two-options{grid-template-columns:1fr}.narrative-accounting-note{padding:10px 12px}}


/* v7.2.1 — show free-text intake on the real /capture screen */
.one-step-text-form{grid-column:1/-1;display:grid;grid-template-columns:minmax(210px,.72fr) minmax(0,1.7fr) auto;align-items:center;gap:14px;padding:15px;border:1px solid #ddd9ff;border-radius:16px;background:#faf9ff}
.one-step-text-copy{display:grid;gap:3px}.one-step-text-copy .eyebrow{font-size:10px}.one-step-text-copy strong{font-size:15px}.one-step-text-copy small{color:#656977;font-size:11.5px;line-height:1.45}
.one-step-text-entry{display:block}.one-step-text-entry textarea{display:block;width:100%;min-height:76px;padding:12px 14px;border:1px solid #d6d8e0;border-radius:12px;background:#fff;color:#1f2937;font:inherit;line-height:1.5;resize:vertical}.one-step-text-entry textarea:focus{border-color:#673de6;box-shadow:0 0 0 3px rgba(103,61,230,.11);outline:0}
.one-step-text-submit{min-height:44px;white-space:nowrap}.one-step-text-note{grid-column:2/-1;margin:-7px 0 0;color:#707480;font-size:10.5px}
body.customer-app .one-step-text-form{padding:12px!important;border-radius:12px!important;gap:10px!important}body.customer-app .one-step-text-entry textarea{min-height:68px!important;font-size:12.5px!important}body.customer-app .one-step-text-submit{font-size:11.5px!important}
@media(max-width:900px){.one-step-text-form{grid-template-columns:1fr}.one-step-text-note{grid-column:1;margin:0}.one-step-text-submit{width:100%}}


/* v7.2.2 — insurance eligibility is derived from objective contract duration */
.employee-insurance-auto{display:grid;align-content:center;gap:4px;min-height:54px;padding:9px 11px;border:1px solid #d8d4ff;border-radius:10px;background:#faf9ff}.employee-insurance-auto strong{font-size:12px;color:#312e81}.employee-insurance-auto small{font-size:10.5px;line-height:1.4;color:#696b78}

/* v7.2.4 · Non-financial legal/background contexts */
body.customer-app .badge.info{background:#eef2ff!important;color:#4338ca!important}
body.customer-app .badge.missing{background:#fee4e2!important;color:#b42318!important}
body.customer-app .badge.success{background:var(--ui-success-soft)!important;color:var(--ui-success)!important}
body.customer-app .legal-context-create{padding:0!important;overflow:hidden!important}
body.customer-app .legal-context-create>summary{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:16px!important;padding:13px 15px!important;list-style:none!important;cursor:pointer!important}
body.customer-app .legal-context-create>summary::-webkit-details-marker{display:none!important}
body.customer-app .legal-context-create>summary strong{font-size:12.5px!important}
body.customer-app .legal-context-create>summary span{color:var(--ui-muted)!important;font-size:10.5px!important}
body.customer-app .legal-context-create[open]>summary{border-bottom:1px solid var(--ui-line)!important;background:#fafaff!important}
body.customer-app .legal-context-form{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;padding:14px!important}
body.customer-app .legal-context-form .wide{grid-column:1/-1!important}
body.customer-app .legal-context-list{display:grid!important;gap:8px!important}
body.customer-app .legal-context-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:16px!important;min-width:0!important;padding:11px 12px!important;border:1px solid var(--ui-line)!important;border-radius:10px!important;background:#fff!important}
body.customer-app .legal-context-row:hover{border-color:#cfc8ff!important;background:#fcfbff!important}
body.customer-app .legal-context-row.needs-attention{border-left:3px solid #f04438!important;background:#fffafa!important}
body.customer-app .legal-context-row>div:first-child{display:grid!important;gap:4px!important;min-width:0!important}
body.customer-app .legal-context-row>div:first-child>strong{overflow:hidden!important;font-size:11.8px!important;text-overflow:ellipsis!important;white-space:nowrap!important}
body.customer-app .legal-context-row small{color:var(--ui-muted)!important;font-size:10px!important}
body.customer-app .legal-context-row-metrics{display:grid!important;justify-items:end!important;gap:3px!important;white-space:nowrap!important}
body.customer-app .legal-context-row-metrics span{color:var(--ui-muted)!important;font-size:9.5px!important}
body.customer-app .legal-context-row-metrics strong{font-size:11.5px!important}
body.customer-app .legal-context-statusbar{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px!important;margin-bottom:10px!important;padding:10px 12px!important;border:1px solid var(--ui-line)!important;border-radius:10px!important;background:#f8fafc!important}
body.customer-app .legal-context-statusbar>div{display:grid!important;gap:2px!important}
body.customer-app .legal-context-statusbar strong{font-size:11.5px!important}
body.customer-app .legal-context-statusbar small{color:var(--ui-muted)!important;font-size:9.8px!important}
body.customer-app .legal-context-statusbar.complete{border-color:#bde7cb!important;background:#f4fbf6!important}
body.customer-app .legal-context-statusbar.suggested{border-color:#c7d7fe!important;background:#f5f8ff!important}
body.customer-app .legal-context-statusbar.needs-attention{border-color:#fda29b!important;background:#fff7f6!important}
body.customer-app .legal-context-layout{display:grid!important;grid-template-columns:minmax(0,1.05fr) minmax(330px,.95fr)!important;gap:10px!important;align-items:start!important}
body.customer-app .legal-context-evidence-grid{display:grid!important;grid-template-columns:1fr!important;gap:7px!important}
body.customer-app .transaction-context-strip{display:grid!important;grid-template-columns:minmax(145px,.42fr) minmax(0,1.58fr)!important;gap:10px!important;align-items:center!important;padding:7px 12px!important;border-top:1px solid #f0f1f3!important;background:#fafbff!important}
body.customer-app .transaction-context-strip.has-missing-evidence{background:linear-gradient(90deg,rgba(254,243,242,.78),#fff 55%)!important}
body.customer-app .transaction-context-strip-head{display:grid!important;gap:2px!important;min-width:0!important}
body.customer-app .transaction-context-strip-head strong{font-size:10.5px!important}
body.customer-app .transaction-context-strip-head small{overflow:hidden!important;color:var(--ui-muted)!important;font-size:9.2px!important;text-overflow:ellipsis!important;white-space:nowrap!important}
body.customer-app .transaction-context-chips{display:flex!important;align-items:center!important;gap:6px!important;min-width:0!important;overflow-x:auto!important;padding:1px!important;scrollbar-width:thin!important}
body.customer-app .context-chip,body.customer-app .context-suggestion-chip{display:inline-flex!important;align-items:center!important;gap:6px!important;flex:0 0 auto!important;max-width:360px!important;padding:5px 7px!important;border:1px solid var(--ui-line)!important;border-radius:999px!important;background:#fff!important;font-size:9.5px!important;line-height:1.25!important}
body.customer-app .context-chip a,body.customer-app .context-suggestion-chip span{max-width:240px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-weight:600!important}
body.customer-app .context-chip b{font-size:8.5px!important;color:var(--ui-muted)!important}
body.customer-app .context-chip.linked{border-color:#bde7cb!important;background:#f5fbf7!important}
body.customer-app .context-chip.linked b{color:var(--ui-success)!important}
body.customer-app .context-chip.needs-attention{border-color:#f97066!important;background:#fff7f6!important}
body.customer-app .context-chip.needs-attention b{color:#b42318!important}
body.customer-app .context-suggestion-chip{border-style:dashed!important;border-color:#a7b9f6!important;background:#f7f8ff!important}
body.customer-app .context-suggestion-chip button{padding:0!important;border:0!important;background:transparent!important;color:#4338ca!important;font:inherit!important;font-weight:700!important;white-space:nowrap!important}
body.customer-app .transaction-context-suggestion{color:#4338ca!important;font-weight:600!important}
body.customer-app .transaction-context-detail{grid-column:1/-1!important}
body.customer-app .transaction-context-detail-page{margin-top:10px!important}
body.customer-app .context-linked-list{display:grid!important;gap:7px!important}
body.customer-app .context-linked-row{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;min-width:0!important;padding:8px 9px!important;border:1px solid var(--ui-line)!important;border-radius:9px!important;background:#fafbfc!important}
body.customer-app .context-linked-row.needs-attention{border-color:#fda29b!important;background:#fff7f6!important}
body.customer-app .context-linked-row>div{display:grid!important;gap:2px!important;min-width:0!important}
body.customer-app .context-linked-row strong{font-size:10.8px!important}
body.customer-app .context-linked-row small{color:var(--ui-muted)!important;font-size:9.5px!important;line-height:1.35!important}
body.customer-app .context-link-form{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:7px!important;margin-top:8px!important}
body.customer-app .context-link-form select{min-width:0!important}
body.customer-app .context-suggestion-list{display:grid!important;gap:6px!important;margin-top:8px!important;padding-top:8px!important;border-top:1px dashed var(--ui-line)!important}
body.customer-app .context-suggestion-list>strong{font-size:10px!important}
body.customer-app .context-suggestion-list .context-suggestion-chip{max-width:100%!important;justify-content:space-between!important;border-radius:9px!important}
body.customer-app .context-create-link{display:inline-flex!important;margin-top:7px!important;color:#4338ca!important;font-size:9.8px!important;font-weight:700!important}
@media(max-width:980px){body.customer-app .legal-context-layout{grid-template-columns:1fr!important}body.customer-app .transaction-context-strip{grid-template-columns:1fr!important;gap:5px!important}}
@media(max-width:680px){body.customer-app .legal-context-form{grid-template-columns:1fr!important}body.customer-app .legal-context-form .wide{grid-column:auto!important}body.customer-app .legal-context-row{grid-template-columns:1fr!important}body.customer-app .legal-context-row-metrics{justify-items:start!important}body.customer-app .legal-context-create>summary{align-items:flex-start!important;flex-direction:column!important;gap:3px!important}body.customer-app .context-linked-row{align-items:flex-start!important;flex-direction:column!important}body.customer-app .context-link-form{grid-template-columns:1fr!important}}
body.customer-app .context-dismiss-chip{display:inline-flex!important;align-items:center!important;flex:0 0 auto!important;padding:5px 7px!important;border:1px solid #d0d5dd!important;border-radius:999px!important;background:#fff!important}
body.customer-app .context-dismiss-chip button{padding:0!important;border:0!important;background:transparent!important;color:#667085!important;font:inherit!important;font-size:9.5px!important;font-weight:650!important;white-space:nowrap!important}
body.customer-app .context-dismiss-form{display:flex!important;justify-content:flex-start!important;margin-top:2px!important}


/* v7.2.6 · legal-context timeline, summaries and action alignment */
body.customer-app .dashboard-add-transaction{min-width:136px!important;font-weight:700!important}
body.customer-app .page-actions form{display:inline-flex!important;margin:0!important}
body.customer-app .legal-context-money-grid{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:12px!important;flex-wrap:wrap!important}
body.customer-app .legal-context-money-grid>span{display:grid!important;gap:1px!important;justify-items:end!important;color:var(--ui-muted)!important;font-size:9.2px!important}
body.customer-app .legal-context-money-grid strong{color:var(--ui-text)!important;font-size:10.8px!important}
body.customer-app .legal-context-finance-summary{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important;margin:0 0 10px!important}
body.customer-app .legal-context-finance-summary>div{display:grid!important;gap:4px!important;padding:10px 12px!important;border:1px solid var(--ui-line)!important;border-radius:10px!important;background:#fff!important}
body.customer-app .legal-context-finance-summary span{color:var(--ui-muted)!important;font-size:9.8px!important}
body.customer-app .legal-context-finance-summary strong{font-size:12.5px!important}
body.customer-app .context-timeline-row{color:inherit!important;text-decoration:none!important;cursor:pointer!important}
body.customer-app .context-timeline-item{border-left:3px solid #7464f2!important;background:#fbfaff!important}
body.customer-app .context-timeline-item.has-missing-evidence{border-left-color:#f04438!important;background:#fffafa!important}
body.customer-app .context-timeline-values small{white-space:normal!important}
@media(max-width:900px){body.customer-app .legal-context-finance-summary{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:680px){body.customer-app .legal-context-finance-summary{grid-template-columns:1fr!important}body.customer-app .legal-context-money-grid{justify-content:flex-start!important}body.customer-app .legal-context-money-grid>span{justify-items:start!important}}
body.customer-app .context-linked-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:6px!important;flex:0 0 auto!important}
body.customer-app .context-linked-actions form{display:inline-flex!important;margin:0!important}
body.customer-app .context-timeline-row{background:#fbfaff!important}
body.customer-app .context-timeline-item.has-missing-evidence .context-timeline-row{background:#fffafa!important}
@media(max-width:680px){body.customer-app .context-linked-actions{justify-content:flex-start!important}}
