/* IT-BALON.CZ Podpora v673 – true final responsive/UI layer.
   This stylesheet is loaded after every legacy stylesheet. */

/* ---------- Universal readability / controls ---------- */
body.unified-support-layout :is(a,button,input[type="submit"]).btn.blue,
body.unified-support-layout :is(a,button).primary,
body.unified-support-layout .itb-v555-btn.primary,
body.unified-support-layout .itb-btn-v338.primary,
body.unified-support-layout .itb-v535-action-table a,
body.unified-support-layout .invoice-list-hero-actions-v741 .btn.blue,
body.unified-support-layout .invoice-filter-actions .btn.blue,
body.unified-support-layout .contact-message-filter-actions-v584 .btn.blue {
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}
body.unified-support-layout :is(a,button,input[type="submit"]).btn.blue *,
body.unified-support-layout :is(a,button).primary *,
body.unified-support-layout .itb-v555-btn.primary *,
body.unified-support-layout .itb-btn-v338.primary *,
body.unified-support-layout .itb-v535-action-table a * {
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}

/* ---------- Admin invoice list ---------- */
body.unified-support-layout .invoices-list-v741 .invoice-list-hero-actions-v741{
  display:flex!important;justify-content:flex-end!important;align-items:center!important;gap:9px!important;flex-wrap:wrap!important;
}
body.unified-support-layout .invoices-list-v741 .invoice-list-hero-actions-v741 .btn{
  min-height:42px!important;padding:0 14px!important;border-radius:12px!important;font-weight:900!important;
}
body.unified-support-layout .invoices-list-v741 .invoice-list-kpis-v741{
  display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important;
}
body.unified-support-layout .invoices-list-v741 .invoice-list-kpis-v741 article{
  display:grid!important;align-content:center!important;justify-items:center!important;text-align:center!important;min-width:0!important;min-height:118px!important;
}
body.unified-support-layout .invoices-list-v741 .invoice-history-card-v741 .table-wrap,
body.unified-support-layout .invoices-list-v741 .invoice-history-card-v741 .invoice-table-wrap{
  overflow:auto!important;border:1px solid #d7e5f5!important;border-radius:18px!important;background:#fff!important;
  box-shadow:0 12px 28px rgba(20,57,99,.055)!important;
}
body.unified-support-layout .invoices-list-v741 table{
  border-collapse:separate!important;border-spacing:0!important;
}
body.unified-support-layout .invoices-list-v741 table th{
  position:sticky!important;top:0!important;z-index:2!important;background:#eef5fd!important;color:#526b89!important;
  font-size:10px!important;font-weight:950!important;letter-spacing:.05em!important;text-transform:uppercase!important;
}

/* ---------- Admin invoice detail ---------- */
body.unified-support-layout .itb-v555-page-invoice .invoice-detail-grid-v574{
  display:grid!important;grid-template-columns:minmax(0,1fr) minmax(310px,350px)!important;gap:18px!important;align-items:start!important;
}
body.unified-support-layout .itb-v555-page-invoice :is(.invoice-document-column-v574,.invoice-summary-column-v574){min-width:0!important;}
body.unified-support-layout .itb-v555-page-invoice .invoice-preview-head-v560{
  display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px!important;flex-wrap:wrap!important;
}
body.unified-support-layout .itb-v555-page-invoice .invoice-preview-actions-v574{
  display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;flex-wrap:wrap!important;
}
body.unified-support-layout .itb-v555-page-invoice .invoice-preview-modern-v560{
  width:100%!important;max-width:100%!important;overflow:auto!important;padding:16px!important;border:1px solid #d4e3f4!important;
  border-radius:18px!important;background:#eaf2fb!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.55)!important;
}
body.unified-support-layout .itb-v555-page-invoice .invoice-summary-column-v574{
  display:grid!important;gap:14px!important;position:sticky!important;top:14px!important;
}
body.unified-support-layout .itb-v555-page-invoice .invoice-summary-column-v574>.itb-v555-card{
  margin:0!important;border-radius:18px!important;border-color:#d7e5f5!important;box-shadow:0 10px 24px rgba(20,57,99,.05)!important;
}
body.unified-support-layout .itb-v555-page-invoice .itb-v555-info{
  display:grid!important;grid-template-columns:minmax(105px,.75fr) minmax(0,1.25fr)!important;gap:10px!important;align-items:start!important;
  padding:10px 0!important;border-bottom:1px solid #e3edf8!important;
}
body.unified-support-layout .itb-v555-page-invoice .itb-v555-info:last-child{border-bottom:0!important;}
body.unified-support-layout .itb-v555-page-invoice .itb-v555-info span{min-width:0!important;overflow-wrap:anywhere!important;}
body.unified-support-layout .itb-v555-page-invoice .invoice-email-log-table-v560{width:100%!important;border-collapse:collapse!important;}
body.unified-support-layout .itb-v555-page-invoice .invoice-email-log-table-v560 th,
body.unified-support-layout .itb-v555-page-invoice .invoice-email-log-table-v560 td{
  padding:9px 8px!important;border-bottom:1px solid #e3edf8!important;text-align:left!important;vertical-align:top!important;
}

