/* Consistent record actions, retaining each module's handlers and permissions. */
.reference-layout .app-shell button.sc-record-action{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;flex:none;width:36px;min-width:36px;height:36px;min-height:36px;padding:0;margin:2px 3px 2px 0;border:1px solid #e7e9f0;border-radius:8px;background:#fff;color:#758095;box-shadow:none;font-size:0;line-height:1;text-decoration:none;cursor:pointer;transition:background .15s,border-color .15s,color .15s}
.reference-layout .app-shell button.sc-record-action svg{display:block;width:17px;height:17px;pointer-events:none;fill:none;stroke:currentColor}
.reference-layout .app-shell button.sc-record-action+button.sc-record-action{margin-left:0}
.reference-layout .app-shell button.sc-record-action:hover{background:#f8f9fc;border-color:#cdd3df;color:#35455e;transform:none;box-shadow:none}
.reference-layout .app-shell button.sc-record-action[data-record-action="delete"]{color:#c44962}
.reference-layout .app-shell button.sc-record-action[data-record-action="delete"]:hover{background:#fff0f4;border-color:#f4c5d0;color:#bd244b}
.reference-layout .app-shell button.sc-record-action[data-record-action="restore"]{color:#318368}
.reference-layout .app-shell button.sc-record-action[data-record-action="restore"]:hover{background:#edf9f3;border-color:#c6e8d6;color:#226d51}
.reference-layout .app-shell button.sc-record-action:focus-visible{outline:3px solid #dd1950;outline-offset:3px}
.reference-layout .app-shell button.sc-record-action:disabled{opacity:.4;cursor:not-allowed;background:#f8f9fb;border-color:#e9ecf1}
.reference-layout .cl-table td:has(>button.sc-record-action){white-space:nowrap;min-width:154px}
@media(max-width:900px),(pointer:coarse){.reference-layout .app-shell button.sc-record-action{width:44px;min-width:44px;height:44px;min-height:44px}.reference-layout .app-shell button.sc-record-action svg{width:19px;height:19px}}
@media(prefers-reduced-motion:reduce){.reference-layout .app-shell button.sc-record-action{transition:none}}

/* Keep desktop row actions reachable when a table needs horizontal scrolling. */
@media(min-width:901px){.reference-layout .cl-table:has(button.sc-record-action)>thead>tr>th:last-child,.reference-layout .cl-table td:has(>button.sc-record-action){position:sticky;right:0;z-index:1;background:#fff;box-shadow:-10px 0 12px -13px #24324966}.reference-layout .cl-table:has(button.sc-record-action)>thead>tr>th:last-child{background:#fdfaff;z-index:2}}
