.sh-proposal-preview{margin:14px 0;border:1px solid #b5b4a4;border-radius:12px;background:#fffdf4;overflow:hidden}
.sh-proposal-preview>summary{padding:14px 16px;font-size:1.05rem;font-weight:700;cursor:pointer;color:#294d43}
.sh-proposal-preview>.sh-note{margin:0;padding:0 16px 12px}
.sh-proposal-table{min-width:960px;font-size:.9rem}
.sh-proposal-table td strong,.sh-proposal-table td small{display:block;white-space:normal}
.sh-proposal-table th:first-child{position:sticky;left:0;z-index:2;background:#f8f3df;min-width:72px}
.sh-proposal-table .sh-proposal-changed{background:#fff0c9}
.sh-proposal-table .sh-proposal-before{color:#6d6354;font-size:.78rem;margin:5px 0}
.sh-edit-live{display:grid;grid-template-columns:1fr 1fr;gap:10px;border:1px solid #b8c8bb;border-radius:12px;padding:14px;background:#f4f9f1;margin:14px 0}
.sh-edit-live div>*{display:block}.sh-edit-live strong{font-size:1.2rem;color:#264c3a;line-height:1.5}
.sh-edit-live small{font-size:.85rem}.sh-edit-live .sh-edit-minimum{grid-column:1/-1;margin:0;font-size:.92rem;line-height:1.5}
.sh-request-draft{padding:12px 16px;background:#fff6d9;border:1px solid #d6b968;border-radius:12px;margin:12px 0}
.sh-request-draft p{margin:5px 0}.sh-request-draft .sh-actions{margin-top:10px}
.sh-request-draft-state{font-size:.9rem;line-height:1.5;color:#356148}
.sh-generation-review .sh-dialog{width:min(1320px,calc(100vw - 32px));max-width:calc(100vw - 32px)}
.sh-generation-review .sh-proposal-minimums{list-style:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:8px;padding:0;margin:8px 0}
.sh-proposal-minimums li{padding:10px;background:#edf3e6;border:1px solid #b7c5aa;border-radius:8px;font-weight:700}
.sh-allocation-cards{list-style:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px;padding:0;margin:10px 0}
.sh-allocation-cards li{display:flex;flex-direction:column;align-items:flex-start;gap:6px;border:1px solid #b8c7ae;border-radius:10px;padding:12px;background:#f0f6eb}
.sh-allocation-cards .sh-allocation-limit{background:#fff4d7;border-color:#cbb776}
.sh-allocation-cards .sh-allocation-short{background:#fff0e7;border-color:#ceae98}
.sh-allocation-cards .sh-allocation-hours{font-size:1.6rem;font-weight:800;margin:0;line-height:1.25}
.sh-allocation-hours small{font-size:.9rem;font-weight:500}.sh-allocation-cards .sh-note{margin:0;line-height:1.5}
.sh-allocation-cards .sh-btn{margin-top:auto;font-size:.9rem;min-height:40px;padding:8px 10px}
.sh-minimum-allocation h4{margin:10px 0 6px}
.sh-request-week-context{margin:12px 0;padding:12px;background:#f5f3e6;border:1px solid #d3ccb1;border-radius:10px;min-width:0}
.sh-request-week-context h3{margin:0 0 8px;font-size:1rem}
.sh-request-week-days{display:flex;gap:8px;overflow-x:auto;padding:0 0 4px;min-width:0;max-width:100%}
.sh-request-week-days .sh-btn{display:flex;flex:1 0 108px;flex-direction:column;align-items:flex-start;gap:4px;white-space:normal;padding:9px}
.sh-request-week-days strong{font-size:1.1rem}.sh-request-week-days small{font-size:.8rem;line-height:1.3}
.sh-request-week-context .sh-note{margin:5px 0 0;font-size:.82rem}
.sh-generation-review .sh-dialog-head{position:sticky;top:-24px;background:#fff8e8;z-index:6;padding:12px 0;margin-top:-12px}
.sh-generation-actions{position:sticky;bottom:-24px;z-index:5;background:#fff8e8;padding:12px 0;margin-bottom:-12px;border-top:1px solid #d6cbae}
@media(max-width:600px){.sh-edit-live{padding:10px;gap:6px}.sh-edit-live strong{font-size:1.05rem}.sh-proposal-preview>summary{padding:12px;font-size:1rem}}
@media screen and (max-width:600px){
 .sh-generation-review .sh-dialog>p{margin:8px 0;font-size:13px;line-height:1.5}
 .sh-generation-review .sh-dialog>.sh-panel{padding:12px;margin:10px 0}
 .sh-generation-review .sh-panel>h3{font-size:15px;margin:6px 0 10px}
 .sh-generation-review .sh-minimum-allocation h4{font-size:13px;margin:6px 0}
 .sh-generation-review .sh-allocation-cards{gap:8px}
 .sh-generation-review .sh-allocation-cards li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 8px;padding:10px;align-items:center}
 .sh-generation-review .sh-allocation-cards li>strong{grid-column:1;grid-row:1;overflow-wrap:anywhere}
 .sh-generation-review .sh-allocation-hours{grid-column:2;grid-row:1;justify-self:end;font-size:1.35rem}
 .sh-generation-review .sh-allocation-hours small{font-size:.78rem}
 .sh-generation-review .sh-allocation-cards li>b{grid-column:1/-1;font-size:.88rem}
 .sh-generation-review .sh-allocation-cards li>.sh-note{grid-column:1/-1;font-size:.8rem}
 .sh-generation-review .sh-allocation-cards li>small{grid-column:1;font-size:.78rem}
 .sh-generation-review .sh-allocation-cards li>.sh-btn{grid-column:2;min-height:44px;padding:6px 8px;margin:0;font-size:.8rem}
}

/* Keep the current task and person visible on narrow simple-mode screens. */
.sh-request-person-toolbar label{display:flex;align-items:center;gap:8px;min-width:0}
@media screen and (max-width:700px){
 body[data-cafe-world=normal] #shiftsPage>.sh-context-week-toolbar{grid-template-columns:minmax(0,1fr)!important}
 body[data-cafe-world=normal] #shiftsPage>.sh-context-week-toolbar label{display:flex;align-items:center;gap:8px;white-space:nowrap;min-width:0}
 body[data-cafe-world=normal] #shiftsPage>.sh-context-week-toolbar #shWeek{flex:1;width:100%;min-width:0}
 body[data-cafe-world=normal] #shiftsPage>.sh-workflow button{min-height:48px!important}
 body[data-cafe-world=normal] #shiftsPage>.sh-workflow button small{display:none}
 body[data-cafe-world=normal] #shiftsPage>.sh-workflow p{font-size:12px!important}
 body[data-cafe-world=normal] #shiftsPage .sh-tab-group>.sh-tab-buttons{display:flex!important;overflow-x:auto;flex-wrap:nowrap;gap:6px!important;padding:2px 2px 6px}
 body[data-cafe-world=normal] #shiftsPage .sh-tab-group>.sh-tab-buttons button{width:auto!important;flex:0 0 auto!important;min-height:44px!important;white-space:nowrap;padding:7px 12px!important}
 body[data-cafe-world=normal] #shiftsPage .sh-request-person-toolbar{gap:6px;margin:8px 0}
 body[data-cafe-world=normal] #shiftsPage .sh-request-person-toolbar label{flex:1 1 100%;width:100%}
 body[data-cafe-world=normal] #shiftsPage .sh-request-person-toolbar select{flex:1;min-width:0}
 body[data-cafe-world=normal] #shiftsPage .sh-request-person-toolbar .sh-stat{padding:0;background:transparent;min-height:0;font-size:14px}
}
