/* FOUR FLAMES LLC / FACETED EMBER 009 -- POPULATED RECORDS / ACTION STATES
   The actual Purchasing cart, EMS and equipment transactions, maintenance
   inspection forms, Training review dialogs and Report Builder use these
   existing source classes. Styles ONLY; no DOM mutation, artificial data,
   click interception, authorizations or persistence changes. Constrain to
   the owner-selected Plateau Ember appearance, screen mode only. */
@media screen {
body[data-ff-mode="plateau_ember_preview"] {
  --ff-009-copper:linear-gradient(145deg,#ac5529 0%,#904321 52%,#5d2b20 100%);
  --ff-009-teal:linear-gradient(145deg,#267770 0%,#1c5753 55%,#113735 100%);
  --ff-009-cut:16px 5px 16px 5px;
  --ff-009-raised:inset 0 2px 0 #ffe6ae75,inset 0 -4px 0 #22120bbf,0 8px 15px #0007;
  --ff-009-teal-raised:inset 0 2px 0 #dcfff075,inset 0 -4px 0 #062123bd,0 7px 14px #0007;
}
/* Real transactional editor: distinguish optional setup, review and COMMIT.
   Preserve layout and field order, especially incident-editor sections. */
body[data-ff-mode="plateau_ember_preview"] #op-editor .ops-step {
  max-width:100%;min-width:0;overflow-wrap:anywhere;
  border:1px solid #648b82;border-top:3px solid #cd8650;
  border-radius:17px 6px 17px 6px;padding:clamp(13px,2vw,23px);
  background:linear-gradient(155deg,#203737,#142b2c 67%,#102124);
  box-shadow:inset 0 1px #f6fff122,0 13px 28px #0006;
}
body[data-ff-mode="plateau_ember_preview"] #op-editor .ops-step > h2 {
  color:#fff3e4;line-height:1.25;border-bottom:1px solid #a1785180;
  padding-bottom:12px;margin:0 0 15px;font-size:clamp(1.24rem,2vw,1.65rem);
}
body[data-ff-mode="plateau_ember_preview"] #op-editor .ops-step > p,
body[data-ff-mode="plateau_ember_preview"] #op-editor .ops-step > details {
  color:#d7e6df;line-height:1.52;
}
body[data-ff-mode="plateau_ember_preview"] #op-editor .ops-step fieldset {
  box-sizing:border-box;max-width:100%;min-width:0;
  border:1px solid #668e84;border-radius:14px 5px 14px 5px;
  padding:clamp(12px,2vw,19px);margin:15px 0;
  background:linear-gradient(150deg,#203838,#14282c);
}
body[data-ff-mode="plateau_ember_preview"] #op-editor .ops-step legend {
  font-weight:800;color:#ffdab0;letter-spacing:.015em;padding:0 7px;
}
body[data-ff-mode="plateau_ember_preview"] #op-editor .ops-step :is(label,fieldset,section,div) {
  min-width:0;max-width:100%;
}
body[data-ff-mode="plateau_ember_preview"] #op-editor .ops-step label {
  color:#e7f6f0;font-weight:730;line-height:1.45;overflow-wrap:anywhere;
}
body[data-ff-mode="plateau_ember_preview"] #op-editor .ops-step :is(input:not([type=checkbox]):not([type=radio]),textarea,select) {
  box-sizing:border-box;max-width:100%;min-width:0;
  min-height:48px;background:#102a2c;color:#f6fff9;
  border:1px solid #7ca79a;border-radius:12px 5px 12px 5px;
  box-shadow:inset 0 3px 7px #0004;
  font-size:16px;
}
body[data-ff-mode="plateau_ember_preview"] #op-editor .ops-step textarea {
  min-height:98px;resize:vertical;line-height:1.5;
}
body[data-ff-mode="plateau_ember_preview"] #op-editor .ops-step :is(input,select,textarea):focus-visible {
  outline:3px solid #b3fff0;outline-offset:2px;border-color:#c4ffec;
}
body[data-ff-mode="plateau_ember_preview"] #op-editor .ops-step :is(input,select,textarea):user-invalid {
  border-color:#ffb0a8;box-shadow:0 0 0 2px #b65b5044;
}
/* Real purchasing cart: DON'T make all five buttons look like irreversible
   submit. Add, Save and New are distinct from Submit requisition. */
