/* R592: one action palette for both Progres cards; text and behavior stay explicit. */
html body :is(#awpProgressDialog,#awpUnitDialog) :is(button,a.progress-wa){
 background:var(--progress-action-bg,#17639a)!important;
 background-image:none!important;
 color:var(--progress-action-ink,#fff)!important;
 -webkit-text-fill-color:var(--progress-action-ink,#fff)!important;
 border-color:var(--progress-action-border,#12557f)!important;
 box-shadow:none!important;text-shadow:none!important;
}
/* +Pekerjaan opens the editor; its active state never looks like a destructive action. */
html body :is(#awpProgressDialog,#awpUnitDialog) :is(#progressManage,#unitManage){--progress-action-bg:#0e716d;--progress-action-border:#095e5a;--progress-action-ink:#fff}
html body :is(#awpProgressDialog,#awpUnitDialog) :is(#progressManage,#unitManage)[aria-expanded="true"]{box-shadow:inset 0 0 0 1px #ffffff99!important}
/* Commit actions. */
html body :is(#awpProgressDialog,#awpUnitDialog) :is(#progressSave,#progressItemSave,#progressHeaderSave,#unitEntrySave,#unitJobSave,#unitHeaderSave){--progress-action-bg:#187044;--progress-action-border:#105832;--progress-action-ink:#fff}
/* Exports and report identity are distinct from save and delete. */
html body :is(#awpProgressDialog,#awpUnitDialog) :is(#progressDownload,#unitDownload){--progress-action-bg:#175f99;--progress-action-border:#104d7e;--progress-action-ink:#fff}
html body :is(#awpProgressDialog,#awpUnitDialog) :is(#progressShare,#unitShare,a.progress-wa){--progress-action-bg:#147b48;--progress-action-border:#0c6136;--progress-action-ink:#fff}
html body :is(#awpProgressDialog,#awpUnitDialog) :is(#progressHeaderToggle,#unitHeaderToggle){--progress-action-bg:#65479b;--progress-action-border:#503680;--progress-action-ink:#fff}
/* Edit uses amber; only destructive row actions use red. */
html body :is(#awpProgressDialog,#awpUnitDialog) :is(.progress-edit,.unit-edit){--progress-action-bg:#fff0c2;--progress-action-border:#c29c45;--progress-action-ink:#73490c}
html body :is(#awpProgressDialog,#awpUnitDialog) :is(.progress-danger,.unit-danger){--progress-action-bg:#b12e40;--progress-action-border:#952437;--progress-action-ink:#fff}
/* Cancel/back actions remain neutral in either theme. */
html body :is(#awpProgressDialog,#awpUnitDialog) :is(#progressCancelEdit,#progressItemCancel,#progressHeaderCancel,#unitEntryCancel,#unitJobCancel,#unitHeaderCancel){--progress-action-bg:#e6edf2;--progress-action-border:#8da3b4;--progress-action-ink:#334b5e}
html body.dark-theme :is(#awpProgressDialog,#awpUnitDialog) :is(#progressCancelEdit,#progressItemCancel,#progressHeaderCancel,#unitEntryCancel,#unitJobCancel,#unitHeaderCancel){--progress-action-bg:#2b455a;--progress-action-border:#7591a6;--progress-action-ink:#e5eff7}
html body :is(#awpProgressDialog,#awpUnitDialog) :is(#progressClose,#unitClose){--progress-action-bg:transparent;--progress-action-border:transparent;--progress-action-ink:inherit;background:transparent!important;color:inherit!important;-webkit-text-fill-color:currentColor!important}
html body :is(#awpProgressDialog,#awpUnitDialog) :is(button,a.progress-wa):focus-visible{outline:3px solid #5cb8d8!important;outline-offset:2px!important}
html body :is(#awpProgressDialog,#awpUnitDialog) button:disabled{opacity:.5!important;cursor:default!important}
/* R593: management follows the total card; compact storage status sits to its left. */
html body :is(#awpProgressDialog,#awpUnitDialog)>.progress-header-actions{display:flex;align-items:center;justify-content:space-between;margin:8px 0;gap:6px}
html body :is(#awpProgressDialog,#awpUnitDialog)>.progress-header-actions>button{width:auto!important;min-height:33px!important;white-space:normal!important;margin:0!important;padding:7px 12px!important}
html body #awpProgressDialog .progress-main-toolbar{grid-template-columns:max-content max-content minmax(0,1fr)}
@media(max-width:600px){html body #awpProgressDialog .progress-main-toolbar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}html body #awpProgressDialog .progress-main-toolbar>#progressHeaderToggle{margin-left:0!important}}

html body :is(#awpProgressDialog,#awpUnitDialog)>.progress-header-actions>small{margin:0!important;min-width:0;font-size:10px}
