/* V3-B4 (16.11.2026) - Reports, Team reminders, Company settings (business workspace).
   msv2 private preview only: every selector starts with html.msv2. Markup comes from
   View/Theme/Default/V3BusinessAdmin.php (cookie-gated). Native handlers are untouched. */

html.msv2 .v3b4{box-sizing:border-box;width:100%;max-width:1360px;margin:0 auto 22px;color:var(--ms-ink,#123A5C);font-size:14px;line-height:1.45}
html.msv2 .v3b4 *{box-sizing:border-box}
html.msv2 .v3b4 h1,html.msv2 .v3b4 h2{color:var(--ms-ink,#123A5C);letter-spacing:0;margin:0}
html.msv2 .v3b4-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:0 0 16px}
html.msv2 .v3b4-head>div:first-child{min-width:0;flex:1 1 320px}
html.msv2 .v3b4-head h1{font-size:20px;line-height:1.3;font-weight:700;margin:0 0 4px}
html.msv2 .v3b4-head p{margin:0;color:var(--ms-muted,#64748b);font-size:13px}
html.msv2 .v3b4 h2{font-size:16px;line-height:1.35;font-weight:700}
html.msv2 .v3b4-sub{color:var(--ms-muted,#64748b);font-size:13px;margin:4px 0 0}
html.msv2 .v3b4-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}

/* One button type: 44px high, 10px radius, same shape for every action. */
html.msv2 .v3b4-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 16px;border:1px solid var(--ms-border,#dbe4ea);border-radius:10px;background:var(--ms-surface,#fff);color:var(--ms-ink,#123A5C);font:inherit;font-size:14px;font-weight:600;line-height:1.2;text-decoration:none;white-space:nowrap;word-break:keep-all;cursor:pointer;box-shadow:none}
html.msv2 .v3b4-btn:hover,html.msv2 .v3b4-btn:focus{background:var(--ms-soft,#E7EEF6);color:var(--ms-ink,#123A5C);text-decoration:none}
html.msv2 .v3b4-btn:focus-visible{outline:2px solid var(--ms-orange,#D95F0E);outline-offset:2px}
html.msv2 .v3b4-btn.is-primary,html.msv2 .v3b4-tabs .v3b4-btn[aria-current="page"]{background:var(--ms-navy,#123A5C);border-color:var(--ms-navy,#123A5C);color:#fff}
html.msv2 .v3b4-btn.is-primary:hover,html.msv2 .v3b4-tabs .v3b4-btn[aria-current="page"]:hover{background:var(--ms-navy-ink,#0f2447);color:#fff}
html.msv2 .v3b4-btn .fa{font-size:15px;line-height:1}

html.msv2 .v3b4-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 18px}
html.msv2 .v3b4-card{background:var(--ms-surface,#fff);border:1px solid var(--ms-border,#dbe4ea);border-radius:12px;min-width:0;overflow:hidden}
html.msv2 .v3b4-pad{padding:20px}
html.msv2 .v3b4-pad>.v3b4-btn,html.msv2 .v3b4-report-card>.v3b4-btn{margin-top:14px}
html.msv2 .v3b4-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:0 0 18px}
html.msv2 .v3b4-report-card{padding:18px 20px;display:flex;flex-direction:column;align-items:flex-start}
html.msv2 .v3b4-report-card>.v3b4-btn{margin-top:auto}
html.msv2 .v3b4-figure{display:flex;align-items:baseline;gap:6px;margin:12px 0 14px;color:var(--ms-muted,#64748b);font-size:13px}
html.msv2 .v3b4-figure strong{font-size:22px;line-height:1;font-weight:700;color:var(--ms-ink,#123A5C)}
html.msv2 .v3b4-section-title{margin:22px 0 10px!important}

/* Filter: search + status on one row, same height. */
html.msv2 .v3b4-filter{--ms-control-height:44px;display:flex;flex-direction:row;align-items:flex-end;gap:12px;flex-wrap:wrap;background:var(--ms-surface,#fff);border:1px solid var(--ms-border,#dbe4ea);border-radius:12px;padding:14px 16px;margin:0 0 18px}
html.msv2 .v3b4-field{display:flex;flex-direction:column;align-items:stretch;float:none;width:auto;gap:6px;flex:1 1 220px;min-width:0;margin:0;font-size:13px;font-weight:600;color:var(--ms-muted,#64748b)}
html.msv2 .v3b4-field-search{flex:2 1 280px}
html.msv2 .v3b4-field>span{display:block;margin:0;padding:0;line-height:1.3}
html.msv2 .v3b4-field :is(input,select){box-sizing:border-box;width:100%;min-height:44px;height:44px;padding:10px 12px;border:1px solid var(--ms-border,#dbe4ea);border-radius:10px;background:var(--ms-surface,#fff);color:var(--ms-ink,#123A5C);font:inherit;font-size:14px;font-weight:400;box-shadow:none;outline-offset:0}
html.msv2 .v3b4-field :is(input,select):focus{border-color:var(--ms-navy,#123A5C);outline:2px solid var(--ms-blue-soft,#eaf2fa)}
html.msv2 .v3b4-filter-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto}
html.msv2 .v3b4 .v3b4-filter-actions .v3b4-btn{margin:0}

/* Records table */
html.msv2 .v3b4-cardhead{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:16px 20px;border-bottom:1px solid var(--ms-border,#dbe4ea)}
html.msv2 .v3b4-cardhead .v3b4-sub{margin:0}
html.msv2 .v3b4-table-wrap{overflow-x:auto;max-width:100%}
html.msv2 .v3b4-table{width:100%;border-collapse:collapse;margin:0;font-size:14px;background:transparent}
html.msv2 .v3b4-table th{position:static;text-align:left;font-size:12px;font-weight:600;color:var(--ms-muted,#64748b);background:var(--ms-bg,#f4f7fa);padding:10px 16px;border-bottom:1px solid var(--ms-border,#dbe4ea);white-space:nowrap}
html.msv2 .v3b4-table td{padding:12px 16px;border-bottom:1px solid var(--ms-border,#dbe4ea);vertical-align:top;color:var(--ms-ink,#123A5C);overflow-wrap:anywhere;word-break:normal}
html.msv2 .v3b4-table tbody tr:last-child td{border-bottom:0}
html.msv2 .v3b4-who strong{display:block;font-weight:600}
html.msv2 .v3b4-who small{display:block;color:var(--ms-muted,#64748b);font-size:12px}
html.msv2 .v3b4-date-k{color:var(--ms-muted,#64748b);font-size:12px}
html.msv2 .v3b4-date-v{white-space:nowrap}
html.msv2 .v3b4-tag{display:inline-flex;align-items:center;padding:4px 9px;border-radius:999px;font-size:12px;font-weight:600;line-height:1.3;white-space:normal;background:var(--ms-soft,#E7EEF6);color:var(--ms-ink,#123A5C)}
html.msv2 .v3b4-tag.is-good{background:var(--ms-green-soft,#e7f5ee);color:var(--ms-green,#167452)}
html.msv2 .v3b4-tag.is-warn{background:var(--ms-amber-soft,#FFEEDC);color:var(--ms-amber,#95600c)}
html.msv2 .v3b4-tag.is-bad{background:var(--ms-red-soft,#fdecec);color:var(--ms-red,#b23b35)}
html.msv2 .v3b4-tag.is-info{background:var(--ms-blue-soft,#eaf2fa);color:var(--ms-navy,#123A5C)}
html.msv2 .v3b4-tag.is-muted{background:var(--ms-soft,#E7EEF6);color:var(--ms-muted,#64748b)}
html.msv2 .v3b4-pager{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:14px 16px;border-top:1px solid var(--ms-border,#dbe4ea);color:var(--ms-muted,#64748b);font-size:13px}
html.msv2 .v3b4-pager span{margin-right:auto}
html.msv2 .v3b4-empty{text-align:center;padding:40px 24px;max-width:540px;margin:0 auto}
html.msv2 .v3b4-empty p{color:var(--ms-muted,#64748b);margin:8px 0 16px}
html.msv2 .v3b4-empty .v3b4-actions{justify-content:center}

/* Reports replaces the overview content of /dashboard?view=reports; Company settings keeps only the
   native Company Details card + Save of /profile (business mode). Older shared rules use layered
   !important (ms-typography), so these hide rules live in that same layer with higher specificity. */
@layer ms-typography {
html.msv2 #dv2-root#dv2-root:has(> #v3b4-reports) > :not(#v3b4-reports):not(script):not(style):not(template):not(dialog):not([role="dialog"]):not(.modal):not([id*="dialog"]):not([class*="dialog"]){display:none!important}
html.msv2 body:has(#v3b4-company) #ms-frame#ms-frame#ms-frame :is(.sc-acc-head,.profile-modern .sc-certbar,.profile-modern .pwd-edit,.profile-modern .sc-comm,.profile-modern .sc-card:not(:has(> .sc-grid.sc-g3))),
html.msv2 body:has(#v3b4-company) :is(.sc-acc-head,.profile-modern .sc-certbar,.profile-modern .pwd-edit,.profile-modern .sc-comm,.profile-modern .sc-card:not(:has(> .sc-grid.sc-g3))){display:none!important}
}
html.msv2 body:has(#v3b4-company) .v3b4-delivery{margin:0 0 18px}

/* Team reminders: the native dialog (SC-REMIND-236) in the shared controls. */
html.msv2 .emp-remind-btn{min-height:44px;border-radius:10px;border:1px solid var(--ms-border,#dbe4ea);background:var(--ms-surface,#fff);color:var(--ms-ink,#123A5C);font-size:13px;font-weight:600;padding:9px 14px;white-space:nowrap}
html.msv2 .emp-remind-btn:hover{background:var(--ms-soft,#E7EEF6);border-color:var(--ms-border,#dbe4ea)}
html.msv2 #sc-rem-box{border-radius:14px;font-family:inherit;color:var(--ms-ink,#123A5C)}
html.msv2 #sc-rem-box .hd b{font-size:16px;color:var(--ms-ink,#123A5C)}
html.msv2 #sc-rem-box .hd button{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:10px;color:var(--ms-muted,#64748b)}
html.msv2 #sc-rem-box .hd button:hover{background:var(--ms-soft,#E7EEF6)}
html.msv2 #sc-rem-box label{text-transform:none;letter-spacing:0;font-size:13px;font-weight:600;color:var(--ms-muted,#64748b)}
html.msv2 #sc-rem-box :is(select,input[type=date],textarea){border:1px solid var(--ms-border,#dbe4ea);border-radius:10px;background:var(--ms-surface,#fff);min-height:44px;color:var(--ms-ink,#123A5C)}
html.msv2 #sc-rem-box :is(select,input,textarea):focus{border-color:var(--ms-navy,#123A5C)}
html.msv2 #sc-rem-box .ft{flex-wrap:wrap}
html.msv2 #sc-rem-box .ft button{min-height:44px;border-radius:10px;padding:10px 16px;font-weight:600;font-size:14px;border:1px solid var(--ms-border,#dbe4ea)}
html.msv2 #sc-rem-cancel{background:var(--ms-surface,#fff);color:var(--ms-ink,#123A5C)}
html.msv2 #sc-rem-send{background:var(--ms-navy,#123A5C);border-color:var(--ms-navy,#123A5C)!important;color:#fff}

@media (max-width:900px){
 html.msv2 .v3b4-grid{grid-template-columns:minmax(0,1fr)}
 html.msv2 .v3b4-head h1{font-size:18px}
}
@media (max-width:700px){
 html.msv2 .v3b4-head .v3b4-actions,html.msv2 .v3b4-head .v3b4-actions .v3b4-btn{width:100%}
 html.msv2 .v3b4-tabs .v3b4-btn{flex:1 1 auto;padding:10px 12px}
 html.msv2 .v3b4-pad{padding:16px}
 html.msv2 .v3b4-report-card{padding:16px}
 html.msv2 .v3b4-filter{padding:12px}
 html.msv2 .v3b4-field,html.msv2 .v3b4-field-search{flex-basis:100%}
 html.msv2 .v3b4-filter-actions{width:100%}
 html.msv2 .v3b4-filter-actions .v3b4-btn{flex:1 1 0}
 /* Table becomes stacked rows with labels. */
 html.msv2 .v3b4-table,html.msv2 .v3b4-table tbody{display:block;width:100%}
 html.msv2 .v3b4-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 html.msv2 .v3b4-table tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 12px;padding:14px 16px;border-bottom:1px solid var(--ms-border,#dbe4ea)}
 html.msv2 .v3b4-table tbody tr:last-child{border-bottom:0}
 html.msv2 .v3b4-table td{display:block;border:0;padding:0;min-width:0}
 html.msv2 .v3b4-table td::before{content:attr(data-label);display:block;font-size:11px;color:var(--ms-muted,#64748b);margin-bottom:2px}
 html.msv2 .v3b4-table td.v3b4-who{grid-column:1/-1}
 html.msv2 .v3b4-table td.v3b4-who::before{display:none}
 html.msv2 .v3b4-pager .v3b4-btn{flex:1 1 0}
 html.msv2 .v3b4-pager span{width:100%}
 html.msv2 #sc-rem-box .ft button{flex:1 1 auto}
}
