/* F202: admin-layout fixes, loaded after the theme (the theme's compiled CSS is a build file, not edited) */

/* page header: the title on the left, the actions on the right; several action buttons sit side by side and
   wrap neatly instead of stacking crookedly (Leaves: "Apply for Leave" + "Leave Types") */
.page-header { flex-wrap: wrap; gap: 12px; }
.page-header .page-btn { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 0; }
.page-header .page-btn > .btn, .page-header .page-btn > a.btn { margin: 0 !important; white-space: nowrap; }
.page-header .table-top-head { margin-bottom: 0; }
@media (max-width: 767.98px) {
  .page-header { flex-direction: column; align-items: stretch; }
  .page-header .page-btn { margin-left: 0; }
}

/* wide tables scroll sideways inside their card (never the whole page) */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.page-wrapper .content { overflow-x: hidden; }

/* audit log: long details wrap instead of stretching the table */
.audit-details { min-width: 220px; max-width: 520px; white-space: normal !important; word-break: break-word; overflow-wrap: anywhere; }
