
/* V0.9.3 — targeted layout and consistency corrections only */
#view-quotes .v072-quote-layout,
#view-quotes .v072-quote-layout.outline-open,
#view-quotes .v072-quote-layout.outline-open.inspector-closed,
#view-quotes .v072-quote-layout.inspector-closed{
  grid-template-columns:minmax(0,1fr)!important;
  align-items:start!important;
}
#view-quotes .v072-quote-outline{display:none!important}
#view-quotes .v072-quote-main{
  grid-column:1/-1!important;
  width:100%!important;
  min-width:0!important;
}
#view-quotes .v071-quote-summary,
#view-quotes .v072-quote-summary{
  grid-column:1/-1!important;
  position:static!important;
  top:auto!important;
  width:100%!important;
  max-width:none!important;
  max-height:none!important;
  overflow:visible!important;
  margin-top:14px!important;
}
#view-quotes .v072-quote-scroll{
  max-height:calc(100vh - 280px)!important;
  min-height:500px!important;
}
#view-quotes .v094-summary-grid{
  display:grid!important;
  grid-template-columns:minmax(250px,.8fr) minmax(300px,1fr) minmax(330px,1.15fr)!important;
  gap:14px!important;
  align-items:start!important;
}
#view-quotes .v094-summary-column{
  display:grid!important;
  gap:10px!important;
  align-content:start!important;
  min-width:0!important;
}
#view-quotes .v094-summary-column .v071-summary-actions{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
}
#view-quotes .v094-summary-column .v071-summary-actions .primary:last-child{
  grid-column:1/-1!important;
}
#view-quotes [data-v071-item="POS-091"] input[data-v071-field="price"],
#view-quotes [data-v071-item="POS-092"] input[data-v071-field="price"]{
  cursor:not-allowed!important;
  opacity:.82!important;
}

/* Requests: keep only the comfortable density option and align all row menus */
#view-requests .v071-row-tools{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 30px!important;
  width:100%!important;
  min-width:0!important;
  align-items:center!important;
  gap:9px!important;
}
#view-requests .v071-row-tools>span:first-child{
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
#view-requests .v071-row-menu{
  justify-self:end!important;
  align-self:center!important;
  width:30px!important;
  min-width:30px!important;
  height:30px!important;
  min-height:30px!important;
  padding:0!important;
  margin:0!important;
  display:grid!important;
  place-items:center!important;
  line-height:1!important;
  transform:none!important;
}

/* Calendar: prevent generic button/danger rules from inflating status dots */
#view-calendar .resource-state,
#view-calendar i.resource-state,
#view-calendar .resource-state.danger,
#view-calendar .resource-state.live,
#view-calendar .resource-state.warn,
#view-calendar .resource-state.ok{
  position:static!important;
  justify-self:end!important;
  display:block!important;
  width:7px!important;
  min-width:7px!important;
  max-width:7px!important;
  height:7px!important;
  min-height:7px!important;
  max-height:7px!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  border-radius:50%!important;
  line-height:0!important;
  font-size:0!important;
  transform:none!important;
  animation:none!important;
}
#view-calendar .resource-state.danger{background:var(--pro-danger)!important;box-shadow:0 0 8px rgba(255,105,95,.42)!important}
#view-calendar .resource-state.live{background:var(--accent)!important;box-shadow:0 0 8px rgba(249,64,6,.42)!important}
#view-calendar .resource-state.warn{background:var(--pro-warn)!important;box-shadow:0 0 8px rgba(255,198,95,.35)!important}
#view-calendar .resource-state.ok{background:var(--pro-ok)!important;box-shadow:0 0 8px rgba(110,215,167,.32)!important}

/* Apply one restrained glow pulse to every resource tile; no scaling or movement */
@keyframes v094ResourceTilePulseOrange{
  0%,100%{box-shadow:0 0 0 0 rgba(249,64,6,.06),0 0 10px rgba(249,64,6,.10)}
  50%{box-shadow:0 0 0 5px rgba(249,64,6,.035),0 0 17px rgba(249,64,6,.18)}
}
@keyframes v094ResourceTilePulseBlue{
  0%,100%{box-shadow:0 0 0 0 rgba(112,169,255,.06),0 0 10px rgba(112,169,255,.10)}
  50%{box-shadow:0 0 0 5px rgba(112,169,255,.035),0 0 17px rgba(112,169,255,.18)}
}
@keyframes v094ResourceTilePulseViolet{
  0%,100%{box-shadow:0 0 0 0 rgba(172,140,255,.06),0 0 10px rgba(172,140,255,.10)}
  50%{box-shadow:0 0 0 5px rgba(172,140,255,.035),0 0 17px rgba(172,140,255,.18)}
}
#view-calendar .resource-avatar{
  position:static!important;
  inset:auto!important;
  transform:none!important;
  animation:v094ResourceTilePulseOrange 3.1s ease-in-out infinite!important;
}
#view-calendar .resource-avatar.vehicle{
  position:static!important;
  inset:auto!important;
  transform:none!important;
  animation:v094ResourceTilePulseBlue 3.1s ease-in-out infinite!important;
}
#view-calendar .resource-avatar.partner{
  position:static!important;
  inset:auto!important;
  transform:none!important;
  animation:v094ResourceTilePulseViolet 3.1s ease-in-out infinite!important;
}

@media(max-width:1180px){
  #view-quotes .v094-summary-grid{grid-template-columns:1fr 1fr!important}
  #view-quotes .v094-summary-column:last-child{grid-column:1/-1!important}
}
@media(max-width:760px){
  #view-quotes .v094-summary-grid{grid-template-columns:1fr!important}
  #view-quotes .v094-summary-column:last-child{grid-column:auto!important}
  #view-quotes .v072-quote-scroll{min-height:430px!important}
}