body[data-ff-mode="plateau_ember_preview"] #op-editor .ops-step :is(button[data-new],button[data-add],button[data-save],button[data-review],button[data-identify],button[data-camera-start]):not(:disabled) {
  box-sizing:border-box;min-height:53px;padding:10px 17px;
  background:var(--ff-009-teal);border:1px solid #9ce8df;
  border-radius:var(--ff-009-cut);color:#f2fffa;
  box-shadow:var(--ff-009-teal-raised);font-size:1rem;
  font-weight:800;line-height:1.25;
}
body[data-ff-mode="plateau_ember_preview"] #op-editor .ops-step :is(button[data-submit],button[data-retry],button[data-finish]):not(:disabled) {
  box-sizing:border-box;min-height:62px;padding:13px 19px;
  background:var(--ff-009-copper);border:1px solid #ffcb91;
  border-radius:var(--ff-009-cut);color:#fff6e9;
  box-shadow:var(--ff-009-raised);font-size:1.05rem;
  font-weight:850;line-height:1.3;text-shadow:0 1px #160d0999;
}
body[data-ff-mode="plateau_ember_preview"] #op-editor .ops-step :is(button[data-camera-stop],button[data-cancel]):not(:disabled) {
  min-height:48px;border:1px solid #83aba4;background:#294746;
  color:#f1fff9;border-radius:12px 5px 12px 5px;
  box-shadow:inset 0 1px #ddfff03a;
}
body[data-ff-mode="plateau_ember_preview"] #op-editor .ops-step :is([data-lines],[data-cart-summary],[data-total],[data-summary]):not(:empty) {
  box-sizing:border-box;max-width:100%;overflow-wrap:anywhere;
  padding:14px;border:1px solid #6e968c;border-left:4px solid #6cddd0;
  border-radius:12px 5px 12px 5px;background:#143233;
  color:#eefaf2;line-height:1.48;font-variant-numeric:tabular-nums;
}
body[data-ff-mode="plateau_ember_preview"] #op-editor .ops-step [data-state]:not(:empty),
body[data-ff-mode="plateau_ember_preview"] #op-editor .ops-step [role=status]:not(:empty) {
  padding:10px 12px;border-left:3px solid #65c7bb;
  background:#193536;color:#e5fff6;border-radius:5px;
  overflow-wrap:anywhere;
}
body[data-ff-mode="plateau_ember_preview"] #op-editor .ops-step [role=alert]:not(:empty) {
  padding:12px 14px;border:1px solid #e19a92;
  border-left:5px solid #ffb2a2;
  border-radius:11px 5px 11px 5px;background:#4b292c;
  color:#fff0e9;font-weight:730;overflow-wrap:anywhere;line-height:1.43;
}
/* Audit rows and permissions should be readable on phones without removing
   or hiding real record fields. Overlay the general phone table rules. */
