/* IT-BALON.CZ Podpora v672 – follow-up polish and structural mobile fixes */

/* Admin ticket overview: explicit columns, useful sticky edges and stronger row hierarchy. */
body.unified-support-layout .itb-index-v338 table.itb-admin-ticket-table-v656 col.c-id{width:78px!important}
body.unified-support-layout .itb-index-v338 table.itb-admin-ticket-table-v656 col.c-title{width:300px!important}
body.unified-support-layout .itb-index-v338 table.itb-admin-ticket-table-v656 col.c-company{width:190px!important}
body.unified-support-layout .itb-index-v338 table.itb-admin-ticket-table-v656 col.c-deadline{width:118px!important}
body.unified-support-layout .itb-index-v338 table.itb-admin-ticket-table-v656 col.c-action{width:178px!important}
body.unified-support-layout .itb-index-v338 table.itb-admin-ticket-table-v656 col.c-status{width:165px!important}
body.unified-support-layout .itb-index-v338 table.itb-admin-ticket-table-v656 col.c-updated{width:150px!important}
body.unified-support-layout .itb-index-v338 table.itb-admin-ticket-table-v656 col.c-more{width:76px!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:3!important;background:inherit!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:3!important;background:inherit!important;
  box-shadow:-8px 0 14px -12px rgba(15,45,85,.45)!important
}
body.unified-support-layout .itb-index-v338 table.itb-admin-ticket-table-v656 thead th:first-child,
body.unified-support-layout .itb-index-v338 table.itb-admin-ticket-table-v656 thead th:last-child{z-index:5!important;background:#eaf3ff!important}
body.unified-support-layout .itb-index-v338 table.itb-admin-ticket-table-v656 tbody tr.itb-row-wait-admin td:first-child{box-shadow:inset 4px 0 #ef4444!important}
body.unified-support-layout .itb-index-v338 table.itb-admin-ticket-table-v656 tbody tr.itb-row-wait-client td:first-child{box-shadow:inset 4px 0 #f59e0b!important}
body.unified-support-layout .itb-index-v338 table.itb-admin-ticket-table-v656 tbody tr.itb-row-progress td:first-child{box-shadow:inset 4px 0 #0969ff!important}
body.unified-support-layout .itb-index-v338 table.itb-admin-ticket-table-v656 tbody tr.itb-row-invoice td:first-child{box-shadow:inset 4px 0 #8b5cf6!important}
body.unified-support-layout .itb-index-v338 table.itb-admin-ticket-table-v656 tbody tr.itb-row-done td:first-child,
body.unified-support-layout .itb-index-v338 table.itb-admin-ticket-table-v656 tbody tr.itb-row-done-v338 td:first-child{box-shadow:inset 4px 0 #22c55e!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;text-decoration:none!important;font-size:13.5px!important;
  line-height:1.35!important;font-weight:950!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-ticket-title-cell-v672 small{display:block!important;margin-top:5px!important;line-height:1.45!important}
body.unified-support-layout .itb-index-v338 .itb-row-actions-cell-v624{min-width:72px!important;text-align:center!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}
body.unified-support-layout .itb-index-v338 .itb-table-wrap-v338{scrollbar-color:#9db9dc #edf4fc!important;scrollbar-width:thin!important}

/* Client questions: repair malformed flow and make list/detail useful on phones. */
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 .contact-admin-list,
body.unified-support-layout .itb-contact-admin-v532 .contact-admin-detail{min-width:0!important;margin:0!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;border-radius:15px!important;text-decoration:none!important}
body.unified-support-layout .itb-contact-admin-v532 .contact-message-link strong{color:#071c3d!important;line-height:1.35!important;overflow-wrap:anywhere!important}
body.unified-support-layout .itb-contact-admin-v532 .contact-message-link small{color:#687f9a!important;line-height:1.4!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-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-message-filter-actions-v584 .btn{min-height:44px!important}
body.unified-support-layout .itb-contact-admin-v532 .contact-reply-form textarea{min-height:150px!important;resize:vertical!important}

/* Mobile service-day section switch; desktop continues to show both columns. */
body.unified-support-layout .svc672-view-toggle{display:none!important}

/* Statistics action panel becomes readable cards on narrow screens. */
body.unified-support-layout .itb-v555-page-stats .itb-v535-action-table a{
  color:#fff!important;-webkit-text-fill-color:#fff!important
}

/* System status: keep KPI cards centered and balanced. */
body.unified-support-layout .itb-system-health-v577 .itb-health-kpis-v577>*{min-height:112px!important;padding:14px!important}
body.unified-support-layout .itb-system-health-v577 .itb-health-kpis-v577 strong{font-size:clamp(24px,3vw,34px)!important;line-height:1!important}

@media(max-width:1100px){
  body.unified-support-layout .itb-contact-admin-v532 .contact-admin-grid{grid-template-columns:320px 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:20!important;padding:6px!important;margin:0 0 12px!important;border:1px solid #d4e3f4!important;
    border-radius:15px!important;background:rgba(255,255,255,.96)!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;letter-spacing:.025em!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;box-shadow:0 8px 18px rgba(9,105,255,.20)!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}
}

@media(max-width:760px){
  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-contact-admin-v532 .contact-admin-detail .client-card-head{display:grid!important;gap:10px!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;gap:0!important;margin:0 0 12px!important;border:1px solid #d7e5f5!important;
    border-radius:17px!important;background:#fff!important;overflow:hidden!important;box-shadow:0 9px 22px rgba(20,57,99,.05)!important
  }
  body.unified-support-layout .itb-v555-page-stats .itb-v535-action-table td{
    display:grid!important;grid-template-columns:118px minmax(0,1fr)!important;gap:10px!important;align-items:center!important;
    width:auto!important;padding:11px 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:before{color:#607793!important;font-size:9.5px!important;font-weight:950!important;text-transform:uppercase!important;letter-spacing:.045em!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:nth-child(4) a{width:100%!important;min-height:42px!important}

  body.unified-support-layout .itb-system-health-v577 .itb-health-kpis-v577{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

@media(max-width:520px){
  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}
}

@media(max-width:390px){
  body.unified-support-layout .itb-system-health-v577 .itb-health-kpis-v577{grid-template-columns:1fr!important}
}
