/* WLP_STREAMLINE_V1 */
#wlpStreamlineTop{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0 18px}#wlpStreamlineTop button{flex:1 1 160px}#wlpStreamlineTop .wlp-streamline-primary{font-size:1.12rem;font-weight:700;min-height:52px}.wlp-streamline-hidden-tab{display:none!important}#wlpStreamlineMore{position:relative;align-self:center;z-index:40}#wlpStreamlineMore summary{cursor:pointer;padding:10px 16px;border:1px solid #526176;border-radius:8px;list-style:none}#wlpStreamlineMore .wlp-streamline-menu{position:absolute;right:0;top:100%;min-width:210px;max-height:65vh;overflow:auto;background:#172234;border:1px solid #526176;border-radius:9px;padding:8px;box-shadow:0 10px 25px #0008;display:grid;gap:5px}#wlpStreamlineMore:not([open]) .wlp-streamline-menu{display:none}#wlpStreamlineMore button{width:100%;text-align:left}#dashboard #wlpFinancePanel,#dashboard #wlp-field-workspace,#dashboard .wlp-field-start,#dashboard .wlp-ux-dashboard-actions,#dashboard .wlp-report-table{display:none!important}#dashboard #recent .record{padding:12px;margin:8px 0}#wlpStreamlineModal[hidden]{display:none!important}#wlpStreamlineModal{position:fixed;inset:0;z-index:10000;background:#000b;overflow:auto;display:flex;justify-content:center;align-items:flex-start;padding:24px 12px}#wlpStreamlineModal .wlp-streamline-dialog{width:min(620px,100%);background:#172234;color:#f3f6fa;border:1px solid #526176;border-radius:14px;padding:20px}#wlpStreamlineModal label{display:block;margin:10px 0}#wlpStreamlineModal input,#wlpStreamlineModal select,#wlpStreamlineModal textarea{width:100%;box-sizing:border-box}#wlpStreamlineModal .wlp-streamline-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}#wlpStreamlineModal .wlp-streamline-actions{display:flex;gap:10px;margin-top:16px}#wlpStreamlineError{color:#ffb4b4}#wlpStreamlineCustomerFields[hidden],#wlpStreamlineVehicleFields[hidden]{display:none!important}#invoices .record[hidden]{display:none!important}@media(max-width:480px){#wlpStreamlineModal .wlp-streamline-grid{grid-template-columns:1fr 1fr}#wlpStreamlineTop button{flex-basis:100%}}


/* WLP MORE MENU PERMANENT LAYOUT FIX */
#nav {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: flex-start !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

#wlpStreamlineMore {
  position: static !important;
}

#wlpStreamlineMore[open] {
  flex-basis: 100% !important;
}

#wlpStreamlineMore .wlp-streamline-menu {
  position: static !important;
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)) !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: none !important;
  max-height: none !important;
  overflow: visible !important;
  margin-top: 12px !important;
}

#wlpStreamlineMore:not([open]) .wlp-streamline-menu {
  display: none !important;
}

#nav > button {
  align-self: flex-start !important;
  height: auto !important;
}

/* WLP_COMPACT_UI_V1: compact expandable records, existing action buttons retained */
#customerList .wlp-compact-record,#vehicleList .wlp-compact-record,#serviceList .wlp-compact-record{padding:0!important;margin:7px 0!important;overflow:hidden}
.wlp-compact-record>summary{display:flex;flex-wrap:wrap;align-items:center;gap:4px 14px;padding:13px 15px;cursor:pointer;list-style:none;min-height:40px}
.wlp-compact-record>summary::-webkit-details-marker{display:none}
.wlp-compact-record>summary:before{content:'▸';font-size:1.1rem;color:#f59e0b}
.wlp-compact-record[open]>summary:before{content:'▾'}
.wlp-compact-main{font-weight:700;flex:1 1 180px}
.wlp-compact-sub{font-size:.88rem;opacity:.8;flex:1 1 180px}
.wlp-compact-record>summary:focus-visible{outline:2px solid #f59e0b;outline-offset:-3px}
.wlp-compact-detail{padding:0 15px 14px;border-top:1px solid #526176}
.wlp-compact-detail p{margin:10px 0}
/* Close form only appears when the associated form is actually visible. */
#customers:has(> #customerForm[hidden])>.wlp-ux-toolbar button:nth-child(2),
#vehicles:has(> #vehicleForm[hidden])>.wlp-ux-toolbar button:nth-child(2),
#services:has(> #serviceForm[hidden])>.wlp-ux-toolbar button:nth-child(2){display:none!important}
@media(max-width:560px){.wlp-compact-record>summary{gap:3px 8px}.wlp-compact-main,.wlp-compact-sub{flex-basis:100%}}


/* WLP_MORE_LABEL_WRAP_V1 */
#wlpStreamlineMore .wlp-streamline-menu {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)) !important;
}
#wlpStreamlineMore .wlp-streamline-menu > button {
  box-sizing: border-box !important;
  min-width: 0 !important;
  width: 100% !important;
  height: auto !important;
  min-height: 44px !important;
  padding: 10px 12px !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  text-align: left !important;
  line-height: 1.35 !important;
}
