/* KVK Grocery Delivery Module Test Workbench v5.7.36 / shared layer v3.9.266
   REAL PAGE CONTINUITY + REPORT-GENERATOR-PARITY LOGBOOK DATE CONTROLS

   Locked correction:
   - No cover, overlay, splash, white blanking, watermark-only blanking, opacity hide,
     visibility hide or outgoing-page concealment is allowed.
   - The previous real #app markup is restored from the exact same tab/role/store/module
     snapshot while the current document starts, then the live application replaces it.
   - Logbook uses Report Generator-style Date Shortcut + From/To DD/MM/YYYY controls.
   - All Days checkbox is removed. Default is Today with current India date.
   - v39265 category two-column inner-list layout and lighter theme remain protected. */

/* Permanently neutralize the rejected v39259/v39265 body-hiding boot behavior.
   These selectors intentionally outrank the historical rules without creating any cover. */
html.kvk-booting-v39259 body,
html.kvk-booting-v39265 body,
html.kvk-booting-v39266 body{
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
  transition:none!important;
}
html,html.kvk-booting-v39259,html.kvk-booting-v39265,html.kvk-booting-v39266{
  background-color:#edf7f8!important;
}

/* The restored markup is the actual previous application page, not an overlay. */
html body[data-role] #app[data-kvk-continuity-restored-v39266="true"]{
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
}

/* New Logbook layout mirrors Report Generator: filters, date row and action row. */
html body[data-role] .logbook-panel-v39266{overflow:visible!important}
html body[data-role] .logbook-filters-v39266{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(150px,1fr))!important;
  gap:10px!important;
  align-items:end!important;
  width:100%!important;
  margin:10px 0 0!important;
}
html body[data-role] .logbook-filter-field-v39266,
html body[data-role] .logbook-date-field-wrap-v39266{
  display:flex!important;
  flex-direction:column!important;
  min-width:0!important;
  gap:5px!important;
}
html body[data-role] .logbook-filter-field-v39266>label,
html body[data-role] .logbook-date-field-wrap-v39266>label{
  display:block!important;
  margin:0!important;
  color:var(--kvk-v39241-text,#143549)!important;
  font-size:12px!important;
  line-height:1.2!important;
  font-weight:850!important;
}
html body[data-role] .logbook-filters-v39266 select,
html body[data-role] .logbook-filters-v39266 input[type="search"]{
  width:100%!important;
  min-width:0!important;
  height:44px!important;
  min-height:44px!important;
  margin:0!important;
  border-radius:12px!important;
  box-sizing:border-box!important;
}
html body[data-role] .logbook-search-field-v39266{grid-column:span 2!important}

/* Professional visible text field + separate calendar button, same ownership model as Report Generator/Graph. */
html body[data-role] .logbook-professional-date-v39266.professional-date-field-v39200{
  position:relative!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 44px!important;
  align-items:stretch!important;
  width:100%!important;
  min-width:0!important;
  height:44px!important;
  margin:0!important;
  overflow:visible!important;
  background:transparent!important;
}
html body[data-role] .logbook-professional-date-v39266 .professional-date-display-v39200{
  grid-column:1/2!important;
  grid-row:1!important;
  width:100%!important;
  min-width:0!important;
  height:44px!important;
  min-height:44px!important;
  margin:0!important;
  padding:8px 11px!important;
  border-radius:12px 0 0 12px!important;
  border-right:0!important;
  box-sizing:border-box!important;
  line-height:1.2!important;
}
html body[data-role] .logbook-professional-date-v39266 .professional-date-button-v39200{
  grid-column:2/3!important;
  grid-row:1!important;
  display:grid!important;
  place-items:center!important;
  width:44px!important;
  min-width:44px!important;
  height:44px!important;
  min-height:44px!important;
  margin:0!important;
  padding:0!important;
  border:1px solid var(--kvk-v39241-line,#88b4be)!important;
  border-left:0!important;
  border-radius:0 12px 12px 0!important;
  background:var(--kvk-v39241-control,rgba(226,243,245,.92))!important;
  color:#123c54!important;
  font-size:20px!important;
  line-height:1!important;
  cursor:pointer!important;
  box-sizing:border-box!important;
}
html body[data-role] .logbook-professional-date-v39266 .professional-date-button-v39200:hover{
  background:var(--kvk-v39241-control-hover,rgba(215,238,241,.97))!important;
}
/* v39265 broadly made input[type=date] visible. Restore the source picker to hidden programmatic ownership. */
html body[data-role] .logbook-professional-date-v39266 .professional-date-picker-v39200,
html body[data-role] .logbook-professional-date-v39266 input[type="date"][data-logbook-calendar-source-v39266]{
  position:absolute!important;
  right:2px!important;
  bottom:2px!important;
  display:block!important;
  width:1px!important;
  min-width:1px!important;
  max-width:1px!important;
  height:1px!important;
  min-height:1px!important;
  max-height:1px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  opacity:0!important;
  visibility:visible!important;
  pointer-events:none!important;
  overflow:hidden!important;
  box-shadow:none!important;
  background:transparent!important;
}
html body[data-role] .logbook-professional-date-v39266.is-readonly-v39266 .professional-date-display-v39200{
  cursor:default!important;
}
html body[data-role] .logbook-professional-date-v39266.is-invalid-v39266 .professional-date-display-v39200{
  border-color:#dc2626!important;
  box-shadow:0 0 0 3px rgba(220,38,38,.12)!important;
}

html body[data-role] .logbook-actions-v39266{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(130px,1fr))!important;
  gap:10px!important;
  width:100%!important;
  margin-top:10px!important;
}
html body[data-role] .logbook-actions-v39266 .btn{
  width:100%!important;
  min-height:36px!important;
  margin:0!important;
}

/* The obsolete checkbox must never appear, including stale restored markup. */
html body[data-role] .logbook-all-days-v39264,
html body[data-role] [data-action="logbook-all-days-v39264"]{
  display:none!important;
}

@media(max-width:900px){
  html body[data-role] .logbook-filters-v39266{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  html body[data-role] .logbook-search-field-v39266{grid-column:1/-1!important}
  html body[data-role] .logbook-actions-v39266{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:520px){
  html body[data-role] .logbook-filters-v39266{grid-template-columns:1fr!important}
  html body[data-role] .logbook-search-field-v39266{grid-column:auto!important}
  html body[data-role] .logbook-actions-v39266{grid-template-columns:1fr!important}
}
@media print{
  .logbook-filters-v39266,.logbook-actions-v39266{display:none!important}
  html body[data-role] .logbook-panel-v39266{background:#fff!important}
}
