/* iPad 状态页与 process_status 汇总卡片：对齐 Redis 水位 / blocklist 白卡风格。 */
.wf-crumb { font-size: 13px; color: #888; margin-bottom: 14px; }
.wf-crumb a { color: #2196F3; text-decoration: none; font-weight: 500; }
.wf-crumb a:hover { text-decoration: underline; }
.wf-crumb .sep { margin: 0 8px; color: #ccc; }
.page-header { font-size: 22px; font-weight: 600; color: #333; margin-bottom: 20px; }
.back-link { color: #1E88E5; text-decoration: none; font-size: 14px; }
.back-link:hover { text-decoration: underline; }
.admin-card {
    background: #FFFFFF; border-radius: 12px; border: 1px solid #E8E8E8;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06); padding: 24px; margin-bottom: 20px;
    transition: box-shadow 0.15s;
}
.admin-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.admin-card h2 {
    font-size: 18px; font-weight: 600; color: #333; margin: 0 0 20px 0;
    padding-bottom: 12px; border-bottom: 1px solid #F0F0F0;
}
.empty-hint { color: #999; font-size: 13px; font-style: italic; }
.ipad-summary-card {
    background: #FFFFFF; border-radius: 8px; padding: 20px; margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06); border: 1px solid #E8E8E8;
}
.ipad-summary-head {
    display: flex; justify-content: space-between; align-items: center;
    gap: 16px; margin-bottom: 12px;
}
.ipad-summary-head h2 { margin: 0; color: #555; font-size: 20px; }
.ipad-more {
    color: #2196F3; text-decoration: none; font-size: 24px; line-height: 1;
    font-weight: 500; padding: 2px 6px;
}
.ipad-more:hover { text-decoration: underline; }
.ipad-summary-body { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.ipad-summary-count { font-size: 34px; line-height: 1.1; font-weight: 700; color: #4CAF50; }
.ipad-summary-label { color: #666; font-size: 13px; }
.ipad-summary-total { margin-left: auto; color: #666; font-size: 13px; }
.ipad-summary-loading { color: #999; font-size: 13px; }
.ipad-page-summary { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.ipad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.ipad-device-card {
    background: #FFFFFF; border: 1px solid #E8E8E8; border-radius: 12px;
    padding: 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    display: flex; flex-direction: column; gap: 10px;
    transition: box-shadow 0.15s, transform 0.15s;
}
.ipad-device-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.1); }
.ipad-device-id {
    font-family: 'SF Mono', 'Consolas', monospace; font-size: 15px;
    font-weight: 600; color: #333; word-break: break-all;
}
.ipad-status-online { color: #28a745; font-size: 13px; font-weight: 600; }
.ipad-status-offline { color: #8a8a8a; font-size: 13px; font-weight: 600; }
.ipad-device-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ipad-detail-link {
    width: 28px; height: 28px; flex: none; display: inline-flex; align-items: center;
    justify-content: center; color: #c5c5c5; border-radius: 6px; text-decoration: none;
}
.ipad-detail-link:hover { color: #999; background: #f5f5f5; }
.ipad-detail-link:focus-visible { outline: 2px solid #90caf9; outline-offset: 2px; }
.ipad-detail-link svg { width: 18px; height: 18px; }
.ipad-detail-link path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ipad-device-status-line { display: flex; align-items: center; gap: 8px; min-height: 16px; }
.ipad-erron-dot {
    width: 8px; height: 8px; flex: none; border-radius: 50%; background: #e53935;
    box-shadow: 0 0 0 3px rgba(229,57,53,.12);
}
.ipad-detail-disabled { font-size:12px; color:#8a6d1a; white-space:nowrap; }
.ipad-device-unassigned { margin-top:8px; font-size:12px; line-height:1.5; color:#8a6d1a; }
.ipad-device-version { color: #777; font-size: 12px; }
.ipad-error { color: #E53935; background: #FFEBEE; border-radius: 6px; padding: 8px 12px; font-size: 13px; }
.ipad-admin-card { padding-top: 18px; padding-bottom: 18px; }
.ipad-admin-toggle {
    border: 0; background: transparent; color: #1976D2; padding: 4px 0;
    font-size: 15px; font-weight: 600; cursor: pointer;
}
.ipad-admin-toggle::after { content: ' ▾'; display: inline-block; transition: transform 0.15s; }
.ipad-admin-toggle[aria-expanded='true']::after { transform: rotate(180deg); }
.ipad-admin-toggle:focus-visible,
.ipad-admin-row button:focus-visible,
.ipad-admin-row input:focus-visible { outline: 2px solid #90CAF9; outline-offset: 2px; }
.ipad-admin-content { margin-top: 18px; padding-top: 16px; border-top: 1px solid #F0F0F0; }
.ipad-admin-content[hidden], .ipad-admin-gate-form[hidden], .ipad-admin-edit-form[hidden] { display: none; }
.ipad-admin-gate-form label, .ipad-admin-edit-form label {
    display: block; color: #555; font-size: 13px; font-weight: 600; margin-bottom: 8px;
}
.ipad-admin-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ipad-admin-row input {
    box-sizing: border-box; width: min(320px, 100%); min-height: 38px;
    border: 1px solid #D9D9D9; border-radius: 6px; padding: 8px 10px;
    color: #333; background: #FFF; font: inherit;
}
.ipad-admin-row button {
    min-height: 38px; border: 0; border-radius: 6px; padding: 8px 18px;
    color: #FFF; background: #1976D2; font-weight: 600; cursor: pointer;
}
.ipad-admin-row button:hover { background: #1565C0; }
.ipad-admin-row button:disabled { opacity: 0.55; cursor: wait; }
.ipad-admin-message { margin-top: 12px; color: #2E7D32; font-size: 13px; }
.ipad-admin-message.ipad-admin-message-error { color: #D32F2F; }
@media (max-width: 640px) {
    .admin-card { padding: 18px; }
    .ipad-summary-total { margin-left: 0; width: 100%; }
    .ipad-grid { grid-template-columns: 1fr; }
}
