/* FOUR FLAMES FACETED EMBER 010 — ACTUAL CART / REVIEW / ADMIN FINISH
   Presentation ONLY. Actual source controls, no fabricated records, bypasses,
   scripting or business-rule changes. Owner-selected mode / screen only.
   Large, unmistakable 3 a.m. controls; secondary and destructive stay distinct. */
@media screen {
body[data-ff-mode="plateau_ember_preview"] {
 --ff10-copper:linear-gradient(148deg,#b35a2c 0%,#934422 48%,#602e21 100%);
 --ff10-river:linear-gradient(147deg,#297d76 0%,#1d615b 53%,#103c3b 100%);
 --ff10-bevel:inset 0 2px 0 #ffe5be8c,inset 0 -4px 0 #240e09bc,0 7px 16px #0009;
 --ff10-river-bevel:inset 0 2px 0 #c2fff178,inset 0 -4px 0 #062324b8,0 7px 15px #0009;
 --ff10-cut:16px 5px 16px 5px;
}
/* The ACTUAL Purchasing cart editor is generated by purchasingCartForm,
   unlike the returned-requisition form. Keep its field order and JS. */
body[data-ff-mode="plateau_ember_preview"] #op-editor > form.ops-step:has([data-carts]) {
 max-width:100%;overflow-wrap:anywhere;
 border-left:3px solid #b77b4a;
 padding:clamp(14px,2.5vw,28px);
 background:linear-gradient(148deg,#223a39,#142a2a 70%,#101f25);
 box-shadow:inset 0 2px 0 #e4ffef28,0 13px 24px #0007;
}
body[data-ff-mode="plateau_ember_preview"] #op-editor > form.ops-step:has([data-carts]) > h2 {
 color:#fff1de;font-size:clamp(1.4rem,2.4vw,1.95rem);margin:3px 0 12px;
 letter-spacing:.005em;
}
body[data-ff-mode="plateau_ember_preview"] #op-editor > form.ops-step:has([data-carts]) > p:first-of-type {
 max-width:64ch;line-height:1.55;color:#e1f1eb;
}
body[data-ff-mode="plateau_ember_preview"] #op-editor .ops-step [data-entry] {
 min-width:0;max-width:100%;box-sizing:border-box;
 border:1px solid #709f93;border-top:3px solid #cc9058;
 border-radius:16px 5px 16px 5px;padding:clamp(13px,2vw,20px);
 margin:16px 0;background:linear-gradient(145deg,#204142,#183130 85%);
}
body[data-ff-mode="plateau_ember_preview"] #op-editor .ops-step [data-entry] > legend {
 color:#ffe0b8;font-weight:850;font-size:1.14rem;letter-spacing:.012em;
}
body[data-ff-mode="plateau_ember_preview"] #op-editor .ops-step [data-entry] > label {
 color:#f2fff9;font-weight:740;min-width:0;display:block;
}
body[data-ff-mode="plateau_ember_preview"] #op-editor .ops-step [data-entry] > label :is(input,select,textarea) {
 width:100%;min-width:0;max-width:100%;box-sizing:border-box;
 min-height:51px;font-size:16px;line-height:1.4;
 border:1px solid #78ad9f;border-radius:12px 5px 12px 5px;
 background:#102c2d;color:#f7fff9;
}
body[data-ff-mode="plateau_ember_preview"] #op-editor .ops-step [data-entry] textarea {min-height:95px;}
body[data-ff-mode="plateau_ember_preview"] #op-editor .ops-step [data-entry] button[data-add]:not(:disabled) {
 min-height:59px;padding:13px 19px;background:var(--ff10-river);
 border:1px solid #a4e8dc;border-radius:var(--ff10-cut);
 box-shadow:var(--ff10-river-bevel);color:#f5fffb;
 font-weight:850;letter-spacing:.01em;touch-action:manipulation;
}
body[data-ff-mode="plateau_ember_preview"] #op-editor .ops-step > [data-lines] {
 display:grid;gap:11px;min-width:0;
}
body[data-ff-mode="plateau_ember_preview"] #op-editor .ops-step > [data-lines] > article.ops-step {
 margin:3px 0;padding:14px;
 border:1px solid #87b3a6;border-left:4px solid #6cddd0;
 border-radius:14px 5px 14px 5px;background:#153133;
 box-shadow:0 5px 15px #0004;
}
body[data-ff-mode="plateau_ember_preview"] #op-editor .ops-step > [data-lines] > article > strong {
 display:block;color:#eafff6;font-size:1.05rem;line-height:1.35;
}
body[data-ff-mode="plateau_ember_preview"] #op-editor .ops-step > [data-lines] > article :is(p,label) {
 line-height:1.5;color:#e1f1ed;
}
body[data-ff-mode="plateau_ember_preview"] #op-editor .ops-step > [data-lines] > article button[data-remove]:not(:disabled) {
 min-height:48px;padding:10px 18px;color:#ffecdf;
 background:linear-gradient(145deg,#793e3c,#542b31);border:1px solid #f0aaa2;
 border-radius:12px 5px 12px 5px;box-shadow:inset 0 1px #ffe1d240,0 4px 10px #0006;
}
body[data-ff-mode="plateau_ember_preview"] #op-editor .ops-step > [data-total]:not(:empty) {
 display:block;margin:15px 0 8px;padding:15px 17px;
 color:#fff3d8;font-size:clamp(1.08rem,2.4vw,1.36rem);font-weight:850;
 background:#24403e;border:1px solid #b18b60;border-left:5px solid #e59b58;
 border-radius:12px 4px 12px 4px;
 font-variant-numeric:tabular-nums;
}
body[data-ff-mode="plateau_ember_preview"] #op-editor .ops-step > [data-state]:not(:empty) {
 display:block;margin:8px 0 16px;padding:9px 13px;
 color:#ddfff7;border:1px solid #68988f;border-left:4px solid #6dd3bd;
 background:#183735;border-radius:9px 3px 9px 3px;
}
body[data-ff-mode="plateau_ember_preview"] #op-editor .ops-step > button[data-submit]:not(:disabled),
body[data-ff-mode="plateau_ember_preview"] #op-editor .ops-step > button[data-retry]:not(:disabled):not([hidden]) {
 min-height:64px;padding:14px 20px;font-size:1.06rem;font-weight:900;
 background:var(--ff10-copper);color:#fffaf0;
 border:1px solid #ffce9b;border-radius:var(--ff10-cut);
 box-shadow:var(--ff10-bevel);text-shadow:0 1px #1b0c08;touch-action:manipulation;
}
body[data-ff-mode="plateau_ember_preview"] #op-editor .ops-step > button[data-save]:not(:disabled),
body[data-ff-mode="plateau_ember_preview"] #op-editor .ops-step > button[data-new]:not(:disabled) {
 min-height:53px;padding:12px 17px;font-weight:820;
 background:var(--ff10-river);color:#f5fff9;
 border:1px solid #9eece0;border-radius:var(--ff10-cut);
 box-shadow:var(--ff10-river-bevel);
}
/* Errors may contain important retry/recovery guidance. Do not truncate. */
body[data-ff-mode="plateau_ember_preview"] #op-editor .ops-step > [role="alert"]:not(:empty),
body[data-ff-mode="plateau_ember_preview"] #tc-dialog .tc-dialog-error:not(:empty),
body[data-ff-mode="plateau_ember_preview"] #role-access-form [role="alert"]:not(:empty) {
 color:#fff3e9;background:#522e2e;
 border:1px solid #f1b1a8;border-left:5px solid #ffb6aa;
 padding:13px 15px;border-radius:12px 5px 12px 5px;
 line-height:1.53;font-weight:700;overflow-wrap:anywhere;white-space:pre-wrap;
}
/* StationFirst.purchasingCart moves the review controls into .ff-cart-review
   after rendering. These selectors follow the ACTUAL DOM rather than the
   original raw form, keeping Save visually secondary to final submission. */
