.query-pdf-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-inline-start:auto;max-width:100%;}
.query-pdf-actions .ui-button{min-height:44px;white-space:nowrap;font-size:13px;padding:9px 12px;}
.query-pdf-actions .ui-button>[data-tvm-icon]{flex:0 0 18px;width:18px;height:18px;}
.query-pdf-status{font-size:12px;color:var(--tvm-muted,#53657a);max-width:32rem;}
.query-pdf-status:empty{display:none;}
.profit-heading,.workspace-panel-heading{flex-wrap:wrap;}
.visa-list-mode{display:flex;flex-direction:column;gap:5px;min-width:146px;}
.visa-list-mode select{min-height:44px;width:100%;}
@media(max-width:600px){.query-pdf-actions{width:100%;justify-content:flex-start;margin-inline-start:0;}.query-pdf-status{width:100%;}.visa-list-mode{min-width:0;flex:1 1 145px;}}
@media print{.query-pdf-actions{display:none!important;}}

/* Query actions have their own row so the approved totals remain at the upper right. */
#profit-reports .profit-heading>.query-pdf-actions{flex:1 0 100%;width:100%;margin-inline-start:0;justify-content:flex-end;}
#profit-reports .query-heading-compact{align-items:end;gap:10px 16px;}
#profit-reports .query-heading-compact>h2{align-self:center;}
#profit-reports .query-report-tools{display:flex;align-items:end;justify-content:flex-end;flex-wrap:wrap;gap:8px 12px;min-width:0;max-width:100%;margin-inline-start:auto;}
#profit-reports .query-report-tools>.profit-controls{margin:0;min-width:0;max-width:100%;}
#profit-reports .query-report-tools>.query-pdf-actions{width:auto;flex:0 0 auto;margin:0;flex-wrap:nowrap;gap:6px;}
#profit-reports .query-report-tools .ui-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:9px 10px;}
#profit-reports .report-operations-heading>.query-report-tools{order:2;flex-basis:100%;}
@media(max-width:600px){
 #profit-reports .query-report-tools{width:100%;justify-content:flex-start;gap:8px;}
 #profit-reports .query-report-tools>.profit-controls:has(>label:only-child){display:flex;flex:1 1 120px;width:auto;}
 #profit-reports .query-report-tools>.profit-controls:has(>label:only-child)>label{min-width:0;width:100%;}
 #profit-reports .query-report-tools>.query-pdf-actions{margin-inline-start:auto;}
}

/* Quiet report surfaces keep figures and actions distinct without large summary tiles. */
body.tvm-office.interface-new #profit-reports .profit-panel{padding:18px;border-color:var(--tvm-line);border-radius:8px;box-shadow:none;}
body.tvm-office.interface-new #profit-reports .profit-heading h2{font-size:20px;line-height:1.35;}
body.tvm-office.interface-new #profit-reports .profit-summary{gap:0;margin:12px 0 16px;}
body.tvm-office.interface-new #profit-reports .profit-summary>article{padding:6px 14px;background:transparent;border:0;border-left:1px solid var(--tvm-line);border-radius:0;box-shadow:none;gap:4px;min-height:0;}
body.tvm-office.interface-new #profit-reports .profit-summary>article:first-child{border-left:0;padding-left:0;}
body.tvm-office.interface-new #profit-reports .profit-summary>article>span:first-child{font-size:13px;line-height:1.4;color:var(--tvm-muted);}
body.tvm-office.interface-new #profit-reports .profit-summary>article>strong{font-size:21px;line-height:1.35;}
body.tvm-office.interface-new #profit-reports .profit-summary small{font-size:12px;line-height:1.45;margin-top:0;}
body.tvm-office.interface-new #profit-reports .section-help{font-size:12px;line-height:1.5;margin:8px 0 12px;}
body.tvm-office.interface-new #profit-reports .profit-table th,body.tvm-office.interface-new #profit-reports .profit-table td{padding:10px 12px;}
body.tvm-office.interface-new #profit-reports .profit-table small{font-size:12px;line-height:1.45;}
body.tvm-office.interface-new #profit-reports .profit-number strong{font-size:16px;line-height:1.45;}
body.tvm-office.interface-new #profit-reports .profit-row-actions{display:flex;align-items:center;flex-wrap:wrap;gap:4px 12px;margin-top:2px;}
@media(max-width:600px){
 body.tvm-office.interface-new #profit-reports .profit-summary{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:14px;}
 body.tvm-office.interface-new #profit-reports .profit-summary>article:nth-child(odd){padding-left:0;border-left:0;}
 body.tvm-office.interface-new #profit-reports .profit-panel{padding:12px;}
}

/* Existing purchase-cost payload in a compact native dialog. */
body.tvm-office #report-extra-cost-dialog{width:min(560px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);box-sizing:border-box;padding:0;border:1px solid var(--tvm-line);border-radius:10px;background:var(--tvm-surface,#fff);color:var(--tvm-navy);overflow:hidden;}
body.tvm-office #report-extra-cost-dialog::backdrop{background:rgb(20 33 56 / 48%);}
body.tvm-office #report-extra-cost-dialog>form{display:flex;flex-direction:column;max-height:calc(100dvh - 26px);min-height:0;margin:0;}
body.tvm-office #report-extra-cost-dialog .dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:0 0 auto;padding:12px 16px;margin:0;border-bottom:1px solid var(--tvm-line);background:var(--tvm-surface,#fff);}
body.tvm-office #report-extra-cost-dialog h2{font-size:20px;line-height:1.35;margin:0;}
body.tvm-office #report-extra-cost-dialog .report-extra-cost-body{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:14px 16px;}
body.tvm-office #report-extra-cost-dialog .report-extra-cost-body>p{font-size:13px;line-height:1.5;margin:0 0 12px;}
body.tvm-office #report-extra-cost-dialog .form-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(110px,.7fr);gap:12px;}
body.tvm-office #report-extra-cost-dialog .form-grid>label:first-child{grid-column:1/-1;}
body.tvm-office #report-extra-cost-dialog label{display:grid;gap:5px;min-width:0;margin:0;font-size:13px;}
body.tvm-office #report-extra-cost-dialog :is(input,select,button){min-height:44px;box-sizing:border-box;}
body.tvm-office #report-extra-cost-dialog :is(input,select){width:100%;min-width:0;padding:9px 10px;font:inherit;border:1px solid var(--tvm-line-strong);border-radius:6px;background:var(--tvm-surface,#fff);color:inherit;}
body.tvm-office #report-extra-cost-dialog input:read-only{background:var(--tvm-surface-subtle,#f4f6f9);}
body.tvm-office #report-extra-cost-dialog .form-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex:0 0 auto;padding:12px 16px;margin:0;border-top:1px solid var(--tvm-line);background:var(--tvm-surface,#fff);}
body.tvm-office #report-extra-cost-dialog .error{font-size:13px;line-height:1.4;}
body.tvm-office #report-extra-cost-dialog .error:empty{display:none;}

/* Company payments use the same compact controls and readable statement table. */
body.tvm-office #report-extra-cost-dialog .dialog-head button{min-width:44px;}
body.tvm-office.interface-new #company-expense-report .company-expense-controls{align-items:end;justify-content:flex-start;gap:8px 10px;padding:12px 0;margin:10px 0;border:0;}
body.tvm-office.interface-new #company-expense-report .company-expense-controls>label{min-width:0;flex:0 1 155px;}
body.tvm-office.interface-new #company-expense-report .company-expense-controls>label:first-child{flex-basis:130px;}
body.tvm-office.interface-new #company-expense-report .company-expense-controls :is(button,select,input){min-height:44px;font-size:13px;}
body.tvm-office.interface-new #company-expense-report .company-expense-controls>.query-pdf-actions{margin-inline-start:0;flex:0 0 auto;width:auto;gap:6px;}
body.tvm-office.interface-new #company-expense-report .company-expense-controls>.actions{display:contents;}
body.tvm-office.interface-new #company-expense-report :is(.report-method-note,.company-expense-scope){margin:0 0 10px;border:0;background:transparent;font-size:12px;line-height:1.5;}
body.tvm-office.interface-new #company-expense-report :is(.report-method-note,.company-expense-scope)>summary{display:inline-flex;align-items:center;min-height:44px;color:var(--tvm-muted);cursor:pointer;}
body.tvm-office.interface-new #company-expense-report :is(.report-method-note,.company-expense-scope) p{margin:0 0 8px;max-width:90ch;}
body.tvm-office.interface-new #company-expense-report [data-result]{min-width:0;max-width:100%;}
body.tvm-office.interface-new #company-expense-report .income-table-wrap{overflow-x:auto;max-width:100%;overscroll-behavior-x:contain;}
body.tvm-office.interface-new #company-expense-report .ui-table{table-layout:fixed;width:100%;min-width:1040px;font-variant-numeric:tabular-nums;}
body.tvm-office.interface-new #company-expense-report .ui-table :is(th,td){padding:10px 12px;word-break:normal;overflow-wrap:break-word;line-height:1.45;font-size:13px;}
body.tvm-office.interface-new #company-expense-report .ui-table :is(th,td):nth-child(1){width:10%;white-space:nowrap;}
body.tvm-office.interface-new #company-expense-report .ui-table :is(th,td):nth-child(2){width:16%;}
body.tvm-office.interface-new #company-expense-report .ui-table :is(th,td):nth-child(3){width:24%;}
body.tvm-office.interface-new #company-expense-report .ui-table :is(th,td):nth-child(4){width:18%;}
body.tvm-office.interface-new #company-expense-report .ui-table :is(th,td):nth-child(5){width:12%;text-align:right;}
body.tvm-office.interface-new #company-expense-report .ui-table :is(th,td):nth-child(6),body.tvm-office.interface-new #company-expense-report .ui-table :is(th,td):nth-child(7){width:10%;text-align:right;}
body.tvm-office.interface-new #company-expense-report .ui-table td>a{display:inline-flex;align-items:center;min-height:44px;white-space:nowrap;word-break:normal;color:var(--tvm-action);font-size:13px;text-decoration:underline;text-underline-offset:3px;}
body.tvm-office.interface-new #company-expense-report .ui-table small{display:block;font-size:12px;line-height:1.45;color:var(--tvm-muted);}
@media(max-width:600px){
 body.tvm-office.interface-new #company-expense-report .company-expense-controls>label{flex:1 1 140px;}
 body.tvm-office.interface-new #company-expense-report .company-expense-controls>.query-pdf-actions{margin:0;width:auto;}
}
body.tvm-office #report-extra-cost-dialog .form-grid>label{align-self:start;align-content:start;}
body.tvm-office #report-extra-cost-dialog .form-grid select{height:44px;}
@media(max-width:600px){
 body.tvm-office.interface-new #company-expense-report .ui-table{min-width:0;table-layout:auto;}
 body.tvm-office.interface-new #company-expense-report .ui-table :is(th,td){width:auto;max-width:100%;}
 body.tvm-office.interface-new #company-expense-report .ui-table :is(th,td):nth-child(n+5){text-align:left;}
}
body.tvm-office.interface-new #profit-reports #company-expense-report .company-expense-controls{display:flex;flex-wrap:wrap;}
body.tvm-office.interface-new #profit-reports #company-expense-report .company-expense-controls>label:not([hidden]){flex:0 1 155px;width:155px;}
body.tvm-office.interface-new #profit-reports #company-expense-report .company-expense-controls>label:has([name="period"]){flex-basis:130px;width:130px;}
body.tvm-office.interface-new #profit-reports #company-expense-report .company-expense-controls>button{width:auto;min-width:0;flex:0 0 auto;}
@media(max-width:600px){
 body.tvm-office.interface-new #profit-reports #company-expense-report .company-expense-controls>label:not([hidden]){flex:1 1 140px;width:auto;}
 body.tvm-office.interface-new #profit-reports #company-expense-report .company-expense-controls>.query-pdf-actions{display:flex;flex-wrap:nowrap;}
}
body.tvm-office.interface-new #company-expense-report .ui-table td>a{max-width:100%;overflow-x:auto;scrollbar-width:thin;}
