/* TheaCRM v2.6.142 – sjednocené listy modulů podle /stock + hotfix hlášky bez výsledků */
.thea-list-page{
  --thea-list-green:#2e7d32;
  --thea-list-green-dark:#27672a;
  --thea-list-border:#e7ece7;
  --thea-list-soft:#f5faf5;
  --thea-list-text:#1f2933;
}
.thea-list-page.container,
.thea-list-page .container-fluid{
  max-width:1180px;
}
.thea-list-page > .bg-white,
.thea-list-page > .thea-card,
.thea-list-page > .position-relative{
  border:1px solid var(--thea-list-border) !important;
  border-radius:1rem !important;
  box-shadow:0 .25rem .8rem rgba(16,24,40,.06) !important;
  background:#fff !important;
}
.thea-list-page h1,
.thea-list-page h2{
  color:var(--thea-list-green) !important;
  font-weight:850 !important;
  letter-spacing:-.02em;
}
.thea-list-page h3{
  color:#167323;
  font-weight:800;
}
.thea-list-page .appbar,
.thea-list-page .thea-document-toolbar,
.thea-list-page > .bg-white > .d-flex.justify-content-between.align-items-center:first-child,
.thea-list-page > .bg-white > .d-flex.align-items-center:first-child,
.thea-list-page > .thea-card > .d-flex.justify-content-between.align-items-center:first-child{
  border-bottom:1px solid #f0f2f0 !important;
  background:linear-gradient(180deg,#fff,#fbfdfb) !important;
  padding:.35rem 0 .75rem !important;
  margin-bottom:.85rem !important;
  position:sticky;
  top:var(--navbar-height,0px);
  z-index:4;
}
.thea-list-page .btn-ghost,
.thea-list-page .stock-icon-btn{
  width:44px !important;
  height:44px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  border:0 !important;
  border-radius:999px !important;
  background:transparent !important;
  color:#25313a !important;
  text-decoration:none !important;
  transition:background-color .15s, transform .05s, box-shadow .15s !important;
}
.thea-list-page .btn-ghost:hover,
.thea-list-page .stock-icon-btn:hover{
  background:rgba(0,0,0,.06) !important;
  color:#25313a !important;
}
.thea-list-page .btn-ghost:active,
.thea-list-page .stock-icon-btn:active{ transform:scale(.97); }
.thea-list-page .btn-ghost-primary,
.thea-list-page .stock-primary-btn,
.thea-list-page .btn.btn-success.btn-ghost-primary{
  background:var(--thea-list-green) !important;
  color:#fff !important;
  box-shadow:0 4px 12px rgba(46,125,50,.23) !important;
  border-color:var(--thea-list-green) !important;
}
.thea-list-page .btn-ghost-primary:hover,
.thea-list-page .stock-primary-btn:hover,
.thea-list-page .btn.btn-success.btn-ghost-primary:hover{
  background:var(--thea-list-green-dark) !important;
  color:#fff !important;
}
.thea-list-page .dropdown-toggle.no-caret::after{ display:none !important; }
.thea-list-page .thea-list-search-form,
.thea-list-page form.thea-list-search-form,
.thea-list-page .stock-search-form{
  display:flex !important;
  align-items:center !important;
  gap:.6rem !important;
  background:#f4f6f4 !important;
  border:1px solid #edf0ed !important;
  border-radius:999px !important;
  padding:.25rem .75rem !important;
  max-width:560px !important;
  width:100%;
}
.thea-list-page .thea-list-search-form .form-control,
.thea-list-page .stock-search-form .form-control{
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  padding:.55rem .2rem !important;
  min-width:0;
}
.thea-list-page .thea-list-search-form .btn[type="submit"]{
  display:none !important;
}
.thea-list-page .input-group.thea-list-search-group{
  background:#f4f6f4 !important;
  border:1px solid #edf0ed !important;
  border-radius:999px !important;
  overflow:hidden;
  max-width:560px;
}
.thea-list-page .input-group.thea-list-search-group .input-group-text,
.thea-list-page .input-group.thea-list-search-group .form-control{
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}
.thea-list-page .input-group.thea-list-search-group .btn[type="submit"]{
  display:none !important;
}
.thea-list-page .organization-card,
.thea-list-page .machine-card,
.thea-list-page .task-card,
.thea-list-page .project-card,
.thea-list-page .call-card,
.thea-list-page .invoice-card,
.thea-list-page .offer-card,
.thea-list-page .doc-card,
.thea-list-page .thea-doc-card,
.thea-list-page tr.stock-row-click,
.thea-list-page .stock-mobile-card{
  background:#fff !important;
  border-radius:.9rem !important;
  box-shadow:0 1px 5px rgba(0,0,0,.045) !important;
  color:var(--thea-list-text) !important;
  transition:background-color .12s,border-color .12s,transform .12s,box-shadow .12s !important;
}
.thea-list-page .organization-card,
.thea-list-page .machine-card,
.thea-list-page .project-card,
.thea-list-page .call-card,
.thea-list-page .doc-card{
  border:1px solid #edf0ed !important;
  padding:.9rem 1rem !important;
}
.thea-list-page .task-card,
.thea-list-page .invoice-card,
.thea-list-page .offer-card{
  border-top:1px solid #edf0ed !important;
  border-right:1px solid #edf0ed !important;
  border-bottom:1px solid #edf0ed !important;
  padding:.9rem 1rem !important;
}
.thea-list-page .organization-card:hover,
.thea-list-page .machine-card:hover,
.thea-list-page .task-card:hover,
.thea-list-page .project-card:hover,
.thea-list-page .call-card:hover,
.thea-list-page .invoice-card:hover,
.thea-list-page .offer-card:hover,
.thea-list-page .doc-card:hover,
.thea-list-page .stock-mobile-card:hover{
  background:#fbfffb !important;
  border-color:#d9f2da !important;
  box-shadow:0 4px 12px rgba(16,24,40,.08) !important;
  transform:translateY(-1px);
}
.thea-list-page table:not(.stock-table){
  border-collapse:separate !important;
  border-spacing:0 .45rem !important;
}
.thea-list-page table:not(.stock-table) thead th{
  font-size:.78rem;
  text-transform:uppercase;
  letter-spacing:.04em;
  color:#6c757d !important;
  border:0 !important;
  background:transparent !important;
}
.thea-list-page table:not(.stock-table) tbody tr{
  background:#fff !important;
  box-shadow:0 1px 5px rgba(0,0,0,.045) !important;
}
.thea-list-page table:not(.stock-table) tbody td{
  border-top:1px solid #edf0ed !important;
  border-bottom:1px solid #edf0ed !important;
  background:#fff !important;
}
.thea-list-page table:not(.stock-table) tbody td:first-child{
  border-left:1px solid #edf0ed !important;
  border-radius:.8rem 0 0 .8rem !important;
}
.thea-list-page table:not(.stock-table) tbody td:last-child{
  border-right:1px solid #edf0ed !important;
  border-radius:0 .8rem .8rem 0 !important;
}
.thea-list-page table:not(.stock-table) tbody tr:hover td{ background:#fbfffb !important; }
.thea-list-page .alpha-btn,
.thea-list-page .btn-outline-success.btn-sm{
  border-radius:.55rem !important;
  font-weight:700;
}
.thea-list-page .thea-list-no-results{
  display:none;
  margin:1rem 0 0;
  padding:1.25rem;
  border:1px dashed #d8e5d9;
  border-radius:.9rem;
  text-align:center;
  color:#6c757d;
  background:#fbfdfb;
}
.thea-list-page.thea-list-has-filter .thea-list-no-results{ display:block; }
.thea-list-page .thea-list-suggest{
  position:absolute;
  z-index:1080;
  min-width:min(520px, calc(100vw - 2rem));
  max-width:min(620px, calc(100vw - 2rem));
  max-height:260px;
  overflow:auto;
  background:#fff;
  border:1px solid #dde6df;
  border-radius:.9rem;
  box-shadow:0 .5rem 1.2rem rgba(16,24,40,.12);
  padding:.3rem;
}
.thea-list-page .thea-list-suggest button{
  width:100%;
  border:0;
  background:#fff;
  text-align:left;
  border-radius:.65rem;
  padding:.55rem .7rem;
  color:#1f2933;
}
.thea-list-page .thea-list-suggest button:hover,
.thea-list-page .thea-list-suggest button:focus{
  background:#f3faf3;
  outline:none;
}
.thea-list-page .thea-list-suggest small{ display:block; color:#6c757d; }
@media (max-width:767.98px){
  .content .thea-list-page.container,
  .content .thea-list-page.container-fluid{
    max-width:none;
    width:100%;
  }
  .thea-list-page > .bg-white,
  .thea-list-page > .thea-card,
  .thea-list-page > .position-relative{
    border-left:0 !important;
    border-right:0 !important;
    border-radius:0 !important;
    box-shadow:none !important;
  }
  .thea-list-page h2{ font-size:1.2rem; }
  .thea-list-page .btn-ghost,
  .thea-list-page .stock-icon-btn{ width:42px !important; height:42px !important; }
}

/* list-ui-overlap-hotfix */
/* TheaCRM v2.6.139 – oprava překrývání hlaviček a obsahu listů
   V balíku 2.6.138 byla globální hlavička listu nastavena jako sticky.
   U listů se souhrnnými kartami (např. Faktury) se pak při posunu/obnově stránky
   obsah mohl schovat pod nadpis a akční tlačítka. Listové toolbary proto necháváme
   v normálním toku dokumentu a přidáváme bezpečný odstup za hlavičkou. */
.thea-list-page .appbar,
.thea-list-page .thea-document-toolbar,
.thea-list-page > .bg-white > .d-flex.justify-content-between.align-items-center:first-child,
.thea-list-page > .bg-white > .d-flex.align-items-center:first-child,
.thea-list-page > .thea-card > .d-flex.justify-content-between.align-items-center:first-child{
  position:relative !important;
  top:auto !important;
  z-index:2 !important;
  flex-wrap:wrap !important;
  gap:.75rem !important;
  overflow:visible !important;
}
.thea-list-page .thea-document-toolbar + *,
.thea-list-page .appbar + *,
.thea-list-page > .bg-white > .d-flex.justify-content-between.align-items-center:first-child + *,
.thea-list-page > .bg-white > .d-flex.align-items-center:first-child + *,
.thea-list-page > .thea-card > .d-flex.justify-content-between.align-items-center:first-child + *{
  margin-top:1rem !important;
  position:relative;
  z-index:1;
}
.thea-list-page h1,
.thea-list-page h2,
.thea-list-page h3{
  line-height:1.18 !important;
  overflow:visible !important;
}
.thea-list-page > .bg-white,
.thea-list-page > .thea-card,
.thea-list-page > .position-relative{
  overflow:visible !important;
}
.thea-list-page .summary-card,
.thea-list-page .stock-summary-card,
.thea-list-page .thea-card{
  overflow:visible !important;
}
.thea-list-page .summary-value{
  line-height:1.25 !important;
}
@media (max-width:767.98px){
  .thea-list-page .appbar,
  .thea-list-page .thea-document-toolbar,
  .thea-list-page > .bg-white > .d-flex.justify-content-between.align-items-center:first-child,
  .thea-list-page > .bg-white > .d-flex.align-items-center:first-child,
  .thea-list-page > .thea-card > .d-flex.justify-content-between.align-items-center:first-child{
    padding:.25rem 0 .65rem !important;
    margin-bottom:.75rem !important;
  }
  .thea-list-page .thea-document-toolbar + *,
  .thea-list-page .appbar + *,
  .thea-list-page > .bg-white > .d-flex.justify-content-between.align-items-center:first-child + *,
  .thea-list-page > .bg-white > .d-flex.align-items-center:first-child + *,
  .thea-list-page > .thea-card > .d-flex.justify-content-between.align-items-center:first-child + *{
    margin-top:.85rem !important;
  }
}


/* list-ui-search-dropdown-removal */
.thea-list-page .thea-list-suggest{
  display:none !important;
}


/* list-ui-filter-hide-fix */
/* TheaCRM v2.6.141 – Bootstrap utility třídy jako .d-block mají display:...!important,
   proto hidden atribut nestačí. Filtrování používá vlastní třídu s display:none!important. */
.thea-list-page .thea-list-hidden,
.thea-list-page [data-thea-list-item].thea-list-hidden,
.thea-list-page tr.thea-list-hidden,
.thea-list-page a.thea-list-hidden,
.thea-list-page div.thea-list-hidden{
  display:none !important;
}


/* list-ui-no-results-placement-fix */
/* TheaCRM v2.6.142 – hláška bez výsledků musí být ve správném panelu a nikdy se nesmí ukázat při prázdném hledání. */
.thea-list-no-results,
.thea-list-page .thea-list-no-results{
  display:none;
  width:100%;
  box-sizing:border-box;
  margin:1rem 0 0;
  clear:both;
}
.thea-list-page .thea-list-no-results[hidden],
.thea-list-no-results[hidden]{
  display:none !important;
}
.thea-list-page.thea-list-has-filter .thea-list-no-results:not([hidden]){
  display:block;
}


/* TheaCRM v2.8.471 – sjednocení hlaviček a vyhledávání listů
   Cíl: stejná typografie napříč listy, kompaktní modulová hlavička,
   vyhledávání jako jeden řádek: lupa + vstupní pole. */
.thea-list-page,
.thea-list-page input,
.thea-list-page button,
.thea-list-page select,
.thea-list-page textarea{
  font-family:inherit !important;
}
.thea-list-page > .bg-white,
.thea-list-page > .thea-card,
.thea-list-page > .position-relative{
  padding:1rem 1.1rem !important;
}
.thea-list-page .appbar,
.thea-list-page .thea-ui-module-header,
.thea-list-page .thea-list-module-header,
.thea-list-page > .bg-white > .d-flex.justify-content-between.align-items-center:first-child,
.thea-list-page > .bg-white > .d-flex.justify-content-between.align-items-start:first-child,
.thea-list-page > .bg-white > .d-flex.align-items-center:first-child,
.thea-list-page > .thea-card > .d-flex.justify-content-between.align-items-center:first-child,
.thea-list-page > .thea-card > .d-flex.justify-content-between.align-items-start:first-child{
  min-height:64px !important;
  padding:.25rem 0 .9rem !important;
  margin-bottom:1rem !important;
  border-bottom:1px solid #eef2ef !important;
  background:#fff !important;
}
.thea-list-page h1,
.thea-list-page h2,
.thea-list-page .thea-list-title{
  color:var(--thea-list-green) !important;
  font-size:1.38rem !important;
  line-height:1.12 !important;
  font-weight:850 !important;
  letter-spacing:-.025em !important;
  margin:0 !important;
}
.thea-list-page h3,
.thea-list-page .organization-card h3,
.thea-list-page .project-card h3,
.thea-list-page .task-card h3,
.thea-list-page .invoice-card h3,
.thea-list-page .offer-card h3,
.thea-list-page .doc-card h3,
.thea-list-page .stock-mobile-card h3{
  color:var(--thea-list-green) !important;
  font-size:1.06rem !important;
  line-height:1.22 !important;
  font-weight:800 !important;
  letter-spacing:-.015em !important;
}
.thea-list-page .thea-list-header-actions{
  flex-shrink:0;
}
.thea-list-page .thea-list-search-form,
.thea-list-page form.thea-list-search-form,
.thea-list-page .stock-search-form{
  display:flex !important;
  flex-wrap:nowrap !important;
  align-items:center !important;
  gap:.65rem !important;
  width:min(100%, 620px) !important;
  max-width:620px !important;
  min-height:52px !important;
  background:#f6f8f6 !important;
  border:1px solid #e8eee9 !important;
  border-radius:999px !important;
  padding:.35rem .85rem !important;
  box-shadow:0 8px 22px rgba(16,24,40,.045) !important;
}
.thea-list-page .thea-list-search-form > i,
.thea-list-page .stock-search-form > i,
.thea-list-page .thea-list-search-form .bi-search{
  flex:0 0 auto !important;
  width:1.25rem !important;
  min-width:1.25rem !important;
  text-align:center !important;
  color:#1f2933 !important;
  font-size:1.08rem !important;
  line-height:1 !important;
}
.thea-list-page .thea-list-search-form .form-control,
.thea-list-page .stock-search-form .form-control{
  flex:1 1 auto !important;
  width:auto !important;
  min-width:0 !important;
  max-width:none !important;
  height:auto !important;
  min-height:42px !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  padding:.45rem .15rem !important;
  font-size:1rem !important;
}
.thea-list-page .thea-list-search-form .form-control::placeholder,
.thea-list-page .stock-search-form .form-control::placeholder{
  color:#667085 !important;
  opacity:1 !important;
}
.thea-list-page .thea-list-search-form .btn[type="submit"],
.thea-list-page .stock-search-form .btn[type="submit"]{
  display:none !important;
}
.thea-list-page .organization-card,
.thea-list-page .machine-card,
.thea-list-page .task-card,
.thea-list-page .project-card,
.thea-list-page .call-card,
.thea-list-page .invoice-card,
.thea-list-page .offer-card,
.thea-list-page .doc-card,
.thea-list-page .thea-doc-card,
.thea-list-page .stock-mobile-card{
  border-radius:1rem !important;
}
@media (max-width:767.98px){
  .thea-list-page > .bg-white,
  .thea-list-page > .thea-card,
  .thea-list-page > .position-relative{
    padding:.85rem .9rem !important;
  }
  .thea-list-page .appbar,
  .thea-list-page .thea-ui-module-header,
  .thea-list-page .thea-list-module-header,
  .thea-list-page > .bg-white > .d-flex.justify-content-between.align-items-center:first-child,
  .thea-list-page > .bg-white > .d-flex.justify-content-between.align-items-start:first-child,
  .thea-list-page > .bg-white > .d-flex.align-items-center:first-child,
  .thea-list-page > .thea-card > .d-flex.justify-content-between.align-items-center:first-child,
  .thea-list-page > .thea-card > .d-flex.justify-content-between.align-items-start:first-child{
    min-height:58px !important;
    padding:.15rem 0 .75rem !important;
    margin-bottom:.85rem !important;
  }
  .thea-list-page h1,
  .thea-list-page h2,
  .thea-list-page .thea-list-title{
    font-size:1.22rem !important;
  }
  .thea-list-page .thea-list-search-form,
  .thea-list-page form.thea-list-search-form,
  .thea-list-page .stock-search-form{
    width:100% !important;
    max-width:100% !important;
    min-height:48px !important;
    padding:.25rem .75rem !important;
  }
}


/* TheaCRM v2.8.471 – sjednocení listů dokladů, nabídek a faktur
   Dokumentové moduly používají stejnou horní hranu, titulkový font a akční zónu jako Organizations. */
.thea-list-page .thea-document-toolbar,
.thea-list-page.thea-document-list-page .thea-ui-module-header{
  min-height:64px !important;
  padding:.25rem 0 .9rem !important;
  margin-bottom:1rem !important;
  border-bottom:1px solid #eef2ef !important;
  background:#fff !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:1rem !important;
  position:relative !important;
  top:auto !important;
  z-index:4 !important;
}
.thea-list-page .thea-list-subtitle{
  margin-top:.25rem !important;
  color:#667085 !important;
  font-weight:500 !important;
  line-height:1.25 !important;
}
.thea-list-page.thea-document-list-page .summary-card,
.thea-list-page.thea-document-list-page .card.shadow-sm{
  border:1px solid #e7ece7 !important;
  border-radius:1rem !important;
  box-shadow:0 1px 5px rgba(0,0,0,.045) !important;
  background:#fbfdfb !important;
}
.thea-list-page.thea-document-list-page .summary-label,
.thea-list-page.thea-document-list-page .small.text-muted{
  color:#667085 !important;
}
.thea-list-page.thea-document-list-page .summary-value,
.thea-list-page.thea-document-list-page .fs-5.fw-semibold{
  color:#1f2933 !important;
  font-weight:800 !important;
}
.thea-list-page.thea-document-list-page .btn.btn-sm{
  border-radius:999px !important;
  font-weight:700 !important;
}
.thea-list-page.thea-document-list-page .table-responsive{
  border-radius:1rem !important;
}
@media (max-width:767.98px){
  .thea-list-page .thea-document-toolbar,
  .thea-list-page.thea-document-list-page .thea-ui-module-header{
    min-height:58px !important;
    padding:.15rem 0 .75rem !important;
    margin-bottom:.85rem !important;
    gap:.75rem !important;
  }
  .thea-list-page .thea-list-subtitle{
    font-size:.82rem !important;
  }
}
