.admin-on9{background:#167346!important;color:white!important}.needs-attention9{border:2px solid #bd3535}.unpaid9{color:#b32323;font-weight:700}.priority-row9{display:flex;align-items:center;gap:.5rem;padding:.35rem 0}.priority-row9 span{flex:1}.mail-body9{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;max-width:100%}#templates9 details{padding:1rem 0;border-bottom:1px solid #ddd}#workflow-form9 input[type=number]{min-width:5rem}.header-actions{flex-wrap:wrap}

.job-jump-menu{margin-top:8px}
.job-jump-menu summary{cursor:pointer;font-weight:650;padding:8px}
.job-tools7 .job-jumps7{position:static;display:flex;flex-wrap:wrap;padding:0;background:transparent}
.job-tools7 .job-jumps7 button{color:var(--ink);background:var(--white);border:1px solid var(--line);max-width:100%;white-space:normal;text-align:left}
@media(max-width:800px){
  .job-tools7{position:static}
  .jump-highlight7{scroll-margin-top:16px}
  main>header{gap:8px;padding-block:12px}
  .header-actions{display:flex;justify-content:flex-start;gap:6px}
  .header-actions button,.help-tools6 button{padding:6px 9px;min-height:36px}
  .status-strip7 .chip7{padding:5px 8px}
}
.job-tools7 .job-jump-menu:not([open]) .job-jumps7{display:none!important}
@media(max-width:800px){
  .job-tools7 .job-jumps7 button{width:auto}
  .job-tools7 .job-jumps7{gap:6px;margin-top:4px}
  input[type=time]{max-width:100%;min-width:0}
}

.job-save-feedback{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-block:8px}
.job-save-feedback[hidden],.job-save-feedback [hidden]{display:none}
.job-save-feedback .save-status{position:static;max-width:100%;text-align:left}
.job-scheduling-actions{margin-block:8px}

.schedule-status{display:inline-block;padding:6px 10px;border-radius:8px;background:#edf1ee;color:#304b41}
.schedule-status-set{background:#d9f2e6;color:#155c40}

[data-group-order]{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:8px}

/* Each action and its optional help button occupy one layout cell. */
.job-close-section>.toolbar,.job-action-grid{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));
  align-items:center;gap:8px
}
.job-close-section>.toolbar>.help-control,.job-action-grid>.help-control{width:100%}
.job-close-section>.toolbar button:not(.help-icon),.job-action-grid button:not(.help-icon){
  min-height:40px;white-space:normal;overflow-wrap:anywhere
}
.job-close-section>.toolbar>.help-control>button:not(.help-icon),
.job-action-grid>.help-control>button:not(.help-icon){flex:1}
.header-actions>.help-control,.job-scheduling-actions>.help-control{flex:0 1 auto;min-width:0}
.header-actions>.help-control>button:not(.help-icon){margin-left:0;white-space:normal}
.header-actions .help-icon,.job-close-section .help-icon,.job-action-grid .help-icon{
  width:24px;height:24px;min-width:24px;min-height:24px;flex:0 0 24px;padding:0
}

.page-title-row{display:flex;align-items:center;gap:14px;min-width:0}
.page-title-row h1{margin:0;min-width:0}
.page-title-row #sidebar-toggle{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;background:var(--green);color:white;border:1px solid var(--green);font-weight:700;min-height:44px;padding:10px 14px;margin:0}
.page-title-row>.help-control{flex:0 0 auto}
.header-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:8px}
.header-actions>button,.header-actions>.help-control{width:100%;margin:0;min-width:0}
.header-actions>.help-control>button:not(.help-icon){flex:1;min-width:0;white-space:normal}
.header-actions>#activity9,.header-actions>.help-control:has(#activity9){grid-column:1/-1}
.header-actions button:not(.help-icon){min-height:44px}
.status-strip7{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;align-items:stretch}
.status-strip7>.help-control{min-width:0;width:100%}
.status-strip7 .chip7{flex:1;min-width:0;border-radius:10px;white-space:normal;padding:10px 12px}
.calendar-synced,.status-strip7 .calendar-synced{background:#167346!important;color:#fff!important;border:1px solid #126139!important}
.calendar-pending,.status-strip7 .calendar-pending{background:#fff2ca!important;color:#70500c!important;border:1px solid #ddbc65!important}
.calendar-error,.status-strip7 .calendar-error{background:#fbe5e5!important;color:#9b2727!important;border:1px solid #d98787!important}
.calendar-unscheduled{background:#edf1ee;color:#53645b}
#notice.notice-success{background:#dcf3e5;color:#155a39;border-color:#74ad8c}
@media(max-width:800px){
 main>header{display:flex;flex-direction:column;align-items:stretch}
 .page-title-row{gap:10px}
 .page-title-row h1{font-size:clamp(22px,6vw,32px)}
 .header-actions{width:100%;grid-template-columns:repeat(2,minmax(0,1fr))}
 .header-actions button:not(.help-icon){font-size:14px;padding:9px 10px}
 .help-tools6{margin-block:8px;gap:6px}
 .status-strip7{grid-template-columns:repeat(2,minmax(0,1fr))}
 .status-strip7 .help-icon{width:24px;height:24px;min-width:24px;flex:0 0 24px}
}