/* ---------- Admin ticket overview ---------- */
body.unified-support-layout .itb-index-v338 .itb-table-wrap-v338{
  max-width:100%!important;overflow:auto!important;border:1px solid #d5e4f4!important;border-radius:18px!important;background:#fff!important;
  box-shadow:0 12px 30px rgba(20,57,99,.06)!important;scrollbar-width:thin!important;scrollbar-color:#9db9dc #edf4fc!important;
}
body.unified-support-layout .itb-index-v338 table.itb-admin-ticket-table-v656{
  width:100%!important;min-width:1160px!important;table-layout:fixed!important;border-collapse:separate!important;border-spacing:0!important;
}
body.unified-support-layout .itb-index-v338 table.itb-admin-ticket-table-v656 thead th{
  position:sticky!important;top:0!important;z-index:3!important;padding:13px 10px!important;background:#eef5fd!important;color:#526b89!important;
  border-bottom:1px solid #d4e3f4!important;font-size:10px!important;font-weight:950!important;letter-spacing:.05em!important;text-transform:uppercase!important;
}
body.unified-support-layout .itb-index-v338 table.itb-admin-ticket-table-v656 tbody td{
  padding:13px 10px!important;border-bottom:1px solid #e6eef8!important;vertical-align:middle!important;background:#fff!important;color:#263f60!important;
  font-size:12px!important;line-height:1.4!important;
}
body.unified-support-layout .itb-index-v338 table.itb-admin-ticket-table-v656 tbody tr:hover td{background:#f8fbff!important;}
body.unified-support-layout .itb-index-v338 table.itb-admin-ticket-table-v656 th:first-child,
body.unified-support-layout .itb-index-v338 table.itb-admin-ticket-table-v656 td:first-child{
  position:sticky!important;left:0!important;z-index:2!important;width:62px!important;min-width:62px!important;max-width:62px!important;
}
body.unified-support-layout .itb-index-v338 table.itb-admin-ticket-table-v656 thead th:first-child{z-index:5!important;background:#e8f2fd!important;}
body.unified-support-layout .itb-index-v338 table.itb-admin-ticket-table-v656 th:last-child,
body.unified-support-layout .itb-index-v338 table.itb-admin-ticket-table-v656 td:last-child{
  position:sticky!important;right:0!important;z-index:2!important;width:76px!important;min-width:76px!important;max-width:76px!important;text-align:center!important;
}
body.unified-support-layout .itb-index-v338 table.itb-admin-ticket-table-v656 thead th:last-child{z-index:5!important;background:#e8f2fd!important;}
body.unified-support-layout .itb-index-v338 .itb-ticket-title-cell-v672{white-space:normal!important;}
body.unified-support-layout .itb-index-v338 .itb-ticket-title-link-v672{
  display:inline!important;color:#071c3d!important;font-size:13.5px!important;line-height:1.35!important;font-weight:950!important;text-decoration:none!important;overflow-wrap:anywhere!important;
}
body.unified-support-layout .itb-index-v338 .itb-ticket-title-link-v672:hover{color:#0969ff!important;text-decoration:underline!important;text-underline-offset:3px!important;}
body.unified-support-layout .itb-index-v338 .itb-row-actions-v338{
  display:inline-grid!important;place-items:center!important;width:36px!important;height:36px!important;border-radius:11px!important;background:#eef5ff!important;color:#075edc!important;text-decoration:none!important;
}
body.unified-support-layout .itb-index-v338 .itb-row-actions-v338:hover{background:#0969ff!important;color:#fff!important;-webkit-text-fill-color:#fff!important;}

/* ---------- Service days ---------- */
body.unified-support-layout .svc618-page{min-width:0!important;}
body.unified-support-layout .svc618-page .svc618-layout{
  display:grid!important;grid-template-columns:minmax(0,1fr) minmax(320px,370px)!important;gap:18px!important;align-items:start!important;
}
body.unified-support-layout .svc618-page :is(.svc618-calendar-card,.svc618-side,.svc618-request){
  min-width:0!important;border-color:#d7e5f5!important;border-radius:18px!important;box-shadow:0 10px 25px rgba(20,57,99,.05)!important;
}
body.unified-support-layout .svc618-page .svc618-side{position:sticky!important;top:14px!important;}
body.unified-support-layout .svc618-page .svc618-calendar{max-width:100%!important;overflow:auto!important;-webkit-overflow-scrolling:touch!important;}
body.unified-support-layout .svc618-page .svc618-request{padding:14px!important;background:#fbfdff!important;}
body.unified-support-layout .svc618-page .svc618-actions{display:flex!important;gap:8px!important;flex-wrap:wrap!important;}
body.unified-support-layout .svc618-page .svc618-actions :is(button,a){min-height:40px!important;flex:1 1 120px!important;justify-content:center!important;}
body.unified-support-layout .svc672-view-toggle{display:none!important;}

/* ---------- Hours: table + cards ---------- */
body.unified-support-layout .itb-v555-page-hours .itb-hours-view-toggle-v671{
  display:flex!important;justify-content:center!important;gap:7px!important;margin:2px 0 14px!important;
}
body.unified-support-layout .itb-v555-page-hours .itb-hours-view-toggle-v671 button{
  min-height:40px!important;padding:0 17px!important;border:1px solid #cfe0f4!important;border-radius:12px!important;background:#fff!important;color:#4f6988!important;font-weight:950!important;cursor:pointer!important;
}
body.unified-support-layout .itb-v555-page-hours .itb-hours-view-toggle-v671 button.is-active{
  background:#0969ff!important;border-color:#0969ff!important;color:#fff!important;-webkit-text-fill-color:#fff!important;box-shadow:0 9px 20px rgba(9,105,255,.18)!important;
}
body.unified-support-layout .itb-v555-page-hours .itb-hours-records-v671[data-hours-view="cards"] .itb-v555-table-wrap{display:none!important;}
body.unified-support-layout .itb-v555-page-hours .itb-hours-records-v671[data-hours-view="table"] .itb-hours-cards-v671{display:none!important;}
body.unified-support-layout .itb-v555-page-hours .itb-v555-table-wrap{
  max-width:100%!important;overflow:auto!important;border:1px solid #d7e5f5!important;border-radius:18px!important;background:#fff!important;
}
body.unified-support-layout .itb-v555-page-hours .itb-v555-table{min-width:960px!important;}
body.unified-support-layout .itb-v555-page-hours .itb-hours-cards-v671{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;
}
body.unified-support-layout .itb-v555-page-hours .itb-hours-card-v671{
  display:grid!important;gap:11px!important;min-width:0!important;padding:16px!important;border:1px solid #d7e5f5!important;border-radius:18px!important;background:#fff!important;box-shadow:0 10px 25px rgba(20,57,99,.055)!important;
}
body.unified-support-layout .itb-v555-page-hours .itb-hours-card-grid-v671{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;}
body.unified-support-layout .itb-v555-page-hours .itb-hours-card-field-v671{min-width:0!important;padding:9px 10px!important;border-radius:12px!important;background:#f5f9fd!important;}
body.unified-support-layout .itb-v555-page-hours .itb-hours-card-field-v671>div{overflow-wrap:anywhere!important;}
body.unified-support-layout .itb-v555-page-hours .itb-hours-rankings-v522{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important;}
body.unified-support-layout .itb-v555-page-hours .itb-hours-rankings-v522 article{text-align:center!important;justify-items:center!important;}

/* ---------- Statistics ---------- */
body.unified-support-layout .itb-v555-page-stats :is(.itb-v525-priority-box,.itb-v525-type-card,.itb-v525-mini,.itb-v535-decision-card,.itb-v533-radar-grid article){
  display:grid!important;align-content:center!important;justify-items:center!important;text-align:center!important;min-width:0!important;
}
body.unified-support-layout .itb-v555-page-stats .itb-v525-priority-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important;}
body.unified-support-layout .itb-v555-page-stats .itb-v525-split-chart{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;}
body.unified-support-layout .itb-v555-page-stats .itb-v525-mini-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important;}
body.unified-support-layout .itb-v555-page-stats .itb-v535-decision-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important;}
body.unified-support-layout .itb-v555-page-stats .itb-v533-radar-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important;justify-content:center!important;}
body.unified-support-layout .itb-v555-page-stats :is(.itb-v535-admin-decision,.itb-v533-admin-radar) .itb-v525-report-head{
  display:flex!important;justify-content:center!important;align-items:center!important;gap:10px!important;flex-wrap:wrap!important;text-align:center!important;
}
body.unified-support-layout .itb-v555-page-stats :is(.itb-v535-admin-decision,.itb-v533-admin-radar) .itb-v525-report-head>div{width:100%!important;}
body.unified-support-layout .itb-v555-page-stats .itb-v535-action-table a{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:38px!important;padding:0 12px!important;border-radius:10px!important;background:#0969ff!important;color:#fff!important;-webkit-text-fill-color:#fff!important;text-decoration:none!important;font-weight:950!important;
}

/* ---------- Client questions ---------- */
body.unified-support-layout .itb-contact-admin-v532 .contact-message-kpis-v558{
  display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important;margin:0 0 16px!important;
}
body.unified-support-layout .itb-contact-admin-v532 .contact-message-kpis-v558 article{
  display:grid!important;align-content:center!important;justify-items:center!important;text-align:center!important;min-width:0!important;min-height:116px!important;padding:14px!important;border:1px solid #d7e5f5!important;border-radius:18px!important;background:#fff!important;
}
body.unified-support-layout .itb-contact-admin-v532 .contact-admin-grid{
  display:grid!important;grid-template-columns:minmax(300px,360px) minmax(0,1fr)!important;gap:18px!important;align-items:start!important;
}
body.unified-support-layout .itb-contact-admin-v532 :is(.contact-admin-list,.contact-admin-detail){min-width:0!important;margin:0!important;}
body.unified-support-layout .itb-contact-admin-v532 .contact-admin-detail{position:sticky!important;top:14px!important;}
body.unified-support-layout .itb-contact-admin-v532 .contact-message-list{display:grid!important;gap:8px!important;max-height:680px!important;overflow:auto!important;padding-right:4px!important;}
body.unified-support-layout .itb-contact-admin-v532 .contact-message-link{
  display:grid!important;gap:5px!important;padding:13px!important;border:1px solid #e0eaf5!important;border-radius:15px!important;background:#fbfdff!important;text-decoration:none!important;
}
body.unified-support-layout .itb-contact-admin-v532 .contact-message-link.active{border-color:#8bbcff!important;background:#eef6ff!important;}
body.unified-support-layout .itb-contact-admin-v532 .contact-message-link :is(strong,small){overflow-wrap:anywhere!important;}
body.unified-support-layout .itb-contact-admin-v532 .contact-message-tools-v584{align-items:end!important;}
body.unified-support-layout .itb-contact-admin-v532 .contact-message-filter-actions-v584{display:flex!important;gap:8px!important;align-items:center!important;flex-wrap:wrap!important;}
body.unified-support-layout .itb-contact-admin-v532 .contact-reply-form textarea{min-height:150px!important;resize:vertical!important;}

/* ---------- System settings / health ---------- */
body.unified-support-layout .itb-system-health-v577{min-width:0!important;padding:0 22px 34px!important;background:#eef5fc!important;}
body.unified-support-layout .itb-system-health-v577 .itb-health-hero-v577{margin:0 -22px 18px!important;border-radius:0!important;padding:30px 34px 54px!important;}
body.unified-support-layout .itb-system-health-v577 .itb-health-kpis-v577{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important;}
body.unified-support-layout .itb-system-health-v577 .itb-health-kpis-v577>*{
  display:grid!important;align-content:center!important;justify-items:center!important;text-align:center!important;min-width:0!important;min-height:112px!important;padding:14px!important;
}
body.unified-support-layout .itb-system-health-v577 .itb-health-toolbar-v577{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:10px!important;flex-wrap:wrap!important;}
body.unified-support-layout .itb-system-health-v577 .itb-health-group-v577{border-radius:20px!important;overflow:hidden!important;}
body.unified-support-layout .itb-system-health-v577 .itb-health-item-v577{display:grid!important;grid-template-columns:38px minmax(0,1fr) auto!important;gap:12px!important;align-items:center!important;}
body.unified-support-layout .itb-system-health-v577 .itb-health-links-v577>div:last-child{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;}

/* ---------- Responsive ---------- */
@media(max-width:1180px){
  body.unified-support-layout .itb-v555-page-invoice .invoice-detail-grid-v574,
  body.unified-support-layout .svc618-page .svc618-layout{grid-template-columns:1fr!important;}
  body.unified-support-layout .itb-v555-page-invoice .invoice-summary-column-v574,
  body.unified-support-layout .svc618-page .svc618-side{position:static!important;}
  body.unified-support-layout .invoices-list-v741 .invoice-list-kpis-v741{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}

@media(max-width:900px){
  body.unified-support-layout .itb-contact-admin-v532 .contact-admin-grid{grid-template-columns:1fr!important;}
  body.unified-support-layout .itb-contact-admin-v532 .contact-admin-detail{position:static!important;order:2!important;}
  body.unified-support-layout .itb-contact-admin-v532 .contact-admin-list{order:1!important;}
  body.unified-support-layout .itb-contact-admin-v532 .contact-admin-grid.has-selected-v672 .contact-admin-detail{order:1!important;}
  body.unified-support-layout .itb-contact-admin-v532 .contact-admin-grid.has-selected-v672 .contact-admin-list{order:2!important;}
  body.unified-support-layout .itb-contact-admin-v532 .contact-message-list{max-height:none!important;}

  body.unified-support-layout .svc672-view-toggle{
    display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important;position:sticky!important;top:8px!important;z-index:30!important;
    padding:6px!important;margin:0 0 12px!important;border:1px solid #d4e3f4!important;border-radius:15px!important;background:rgba(255,255,255,.97)!important;
    box-shadow:0 10px 24px rgba(15,45,85,.10)!important;backdrop-filter:blur(12px)!important;
  }
  body.unified-support-layout .svc672-view-toggle button{
    min-height:42px!important;border:0!important;border-radius:11px!important;background:transparent!important;color:#526c8d!important;font-size:11px!important;font-weight:950!important;cursor:pointer!important;
  }
  body.unified-support-layout .svc672-view-toggle button.is-active{background:#0969ff!important;color:#fff!important;-webkit-text-fill-color:#fff!important;}
  body.unified-support-layout .svc618-page.svc672-enhanced .svc618-layout[data-service-view="calendar"]>.svc618-side{display:none!important;}
  body.unified-support-layout .svc618-page.svc672-enhanced .svc618-layout[data-service-view="requests"]>.svc618-calendar-card{display:none!important;}
  body.unified-support-layout .svc618-page.svc672-enhanced .svc618-layout[data-service-view="calendar"],
  body.unified-support-layout .svc618-page.svc672-enhanced .svc618-layout[data-service-view="requests"]{grid-template-columns:1fr!important;}
  body.unified-support-layout .svc618-page.svc672-enhanced .svc618-layout[data-service-view="requests"]>.svc618-side{display:block!important;position:static!important;}

  body.unified-support-layout .itb-v555-page-stats .itb-v525-priority-grid,
  body.unified-support-layout .itb-v555-page-stats .itb-v525-mini-grid,
  body.unified-support-layout .itb-v555-page-stats .itb-v535-decision-grid,
  body.unified-support-layout .itb-v555-page-stats .itb-v533-radar-grid,
  body.unified-support-layout .itb-contact-admin-v532 .contact-message-kpis-v558,
  body.unified-support-layout .itb-system-health-v577 .itb-health-kpis-v577{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  body.unified-support-layout .itb-v555-page-hours .itb-hours-cards-v671{grid-template-columns:1fr!important;}
}

@media(max-width:760px){
  body.unified-support-layout .invoices-list-v741 .invoice-list-hero-actions-v741{display:grid!important;grid-template-columns:1fr!important;width:100%!important;}
  body.unified-support-layout .invoices-list-v741 .invoice-list-hero-actions-v741 .btn{width:100%!important;}
  body.unified-support-layout .invoices-list-v741 .invoice-filter-grid{grid-template-columns:1fr!important;}
  body.unified-support-layout .invoices-list-v741 .invoice-filter-actions{display:grid!important;grid-template-columns:1fr 1fr!important;width:100%!important;}
  body.unified-support-layout .invoices-list-v741 .invoice-filter-actions>*{width:100%!important;}

  body.unified-support-layout .itb-v555-page-invoice .invoice-preview-head-v560{display:grid!important;grid-template-columns:1fr!important;}
  body.unified-support-layout .itb-v555-page-invoice .invoice-preview-actions-v574{display:grid!important;grid-template-columns:1fr!important;width:100%!important;}
  body.unified-support-layout .itb-v555-page-invoice .invoice-preview-actions-v574>*{width:100%!important;}
  body.unified-support-layout .itb-v555-page-invoice .invoice-preview-tools-v574{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;}
  body.unified-support-layout .itb-v555-page-invoice .invoice-preview-modern-v560{padding:0!important;border-radius:14px!important;overflow:visible!important;background:#fff!important;}
  body.unified-support-layout .itb-v555-page-invoice .invoice-preview-modern-v560 .invoice-document{width:100%!important;min-width:0!important;max-width:100%!important;margin:0!important;transform:none!important;}
  body.unified-support-layout .itb-v555-page-invoice .itb-v555-info{grid-template-columns:1fr!important;gap:4px!important;}
  body.unified-support-layout .itb-v555-page-invoice .invoice-email-log-table-v560 thead{display:none!important;}
  body.unified-support-layout .itb-v555-page-invoice .invoice-email-log-table-v560,
  body.unified-support-layout .itb-v555-page-invoice .invoice-email-log-table-v560 tbody{display:block!important;width:100%!important;}
  body.unified-support-layout .itb-v555-page-invoice .invoice-email-log-table-v560 tr{display:grid!important;gap:0!important;margin-bottom:10px!important;border:1px solid #d7e5f5!important;border-radius:14px!important;overflow:hidden!important;}
  body.unified-support-layout .itb-v555-page-invoice .invoice-email-log-table-v560 td{display:grid!important;grid-template-columns:105px minmax(0,1fr)!important;gap:8px!important;width:auto!important;padding:9px 10px!important;}
  body.unified-support-layout .itb-v555-page-invoice .invoice-email-log-table-v560 td:nth-child(1)::before{content:"Datum";}
  body.unified-support-layout .itb-v555-page-invoice .invoice-email-log-table-v560 td:nth-child(2)::before{content:"Příjemce";}
  body.unified-support-layout .itb-v555-page-invoice .invoice-email-log-table-v560 td:nth-child(3)::before{content:"Stav";}
  body.unified-support-layout .itb-v555-page-invoice .invoice-email-log-table-v560 td:nth-child(4)::before{content:"Příloha";}
  body.unified-support-layout .itb-v555-page-invoice .invoice-email-log-table-v560 td::before{color:#607793!important;font-size:9px!important;font-weight:950!important;text-transform:uppercase!important;}

  body.unified-support-layout .itb-contact-admin-v532 .contact-message-tools-v584{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;}
  body.unified-support-layout .itb-contact-admin-v532 .contact-message-tools-v584>label:first-child{grid-column:1/-1!important;}
  body.unified-support-layout .itb-contact-admin-v532 .contact-message-filter-actions-v584{display:grid!important;grid-template-columns:1fr 1fr!important;width:100%!important;}
  body.unified-support-layout .itb-contact-admin-v532 .contact-message-result-v558{grid-column:1/-1!important;text-align:center!important;}

  body.unified-support-layout .itb-v555-page-stats .itb-v535-action-table thead{display:none!important;}
  body.unified-support-layout .itb-v555-page-stats .itb-v535-action-table,
  body.unified-support-layout .itb-v555-page-stats .itb-v535-action-table tbody{display:block!important;width:100%!important;}
  body.unified-support-layout .itb-v555-page-stats .itb-v535-action-table tr{display:grid!important;margin:0 0 12px!important;border:1px solid #d7e5f5!important;border-radius:16px!important;overflow:hidden!important;background:#fff!important;}
  body.unified-support-layout .itb-v555-page-stats .itb-v535-action-table td{display:grid!important;grid-template-columns:112px minmax(0,1fr)!important;gap:9px!important;width:auto!important;padding:10px 12px!important;border-bottom:1px solid #e6eef8!important;text-align:left!important;}
  body.unified-support-layout .itb-v555-page-stats .itb-v535-action-table td:last-child{border-bottom:0!important;}
  body.unified-support-layout .itb-v555-page-stats .itb-v535-action-table td:nth-child(1)::before{content:"Oblast";}
  body.unified-support-layout .itb-v555-page-stats .itb-v535-action-table td:nth-child(2)::before{content:"Stav";}
  body.unified-support-layout .itb-v555-page-stats .itb-v535-action-table td:nth-child(3)::before{content:"Doporučený krok";}
  body.unified-support-layout .itb-v555-page-stats .itb-v535-action-table td:nth-child(4)::before{content:"Akce";}
  body.unified-support-layout .itb-v555-page-stats .itb-v535-action-table td::before{color:#607793!important;font-size:9px!important;font-weight:950!important;text-transform:uppercase!important;}
  body.unified-support-layout .itb-v555-page-stats .itb-v535-action-table td:last-child a{width:100%!important;}

  body.unified-support-layout .itb-system-health-v577{padding:0 12px 28px!important;}
  body.unified-support-layout .itb-system-health-v577 .itb-health-hero-v577{margin:0 -12px 16px!important;padding:24px 18px 44px!important;}
  body.unified-support-layout .itb-system-health-v577 .itb-health-item-v577{grid-template-columns:34px minmax(0,1fr)!important;}
  body.unified-support-layout .itb-system-health-v577 .itb-health-item-v577>*:last-child{grid-column:1/-1!important;justify-self:stretch!important;}
}

@media(max-width:520px){
  body.unified-support-layout .invoices-list-v741 .invoice-list-kpis-v741{grid-template-columns:1fr 1fr!important;gap:9px!important;}
  body.unified-support-layout .invoices-list-v741 .invoice-list-kpis-v741 article{min-height:104px!important;padding:11px!important;}
  body.unified-support-layout .itb-v555-page-hours .itb-hours-card-grid-v671{grid-template-columns:1fr!important;}
  body.unified-support-layout .itb-contact-admin-v532 .contact-message-tools-v584{grid-template-columns:1fr!important;}
  body.unified-support-layout .itb-contact-admin-v532 .contact-message-tools-v584>*{grid-column:auto!important;}
  body.unified-support-layout .itb-contact-admin-v532 .contact-message-filter-actions-v584{grid-template-columns:1fr!important;}
  body.unified-support-layout .itb-v555-page-stats .itb-v535-action-table td{grid-template-columns:1fr!important;gap:4px!important;}
  body.unified-support-layout .itb-system-health-v577 .itb-health-links-v577>div:last-child{grid-template-columns:1fr!important;}
}

@media(max-width:370px){
  body.unified-support-layout .itb-v555-page-stats .itb-v525-priority-grid,
  body.unified-support-layout .itb-v555-page-stats .itb-v525-mini-grid,
  body.unified-support-layout .itb-v555-page-stats .itb-v535-decision-grid,
  body.unified-support-layout .itb-v555-page-stats .itb-v533-radar-grid,
  body.unified-support-layout .itb-contact-admin-v532 .contact-message-kpis-v558,
  body.unified-support-layout .itb-system-health-v577 .itb-health-kpis-v577{grid-template-columns:1fr!important;}
}


/* ===== v674 follow-up mobile/admin polish ===== */
body.unified-support-layout .invoices-list-v741 :is(.btn.blue,.btn.blue span,.btn.blue strong,.btn.blue small),
body.unified-support-layout .itb-v555-page-invoice :is(.btn.blue,.btn.blue span,.btn.blue strong,.btn.blue small),
body.unified-support-layout .invoice-card-actions :is(.btn.blue,.btn.blue span,.btn.blue strong,.btn.blue small){
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}

@media(max-width:900px){
  /* Generic admin/client KPI cards in two centered columns. */
  body.unified-support-layout :is(.itb-v555-page-stats,.itb-contact-admin-v532,.itb-system-health-v577,.itb-v555-page-hours) .itb-v555-kpis,
  body.unified-support-layout :is(.itb-v555-page-stats,.itb-contact-admin-v532,.itb-system-health-v577,.itb-v555-page-hours) .itb-v555-kpis.four{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:12px!important;
  }
  body.unified-support-layout :is(.itb-v555-page-stats,.itb-contact-admin-v532,.itb-system-health-v577,.itb-v555-page-hours) .itb-v555-kpi{
    display:grid!important;
    grid-template-columns:1fr!important;
    justify-items:center!important;
    align-content:center!important;
    text-align:center!important;
    gap:9px!important;
    min-height:132px!important;
  }
  body.unified-support-layout :is(.itb-v555-page-stats,.itb-contact-admin-v532,.itb-system-health-v577,.itb-v555-page-hours) .itb-v555-kpi>div,
  body.unified-support-layout :is(.itb-v555-page-stats,.itb-contact-admin-v532,.itb-system-health-v577,.itb-v555-page-hours) .itb-v555-kpi :is(strong,small,em,b){
    text-align:center!important;
    justify-self:center!important;
  }

  /* Sticky mobile headers respect display cutout / safe area. */
  html body.unified-support-layout :is(.itb-admin-appbar-v631,.itb-client-appbar-v630,.itb-mobile-sticky-head-v423,.client-portal-topbar-v598){
    top:0!important;
    padding-top:calc(10px + env(safe-area-inset-top,0px))!important;
  }

  /* Admin ticket list: stronger status chips and a tidier floating "Nový ticket" button. */
  html body.itb-v632-admin .itb-admin-ticket-row-v631{
    grid-template-columns:66px minmax(0,1fr) minmax(88px,96px) 10px!important;
    align-items:center!important;
    gap:6px!important;
  }
  html body.itb-v632-admin .itb-admin-ticket-row-v631 .copy strong{
    white-space:normal!important;
    overflow:visible!important;
    display:-webkit-box!important;
    -webkit-line-clamp:2!important;
    -webkit-box-orient:vertical!important;
    line-height:1.25!important;
  }
  html body.itb-v632-admin .itb-admin-ticket-row-v631 .state{
    justify-items:end!important;
    align-content:center!important;
    gap:5px!important;
    min-width:88px!important;
  }
  html body.itb-v632-admin .itb-admin-ticket-row-v631 .state b{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
    min-height:28px!important;
    max-width:none!important;
    padding:5px 9px!important;
    border-radius:999px!important;
    font-size:9px!important;
    line-height:1.15!important;
    white-space:normal!important;
    box-sizing:border-box!important;
  }
  html body.itb-v632-admin .itb-admin-ticket-row-v631 .state small{
    font-size:9px!important;
    text-align:right!important;
  }
  html body.itb-v632-admin .itb-admin-bottom-nav-v631{
    min-height:76px!important;
    padding-top:9px!important;
    padding-bottom:8px!important;
  }
  html body.itb-v632-admin .itb-admin-bottom-nav-v631>a.new{
    transform:translateY(-10px)!important;
  }
  html body.itb-v632-admin .itb-admin-bottom-nav-v631>a.new span{
    width:46px!important;
    height:46px!important;
    font-size:24px!important;
    box-shadow:0 10px 22px rgba(9,105,255,.28)!important;
  }

  /* Service days: do not keep the info/identity block sticky on phones. */
  body.unified-support-layout .svc619-shell :is(.svc619-identity,.svc618-toolbar,.svc618-side),
  body.unified-support-layout .svc619-shell .svc618-page .svc618-side{
    position:static!important;
    top:auto!important;
  }
  body.unified-support-layout .svc619-shell .svc619-identity{
    justify-self:stretch!important;
    width:100%!important;
  }

  /* Statistics: full-width search/filter field in the blue hero section. */
  body.unified-support-layout .itb-v555-page-stats .itb-v555-hero .itb-hero-actions-v338,
  body.unified-support-layout .itb-v555-page-stats .itb-v555-hero .itb-v530-stats-company{
    width:100%!important;
    max-width:none!important;
  }
  body.unified-support-layout .itb-v555-page-stats .itb-v555-hero input[type="search"],
  body.unified-support-layout .itb-v555-page-stats .itb-v555-hero .itb-v530-stats-company select,
  body.unified-support-layout .itb-v555-page-stats .itb-v555-hero .itb-v555-field input,
  body.unified-support-layout .itb-v555-page-stats .itb-v555-hero .itb-v555-field select{
    width:100%!important;
    max-width:none!important;
  }

  /* Statistics tiles requested as 2 columns even on narrow screens. */
  body.unified-support-layout .itb-v555-page-stats .itb-v525-priority-grid,
  body.unified-support-layout .itb-v555-page-stats .itb-v525-split-chart,
  body.unified-support-layout .itb-v555-page-stats .itb-v525-mini-grid,
  body.unified-support-layout .itb-v555-page-stats .itb-v535-decision-grid,
  body.unified-support-layout .itb-v555-page-stats .itb-v533-radar-grid,
  body.unified-support-layout .itb-contact-admin-v532 .contact-message-kpis-v558{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
  }

  /* Admin client questions: prevent skinny vertical hero cards. */
  body.unified-support-layout .itb-contact-admin-v532 .itb-v555-hero,
  body.unified-support-layout .itb-contact-admin-v532 .itb-v555-hero .itb-hero-card-v338,
  body.unified-support-layout .itb-contact-admin-v532 .itb-v555-hero .itb-hero-info-v338{
    min-width:0!important;
    max-width:none!important;
  }
  body.unified-support-layout .itb-contact-admin-v532 .itb-v555-hero .itb-hero-card-v338{
    width:100%!important;
    display:grid!important;
    grid-template-columns:56px minmax(0,1fr)!important;
    gap:12px!important;
    align-items:center!important;
    padding:16px!important;
  }
  body.unified-support-layout .itb-contact-admin-v532 .itb-v555-hero .itb-hero-logo-v338{
    width:56px!important;
    height:56px!important;
    min-width:56px!important;
  }
  body.unified-support-layout .itb-contact-admin-v532 .itb-v555-hero .itb-hero-info-v338 small,
  body.unified-support-layout .itb-contact-admin-v532 .itb-v555-hero .itb-hero-info-v338 strong,
  body.unified-support-layout .itb-contact-admin-v532 .itb-v555-hero .itb-hero-info-v338 span{
    writing-mode:horizontal-tb!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
    word-break:break-word!important;
  }
}

@media(max-width:760px){
  body.unified-support-layout .itb-v555-page-stats .itb-v525-priority-grid,
  body.unified-support-layout .itb-v555-page-stats .itb-v525-split-chart,
  body.unified-support-layout .itb-v555-page-stats .itb-v525-mini-grid,
  body.unified-support-layout .itb-v555-page-stats .itb-v535-decision-grid,
  body.unified-support-layout .itb-v555-page-stats .itb-v533-radar-grid,
  body.unified-support-layout .itb-contact-admin-v532 .contact-message-kpis-v558{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  body.unified-support-layout .itb-contact-admin-v532 .contact-admin-grid{
    grid-template-columns:1fr!important;
  }
}

@media(max-width:520px){
  body.unified-support-layout .itb-v555-page-stats .itb-v525-priority-grid,
  body.unified-support-layout .itb-v555-page-stats .itb-v525-split-chart,
  body.unified-support-layout .itb-v555-page-stats .itb-v525-mini-grid,
  body.unified-support-layout .itb-v555-page-stats .itb-v535-decision-grid,
  body.unified-support-layout .itb-v555-page-stats .itb-v533-radar-grid,
  body.unified-support-layout .itb-contact-admin-v532 .contact-message-kpis-v558{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:9px!important;
  }
}
