﻿.devices-page { background: #fff; color: #101827; }
.devices-page .site-header { position: relative; height: auto; min-height: 76px; background: #fff; border-bottom: 1px solid #e2e7ed; }
.devices-page .navbar-logo { color: #101827; }
.devices-page .nav-link { color: #354052; }
.devices-page .nav-link.active { color: #0664cf; }
.devices-page .supported-devices-link::after { background: #0664cf; }
.devices-main { background: #fff; width: min(90%, 1380px); min-height: calc(100vh - 76px); margin: auto; padding: 48px 0 80px; overflow: visible; }
.device-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 38px; }
.device-kicker { color: #0664cf; font-size: 14px; font-weight: 700; letter-spacing: 1.3px; margin-bottom: 10px; }
.devices-main h1 { font-size: clamp(32px, 3vw, 44px); line-height: 1.15; margin-bottom: 12px; }
.device-subtitle { color: #536072; font-size: 19px; line-height: 1.5; }
.device-controls { display: flex; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.device-search { flex: 1; max-width: 650px; }
.devices-page input, .devices-page select, .devices-page textarea { width: 100%; padding: 13px 15px; border: 1px solid #bdc9d8; border-radius: 5px; color: #243044; background: white; font: inherit; }
.device-filters { display: flex; flex-wrap: wrap; border: 1px solid #cfd8e3; border-radius: 5px; overflow: hidden; }
.device-filters button { border: 0; border-right: 1px solid #dce3eb; background: white; color: #425168; padding: 13px 20px; font: inherit; cursor: pointer; }
.device-filters button[aria-pressed="true"] { background: #0664cf; color: white; }
.device-table-wrap { overflow-x: auto; border-radius: 5px; }
#device-table { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 700px; }
#device-table th, #device-table td { padding: 20px; text-align: left; border: 1px solid #dce3eb; line-height: 1.5; }
#device-table th { background: #f6f8fb; font-size: 14px; }
#device-table td:first-child { font-weight: 500; overflow-wrap: anywhere; max-width: 320px; }
.device-badge { display: inline-block; padding: 4px 12px; color: #075fbd; background: #eaf3ff; border-radius: 4px; font-size: 14px; }
.device-button { display: inline-flex; align-items: center; justify-content: center; padding: 12px 20px; border: 1px solid #0664cf; border-radius: 5px; color: #0664cf; background: white; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.device-button.primary { background: #0664cf; color: white; }
.device-button.danger { border-color: #c53030; color: #b42323; }
.device-button:hover { filter: brightness(.92); }
.device-button:disabled { opacity: .6; cursor: wait; }
.device-actions { white-space: nowrap; }
.device-actions .device-button { padding: 8px 14px; margin: 0 8px 0 0; }
.device-meta { color: #536072; font-size: 14px; margin-top: 20px; }
#device-status:not(.empty-state) { color: #536072; font-size: 14px; margin-bottom: 12px; }
.empty-state { border: 1px solid #dce3eb; border-radius: 5px; background: #fafbfd; padding: 64px 24px; text-align: center; color: #536072; line-height: 1.6; }
.device-callout { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 48px; padding: 28px; border: 1px solid #ccdef3; border-radius: 7px; background: #f0f6fd; }
.device-callout h2 { color: #0755a6; font-size: 18px; margin-bottom: 8px; }
.device-callout p { color: #536072; line-height: 1.5; }
#device-dialog { margin: auto; width: min(460px, calc(100% - 32px)); max-height: calc(100% - 32px); overflow-y: auto; padding: 30px; border: 0; border-radius: 9px; color: #182235; background: white; box-shadow: 0 20px 60px #10182733; }
#device-dialog::backdrop { background: #14203066; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.dialog-heading h2 { font-size: 26px; }
.dialog-heading button { border: 0; background: none; color: #536072; font-size: 30px; cursor: pointer; padding: 0 6px; }
#device-form label { display: block; margin: 23px 0 8px; font-weight: 600; font-size: 14px; }
#device-form small { display: block; margin-top: 6px; color: #536072; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 28px; border-top: 1px solid #e2e7ed; padding-top: 22px; }
#form-error { color: #b42323; margin-top: 12px; }
.devices-page :focus-visible { outline: 3px solid #1688f5; outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
@media (max-width: 1000px) { .device-controls { flex-direction: column; } .device-search { max-width: none; } .device-filters { align-self: flex-start; } }
@media (max-width: 760px) { .devices-page .navbar { width: 90%; flex-wrap: wrap; padding-top: 16px; } .devices-page .navbar-links { width: 100%; flex-wrap: wrap; gap: 0 20px; } .devices-page .nav-link { padding: 14px 0; } .devices-page .nav-link::after { bottom: 5px; } .device-heading, .device-callout { align-items: flex-start; flex-direction: column; } .device-heading { margin-bottom: 28px; } .devices-main { padding-top: 32px; } .device-filters button { padding: 12px; font-size: 14px; } .device-callout { padding: 22px; } }