body[data-ff-mode="plateau_ember_preview"] #content #op-editor form.ops-step > fieldset.ff-task-fields:has([data-carts]) {
 border:1px solid #789b8c;border-radius:15px 5px 15px 5px;
 padding:12px 16px;background:#1c3a39;
}
body[data-ff-mode="plateau_ember_preview"] #content #op-editor form.ops-step fieldset.ff-task-fields[data-entry] > button[data-add]:not(:disabled) {
 background:var(--ff10-river);color:#f3fffa;
 border:1px solid #a4e8dc;box-shadow:var(--ff10-river-bevel);
 border-radius:var(--ff10-cut);
}
body[data-ff-mode="plateau_ember_preview"] #content #op-editor form.ops-step > .ff-cart-review {
 padding:clamp(13px,2vw,21px);margin:17px 0;
 border:1px solid #7db6a8;border-left:4px solid #d59c64;
 border-radius:16px 5px 16px 5px;
 background:linear-gradient(140deg,#22403d,#122a2c);
 box-shadow:inset 0 1px #e5fff127,0 9px 22px #0007;
}
body[data-ff-mode="plateau_ember_preview"] #content #op-editor .ff-cart-review > h3 {
 font-size:1.3rem;color:#ffe4bc;margin:0 0 14px;
}
body[data-ff-mode="plateau_ember_preview"] #content #op-editor .ff-cart-review > [data-total]:not(:empty) {
 display:block;margin:15px 0 10px;padding:14px 17px;
 color:#fff4dc;font-size:1.17rem;font-weight:900;font-variant-numeric:tabular-nums;
 border-left:5px solid #e8a264;border-radius:10px 4px 10px 4px;
 background:#2c4941;
}
body[data-ff-mode="plateau_ember_preview"] #content #op-editor .ff-cart-review > [data-state]:not(:empty) {
 display:block;margin:9px 0 16px;padding:10px 13px;
 border-left:4px solid #66ddd0;color:#e5fff9;background:#16403b;
 border-radius:9px 3px 9px 3px;overflow-wrap:anywhere;
}
body[data-ff-mode="plateau_ember_preview"] #content #op-editor .ff-cart-review > button[data-save]:not(:disabled) {
 background:var(--ff10-river);color:#f3fffa;
 border:1px solid #9ee7dc;box-shadow:var(--ff10-river-bevel);
 border-radius:var(--ff10-cut);font-weight:820;min-height:55px;
}
body[data-ff-mode="plateau_ember_preview"] #content #op-editor .ff-cart-review > button[data-submit]:not(:disabled),
body[data-ff-mode="plateau_ember_preview"] #content #op-editor .ff-cart-review > button[data-retry]:not(:disabled):not([hidden]) {
 background:var(--ff10-copper);color:#fff9f0;
 border:1px solid #ffce9c;box-shadow:var(--ff10-bevel);
 border-radius:var(--ff10-cut);min-height:64px;font-weight:900;
 font-size:1.06rem;padding:13px 20px;
}

