/* AndroidSync operational pages on the pinned PortalFramework source shell. */
.page-heading h1 {
    margin:0 0 12px;
    font-size:clamp(28px,3vw,40px);
    line-height:1.1;
    letter-spacing:-1px;
}
.page-heading p,.section-heading p {
    color:var(--portal-muted);
    line-height:1.6;
    margin:8px 0 24px;
}
.eyebrow {
    font-size:10px;
    font-weight:700;
    letter-spacing:1.6px;
    color:var(--portal-muted);
    margin-bottom:12px;
}
.section-heading {
    display:flex;
    align-items:start;
    justify-content:space-between;
    gap:18px;
    margin-bottom:20px;
}
.section-heading h2 {
    font-size:20px;
    margin:0;
}
.section-heading .page-heading {
    margin-bottom:0;
}
.metric-grid {
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:16px;
    margin:28px 0 36px;
}
.metric-card {
    background:white;
    border:1px solid var(--portal-line);
    border-radius:10px;
    padding:22px;
}
.metric-card span,.metric-card small {
    display:block;
    color:var(--portal-muted);
    font-size:12px;
}
.metric-card strong {
    display:block;
    font-size:34px;
    margin:14px 0;
}
.metric-card small {
    font-size:11px;
    line-height:1.6;
}
.device-grid {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:18px;
}
.device-card,.panel-card,.task-card {
    padding:24px;
    background:white;
    border:1px solid var(--portal-line);
    border-radius:10px;
}
.card-heading {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    margin-bottom:18px;
    flex-wrap:wrap;
}
.object-icon {
    display:grid;
    place-items:center;
    width:40px;
    height:40px;
    background:var(--portal-brand-soft);
    color:var(--portal-brand);
    border-radius:10px;
}
.device-card h3 {
    margin:0 0 8px;
    font-size:18px;
}
.status-pill {
    display:inline-flex;
    padding:6px 9px;
    font-size:10px;
    background:#eef2f7;
    color:#3c4e68;
    border-radius:5px;
    line-height:1.4;
}
.text-link {
    color:var(--portal-brand);
    font-weight:600;
    font-size:12px;
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:8px 0;
}
.policy-note {
    display:flex;
    align-items:start;
    gap:14px;
    margin:24px 0;
    padding:18px 20px;
    background:#edf3fc;
    border-left:3px solid #8daee2;
    font-size:12px;
    line-height:1.7;
}
.policy-note svg {
    flex-shrink:0;
    margin-top:2px;
}
.policy-note p {
    margin:0;
}
.empty-state {
    text-align:center;
    padding:46px 24px;
    border:1px dashed #cbd6e4;
    border-radius:10px;
    color:var(--portal-muted);
    background:#fff;
}
.empty-state h3 {
    color:var(--portal-ink);
    margin:14px 0 8px;
}
.empty-state p {
    font-size:13px;
    line-height:1.7;
}
.muted,small {
    color:var(--portal-muted);
    font-size:11px;
    line-height:1.7;
}
small {
    display:block;
}
code {
    font-family:Consolas,monospace;
    overflow-wrap:anywhere;
    font-size:11px;
    color:#62738d;
}
td code {
    display:block;
    margin-top:6px;
}
h2 {
    font-size:19px;
}
p {
    line-height:1.7;
}
label {
    display:block;
    font-size:12px;
    font-weight:600;
    margin:0 0 18px;
}
input,select,textarea {
    display:block;
    width:100%;
    margin-top:8px;
    border:1px solid #cdd7e5;
    border-radius:6px;
    padding:11px 12px;
    font:inherit;
    font-size:13px;
    color:var(--portal-ink);
    background:white;
}
textarea {
    resize:vertical;
}
button,.button {
    font:inherit;
    font-size:12px;
    font-weight:600;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    min-height:40px;
    padding:10px 16px;
    border:1px solid var(--portal-brand);
    border-radius:6px;
    background:var(--portal-brand);
    color:white;
    cursor:pointer;
    line-height:1.5;
}
button:hover,.button:hover {
    filter:brightness(.94);
}
.secondary {
    background:white;
    color:#40536e;
    border-color:#cdd7e5;
}
.danger {
    background:#9b3030;
    border-color:#9b3030;
    color:white;
}
.full-width {
    width:100%;
    margin-top:16px;
}
.table-wrap {
    overflow:auto;
    border:1px solid var(--portal-line);
    border-radius:10px;
    background:white;
}
table {
    width:100%;
    border-collapse:collapse;
    min-width:740px;
    font-size:12px;
}
th {
    text-align:left;
    padding:15px 18px;
    background:#f8fafd;
    color:var(--portal-muted);
    font-size:10px;
    text-transform:uppercase;
    letter-spacing:.7px;
}
td {
    padding:22px 18px;
    border-top:1px solid var(--portal-line);
    vertical-align:top;
    line-height:1.7;
}
td strong {
    font-size:13px;
}
dl {
    margin:20px 0;
}
dt {
    font-size:10px;
    text-transform:uppercase;
    letter-spacing:.5px;
    color:var(--portal-muted);
    margin-top:14px;
}
dd {
    font-size:13px;
    margin:6px 0;
    line-height:1.7;
}
.sms-body {
    white-space:pre-wrap;
    overflow-wrap:anywhere;
}
.filter-bar {
    display:flex;
    gap:16px;
    align-items:end;
    flex-wrap:wrap;
    padding:20px;
    background:white;
    border:1px solid var(--portal-line);
    border-radius:10px;
    margin-bottom:24px;
}
.filter-bar label {
    flex:1;
    min-width:180px;
    margin:0;
}
.queue-columns {
    display:grid;
    grid-template-columns:320px minmax(0,1fr);
    gap:24px;
    align-items:start;
}
.compose-panel p {
    font-size:12px;
    color:var(--portal-muted);
}
.queue-list .section-heading {
    margin-top:4px;
    align-items:center;
}
.task-card {
    margin-bottom:18px;
}
.row-actions {
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}
.error-state {
    padding:16px;
    background:#fff3ee;
    border:1px solid #ebc7b7;
    color:#7a3720;
    font-size:12px;
    line-height:1.7;
    margin:16px 0;
    border-radius:6px;
}
.revoke-confirm summary {
    color:#963838;
    font-size:12px;
    cursor:pointer;
    min-height:40px;
    display:list-item;
    padding:8px 0;
}
.revoke-confirm p {
    max-width:220px;
    font-size:11px;
}
.pair-code {
    font-size:16px;
    line-height:2;
    display:block;
    max-width:760px;
    padding:20px;
    border:1px solid #cdd7e5;
    background:#f8fafd;
    color:var(--portal-ink);
    word-break:break-all;
}
.login-surface {
    min-height:100dvh;
    display:grid;
    place-items:center;
    padding:24px;
}
.login-card {
    width:100%;
    max-width:440px;
    padding:40px;
    background:white;
    border:1px solid var(--portal-line);
    border-radius:12px;
}
.login-card h1 {
    font-size:28px;
    margin:16px 0;
}
.login-card p {
    font-size:13px;
}
.consent-actions {
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin-top:20px;
}
.consent-actions button {
    min-height:44px;
}
.account-popover form {
    margin:0;
}
.account-popover button {
    border:0;
}
.portal-menu-item svg {
    flex-shrink:0;
}
@media(max-width:1200px) {
    .device-grid {
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
    .metric-grid {
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
    .queue-columns {
        grid-template-columns:280px minmax(0,1fr);
    }
}
@media(max-width:1000px) {
    .queue-columns {
        grid-template-columns:1fr;
    }
    .compose-panel {
        max-width:none;
    }
    .metric-card {
        padding:18px;
    }
    .device-grid {
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}
@media(max-width:550px) {
    .device-grid,.metric-grid {
        grid-template-columns:1fr;
    }
    .section-heading {
        flex-wrap:wrap;
    }
    .filter-bar label {
        min-width:100%;
    }
    .login-card {
        padding:28px;
    }
    .panel-card,.device-card,.task-card {
        padding:20px;
    }
}

/* Keep integration configuration readable and copyable on narrow screens. */
.integration-config {
    max-width:100%;
    white-space:pre-wrap;
    overflow-wrap:anywhere;
    padding:16px;
    background:#f5f8fc;
    border:1px solid var(--portal-line);
    border-radius:8px;
    line-height:1.6;
}
.panel-card + .panel-card {
    margin-top:20px;
}

/* Phone details keep policy decisions out of the inventory table. */
.phone-name { color:var(--portal-brand); font-size:13px; font-weight:600; overflow-wrap:anywhere; }
.phone-detail-heading { margin-top:20px; align-items:center; }
.phone-detail-heading h1 { overflow-wrap:anywhere; }
.phone-detail-layout { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(260px,1fr); gap:24px; align-items:start; }
.phone-detail-layout > * { min-width:0; }
.phone-policy .section-heading { flex-wrap:wrap; }
.phone-policy .section-heading p { margin-bottom:0; }
.phone-information p { font-size:12px; }
.phone-information dd { overflow-wrap:anywhere; }
.policy-options { border:0; padding:0; margin:24px 0; min-width:0; }
.policy-options legend { font-size:12px; font-weight:600; margin-bottom:12px; }
.policy-option { display:flex; gap:12px; align-items:start; border:1px solid var(--portal-line); border-radius:8px; padding:16px; margin:0 0 12px; cursor:pointer; font-weight:400; line-height:1.6; }
.policy-option:has(input:checked) { border-color:var(--portal-brand); background:var(--portal-brand-soft); }
.policy-option input,.policy-confirm input { width:18px; height:18px; margin:3px 0 0; padding:0; flex-shrink:0; accent-color:var(--portal-brand); }
.policy-option strong { display:block; margin-bottom:4px; font-size:13px; }
.policy-option span span { display:block; color:#40536e; }
.policy-confirm { display:flex; align-items:start; gap:12px; font-weight:400; line-height:1.7; }
.phone-policy .row-actions > * { min-height:44px; }
.phone-detail-layout :is(input,button,a,summary):focus-visible,.phone-name:focus-visible { outline:3px solid var(--portal-brand); outline-offset:3px; }
.phone-information .revoke-confirm summary { border:1px solid #cdd7e5; border-radius:6px; padding:10px 16px; min-height:44px; width:fit-content; list-style:none; font-weight:600; }
.phone-information .revoke-confirm summary::-webkit-details-marker { display:none; }
.phone-information .revoke-confirm p { max-width:none; }
@media(max-width:1000px) { .phone-detail-layout { grid-template-columns:minmax(0,1fr); } }
