.rowactions{white-space:nowrap}
.rowactions .action-button{display:inline-block;border-radius:6px;padding:7px 11px;font-size:12px;font-weight:bold;text-decoration:none;transition:background .15s ease,box-shadow .15s ease}
.rowactions .action-button:hover{box-shadow:0 2px 5px #17203326}
.rowactions .edit{background:#e7f0ff;color:#1d5fbe}
.rowactions .edit:hover{background:#d8e7ff}
.rowactions .delete{background:#ffebeb;color:#c23333;margin-left:8px}
.rowactions .delete:hover{background:#ffdcdc}
.rowactions form{display:inline}
.rowactions .restore{background:#e5f8ef;color:#146b45}
.rowactions .restore:hover{background:#d6f2e4}
.rowactions .permanent-delete{background:#ffebeb;color:#c23333;margin-left:8px}
.rowactions .permanent-delete:hover{background:#ffdcdc}

.table-controls{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 18px;padding:14px 16px;background:#fff;border:1px solid #e5e9f1;border-radius:10px;box-shadow:0 2px 8px #1d31500a}
.table-controls select,.table-controls input{margin:0}
.table-length{display:flex;align-items:center;gap:8px;color:#586983;font-size:13px;white-space:nowrap}
.table-length label{font-weight:600}
.table-length select{width:auto;min-width:66px;padding:9px 30px 9px 10px}
.table-search{display:flex;align-items:center;gap:8px;width:min(100%,500px)}
.table-search input{min-width:0;flex:1;padding:10px 12px}
.table-search button{flex:0 0 auto;padding:10px 18px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.tablewrap th{padding:0 12px 13px}
.tablewrap th a{display:inline-flex;align-items:center;gap:3px;color:inherit;text-decoration:none;white-space:nowrap}
.tablewrap th a:hover{color:#2467c8}
.tablewrap td{padding:15px 12px}
.table-footer{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:18px;padding-top:16px;border-top:1px solid #edf0f5;color:#71809b;font-size:13px}
.pagination{display:flex;align-items:center;gap:5px}
.pagination a{display:inline-flex;align-items:center;justify-content:center;min-width:34px;border:1px solid #d7deeb;border-radius:6px;color:#3a5f97;padding:7px 10px;text-decoration:none}
.pagination a:hover,.pagination a.active{background:#2467d4;border-color:#2467d4;color:#fff}
.pagination a.active{font-weight:bold}
@media(max-width:800px){.table-controls{align-items:stretch;flex-direction:column;padding:14px}.table-length{justify-content:space-between}.table-search{width:100%}.table-footer{align-items:flex-start;flex-direction:column}.pagination{flex-wrap:wrap}}
@media(max-width:480px){.table-search button{padding-inline:14px}.pagination a{padding:7px 9px}.pagination a:first-child,.pagination a:last-child{width:100%}}
