/* source block 136: local-v2-13-63-job-card-typography-definitive; v2.19.18 line 32008 */

/* LOCAL v2.13.63 — definitive Job Card Styling render.
   This intentionally sits last: historical POC planner rules must not override saved per-line typography. */

/* Header hierarchy: TIME first, CUSTOMER second. Never allow old flex order rules to invert this. */
.time-entry.planner-ticket-v2 > .planner-ticket-head .planner-ticket-time,
.time-entry.planner-ticket-v2.compact-1h > .planner-ticket-head .planner-ticket-time{
  order:0!important;
  flex:0 0 auto!important;
  margin:0!important;
}
.time-entry.planner-ticket-v2 > .planner-ticket-head .planner-ticket-customer-head,
.time-entry.planner-ticket-v2.compact-1h > .planner-ticket-head .planner-ticket-customer-head{
  order:1!important;
  flex:1 1 auto!important;
  min-width:0!important;
  margin:0!important;
}

/* Exact saved typography: no clamp/rem fallback that makes different selected sizes look the same. */
.time-entry.planner-ticket-v2 > .planner-ticket-head .planner-ticket-customer-head,
.time-entry.planner-ticket-v2.compact-1h > .planner-ticket-head .planner-ticket-customer-head{
  font-family:var(--customer-font,Arial,sans-serif)!important;
  font-size:var(--customer-size,12px)!important;
  font-weight:var(--customer-weight,800)!important;
  color:var(--customer-fg,#fff)!important;
  line-height:1!important;
}
.time-entry.planner-ticket-v2 > .planner-ticket-body .planner-ticket-address,
.time-entry.planner-ticket-v2.compact-1h > .planner-ticket-body .planner-ticket-address{
  font-family:var(--address-font,Arial,sans-serif)!important;
  font-size:var(--address-size,11px)!important;
  font-weight:var(--address-weight,400)!important;
  color:var(--address-fg,var(--ticket-fg,#101827))!important;
  line-height:1.05!important;
}
.time-entry.planner-ticket-v2 > .planner-ticket-body .planner-ticket-product,
.time-entry.planner-ticket-v2.compact-1h > .planner-ticket-body .planner-ticket-product,
.time-entry.planner-ticket-v2 > .planner-ticket-body .planner-ticket-product strong,
.time-entry.planner-ticket-v2 > .planner-ticket-body .planner-ticket-product span,
.time-entry.planner-ticket-v2.compact-1h > .planner-ticket-body .planner-ticket-product strong,
.time-entry.planner-ticket-v2.compact-1h > .planner-ticket-body .planner-ticket-product span{
  font-family:var(--product-font,Arial,sans-serif)!important;
  font-size:var(--product-size,11px)!important;
  font-weight:var(--product-weight,800)!important;
  color:var(--product-fg,var(--ticket-fg,#101827))!important;
  line-height:1.05!important;
}
.time-entry.planner-ticket-v2 > .planner-ticket-body .planner-ticket-meta,
.time-entry.planner-ticket-v2.compact-1h > .planner-ticket-body .planner-ticket-meta{
  font-family:var(--meta-font,Arial,sans-serif)!important;
  font-size:var(--meta-size,10px)!important;
  font-weight:var(--meta-weight,400)!important;
  color:var(--meta-fg,var(--ticket-fg,#101827))!important;
  line-height:1.05!important;
}

/* Header/footer belong to the selected card colour family. */
.time-entry.planner-ticket-v2 > .planner-ticket-head,
.time-entry.planner-ticket-v2.compact-1h > .planner-ticket-head,
.time-entry.planner-ticket-v2 > .planner-ticket-foot,
.time-entry.planner-ticket-v2.compact-1h > .planner-ticket-foot{
  background:var(--ticket-head-bg,#334155)!important;
}

/* Footer hierarchy: STATUS, PAID/UNPAID, then PDF right aligned. */
.time-entry.planner-ticket-v2 > .planner-ticket-foot .planner-ticket-status{order:0!important;margin:0!important;}
.time-entry.planner-ticket-v2 > .planner-ticket-foot .planner-ticket-payment{order:1!important;margin:0!important;}
.time-entry.planner-ticket-v2 > .planner-ticket-foot .planner-ticket-spacer{order:2!important;flex:1 1 auto!important;}
.time-entry.planner-ticket-v2 > .planner-ticket-foot .planner-ticket-pdf{order:3!important;margin-left:auto!important;}

/* Styling editor preview follows the exact same hierarchy as the real planner card. */
#colourPreview .preview-ticket-head{justify-content:flex-start!important;}
#colourPreview .preview-time{order:0!important;flex:0 0 auto!important;color:#fff!important;font-size:11px!important;font-weight:900!important;}
#colourPreview .preview-customer{order:1!important;flex:1 1 auto!important;min-width:0!important;text-align:left!important;}
#colourPreview .preview-ticket-body{align-items:stretch!important;text-align:left!important;}
#colourPreview .preview-line{text-align:left!important;}
#colourPreview .preview-ticket-foot{justify-content:flex-start!important;}
#colourPreview .preview-status{order:0!important;}
#colourPreview .preview-payment{order:1!important;}
#colourPreview .preview-pdf{order:2!important;margin-left:auto!important;}

/* More professional editor labels / spacing without changing the rest of Settings. */
#colourDialog .dialog-head h3{font-size:1.25rem!important;}
#colourDialog .job-style-section>h4,
#colourDialog .job-style-section-head h4{font-size:1rem!important;font-weight:900!important;}
#colourDialog .job-style-line:not(.job-style-line-head)>strong{font-size:.82rem!important;color:#0f172a!important;}

/* source block 137: local-v2-13-64-address-weight-definitive; v2.19.18 line 32098 */

/* LOCAL v2.13.64 — final per-line font-weight authority.
   Historical planner CSS forced address/product weights after the Job Card Styling rules.
   These selectors intentionally sit last so the saved Bold checkbox is the single source of truth. */
.time-entry.planner-ticket-v2 > .planner-ticket-body .planner-ticket-address,
.time-entry.planner-ticket-v2.compact-1h > .planner-ticket-body .planner-ticket-address,
.time-entry.planner-ticket-v2 > .planner-ticket-body .planner-ticket-address *,
.time-entry.planner-ticket-v2.compact-1h > .planner-ticket-body .planner-ticket-address *{
  font-family:var(--address-font,Arial,sans-serif)!important;
  font-size:var(--address-size,11px)!important;
  font-weight:var(--address-weight,400)!important;
  color:var(--address-fg,var(--ticket-fg,#101827))!important;
  line-height:1.05!important;
}
.time-entry.planner-ticket-v2 > .planner-ticket-body .planner-ticket-product,
.time-entry.planner-ticket-v2.compact-1h > .planner-ticket-body .planner-ticket-product,
.time-entry.planner-ticket-v2 > .planner-ticket-body .planner-ticket-product *,
.time-entry.planner-ticket-v2.compact-1h > .planner-ticket-body .planner-ticket-product *{
  font-family:var(--product-font,Arial,sans-serif)!important;
  font-size:var(--product-size,11px)!important;
  font-weight:var(--product-weight,800)!important;
  color:var(--product-fg,var(--ticket-fg,#101827))!important;
  line-height:1.05!important;
}
.time-entry.planner-ticket-v2 > .planner-ticket-body .planner-ticket-meta,
.time-entry.planner-ticket-v2.compact-1h > .planner-ticket-body .planner-ticket-meta,
.time-entry.planner-ticket-v2 > .planner-ticket-body .planner-ticket-meta *,
.time-entry.planner-ticket-v2.compact-1h > .planner-ticket-body .planner-ticket-meta *{
  font-family:var(--meta-font,Arial,sans-serif)!important;
  font-size:var(--meta-size,10px)!important;
  font-weight:var(--meta-weight,400)!important;
  color:var(--meta-fg,var(--ticket-fg,#101827))!important;
}

/* source block 138: local-v2-13-66-time-follows-customer-style; v2.19.18 line 32133 */

/* LOCAL v2.13.66 — planner TIME intentionally shares Customer / Name typography.
   Keep time first in the header, but use the exact same saved font, size, weight and text colour. */
.time-entry.planner-ticket-v2 > .planner-ticket-head .planner-ticket-time,
.time-entry.planner-ticket-v2.compact-1h > .planner-ticket-head .planner-ticket-time{
  order:0!important;
  flex:0 0 auto!important;
  margin:0!important;
  font-family:var(--customer-font,Arial,sans-serif)!important;
  font-size:var(--customer-size,12px)!important;
  font-weight:var(--customer-weight,800)!important;
  color:var(--customer-fg,#fff)!important;
  line-height:1!important;
}

/* source block 139: local-v2-13-69-taller-quarter-grid; v2.19.18 line 32149 */

/* LOCAL v2.13.70 — slightly taller planner grid.
   96px/hour = 24px per 15-minute subdivision. */
#calendarSection .time-entry.planner-ticket-v2.compact-1h{
  height:94px!important;
  min-height:94px!important;
  max-height:94px!important;
}

/* source block 140: local-v21371-payment-method-and-address-weight-fix; v2.19.18 line 32160 */

/* LOCAL v2.13.71 — Payment Method reference + final Address weight regression fix */
.time-entry.planner-ticket-v2 > .planner-ticket-body .planner-ticket-address,
.time-entry.planner-ticket-v2.compact-1h > .planner-ticket-body .planner-ticket-address,
#calendarSection .time-entry.planner-ticket-v2 .planner-ticket-address{font-weight:var(--address-weight,400)!important;}
.planner-ticket-method,.payment-method-pill{display:inline-flex;align-items:center;justify-content:center;font-weight:900;letter-spacing:.02em;white-space:nowrap;background:#e0f2fe;color:#075985;border:1px solid #bae6fd;border-radius:4px;padding:2px 5px;font-size:.45rem;line-height:1;}
.payment-method-pill{font-size:.68rem;padding:4px 7px;border-radius:999px;}
.time-entry.planner-ticket-v2 > .planner-ticket-foot .planner-ticket-method{order:2!important;margin:0!important;}
.time-entry.planner-ticket-v2 > .planner-ticket-foot .planner-ticket-spacer{order:3!important;}
.time-entry.planner-ticket-v2 > .planner-ticket-foot .planner-ticket-pdf{order:4!important;}
.payment-method-config .config-row input{text-transform:uppercase;font-weight:800;}

