.device-filters { display:grid; grid-template-columns:minmax(180px,1fr) minmax(150px,220px) auto; gap:14px; align-items:end; margin:18px 0 8px; padding:16px; border:1px solid var(--color-line); border-radius:12px; background:#f6f9f7; }
.device-filters > *, .devices-table td > *, .device-actions { min-width:0; }
.device-filters input,.device-filters select,.device-filters button { min-height:44px; }
.device-results { color:var(--color-muted); font-size:13px; margin:12px 0; }
#devicePolicyGuide { margin:16px 0; padding:12px 14px; border:1px solid var(--color-line); border-radius:10px; font-size:13px; color:var(--color-muted); }
#devicePolicyGuide summary { cursor:pointer; font-weight:600; color:var(--color-text); }
#devicePolicyGuide p { margin:12px 0 0; }
.devices-table { width:100%; min-width:0; table-layout:fixed; }
.devices-table th:first-child { width:22%; }.devices-table th:nth-child(2) { width:17%; }
.devices-table th:nth-child(3) { width:20%; }.devices-table th:nth-child(4),.devices-table th:nth-child(5) { width:12%; }
.devices-table th:last-child { width:17%; }
.devices-table td { vertical-align:top; padding:18px 10px; overflow-wrap:anywhere; }
.devices-table tbody tr:hover { background:#f8fbf9; }
.device-identifier { margin-top:8px; font-size:11px; color:var(--color-muted); }
.device-identifier summary { cursor:pointer; }.device-identifier code { display:block; margin-top:6px; white-space:normal; overflow-wrap:anywhere; }
.device-actions { display:grid; gap:8px; }.device-actions .button { width:100%; text-align:left; white-space:normal; }
.device-actions .user-actions { min-width:0; }
.device-block-reason { display:block; margin-top:8px; padding:8px; background:#fff5de; color:#775416; border-radius:6px; font-size:12px; line-height:1.5; }
.device-owner-note { display:block; margin-top:5px; color:var(--color-muted); font-size:12px; }
.device-allocation { display:block; margin-top:8px; font-size:12px; }
.status-pending { color:#775416; background:#fff0cd; }
.device-remove { border-color:#d9b7b5; background:#fff; color:var(--color-danger); }
.users-table .table-actions { display:grid; grid-template-columns:1fr; gap:7px; }
.users-table .user-actions { min-width:0; }.users-table .user-identity > span:last-child { color:var(--color-muted); font-size:12px; }
.users-table .status-badge { white-space:nowrap; }.users-table th:nth-child(4) { width:16%; }
#deviceActionDialog { width:min(520px,calc(100vw - 28px)); max-height:calc(100dvh - 32px); overflow:auto; }
#deviceActionDescription { color:var(--color-muted); line-height:1.6; }
#deviceActionReason { resize:vertical; width:100%; box-sizing:border-box; min-height:90px; }
#deviceActionDialog [aria-busy="true"] { cursor:progress; }
.notification-status[data-tone="success"] { color:var(--color-primary-strong); background:#edf8f1; padding:12px; border-radius:8px; }
.notification-status[data-tone="error"] { color:var(--color-danger); background:#fff0ed; padding:12px; border-radius:8px; }
@media(max-width:1100px) { .device-filters { grid-template-columns:1fr 1fr; }.device-filters > button { grid-column:1/-1; } }
@media(max-width:900px) {
 .devices-table,.devices-table tbody,.devices-table tr,.devices-table td { display:block; width:100%; min-width:0; }
 .devices-table thead { display:none; }.devices-table tr { border:1px solid var(--color-line); border-radius:12px; padding:14px; margin-bottom:14px; box-sizing:border-box; background:#fff; }
 .devices-table td { display:grid; grid-template-columns:80px minmax(0,1fr); gap:12px; padding:10px 0; border-bottom:1px solid var(--color-line); }
 .devices-table td::before { content:attr(data-label); font-size:12px; font-weight:600; color:var(--color-muted); }
 .devices-table td:first-child,.devices-table td.empty-state { display:block; }.devices-table td:first-child::before,.devices-table td.empty-state::before { display:none; }
 .devices-table td:last-child { border-bottom:0; }.device-actions .button { min-height:44px; }
}
@media(max-width:540px) { .device-filters { grid-template-columns:1fr; padding:12px; }.device-filters > button { grid-column:auto; }.devices-table td { grid-template-columns:65px minmax(0,1fr); }.dialog-actions { flex-wrap:wrap; }.dialog-actions .button { min-height:44px; } }
