/* Classic has no layout overrides. The switch is deliberately independent of role preview. */
.interface-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.interface-toolbar[hidden],.interface-sidebar[hidden],.interface-guide[hidden],.interface-choice[hidden]{display:none!important}
.interface-guide,.interface-dialog-help{display:none}
.interface-dialog-help[hidden]{display:none!important}
.interface-choice{display:inline-flex;align-items:center;gap:8px;font-size:14px;font-weight:600;color:#16314b;margin:0}
.interface-choice select{width:auto;min-width:90px;min-height:44px;font:inherit}
.interface-menu-toggle{display:none}
body.interface-new{--interface-width:268.8px}
body.interface-new>main,body.interface-new>.office-footer{margin-left:var(--interface-width);width:auto;max-width:none}
body.interface-new>.interface-sidebar{position:fixed;inset:0 auto 0 0;width:var(--interface-width);z-index:90;display:flex;flex-direction:column;overflow:auto;overscroll-behavior:contain;background:#f5f8fc;border-right:1px solid #d5e1ee;padding:16px 10px;box-sizing:border-box}
body.interface-new>.office-footer{box-sizing:border-box;flex-wrap:wrap;min-width:0}
body.interface-new .office-footer :is(.role-preview-panel,.office-footer-meta){max-width:100%;min-width:0}
body.interface-new>header{margin-left:var(--interface-width);width:auto;flex-wrap:wrap}
body.interface-new .office-navigation-row{display:none}
body.interface-new .interface-modules,body.interface-new .interface-sections{display:flex;flex-direction:column;gap:4px}
body.interface-new .interface-module-group{display:block;min-width:0}
body.interface-new .interface-module-head{display:flex;align-items:stretch;min-width:0}
body.interface-new .interface-module-head>.interface-link{flex:1;min-width:0}
body.interface-new .interface-section-toggle{display:flex;align-items:center;justify-content:center;flex:0 0 44px;min-width:44px;min-height:44px;padding:0;border:0!important;background:transparent!important;color:var(--tvm-action,#0866b7);box-shadow:none!important}
body.interface-new .interface-section-toggle[hidden],body.interface-new .interface-section-panel[hidden]{display:none!important}
body.interface-new .interface-section-toggle img{width:16px;height:16px}
body.interface-new .interface-section-toggle[aria-expanded="true"] img{transform:rotate(180deg)}
body.interface-new .interface-section-toggle:focus-visible{outline:3px solid var(--tvm-focus,#e8b52e);outline-offset:-3px}
body.interface-new .interface-section-panel--nested{padding:4px 0 8px 12px;min-width:0}
body.interface-new .interface-section-panel--nested>.interface-section-title[hidden]{display:none!important}
body.interface-new .interface-section-title[hidden]{display:none!important}
@media screen{body.tvm-office.interface-new #workspace-title{display:none!important}}
body.interface-new .interface-sales[hidden]{display:none!important}
body.interface-new .interface-sales{margin:0 0 16px;padding:0 0 16px;border-bottom:1px solid var(--tvm-line,#dce7ee);flex-shrink:0}
body.interface-new .interface-sales-title{font-size:12px;font-weight:700;letter-spacing:.02em;color:var(--tvm-muted,#52677b);margin:0 0 10px;padding:0 12px}
body.interface-new .interface-sales-actions{display:flex;flex-direction:column;gap:8px}
body.interface-new .interface-link{display:flex;align-items:center;gap:10px;width:100%;min-height:44px;white-space:normal;text-align:left;padding:10px 12px;border:1px solid transparent;border-radius:8px;background:transparent;color:#16314b;font:inherit;font-size:14px;text-decoration:none;box-sizing:border-box;flex-shrink:0}
body.interface-new .interface-link svg{width:22px;height:22px;flex-shrink:0}
body.interface-new .interface-intake-count{display:inline-flex;align-items:center;justify-content:center;flex:none;margin-inline-start:auto;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:var(--tvm-danger,#b3262e);color:#fff;font-size:12px;font-weight:700;font-variant-numeric:tabular-nums}
body.interface-new .interface-link:hover{background:#e7f0fc}
body.interface-new .interface-link[aria-current]{background:#e1edff;color:#124f94;border-color:#b9d0ef;font-weight:700}
body.interface-new .interface-section-title{font-size:14px;margin:20px 12px 8px;padding-top:16px;border-top:1px solid #d5e1ee}
body.interface-new .interface-sections .interface-link{min-height:40px;padding:8px 12px}
body.interface-new :is(.interface-link,.interface-menu-toggle,.interface-choice select):focus-visible,.interface-choice select:focus-visible{outline:3px solid #e8b52e;outline-offset:2px}
body.interface-new [data-interface-target]{scroll-margin-top:24px}
/* Section navigation focuses the content without adding a second outer frame. */
body.interface-new [data-interface-target]:focus{outline:none}
@media(min-width:901px) and (max-width:1250px){
 body.tvm-office.interface-new>.office-footer{display:flex;flex-wrap:wrap;gap:12px 20px}
 body.tvm-office.interface-new .office-footer .crm-sales-brand{display:flex;flex-direction:column;flex:1 1 300px}
 body.tvm-office.interface-new .office-footer :is(.crm-sales-brand span,span){white-space:normal}
}
@media(max-width:1100px){
 body.interface-new{--interface-width:240px}
}
@media(min-width:761px) and (max-width:900px){
 body.tvm-office.interface-new #definitions-view .definition-tabs{display:flex;flex-wrap:wrap;max-width:100%;min-width:0}
 body.tvm-office.interface-new #definitions-view .definition-tabs>button{flex:1 1 180px;min-width:0;white-space:normal}
}
@media(min-width:761px) and (max-width:1200px){
 /* Keep the four states in order; give the existing counter its next row when the content column is narrow. */
 body.tvm-office.interface-new #workspace-overview .workspace-daily-left>.workspace-metrics{grid-template-columns:repeat(4,minmax(0,1fr)) auto}
 body.tvm-office.interface-new #workspace-overview .workspace-daily-left>.workspace-metrics>.workspace-month-counter{grid-column:1/-1;grid-row:2;justify-self:end}
 body.tvm-office.interface-new #workspace-overview .workspace-daily-left .metric-card[data-application-stage]{flex-direction:column;gap:2px}
 body.tvm-office.interface-new #workspace-overview .workspace-daily-left .metric-card[data-application-stage] span{overflow-wrap:normal;word-break:normal}
}
@media(max-width:900px){
 body.interface-new>main,body.interface-new>.office-footer,body.interface-new>header{margin-left:0}
 body.interface-new .interface-menu-toggle{display:inline-flex;min-height:44px;align-items:center}
 body.interface-new>.interface-sidebar{display:none;inset:var(--interface-drawer-top,60px) auto 80px 0;width:min(300px,85vw);box-shadow:6px 0 20px #16314b30}
 body.interface-new.interface-menu-open>.interface-sidebar{display:flex}
 body.interface-new .office-navigation-row{display:none}
 body>.interface-toolbar{padding:8px 16px;justify-content:flex-end;background:#fff;border-bottom:1px solid #d5e1ee;box-sizing:border-box}
 body.interface-new>.interface-toolbar{position:sticky;top:0;z-index:95;min-height:60px;gap:12px}
 body.interface-new [data-interface-target]{scroll-margin-top:76px}
}
@media(max-width:760px){
 /* The existing mobile bottom bar remains the only main navigation. */
 body.interface-new .interface-modules{display:none}
 body.interface-new .interface-section-title{margin-top:0;border-top:0;padding-top:4px}
 body.interface-new>.interface-toolbar{justify-content:space-between}
}
@media print{
 .interface-toolbar,.interface-sidebar,.interface-guide,.interface-dialog-help,.interface-dialog-choice{display:none!important}
 body.interface-new>main,body.interface-new>.office-footer,body.interface-new>header{margin-left:0!important}
}

/* New interface typography and compact work area — user-approved sidebar reference. */
body.tvm-office.interface-new{
 --interface-control-size:var(--tvm-type-support,14px);
 --interface-control-weight:var(--tvm-weight-regular,400);
 --interface-control-leading:var(--tvm-leading-body,1.5);
}
/* One control role; semantic headings, record names and warnings keep their hierarchy. */
body.tvm-office.interface-new :is(a,button,input,select,textarea,.interface-choice):not(dialog *, .oc-event-dialog-backdrop *){
 font-family:var(--tvm-font-ui)!important;
 font-size:var(--interface-control-size)!important;
 font-weight:var(--interface-control-weight)!important;
 line-height:var(--interface-control-leading)!important;
}
body.tvm-office.interface-new .interface-link[aria-current]{font-weight:var(--tvm-weight-bold,700)!important}
body.tvm-office.interface-new .interface-sales .interface-link[data-quick-action]{border:1px solid var(--tvm-action,#0866b7)!important;background:var(--tvm-surface,#fff)!important;color:var(--tvm-navy,#16314b);min-height:44px}
body.tvm-office.interface-new .interface-sales .interface-link[data-quick-action="new-case"]{background:var(--tvm-action-soft,#e9f2ff)!important;font-weight:700!important}
body.tvm-office.interface-new .interface-sales .interface-link:hover{background:var(--tvm-action-soft,#e9f2ff)!important}
body.tvm-office.interface-new #workspace-overview .workspace-priority-list>.workspace-priority-actions-row{
 grid-template-columns:minmax(0,1fr) auto 44px;gap:8px;padding:8px 0;
}
body.tvm-office.interface-new #workspace-overview .workspace-priority-details{gap:2px}
body.tvm-office.interface-new #workspace-overview .workspace-priority-details .workspace-person{
 display:flex;flex-wrap:wrap;align-items:baseline;column-gap:8px;row-gap:2px;
}
body.tvm-office.interface-new #workspace-overview .workspace-priority-details .workspace-person strong{word-break:normal;overflow-wrap:break-word}
body.tvm-office.interface-new #workspace-overview .workspace-priority-details :is(.workspace-document-summary,.workspace-document-alert){margin:0;min-height:0}
body.tvm-office.interface-new #workspace-overview .workspace-priority-details .workspace-document-chip{padding:1px 6px;min-height:0}
body.tvm-office.interface-new #workspace-overview .workspace-priority-details .workspace-document-alert{padding:1px 6px}
body.tvm-office.interface-new #workspace-overview .workspace-daily-left>.workspace-priorities{padding:16px}
@media(min-width:901px){
 /* Existing original controls remain mounted for the sidebar proxies and Classic. */
 body.tvm-office.interface-new>header :is(#header-catalog,#definitions-nav){display:none!important}
 body.tvm-office.interface-new>header{min-height:64px;height:auto;padding:8px 24px;gap:12px;align-items:center}
 body.tvm-office.interface-new>header .crm-product-brand{margin:0;padding:0;min-height:0}
 body.tvm-office.interface-new>header .header-actions{flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px;margin:0}
 body.tvm-office.interface-new>header #office-session-name{width:auto;flex-basis:auto}
 body.tvm-office.interface-new>main{padding-top:20px}
 body.tvm-office.interface-new #app:has(>#operations-view:not([hidden]))>#workspace-actions.office-global-quick-actions{grid-column:1/-1;grid-row:1;justify-self:end}
}

/* Wrap at word boundaries; reflow status controls before a label has to split. */
body.tvm-office.interface-new :is(button,a,label){word-break:normal;overflow-wrap:break-word;hyphens:manual}
body.tvm-office.interface-new #workspace-overview .workspace-daily-left .metric-card[data-application-stage] span{word-break:normal;overflow-wrap:normal}
@media(min-width:761px){
 @container office-daily-left (max-width:650px){
  body.tvm-office.interface-new #workspace-overview .workspace-daily-left>.workspace-metrics{grid-template-columns:repeat(2,minmax(0,1fr)) auto}
  body.tvm-office.interface-new #workspace-overview .workspace-daily-left .metric-card[data-application-stage]{grid-column:auto;grid-row:auto}
  body.tvm-office.interface-new #workspace-overview .workspace-daily-left>.workspace-metrics>.workspace-month-counter{grid-column:3;grid-row:1/3}
 }
}

/* Full-width priorities; independent appointment and refund cards below. */
body.tvm-office.interface-new #workspace-overview .workspace-today-card{
 display:flex!important;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;
}
body.tvm-office.interface-new #workspace-overview .workspace-today-card .workspace-heading{
 display:flex;align-items:baseline;gap:8px 16px;flex-wrap:wrap;min-width:0;
}
body.tvm-office.interface-new #workspace-overview .workspace-today-card .workspace-heading h2{order:0;margin:0}
body.tvm-office.interface-new #workspace-overview .workspace-today-card .workspace-heading .eyebrow{position:static;order:1;margin:0}
@media(min-width:761px){
 body.tvm-office.interface-new #workspace-overview .workspace-daily-left>.workspace-metrics{grid-template-columns:repeat(4,minmax(0,1fr)) auto}
}
@media(min-width:901px){
 body.tvm-office.interface-new #workspace-overview .workspace-daily-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:stretch}
 body.tvm-office.interface-new #workspace-overview .workspace-daily-left{grid-column:1/-1;grid-row:1}
 body.tvm-office.interface-new #workspace-overview .workspace-daily-grid>.workspace-calendar{grid-column:1;grid-row:2}
 body.tvm-office.interface-new #workspace-overview .workspace-daily-grid>.workspace-refunds{grid-column:2;grid-row:2}
 body.tvm-office.interface-new #workspace-overview .workspace-daily-grid>:is(.workspace-calendar,.workspace-refunds){contain:none;min-height:220px}
}
@media(min-width:1101px){
 body.tvm-office.interface-new #workspace-overview .workspace-priority-details{grid-template-columns:minmax(0,1fr) max-content;column-gap:20px;row-gap:4px;align-items:baseline}
 body.tvm-office.interface-new #workspace-overview .workspace-priority-details>.workspace-person{grid-column:1;grid-row:1}
 body.tvm-office.interface-new #workspace-overview .workspace-priority-details>.workspace-next{grid-column:2;grid-row:1}
 body.tvm-office.interface-new #workspace-overview .workspace-priority-details>.workspace-document-summary{grid-column:1;grid-row:2}
 body.tvm-office.interface-new #workspace-overview .workspace-priority-details>.workspace-document-alert{grid-column:2;grid-row:2}
}

body.tvm-office.interface-new #workspace-overview .workspace-today-card .workspace-heading{flex:1 1 420px;width:auto}
body.tvm-office.interface-new #workspace-overview .workspace-today-card .workspace-header-tools{flex:0 1 auto;width:auto}

/* Short labels share the original links, targets and truthful count descriptions. */
body.tvm-office .workspace-link-new{display:none}
body.tvm-office.interface-new .workspace-link-classic{display:none}
body.tvm-office.interface-new .workspace-link-new{display:inline}

/* The action and stage share the first visual row; document details retain row two. */
@media(min-width:1101px){
 body.tvm-office.interface-new #workspace-overview .workspace-priority-list>.workspace-priority-actions-row{grid-template-rows:auto auto;row-gap:4px;align-items:center}
 body.tvm-office.interface-new #workspace-overview .workspace-priority-actions-row>.workspace-priority-details{grid-row:1/span 2;grid-template-rows:subgrid;align-items:center}
 body.tvm-office.interface-new #workspace-overview .workspace-priority-actions-row>.badge{grid-row:1;align-self:center}
 body.tvm-office.interface-new #workspace-overview .workspace-priority-actions-row>.workspace-priority-open{grid-row:1/span 2;align-self:center}
 body.tvm-office.interface-new #workspace-overview .workspace-priority-details>.workspace-next{align-self:center;padding-inline-end:12px}
}

/* Existing card controls form a single bottom action row. */
body.tvm-office.interface-new #workspace-overview :is(.workspace-calendar,.workspace-refunds){display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto 1fr;grid-auto-rows:auto;column-gap:16px;row-gap:8px;align-content:stretch}
body.tvm-office.interface-new #workspace-overview :is(.workspace-calendar,.workspace-refunds)>.workspace-panel-heading{grid-column:1/-1;align-self:start}
body.tvm-office.interface-new #workspace-overview .workspace-calendar>:is(ol,.workspace-calendar-empty,p),
body.tvm-office.interface-new #workspace-overview .workspace-refunds>:is(.workspace-refund-list,p){grid-column:1/-1}
body.tvm-office.interface-new #workspace-overview .workspace-calendar>.workspace-calendar-link,
body.tvm-office.interface-new #workspace-overview .workspace-refunds>.workspace-all-link{grid-column:1;align-self:end;justify-self:start;margin:0}
body.tvm-office.interface-new #workspace-overview .workspace-calendar>.workspace-calendar-link{min-height:44px}
body.tvm-office.interface-new #workspace-overview .workspace-calendar>.workspace-all-link,
body.tvm-office.interface-new #workspace-overview .workspace-refunds>.workspace-refund-link{grid-column:2;align-self:end;justify-self:end;margin:0}

/* The original search sits by the title; completed files finish the filter row. */
body.tvm-office.interface-new #workspace-overview .workspace-active>.workspace-panel-heading{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:12px 20px;text-align:left}
body.tvm-office.interface-new #workspace-overview .workspace-active>.workspace-panel-heading>div{flex:0 1 auto;min-width:0}
body.tvm-office.interface-new #workspace-overview .workspace-active>.workspace-panel-heading>.workspace-search{display:block;flex:1 1 280px;width:auto;min-width:0;max-width:480px;margin:0}
body.tvm-office.interface-new #workspace-overview .workspace-active .workspace-file-toolbar{display:flex;flex-direction:row;flex-wrap:wrap;gap:6px;align-items:center;padding-block:12px}
body.tvm-office.interface-new #workspace-overview .workspace-file-toolbar>.workspace-stage-filters{display:contents}
body.tvm-office.interface-new #workspace-overview .workspace-file-toolbar :is(.workspace-stage-filters>button,[data-completed]){min-height:44px}
body.tvm-office.interface-new #workspace-overview .workspace-file-toolbar>[data-completed]{margin:0 0 0 auto;flex:0 0 auto}
body.tvm-office.interface-new #workspace-overview .workspace-search input{width:100%;min-height:44px;box-sizing:border-box}

/* Retain the original button, icon, accessible text and logout handler. */
body.tvm-office.interface-new>header #logout{min-height:44px;min-width:44px;background:transparent!important;border:1px solid transparent!important;box-shadow:none!important;color:var(--tvm-muted,#526477)!important}
body.tvm-office.interface-new>header #logout:hover{background:var(--tvm-surface-subtle,#eef3f7)!important;color:var(--tvm-navy,#16314b)!important}
body.tvm-office.interface-new>header #logout:focus-visible{outline:3px solid var(--tvm-focus,#e8b52e);outline-offset:2px}

/* The full explanation lives in the existing role-aware staff guide. */
.cash-guide-link{color:var(--tvm-action,#0866b7);display:inline-flex;align-items:center;gap:1ch;min-height:44px;text-underline-offset:4px}
.cash-guide-link .tvm-icon{width:20px;height:20px}
.cash-person-guide-heading{display:flex;align-items:center;justify-content:space-between;gap:8px 16px;flex-wrap:wrap}

/* Responsive work canvas. All business nodes stay in their original document order. */
@media screen{
 body.tvm-office.interface-new{
  --interface-canvas:1440px;
  --interface-gutter:clamp(16px,2vw,32px);
  --interface-card-inset:18px;
  --interface-frame-inset:max(0px,calc((100% - var(--interface-width) - var(--interface-canvas))/2));
  background:var(--tvm-page,#f4f7fa);
 }
 body.tvm-office.interface-new>main{
  width:calc(100% - var(--interface-width));max-width:var(--interface-canvas);
  margin-left:calc(var(--interface-frame-inset) + var(--interface-width));
  margin-right:auto;padding:24px var(--interface-gutter) 32px;box-sizing:border-box;
  container:interface-content / inline-size;
 }
 body.tvm-office.interface-new>.interface-sidebar{background:var(--tvm-surface,#fff);padding:20px 12px;border-color:var(--tvm-line,#dce7ee)}
 body.tvm-office.interface-new .interface-link{
  border:1px solid transparent!important;box-shadow:none!important;background:transparent!important;
  border-radius:6px;color:var(--tvm-navy,#16314b);padding:10px 12px;
 }
 body.tvm-office.interface-new .interface-link:hover{background:var(--tvm-action-soft,#e9f2ff)!important;color:var(--tvm-navy,#16314b)}
 body.tvm-office.interface-new .interface-link[aria-current]{background:var(--tvm-action-soft,#e9f2ff)!important;color:var(--tvm-action,#0866b7)}
 body.tvm-office.interface-new .interface-link svg{width:20px;height:20px}
 body.tvm-office.interface-new .interface-section-title{font-size:12px;color:var(--tvm-muted,#52677b);font-weight:700;letter-spacing:.02em;margin:20px 12px 8px}
 body.tvm-office.interface-new .interface-sections{gap:0}
 body.tvm-office.interface-new .interface-section-panel{overflow:visible;max-height:none}
 body.tvm-office.interface-new .interface-sections .interface-link{min-height:44px;border-radius:4px;padding:8px 10px;border:0!important;gap:8px;font-weight:var(--tvm-weight-regular,400)!important}
 body.tvm-office.interface-new .interface-sections .interface-link::before{content:'›';flex:0 0 8px;color:var(--tvm-muted,#52677b);font-size:18px;line-height:1.2;align-self:flex-start}
 body.tvm-office.interface-new .interface-sections .interface-link[aria-current]{font-weight:var(--tvm-weight-semibold,600)!important}
 body.tvm-office.interface-new .interface-sections .interface-link[aria-current]::before{color:var(--tvm-action,#0866b7)}
 body.tvm-office.interface-new #app{row-gap:16px}
 body.tvm-office.interface-new #app{grid-template-columns:minmax(0,1fr)}
 body.tvm-office.interface-new #app>:is(.toolbar,.role-preview-panel,#account-rate-strip){grid-row:auto}
 body.tvm-office.interface-new #app>#workspace-actions.office-global-quick-actions,
 body.tvm-office.interface-new .office-mobile-new-action{display:none!important}
 body.tvm-office.interface-new #workspace-actions{gap:8px;margin:0}
 body.tvm-office.interface-new #app>#workspace-actions #new-case{box-shadow:none!important;outline:0;border:1px solid var(--tvm-action,#0866b7)!important}
 body.tvm-office.interface-new #workspace-actions #new-case:focus-visible{outline:3px solid var(--tvm-focus,#e8b52e);outline-offset:2px}
 body.tvm-office.interface-new :is(.workspace-panel,.cash-section,.cash-person-section){box-shadow:none!important;border-color:var(--tvm-line,#dce7ee)}
 body.tvm-office.interface-new :is(.workspace-table-wrap,.income-table-wrap,.cash-person-table-wrap){border-top-width:1px;border-radius:6px}
 body.tvm-office.interface-new .interface-table-scroll::before{content:'Tablonun devamı için yatay kaydırın →';display:block;position:sticky;left:0;width:100%;box-sizing:border-box;padding:8px 12px;font-size:14px;color:var(--tvm-muted,#52677b);background:var(--tvm-surface,#fff);border-bottom:1px solid var(--tvm-line,#dce7ee)}
 body.tvm-office.interface-new .interface-table-scroll:focus-visible{outline:3px solid var(--tvm-focus,#e8b52e);outline-offset:-3px}
 body.tvm-office.interface-new :is(.ui-table,.workspace-table,.cash-person-table){font-variant-numeric:tabular-nums}
 body.tvm-office.interface-new :is(.ui-table,.workspace-table,.cash-person-table) thead th{background:var(--tvm-surface-subtle,#f5f8fb);border-top-width:0}
 body.tvm-office.interface-new :is(.ui-table,.workspace-table,.cash-person-table) tbody tr:nth-child(even)>td:not(.cash-person-held){background:var(--tvm-surface,#fff)}
 body.tvm-office.interface-new :is(.ui-table,.workspace-table,.cash-person-table) tbody tr:hover>td:not(.cash-person-held){background:var(--tvm-action-soft,#e9f2ff)}
 body.tvm-office.interface-new #workspace-overview .workspace-approved-layout{gap:20px}
 body.tvm-office.interface-new #workspace-overview .workspace-daily-grid{gap:16px}
 body.tvm-office.interface-new #workspace-overview .workspace-daily-left{gap:16px}
 body.tvm-office.interface-new #workspace-overview .workspace-daily-left>.workspace-metrics{background:transparent;border:0;padding:0;gap:8px}
 body.tvm-office.interface-new #workspace-overview .metric-card[data-application-stage]{min-height:52px;padding:10px 12px;justify-content:space-between;box-shadow:none}
 body.tvm-office.interface-new #workspace-overview .workspace-daily-left>.workspace-priorities{padding:20px;min-height:0;border-radius:8px;box-shadow:none}
 body.tvm-office.interface-new #workspace-overview .workspace-priority-list>.workspace-priority-actions-row{padding:8px 0}
 body.tvm-office.interface-new #workspace-overview .workspace-priority-list>.workspace-priority-actions-row:last-child{border-bottom:0}
 body.tvm-office.interface-new #workspace-overview .workspace-person strong{font-size:16px}
 body.tvm-office.interface-new #workspace-overview :is(.workspace-calendar,.workspace-refunds){padding:20px;min-height:176px!important;grid-template-rows:auto minmax(32px,1fr) auto;row-gap:8px}
 body.tvm-office.interface-new #workspace-overview :is(.workspace-calendar-empty,.workspace-calendar>p,.workspace-refund-list>p){align-self:center;text-align:left;padding:0;margin:0}
 body.tvm-office.interface-new #workspace-overview .workspace-calendar-empty{width:100%;justify-self:stretch;justify-content:start;justify-items:start}
 body.tvm-office.interface-new #workspace-overview .workspace-calendar-empty strong{font-size:14px!important}
 body.tvm-office.interface-new #workspace-overview .workspace-recent{border-color:var(--tvm-line,#dce7ee);padding:16px 20px;box-shadow:none}
 body.tvm-office.interface-new #workspace-overview .workspace-recent .workspace-board-tabs{top:16px;left:20px}
 body.tvm-office.interface-new #workspace-overview .workspace-recent .workspace-board-tabs>button{min-width:72px;padding:8px 16px}
 body.tvm-office.interface-new #workspace-overview .workspace-recent>.workspace-board-heading{padding-left:180px}
 body.tvm-office.interface-new #workspace-overview .workspace-recent-list>:is(button,a,p){background:var(--tvm-surface-subtle,#f5f8fb);border-color:var(--tvm-line,#dce7ee);box-shadow:none}
 body.tvm-office.interface-new #workspace-overview .workspace-file-toolbar{background:transparent}
 body.tvm-office.interface-new .visa-files-panel{padding:24px;border-top-width:1px;border-radius:8px}
 body.tvm-office.interface-new .visa-files-panel .visa-files-filters{display:grid;grid-template-columns:minmax(260px,1fr) minmax(180px,240px) auto;gap:16px;padding:16px;background:var(--tvm-surface-subtle,#f5f8fb)}
 body.tvm-office.interface-new .visa-files-panel .visa-files-filters>label{min-width:0;width:auto}
 body.tvm-office.interface-new .visa-files-table :is(th,td){padding:14px 16px}
 body.tvm-office.interface-new #cash-view{display:grid;gap:20px}
 body.tvm-office.interface-new #cash-view[hidden]{display:none}
 body.tvm-office.interface-new #cash-view .cash-statement-filter>.date-range-picker{flex:0 1 calc(2 * var(--tvm-date-control-width) + 12px);width:calc(2 * var(--tvm-date-control-width) + 12px);max-width:100%}
 @media(min-width:601px){body.tvm-office.interface-new #cash-view .cash-statement-filter>.date-range-picker>.manual-date-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
 body.tvm-office.interface-new #cash-view .cash-office-band{background:transparent;border:0;padding:0}
 body.tvm-office.interface-new #cash-view .cash-office-top{margin-bottom:20px;gap:16px;flex-wrap:wrap;align-items:center}
 body.tvm-office.interface-new #cash-view .cash-office-top{display:grid;grid-template-columns:minmax(0,1fr)}
 body.tvm-office.interface-new #cash-view .cash-office-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 16px;align-items:center;width:100%}
 body.tvm-office.interface-new #cash-view .cash-office-heading>h2{grid-column:1;grid-row:1;margin:0}
 body.tvm-office.interface-new #cash-view .cash-office-heading>p{grid-column:1;grid-row:2;margin:0}
 body.tvm-office.interface-new #cash-view .cash-office-heading>.cash-guide-link{grid-column:2;grid-row:1/3;justify-self:end}
 body.tvm-office.interface-new #cash-view .cash-toolbar{gap:8px;flex-wrap:wrap}
 body.tvm-office.interface-new #cash-view .cash-toolbar{width:100%;padding:16px;border:1px solid var(--tvm-line,#dce7ee);border-radius:8px;background:var(--tvm-surface,#fff);box-sizing:border-box;align-items:end}
 body.tvm-office.interface-new #cash-view #cash-day-filter{flex:0 1 var(--tvm-date-control-width);margin:0 auto 0 0}
 body.tvm-office.interface-new #cash-view #cash-day-filter .date-range-label{position:static;width:auto;height:auto;overflow:visible;clip-path:none;white-space:normal;font-size:14px;font-weight:400}
 body.tvm-office.interface-new #cash-view .cash-toolbar :is(button.compact-date-trigger,button#cash-report,button[data-cash-action]){min-height:44px;height:auto;padding:8px 12px}
 body.tvm-office.interface-new #cash-view .cash-toolbar>button{margin:0;white-space:normal}
 body.tvm-office.interface-new #cash-view .cash-currency-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:16px}
 body.tvm-office.interface-new #cash-view .cash-currency-grid article{border:1px solid var(--tvm-line,#dce7ee);box-shadow:none;padding:20px;border-radius:8px;gap:12px}
 body.tvm-office.interface-new #cash-view .cash-currency-grid .account-currency-heading{column-gap:10px;row-gap:16px}
 body.tvm-office.interface-new #cash-view .cash-currency-grid .account-currency-heading>div>strong{font-size:18px}
 body.tvm-office.interface-new #cash-view .cash-currency-grid .account-currency-balance>strong{font-size:14px;font-weight:400;color:var(--tvm-muted,#52677b)}
 body.tvm-office.interface-new #cash-view .cash-currency-grid .account-currency-balance>span{font-size:32px;line-height:1.25;font-variant-numeric:tabular-nums}
 body.tvm-office.interface-new #cash-view .cash-currency-grid dl>div{padding:8px 0}
 body.tvm-office.interface-new #cash-view .cash-currency-grid dl dt{font-weight:400;font-size:14px;color:var(--tvm-muted,#52677b)}
 body.tvm-office.interface-new #cash-view .cash-total-overview{padding:16px 20px;border:1px solid var(--tvm-line,#dce7ee);background:var(--tvm-surface,#fff);margin-top:16px}
 body.tvm-office.interface-new #cash-view :is(.cash-person-section,.cash-section){padding:20px;margin:0}
 body.tvm-office.interface-new #cash-view .cash-person-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,520px),1fr));gap:16px;align-items:start}
 body.tvm-office.interface-new #cash-view .cash-person-card{padding:16px;border:1px solid var(--tvm-line,#dce7ee);box-shadow:none;border-radius:8px}
 body.tvm-office.interface-new #cash-view .cash-person-heading{padding:0 0 12px;margin:0 0 12px;background:transparent;border-bottom:1px solid var(--tvm-line,#dce7ee)}
 body.tvm-office.interface-new #cash-view .cash-person-heading h4{font-size:16px}
 body.tvm-office.interface-new #cash-view .cash-person-table-wrap{max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain}
 body.tvm-office.interface-new #cash-view .cash-person-table{min-width:480px;width:100%}
 body.tvm-office.interface-new #cash-view .cash-person-table :is(th,td){padding:10px 8px}
 body.tvm-office.interface-new #cash-view .cash-person-table td{white-space:nowrap}
 body.tvm-office.interface-new #cash-view .cash-person-card>button{min-height:44px;height:auto}
 body.tvm-office.interface-new #account-detail{container:interface-account / inline-size}
 body.tvm-office.interface-new #account-detail .account-profile-band{background:var(--tvm-surface,#fff);padding:20px}
 body.tvm-office.interface-new #account-detail :is(.account-summary-grid,.account-files-grid){gap:16px}
 body.tvm-office.interface-new #account-detail .account-summary-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr))}
 body.tvm-office.interface-new #account-detail .account-summary-card{box-shadow:none;border-color:var(--tvm-line,#dce7ee)}
 body.tvm-office.interface-new .office-footer{background:transparent;box-shadow:none;margin-top:16px;padding:24px calc(var(--interface-card-inset) + 1px) 8px;box-sizing:border-box;min-width:0}
 body.tvm-office.interface-new .office-footer>*{min-width:0;max-width:100%}
 body.tvm-office.interface-new .office-footer .crm-sales-brand span{white-space:normal}
 body.tvm-office.interface-new #workspace-overview .workspace-active>:is(.workspace-panel-heading,.workspace-file-toolbar){padding-inline:var(--interface-card-inset)}
 body.tvm-office.interface-new .interface-dialog-help{display:block;grid-column:1/-1;max-width:100%;min-width:0;margin:0 0 16px;padding:0 16px;border:1px solid var(--tvm-line,#dce7ee);border-radius:6px;background:var(--tvm-surface-subtle,#f5f8fb);box-sizing:border-box;float:none}
 body.tvm-office.interface-new .interface-dialog-help>summary{min-height:44px;padding:10px 0;box-sizing:border-box;cursor:pointer;color:var(--tvm-action,#0866b7);font-size:14px;line-height:1.5}
 body.tvm-office.interface-new .interface-dialog-help>summary:focus-visible{outline:3px solid var(--tvm-focus,#e8b52e);outline-offset:2px}
 body.tvm-office.interface-new .interface-dialog-help-body{padding:0 0 16px}
 body.tvm-office.interface-new .interface-dialog-help-body h3{font-size:16px;margin:12px 0}
 body.tvm-office.interface-new .interface-help-content{font-size:14px;line-height:1.6;overflow-wrap:anywhere}
 body.tvm-office.interface-new .interface-help-content p{margin:8px 0}
 body.tvm-office.interface-new .interface-help-content ol{margin:12px 0;padding-left:20px}
 body.tvm-office.interface-new .interface-help-content li{margin:8px 0}
 body.tvm-office.interface-new .interface-help-note{color:var(--tvm-muted,#52677b)}
}
@media screen and (min-width:901px){
 body.tvm-office.interface-new>header{margin-left:0;padding-inline:calc(var(--interface-frame-inset) + var(--interface-gutter))}
 body.tvm-office.interface-new>.interface-sidebar{left:var(--interface-frame-inset);top:var(--interface-sidebar-top,90px);padding-top:var(--interface-sidebar-padding,20px)}
}
/* The guide uses spare space only; it never shifts or narrows the centered work area. */
@media screen and (min-width:2240px){
 body.tvm-office.interface-new>.interface-guide{display:block;position:fixed;left:calc(var(--interface-frame-inset) + var(--interface-width) + var(--interface-canvas) + 24px);top:var(--interface-sidebar-top,90px);bottom:16px;width:240px;box-sizing:border-box;padding:24px 0 16px 16px;border-left:1px solid var(--tvm-line,#dce7ee);overflow:auto;overscroll-behavior:contain;color:var(--tvm-muted,#52677b)}
 body.tvm-office.interface-new .interface-guide h2{margin:0 0 8px;font-size:16px;color:var(--tvm-navy,#16314b)}
 body.tvm-office.interface-new .interface-guide-context{font-size:14px;margin:0 0 8px}
 body.tvm-office.interface-new .interface-guide-links{display:flex;flex-direction:column;gap:4px}
 body.tvm-office.interface-new .interface-guide a,body.tvm-office.interface-new .interface-guide summary{display:flex;align-items:center;min-height:44px;padding:8px 4px;box-sizing:border-box;color:var(--tvm-muted,#52677b);text-decoration:none;line-height:1.5;overflow-wrap:anywhere}
 body.tvm-office.interface-new .interface-guide a:hover{color:var(--tvm-action,#0866b7);text-decoration:underline;text-underline-offset:3px}
 body.tvm-office.interface-new .interface-guide :is(a,summary):focus-visible{outline:3px solid var(--tvm-focus,#e8b52e);outline-offset:-2px}
 body.tvm-office.interface-new .interface-guide details{margin-top:16px;border-top:1px solid var(--tvm-line,#dce7ee)}
 body.tvm-office.interface-new .interface-guide-links>.interface-guide-topic{margin:0}
 body.tvm-office.interface-new .interface-guide-topic>.interface-help-content{padding:0 4px 16px}
 body.tvm-office.interface-new .interface-guide summary{display:list-item;cursor:pointer;font-weight:600}
 body.tvm-office.interface-new .interface-guide-all{margin-top:12px;color:var(--tvm-action,#0866b7)!important}
 body.tvm-office.interface-new .interface-guide-note{font-size:12px;line-height:1.5;margin:8px 0 0}
}
@media screen and (min-width:761px){
 body.tvm-office.interface-new #app>#workspace-actions.office-global-quick-actions{grid-column:1/-1;grid-row:1;justify-self:end}
 body.tvm-office.interface-new #app:has(>#cash-view:not([hidden]))>.toolbar{display:none}
 body.tvm-office.interface-new #workspace-overview .workspace-active .workspace-table{min-width:1080px}
 /* Stable columns for populated and empty stage filters; keep narrow tables locally scrollable. */
 body.tvm-office.interface-new #workspace-overview .workspace-active .workspace-table{table-layout:fixed;width:100%}
 body.tvm-office.interface-new #workspace-overview .workspace-active .workspace-table thead th:nth-child(1){width:24%}
 body.tvm-office.interface-new #workspace-overview .workspace-active .workspace-table thead th:nth-child(2){width:18%}
 body.tvm-office.interface-new #workspace-overview .workspace-active .workspace-table thead th:nth-child(3){width:12%}
 body.tvm-office.interface-new #workspace-overview .workspace-active .workspace-table thead th:nth-child(4){width:16%}
 body.tvm-office.interface-new #workspace-overview .workspace-active .workspace-table thead th:nth-child(5){width:10%}
 body.tvm-office.interface-new #workspace-overview .workspace-active .workspace-table thead th:nth-child(6){width:14%}
 body.tvm-office.interface-new #workspace-overview .workspace-active .workspace-table :is(th,td):last-child:not([colspan]){width:64px;padding-inline:0}
 body.tvm-office.interface-new #workspace-overview .workspace-active .workspace-table tbody td{white-space:normal;overflow-wrap:break-word}
}
@media screen and (max-width:900px){
 body.tvm-office.interface-new{--interface-width:0px}
 body.tvm-office.interface-new>main{margin-left:0;width:100%;padding-top:16px}
 body.tvm-office.interface-new>.interface-sidebar{padding-top:12px}
}
@container interface-content (max-width:900px){
 body.tvm-office.interface-new #cash-view .cash-toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:end}
 body.tvm-office.interface-new #cash-view #cash-day-filter{width:100%;margin:0;grid-column:1;grid-row:1}
 body.tvm-office.interface-new #cash-view #cash-report{grid-column:2;grid-row:1}
 body.tvm-office.interface-new #cash-view .cash-toolbar>button{width:100%}
 body.tvm-office.interface-new #workspace-overview .workspace-priority-details{grid-template-columns:minmax(0,1fr);grid-template-rows:auto!important;gap:4px}
 body.tvm-office.interface-new #workspace-overview .workspace-priority-actions-row>.workspace-priority-details{display:grid;grid-row:auto;grid-template-rows:auto}
 body.tvm-office.interface-new #workspace-overview .workspace-priority-details>:is(.workspace-person,.workspace-next,.workspace-document-summary,.workspace-document-alert){grid-column:1;grid-row:auto;padding-inline-end:0}
 body.tvm-office.interface-new #workspace-overview .workspace-priority-actions-row>.badge{grid-row:1;align-self:start;margin-top:4px}
 body.tvm-office.interface-new #workspace-overview .workspace-priority-actions-row>.workspace-priority-open{grid-row:1;align-self:center}
 body.tvm-office.interface-new #workspace-overview .workspace-daily-left>.workspace-metrics{grid-template-columns:repeat(2,minmax(0,1fr)) auto}
 body.tvm-office.interface-new #workspace-overview .workspace-daily-left>.workspace-metrics>.workspace-month-counter{grid-column:3;grid-row:1/3}
 body.tvm-office.interface-new #workspace-overview .workspace-daily-left .metric-card[data-application-stage]{flex-direction:row;grid-row:auto;grid-column:auto}
}
@container interface-content (max-width:800px){
 body.tvm-office.interface-new .visa-files-panel{padding:16px}
 body.tvm-office.interface-new .visa-files-panel .visa-files-filters{grid-template-columns:minmax(0,1fr) auto;gap:12px}
 body.tvm-office.interface-new .visa-files-panel .visa-files-search{grid-column:1/-1}
 body.tvm-office.interface-new #workspace-overview .workspace-daily-grid{grid-template-columns:minmax(0,1fr)}
 body.tvm-office.interface-new #workspace-overview .workspace-daily-grid>.workspace-calendar{grid-column:1;grid-row:2}
 body.tvm-office.interface-new #workspace-overview .workspace-daily-grid>.workspace-refunds{grid-column:1;grid-row:3}
}
@container interface-account (max-width:1000px){
 body.tvm-office.interface-new #account-detail .account-profile-band .account-profile-actions-layout{grid-template-columns:minmax(0,1fr)}
 body.tvm-office.interface-new #account-detail .account-detail-head{grid-template-columns:minmax(0,1fr)}
 body.tvm-office.interface-new #account-detail .account-detail-rates{width:100%;max-width:100%}
}
@media screen and (max-width:760px){
 body.tvm-office.interface-new #workspace-overview .workspace-daily-left>.workspace-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 body.tvm-office.interface-new #workspace-overview .workspace-daily-left>.workspace-metrics>.workspace-month-counter{grid-column:1/-1;grid-row:1;justify-self:stretch}
 body.tvm-office.interface-new #workspace-overview .workspace-recent{padding:16px 12px}
 body.tvm-office.interface-new #workspace-overview .workspace-recent .workspace-board-tabs{left:12px}
 body.tvm-office.interface-new #workspace-overview .workspace-recent>.workspace-board-heading{padding-left:170px}
 body.tvm-office.interface-new #cash-view :is(.cash-person-section,.cash-section,.cash-currency-grid article),
 body.tvm-office.interface-new #account-detail .account-profile-band{padding:16px}
 body.tvm-office.interface-new #cash-view .cash-currency-grid .account-currency-balance>span{font-size:24px}
}
@container interface-content (max-width:500px){
 body.tvm-office.interface-new #cash-view .cash-toolbar>button{align-self:stretch}
 body.tvm-office.interface-new #cash-view .cash-office-heading{grid-template-columns:minmax(0,1fr)}
 body.tvm-office.interface-new #cash-view .cash-office-heading>.cash-guide-link{grid-column:1;grid-row:3;justify-self:start}
 body.tvm-office.interface-new #cash-view #cash-day-filter{grid-column:1/-1}
 body.tvm-office.interface-new #cash-view #cash-day-filter .single-date-picker{width:100%}
 body.tvm-office.interface-new #cash-view #cash-report{grid-column:auto;grid-row:auto}
 body.tvm-office.interface-new #cash-view [data-cash-action="close"],body.tvm-office.interface-new #cash-view [data-cash-action="open"]{grid-column:1/-1}
}

/* Compact editors inherit the single header preference; original fields and handlers stay in place. */
body.tvm-office.interface-new dialog.wallet-dialog[aria-labelledby="wallet-title"]{width:min(700px,calc(100vw - 24px))}
body.tvm-office.interface-new .wallet-dialog[aria-labelledby="wallet-title"] .dialog-body{padding:16px}
body.tvm-office.interface-new .wallet-dialog[aria-labelledby="wallet-title"] .dialog-body>p{margin:0 0 12px}
body.tvm-office.interface-new .wallet-dialog[aria-labelledby="wallet-title"] .customer-wallet-summary{padding:12px;margin:12px 0}
body.tvm-office.interface-new .wallet-dialog[aria-labelledby="wallet-title"] .form-grid{grid-template-columns:112px minmax(0,1fr);grid-template-rows:auto 44px auto auto 44px auto auto 44px;gap:6px 12px;align-items:start;margin:16px 0}
body.tvm-office.interface-new .wallet-dialog[aria-labelledby="wallet-title"] .form-grid>label{display:grid;grid-template-rows:subgrid;gap:6px;margin:0;font-size:14px;line-height:1.5}
body.tvm-office.interface-new .wallet-dialog[aria-labelledby="wallet-title"] .form-grid>label:has([name="source_currency"]){grid-column:1;grid-row:1/span 3}
body.tvm-office.interface-new .wallet-dialog[aria-labelledby="wallet-title"] .form-grid>label:has([name="source_amount"]){grid-column:2;grid-row:1/span 3}
body.tvm-office.interface-new .wallet-dialog[aria-labelledby="wallet-title"] .form-grid>label:has([name="target_currency"]){grid-column:1;grid-row:4/span 3}
body.tvm-office.interface-new .wallet-dialog[aria-labelledby="wallet-title"] .form-grid>label:has([name="new_amount"]){grid-column:2;grid-row:4/span 3}
body.tvm-office.interface-new .wallet-dialog[aria-labelledby="wallet-title"] .form-grid>label:has([name="new_method"]){grid-column:1/-1;grid-row:7/span 2}
body.tvm-office.interface-new .wallet-dialog[aria-labelledby="wallet-title"] .form-grid :is(input,select){width:100%;min-width:0;height:44px;min-height:44px;margin:0}
body.tvm-office.interface-new .wallet-dialog[aria-labelledby="wallet-title"] [name="new_method"]{max-width:240px!important}
body.tvm-office.interface-new .insurance-source-dialog{aspect-ratio:auto;min-height:0}
body.tvm-office.interface-new .insurance-source-dialog .insurance-source-options button{min-height:52px!important}
body.tvm-office.interface-new .insurance-profile-dialog{width:min(600px,calc(100vw - 24px))}
body.tvm-office.interface-new .insurance-profile-dialog form{padding:16px}
body.tvm-office.interface-new .insurance-profile-dialog .dialog-head{margin:-16px -16px 12px;padding:14px 16px}
body.tvm-office.interface-new .insurance-profile-dialog .form-grid{gap:12px;margin:12px 0}
body.tvm-office.interface-new .insurance-profile-dialog .form-grid>label.wide:has([name="policy_number"]){grid-column:auto}
body.tvm-office.interface-new .insurance-profile-dialog .check-label{margin:12px 0}
body.tvm-office.interface-new .insurance-profile-dialog .insurance-coverage{margin:8px 0}
body.tvm-office.interface-new .fingerprint-history-fields{padding-bottom:12px;gap:12px}
body.tvm-office.interface-new .fingerprint-history-fields [data-previous-fingerprint-date]{max-width:300px}
/* Keep the most-used file controls adjacent; secondary tools align to the right. */
body.tvm-office.interface-new #detail .case-file-tabs{width:100%;gap:8px;flex-wrap:wrap}
body.tvm-office.interface-new #detail .case-file-tabs [data-case-view="summary"]{order:0}
body.tvm-office.interface-new #detail .case-file-tabs [data-case-view="operation"]{order:1}
body.tvm-office.interface-new #detail .case-file-tabs [data-case-view="documents"]{order:2;margin-left:auto}
body.tvm-office.interface-new #detail .case-file-tabs [data-case-view="whiteboard"]{order:3}
@media(min-width:821px){body.tvm-office.interface-new #detail .case-file-nav{position:sticky;top:0;z-index:20}}
@media(max-width:480px){
 body.tvm-office.interface-new .wallet-dialog[aria-labelledby="wallet-title"] .form-grid{grid-template-columns:110px minmax(0,1fr)}
 body.tvm-office.interface-new .insurance-profile-dialog .form-grid{grid-template-columns:minmax(0,1fr)}
}
body.tvm-office.interface-new #workspace-overview .workspace-priorities>.workspace-all-link{display:flex;width:max-content;max-width:100%;justify-self:end;align-self:end;margin-left:auto}
@media(min-width:1101px){
 body.tvm-office.interface-new #workspace-overview .workspace-priority-actions-row>.badge{grid-row:1/span 2;align-self:center}
 body.tvm-office.interface-new #workspace-overview .workspace-priority-details>.workspace-next{grid-row:1/span 2;align-self:center}
}
@container interface-content (max-width:900px){
 body.tvm-office.interface-new #workspace-overview .workspace-priority-actions-row>.badge{grid-row:1;align-self:center;margin-top:0}
 body.tvm-office.interface-new #workspace-overview .workspace-priority-details>.workspace-next{grid-row:auto}
}
.package-supplier-choice{display:flex;align-items:flex-start;gap:8px;min-height:44px}
.package-supplier-choice>span{min-width:0}
.package-supplier-choice small{display:block;color:var(--tvm-muted);font-size:14px;line-height:1.5;font-weight:400}
.agency-catalog-actions{display:inline-flex;align-items:center;gap:12px;flex-wrap:wrap}

/* Compact package editing: keep the existing fields, disclosure groups and save flow. */
@media screen{
 body.tvm-office.interface-new #catalog-dialog.visa-package-editor{padding:0;max-height:calc(100dvh - 24px);overflow:auto}
 body.tvm-office.interface-new #catalog-dialog.visa-package-editor #catalog-form{padding:16px;margin:0;min-width:0}
 body.tvm-office.interface-new #catalog-dialog.visa-package-editor #catalog-form>.heading-with-action{padding:12px 16px;margin:0 0 12px;gap:8px 12px;align-items:center}
 body.tvm-office.interface-new #catalog-dialog.visa-package-editor #catalog-form>.heading-with-action h2{font-size:20px;line-height:1.35;margin:0}
 body.tvm-office.interface-new #catalog-dialog.visa-package-editor #catalog-form>.form-grid{padding:0;margin:0;gap:8px 16px;align-items:start}
 body.tvm-office.interface-new #catalog-dialog.visa-package-editor #catalog-form :is(label,.section-help){font-size:14px;line-height:1.5}
 body.tvm-office.interface-new #catalog-dialog.visa-package-editor #catalog-form>.form-grid>label{margin:0;gap:4px}
 body.tvm-office.interface-new #catalog-dialog.visa-package-editor #catalog-form fieldset{padding:10px 12px;margin:0;min-width:0}
 body.tvm-office.interface-new #catalog-dialog.visa-package-editor #catalog-form fieldset>legend{font-size:14px;line-height:1.5;padding-inline:4px}
 body.tvm-office.interface-new #catalog-dialog.visa-package-editor .package-settings-section{margin:0;min-width:0}
 body.tvm-office.interface-new #catalog-dialog.visa-package-editor .package-settings-section>summary{display:list-item;min-height:44px;padding:10px 12px;font-size:14px;line-height:1.5;box-sizing:border-box}
 body.tvm-office.interface-new #catalog-dialog.visa-package-editor .package-settings-section>fieldset{padding:10px 12px}
 body.tvm-office.interface-new #catalog-dialog.visa-package-editor #catalog-form :is(.form-grid,.booking-form){gap:8px 16px;margin-block:0}
 body.tvm-office.interface-new #catalog-dialog.visa-package-editor #catalog-form label:has(>input:is([type=checkbox],[type=radio])){min-height:44px;margin-block:0;padding-block:4px}
 body.tvm-office.interface-new #catalog-dialog.visa-package-editor #catalog-form :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select){height:44px;min-height:44px;padding-block:8px;font-size:14px}
 body.tvm-office.interface-new #catalog-dialog.visa-package-editor #catalog-form textarea{min-height:64px;font-size:14px;line-height:1.5;padding:8px 10px}
 body.tvm-office.interface-new #catalog-dialog.visa-package-editor #catalog-form .section-help{margin:4px 0}
 body.tvm-office.interface-new #catalog-dialog.visa-package-editor #catalog-form>.actions{padding:10px 0 0;margin:12px 0 0;gap:8px;min-height:54px}
 body.tvm-office.interface-new #catalog-dialog.visa-package-editor #catalog-form>.actions button{min-height:44px}
}
@media screen and (max-width:600px){
 body.tvm-office.interface-new #catalog-dialog.visa-package-editor #catalog-form{padding:12px}
 body.tvm-office.interface-new #catalog-dialog.visa-package-editor #catalog-form>.heading-with-action{padding:10px 12px;align-items:flex-start;flex-wrap:wrap}
 body.tvm-office.interface-new #catalog-dialog.visa-package-editor #catalog-form>.form-grid{column-gap:12px}
}
/* Focused cash views keep their original forms mounted; Classic exposes the complete screen. */
.cash-view-nav,.cash-focused-personal-heading,.cost-state-label{display:none}
body.tvm-office.interface-new #cash-view .cash-focus-hidden,
body.tvm-office.interface-new #cash-view .cash-focus-section-title{display:none!important}
body.tvm-office.interface-new #cash-view .cash-focused-toolbar{margin:0 0 16px;padding:18px;border:1px solid var(--tvm-line);border-radius:12px;background:var(--tvm-surface)}
body.tvm-office.interface-new #cash-view .cash-focused-personal-heading{display:block}
body.tvm-office.interface-new #cash-view .cash-focused-toolbar h2{margin:0;font-size:22px}
body.tvm-office.interface-new #cash-view .cash-focused-toolbar .cash-toolbar{margin-top:0}
body.tvm-office.interface-new #cash-view.cash-focused:not([data-cash-focused-view="office"]):not([data-cash-focused-view="movements"]) .cash-focused-toolbar :is(.cash-toolbar,.cash-office-heading>p){display:none!important}
@media(max-width:900px){
 body.tvm-office.interface-new #cash-view .cash-view-nav{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}
 body.tvm-office.interface-new #cash-view .cash-view-nav button{min-height:44px;flex:1 1 140px;white-space:normal;font-weight:600}
 body.tvm-office.interface-new #cash-view .cash-view-nav [aria-current]{background:var(--tvm-action);color:#fff;border-color:var(--tvm-action)}
}
#profit-reports .department-sales-summary{margin:16px 0 20px}
#profit-reports .department-sales-report>.profit-heading{gap:12px;flex-wrap:wrap}
#profit-reports .department-sales-report .profit-controls{max-width:100%;flex-wrap:wrap}
@media(max-width:600px){#profit-reports .department-sales-report>.profit-heading{align-items:stretch}#profit-reports .department-sales-report .profit-controls{display:grid;grid-template-columns:1fr;width:100%}}

/* Report-only compact filters and inline summaries; existing controls stay mounted. */
@media screen{
 body.tvm-office.interface-new #profit-reports .profit-heading:has(>.report-filter-strip){align-items:center;gap:12px 16px}
 body.tvm-office.interface-new #profit-reports .profit-heading:has(>.report-filter-strip)>h2{min-width:0;flex:1 1 200px}
 body.tvm-office.interface-new #profit-reports .profit-controls.report-filter-strip{
  display:flex;align-items:end;justify-content:flex-end;flex-wrap:nowrap;gap:8px;
  flex:0 1 auto;min-width:0;max-width:100%;width:auto;margin:0!important;
 }
 body.tvm-office.interface-new #profit-reports .report-filter-strip>label:not([hidden]){
  display:grid;gap:4px;flex:0 1 152px;min-width:0;width:152px;max-width:164px;margin:0!important;font-size:13px;
 }
 body.tvm-office.interface-new #profit-reports .report-filter-strip>label:has(#insurance-sales-scope){flex-basis:140px;width:140px}
 body.tvm-office.interface-new #profit-reports .report-filter-strip>label>select{
  width:100%;min-width:0;max-width:100%;height:44px;min-height:44px;box-sizing:border-box;padding-block:8px;
 }
 body.tvm-office.interface-new #profit-reports .report-date-disclosure{
  position:relative;flex:0 0 188px;min-width:0;width:188px;max-width:100%;margin:0;padding:0;border:0;
 }
 body.tvm-office.interface-new #profit-reports .report-date-summary{
  display:grid;grid-template-columns:minmax(0,1fr) 9px;grid-template-rows:auto auto;column-gap:10px;align-items:center;
  min-height:44px;box-sizing:border-box;padding:5px 10px;list-style:none;cursor:pointer;
  border:1px solid var(--tvm-line-strong,#8593a8);border-radius:7px;background:var(--tvm-surface,#fff);color:var(--tvm-navy,#142138);
 }
 body.tvm-office.interface-new #profit-reports .report-date-summary::-webkit-details-marker{display:none}
 body.tvm-office.interface-new #profit-reports .report-date-summary::before{display:none;content:none}
 body.tvm-office.interface-new #profit-reports .report-date-summary>span{grid-column:1;grid-row:1;color:var(--tvm-muted,#576579);font-size:12px;line-height:1.3}
 body.tvm-office.interface-new #profit-reports .report-date-summary>strong{grid-column:1;grid-row:2;min-width:0;font-size:13px;line-height:1.3;font-weight:600;overflow-wrap:break-word}
 body.tvm-office.interface-new #profit-reports .report-date-summary::after{
  content:'';grid-column:2;grid-row:1/3;width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);justify-self:center;
 }
 body.tvm-office.interface-new #profit-reports .report-date-disclosure[open]>.report-date-summary::after{transform:rotate(225deg)}
 body.tvm-office.interface-new #profit-reports .report-date-summary:hover{background:var(--tvm-surface-subtle,#f4f6f9)}
 body.tvm-office.interface-new #profit-reports .report-date-summary:focus-visible{outline:3px solid var(--tvm-action,#243b60);outline-offset:3px}
 body.tvm-office.interface-new #profit-reports .report-filter-popover{
  position:absolute;inset:calc(100% + 8px) 0 auto auto;z-index:50;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;
  width:min(420px,calc(100vw - 32px));max-height:min(420px,calc(100dvh - 140px));box-sizing:border-box;padding:16px;
  overflow-y:auto;overscroll-behavior:contain;background:var(--tvm-surface,#fff);border:1px solid var(--tvm-line-strong,#8593a8);border-radius:8px;box-shadow:none;
 }
 body.tvm-office.interface-new #profit-reports .report-date-disclosure:not([open])>.report-filter-popover{display:none}
 body.tvm-office.interface-new #profit-reports .report-filter-popover>label:not([hidden]){display:grid;gap:4px;grid-column:auto;min-width:0;max-width:100%;width:100%;margin:0!important}
 body.tvm-office.interface-new #profit-reports .report-filter-popover .profit-period{margin-left:0!important}
 body.tvm-office.interface-new #profit-reports .report-filter-popover :is(select,input){width:100%;min-width:0;max-width:100%;min-height:44px;box-sizing:border-box}
 body.tvm-office.interface-new #profit-reports .report-filter-popover .profit-custom-period{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;min-width:0;width:100%}
 body.tvm-office.interface-new #profit-reports .report-filter-popover .profit-custom-period>label{min-width:0;margin:0!important}
 body.tvm-office.interface-new #profit-reports .report-filter-popover .profit-custom-period>button{grid-column:1/-1;justify-self:end;min-height:44px;max-width:100%;margin:0}
 body.tvm-office.interface-new #profit-reports :is(.company-expense-heading,.report-operations-heading){
  display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:8px 16px;margin:0 0 12px;padding:0;background:transparent;border:0;box-shadow:none;
 }
 body.tvm-office.interface-new #profit-reports :is(.company-expense-heading,.report-operations-heading)>h2{min-width:0;margin:0}
 body.tvm-office.interface-new #profit-reports .report-inline-total{
  display:flex;align-items:baseline;justify-content:flex-end;flex-wrap:wrap;gap:4px 10px;min-width:0;max-width:100%;margin-left:auto;
  padding:0;background:transparent;border:0;border-radius:0;box-shadow:none;text-align:right;color:var(--tvm-navy,#142138);
 }
 body.tvm-office.interface-new #profit-reports .report-inline-total>:is(span,small){font-size:13px;line-height:1.45;color:var(--tvm-muted,#576579)}
 body.tvm-office.interface-new #profit-reports .report-inline-total>strong{font-size:22px;line-height:1.3;font-weight:700;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
 body.tvm-office.interface-new #profit-reports .report-operations-heading .report-inline-total>strong{font-size:15px}
 body.tvm-office.interface-new #profit-reports .company-expense-controls{
  display:flex;align-items:end;justify-content:center;flex-wrap:wrap;gap:10px;margin:12px 0;padding:12px 0;
  min-width:0;background:transparent;border-block:1px solid var(--tvm-line,#dce1e9);
 }
 body.tvm-office.interface-new #profit-reports .company-expense-controls>label:not([hidden]){display:grid;gap:4px;flex:0 1 164px;min-width:0;max-width:100%;width:164px;margin:0}
 body.tvm-office.interface-new #profit-reports .company-expense-controls>label:has([name="period"]){flex-basis:132px;width:132px}
 body.tvm-office.interface-new #profit-reports .company-expense-controls>label:has([name="source_id"]){flex-basis:196px;width:196px}
 body.tvm-office.interface-new #profit-reports .company-expense-controls>label[data-custom]{flex-basis:156px;width:156px}
 body.tvm-office.interface-new #profit-reports .company-expense-controls :is(select,input,.single-date-picker,.compact-date-trigger){width:100%;min-width:0;max-width:100%;min-height:44px;box-sizing:border-box}
 body.tvm-office.interface-new #profit-reports :is(.report-filter-popover,.company-expense-controls) .single-date-picker[data-ready]{flex-wrap:nowrap;gap:6px}
 body.tvm-office.interface-new #profit-reports :is(.report-filter-popover,.company-expense-controls) .single-date-picker[data-ready]>.manual-date-fields{flex:1 1 0;min-width:0;max-width:none}
 body.tvm-office.interface-new #profit-reports :is(.report-filter-popover,.company-expense-controls) .single-date-picker[data-ready]>.compact-date-trigger{flex:0 0 44px;width:44px;min-width:44px}
 body.tvm-office.interface-new #profit-reports .company-expense-controls>button{flex:0 0 auto;min-height:44px;min-width:88px;max-width:100%;margin:0;padding:8px 14px;white-space:normal}
 body.tvm-office.interface-new #profit-reports #company-expense-report>.actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px;margin:12px 0;padding:0;background:transparent;border:0;box-shadow:none}
 body.tvm-office.interface-new #profit-reports #company-expense-report>.actions>button{min-height:44px;min-width:0;max-width:100%;margin:0;padding:8px 12px;white-space:normal}
}
@container interface-content (max-width:800px){
 body.tvm-office.interface-new #profit-reports .profit-controls.report-filter-strip{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;flex-basis:100%;gap:10px}
 body.tvm-office.interface-new #profit-reports .report-filter-strip>label:not([hidden]){grid-column:auto;width:100%;max-width:none}
 body.tvm-office.interface-new #profit-reports .report-date-disclosure{grid-column:1/-1;width:100%;max-width:100%}
 body.tvm-office.interface-new #profit-reports .report-filter-popover{position:static;inset:auto;width:100%;max-width:100%;max-height:none;margin-top:8px;overflow:visible}
}
@media screen and (max-width:600px){
 body.tvm-office.interface-new #profit-reports .report-filter-popover{grid-template-columns:minmax(0,1fr);padding:12px}
 body.tvm-office.interface-new #profit-reports .report-filter-popover .profit-custom-period{grid-template-columns:minmax(0,1fr)}
 body.tvm-office.interface-new #profit-reports .report-filter-popover .profit-custom-period>button{width:100%}
 body.tvm-office.interface-new #profit-reports .company-expense-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 body.tvm-office.interface-new #profit-reports .company-expense-controls>label:not([hidden]){width:100%;max-width:none}
 body.tvm-office.interface-new #profit-reports .company-expense-controls>label:has([name="source_id"]),body.tvm-office.interface-new #profit-reports .company-expense-controls>button{grid-column:1/-1;width:100%}
 body.tvm-office.interface-new #profit-reports .report-inline-total>strong{font-size:20px}
 body.tvm-office.interface-new #profit-reports .report-operations-heading .report-inline-total>strong{font-size:15px}
}
@media screen and (max-height:600px){
 body.tvm-office.interface-new #profit-reports .profit-controls.report-filter-strip{flex-wrap:wrap}
 body.tvm-office.interface-new #profit-reports .report-date-disclosure{flex-basis:100%;width:100%}
 body.tvm-office.interface-new #profit-reports .report-filter-popover{position:static;inset:auto;width:100%;max-width:100%;max-height:none;margin-top:8px;overflow:visible}
}

/* Give balances and wallet 20% more room by narrowing the sales area. */
@media screen{
 body.tvm-office.interface-new #detail #finance-section{border:4px solid var(--tvm-accent);border-color:var(--tvm-accent)!important;border-radius:12px}
 body.tvm-office.interface-new #finance-section .case-finance-account{display:flex;align-items:center;justify-content:space-between;flex-direction:row;flex-wrap:wrap;gap:4px 20px;min-width:0;margin:0;padding:0 0 10px;background:transparent;border:0;border-bottom:1px solid var(--tvm-line);border-radius:0;box-shadow:none}
 body.tvm-office.interface-new #finance-section .case-finance-account>div{display:flex;align-items:baseline;flex:1 1 240px;flex-wrap:wrap;gap:4px 10px;min-width:0}
 body.tvm-office.interface-new #finance-section .case-finance-account>div>small{font-size:12px;line-height:1.5;font-weight:500;letter-spacing:0;color:var(--tvm-muted)}
 body.tvm-office.interface-new #finance-section .case-finance-account>div>strong{font-size:16px;line-height:1.4;font-weight:700;color:var(--tvm-navy)}
 body.tvm-office.interface-new #finance-section .case-finance-account>div>span{display:none}
 body.tvm-office.interface-new #finance-section .case-finance-account>a{display:inline-flex;align-items:center;min-height:44px;width:auto;max-width:100%;padding:6px 0;border:0;background:transparent;box-shadow:none;font-size:14px;line-height:1.4;white-space:normal;text-decoration:underline;text-underline-offset:3px}
 body.tvm-office.interface-new #finance-section .interface-payment-overview{
  display:grid;grid-template-columns:minmax(0,1.8fr) minmax(0,1.2fr) minmax(0,1fr);align-items:start;gap:12px 16px;margin:16px 0;min-width:0;
 }
 body.tvm-office.interface-new #finance-section .interface-payment-overview:has(>.interface-payment-tools:empty){grid-template-columns:repeat(2,minmax(0,1fr))}
 body.tvm-office.interface-new #finance-section :is(.interface-payment-totals,.interface-payment-tools){min-width:0;max-width:100%}
 body.tvm-office.interface-new #finance-section .interface-payment-totals{
  display:contents;
 }
 body.tvm-office.interface-new #finance-section .interface-payment-account-summary{grid-column:1;grid-row:1;display:grid;grid-template-columns:minmax(0,4fr) minmax(0,5fr);min-width:0;border:1px solid var(--tvm-line);border-radius:8px;overflow:hidden;background:#fff}
 /* Adjacent account and wallet cards share the grid row height. */
 body.tvm-office.interface-new #finance-section :is(.interface-payment-account-summary,.customer-wallet-summary,.interface-payment-wallet-empty){align-self:stretch}
 body.tvm-office.interface-new #finance-section .interface-payment-balance-panel{min-width:0;padding:12px;background:#edf5fc;border-right:1px solid var(--tvm-line)}
 body.tvm-office.interface-new #finance-section .interface-payment-balance-panel>h4{margin:0 0 8px;font-size:14px;line-height:1.4}
 body.tvm-office.interface-new #finance-section .interface-payment-sales-panel{min-width:0;padding:12px}

 body.tvm-office.interface-new #finance-section .interface-payment-totals .case-current-balances{
  display:grid;grid-template-columns:minmax(0,1fr);gap:12px;min-width:0;width:100%;margin:0;
 }
 body.tvm-office.interface-new #finance-section .interface-payment-totals .case-current-balances>div{display:grid;grid-template-columns:minmax(0,1fr);align-items:baseline;min-width:0;padding:0;gap:4px;border:0;border-radius:0;background:transparent;box-shadow:none}
 body.tvm-office.interface-new #finance-section .interface-payment-totals .case-current-balances strong{
  min-width:0;font-size:22px;line-height:1.3;font-variant-numeric:tabular-nums;text-align:left;overflow-wrap:anywhere;
 }
 body.tvm-office.interface-new #finance-section .interface-payment-sales-panel>h4{margin:0 0 8px;padding:0;font-size:14px;font-weight:700;line-height:1.4;color:var(--tvm-muted)}
 body.tvm-office.interface-new #finance-section .interface-payment-totals .finance-readable-totals{
  display:grid;grid-template-columns:minmax(0,1fr);gap:0;min-width:0;
 }
 body.tvm-office.interface-new #finance-section .interface-payment-totals .finance-readable-currency{display:block;min-width:0;width:100%;padding:8px 0;border:0;border-bottom:1px solid var(--tvm-line);border-radius:0;background:transparent;box-shadow:none}
 body.tvm-office.interface-new #finance-section .interface-payment-totals .finance-readable-currency:last-child{border-bottom:0}
 body.tvm-office.interface-new #finance-section .interface-payment-totals .finance-readable-currency>strong{font-size:15px;line-height:1.4}
 body.tvm-office.interface-new #finance-section .interface-payment-totals .finance-readable-currency dl{margin:4px 0 0;gap:4px}
 body.tvm-office.interface-new #finance-section .interface-payment-totals .finance-readable-currency dl>div{display:grid;grid-template-columns:44px minmax(0,1fr);gap:8px;align-items:baseline}
 body.tvm-office.interface-new #finance-section .interface-payment-totals .finance-readable-currency dd{min-width:0;text-align:left;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
 body.tvm-office.interface-new #finance-section .interface-payment-totals>p{grid-column:1/-1;margin:0;font-size:14px;line-height:1.5;color:var(--tvm-muted)}
 body.tvm-office.interface-new #finance-section [data-interface-payment-help]{grid-column:1/3;grid-row:2;min-width:0;margin:0;padding:0;border:0;background:transparent;box-shadow:none}
 body.tvm-office.interface-new #finance-section [data-interface-payment-help]>summary{display:flex;align-items:center;min-height:44px;margin:0;padding:8px 0;box-sizing:border-box;color:var(--tvm-action);font-size:14px;line-height:1.4;font-weight:500;white-space:normal}
 body.tvm-office.interface-new #finance-section [data-interface-payment-help]>p{margin:0 0 8px;padding:0;max-width:72ch;font-size:14px;line-height:1.5;color:var(--tvm-muted)}
 body.tvm-office.interface-new #finance-section .interface-payment-tools{grid-column:3;grid-row:1;display:flex;flex-direction:column;align-items:stretch;gap:12px}
 body.tvm-office.interface-new #finance-section .interface-payment-tools:empty{display:none}
 body.tvm-office.interface-new #finance-section .interface-payment-tools>.case-finance-actions{
  display:grid;grid-template-columns:minmax(0,1fr);align-items:stretch;gap:8px;margin:0!important;min-width:0;
 }
 body.tvm-office.interface-new #finance-section .interface-payment-tools>.case-finance-actions>button{
  width:100%;min-width:0;max-width:100%;min-height:44px;margin:0;padding:10px 12px;box-sizing:border-box;white-space:normal;overflow-wrap:break-word;line-height:1.4;
 }
 body.tvm-office.interface-new #finance-section .interface-payment-totals>:is(.customer-wallet-summary,.interface-payment-wallet-empty){grid-column:2;grid-row:1;min-width:0;max-width:100%;box-sizing:border-box;margin:0;padding:12px;border-radius:8px}
 body.tvm-office.interface-new #finance-section .interface-payment-totals>.interface-payment-wallet-empty{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 8px;padding:8px 0;border:0;border-radius:0;background:transparent;box-shadow:none;color:var(--tvm-muted)}
 body.tvm-office.interface-new #finance-section .interface-payment-totals>:is(.customer-wallet-summary,.interface-payment-wallet-empty) :is(h3,h4){margin:0 0 6px;font-size:16px;line-height:1.4}
 body.tvm-office.interface-new #finance-section .interface-payment-totals>:is(.customer-wallet-summary,.interface-payment-wallet-empty) p{margin:4px 0;line-height:1.5;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
 body.tvm-office.interface-new #finance-section .interface-payment-totals>:is(.customer-wallet-summary,.interface-payment-wallet-empty) small{display:block;font-size:13px;line-height:1.45}
 body.tvm-office.interface-new #finance-section .interface-payment-totals>.interface-payment-wallet-empty h3{margin:0;font-size:14px;font-weight:500}
 body.tvm-office.interface-new #finance-section .interface-payment-totals>.interface-payment-wallet-empty p{margin:0;font-size:13px}
 body.tvm-office.interface-new #finance-section .interface-payment-tools .case-finance-actions>.case-finance-review-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:4px;width:100%;min-width:0;max-width:100%;margin:0}
 body.tvm-office.interface-new #finance-section .interface-payment-tools .case-finance-review-actions :is(.profit-complete,.case-cost-completed-date,small,time){font-size:13px;line-height:1.4;margin:0}
 body.tvm-office.interface-new #finance-section .interface-payment-tools #open-case-cost-review:not(:disabled){width:100%;min-width:0;max-width:100%;min-height:44px;padding:10px 12px;white-space:normal;line-height:1.4;background:#fff1b8!important;color:#624800!important;border:1px solid #c4a34c!important;box-shadow:none!important}
 body.tvm-office.interface-new #finance-section .interface-payment-tools #open-case-cost-review:not(:disabled):hover{background:#ffe58a!important;color:#4c3800!important}
 body.tvm-office.interface-new #finance-section .interface-payment-tools .case-finance-review-actions:has(>.profit-complete) #open-case-cost-review:not(:disabled){background:#e7f4eb!important;color:#20583b!important;border-color:#83b497!important}
 body.tvm-office.interface-new #finance-section .interface-payment-tools .case-finance-review-actions:has(>.profit-complete) #open-case-cost-review:not(:disabled):hover{background:#d9eddf!important;color:#143f28!important}
 body.tvm-office.interface-new #finance-section .interface-payment-tools #open-case-cost-review:focus-visible{outline:3px solid var(--tvm-action);outline-offset:3px}
 body.tvm-office.interface-new #finance-section .interface-payment-totals>.customer-wallet-summary [data-case-finance="refund"]:not([hidden]){display:inline-flex;align-items:center;justify-content:flex-start;gap:6px;width:auto;min-width:0;max-width:100%;min-height:44px;margin:6px 0 0;padding:8px 0;white-space:normal;line-height:1.4;background:transparent!important;color:#20583b!important;border:0!important;box-shadow:none!important;text-decoration:underline;text-underline-offset:3px}
 body.tvm-office.interface-new #finance-section .interface-payment-totals>.customer-wallet-summary [data-case-finance="refund"]:not(:disabled):hover{background:transparent!important;color:#143f28!important}
 body.tvm-office.interface-new #finance-section .interface-payment-totals>.customer-wallet-summary [data-case-finance="refund"]:disabled{background:transparent!important;color:var(--tvm-disabled-ink)!important;text-decoration:none}
 body.tvm-office.interface-new #finance-section .interface-payment-totals>.customer-wallet-summary [data-case-finance="refund"]:focus-visible{outline:3px solid #20583b;outline-offset:3px}
}
/* Two tracks on medium content; a natural reading order on phones. */
@container interface-content (max-width:1050px){
 body.tvm-office.interface-new #finance-section :is(.interface-payment-account-summary,.customer-wallet-summary,.interface-payment-wallet-empty){align-self:start}
 body.tvm-office.interface-new #finance-section .interface-payment-account-summary{grid-column:1/3}
 body.tvm-office.interface-new #finance-section .interface-payment-overview{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body.tvm-office.interface-new #finance-section .interface-payment-totals>:is(.customer-wallet-summary,.interface-payment-wallet-empty){grid-column:1;grid-row:3}
 body.tvm-office.interface-new #finance-section .interface-payment-tools{grid-column:2;grid-row:3}
}
@container interface-content (max-width:580px){
 body.tvm-office.interface-new #finance-section .interface-payment-overview{grid-template-columns:minmax(0,1fr)!important}
 body.tvm-office.interface-new #finance-section .interface-payment-totals>:is(.interface-payment-account-summary,.customer-wallet-summary,.interface-payment-wallet-empty,[data-interface-payment-help]),
 body.tvm-office.interface-new #finance-section .interface-payment-tools{grid-column:1!important;grid-row:auto}
 body.tvm-office.interface-new #finance-section .interface-payment-account-summary{order:0;grid-template-columns:minmax(0,1fr)}
 body.tvm-office.interface-new #finance-section .interface-payment-balance-panel{border-right:0;border-bottom:1px solid var(--tvm-line)}
 body.tvm-office.interface-new #finance-section [data-interface-payment-help]{order:1}
 body.tvm-office.interface-new #finance-section .interface-payment-totals>:is(.customer-wallet-summary,.interface-payment-wallet-empty){order:2}
 body.tvm-office.interface-new #finance-section .interface-payment-tools{order:3}
}

/* Original case controls sit beside the real next actions; Classic restores their homes. */
@media screen{
 body.tvm-office.interface-new #detail .interface-case-tools-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,300px);align-items:start;gap:16px;margin:12px 0 16px;min-width:0}
 body.tvm-office.interface-new #detail .interface-case-tools-layout>.case-attention{min-width:0;margin:0}
 body.tvm-office.interface-new #detail .interface-case-tools-empty{min-width:0;padding:12px 0}
 body.tvm-office.interface-new #detail .interface-case-tools-empty h3{margin:0;color:var(--tvm-navy);font-size:17px;line-height:1.4}
 body.tvm-office.interface-new #detail .interface-case-tools{min-width:0}
 body.tvm-office.interface-new #detail .interface-case-tools>.case-file-nav{display:grid!important;grid-template-columns:minmax(0,1fr);position:static;inset:auto;z-index:auto;gap:0;min-width:0;margin:0;padding:0;border:0;background:transparent;box-shadow:none}
 body.tvm-office.interface-new #detail .interface-case-tools .case-file-tabs{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;width:100%;min-width:0}
 body.tvm-office.interface-new #detail .interface-case-tools .case-file-tabs>[data-case-view]{display:flex;align-items:center;justify-content:flex-start;gap:8px;width:100%;max-width:100%;min-width:0;min-height:48px;margin:0!important;padding:10px 14px;text-align:left;white-space:normal;overflow-wrap:break-word;line-height:1.4}
 body.tvm-office.interface-new #detail .interface-case-tools .case-file-tabs>.case-cost-action:not(:disabled){background:#c9e4ff!important;color:#142138!important;border:2px solid #86b8e8!important;box-shadow:none!important}
 body.tvm-office.interface-new #detail .interface-case-tools .case-file-tabs>.case-cost-action:not(:disabled):is(:hover,[aria-selected="true"]){background:#b3d9ff!important;color:#142138!important;border-color:#3972a6!important}
 body.tvm-office.interface-new #detail .interface-case-tools .case-file-actions:empty{display:none}
 body.tvm-office.interface-new #detail .case-heading-actions>.record-lifecycle-actions{position:relative;min-width:0;margin:0;border:0;background:transparent;box-shadow:none}
 body.tvm-office.interface-new #detail .case-heading-actions>.record-lifecycle-actions>summary{display:flex;align-items:center;min-width:0;min-height:44px;padding:8px 2px;box-sizing:border-box;color:var(--tvm-navy);font-size:14px;line-height:1.4;white-space:normal}
 body.tvm-office.interface-new #detail .case-heading-actions>.record-lifecycle-actions>.record-lifecycle-tools{position:absolute;z-index:30;top:calc(100% + 4px);right:0;display:grid;gap:8px;width:min(300px,calc(100vw - 40px));padding:12px;box-sizing:border-box;border:1px solid var(--tvm-line);border-radius:8px;background:var(--tvm-surface,#fff);box-shadow:0 10px 24px rgb(20 33 56 / 12%)}
 body.tvm-office.interface-new #detail .case-heading-actions>.record-lifecycle-actions:not([open])>.record-lifecycle-tools{display:none}
 body.tvm-office.interface-new #detail .case-heading-actions>.record-lifecycle-actions>.record-lifecycle-tools>button{min-height:44px;min-width:0;width:100%;white-space:normal;line-height:1.4}
 body.tvm-office.interface-new #detail .case-heading-actions>.record-lifecycle-actions>summary:focus-visible{outline:3px solid var(--tvm-action);outline-offset:3px}
}
@container interface-content (max-width:800px){
 body.tvm-office.interface-new #detail .interface-case-tools-layout{grid-template-columns:minmax(0,1fr);gap:12px}
 body.tvm-office.interface-new #detail .interface-case-tools-empty{padding:0}
}
@media screen and (max-width:800px){
 body.tvm-office.interface-new #detail .interface-case-tools-layout{grid-template-columns:minmax(0,1fr);gap:12px}
 body.tvm-office.interface-new #detail .interface-case-tools-empty{padding:0}
 body.tvm-office.interface-new #detail .case-heading-actions>.record-lifecycle-actions>.record-lifecycle-tools{position:static;width:100%;margin-top:4px;box-shadow:none}
}

/* Appointment queue: V2-only presentation; authorization remains server-side. */
body:not(.interface-new) .appointment-queue-nav,body:not(.interface-new) #appointment-queue-panel {display:none!important}
body.interface-new #appointment-queue-classic-note {display:none!important}
body.interface-new .appointment-queue-heading {display:flex;align-items:end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:18px}
body.interface-new .appointment-queue-heading h2 {margin:0}
body.interface-new #appointment-queue-panel td {vertical-align:top}
body.interface-new .appointment-queue-dialog {width:min(760px,calc(100vw - 24px));max-height:calc(100dvh - 24px)}
body.interface-new .appointment-queue-dialog form {display:flex;flex-direction:column;max-height:calc(100dvh - 60px);overflow:hidden}
body.interface-new .appointment-queue-fields {overflow:auto;min-height:0;padding:4px 12px}
body.interface-new .appointment-queue-dialog .dialog-head,body.interface-new .appointment-queue-dialog .dialog-actions {flex-shrink:0}
body.interface-new .appointment-queue-dialog textarea {min-height:44px;resize:vertical;width:100%}
body.interface-new .appointment-queue-dialog .form-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
body.interface-new .appointment-queue-dialog fieldset {min-width:0}
@media(max-width:600px){body.interface-new .appointment-queue-dialog .form-grid {grid-template-columns:1fr}body.interface-new #appointment-queue-panel table {min-width:0}body.interface-new #appointment-queue-panel td .ui-button {margin:4px 0}}

/* Appointment dialogs use the existing navy/gold controls and a padded right action row. */
body.interface-new .appointment-queue-dialog{width:min(640px,calc(100vw - 28px));padding:0;border:1px solid var(--booking-line,#d5deea);border-radius:12px}
body.interface-new .appointment-queue-dialog form{margin:0;max-height:calc(100dvh - 28px)}
body.interface-new .appointment-queue-dialog .dialog-head{margin:0;padding:16px 20px;border-top:2px solid var(--tvm-gold,#c8a65a);border-bottom:1px solid var(--booking-line,#d5deea);background:var(--tvm-surface-subtle,#f2f5fa)}
body.interface-new .appointment-queue-fields{padding:16px 20px;display:grid;gap:12px}
body.interface-new .appointment-queue-fields>p{margin:0;color:var(--muted,#627087);font-size:13px}
body.interface-new .appointment-queue-fields fieldset{margin:0;padding:12px;border:1px solid var(--booking-line,#d5deea);border-radius:8px}
body.interface-new .appointment-queue-fields label{display:grid;gap:6px;margin:0;min-width:0}
body.interface-new .appointment-queue-fields :is(input:not([type=checkbox]),select){box-sizing:border-box;width:100%;min-width:0;max-width:100%}
body.interface-new .appointment-queue-dialog .dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin:0;padding:14px 20px;background:var(--tvm-surface-subtle,#f2f5fa);border-top:1px solid var(--booking-line,#d5deea)}
body.interface-new .appointment-queue-dialog>.error,body.interface-new .appointment-queue-dialog form>.error{padding:0 20px;margin:4px 0}
body.interface-new .appointment-office-note{color:var(--booking-navy,#213655);font-weight:600}
.tvm-country-image{display:inline-block;width:1.4em;height:1.05em;object-fit:contain;vertical-align:-.12em;flex-shrink:0}

/* Randevu filtreleri: geniş arama, sağda durum ve yenileme. */
body.interface-new .appointment-queue-filters{display:grid;grid-template-columns:minmax(0,7fr) minmax(180px,3fr) 44px;gap:12px;align-items:end;margin-bottom:18px}
body.interface-new .appointment-queue-filters label{min-width:0}
body.interface-new .appointment-queue-filters input,body.interface-new .appointment-queue-filters select{width:100%;max-width:none;box-sizing:border-box}
body.interface-new .appointment-queue-filters [data-refresh]{width:44px;height:44px;padding:0;display:inline-flex;justify-content:center;align-items:center}
@media(max-width:640px){body.interface-new .appointment-queue-filters{grid-template-columns:minmax(0,1fr) 44px}body.interface-new .appointment-queue-filters label:first-child{grid-column:1/-1}}

body.interface-new .case-attention-empty{min-height:160px;box-sizing:border-box;background:#fbf6e9;border:1px solid #e8cc91}
body.interface-new .case-attention-empty p{color:#66552f;margin:12px 0}

/* Compact next actions; only the yellow panel expands on request. */
body.tvm-office.interface-new #detail .case-attention[data-expanded="false"]{min-height:216px;box-sizing:border-box;display:flex;flex-direction:column}
body.tvm-office.interface-new #detail .case-attention[data-expanded="false"] ul{flex:1;margin:10px 0;display:grid;gap:8px;align-content:start}
body.tvm-office.interface-new #detail .case-attention[data-expanded="false"] .case-attention-category{display:none}
body.tvm-office.interface-new #detail .case-attention[data-expanded="false"] .case-attention-link{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.tvm-office.interface-new #detail .case-attention-empty{min-height:216px}

body.tvm-office.interface-new #detail .case-attention[data-expanded="false"] ul{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 20px}
body.tvm-office.interface-new #detail .case-attention[data-expanded="false"] li{min-width:0;padding:0}
body.tvm-office.interface-new #detail .case-attention[data-expanded="false"] .case-attention-link{padding:4px 0;min-height:44px;font-size:13px;line-height:1.35}
body.tvm-office.interface-new #detail .case-attention[data-expanded="false"] .case-attention-person{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:800px){body.tvm-office.interface-new #detail .case-attention[data-expanded="false"] ul{grid-template-columns:minmax(0,1fr)}}

.case-owner-heading{flex:1;min-width:0}
.case-owner-heading .case-file-title{overflow-wrap:anywhere}

/* Consular outcomes: explicit labels and compact, wrap-safe details. */
.visa-result-summary{display:block;min-width:0;overflow-wrap:anywhere}
.visa-result-summary small{display:block;white-space:normal;line-height:1.45;margin-top:3px}
.visa-result-summary[data-visa-result="approved"]>strong{color:#286348}
.visa-result-summary[data-visa-result="refused"]>strong{color:#a32d32}
.visa-refusal-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px 0}
.visa-refusal-grid label{display:flex;align-items:flex-start;gap:8px;font-weight:400}
.visa-refusal-grid input[type="checkbox"]{width:18px;min-width:18px;height:18px;margin-top:2px}
.visa-outcomes{margin-top:24px;border-top:1px solid #d8dfeb;padding-top:20px}
.visa-outcome-filters{display:flex;gap:12px;flex-wrap:wrap;align-items:end;margin-bottom:14px}
.visa-outcome-filters>label{flex:1 1 150px;min-width:0}
.visa-outcome-filters>label:has(.single-date-picker){flex-basis:210px}
body.tvm-office .visa-outcome-filters .single-date-picker[data-ready]{display:grid;grid-template-columns:minmax(0,1fr) 46px;gap:6px}
body.tvm-office .visa-outcome-filters .single-date-picker>.manual-date-fields{grid-column:1;grid-row:1;min-width:0;margin:0}
body.tvm-office .visa-outcome-filters .single-date-picker>.compact-date-trigger{grid-column:2;grid-row:1}
.visa-outcome-filters input,.visa-outcome-filters select{width:100%}
@media(max-width:600px){.visa-refusal-grid{grid-template-columns:minmax(0,1fr)}}


/* Result summary first; read-only detail stays in a bounded dialog. */
.visa-result-badge{display:inline-flex;align-items:center;gap:.35rem;padding:5px 9px;border:1px solid #cbd5e1;border-radius:6px;background:#f1f5f9;color:#334155;font-family:inherit;font-size:13px;font-weight:600;line-height:1.4;text-align:left;white-space:normal;max-width:100%;box-shadow:none}
button.visa-result-badge{cursor:pointer;font-size:13px;line-height:1.4;font-weight:650}
.visa-result-badge[data-visa-result="approved"]{background:#dcfce7;border-color:#86d9a3;color:#166534}
.visa-result-badge[data-visa-result="refused"]{background:#fee2e2;border-color:#f7a4a4;color:#b91c1c}
.visa-result-badge[data-visa-result="pending"]{background:#fff4cc;border-color:#e7c86f;color:#795700}
.visa-result-badge:focus-visible{outline:2px solid #235a88;outline-offset:3px}
.visa-result-detail-dialog{box-sizing:border-box;width:min(560px,calc(100vw - 28px));max-width:calc(100vw - 28px);max-height:calc(100dvh - 28px);padding:0;border:1px solid #d5dce6;border-radius:12px;background:white;color:#17253d;overflow:auto}
.visa-result-detail-dialog::backdrop{background:rgb(15 30 50 / .45)}
.visa-result-detail-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;background:#f1f5f9;position:sticky;top:0;border-bottom:1px solid #d5dce6;z-index:1}
.visa-result-detail-heading h2{font-size:20px;margin:0}.visa-result-detail-heading p{margin:4px 0 0;font-size:14px}.visa-result-detail-heading button{flex-shrink:0}
.visa-result-detail-body{padding:20px;overflow-wrap:anywhere}.visa-result-detail-body p{font-size:14px;line-height:1.6;margin:12px 0 0}

.case-file-heading .account-card-link,.case-file-header .account-card-link,.case-file-head .account-card-link{font-weight:700}
#visa-result-editor-dialog .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#visa-result-editor-dialog label{min-width:0}#visa-result-editor-dialog .wide{grid-column:1/-1}
.visa-result-editor-actions{position:sticky;bottom:0;background:white;border-top:1px solid #d5dce6;padding:12px 20px;display:flex;justify-content:flex-end}
@media(max-width:480px){#visa-result-editor-dialog .form-grid{grid-template-columns:1fr}}
.person-document-archive [data-archive-rows]{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:12px}.person-document-archive .form-actions{display:flex;flex-wrap:wrap;gap:8px}.person-document-archive article{min-width:0;overflow-wrap:anywhere}.person-document-archive select{max-width:100%}.person-document-archive header{flex-wrap:wrap}

.person-document-archive .document-request-heading{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 12px}.person-document-archive .form-actions{padding:8px 0;margin:0;border:0;background:transparent;box-shadow:none}.person-document-archive .form-actions button{min-width:max-content;word-break:normal;overflow-wrap:normal}.person-document-archive [data-archive-rows]>article{padding:10px 0;border-top:1px solid #dde4ed}.person-document-archive [data-archive-rows]>article p{margin:8px 0}

/* Rapor ve evrak pencereleri: tek, okunabilir ve uyarlanabilir tema. */
.visa-result-detail-dialog,.archive-compact-dialog{border:1px solid #cbd6e4;border-radius:12px;box-shadow:0 18px 55px rgb(16 35 65 / .2);color:#172942}
.visa-result-detail-heading{padding:14px 18px;background:#edf3fa}
.visa-result-detail-heading h2,.archive-compact-dialog .dialog-head h2{font-size:19px;line-height:1.25}
.visa-result-detail-body{padding:16px 18px}
.visa-result-detail-body p{line-height:1.4;margin:8px 0 0}
.visa-result-detail-body [data-edit-result]{margin-top:14px}
#visa-result-editor-dialog .form-grid{gap:10px 12px}
#visa-result-editor-dialog :is(input,select,textarea),.archive-compact-dialog :is(input,select,textarea){min-width:0;max-width:100%}
#visa-result-editor-dialog textarea,.archive-compact-dialog textarea{min-height:56px;resize:vertical}
#visa-result-editor-dialog label,.archive-compact-dialog label{font-size:14px}
.visa-result-editor-actions{padding:10px 18px}
.archive-compact-dialog{width:min(560px,calc(100vw - 28px));max-width:calc(100vw - 28px)}
.archive-compact-dialog .dialog-head{padding:12px 18px;background:#edf3fa;border-bottom:1px solid #d5dce6;align-items:center}
.archive-compact-dialog>form>.requirement-edit-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px;padding:16px 18px}
.archive-compact-dialog .requirement-edit-fields>p,.archive-compact-dialog .requirement-edit-fields>[data-preview],.archive-compact-dialog .requirement-edit-fields>label:has(textarea),.archive-compact-dialog .requirement-edit-fields>label:has(input[type=file]){grid-column:1/-1}
.archive-compact-dialog .requirement-edit-fields>p{margin:0;line-height:1.4}
.archive-compact-dialog>form>.form-actions{padding:10px 18px;gap:8px}
@media(max-width:480px){.archive-compact-dialog>form>.requirement-edit-fields{grid-template-columns:1fr;padding:14px}.visa-result-detail-heading,.visa-result-detail-body{padding:12px 14px}}
body.tvm-office #visa-result-editor-dialog .visa-result-detail-body>label,body.tvm-office .archive-compact-dialog .requirement-edit-fields>label{margin:0;line-height:1.35}
body.tvm-office #visa-result-editor-dialog .visa-result-detail-body .visa-duration:empty,body.tvm-office .archive-compact-dialog [data-preview]:empty{display:none}
.visa-directory-outcome{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px;margin-top:6px}.visa-directory-outcome>small{margin:0;font-weight:600}.visa-directory-outcome .visa-result-badge{font-size:13px;padding:4px 8px}

/* Local pilot: consistent outcome status/action geometry, including narrow screens. */
body.tvm-office .visa-result-detail-actions{display:flex;flex-wrap:wrap;align-items:stretch;gap:12px}
body.tvm-office .visa-result-detail-actions>.visa-result-badge,body.tvm-office .visa-result-detail-actions>[data-edit-result]{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:40px;padding:9px 14px;margin:0;border-width:1px;border-style:solid;border-radius:8px;font-family:inherit;font-size:14px;font-weight:600;line-height:20px}
body.tvm-office .archive-compact-dialog [data-preview]:not(:empty){grid-column:1/-1}
body.tvm-office .archive-compact-dialog [data-scan-status],body.tvm-office .archive-compact-dialog [data-connection]{grid-column:1/-1}
@media(max-width:390px){body.tvm-office .visa-result-detail-actions>*{flex:1 1 140px}}

body.tvm-office .archive-compact-dialog [data-scan-actions]{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:10px}

/* Compact outcome and scanner forms: one description, optional details. */
body.tvm-office #visa-result-editor-dialog .visa-result-detail-body{gap:10px 12px}
body.tvm-office #visa-result-editor-dialog .visa-application-context{margin:0;color:#536779;font-size:13px}
body.tvm-office .visa-description-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:5px}
body.tvm-office .visa-description-heading label{margin:0}
body.tvm-office .visa-description-heading button{min-height:28px;padding:3px 8px;font-size:12px;border:0;background:transparent}
body.tvm-office .visa-description textarea,body.tvm-office #visa-result-editor-dialog .visa-description textarea{min-height:40px;height:40px;resize:vertical;line-height:20px;padding:9px 10px}
body.tvm-office .visa-description textarea.expanded,body.tvm-office #visa-result-editor-dialog .visa-description textarea.expanded{height:100px}
body.tvm-office .visa-refusal-options{border:0;padding:0;margin:0;min-width:0}
body.tvm-office .visa-refusal-options summary{padding:9px 0;font-weight:600;font-size:14px}
body.tvm-office .visa-refusal-options summary span{font-weight:400;font-size:12px;color:#63758a;margin-left:8px}
body.tvm-office .visa-refusal-grid{display:grid;grid-template-columns:1fr;gap:0;margin:0}
body.tvm-office .visa-refusal-grid label{display:flex;align-items:flex-start;gap:9px;padding:7px 0;margin:0;border-bottom:1px solid #edf1f5;font-size:13px;font-weight:400;line-height:1.4}
body.tvm-office .visa-refusal-grid input[type=checkbox]{flex:0 0 16px;width:16px;height:16px;min-height:16px;margin:1px 0 0;padding:0}
body.tvm-office .visa-refusal-source{display:inline-block;margin-top:8px;font-size:12px}
body.tvm-office .archive-compact-dialog .requirement-edit-fields{gap:8px 12px;padding:12px 16px}
body.tvm-office .archive-compact-dialog [data-scan-actions]{padding:0;margin:0;border:0;background:none;box-shadow:none;justify-content:flex-start}
body.tvm-office .archive-compact-dialog [data-connection]{margin:0;padding:0}
body.tvm-office .archive-compact-dialog [data-connection] summary{font-size:13px;padding:4px 0}
body.tvm-office .archive-compact-dialog [data-scan-status]{font-size:13px;line-height:1.4}
body.tvm-office .archive-compact-dialog .requirement-edit-fields input,body.tvm-office .archive-compact-dialog .requirement-edit-fields select{min-height:38px;padding:7px 9px}
body.tvm-office .archive-compact-dialog .requirement-edit-fields textarea{min-height:38px;height:38px;padding:7px 9px;resize:vertical}

body.tvm-office .archive-file-row{display:flex;gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid #e4eaf0}
body.tvm-office .archive-file-main{display:flex;align-items:center;gap:10px;min-width:0;flex:1}
body.tvm-office .archive-file-icon{position:relative;flex:0 0 27px;height:32px;color:#58748c}
body.tvm-office .archive-file-icon svg{width:27px;height:32px}
body.tvm-office .archive-file-icon small{position:absolute;bottom:5px;left:4px;background:white;font-size:8px;font-weight:700}
body.tvm-office .archive-file-title{min-width:0;flex:1}
body.tvm-office .archive-file-title a{display:block;font-size:14px;font-weight:600;overflow-wrap:anywhere;text-decoration:none}
body.tvm-office .archive-file-title a:hover{text-decoration:underline}
body.tvm-office .archive-file-title small{display:block;margin-top:3px;color:#647588;font-size:12px}
body.tvm-office .archive-file-source{font-size:12px;color:#647588;white-space:nowrap}
body.tvm-office .archive-file-actions button{min-height:32px;padding:5px 8px;font-size:12px}
body.tvm-office .archive-compact-dialog .archive-note{grid-column:1/-1}
@media(max-width:480px){body.tvm-office .archive-file-row{flex-wrap:wrap;gap:5px}body.tvm-office .archive-file-main{flex-basis:100%}body.tvm-office .archive-file-actions{margin-left:37px}}
body.tvm-office .visa-refusal-options details{margin:0;padding:0;border:0;background:transparent;box-shadow:none}
body.tvm-office .visa-refusal-options details>summary{margin:0;padding:8px 0;min-height:0}

/* Missing outcomes open the existing accessible dialog as a theme link. */
body.tvm-office button.visa-result-badge[data-visa-result="missing"]{min-height:0;padding:3px 0;border:0;border-radius:0;background:transparent;color:var(--tvm-action,#0966ba);box-shadow:none;text-decoration:underline;text-underline-offset:3px;font-weight:600}
body.tvm-office button.visa-result-badge[data-visa-result="missing"]:hover{color:var(--tvm-action-hover,#074e8f);background:transparent;filter:none}

/* Use the passport stage badge as the shared reference for stages and decisions. */
body.tvm-office .badge[data-application-stage],
body.tvm-office .visa-result-badge:not([data-visa-result="missing"]){display:inline-flex;align-items:center;gap:4.32px;box-sizing:border-box;width:fit-content;min-width:0;max-width:100%;height:auto;min-height:21.6px;margin:0;padding:3.6px 7.2px;border-width:.72px;border-style:solid;border-radius:5.04px;font-family:inherit;font-size:14px!important;font-weight:400!important;line-height:1.5!important;text-align:left;white-space:normal;overflow-wrap:anywhere;box-shadow:none}

/* Appointment row actions share the existing finance action theme. */
#appointment-queue-panel .appointment-extra-person{display:grid;gap:2px;margin-top:8px}
#appointment-queue-panel .finance-row-actions :is(.finance-edit-button,.finance-delete-button){display:inline-flex;align-items:center;gap:6px;min-height:44px}

/* Combined settlement: compact rows and one visible funding total. */
.combined-wallet-dialog{width:min(720px,calc(100vw - 24px));max-height:calc(100dvh - 24px)}
.combined-wallet-dialog .dialog-body{overflow:auto;padding:16px 20px;min-height:0}
.combined-wallet-dialog .form-grid{gap:10px 14px;grid-template-columns:repeat(2,minmax(0,1fr))}
.combined-wallet-dialog .combined-sources{padding:10px 12px;border:1px solid #d5deeb;border-radius:6px;margin:12px 0}
.combined-wallet-dialog .combined-history-row{padding:8px 0;border-bottom:1px solid #d5deeb}
.combined-wallet-dialog .combined-history-row p{margin:4px 0}
.combined-wallet-dialog .wallet-preview dl{display:grid;grid-template-columns:1fr 1fr;gap:6px 12px}
.combined-wallet-dialog .wallet-preview dd{margin:0;font-weight:600}
@media(max-width:520px){.combined-wallet-dialog .form-grid{grid-template-columns:1fr}.combined-wallet-dialog .dialog-body{padding:12px}.combined-wallet-dialog .wallet-preview dl{grid-template-columns:1fr}.combined-wallet-dialog .wallet-preview dd{margin-bottom:6px}}
body.tvm-office .combined-wallet-dialog{padding:0;overflow:hidden}
body.tvm-office .combined-wallet-dialog>form{display:flex;flex-direction:column;max-height:calc(100dvh - 28px);margin:0;padding:0}
body.tvm-office .combined-wallet-dialog .dialog-head{margin:0;padding:14px 20px;flex-shrink:0;width:auto;box-sizing:border-box}
body.tvm-office .combined-wallet-dialog .dialog-body{flex:1;overflow-y:auto}
body.tvm-office .combined-wallet-dialog .form-actions{margin:0;padding:12px 20px;flex-shrink:0}
body.tvm-office .combined-wallet-dialog .form-grid label{margin:0;min-width:0;gap:4px}
body.tvm-office .combined-wallet-dialog input:not([type=checkbox]),body.tvm-office .combined-wallet-dialog select{height:44px;min-height:44px;box-sizing:border-box;width:100%}
body.tvm-office .combined-wallet-dialog .money-input-hint{display:none}

/* Policy refunds: explicit amount, state and method; preserve native controls. */
.insurance-refund-pending,.insurance-stage.waiting strong,.workspace-refund-status{color:#b42318;}
.insurance-refund-value{display:block;font-weight:700;margin-top:4px;}
.insurance-detail-link{border:0;background:transparent;padding:4px 0;text-align:left;text-decoration:underline;cursor:pointer;color:#24436d;min-height:44px;}
.insurance-detail-body{padding:16px;min-width:0;}
#insurance-detail-dialog{width:min(720px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;}
body.tvm-office #insurance-detail-dialog>.dialog-head{box-sizing:border-box;width:100%;min-width:0;margin:0;padding:16px 20px;gap:16px;}
body.tvm-office #insurance-detail-dialog>.dialog-head h2{min-width:0;overflow-wrap:anywhere;}
body.tvm-office #insurance-detail-dialog>.dialog-head button{flex:none;}

/* Compact refund tracking and file-based visa reports. */
.insurance-refund-compact{border-bottom:1px solid #d6deea;padding:0;margin:0}
.insurance-refund-compact>summary{display:grid;grid-template-columns:1.3fr 1fr .85fr .85fr 1.2fr;align-items:center;gap:14px;padding:14px 12px;cursor:pointer;font-size:14px}
.insurance-refund-compact>summary .refund-pending{color:#b42318}
.refund-detail-label{color:#243e65;text-decoration:underline}
.insurance-refund-expanded{padding:0 12px 12px}
.compact-visa-report .profit-table td{padding:10px 8px;vertical-align:middle}
.compact-visa-report .profit-table td small{margin:2px 0 0;font-size:12px}
.compact-visa-report .profit-number{white-space:nowrap}
.compact-visa-report .profit-table th{padding:10px 8px}
@media(max-width:700px){.insurance-refund-compact>summary{grid-template-columns:1fr 1fr;gap:8px}.refund-detail-label{grid-column:1/-1}.compact-visa-report{overflow-x:auto}.compact-visa-report table{min-width:850px}}
@media print{.insurance-refund-expanded{display:none}.compact-visa-report .profit-text-action{display:none}.compact-visa-report .profit-table td{padding:5px;font-size:9px}.compact-visa-report .profit-table small{font-size:8px}}
body.tvm-office .insurance-refund-compact>summary::before{display:none}
body.tvm-office .insurance-refund-compact>summary{min-height:48px;font-weight:400}
body.tvm-office .insurance-report-panel{min-height:0}

/* Keep the global brand/session header and navigation visible in Version 2. */
@media screen{
 body.tvm-office.interface-new>header{position:sticky;top:0;z-index:100}
 body.tvm-office.interface-new [data-interface-target]{scroll-margin-top:calc(var(--interface-header-height,72px) + 16px)}
 body.tvm-office.interface-new .insurance-stage.completed{background:#eaf6ed;border:1px solid #acd1b8;color:#237246}
 body.tvm-office.interface-new .insurance-stage.completed strong{color:#237246}
 body.tvm-office.interface-new .insurance-stage.waiting{background:#fff6d9;border-color:#d8b55b}
 body.tvm-office.interface-new .insurance-stage.waiting strong{color:#b42318}
}
@media screen and (max-width:900px){
 body.tvm-office.interface-new>.interface-toolbar{top:var(--interface-header-height,72px)}
 body.tvm-office.interface-new [data-interface-target]{scroll-margin-top:calc(var(--interface-header-height,72px) + 76px)}
}

@media screen{
 body.tvm-office.interface-new .refund-state{display:inline-flex;align-items:center;justify-self:start;min-height:28px;padding:3px 9px;border:1px solid transparent;border-radius:6px;font-weight:600;line-height:1.35}
 body.tvm-office.interface-new .refund-state--completed{background:#eaf6ed;border-color:#acd1b8;color:#237246}
 body.tvm-office.interface-new .refund-state--waiting{background:#fff6d9;border-color:#d8b55b;color:#b42318}
}

@media screen{
 body.tvm-office.interface-new .insurance-refund-compact>summary{grid-template-columns:1.2fr 1fr .8fr minmax(190px,1.3fr) 1.1fr}
 body.tvm-office.interface-new .refund-stages-summary{display:grid;grid-auto-rows:1fr;justify-items:stretch;justify-self:start;gap:4px;width:min(100%,190px);min-width:0}
 body.tvm-office.interface-new .refund-stages-summary .refund-state{width:100%;max-width:100%;min-height:26px;justify-self:stretch;box-sizing:border-box;padding:3px 7px;border-color:transparent;border-radius:4px;font-size:12px;font-weight:500;white-space:normal}
 body.tvm-office.interface-new .insurance-refund-compact[data-refund-status="paid"]>summary>strong:nth-child(3){color:#237246}
}
@media screen and (max-width:700px){
 body.tvm-office.interface-new .insurance-refund-compact>summary{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media screen{
 body.tvm-office.interface-new .refund-stages-summary .refund-state--completed{background:#eff7f1;color:#2d6c48}
 body.tvm-office.interface-new .refund-stages-summary .refund-state--waiting{background:#fff8e6;color:#a33025}
}

/* Passport completion is informational; it does not change form validation. */
.passport-completion{margin:10px 0 14px;padding:10px 12px;border:1px solid #dce3ec;border-radius:8px;background:#f7f9fc;color:#243a59;min-width:0}
.passport-completion>summary{display:flex;align-items:center;gap:12px;cursor:pointer;font-size:.85rem}
.passport-completion>summary>span{flex:1;min-width:0}.passport-completion progress{width:90px;max-width:25%;height:7px;accent-color:#42688e}.passport-completion strong{font-variant-numeric:tabular-nums;white-space:nowrap}
.passport-completion p,.passport-completion ul{margin:10px 0 6px;font-size:.85rem}.passport-completion ul{columns:2;padding-left:18px}.passport-completion small{display:block;color:#586d85;line-height:1.45}.passport-completion.is-complete{background:#edf8f1;border-color:#bedccb}.passport-completion.is-complete progress{accent-color:#2e8154}
@media(max-width:480px){.passport-completion>summary{gap:6px}.passport-completion ul{columns:1}}

/* Compact completion indicator; color belongs to the progress, not a large banner. */
.application-completion,.passport-completion{--completion-color:#926608;background:#f7f9fc;border:1px solid #cdd7e3;color:#243b53}
.application-completion[data-tone="red"],.passport-completion[data-tone="red"]{--completion-color:#b52d3f}
.application-completion[data-tone="orange"],.passport-completion[data-tone="orange"]{--completion-color:#b75d12}
.application-completion[data-tone="green"],.passport-completion[data-tone="green"]{--completion-color:#23834b}
.application-completion.is-complete,.passport-completion.is-complete{background:#eff9f2;border-color:#b8ddc3}
.application-completion{padding:12px;margin-bottom:16px}
.application-completion [data-completion-summary]{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.application-completion [data-completion-summary]>strong{font-size:1rem;font-weight:600}.application-completion [data-completion-summary]>b{font-size:1.05rem;white-space:nowrap;font-variant-numeric:tabular-nums;color:var(--completion-color)}
.application-completion progress,.passport-completion progress{width:150px;max-width:30%;height:10px;accent-color:var(--completion-color);border:1px solid #c5cfdb;border-radius:6px;overflow:hidden}
.application-completion progress::-webkit-progress-bar,.passport-completion progress::-webkit-progress-bar{background:#e3e8ef;border-radius:6px}.application-completion progress::-webkit-progress-value,.passport-completion progress::-webkit-progress-value{background:var(--completion-color);border-radius:5px}.application-completion progress::-moz-progress-bar,.passport-completion progress::-moz-progress-bar{background:var(--completion-color);border-radius:5px}
.passport-completion{padding:10px 12px}.passport-completion>summary{display:flex;flex-wrap:nowrap;gap:12px}.passport-completion>summary>strong{font-size:1rem;color:var(--completion-color)}
@media(max-width:480px){.application-completion progress,.passport-completion progress{width:90px;max-width:25%}.passport-completion>summary{gap:6px}}

.application-completion [data-completion-summary]>b,.passport-completion>summary>strong{font-size:1.2rem;font-weight:800;letter-spacing:0;font-variant-numeric:tabular-nums}

/* A longer right-hand progress line, always starting red. Keep the neutral compact surface. */
.application-completion,.passport-completion{--completion-fill:linear-gradient(90deg,#e54c50,#ee7542,#f39835,#efca42)}
.application-completion[data-tone="red"],.passport-completion[data-tone="red"]{--completion-fill:linear-gradient(90deg,#dc3545,#ed6555)}
.application-completion[data-tone="orange"],.passport-completion[data-tone="orange"]{--completion-fill:linear-gradient(90deg,#dc3545,#f28b30)}
.application-completion[data-tone="green"],.passport-completion[data-tone="green"]{--completion-fill:linear-gradient(90deg,#dc3545 0%,#f08b30 33%,#f0ce41 66%,#2c9b53 100%)}
.application-completion [data-completion-summary],.passport-completion>summary{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.85fr) auto;align-items:center;gap:12px}
.application-completion progress,.passport-completion progress{width:100%;max-width:none;height:10px;accent-color:#e44a4f}
.application-completion [data-completion-summary]>b,.passport-completion>summary>strong{color:#243b53}
.application-completion progress::-webkit-progress-value,.passport-completion progress::-webkit-progress-value{background:var(--completion-fill)}
.application-completion progress::-moz-progress-bar,.passport-completion progress::-moz-progress-bar{background:var(--completion-fill)}
@media(max-width:520px){.application-completion [data-completion-summary],.passport-completion>summary{grid-template-columns:minmax(0,1fr) auto}.application-completion progress,.passport-completion progress{grid-column:1/-1;grid-row:2;width:100%;max-width:none}.application-completion [data-completion-summary]>b,.passport-completion>summary>strong{grid-column:2;grid-row:1}}


/* Native summary's disclosure marker must not become an extra grid cell. */
.application-completion [data-completion-summary],.passport-completion>summary{display:flex;align-items:center;flex-wrap:nowrap;gap:12px}
.application-completion [data-completion-summary]>strong,.passport-completion>summary>span{flex:1 1 auto;min-width:0;text-align:left}
.application-completion progress,.passport-completion progress{flex:0 1 42%;width:42%;min-width:0;max-width:none}
.application-completion [data-completion-summary]>b,.passport-completion>summary>strong{flex:0 0 auto;white-space:nowrap}
@media(max-width:520px){.application-completion [data-completion-summary],.passport-completion>summary{flex-wrap:wrap}.application-completion progress,.passport-completion progress{flex:1 0 100%;width:100%;order:3}.application-completion [data-completion-summary]>b,.passport-completion>summary>strong{order:2}}

/* Override the general interface button typography for compact result chips. */
body.tvm-office.interface-new #app .badge[data-application-stage],
body.tvm-office.interface-new #app button.visa-result-badge:not([data-visa-result="missing"]),
body.tvm-office.interface-new dialog .visa-result-badge:not([data-visa-result="missing"]){font-size:14px!important;font-weight:400!important;line-height:1.5!important}
