/* [TFH-601:TFH_COVER_NOTE_ENTRY:CSS-START] */
.tfh-cover-index-screen,.tfh-cover-entry-screen{height:100dvh;display:flex;flex-direction:column;background:linear-gradient(135deg,#edf3f8,#f9fbfd)}
.tfh-cover-index-body,.tfh-cover-entry-body{min-height:0;flex:1;overflow:auto;padding:18px 22px}
.tfh-cover-create-button{display:flex;align-items:center;gap:12px;padding:9px 18px;border:1px solid rgba(255,255,255,.55);border-radius:14px;color:#fff;background:linear-gradient(145deg,#d3a24e,#956014);box-shadow:inset 0 1px rgba(255,255,255,.4),0 10px 26px rgba(121,77,12,.3);cursor:pointer}
.tfh-cover-create-button small,.tfh-cover-create-button strong{display:block;text-align:left}.tfh-cover-create-button small{font-size:.62rem;letter-spacing:.15em}.tfh-cover-create-icon{font-size:1.8rem}
.tfh-cover-filter-card,.tfh-cover-header-card{display:grid;gap:12px;padding:15px;border:1px solid var(--tfh-line);border-radius:16px;background:#fff;box-shadow:0 10px 30px rgba(17,49,84,.08)}
.tfh-cover-header-card{grid-template-columns:minmax(165px,.72fr) minmax(260px,1.3fr) minmax(300px,1.65fr)}
.tfh-cover-filter-card{grid-template-columns:repeat(auto-fit,minmax(175px,1fr));align-items:end}
.tfh-cover-filter-card label,.tfh-cover-header-card label{display:grid;min-width:0;gap:5px}.tfh-cover-filter-card label>span,.tfh-cover-header-card label>span{font-size:.7rem;font-weight:850;color:#536578;text-transform:uppercase;letter-spacing:.07em}
.tfh-cover-filter-card input,.tfh-cover-filter-card select,.tfh-cover-header-card input{width:100%;min-width:0;min-height:40px;border:1px solid #cbd5df;border-radius:10px;padding:8px 10px;background:#fff}
.tfh-cover-invoice-filters{margin-top:13px;grid-template-columns:repeat(auto-fit,minmax(165px,1fr))}.tfh-cover-invoice-filters .tfh-primary-button{min-height:40px;align-self:end}
.tfh-cover-period-toggle{align-content:center}.tfh-cover-toggle-line{display:flex!important;align-items:center;gap:7px;text-transform:none!important;letter-spacing:0!important}.tfh-cover-toggle-line input{width:auto!important;min-height:auto!important}
.tfh-cover-client-shell{position:relative;min-width:0}.tfh-cover-suggestions{position:absolute;z-index:18000;top:calc(100% + 5px);left:0;right:0;max-height:280px;overflow:auto;border:1px solid #b8c6d4;border-radius:12px;background:#fff;box-shadow:0 18px 50px rgba(4,16,31,.25)}
.tfh-cover-suggestions button{width:100%;display:flex;justify-content:space-between;gap:10px;padding:10px;border:0;border-bottom:1px solid #e5ebf0;background:#fff;text-align:left;cursor:pointer}.tfh-cover-suggestions button:hover{background:#edf5fb}.tfh-cover-suggestions span{color:#617386}
.tfh-cover-dual-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;margin-top:13px;min-height:430px}
.tfh-cover-grid-card{min-width:0;display:flex;flex-direction:column;overflow:hidden;border:1px solid #bcc9d5;border-radius:16px;background:#fff;box-shadow:0 12px 32px rgba(17,49,84,.1)}
.tfh-cover-grid-card>header{display:flex;justify-content:space-between;align-items:center;padding:13px 15px;color:#fff;background:linear-gradient(#6f879b,#334d63)}.tfh-cover-grid-card.is-included>header{background:linear-gradient(145deg,#163f6b,#0a2747)}
.tfh-cover-grid-card header span{font-size:.63rem;letter-spacing:.14em;color:#d8e4ee}.tfh-cover-grid-card h2{margin:2px 0 0;font-size:1rem}.tfh-cover-grid-card header strong{display:grid;place-items:center;min-width:38px;height:30px;border-radius:10px;background:rgba(255,255,255,.15)}
.tfh-cover-grid-scroll{min-height:0;flex:1;overflow:auto}.tfh-cover-grid-card table,.tfh-cover-index-table{width:100%;border-collapse:collapse;font-size:.79rem}.tfh-cover-grid-card th,.tfh-cover-grid-card td,.tfh-cover-index-table th,.tfh-cover-index-table td{padding:9px 8px;border-bottom:1px solid #e1e7ed;text-align:left}.tfh-cover-grid-card th,.tfh-cover-index-table th{position:sticky;top:0;z-index:2;background:#e9eff4;color:#344b60}
.tfh-cover-grid-card tr,.tfh-cover-index-table tr{cursor:pointer}.tfh-cover-grid-card:not(.is-included) tbody tr:hover,.tfh-cover-index-table tbody tr:hover{background:#dcecff}.tfh-cover-grid-card.is-included tbody tr:hover{background:#e3f5ea}.tfh-cover-index-table tr.is-selected{background:#dcecff;box-shadow:inset 4px 0 #1d5f9f}
.tfh-cover-grid-card .is-number,.tfh-cover-index-table .is-number{text-align:right;font-variant-numeric:tabular-nums}.tfh-cover-grid-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 14px;color:#607184;background:#f5f8fa;font-size:.73rem}
.tfh-cover-bulk-button{min-width:105px;padding:8px 13px;border:1px solid #56748e;border-radius:10px;color:#fff;background:linear-gradient(#6f879b,#334d63);font-weight:800;cursor:pointer}.tfh-cover-bulk-button.is-danger{border-color:#9e3028;background:linear-gradient(#d15348,#98241c)}
.tfh-cover-remove-column{width:64px;text-align:center!important}.tfh-cover-row-remove{width:30px;height:30px;border:1px solid #ca6c64;border-radius:9px;color:#a92319;background:#fff2f1;font-size:1.25rem;line-height:1;cursor:pointer}.tfh-cover-row-remove:hover{color:#fff;background:#b42318}
.tfh-cover-footer{display:flex;align-items:center;gap:18px;min-height:72px;padding:10px 22px;color:#fff;background:linear-gradient(#1a3f65,#09233f);box-shadow:0 -8px 25px rgba(0,0,0,.15)}.tfh-cover-footer>div{display:grid;min-width:135px}.tfh-cover-footer strong{font-size:1.12rem}.tfh-cover-footer span{font-size:.72rem;color:#c5d4e1}.tfh-cover-footer-note{margin-right:auto!important;max-width:430px}
.tfh-cover-index-table-wrap{height:calc(100% - 118px);min-height:350px;margin-top:14px;overflow:auto;border:1px solid #bdc9d4;border-radius:16px;background:#fff}.tfh-cover-index-table th:nth-child(1){width:75px}.tfh-cover-index-table th:nth-child(2){width:110px}.tfh-cover-index-table th:nth-child(5){width:90px}.tfh-cover-index-table th:nth-child(6){width:140px}
.tfh-cover-pdf-layer{position:fixed;inset:0;z-index:28000;display:grid;place-items:center;padding:18px;background:rgba(3,14,28,.76);backdrop-filter:blur(7px)}.tfh-cover-pdf-card{width:min(1180px,96vw);height:min(900px,94vh);display:flex;flex-direction:column;overflow:hidden;border:1px solid rgba(255,255,255,.32);border-radius:20px;background:#fff;box-shadow:0 35px 100px rgba(0,0,0,.5)}.tfh-cover-pdf-body{min-height:0;flex:1;background:#59636e}.tfh-cover-pdf-body iframe{width:100%;height:100%;border:0;background:#fff}
@media(max-width:1100px){.tfh-cover-header-card{grid-template-columns:minmax(160px,.65fr) minmax(240px,1fr)}.tfh-cover-ref-field{grid-column:1/-1}.tfh-cover-dual-grid{grid-template-columns:1fr}.tfh-cover-grid-card{min-height:390px}}
@media(max-width:760px){.tfh-cover-header-card,.tfh-cover-filter-card,.tfh-cover-invoice-filters{grid-template-columns:1fr}.tfh-cover-ref-field{grid-column:auto}.tfh-cover-index-body,.tfh-cover-entry-body{padding:12px}.tfh-cover-footer{flex-wrap:wrap}.tfh-cover-footer-note{order:5;width:100%}.tfh-cover-grid-actions{align-items:stretch;flex-direction:column}.tfh-cover-bulk-button{width:100%}.tfh-cover-pdf-layer{padding:6px}.tfh-cover-pdf-card{width:100%;height:98vh;border-radius:12px}}
@media(max-width:560px){.tfh-cover-create-button small{display:none}.tfh-cover-footer>div{min-width:110px}.tfh-cover-pdf-card .tfh-pdf-viewer-header{align-items:flex-start;gap:10px}.tfh-cover-pdf-card .tfh-pdf-viewer-actions{flex-wrap:wrap}}
/* [TFH-601:TFH_COVER_NOTE_ENTRY:CSS-END] */
/* [TFH-601:TFH_COVER_NOTE_ENTRY:CSS-REFINEMENT-START] */
.tfh-cover-entry-body {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.tfh-cover-header-card,
.tfh-cover-filter-card {
  flex: 0 0 auto;
}

.tfh-cover-dual-grid {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  margin-top: 10px;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
}

.tfh-cover-grid-card {
  min-height: 0;
  height: 100%;
}

.tfh-cover-grid-card > header {
  min-height: 48px;
  padding: 7px 10px;
}

.tfh-cover-grid-card header span {
  font-size: .58rem;
}

.tfh-cover-grid-card h2 {
  margin-top: 1px;
  font-size: .92rem;
}

.tfh-cover-grid-head-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.tfh-cover-grid-head-actions > strong {
  min-width: 34px !important;
  height: 28px !important;
}

.tfh-cover-grid-head-actions .tfh-cover-bulk-button {
  min-width: 88px;
  padding: 6px 10px;
  border-color: rgba(255,255,255,.38);
  font-size: .72rem;
}

.tfh-cover-grid-scroll {
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto;
  overscroll-behavior: contain;
}

.tfh-cover-grid-card table {
  width: max-content;
  min-width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: .76rem;
}

.tfh-cover-grid-card th,
.tfh-cover-grid-card td {
  padding: 6px 6px;
  border-right: 1px solid #d7dde3;
  border-bottom: 1px solid #d7dde3;
  vertical-align: middle;
}

.tfh-cover-grid-card th:last-child,
.tfh-cover-grid-card td:last-child {
  border-right: 0;
}

.tfh-cover-grid-card th {
  height: 31px;
  padding-top: 4px;
  padding-bottom: 4px;
  text-align: center !important;
  white-space: normal;
  line-height: 1.12;
  color: #fff;
  background: linear-gradient(#6f879b,#334d63);
}

.tfh-cover-grid-card.is-included th {
  background: linear-gradient(#536f89,#263f58);
}

.tfh-cover-grid-card tbody tr:nth-child(even) {
  background: #f7f9fb;
}

.tfh-cover-grid-card tbody tr.is-to-decide {
  background: #fff8d8;
  box-shadow: inset 4px 0 #d9aa24;
}

.tfh-cover-grid-card tbody tr.is-finalized {
  background: #eef7f1;
  box-shadow: inset 4px 0 #4b9b6e;
}

.tfh-cover-grid-card tbody tr.is-to-decide:nth-child(even) {
  background: #fff3c2;
}

.tfh-cover-grid-card tbody tr.is-finalized:nth-child(even) {
  background: #e4f2e9;
}

.tfh-cover-guest-cell {
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.3;
  vertical-align: top !important;
}

.tfh-cover-status-cell {
  text-align: center;
  font-weight: 800;
}

.tfh-cover-status-cell.is-to-decide {
  color: #8b6400;
}

.tfh-cover-status-cell.is-finalized {
  color: #237349;
}

.tfh-cover-receipt-cell {
  color: #18794e;
  font-weight: 850;
  text-align: center;
}

.tfh-cover-grid-total-footer {
  flex: 0 0 auto;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 7px 11px;
  border-top: 1px solid #cbd4dd;
  color: #33495d;
  background: linear-gradient(#f9fbfc,#e8edf2);
  font-size: .72rem;
}

.tfh-cover-grid-total-footer strong {
  color: #132f4d;
  font-variant-numeric: tabular-nums;
}

.tfh-cover-remove-column {
  width: 58px;
  text-align: center !important;
}

@media(max-width:1100px) {
  .tfh-cover-entry-body {
    overflow: auto;
  }

  .tfh-cover-dual-grid {
    height: auto;
  }

  .tfh-cover-grid-card {
    min-height: 390px;
  }
}
/* [TFH-601:TFH_COVER_NOTE_ENTRY:CSS-REFINEMENT-END] */
