/* v1.10.15 — Portal-wide mobile UX audit and responsive layer.
   Layout-only: no business/workflow logic is changed. */
:root{
  --mobile-safe-bottom:env(safe-area-inset-bottom,0px);
  --mobile-tap:46px;
  --mobile-radius:16px;
  --mobile-line:#dbe6f0;
  --mobile-ink:#173f67;
  --mobile-muted:#6f8194;
  --mobile-blue:#123f70;
}
.portal-mobile-dock{display:none}
.portal-file-meta{display:none}
.portal-mobile-scroll-shell{max-width:100%;overflow:auto;-webkit-overflow-scrolling:touch}
.portal-download-action{white-space:nowrap}

@media(max-width:900px){
  html{scroll-padding-top:78px}
  body.portal-context-admin,
  body.portal-context-staff,
  body.portal-context-client,
  body.portal-context-associate{
    overflow-x:hidden;
    padding-bottom:calc(82px + var(--mobile-safe-bottom));
    background:#f5f8fb;
  }

  body.portal-context-admin main.wrap,
  body.portal-context-staff main.wrap,
  body.portal-context-client main.wrap,
  body.portal-context-associate main.wrap{
    width:100%!important;
    max-width:none!important;
    padding-left:11px!important;
    padding-right:11px!important;
    padding-bottom:22px!important;
  }

  /* Header becomes a compact, predictable mobile shell. */
  .portal-topbar{
    position:sticky!important;
    top:0!important;
    z-index:950!important;
    background:rgba(255,255,255,.98)!important;
    backdrop-filter:saturate(145%) blur(12px);
    box-shadow:0 4px 18px rgba(26,63,99,.07);
  }
  .portal-topbar .topbar-shell{
    width:100%!important;
    min-height:61px!important;
    padding:7px 10px!important;
    gap:8px!important;
  }
  .portal-brand{min-width:0!important;gap:9px!important}
  .portal-brand .brand-mark{width:38px!important;height:38px!important;min-width:38px!important;font-size:13px!important}
  .portal-brand .brand-copy{min-width:0!important}
  .portal-brand .brand-copy strong{display:block!important;font-size:13px!important;line-height:1.15!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .portal-brand .brand-copy small{display:block!important;max-width:165px!important;font-size:9.5px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .nav-toggle{min-width:46px!important;min-height:44px!important;border-radius:12px!important}

  .portal-topbar .topnav.is-open{
    position:fixed!important;
    top:64px!important;
    left:8px!important;
    right:8px!important;
    width:auto!important;
    max-height:calc(100dvh - 154px)!important;
    overflow:auto!important;
    overscroll-behavior:contain;
    padding:9px!important;
    border:1px solid #d8e4ef!important;
    border-radius:17px!important;
    background:#fff!important;
    box-shadow:0 20px 50px rgba(21,54,86,.22)!important;
    z-index:980!important;
  }
  .portal-topbar .topnav.is-open>.topnav-link,
  .portal-topbar .topnav.is-open>.topnav-group>summary,
  .portal-topbar .topnav.is-open>.topnav-logout{
    min-height:47px!important;
    border-radius:11px!important;
    padding:10px 12px!important;
  }
  .portal-topbar .topnav-menu,
  .portal-topbar .topnav-menu-right{
    position:static!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    margin-top:5px!important;
    border-radius:12px!important;
    box-shadow:none!important;
  }
  .portal-topbar .topnav-menu a{min-height:48px!important;padding:9px 10px!important}

  /* Role-aware quick dock. Admin keeps its existing specialised dock. */
  .portal-mobile-dock{
    position:fixed;
    z-index:990;
    left:7px;
    right:7px;
    bottom:calc(7px + var(--mobile-safe-bottom));
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    align-items:stretch;
    gap:4px;
    min-height:64px;
    padding:5px;
    border:1px solid rgba(205,219,232,.95);
    border-radius:18px;
    background:rgba(255,255,255,.97);
    box-shadow:0 15px 38px rgba(21,54,87,.2);
    backdrop-filter:blur(12px);
  }
  .portal-mobile-dock>a,
  .portal-mobile-dock>button{
    appearance:none;
    border:0;
    outline:0;
    min-width:0;
    min-height:54px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:3px;
    padding:4px 2px;
    border-radius:12px;
    background:transparent;
    color:#557089;
    text-decoration:none;
    font:inherit;
    cursor:pointer;
    -webkit-tap-highlight-color:transparent;
  }
  .portal-mobile-dock>a span,
  .portal-mobile-dock>button span{
    min-width:28px;
    height:28px;
    padding:0 5px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:9px;
    background:#eef4fa;
    color:#24547f;
    font-size:10px;
    font-weight:950;
    line-height:1;
  }
  .portal-mobile-dock>a b,
  .portal-mobile-dock>button b{max-width:100%;font-size:9.5px;font-weight:900;line-height:1.05;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .portal-mobile-dock>a.active{background:#edf5ff;color:#123f70}
  .portal-mobile-dock>a.active span{background:#123f70;color:#fff}
  .portal-mobile-dock-staff>a:nth-child(2) span{background:#eaf4ff;color:#165e99}
  .portal-mobile-dock-staff>a:nth-child(3) span{background:#f0ebff;color:#6143ae}
  .portal-mobile-dock-staff>a:nth-child(4) span{background:#e9f8f2;color:#087456}
  .portal-mobile-dock-client>a:nth-child(2) span{background:#f0ebff;color:#6143ae}
  .portal-mobile-dock-client>a:nth-child(3) span{background:#edf6ff;color:#165e99}
  .portal-mobile-dock-associate>button:nth-child(2) span{background:#edf6ff;color:#165e99}

  /* Typography and section density */
  main.wrap h1{font-size:clamp(24px,7vw,31px)!important;line-height:1.13!important;letter-spacing:-.02em}
  main.wrap h2{line-height:1.2}
  main.wrap p{line-height:1.5}
  .card,.panel,.box,.table-card,.assignment-table-card,
  .client-financial-card,.associate-client-center{
    max-width:100%;
  }

  /* Forms: easier thumb use, no iOS zoom, less horizontal breakage. */
  body.portal-context-admin input:not([type="checkbox"]):not([type="radio"]),
  body.portal-context-admin select,body.portal-context-admin textarea,
  body.portal-context-staff input:not([type="checkbox"]):not([type="radio"]),
  body.portal-context-staff select,body.portal-context-staff textarea,
  body.portal-context-client input:not([type="checkbox"]):not([type="radio"]),
  body.portal-context-client select,body.portal-context-client textarea,
  body.portal-context-associate input:not([type="checkbox"]):not([type="radio"]),
  body.portal-context-associate select,body.portal-context-associate textarea{
    max-width:100%!important;
    min-height:46px;
    font-size:16px!important;
  }
  textarea{min-height:92px!important}
  input[type="checkbox"],input[type="radio"]{min-width:20px;min-height:20px}
  input[type="file"]{
    width:100%!important;
    min-height:54px!important;
    padding:6px!important;
    border:1px dashed #b8cadb!important;
    border-radius:12px!important;
    background:#f8fbfd!important;
    overflow:hidden;
  }
  input[type="file"]::file-selector-button{
    min-height:40px;
    margin-right:8px;
    padding:7px 11px;
    border:0;
    border-radius:9px;
    background:#e9f2fa;
    color:#174e7e;
    font-weight:900;
  }
  .portal-file-meta{
    display:block;
    margin-top:5px;
    padding:6px 8px;
    border-radius:8px;
    background:#eef7f3;
    color:#17644e;
    font-size:10.5px;
    line-height:1.35;
    overflow-wrap:anywhere;
  }
  .portal-file-meta.is-error{background:#fff0ee;color:#9d3127}

  button,.btn,input[type="submit"],input[type="button"]{min-height:44px}
  .actions,.form-actions,.action-row,.toolbar-actions,.head-actions{
    max-width:100%;
    flex-wrap:wrap!important;
    gap:7px!important;
  }
  .actions>.btn,.actions>button,.form-actions>.btn,.form-actions>button{
    flex:1 1 145px;
    justify-content:center;
  }
  .portal-download-action{min-height:42px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:5px!important}
  .portal-download-action::before{content:"↓";font-weight:950}

  /* Horizontal safety for grids and media. */
  img,svg,video,canvas{max-width:100%}
  iframe{max-width:100%}
  .portal-document-modal-card{width:calc(100vw - 12px)!important;height:calc(100dvh - 24px)!important;max-height:none!important;border-radius:16px!important}
  .portal-document-modal-body{min-height:0!important}
  .portal-document-modal-body iframe{height:100%!important;min-height:60dvh!important}
  .portal-document-modal-head,.portal-document-modal-foot{padding:10px 12px!important}

  /* All non-cardified tables remain comfortably scrollable. */
  .portal-mobile-scroll-shell,.table-wrap,.table-responsive,.responsive-table{
    width:100%;
    max-width:100%;
    overflow:auto!important;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:thin;
  }
  table{max-width:100%}
  table.portal-mobile-scroll-table{min-width:680px}
  table.portal-mobile-scroll-table th,
  table.portal-mobile-scroll-table td{white-space:nowrap}

  /* Staff list tables become readable cards where the structure is safe. */
  body:not(.portal-context-admin) table.portal-mobile-card-table{
    display:block!important;
    width:100%!important;
    border:0!important;
    background:transparent!important;
  }
  body:not(.portal-context-admin) table.portal-mobile-card-table thead{display:none!important}
  body:not(.portal-context-admin) table.portal-mobile-card-table tbody{display:grid!important;gap:10px!important;width:100%!important}
  body:not(.portal-context-admin) table.portal-mobile-card-table tbody tr{
    display:block!important;
    width:100%!important;
    margin:0!important;
    padding:10px 12px!important;
    border:1px solid var(--mobile-line)!important;
    border-radius:15px!important;
    background:#fff!important;
    box-shadow:0 6px 18px rgba(24,61,96,.045)!important;
  }
  body:not(.portal-context-admin) table.portal-mobile-card-table tbody td{
    display:grid!important;
    grid-template-columns:minmax(90px,38%) minmax(0,1fr)!important;
    align-items:start!important;
    gap:9px!important;
    width:100%!important;
    min-width:0!important;
    padding:8px 0!important;
    border:0!important;
    border-bottom:1px solid #edf2f6!important;
    white-space:normal!important;
    overflow-wrap:anywhere;
    text-align:left!important;
  }
  body:not(.portal-context-admin) table.portal-mobile-card-table tbody td:last-child{border-bottom:0!important}
  body:not(.portal-context-admin) table.portal-mobile-card-table tbody td::before{
    content:attr(data-label);
    color:#718297;
    font-size:10px;
    font-weight:900;
    line-height:1.35;
    text-transform:uppercase;
    letter-spacing:.035em;
  }
  body:not(.portal-context-admin) table.portal-mobile-card-table tbody td[data-label=""]{
    display:block!important;
  }
  body:not(.portal-context-admin) table.portal-mobile-card-table tbody td[data-label=""]::before{display:none}
  body:not(.portal-context-admin) table.portal-mobile-card-table tbody td[data-mobile-action="1"]{
    display:flex!important;
    flex-wrap:wrap!important;
    gap:6px!important;
    padding-top:10px!important;
  }
  body:not(.portal-context-admin) table.portal-mobile-card-table tbody td[data-mobile-action="1"]::before{display:none!important}
  body:not(.portal-context-admin) table.portal-mobile-card-table tbody td[data-mobile-action="1"] .btn,
  body:not(.portal-context-admin) table.portal-mobile-card-table tbody td[data-mobile-action="1"] button{
    flex:1 1 120px;
    justify-content:center;
  }

  /* Search / filters stack consistently */
  form[class*="filter"],form[class*="search"],
  .filter-bar,.search-bar,.toolbar,.list-toolbar{
    max-width:100%;
  }
  form[class*="filter"] .btn,form[class*="search"] .btn{min-height:46px}

  /* Notices should never be tiny or clipped. */
  .notice,.alert,.message{
    max-width:100%;
    padding:11px 12px!important;
    border-radius:12px!important;
    font-size:12.5px!important;
    line-height:1.45!important;
    overflow-wrap:anywhere;
  }

  /* Pagination works as thumb-sized buttons. */
  .pagination,.work-pagination{
    display:flex!important;
    flex-wrap:wrap!important;
    gap:6px!important;
  }
  .pagination a,.pagination button,.work-pagination a,.work-pagination button{min-height:42px!important;min-width:42px!important}
}

@media(max-width:620px){
  body.portal-context-admin main.wrap,
  body.portal-context-staff main.wrap,
  body.portal-context-client main.wrap,
  body.portal-context-associate main.wrap{padding-left:8px!important;padding-right:8px!important}

  .portal-topbar .topnav.is-open{left:5px!important;right:5px!important}
  .portal-mobile-dock{left:5px;right:5px;bottom:calc(5px + var(--mobile-safe-bottom));gap:2px;padding:4px;border-radius:16px}
  .portal-mobile-dock>a,.portal-mobile-dock>button{min-height:52px;padding:3px 1px}
  .portal-mobile-dock>a b,.portal-mobile-dock>button b{font-size:8.8px}

  .card,.panel,.box,.table-card,.assignment-table-card,
  .client-financial-card,.associate-client-center{border-radius:14px!important}

  body:not(.portal-context-admin) table.portal-mobile-card-table tbody td{
    grid-template-columns:34% minmax(0,1fr)!important;
    gap:7px!important;
  }
}

@media(max-width:380px){
  .portal-brand .brand-copy small{display:none!important}
  .portal-mobile-dock>a b,.portal-mobile-dock>button b{font-size:8px}
  .portal-mobile-dock>a span,.portal-mobile-dock>button span{min-width:25px;height:25px;font-size:9px}
  body:not(.portal-context-admin) table.portal-mobile-card-table tbody td{grid-template-columns:1fr!important;gap:3px!important}
}

/* v1.10.24 — Search every visible Staff action / button from one place. */
.topnav-action-search-trigger{
  appearance:none;border:1px solid #dbe7f2;border-radius:12px;background:#f6faff;color:#174e7e;
  min-height:42px;padding:8px 12px;display:inline-flex;align-items:center;gap:7px;font:inherit;font-weight:900;cursor:pointer;
}
.topnav-action-search-trigger span{font-size:18px;line-height:1}.topnav-action-search-trigger:hover{background:#edf6ff;border-color:#c5d9eb}
.portal-action-search-layer{position:fixed;inset:0;z-index:2500;display:flex;align-items:flex-start;justify-content:center;padding:8vh 14px 20px;background:rgba(13,35,56,.48);backdrop-filter:blur(5px)}
.portal-action-search-layer[hidden]{display:none!important}
.portal-action-search-panel{width:min(720px,100%);max-height:82dvh;display:flex;flex-direction:column;overflow:hidden;border:1px solid #d8e5f0;border-radius:20px;background:#fff;box-shadow:0 28px 80px rgba(8,35,61,.3)}
.portal-action-search-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-bottom:1px solid #e7eef5;background:linear-gradient(135deg,#f8fbff,#fff)}
.portal-action-search-head strong{display:block;color:#143f69;font-size:17px}.portal-action-search-head small{display:block;margin-top:2px;color:#77899b;font-size:11px}
.portal-action-search-close{width:40px;height:40px;border:0;border-radius:11px;background:#eef4fa;color:#365f82;font-size:23px;cursor:pointer}
.portal-action-search-input-wrap{padding:12px 14px;border-bottom:1px solid #edf2f6}.portal-action-search-input{width:100%!important;min-height:50px!important;margin:0!important;padding:11px 14px!important;border:1px solid #bed2e4!important;border-radius:13px!important;background:#fff!important;font-size:16px!important;color:#153f68!important;outline:none}.portal-action-search-input:focus{border-color:#4388c6!important;box-shadow:0 0 0 3px rgba(67,136,198,.12)!important}
.portal-action-search-results{min-height:100px;overflow:auto;padding:8px}.portal-action-search-item{width:100%;display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px 11px;border:0;border-bottom:1px solid #edf2f6;border-radius:10px;background:#fff;color:#173f67;text-align:left;cursor:pointer}.portal-action-search-item:hover,.portal-action-search-item:focus{background:#eef6ff;outline:none}.portal-action-search-item>span{width:38px;height:38px;display:flex;align-items:center;justify-content:center;border-radius:10px;background:#eaf3fc;color:#1c6099;font-weight:950}.portal-action-search-item strong{display:block;font-size:13px;line-height:1.25}.portal-action-search-item small{display:block;margin-top:3px;color:#7a8b9d;font-size:10.5px;line-height:1.3}.portal-action-search-item em{font-style:normal;color:#4074a0;font-size:10px;font-weight:900;white-space:nowrap}.portal-action-search-empty{padding:28px 18px;text-align:center;color:#75879a;font-size:13px}.portal-action-search-foot{padding:9px 14px;border-top:1px solid #edf2f6;color:#7a8b9d;font-size:10px;background:#fbfdff}.portal-action-search-open{overflow:hidden!important}

@media(max-width:900px){
  .portal-topbar .topnav.is-open>.topnav-action-search-trigger{width:100%;min-height:47px!important;justify-content:flex-start;border-radius:11px!important;padding:10px 12px!important}
  .portal-action-search-layer{padding:10px 7px calc(86px + var(--mobile-safe-bottom));align-items:flex-start}
  .portal-action-search-panel{max-height:calc(100dvh - 104px);border-radius:17px}
  .portal-action-search-head{padding:11px 12px}.portal-action-search-input-wrap{padding:9px}.portal-action-search-results{padding:5px}
  .portal-action-search-item{grid-template-columns:38px minmax(0,1fr);padding:9px}.portal-action-search-item>span{width:34px;height:34px}.portal-action-search-item em{display:none}

  /* Executive mobile is work-first on every Staff page. */
  body.staff-role-executive main.wrap{padding-top:7px!important}
  body.staff-role-executive .dashboard-head,
  body.staff-role-executive .assignment-page-head,
  body.staff-role-executive .staff-team-tally-head,
  body.staff-role-executive .audit-assigned-upload-due-head,
  body.staff-role-executive .gst-upload-due-head,
  body.staff-role-executive .audit-dashboard-card-head,
  body.staff-role-executive .audit-dashboard-hero,
  body.staff-role-executive .audit-client-file-hero,
  body.staff-role-executive .gst-monthly-hero,
  body.staff-role-executive .gst-bank-hero,
  body.staff-role-executive .client-list-head,
  body.staff-role-executive .billing-head{
    max-width:100%!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:10px!important;
  }
  body.staff-role-executive .assignment-head-actions,
  body.staff-role-executive .audit-dashboard-filter,
  body.staff-role-executive .filter-bar,
  body.staff-role-executive .toolbar,
  body.staff-role-executive .list-toolbar{width:100%!important;max-width:100%!important}
  body.staff-role-executive .assignment-head-actions>.btn,
  body.staff-role-executive .assignment-head-actions>.report-authority-badge{width:100%!important;justify-content:center!important}
  body.staff-role-executive .assignment-report-tabs{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
  body.staff-role-executive .assignment-report-tabs>a{min-height:74px!important;padding:10px!important}
  body.staff-role-executive .assignment-report-tabs>a small{font-size:9px!important;line-height:1.25!important}
  body.staff-role-executive .staff-team-tally-kpis,
  body.staff-role-executive .audit-assigned-upload-kpis,
  body.staff-role-executive .gst-upload-due-kpis{display:flex!important;flex-wrap:wrap!important;gap:6px!important;width:100%!important}
  body.staff-role-executive .staff-team-tally-kpis>*,
  body.staff-role-executive .audit-assigned-upload-kpis>*,
  body.staff-role-executive .gst-upload-due-kpis>*{flex:1 1 120px!important;text-align:center!important}
  body.staff-role-executive .popup-card,
  body.staff-role-executive .modal-card,
  body.staff-role-executive [class*="modal-card"],
  body.staff-role-executive [class*="popup-card"]{max-width:calc(100vw - 14px)!important;max-height:calc(100dvh - 24px)!important;overflow:auto!important}
  body.staff-role-executive .btn,
  body.staff-role-executive button,
  body.staff-role-executive a.btn{touch-action:manipulation}
  body.staff-role-executive table.portal-mobile-card-table tbody td[data-mobile-action="1"] a.btn,
  body.staff-role-executive table.portal-mobile-card-table tbody td[data-mobile-action="1"] button{min-height:46px!important}

  .portal-mobile-dock-executive>a:nth-child(2) span{background:#e9f2ff;color:#0d65c1}
  .portal-mobile-dock-executive>a:nth-child(3) span{background:#fff0df;color:#b85f0c}
  .portal-mobile-dock-executive>button:nth-child(4) span{background:#eee9ff;color:#6549b5}
}

@media(max-width:520px){
  body.staff-role-executive .assignment-report-tabs{grid-template-columns:1fr!important}
  body.staff-role-executive .assignment-report-tabs>a{min-height:60px!important}
}

/* ============================================================
   v1.10.25 — Executive assignment controls + compact mobile work cards
   ============================================================ */
.assignment-priority-badge,.assignment-lock-badge{
  display:inline-flex;align-items:center;gap:4px;margin:5px 5px 0 0;padding:4px 7px;border-radius:999px;
  font-size:9.5px!important;font-weight:950;line-height:1.1;white-space:nowrap;letter-spacing:.02em;
}
.assignment-priority-badge.priority-normal{background:#eef4fa;color:#43617d}
.assignment-priority-badge.priority-high{background:#fff1d8;color:#935b00}
.assignment-priority-badge.priority-urgent{background:#ffe8e5;color:#a43125}
.assignment-lock-badge{background:#eeeaff;color:#5b45a3}
.assignment-control-grid{display:grid;grid-template-columns:minmax(160px,.7fr) minmax(260px,1.3fr);gap:12px;align-items:end;margin-top:10px}
.manager-lock-toggle{display:flex!important;align-items:flex-start!important;gap:10px!important;margin:0!important;padding:11px 12px!important;border:1px solid #d9d0fb!important;border-radius:13px!important;background:#f8f6ff!important;color:#403277!important;cursor:pointer}
.manager-lock-toggle[hidden]{display:none!important}
.manager-lock-toggle input{margin:2px 0 0!important;flex:0 0 auto}
.manager-lock-toggle span{display:block;min-width:0}.manager-lock-toggle strong{display:block;font-size:12px}.manager-lock-toggle small{display:block;margin-top:3px;color:#6f6591;font-size:10px;line-height:1.35}
.audit-assignment-badges{margin-top:4px}.audit-row-actions{display:flex;gap:6px;flex-wrap:wrap;align-items:center}.audit-row-actions .btn{white-space:nowrap}

.audit-assign-modal[hidden]{display:none!important}
.audit-assign-modal{position:fixed;inset:0;z-index:10050;display:flex;align-items:center;justify-content:center;padding:18px;background:rgba(13,34,55,.62);backdrop-filter:blur(4px)}
.audit-assign-dialog{width:min(620px,100%);max-height:92dvh;overflow:auto;border:1px solid #d8e5f0;border-radius:21px;background:#fff;box-shadow:0 28px 80px rgba(7,31,54,.3)}
.audit-assign-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:17px 18px;background:linear-gradient(135deg,#143f70,#2479ad);color:#fff}
.audit-assign-head h2{margin:4px 0 2px;color:#fff}.audit-assign-head p{margin:0;color:#dcecff;font-size:12px}.audit-assign-head .tag{background:rgba(255,255,255,.14);color:#fff}
.audit-assign-head>button{width:40px;height:40px;flex:0 0 40px;border:0;border-radius:11px;background:rgba(255,255,255,.14);color:#fff;font-size:24px;cursor:pointer}
.audit-assign-body{display:grid;gap:9px;padding:17px 18px}.audit-assign-body>label:not(.manager-lock-toggle){font-size:11px;font-weight:900;color:#4e6276}.audit-assign-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-top:5px}

@media(max-width:900px){
  body.staff-role-executive .assignment-page-head{padding:15px!important;border-radius:17px!important}
  body.staff-role-executive .assignment-page-head h1{font-size:27px!important;margin:5px 0!important}
  body.staff-role-executive .assignment-page-head p{font-size:12.5px!important;line-height:1.42!important}
  body.staff-role-executive .report-authority-badge{min-height:0!important;padding:9px 11px!important;border-radius:12px!important;text-align:left!important}
  body.staff-role-executive .report-authority-badge span,body.staff-role-executive .report-authority-badge b{font-size:11px!important}
  .assignment-control-grid{grid-template-columns:1fr!important}

  /* Assigned-to-others tables become compact two-column work cards instead of
     a long label/value stack. Client + action get the full card width. */
  .itr-my-work-due-card table.portal-mobile-card-table tbody tr,
  .period-assigned-team-card table.portal-mobile-card-table tbody tr,
  .assigned-intake-work-card table.portal-mobile-card-table tbody tr,
  .assignment-table-card table.portal-mobile-card-table tbody tr,
  .audit-dashboard-table.portal-mobile-card-table tbody tr{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:0 10px!important;
    padding:12px!important;border-radius:16px!important;
  }
  .itr-my-work-due-card table.portal-mobile-card-table tbody td,
  .period-assigned-team-card table.portal-mobile-card-table tbody td,
  .assigned-intake-work-card table.portal-mobile-card-table tbody td,
  .assignment-table-card table.portal-mobile-card-table tbody td,
  .audit-dashboard-table.portal-mobile-card-table tbody td{
    display:block!important;min-width:0!important;padding:8px 0!important;border-bottom:1px solid #edf2f6!important;
  }
  .itr-my-work-due-card table.portal-mobile-card-table tbody td::before,
  .period-assigned-team-card table.portal-mobile-card-table tbody td::before,
  .assigned-intake-work-card table.portal-mobile-card-table tbody td::before,
  .assignment-table-card table.portal-mobile-card-table tbody td::before,
  .audit-dashboard-table.portal-mobile-card-table tbody td::before{
    display:block!important;margin-bottom:4px!important;color:#788a9d!important;font-size:9px!important;font-weight:950!important;letter-spacing:.045em!important;
  }
  .itr-my-work-due-card table.portal-mobile-card-table tbody td strong,
  .period-assigned-team-card table.portal-mobile-card-table tbody td strong,
  .assigned-intake-work-card table.portal-mobile-card-table tbody td strong,
  .assignment-table-card table.portal-mobile-card-table tbody td strong,
  .audit-dashboard-table.portal-mobile-card-table tbody td strong{
    display:block!important;color:#173f67!important;font-size:12.5px!important;line-height:1.35!important;overflow-wrap:anywhere!important;
  }
  .itr-my-work-due-card table.portal-mobile-card-table tbody td small,
  .period-assigned-team-card table.portal-mobile-card-table tbody td small,
  .assigned-intake-work-card table.portal-mobile-card-table tbody td small,
  .assignment-table-card table.portal-mobile-card-table tbody td small,
  .audit-dashboard-table.portal-mobile-card-table tbody td small{
    display:block!important;margin-top:3px!important;color:#78899b!important;font-size:10px!important;line-height:1.3!important;overflow-wrap:anywhere!important;
  }
  .itr-my-work-due-card table.portal-mobile-card-table tbody td[data-label="Client"],
  .itr-my-work-due-card table.portal-mobile-card-table tbody td[data-label="Action"],
  .period-assigned-team-card table.portal-mobile-card-table tbody td[data-label="Client"],
  .period-assigned-team-card table.portal-mobile-card-table tbody td[data-label="Action"],
  .assigned-intake-work-card table.portal-mobile-card-table tbody td[data-label="Client"],
  .assigned-intake-work-card table.portal-mobile-card-table tbody td[data-label="Action"],
  .assignment-table-card table.portal-mobile-card-table tbody td[data-label="Client"],
  .assignment-table-card table.portal-mobile-card-table tbody td[data-label="Action"],
  .audit-dashboard-table.portal-mobile-card-table tbody td[data-label="Client"],
  .audit-dashboard-table.portal-mobile-card-table tbody td[data-label="Action"]{grid-column:1/-1!important}
  .itr-my-work-due-card table.portal-mobile-card-table tbody td[data-mobile-action="1"],
  .period-assigned-team-card table.portal-mobile-card-table tbody td[data-mobile-action="1"],
  .assigned-intake-work-card table.portal-mobile-card-table tbody td[data-mobile-action="1"],
  .assignment-table-card table.portal-mobile-card-table tbody td[data-mobile-action="1"],
  .audit-dashboard-table.portal-mobile-card-table tbody td[data-mobile-action="1"]{
    display:flex!important;grid-column:1/-1!important;gap:7px!important;flex-wrap:wrap!important;padding-top:10px!important;
  }
  .itr-my-work-due-card table.portal-mobile-card-table tbody td[data-mobile-action="1"]::before,
  .period-assigned-team-card table.portal-mobile-card-table tbody td[data-mobile-action="1"]::before,
  .assigned-intake-work-card table.portal-mobile-card-table tbody td[data-mobile-action="1"]::before,
  .assignment-table-card table.portal-mobile-card-table tbody td[data-mobile-action="1"]::before,
  .audit-dashboard-table.portal-mobile-card-table tbody td[data-mobile-action="1"]::before{display:none!important}
  .itr-my-work-due-card table.portal-mobile-card-table tbody td[data-mobile-action="1"] .btn,
  .period-assigned-team-card table.portal-mobile-card-table tbody td[data-mobile-action="1"] .btn,
  .assigned-intake-work-card table.portal-mobile-card-table tbody td[data-mobile-action="1"] .btn,
  .assignment-table-card table.portal-mobile-card-table tbody td[data-mobile-action="1"] .btn,
  .audit-dashboard-table.portal-mobile-card-table tbody td[data-mobile-action="1"] .btn{flex:1 1 130px!important;min-height:44px!important;justify-content:center!important}

  .itr-my-work-due-card,.period-assigned-team-card,.assigned-intake-work-card{padding:13px!important}
  .itr-my-work-due-card .staff-team-tally-head h2,.period-assigned-team-card .staff-team-tally-head h2,.assigned-intake-work-card .staff-team-tally-head h2{font-size:20px!important;margin:5px 0!important}
  .itr-my-work-due-card .staff-team-tally-head p,.period-assigned-team-card .staff-team-tally-head p,.assigned-intake-work-card .staff-team-tally-head p{font-size:11px!important;margin:0!important}

  .audit-assign-modal{align-items:flex-end;padding:7px 7px calc(76px + var(--mobile-safe-bottom))}
  .audit-assign-dialog{width:100%;max-height:calc(100dvh - 90px);border-radius:18px 18px 14px 14px}
  .audit-assign-head{padding:13px 14px}.audit-assign-body{padding:13px 14px}
  .audit-assign-actions{display:grid;grid-template-columns:1fr 1fr}.audit-assign-actions .btn{width:100%;min-height:48px}
  .audit-row-actions{display:grid!important;grid-template-columns:1fr 1fr!important;width:100%!important}.audit-row-actions .btn{width:100%!important;min-height:45px!important;justify-content:center!important}
}

@media(max-width:420px){
  .itr-my-work-due-card table.portal-mobile-card-table tbody tr,
  .period-assigned-team-card table.portal-mobile-card-table tbody tr,
  .assigned-intake-work-card table.portal-mobile-card-table tbody tr,
  .assignment-table-card table.portal-mobile-card-table tbody tr,
  .audit-dashboard-table.portal-mobile-card-table tbody tr{grid-template-columns:1fr!important}
  .itr-my-work-due-card table.portal-mobile-card-table tbody td,
  .period-assigned-team-card table.portal-mobile-card-table tbody td,
  .assigned-intake-work-card table.portal-mobile-card-table tbody td,
  .assignment-table-card table.portal-mobile-card-table tbody td,
  .audit-dashboard-table.portal-mobile-card-table tbody td{grid-column:1!important}
  .itr-my-work-due-card table.portal-mobile-card-table tbody td[data-label="Client"],
  .itr-my-work-due-card table.portal-mobile-card-table tbody td[data-label="Action"],
  .period-assigned-team-card table.portal-mobile-card-table tbody td[data-label="Client"],
  .period-assigned-team-card table.portal-mobile-card-table tbody td[data-label="Action"],
  .assigned-intake-work-card table.portal-mobile-card-table tbody td[data-label="Client"],
  .assigned-intake-work-card table.portal-mobile-card-table tbody td[data-label="Action"],
  .assignment-table-card table.portal-mobile-card-table tbody td[data-label="Client"],
  .assignment-table-card table.portal-mobile-card-table tbody td[data-label="Action"],
  .audit-dashboard-table.portal-mobile-card-table tbody td[data-label="Client"],
  .audit-dashboard-table.portal-mobile-card-table tbody td[data-label="Action"]{grid-column:1!important}
}

/* v1.10.25 — Executive mobile assignment controls */
.mobile-row-actions{display:flex;gap:7px;flex-wrap:wrap;align-items:center}.mobile-row-actions .btn{white-space:nowrap}
.intake-assign-inline{display:grid!important;grid-template-columns:minmax(145px,1.4fr) minmax(100px,.8fr) auto;gap:7px;align-items:center}
.intake-assign-inline select{min-width:0!important;width:100%!important}.intake-assign-inline .btn{min-height:40px!important;justify-content:center!important}
.intake-manager-lock{grid-column:1/-1;display:flex;align-items:center;gap:7px;padding:7px 9px;border:1px solid #d6e3ef;border-radius:10px;background:#f5f9fd;color:#294d6f;font-size:10px;font-weight:800}.intake-manager-lock[hidden]{display:none!important}.intake-manager-lock input{width:17px!important;height:17px!important;margin:0!important}
.live-work-manager-lock{display:flex!important;align-items:flex-start;gap:9px;padding:10px 11px;border:1px solid #dce5ee;border-radius:12px;background:#f8fbfe}.live-work-manager-lock[hidden]{display:none!important}.live-work-manager-lock input{width:18px!important;height:18px!important;margin:2px 0 0!important}.live-work-manager-lock span{display:grid;gap:2px}.live-work-manager-lock b{font-size:12px}.live-work-manager-lock small{font-size:10px;color:#6d8194;line-height:1.35}.live-work-lock-note{margin-top:9px;padding:9px 11px;border-radius:10px;background:#fff4db;color:#795210;font-size:11px;font-weight:800}

@media(max-width:900px){
  body.staff-role-executive .assignment-page-head .assignment-head-actions{width:100%!important;display:grid!important;grid-template-columns:1fr!important;gap:8px!important}
  body.staff-role-executive .assignment-page-head .assignment-head-actions>.btn{width:100%!important;min-height:45px!important;justify-content:center!important}
  body.staff-role-executive .itr-my-work-due-card .staff-team-tally-kpis,
  body.staff-role-executive .period-assigned-team-card .staff-team-tally-kpis,
  body.staff-role-executive .assigned-intake-work-card .staff-team-tally-kpis{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;width:100%!important;gap:7px!important}
  body.staff-role-executive .staff-team-tally-kpis span{min-width:0!important;text-align:center!important;padding:8px 7px!important;font-size:10px!important}
  .mobile-row-actions{display:grid!important;grid-template-columns:1fr 1fr!important;width:100%!important}.mobile-row-actions .btn{width:100%!important;min-height:43px!important;justify-content:center!important}
  .intake-assign-inline{grid-template-columns:1fr 115px!important;width:100%!important}.intake-assign-inline .btn{grid-column:1/-1;width:100%!important}
  .quick-reassign-modal{align-items:flex-end!important;padding:7px 7px calc(76px + var(--mobile-safe-bottom))!important}.quick-reassign-modal .assignment-modal{width:100%!important;max-height:calc(100dvh - 90px)!important;border-radius:18px 18px 14px 14px!important;overflow:auto!important}.quick-reassign-modal .assignment-modal-actions{display:grid!important;grid-template-columns:1fr 1fr!important}.quick-reassign-modal .assignment-modal-actions .btn{width:100%!important;min-height:48px!important}

  /* Keep the Executive Others Due report dense even on a narrow phone.
     Two-column cards are substantially easier to scan than a 7–9 row stack. */
  body.staff-role-executive .itr-my-work-due-card table.portal-mobile-card-table tbody tr,
  body.staff-role-executive .period-assigned-team-card table.portal-mobile-card-table tbody tr,
  body.staff-role-executive .assigned-intake-work-card table.portal-mobile-card-table tbody tr,
  body.staff-role-executive .assignment-table-card table.portal-mobile-card-table tbody tr,
  body.staff-role-executive .audit-dashboard-table.portal-mobile-card-table tbody tr{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:0 8px!important}
  body.staff-role-executive .itr-my-work-due-card table.portal-mobile-card-table tbody td,
  body.staff-role-executive .period-assigned-team-card table.portal-mobile-card-table tbody td,
  body.staff-role-executive .assigned-intake-work-card table.portal-mobile-card-table tbody td,
  body.staff-role-executive .assignment-table-card table.portal-mobile-card-table tbody td,
  body.staff-role-executive .audit-dashboard-table.portal-mobile-card-table tbody td{grid-column:auto!important;min-height:0!important;padding:7px 0!important}
  body.staff-role-executive .itr-my-work-due-card table.portal-mobile-card-table tbody td[data-label="Client"],
  body.staff-role-executive .itr-my-work-due-card table.portal-mobile-card-table tbody td[data-label="Action"],
  body.staff-role-executive .period-assigned-team-card table.portal-mobile-card-table tbody td[data-label="Client"],
  body.staff-role-executive .period-assigned-team-card table.portal-mobile-card-table tbody td[data-label="Action"],
  body.staff-role-executive .assigned-intake-work-card table.portal-mobile-card-table tbody td[data-label="Client"],
  body.staff-role-executive .assigned-intake-work-card table.portal-mobile-card-table tbody td[data-label="Action"],
  body.staff-role-executive .assignment-table-card table.portal-mobile-card-table tbody td[data-label="Client"],
  body.staff-role-executive .assignment-table-card table.portal-mobile-card-table tbody td[data-label="Action"],
  body.staff-role-executive .audit-dashboard-table.portal-mobile-card-table tbody td[data-label="Client"],
  body.staff-role-executive .audit-dashboard-table.portal-mobile-card-table tbody td[data-label="Action"],
  body.staff-role-executive table.portal-mobile-card-table tbody td[data-mobile-action="1"]{grid-column:1/-1!important}
  body.staff-role-executive .assignment-priority-badge,body.staff-role-executive .assignment-lock-badge{margin:4px 4px 0 0!important;font-size:8px!important}
}

@media(max-width:420px){
  /* Override the older one-column fallback for Executive work queues only. */
  body.staff-role-executive .itr-my-work-due-card table.portal-mobile-card-table tbody tr,
  body.staff-role-executive .period-assigned-team-card table.portal-mobile-card-table tbody tr,
  body.staff-role-executive .assigned-intake-work-card table.portal-mobile-card-table tbody tr,
  body.staff-role-executive .assignment-table-card table.portal-mobile-card-table tbody tr,
  body.staff-role-executive .audit-dashboard-table.portal-mobile-card-table tbody tr{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.staff-role-executive .itr-my-work-due-card table.portal-mobile-card-table tbody td,
  body.staff-role-executive .period-assigned-team-card table.portal-mobile-card-table tbody td,
  body.staff-role-executive .assigned-intake-work-card table.portal-mobile-card-table tbody td,
  body.staff-role-executive .assignment-table-card table.portal-mobile-card-table tbody td,
  body.staff-role-executive .audit-dashboard-table.portal-mobile-card-table tbody td{grid-column:auto!important}
  body.staff-role-executive .itr-my-work-due-card table.portal-mobile-card-table tbody td[data-label="Client"],
  body.staff-role-executive .itr-my-work-due-card table.portal-mobile-card-table tbody td[data-label="Action"],
  body.staff-role-executive .period-assigned-team-card table.portal-mobile-card-table tbody td[data-label="Client"],
  body.staff-role-executive .period-assigned-team-card table.portal-mobile-card-table tbody td[data-label="Action"],
  body.staff-role-executive .assigned-intake-work-card table.portal-mobile-card-table tbody td[data-label="Client"],
  body.staff-role-executive .assigned-intake-work-card table.portal-mobile-card-table tbody td[data-label="Action"],
  body.staff-role-executive .assignment-table-card table.portal-mobile-card-table tbody td[data-label="Client"],
  body.staff-role-executive .assignment-table-card table.portal-mobile-card-table tbody td[data-label="Action"],
  body.staff-role-executive .audit-dashboard-table.portal-mobile-card-table tbody td[data-label="Client"],
  body.staff-role-executive .audit-dashboard-table.portal-mobile-card-table tbody td[data-label="Action"],
  body.staff-role-executive table.portal-mobile-card-table tbody td[data-mobile-action="1"]{grid-column:1/-1!important}
}


/* ============================================================
   v1.11.56 — Staff / Audit mobile professional compact layout
   Mobile-only visual layer. No business logic is changed.
   ============================================================ */
@media(max-width:900px){
  /* The large browser-notification setup banner dominates iPhone screens.
     Notification settings remain available from the Staff menu/settings page. */
  body.portal-context-staff main.wrap>.staff-alert-switch{
    display:none!important;
  }

  body.portal-context-staff{
    background:#f3f7fb!important;
    padding-bottom:calc(72px + var(--mobile-safe-bottom))!important;
  }
  body.portal-context-staff main.wrap{
    padding-top:8px!important;
    padding-bottom:16px!important;
  }

  /* Compact premium Staff header. */
  body.portal-context-staff .portal-topbar .topbar-shell{
    min-height:58px!important;
    padding:6px 10px!important;
  }
  body.portal-context-staff .portal-brand .brand-mark{
    width:42px!important;height:42px!important;min-width:42px!important;
  }
  body.portal-context-staff .portal-brand .brand-copy strong{
    font-size:16px!important;line-height:1.08!important;color:#153f68!important;
  }
  body.portal-context-staff .portal-brand .brand-copy small{
    max-width:205px!important;font-size:10px!important;color:#718397!important;
  }
  body.portal-context-staff .nav-toggle{
    width:48px!important;min-width:48px!important;height:48px!important;min-height:48px!important;
    padding:9px!important;border-radius:14px!important;
  }
  body.portal-context-staff .nav-toggle b{display:none!important}

  /* Bottom dock: still easy to tap, but no longer hides a large part of the page. */
  body.portal-context-staff .portal-mobile-dock{
    min-height:58px!important;
    left:6px!important;right:6px!important;
    bottom:calc(5px + var(--mobile-safe-bottom))!important;
    padding:4px!important;gap:2px!important;border-radius:17px!important;
  }
  body.portal-context-staff .portal-mobile-dock>a,
  body.portal-context-staff .portal-mobile-dock>button{
    min-height:48px!important;padding:2px 1px!important;gap:2px!important;
  }
  body.portal-context-staff .portal-mobile-dock>a span,
  body.portal-context-staff .portal-mobile-dock>button span{
    min-width:27px!important;height:27px!important;border-radius:9px!important;font-size:9px!important;
  }
  body.portal-context-staff .portal-mobile-dock>a b,
  body.portal-context-staff .portal-mobile-dock>button b{
    font-size:9px!important;line-height:1!important;
  }

  /* AUDIT WORK HOME — reduce the large desktop hero to a compact mobile control bar. */
  body.portal-context-staff .audit-dashboard-v1934{gap:10px!important}
  body.portal-context-staff .audit-dashboard-hero,
  body.portal-context-staff .audit-work-hero{
    display:grid!important;grid-template-columns:1fr!important;gap:10px!important;
    padding:14px!important;border-radius:18px!important;min-height:0!important;
    box-shadow:0 10px 24px rgba(128,76,17,.12)!important;
  }
  body.portal-context-staff .audit-dashboard-hero .audit-work-kicker,
  body.portal-context-staff .audit-work-hero .audit-work-kicker{
    display:inline-flex!important;width:max-content!important;padding:5px 9px!important;
    border-radius:999px!important;font-size:9.5px!important;line-height:1!important;
  }
  body.portal-context-staff .audit-dashboard-hero h1,
  body.portal-context-staff .audit-work-hero h1{
    margin:3px 0 0!important;font-size:27px!important;line-height:1.05!important;
  }
  body.portal-context-staff .audit-dashboard-hero>div>p,
  body.portal-context-staff .audit-work-hero>div>p{
    display:none!important;
  }
  body.portal-context-staff .audit-dashboard-fy{
    width:100%!important;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(150px,46%)!important;
    align-items:center!important;gap:8px 10px!important;margin:0!important;padding:0!important;
  }
  body.portal-context-staff .audit-dashboard-fy label{
    margin:0!important;font-size:11px!important;font-weight:900!important;color:rgba(255,255,255,.92)!important;
  }
  body.portal-context-staff .audit-dashboard-fy .audit-fy-complete-note{display:none!important}
  body.portal-context-staff .audit-dashboard-fy select{
    grid-column:2!important;grid-row:1!important;width:100%!important;min-height:42px!important;
    margin:0!important;padding:8px 10px!important;border-radius:11px!important;font-size:15px!important;
  }

  /* LIVE AUDIT STATUS stays available while scrolling, but in a compact mobile rail. */
  body.portal-context-staff .audit-live-strip{
    position:sticky!important;top:62px!important;z-index:940!important;
    gap:6px!important;margin:0!important;padding:5px 0 6px!important;
    background:linear-gradient(180deg,#f3f7fb 80%,rgba(243,247,251,.72),rgba(243,247,251,0))!important;
  }
  body.portal-context-staff .audit-live-strip-head{
    display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;
    gap:8px!important;padding:10px 11px!important;border-radius:14px!important;
    box-shadow:0 8px 18px rgba(10,84,127,.12)!important;
  }
  body.portal-context-staff .audit-live-strip-head h2{
    margin:0!important;font-size:14px!important;line-height:1!important;letter-spacing:.01em!important;
  }
  body.portal-context-staff .audit-live-strip-head p{display:none!important}
  body.portal-context-staff .audit-live-strip-btn{
    min-height:34px!important;padding:7px 9px!important;border-radius:9px!important;font-size:9.5px!important;
  }
  body.portal-context-staff .audit-live-cards{
    display:flex!important;grid-template-columns:none!important;gap:7px!important;
    width:100%!important;overflow-x:auto!important;overflow-y:hidden!important;
    padding:0 1px 4px!important;scroll-snap-type:x proximity!important;-webkit-overflow-scrolling:touch!important;
    scrollbar-width:none!important;
  }
  body.portal-context-staff .audit-live-cards::-webkit-scrollbar{display:none!important}
  body.portal-context-staff .audit-live-card{
    flex:0 0 132px!important;min-width:132px!important;min-height:72px!important;
    padding:9px 10px!important;border-radius:13px!important;scroll-snap-align:start!important;
    box-shadow:0 5px 13px rgba(16,56,86,.06)!important;
  }
  body.portal-context-staff .audit-live-card:before{width:38px!important;height:38px!important;right:-12px!important;top:-12px!important}
  body.portal-context-staff .audit-live-card .value{font-size:24px!important;margin:0 0 5px!important}
  body.portal-context-staff .audit-live-card .label{font-size:10.5px!important;line-height:1.15!important}
  body.portal-context-staff .audit-live-card .note{display:none!important}

  /* Main Audit list becomes a clean card area below the live rail. */
  body.portal-context-staff .audit-dashboard-card{
    border-radius:17px!important;padding:12px!important;box-shadow:0 8px 20px rgba(16,56,86,.05)!important;
  }
  body.portal-context-staff .audit-dashboard-card-head{
    display:grid!important;grid-template-columns:1fr!important;gap:9px!important;margin:0 0 9px!important;padding:0 0 9px!important;
  }
  body.portal-context-staff .audit-dashboard-card-head h2{
    margin:0!important;font-size:20px!important;
  }
  body.portal-context-staff .audit-dashboard-card-head p{
    margin:4px 0 0!important;font-size:11px!important;line-height:1.4!important;
  }
  body.portal-context-staff .audit-dashboard-filter{
    display:grid!important;grid-template-columns:1fr!important;gap:7px!important;width:100%!important;
  }
  body.portal-context-staff .audit-dashboard-filter input,
  body.portal-context-staff .audit-dashboard-filter select,
  body.portal-context-staff .audit-dashboard-filter .btn{
    width:100%!important;min-height:43px!important;margin:0!important;
  }
  body.portal-context-staff .audit-dashboard-table-box{
    width:100%!important;max-width:100%!important;overflow:auto!important;-webkit-overflow-scrolling:touch!important;
  }

  /* Lower Audit helper blocks stay useful without giant empty areas. */
  body.portal-context-staff .audit-dashboard-bottom-grid{
    grid-template-columns:1fr!important;gap:10px!important;
  }
  body.portal-context-staff .audit-document-queue-box,
  body.portal-context-staff .audit-open-client-box{
    padding:13px!important;border-radius:16px!important;min-height:0!important;
  }
  body.portal-context-staff .audit-workflow-map{gap:5px!important}
  body.portal-context-staff .audit-workflow-map li{
    grid-template-columns:105px 1fr!important;gap:7px!important;padding:7px 8px!important;
  }

  /* Shared Audit Live bar on Audit Client File / Documents / Completed pages. */
  body.portal-context-staff .msa-audit-live-fixed{
    position:sticky!important;top:62px!important;z-index:940!important;
    margin:0 0 10px!important;padding:7px!important;border-radius:14px!important;
    box-shadow:0 8px 20px rgba(7,72,108,.14)!important;
  }
  body.portal-context-staff .msa-audit-live-fixed .audit-live-topline{
    flex-direction:row!important;align-items:center!important;justify-content:space-between!important;
    gap:6px!important;padding:1px 2px 6px!important;
  }
  body.portal-context-staff .msa-audit-live-fixed .audit-live-topline strong{font-size:11px!important}
  body.portal-context-staff .msa-audit-live-fixed .audit-live-topline small{display:none!important}
  body.portal-context-staff .msa-audit-live-fixed .audit-live-home{
    min-height:30px!important;padding:6px 8px!important;font-size:9px!important;border-radius:8px!important;
  }
  body.portal-context-staff .msa-audit-live-fixed .audit-live-jumps{
    display:flex!important;grid-template-columns:none!important;gap:6px!important;
    width:100%!important;overflow-x:auto!important;overflow-y:hidden!important;
    -webkit-overflow-scrolling:touch!important;scroll-snap-type:x proximity!important;scrollbar-width:none!important;
  }
  body.portal-context-staff .msa-audit-live-fixed .audit-live-jumps::-webkit-scrollbar{display:none!important}
  body.portal-context-staff .msa-audit-live-fixed .audit-live-jump{
    flex:0 0 128px!important;min-width:128px!important;gap:6px!important;padding:7px!important;
    border-radius:10px!important;scroll-snap-align:start!important;
  }
  body.portal-context-staff .msa-audit-live-fixed .audit-live-jump b{
    min-width:29px!important;width:29px!important;height:29px!important;border-radius:8px!important;font-size:13px!important;
  }
  body.portal-context-staff .msa-audit-live-fixed .audit-live-jump strong{
    font-size:9.5px!important;
  }
  body.portal-context-staff .msa-audit-live-fixed .audit-live-jump small{display:none!important}

  /* Audit modal/data-entry dialogs use almost the full mobile canvas. */
  body.portal-context-staff .audit-data-modal,
  body.portal-context-staff .audit-data-entry-modal,
  body.portal-context-staff .audit-assign-modal{
    padding:6px!important;align-items:flex-start!important;
  }
  body.portal-context-staff .audit-data-dialog,
  body.portal-context-staff .audit-data-entry-dialog,
  body.portal-context-staff .audit-assign-dialog{
    width:100%!important;max-width:none!important;max-height:calc(100dvh - 14px)!important;border-radius:15px!important;
  }
  body.portal-context-staff .audit-data-choice{grid-template-columns:1fr!important}
}

@media(max-width:420px){
  body.portal-context-staff main.wrap{padding-left:7px!important;padding-right:7px!important}
  body.portal-context-staff .portal-brand .brand-copy strong{font-size:15px!important}
  body.portal-context-staff .portal-brand .brand-copy small{display:block!important;max-width:170px!important;font-size:9px!important}
  body.portal-context-staff .audit-dashboard-hero,
  body.portal-context-staff .audit-work-hero{padding:12px!important;border-radius:16px!important}
  body.portal-context-staff .audit-dashboard-hero h1,
  body.portal-context-staff .audit-work-hero h1{font-size:25px!important}
  body.portal-context-staff .audit-dashboard-fy{grid-template-columns:1fr 145px!important}
  body.portal-context-staff .audit-live-card{flex-basis:122px!important;min-width:122px!important}
  body.portal-context-staff .msa-audit-live-fixed .audit-live-jump{flex-basis:120px!important;min-width:120px!important}
}


/* v1.11.57 — Audit Work mobile-first card redesign.
   Desktop remains unchanged. The phone no longer tries to convert the 6-column desktop table into label/value rows. */
.audit-mobile-list{display:none}
@media(max-width:900px){
  body.portal-context-staff .audit-dashboard-v1934{gap:9px!important}

  /* Compact hero: title + FY in one professional control card. */
  body.portal-context-staff .audit-dashboard-hero,
  body.portal-context-staff .audit-work-hero{
    grid-template-columns:minmax(0,1fr) 142px!important;
    align-items:end!important;
    gap:10px!important;
    padding:13px 14px!important;
    border-radius:17px!important;
  }
  body.portal-context-staff .audit-dashboard-hero .audit-work-kicker,
  body.portal-context-staff .audit-work-hero .audit-work-kicker{display:none!important}
  body.portal-context-staff .audit-dashboard-hero h1,
  body.portal-context-staff .audit-work-hero h1{font-size:24px!important;margin:0!important;white-space:nowrap}
  body.portal-context-staff .audit-dashboard-fy{
    display:block!important;width:142px!important;margin:0!important;padding:0!important;
  }
  body.portal-context-staff .audit-dashboard-fy label{display:block!important;margin:0 0 4px!important;font-size:9px!important}
  body.portal-context-staff .audit-dashboard-fy select{
    width:100%!important;min-height:40px!important;padding:7px 8px!important;margin:0!important;font-size:14px!important;border-radius:10px!important;
  }

  /* Live bar is useful but should not consume a full phone screen. */
  body.portal-context-staff .audit-live-strip{top:61px!important;gap:5px!important;padding-bottom:4px!important}
  body.portal-context-staff .audit-live-strip-head{padding:9px 10px!important;border-radius:13px!important}
  body.portal-context-staff .audit-live-strip-head h2{font-size:13px!important}
  body.portal-context-staff .audit-live-strip-btn{display:none!important}
  body.portal-context-staff .audit-live-card{
    flex:0 0 112px!important;min-width:112px!important;min-height:62px!important;padding:8px 9px!important;border-radius:12px!important;
  }
  body.portal-context-staff .audit-live-card .value{font-size:21px!important;margin-bottom:4px!important}
  body.portal-context-staff .audit-live-card .label{font-size:9.5px!important}

  /* Filters: full-width search + stage, then two equal small actions. */
  body.portal-context-staff .audit-dashboard-card{padding:10px!important;border-radius:16px!important}
  body.portal-context-staff .audit-dashboard-card-head{gap:8px!important;padding-bottom:8px!important}
  body.portal-context-staff .audit-dashboard-card-head h2{font-size:19px!important}
  body.portal-context-staff .audit-dashboard-card-head p{font-size:10.5px!important;line-height:1.35!important}
  body.portal-context-staff .audit-dashboard-filter{
    display:grid!important;grid-template-columns:1fr 1fr!important;gap:6px!important;
  }
  body.portal-context-staff .audit-dashboard-filter>input,
  body.portal-context-staff .audit-dashboard-filter>select{grid-column:1/-1!important;min-height:42px!important}
  body.portal-context-staff .audit-dashboard-filter>.btn{width:100%!important;min-height:41px!important;margin:0!important;font-size:12px!important}

  /* Do not show the desktop table/card conversion on phones. */
  body.portal-context-staff .audit-dashboard-table-box{display:none!important}
  body.portal-context-staff .audit-mobile-list{display:grid!important;gap:9px!important;width:100%!important}
  body.portal-context-staff .audit-mobile-empty{
    display:grid;gap:3px;padding:18px;border:1px dashed #cbdbe8;border-radius:14px;background:#f9fcfe;text-align:center;color:#597086;
  }
  body.portal-context-staff .audit-mobile-empty strong{color:#173f67;font-size:15px}
  body.portal-context-staff .audit-mobile-empty small{font-size:10.5px}

  body.portal-context-staff .audit-mobile-work-card{
    display:grid!important;gap:9px!important;width:100%!important;box-sizing:border-box!important;
    padding:12px!important;border:1px solid #dbe7f0!important;border-radius:16px!important;background:#fff!important;
    box-shadow:0 7px 18px rgba(18,58,92,.055)!important;overflow:hidden!important;
  }
  body.portal-context-staff .audit-mobile-work-card.is-complete{background:#fbfefc!important;border-color:#d5eadf!important}
  body.portal-context-staff .audit-mobile-work-head{display:grid!important;grid-template-columns:45px minmax(0,1fr)!important;gap:10px!important;align-items:start!important}
  body.portal-context-staff .audit-mobile-file{
    display:grid!important;place-items:center!important;min-height:42px!important;padding:6px!important;border-radius:12px!important;
    background:#eef5fb!important;color:#173f67!important;font-size:13px!important;font-weight:950!important;line-height:1!important;
  }
  body.portal-context-staff .audit-mobile-work-head h3{
    margin:1px 0 3px!important;color:#173f67!important;font-size:14px!important;line-height:1.3!important;overflow-wrap:anywhere!important;
  }
  body.portal-context-staff .audit-mobile-work-head p{margin:0!important;color:#798b9c!important;font-size:10px!important;line-height:1.25!important;overflow-wrap:anywhere!important}
  body.portal-context-staff .audit-mobile-chips{display:flex!important;flex-wrap:wrap!important;gap:5px!important}
  body.portal-context-staff .audit-mobile-chips .chip{
    display:inline-flex!important;align-items:center!important;min-height:27px!important;padding:5px 8px!important;border-radius:999px!important;
    background:#eef5fb!important;color:#315a7a!important;font-size:9.5px!important;font-weight:900!important;line-height:1.1!important;
  }
  body.portal-context-staff .audit-mobile-chips .chip.audit,
  body.portal-context-staff .audit-mobile-chips .chip.statutory{background:#fff4e5!important;color:#9b5d08!important}
  body.portal-context-staff .audit-mobile-chips .chip.status{background:#eef5ff!important;color:#1763a1!important}
  body.portal-context-staff .audit-mobile-chips .chip.status.done{background:#e8f7ef!important;color:#117044!important}
  body.portal-context-staff .audit-mobile-chips .chip.due-overdue{background:#fff0ee!important;color:#b52e25!important}
  body.portal-context-staff .audit-mobile-chips .chip.due-upcoming{background:#edf6ff!important;color:#1d5f94!important}
  body.portal-context-staff .audit-mobile-chips .chip.due-today{background:#fff5df!important;color:#9a6500!important}

  body.portal-context-staff .audit-mobile-work-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important}
  body.portal-context-staff .audit-mobile-info{
    min-width:0!important;padding:9px 10px!important;border:1px solid #e3ebf2!important;border-radius:12px!important;background:#f9fbfd!important;
  }
  body.portal-context-staff .audit-mobile-info span{display:block!important;margin-bottom:4px!important;color:#78899a!important;font-size:8.5px!important;font-weight:950!important;text-transform:uppercase!important;letter-spacing:.04em!important}
  body.portal-context-staff .audit-mobile-info strong{display:block!important;color:#173f67!important;font-size:11.5px!important;line-height:1.25!important;overflow-wrap:anywhere!important}
  body.portal-context-staff .audit-mobile-info small{display:block!important;margin-top:2px!important;color:#7a8b9c!important;font-size:9px!important;line-height:1.25!important;overflow-wrap:anywhere!important}

  body.portal-context-staff .audit-mobile-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important}
  body.portal-context-staff .audit-mobile-actions .btn,
  body.portal-context-staff .audit-mobile-actions button{
    width:100%!important;min-width:0!important;min-height:43px!important;margin:0!important;padding:8px 9px!important;border-radius:11px!important;
    display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;font-size:10.5px!important;line-height:1.2!important;white-space:normal!important;
  }
  body.portal-context-staff .audit-mobile-actions .audit-mobile-primary{grid-column:1/-1!important}
  body.portal-context-staff .audit-mobile-bill-note{grid-column:1/-1!important;padding:7px 9px!important;border-radius:9px!important;background:#f1f7f4!important;color:#27634d!important;font-size:9.5px!important;line-height:1.35!important}
  body.portal-context-staff .audit-mobile-bill-note.adjusted{background:#f4efff!important;color:#65479d!important}

  /* The flow map and generic client search are desktop helpers; hide them on mobile to keep the work screen focused. */
  body.portal-context-staff .audit-dashboard-bottom-grid{display:none!important}

  /* Keep the bottom dock from obscuring the last action card. */
  body.portal-context-staff main.wrap{padding-bottom:96px!important}
  body.portal-context-staff .portal-mobile-dock{min-height:58px!important;padding:4px!important;border-radius:16px!important}
  body.portal-context-staff .portal-mobile-dock>a,
  body.portal-context-staff .portal-mobile-dock>button{min-height:49px!important}
}

@media(max-width:390px){
  body.portal-context-staff .audit-dashboard-hero,
  body.portal-context-staff .audit-work-hero{grid-template-columns:minmax(0,1fr) 128px!important;padding:11px 12px!important}
  body.portal-context-staff .audit-dashboard-hero h1,
  body.portal-context-staff .audit-work-hero h1{font-size:22px!important}
  body.portal-context-staff .audit-dashboard-fy{width:128px!important}
  body.portal-context-staff .audit-dashboard-fy select{font-size:13px!important}
  body.portal-context-staff .audit-mobile-work-grid{grid-template-columns:1fr!important}
}

/* ============================================================
   v1.11.58 — Executive Staff complete mobile UX pass
   Applies to Executive-facing Dashboard / ITR / GST / Audit /
   Work Center / Clients / Bank / Billing pages.
   Layout-only. Desktop remains unchanged.
   ============================================================ */
.document-mobile-list{display:none}
@media(max-width:900px){
  body.staff-role-executive main.wrap{padding-left:8px!important;padding-right:8px!important;padding-top:7px!important;padding-bottom:94px!important}

  /* A consistent compact page header instead of desktop banners on a phone. */
  body.staff-role-executive .dashboard-head{
    display:grid!important;grid-template-columns:1fr!important;gap:7px!important;margin:0 0 10px!important;padding:4px 2px!important;min-height:0!important;
  }
  body.staff-role-executive .dashboard-head h1{margin:2px 0!important;font-size:24px!important;line-height:1.08!important}
  body.staff-role-executive .dashboard-head .tag{font-size:9px!important;padding:5px 8px!important}
  body.staff-role-executive .dashboard-head>div>p.muted{margin:3px 0 0!important;font-size:10.5px!important;line-height:1.38!important}
  body.staff-role-executive .report-authority-badge{display:none!important}

  body.staff-role-executive :is(
    .staff-modern-hero,.itr-hero,.pending-list-hero,.gst-work-hero,.gst-filing-hero,.gst-bank-hero,.gtp-hero,.gca-hero,
    .g1-hero,.g2a-hero,.g2b-hero,.g2bp-hero,.g2bc-hero,.operator-gst-hero,.tec-hero,.due-control-hero,
    .bank-center-hero,.review-hero,.csi-hero,.billingx-hero,.operation-pending-hero,.period-work-hero,.audit-completed-hero,
    .audit-client-file-hero,.audit-upload-hero,.audit-merge-hero,.gst-bank-client-hero,.operation-document-head,.operation-work-page-head
  ){
    max-width:100%!important;min-height:0!important;padding:12px!important;margin-bottom:10px!important;border-radius:16px!important;box-sizing:border-box!important;
  }
  body.staff-role-executive :is(
    .staff-modern-hero,.itr-hero,.pending-list-hero,.gst-work-hero,.gst-filing-hero,.gst-bank-hero,.gtp-hero,.gca-hero,
    .g1-hero,.g2a-hero,.g2b-hero,.g2bp-hero,.g2bc-hero,.operator-gst-hero,.tec-hero,.due-control-hero,
    .bank-center-hero,.review-hero,.csi-hero,.billingx-hero,.operation-pending-hero,.period-work-hero,.audit-completed-hero,
    .audit-client-file-hero,.audit-upload-hero,.audit-merge-hero,.gst-bank-client-hero,.operation-document-head,.operation-work-page-head
  ) h1{font-size:23px!important;line-height:1.08!important;margin:3px 0!important}

  /* KPI sections use phone-friendly 2-column tiles instead of desktop widths. */
  body.staff-role-executive :is(
    .document-work-summary-grid,.audit-completed-kpis,.itr-review-kpis,.itr-upload-kpis,.pending-mini-kpis,.gst-work-kpis,
    .gst-filing-kpis,.gtp-kpis,.g2bp-kpis,.tec-kpis,.operator-gst-kpis,.billingx-summary,.gst-bank-kpis,.g2bc-kpis
  ){
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;width:100%!important;margin:8px 0 10px!important;
  }
  body.staff-role-executive :is(
    .document-work-summary-grid,.audit-completed-kpis,.itr-review-kpis,.itr-upload-kpis,.pending-mini-kpis,.gst-work-kpis,
    .gst-filing-kpis,.gtp-kpis,.g2bp-kpis,.tec-kpis,.operator-gst-kpis,.billingx-summary,.gst-bank-kpis,.g2bc-kpis
  )>*{
    min-width:0!important;min-height:74px!important;padding:10px!important;border-radius:13px!important;box-sizing:border-box!important;
  }
  body.staff-role-executive .document-work-summary-grid>div span{font-size:9.5px!important;line-height:1.2!important}
  body.staff-role-executive .document-work-summary-grid>div strong{font-size:24px!important;line-height:1!important;margin-top:5px!important}

  /* Standard Executive filters are one-thumb forms. */
  body.staff-role-executive :is(
    .document-work-filter,.gtp-filter,.g2bp-filter,.gst-bank-filter,.pending-list-search,.g1-client-search,.g2a-search,.g2b-client-search,
    .operation-intake-search,.operation-upload-search-form,.gst-tally-work-filter,.audit-completed-filter
  ){
    display:grid!important;grid-template-columns:1fr!important;gap:7px!important;width:100%!important;max-width:none!important;
  }
  body.staff-role-executive :is(
    .document-work-filter,.gtp-filter,.g2bp-filter,.gst-bank-filter,.pending-list-search,.g1-client-search,.g2a-search,.g2b-client-search,
    .operation-intake-search,.operation-upload-search-form,.gst-tally-work-filter,.audit-completed-filter
  )>*{width:100%!important;max-width:none!important;margin:0!important;min-height:43px!important}

  /* Wide Executive registers remain compact and swipe horizontally. */
  body.staff-role-executive .portal-mobile-scroll-shell{border:1px solid #dfe9f1;border-radius:14px;background:#fff;box-shadow:0 5px 16px rgba(20,59,91,.04)}
  body.staff-role-executive table.portal-mobile-scroll-table{min-width:760px!important;margin:0!important}
  body.staff-role-executive table.portal-mobile-scroll-table thead th{position:sticky;top:0;z-index:2;background:#f2f7fb!important;font-size:10px!important;white-space:nowrap!important}
  body.staff-role-executive table.portal-mobile-scroll-table td{font-size:10.5px!important;line-height:1.3!important}

  /* Generic cards and forms should not waste screen width. */
  body.staff-role-executive :is(.card,.panel,.box){padding:11px!important}
  body.staff-role-executive .form-grid{grid-template-columns:1fr!important;gap:8px!important}
  body.staff-role-executive .form-grid .full{grid-column:1!important}

  /* CLIENT MASTER on phone: full register, no desktop side panel. */
  body.staff-role-executive .client-desk-app{min-width:0!important;overflow:visible!important}
  body.staff-role-executive .client-desk-titlebar{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important;padding:10px!important}
  body.staff-role-executive .client-desk-brand{min-width:0!important}
  body.staff-role-executive .client-desk-brand h1{font-size:20px!important}
  body.staff-role-executive .client-desk-global-search{grid-column:1/-1!important;grid-row:2!important;width:100%!important}
  body.staff-role-executive .client-desk-session{display:none!important}
  body.staff-role-executive .desk-live-gst{display:flex!important;gap:7px!important;overflow-x:auto!important;padding:7px!important;scrollbar-width:none!important}
  body.staff-role-executive .desk-live-gst::-webkit-scrollbar{display:none!important}
  body.staff-role-executive .desk-live-gst-label{flex:0 0 130px!important;min-width:130px!important}
  body.staff-role-executive .desk-live-panel{display:contents!important}
  body.staff-role-executive .desk-gst-kpi{flex:0 0 132px!important;min-width:132px!important;padding:9px!important}
  body.staff-role-executive .client-desk-toolbar{display:flex!important;overflow-x:auto!important;gap:6px!important;padding:7px!important;scrollbar-width:none!important}
  body.staff-role-executive .client-desk-toolbar>*{flex:0 0 auto!important}
  body.staff-role-executive .client-desk-sidebar{display:none!important}
  body.staff-role-executive .client-desk-body{display:block!important;min-width:0!important}
  body.staff-role-executive .client-desk-grid-area{width:100%!important;min-width:0!important}
  body.staff-role-executive .client-desk-table-wrap{overflow:auto!important;-webkit-overflow-scrolling:touch!important}
  body.staff-role-executive .client-desk-table{min-width:900px!important}
  body.staff-role-executive .client-desk-bottom-bar{display:none!important}

  /* AUDIT DOCUMENT QUEUE — dedicated work cards instead of a 10-column pseudo-card. */
  body.staff-role-executive .document-work-summary-grid{margin-top:4px!important}
  body.staff-role-executive .document-work-filter{padding:0!important}
  body.staff-role-executive .hierarchy-document-bar{
    display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important;padding:10px!important;border-radius:14px!important;
  }
  body.staff-role-executive .hierarchy-document-bar>div{grid-column:1/-1!important;min-width:0!important}
  body.staff-role-executive .hierarchy-document-bar label{font-size:10px!important;margin-bottom:5px!important}
  body.staff-role-executive .hierarchy-document-bar select{width:100%!important;min-height:43px!important;margin:0!important}
  body.staff-role-executive .hierarchy-document-bar .btn{width:100%!important;min-height:42px!important;margin:0!important;font-size:11px!important;white-space:normal!important}
  body.staff-role-executive .work-register-meta{display:flex!important;justify-content:space-between!important;gap:8px!important;align-items:center!important;margin:9px 0!important;font-size:10px!important}
  body.staff-role-executive .work-register-table-wrap{display:none!important}
  body.staff-role-executive .document-mobile-list{display:grid!important;gap:9px!important;width:100%!important}
  body.staff-role-executive .document-mobile-empty{display:grid!important;gap:4px!important;padding:18px!important;border:1px dashed #c9d9e6!important;border-radius:14px!important;background:#f9fcfe!important;text-align:center!important;color:#657b90!important}
  body.staff-role-executive .document-mobile-card{display:grid!important;gap:9px!important;padding:11px!important;border:1px solid #dbe7f0!important;border-radius:15px!important;background:#fff!important;box-shadow:0 6px 17px rgba(20,59,91,.05)!important;overflow:hidden!important}
  body.staff-role-executive .document-mobile-card.is-complete{border-color:#cfe6da!important;background:#fbfefc!important}
  body.staff-role-executive .document-mobile-head{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:8px!important}
  body.staff-role-executive .document-mobile-head>div{display:flex!important;align-items:center!important;gap:7px!important;min-width:0!important}
  body.staff-role-executive .document-mobile-file{display:inline-grid!important;place-items:center!important;min-width:38px!important;height:36px!important;padding:0 7px!important;border-radius:10px!important;background:#edf5fb!important;color:#164a70!important;font-weight:950!important;font-size:12px!important}
  body.staff-role-executive .document-mobile-id{padding:6px 8px!important;border-radius:9px!important;background:#fff3e5!important;color:#9a5d08!important;font-size:9px!important;font-weight:900!important;overflow-wrap:anywhere!important}
  body.staff-role-executive .document-mobile-check{display:flex!important;align-items:center!important;gap:5px!important;color:#60778c!important;font-size:9px!important;font-weight:900!important}
  body.staff-role-executive .document-mobile-check input{width:22px!important;height:22px!important;margin:0!important}
  body.staff-role-executive .document-mobile-client strong{display:block!important;color:#173f67!important;font-size:14px!important;line-height:1.25!important;overflow-wrap:anywhere!important}
  body.staff-role-executive .document-mobile-client small{display:block!important;margin-top:3px!important;color:#7c8d9e!important;font-size:9.5px!important;line-height:1.3!important;overflow-wrap:anywhere!important}
  body.staff-role-executive .document-mobile-chips{display:flex!important;flex-wrap:wrap!important;gap:5px!important}
  body.staff-role-executive .document-mobile-chips span{display:inline-flex!important;align-items:center!important;min-height:26px!important;padding:5px 8px!important;border-radius:999px!important;background:#eaf7f0!important;color:#15704b!important;font-size:9px!important;font-weight:900!important}
  body.staff-role-executive .document-mobile-chips span.pending{background:#fff4e5!important;color:#9e620b!important}
  body.staff-role-executive .document-mobile-chips span.done{background:#e8f7ef!important;color:#15704b!important}
  body.staff-role-executive .document-mobile-progress{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important;align-items:center!important}
  body.staff-role-executive .document-mobile-progress>div{height:7px!important;border-radius:999px!important;background:#edf2f6!important;overflow:hidden!important}
  body.staff-role-executive .document-mobile-progress>div>span{display:block!important;height:100%!important;background:#b87911!important;border-radius:999px!important}
  body.staff-role-executive .document-mobile-progress strong{font-size:11px!important;color:#173f67!important}
  body.staff-role-executive .document-mobile-meta{display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important}
  body.staff-role-executive .document-mobile-meta>div{min-width:0!important;padding:8px 9px!important;border:1px solid #e3ebf2!important;border-radius:11px!important;background:#f9fbfd!important}
  body.staff-role-executive .document-mobile-meta span{display:block!important;margin-bottom:3px!important;color:#7a8b9b!important;font-size:8px!important;font-weight:950!important;text-transform:uppercase!important}
  body.staff-role-executive .document-mobile-meta strong{display:block!important;color:#173f67!important;font-size:10.5px!important;line-height:1.25!important;overflow-wrap:anywhere!important}
  body.staff-role-executive .document-mobile-meta small{display:block!important;margin-top:2px!important;color:#7c8d9e!important;font-size:8.5px!important}
  body.staff-role-executive .document-mobile-actions{display:grid!important;grid-template-columns:1fr!important}
  body.staff-role-executive .document-mobile-actions .btn{width:100%!important;min-height:42px!important;margin:0!important;padding:8px 10px!important;border-radius:11px!important;justify-content:center!important;font-size:10.5px!important;white-space:normal!important}
  body.staff-role-executive .document-mobile-muted{padding:9px!important;border-radius:10px!important;background:#f3f6f8!important;color:#708193!important;text-align:center!important;font-size:10px!important}

  /* Audit Document Queue intro should describe the job without taking half the phone. */
  body.staff-role-executive .dashboard-head:has(+ .document-work-summary-grid)>div>p.muted{
    display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important;
  }

  /* Executive mobile bottom dock is utility navigation, not content. */
  body.staff-role-executive .portal-mobile-dock{box-shadow:0 10px 28px rgba(21,54,87,.17)!important}
}

@media(max-width:420px){
  body.staff-role-executive :is(
    .document-work-summary-grid,.audit-completed-kpis,.itr-review-kpis,.itr-upload-kpis,.pending-mini-kpis,.gst-work-kpis,
    .gst-filing-kpis,.gtp-kpis,.g2bp-kpis,.tec-kpis,.operator-gst-kpis,.billingx-summary,.gst-bank-kpis,.g2bc-kpis
  ){grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.staff-role-executive .document-mobile-meta{grid-template-columns:1fr!important}
  body.staff-role-executive .hierarchy-document-bar{grid-template-columns:1fr!important}
  body.staff-role-executive .hierarchy-document-bar>div{grid-column:1!important}
}

\n\n/* ============================================================\n   v1.11.59 — Billing & Receipt Center mobile completion\n   ============================================================ */\n@media(max-width:900px){\n  body.staff-role-executive :is(.billing-head,.billing-hero,.billingx-hero){\n    padding:12px!important;margin:0 0 10px!important;border-radius:16px!important;min-height:0!important;\n  }\n  body.staff-role-executive :is(.billing-head,.billing-hero,.billingx-hero) h1{font-size:23px!important;line-height:1.08!important;margin:3px 0!important}\n  body.staff-role-executive :is(.billing-head,.billing-hero,.billingx-hero) p{font-size:11px!important;line-height:1.4!important;margin:5px 0!important}\n  body.staff-role-executive .billingx-summary{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}\n  body.staff-role-executive .billingx-summary>*{min-height:92px!important;padding:11px!important}\n\n  /* Billing tabs: compact two-column controls instead of oversized pills. */\n  body.staff-role-executive :is(.billing-tabs,.billing-nav,.billingx-tabs,.subnav,.page-tabs){\n    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;width:100%!important;margin:8px 0 10px!important;\n  }\n  body.staff-role-executive :is(.billing-tabs,.billing-nav,.billingx-tabs,.subnav,.page-tabs)>a{\n    width:100%!important;min-width:0!important;min-height:42px!important;margin:0!important;padding:8px 9px!important;border-radius:12px!important;display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;font-size:11px!important;line-height:1.2!important;white-space:normal!important;\n  }\n\n  /* Search Center: every field gets usable width. Prevent the text input collapsing to one character. */\n  body.staff-role-executive :is(.billing-search,.billing-search-form,.search-form,.filter-form,.billingx-filter,.billing-filters) form,\n  body.staff-role-executive form:has(input[placeholder*="Invoice"]),\n  body.staff-role-executive form:has(input[placeholder*="Receipt"]){\n    display:grid!important;grid-template-columns:1fr!important;gap:8px!important;width:100%!important;max-width:100%!important;\n  }\n  body.staff-role-executive :is(.billing-search,.billing-search-form,.search-form,.filter-form,.billingx-filter,.billing-filters) :is(input,select,button,.btn),\n  body.staff-role-executive form:has(input[placeholder*="Invoice"]) :is(input,select,button,.btn),\n  body.staff-role-executive form:has(input[placeholder*="Receipt"]) :is(input,select,button,.btn){\n    width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important;\n  }\n\n  /* Invoice/receipt lists are true mobile cards. No sideways clipped register and no giant blank row. */\n  body.staff-role-executive table.portal-mobile-card-table{min-width:0!important;table-layout:auto!important}\n  body.staff-role-executive table.portal-mobile-card-table tbody{display:grid!important;gap:9px!important}\n  body.staff-role-executive table.portal-mobile-card-table tbody tr{height:auto!important;min-height:0!important;max-height:none!important;padding:10px 11px!important;overflow:visible!important}\n  body.staff-role-executive table.portal-mobile-card-table tbody td{height:auto!important;min-height:0!important;padding:7px 0!important;font-size:11px!important;line-height:1.3!important}\n  body.staff-role-executive table.portal-mobile-card-table tbody td::before{font-size:8.5px!important}\n  body.staff-role-executive table.portal-mobile-card-table tbody td :is(.btn,button,a.btn){min-height:40px!important;padding:7px 9px!important;font-size:10px!important}\n  body.staff-role-executive .portal-mobile-scroll-shell:has(table.portal-mobile-card-table){overflow:visible!important}\n\n  /* Billing cards/search panels should not consume desktop-sized vertical space. */\n  body.staff-role-executive :is(.billing-card,.billing-panel,.search-card,.invoice-list-card,.receipt-list-card){min-height:0!important;height:auto!important;padding:12px!important;border-radius:16px!important}\n}\n@media(max-width:420px){\n  body.staff-role-executive :is(.billing-tabs,.billing-nav,.billingx-tabs,.subnav,.page-tabs){grid-template-columns:repeat(2,minmax(0,1fr))!important}\n  body.staff-role-executive table.portal-mobile-card-table tbody td{grid-template-columns:minmax(82px,34%) minmax(0,1fr)!important}\n}\n

/* ============================================================
   v1.11.60 — Billing mobile full-page repair
   Fixes empty-looking invoice cards, oversized rows and clipped values.
   ============================================================ */
@media(max-width:900px){
  body.staff-role-executive table.billing-mobile-register{
    display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;
    table-layout:auto!important;border:0!important;background:transparent!important;overflow:visible!important;
  }
  body.staff-role-executive table.billing-mobile-register thead{display:none!important}
  body.staff-role-executive table.billing-mobile-register tbody{
    display:grid!important;grid-template-columns:1fr!important;gap:10px!important;width:100%!important;
  }
  body.staff-role-executive table.billing-mobile-register tbody tr{
    display:grid!important;grid-template-columns:1fr!important;gap:0!important;
    width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;
    padding:10px 12px!important;margin:0!important;overflow:visible!important;
    border:1px solid #dbe7f0!important;border-radius:15px!important;background:#fff!important;
  }
  body.staff-role-executive table.billing-mobile-register tbody td{
    display:grid!important;grid-template-columns:112px minmax(0,1fr)!important;gap:9px!important;align-items:start!important;
    width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;
    margin:0!important;padding:8px 0!important;overflow:visible!important;white-space:normal!important;
    border:0!important;border-bottom:1px solid #edf2f6!important;
    color:#173f67!important;font-size:12px!important;line-height:1.35!important;text-align:left!important;
  }
  body.staff-role-executive table.billing-mobile-register tbody td:last-child{border-bottom:0!important}
  body.staff-role-executive table.billing-mobile-register tbody td:empty{display:none!important}
  body.staff-role-executive table.billing-mobile-register tbody td::before{
    display:block!important;position:static!important;content:attr(data-label)!important;
    color:#74869a!important;font-size:9px!important;font-weight:900!important;line-height:1.3!important;
    text-transform:uppercase!important;letter-spacing:.04em!important;
  }
  body.staff-role-executive table.billing-mobile-register tbody td>*{
    position:static!important;inset:auto!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;
    transform:none!important;float:none!important;max-width:100%!important;min-width:0!important;
    color:inherit;white-space:normal!important;overflow-wrap:anywhere!important;
  }
  body.staff-role-executive table.billing-mobile-register tbody td a:not(.btn){color:#164d7f!important;text-decoration:none!important}
  body.staff-role-executive table.billing-mobile-register tbody td :is(.btn,button,input[type="submit"]){
    width:100%!important;min-height:40px!important;margin:2px 0!important;padding:8px 10px!important;
    border-radius:10px!important;font-size:10.5px!important;line-height:1.2!important;white-space:normal!important;
  }
  body.staff-role-executive table.billing-mobile-register tbody td[data-mobile-action="1"]{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;padding-top:9px!important;
  }
  body.staff-role-executive table.billing-mobile-register tbody td[data-mobile-action="1"]::before{display:none!important}

  /* Entire Billing Center: compact, single-column controls with no clipped desktop widths. */
  body.staff-role-executive :is(.billingx-wrap,.billing-wrap,.billing-page,.billing-center,.billing-main,.billing-content){
    width:100%!important;max-width:100%!important;min-width:0!important;overflow:visible!important;
  }
  body.staff-role-executive :is(.billingx-wrap,.billing-wrap,.billing-page,.billing-center,.billing-main,.billing-content) :is(.card,.panel,.box,section){
    max-width:100%!important;min-width:0!important;height:auto!important;min-height:0!important;
  }
  body.staff-role-executive :is(.billing-search,.billing-search-form,.billing-filters,.billingx-filter,.search-card) :is(input,select,button,.btn){
    width:100%!important;min-width:0!important;max-width:100%!important;min-height:44px!important;box-sizing:border-box!important;
  }
  body.staff-role-executive :is(.invoice-list-card,.receipt-list-card,.billing-panel,.billing-card) .portal-mobile-scroll-shell{
    width:100%!important;max-width:100%!important;overflow:visible!important;border:0!important;box-shadow:none!important;
  }
}
@media(max-width:420px){
  body.staff-role-executive table.billing-mobile-register tbody td{grid-template-columns:96px minmax(0,1fr)!important}
  body.staff-role-executive table.billing-mobile-register tbody td[data-mobile-action="1"]{grid-template-columns:1fr!important}
}
\n\n/* ============================================================\n   v1.11.61 — Billing mobile final width/wrapping correction\n   One-column label/value rows; no horizontal clipping on iPhone.\n   ============================================================ */\n@media(max-width:900px){\n  body.staff-role-executive table.billing-mobile-register,\n  body.staff-role-executive table.billing-mobile-register tbody,\n  body.staff-role-executive table.billing-mobile-register tbody tr,\n  body.staff-role-executive table.billing-mobile-register tbody td{\n    box-sizing:border-box!important;\n    width:100%!important;max-width:100%!important;min-width:0!important;\n  }\n  body.staff-role-executive table.billing-mobile-register tbody tr{\n    overflow:hidden!important;padding:8px 12px 16px!important;\n  }\n  body.staff-role-executive table.billing-mobile-register tbody td{\n    display:block!important;grid-template-columns:none!important;\n    overflow:hidden!important;padding:9px 0!important;\n    white-space:normal!important;word-break:normal!important;overflow-wrap:anywhere!important;\n  }\n  body.staff-role-executive table.billing-mobile-register tbody td::before{\n    display:block!important;width:100%!important;margin:0 0 5px!important;\n    font-size:9px!important;line-height:1.2!important;\n  }\n  body.staff-role-executive table.billing-mobile-register tbody td>*{\n    display:block!important;box-sizing:border-box!important;\n    width:100%!important;max-width:100%!important;min-width:0!important;\n    margin-left:0!important;margin-right:0!important;padding-left:0!important;\n    white-space:normal!important;word-break:normal!important;overflow-wrap:anywhere!important;\n    text-overflow:clip!important;\n  }\n  body.staff-role-executive table.billing-mobile-register tbody td :is(strong,b,span,small,a,div,p){\n    max-width:100%!important;min-width:0!important;white-space:normal!important;overflow-wrap:anywhere!important;\n  }\n  body.staff-role-executive table.billing-mobile-register tbody td[data-mobile-action=\"1\"]{\n    display:grid!important;grid-template-columns:1fr!important;gap:7px!important;overflow:visible!important;\n    padding:10px 0 4px!important;\n  }\n  body.staff-role-executive table.billing-mobile-register tbody td[data-mobile-action=\"1\"]>*{\n    width:100%!important;max-width:100%!important;padding-left:10px!important;padding-right:10px!important;\n  }\n  body.staff-role-executive table.billing-mobile-register tbody td:nth-last-child(1){margin-bottom:4px!important}\n  body.staff-role-executive :is(.invoice-list-card,.receipt-list-card,.billing-panel,.billing-card){\n    width:100%!important;max-width:100%!important;min-width:0!important;overflow:hidden!important;\n  }\n  body.staff-role-executive :is(.invoice-list-card,.receipt-list-card,.billing-panel,.billing-card) .portal-mobile-scroll-shell{\n    width:100%!important;max-width:100%!important;min-width:0!important;overflow:visible!important;\n  }\n}\n