.admin-table__th-expand,
.admin-table__td-expand { display: none; }
.admin-table__row-detail { display: none; }
.admin-table__row-detail.open { display: table-row; }
.admin-search__row {
display: flex;
align-items: center;
gap: 0.75rem;
margin-bottom: 1rem;
}
.admin-search__row .admin-search__form { flex: 1; }
.admin-search__filter-badge {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 18px;
height: 18px;
padding: 0 5px;
background: var(--accent);
color: #fff;
border-radius: 9px;
font-size: 0.7rem;
font-weight: 600;
position: absolute;
top: 2px;
right: 2px;
}
.admin-search__filter-toggle {
display: none;
position: relative;
}
.admin-filter__overlay {
display: none;
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.6);
z-index: 198;
}
.admin-filter__overlay.active { display: block; }
.admin-btn--show-mobile { display: none; }
@media (max-width: 900px) {
.admin-sidebar {
position: fixed;
top: 0;
left: 0;
height: 100%;
height: 100dvh;
width: 15rem;
transform: translateX(-100%);
transition: transform var(--transition);
z-index: 200;
}
.admin-sidebar.mobile-open {
transform: translateX(0);
}
.admin-sidebar__overlay {
display: none;
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.6);
z-index: 199;
}
.admin-sidebar__overlay.active { display: block; }
.form-grid-2 { grid-template-columns: 1fr; }
.admin-content { padding: 1.25rem; }
.admin-stats__grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.admin-table__wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.admin-table { min-width: 600px; }
.admin-table { table-layout: auto; }
.admin-table__col-secondary { display: none; }
.admin-table__th-expand, .admin-table__td-expand { display: table-cell; }
.admin-table__td-expand {
width: 32px;
padding: 0 0.25rem !important;
vertical-align: middle;
}
.admin-table__expand-btn {
display: flex;
align-items: center;
justify-content: center;
width: 28px;
height: 28px;
border: 1px solid var(--border-light);
background: none;
border-radius: var(--radius);
color: var(--text-muted);
transition: all var(--transition);
}
.admin-table__expand-btn:hover,
.admin-table__expand-btn.open {
background: var(--bg-hover);
color: var(--text-main);
border-color: var(--border-light);
}
.admin-table__expand-btn .admin-table__expand-icon {
transition: transform var(--transition);
}
.admin-table__expand-btn.open .admin-table__expand-icon {
transform: rotate(90deg);
}
.admin-table__row-detail.open > td {
padding: 0.5rem 1rem 0.875rem;
background: var(--bg-hover);
border-bottom: 1px solid var(--border);
line-height: 2.5;
}
.admin-table__detail-grid {
gap: 0.6rem 1.5rem;
width: 85vw;
}
.admin-table__detail-item {
display: flex;
flex-direction: column;
gap: 0.15rem;
min-width: 90px;
}
.admin-table__detail-label {
font-size: 0.68rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.06em;
color: var(--text-muted);
}
.admin-table__detail-value {
font-size: 0.85rem;
color: var(--text-main);
word-break: break-word;
}
}
@media (max-width: 768px) {
.admin-btn--hide-mobile { display: none !important; }
.admin-btn--show-mobile { display: flex; }
.admin-search__filter-toggle { display: flex; }
.admin-page__actions {
position: fixed;
bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
right: calc(1rem + env(safe-area-inset-right, 0px));
z-index: 150;
gap: 0.5rem;
}
.admin-filter__sidebar {
position: fixed;
top: 0;
right: 0;
height: 100%;
height: 100dvh;
width: 220px;
max-height: none;
border-radius: 0;
border-left: 1px solid var(--border);
border-right: none;
transform: translateX(100%);
transition: transform var(--transition);
z-index: 200;
overflow-y: auto;
}
.admin-filter__sidebar.mobile-open { transform: translateX(0); }
.admin-filter__sidebar .admin-filter__body {
max-height: none;
overflow-y: visible;
}
.admin-list__layout,
.admin-list__layout.filter-collapsed { grid-template-columns: 1fr; }
#filterToggle svg { display: none; }
#filterToggle::after { content: '✕'; font-size: 1rem; line-height: 1; }
.admin-page__actions .admin-menu__dropdown {
top: auto;
bottom: calc(100% + 4px);
right: 0;
}
.admin-danger-zone {
flex-direction: column;
align-items: flex-start;
}
}
@media (max-width: 768px) {
.admin-group-action__bar {
flex-wrap: wrap;
gap: 0.5rem;
}
.admin-group-action__btns {
width: 100%;
flex-wrap: wrap;
justify-content: flex-end;
}
.admin-group-action__selects {
width: 100%;
flex-wrap: wrap;
}
.admin-group-action__select {
flex: 1 1 calc(50% - 0.25rem);
min-width: 0;
}
}
@media (max-width: 480px) {
.admin-group-action__selects .btn,
.admin-group-action__btns > .btn {
width: 100%;
}
.history-filter-select {
width: 100%;
}
}
@media (max-width: 600px) {
.admin-topbar { padding: 0 0.875rem; gap: 0.5rem; justify-content: space-around; }
.admin-topbar__breadcrumb { display: none; }
.admin-topbar__user span { display: none; }
.admin-search__row {
display: flex;
align-items: center;
gap: 0.75rem;
margin-bottom: 1rem;
justify-content: space-between;
}
.admin-content {
padding: 0.875rem;
padding-bottom: 4.5rem;
}
.admin-page__header {
flex-direction: column;
align-items: flex-start;
gap: 0.75rem;
margin-bottom: 1rem;
}
.admin-stats__grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.admin-stats__value { font-size: 1.4rem; }
.admin-card__body { padding: 0.875rem; }
.admin-card__header { padding: 0.75rem 0.875rem; }
#list-content .admin-pagination {
position: fixed;
bottom: 0;
left: 0;
right: 0;
background: var(--bg-card);
border-top: 1px solid var(--border);
z-index: 140;
gap: 1.5rem;
padding: 0.6rem 1rem;
padding-bottom: calc(0.6rem + env(safe-area-inset-bottom, 0px));
justify-content: space-between;
}
.admin-table th { width: 43vw }
.admin-table td { padding: 0.6rem 0.75rem; font-size: 0.82rem; }
.admin-table { min-width: 95vw; }
.form-group { gap: 0.3rem; }
.number-field input,
.select-field select,
.form-control { font-size: 0.95rem; }
.detail-row { grid-template-columns: 1fr; gap: 0.25rem; }
.detail-key { padding-top: 0; }
.admin-alert { padding: 0.7rem 0.875rem; font-size: 0.85rem; }
}
@media (max-width: 320px) {
.admin-table {
min-width: 0;
table-layout: fixed;
width: 100%;
display: block;
}
}
@media (min-width:321px) and (max-width: 480px) {
.admin-table {
min-width: 0;
table-layout: fixed;
width: 100%;
}
.admin-table__wrapper { overflow-x: auto; }
.admin-table col.admin-table__col-bulk { width: 12%; }
.admin-table col.admin-table__col-id { width: 13%; }
.admin-table col.admin-table__col-expand { width: 9%; }
.admin-table col.admin-table__col-actions { width: 20%; }
.admin-table td:nth-child(2) .admin-table__td-content {
display: block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
-webkit-line-clamp: unset;
}
.admin-table__detail-grid {
width: auto;
max-width: 100%;
}
.admin-badge--id { padding: 0.1rem 0.3rem; font-size: 0.72rem; }
.admin-stats__grid { grid-template-columns: 1fr; }
.admin-table__actions { flex-wrap: wrap; }
.admin-page__title { font-size: 1.1rem; }
.admin-card--form { max-width: 100%; }
.admin-search__input { max-width: 100%; }
.search-bar input { min-width: 0; }
.admin-form__actions {
flex-direction: column-reverse;
gap: 0.5rem;
}
.admin-form__actions .btn { width: 100%; justify-content: center; }
.admin-filter__sidebar { width: 55vw; border-left: none; }
}
@media (max-width: 480px) {
.admin-table.admin-table--resources {
table-layout: auto;
}
.admin-table.admin-table--resources th:first-child,
.admin-table.admin-table--resources td:first-child {
width: auto;
}
.admin-table.admin-table--resources th:last-child,
.admin-table.admin-table--resources td:last-child {
white-space: nowrap;
}
}
@media (min-width: 1400px) {
.admin-content { padding: 2rem 2.5rem; }
.admin-stats__grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}
@media (max-width: 480px) {
.admin-group-edit__perm-grid { gap: 0.5rem 1rem; }
.admin-group-edit__perm-grid .boolean-field { min-width: 110px; }
.admin-group-edit__section-header { flex-direction: column; align-items: flex-start; }
}