/* Preserve the Training officer's original evidence-before-approval sequence;
   make review states and decision controls unmistakable. */
body[data-ff-mode="plateau_ember_preview"] #tc-dialog .tc-review-layout {
 gap:clamp(13px,2vw,23px);min-width:0;
}
body[data-ff-mode="plateau_ember_preview"] #tc-dialog .tc-review-layout > div {
 min-width:0;max-width:100%;
}
body[data-ff-mode="plateau_ember_preview"] #tc-dialog .tc-review-layout .tc-document {
 border:1px solid #7ca99e;border-top:3px solid #e09b60;
 border-radius:15px 5px 15px 5px;background:#153033;
 padding:13px;box-shadow:0 7px 18px #0005;
}
body[data-ff-mode="plateau_ember_preview"] #tc-dialog .tc-review-layout .tc-form-section,
body[data-ff-mode="plateau_ember_preview"] #tc-dialog .tc-form-section {
 border-top:2px solid #a8794a;max-width:100%;
 padding-top:17px;overflow-wrap:anywhere;
}
body[data-ff-mode="plateau_ember_preview"] #tc-dialog .tc-review-layout .tc-form-section > h3 {
 color:#ffe2bb;font-weight:850;font-size:1.1rem;line-height:1.33;
}
body[data-ff-mode="plateau_ember_preview"] #tc-dialog .tc-form-actions {
 border-top:1px solid #856c4f;align-items:stretch;
}
body[data-ff-mode="plateau_ember_preview"] #tc-dialog .tc-form-actions button[type="submit"]:not(:disabled):not(.tc-danger) {
 background:var(--ff10-copper);color:#fff9ef;
 border:1px solid #ffce9c;min-height:62px;padding:13px 19px;
 border-radius:var(--ff10-cut);box-shadow:var(--ff10-bevel);
 font-size:1.04rem;font-weight:890;
}
body[data-ff-mode="plateau_ember_preview"] #tc-dialog .tc-actions button.secondary:not(:disabled) {
 background:var(--ff10-river);color:#f3fffa;
 border:1px solid #9edfd3;min-height:50px;
 border-radius:var(--ff10-cut);box-shadow:var(--ff10-river-bevel);
}
/* Permission editing: never disguise individual grants as global role grants. */
body[data-ff-mode="plateau_ember_preview"] #content #role-access-form {
 border:1px solid #659b8e;border-top:3px solid #cb9158;
 border-radius:16px 5px 16px 5px;
 background:linear-gradient(148deg,#203838,#122829);
 padding:clamp(14px,2.4vw,23px);
}
body[data-ff-mode="plateau_ember_preview"] #content #role-access-form > h2 {
 color:#ffe5c0;font-size:1.22rem;margin:15px 0 10px;
}
body[data-ff-mode="plateau_ember_preview"] #content #role-access-form .check-grid {
 display:grid;grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr));
 gap:10px 13px;min-width:0;
}
body[data-ff-mode="plateau_ember_preview"] #content #role-access-form .check-option {
 min-width:0;margin:0;padding:12px 13px;
 border:1px solid #5a8981;border-radius:11px 4px 11px 4px;
 background:#1c3736;color:#edfdf5;line-height:1.35;
}
body[data-ff-mode="plateau_ember_preview"] #content #role-access-form button:not(:disabled) {
 min-height:59px;background:var(--ff10-copper);color:#fff8ec;
 border:1px solid #ffcb90;border-radius:var(--ff10-cut);
 box-shadow:var(--ff10-bevel);font-weight:850;padding:12px 20px;
}
body[data-ff-mode="plateau_ember_preview"] #content #individual-access > button:not(:disabled) {
 min-height:53px;border-radius:var(--ff10-cut);
 border:1px solid #97dbd3;background:var(--ff10-river);
 color:#f4fff9;box-shadow:var(--ff10-river-bevel);
 font-weight:800;
}
/* Focus without accidental source-event edits. */
body[data-ff-mode="plateau_ember_preview"] :is(#op-editor,#tc-dialog,#role-access-form,#individual-access) :is(button,input,select,textarea):focus-visible {
 outline:3px solid #b3fff1;outline-offset:3px;
}
}
@media screen and (min-width:950px) {
 body[data-ff-mode="plateau_ember_preview"] #op-editor .ops-step [data-entry] {
   display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px 18px;
 }
 body[data-ff-mode="plateau_ember_preview"] #op-editor .ops-step [data-entry] > label:has(textarea),
 body[data-ff-mode="plateau_ember_preview"] #op-editor .ops-step [data-entry] > button[data-add] {
   grid-column:1/-1;
 }
}
@media screen and (max-width:760px){
 body[data-ff-mode="plateau_ember_preview"] #op-editor > form.ops-step:has([data-carts]) > :is(button[data-save],button[data-submit],button[data-retry]:not([hidden])) {
   display:block;width:100%;max-width:100%;margin:10px 0;white-space:normal;
 }
 body[data-ff-mode="plateau_ember_preview"] #op-editor .ops-step [data-entry] button[data-add] {
   display:block;width:100%;max-width:100%;white-space:normal;
 }
 body[data-ff-mode="plateau_ember_preview"] #content #op-editor .ff-cart-review > button[data-save],
 body[data-ff-mode="plateau_ember_preview"] #content #op-editor .ff-cart-review > button[data-submit],
 body[data-ff-mode="plateau_ember_preview"] #content #op-editor .ff-cart-review > button[data-retry]:not([hidden]) {
   display:block;width:100%;max-width:100%;white-space:normal;margin:11px 0;
 }
 body[data-ff-mode="plateau_ember_preview"] #tc-dialog .tc-form-actions > button {
   flex:1 1 150px;min-height:58px;white-space:normal;
 }
 body[data-ff-mode="plateau_ember_preview"] #content #role-access-form > .actions > button {
   width:100%;min-height:62px;
 }
}
@media (prefers-reduced-motion:reduce){
 body[data-ff-mode="plateau_ember_preview"] :is(#op-editor,#tc-dialog,#role-access-form) :is(button,summary) {transition:none!important;}
}