body[data-ff-mode="plateau_ember_preview"] #content :is(.ops-step,.ff-admin-records,.tc-table-form,.rb-controls) table {
  font-variant-numeric:tabular-nums;
}
body[data-ff-mode="plateau_ember_preview"] #content :is(.ops-step,.ff-admin-records,.tc-table-form,.rb-controls) :is(th,td) {
  padding:12px 11px;border-bottom-color:#52736d;
}
/* Real Training review modal, including an error / evidence reviewed state. */
body[data-ff-mode="plateau_ember_preview"] #tc-dialog .tc-dialog-head {
  border-bottom:1px solid #806044;padding-bottom:11px;
}
body[data-ff-mode="plateau_ember_preview"] #tc-dialog .tc-dialog-head h2 {
  color:#fff5e6;line-height:1.25;overflow-wrap:anywhere;
}
body[data-ff-mode="plateau_ember_preview"] #tc-dialog .tc-dialog-body {
  color:#e9f5ef;line-height:1.48;
}
body[data-ff-mode="plateau_ember_preview"] #tc-dialog .tc-dialog-body :is(label,fieldset) {min-width:0;max-width:100%;}
body[data-ff-mode="plateau_ember_preview"] #tc-dialog .tc-dialog-body :is(input:not([type=checkbox]):not([type=radio]),textarea,select) {
  box-sizing:border-box;max-width:100%;min-width:0;min-height:48px;
  border:1px solid #7ba99f;border-radius:12px 5px 12px 5px;
  background:#10292b;color:#f8fff9;font-size:16px;
}
body[data-ff-mode="plateau_ember_preview"] #tc-dialog .tc-dialog-body .tc-form-actions button[type=submit]:not(.tc-danger):not(:disabled) {
  box-sizing:border-box;min-height:59px;padding:12px 19px;
  background:var(--ff-009-copper);border:1px solid #ffca91;
  color:#fff8ec;border-radius:var(--ff-009-cut);
  box-shadow:var(--ff-009-raised);font-weight:840;
}
body[data-ff-mode="plateau_ember_preview"] #tc-dialog .tc-dialog-body .tc-form-actions button.secondary:not(:disabled) {
  min-height:53px;border:1px solid #9cddd4;
  border-radius:var(--ff-009-cut);background:var(--ff-009-teal);
  color:#f1fff9;box-shadow:var(--ff-009-teal-raised);font-weight:770;
}
body[data-ff-mode="plateau_ember_preview"] #tc-dialog :is(.tc-dialog-error,[role=alert]):not(:empty) {
  background:#492a2c;color:#fff3eb;border:1px solid #e6a49a;
  border-left:5px solid #ffb5a7;border-radius:12px 5px 12px 5px;
  padding:12px;line-height:1.45;overflow-wrap:anywhere;
}
/* Reports: use the same visual grammar, but NEVER alter printable paper. */
body[data-ff-mode="plateau_ember_preview"] #rb-root .rb-intro,
body[data-ff-mode="plateau_ember_preview"] #rb-root .rb-controls,
body[data-ff-mode="plateau_ember_preview"] #rb-root .rb-saved,
body[data-ff-mode="plateau_ember_preview"] #rb-root .rb-block {
  background:linear-gradient(145deg,#1b3334,#122628);
  border-color:#64877f;border-radius:15px 5px 15px 5px;
  box-shadow:inset 0 1px #e5fff01d,0 9px 22px #0005;
}
body[data-ff-mode="plateau_ember_preview"] #rb-root :is(#rb-blank,#rb-export,#rb-refresh):not(:disabled) {
  min-height:59px;padding:11px 19px;border-radius:var(--ff-009-cut);
  border:1px solid #ffcd94;background:var(--ff-009-copper);
  color:#fff7eb;box-shadow:var(--ff-009-raised);font-weight:840;
}
body[data-ff-mode="plateau_ember_preview"] #rb-root :is(#rb-save,#rb-copy,#rb-pdf-preview,#rb-back,#rb-reload):not(:disabled) {
  min-height:51px;border-radius:var(--ff-009-cut);
  border:1px solid #95ddd3;background:var(--ff-009-teal);
  color:#f0fff9;box-shadow:var(--ff-009-teal-raised);font-weight:760;
}
body[data-ff-mode="plateau_ember_preview"] #rb-root :is(.rb-saved-card,.rb-template):not(:disabled) {
  border-radius:15px 5px 15px 5px!important;
  border:1px solid #66968d!important;background:#1c3837!important;
  color:#effcf7!important;box-shadow:inset 0 1px #e5fff026,0 6px 15px #0005;
}
body[data-ff-mode="plateau_ember_preview"] #rb-root .rb-template.rb-featured:not(:disabled) {
  background:linear-gradient(145deg,#275e59,#173d39)!important;
  border-color:#78ccba!important;
}
body[data-ff-mode="plateau_ember_preview"] #rb-root .rb-template :is(.rb-eyebrow,span),
body[data-ff-mode="plateau_ember_preview"] #rb-root .rb-saved-card span {color:#c8e5df!important;}
body[data-ff-mode="plateau_ember_preview"] #rb-root :is(#rb-status,.rb-error):not(:empty) {
  padding:10px;border-radius:10px 4px 10px 4px;
  border-left:4px solid #79dbd0;overflow-wrap:anywhere;
}
body[data-ff-mode="plateau_ember_preview"] #rb-root .rb-error:not(:empty) {
  border-left-color:#ffab9c;background:#4b2829;color:#fff3ee!important;
}
/* Do not apply app-card coloring to printed previews. */
body[data-ff-mode="plateau_ember_preview"] #rb-root .rb-paper {
  background:#fff!important;color:#253c4c!important;
  box-shadow:0 6px 20px #0004!important;
}
body[data-ff-mode="plateau_ember_preview"] :is(#op-editor,#tc-dialog,#rb-root) :is(button,summary):focus-visible {
  outline:3px solid #b5fff1;outline-offset:3px;
}
}
@media screen and (max-width:760px){
 body[data-ff-mode="plateau_ember_preview"] #op-editor .ops-step :is(button[data-submit],button[data-save],button[data-review],button[data-add],button[type=submit]) {max-width:100%;white-space:normal;overflow-wrap:anywhere;}
 body[data-ff-mode="plateau_ember_preview"] #op-editor .ops-step :is(button[data-submit],button[data-review],button[type=submit]) {min-height:59px;}
 body[data-ff-mode="plateau_ember_preview"] #rb-root .rb-actions {gap:10px;}
 body[data-ff-mode="plateau_ember_preview"] #rb-root .rb-actions button {min-height:50px;}
 body[data-ff-mode="plateau_ember_preview"] #tc-dialog .tc-dialog-body .tc-form-actions {display:flex;flex-wrap:wrap;gap:10px;}
 body[data-ff-mode="plateau_ember_preview"] #tc-dialog .tc-dialog-body .tc-form-actions > button {flex:1 1 125px;}
}
@media (prefers-reduced-motion:reduce){
 body[data-ff-mode="plateau_ember_preview"] :is(#op-editor,#tc-dialog,#rb-root) :is(button,summary){transition:none!important;}
}
@media print {
 body[data-ff-mode="plateau_ember_preview"] #rb-root .rb-paper {background:#fff!important;color:#222!important;box-shadow:none!important;}
}
