/* Client-side errors and frame rate page (#client-errors, admin back-office R8, admin/client-errors.js). Classes start with ce-.
   Usable at 390 px: list and detail stack, tables scroll sideways inside their own box. */
.ce-page [hidden]{display:none!important}
.ce-head{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
.ce-tools{display:flex;gap:6px;flex-wrap:wrap;align-items:flex-start}
.ce-state{margin:6px 0;padding:8px 12px;border:1px dashed #b5542a;border-radius:10px;background:#fbe9df;color:#7d2d10;font-weight:700}
.ce-controls{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}
.ce-controls select{min-height:36px;max-width:100%}
.ce-controls input{flex:1 1 200px;min-width:0;min-height:36px;box-sizing:border-box}
.ce-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;margin:8px 0 12px}
.ce-card{display:flex;flex-direction:column;gap:2px;padding:10px 12px;border:1px solid #e4d6b8;border-radius:12px;background:#fffdf6;min-width:0}
.ce-card-label{color:#7a6a4d;font-size:12px;font-weight:700}
.ce-card strong{font-size:22px;color:#3d3222}
.ce-card small{color:#7a6a4d;font-size:12px;overflow-wrap:anywhere}
.ce-columns{display:grid;grid-template-columns:minmax(280px,440px) minmax(0,1fr);gap:14px;align-items:start}
.ce-side{min-width:0}
.ce-side h3,.ce-fps h3{margin:4px 0;display:flex;align-items:center;gap:6px}
.ce-filters{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0 8px}
.ce-filter{padding:6px 12px;border:1px solid #c8a76799;border-radius:999px;background:#fffaf0;color:#4a3b25;font-weight:700;min-height:36px}
.ce-filter.active{background:#c8a767;color:#1f2a1f}
.ce-list{display:flex;flex-direction:column;gap:6px;max-height:70vh;overflow-y:auto;padding-right:2px}
.ce-row{display:flex;flex-direction:column;align-items:stretch;gap:3px;width:100%;padding:8px 10px;border:1px solid #e4d6b8;border-left:4px solid #b5542a;border-radius:10px;background:#fffdf6;color:#3d3222;text-align:left;font:inherit;cursor:pointer}
.ce-row:hover,.ce-row:focus-visible{border-color:#c8a767;outline:0;background:#fff6e2}
.ce-row.selected{background:#f6e7c5;border-color:#a8843f}
.ce-row.is-fixed{border-left-color:#4f8a4b}
.ce-row.is-ignored{border-left-color:#8b8b8b}
.ce-row.is-back{border-left-color:#c0392b}
.ce-row-top{display:flex;justify-content:space-between;gap:8px}
.ce-row-message{font-weight:700;overflow-wrap:anywhere;font-family:ui-monospace,Consolas,monospace;font-size:13px}
.ce-row-count{flex:none;white-space:nowrap}
.ce-row-meta{color:#7a6a4d;font-size:12px;overflow-wrap:anywhere}
.ce-row-bottom{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.ce-trend{display:inline-flex;align-items:flex-end;gap:1px;height:20px;width:min(140px,40vw)}
.ce-trend i{flex:1;min-width:2px;background:#b5542a;border-radius:1px 1px 0 0}
.ce-trend i.zero{background:#e4d6b8}
.ce-badge{padding:1px 8px;border-radius:999px;background:#eee3c9;color:#4a3b25;font-size:12px;font-weight:700}
.ce-badge.is-open{background:#f6d0bf;color:#7d2d10}
.ce-badge.is-fixed{background:#d4ecd0;color:#245a20}
.ce-badge.is-ignored{background:#e3e3e3;color:#444}
.ce-badge.is-back{background:#c0392b;color:#fff}
.ce-more,.ce-foot{font-size:12px}
.ce-empty{padding:12px;border:1px dashed #e4d6b8;border-radius:10px;text-align:center}
.ce-detail{min-width:0;padding:12px 14px;border:1px solid #e4d6b8;border-radius:12px;background:#fffdf6}
.ce-detail-head{display:flex;align-items:flex-start;gap:8px;flex-wrap:wrap}
.ce-detail-head h3{flex:1;margin:0;min-width:0;overflow-wrap:anywhere;font-family:ui-monospace,Consolas,monospace;font-size:15px}
.ce-back{display:none}
.ce-facts{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:3px 12px;margin:8px 0}
.ce-facts dt{color:#7a6a4d;font-weight:700}
.ce-facts dd{margin:0;overflow-wrap:anywhere}
.ce-detail h4{margin:10px 0 4px;font-size:13px;color:#7a6a4d}
.ce-days{display:flex;align-items:flex-end;gap:2px;height:56px;padding:4px;border:1px solid #eee2c6;border-radius:8px;background:#fbf7ec}
.ce-days i{flex:1;min-width:2px;background:#b5542a;border-radius:1px 1px 0 0}
.ce-days i.zero{background:#e4d6b8}
.ce-stack{margin:8px 0;padding:6px 10px;border:1px solid #eee2c6;border-radius:10px;background:#fbf7ec}
.ce-stack summary{cursor:pointer;font-weight:700;min-height:28px}
.ce-stack pre{margin:4px 0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;max-height:260px;overflow:auto;color:#3d3222}
.ce-actions{display:flex;flex-direction:column;gap:6px;margin-top:10px}
.ce-actions input{min-height:36px;box-sizing:border-box;width:100%}
.ce-action-buttons{display:flex;gap:6px;flex-wrap:wrap}
.ce-action-buttons button{min-height:36px}
.ce-fps{margin-top:16px}
.ce-table-wrap{overflow-x:auto;margin:8px 0;border:1px solid #e4d6b8;border-radius:10px;background:#fffdf6}
.ce-table{border-collapse:collapse;width:100%;min-width:560px;font-size:13px}
.ce-table caption{text-align:left;padding:8px 10px;font-weight:700;color:#4a3b25}
.ce-table th,.ce-table td{padding:6px 10px;border-top:1px solid #eee2c6;text-align:left;white-space:nowrap}
.ce-table thead th{color:#7a6a4d;font-size:12px}
.ce-table td.ce-bad{color:#a12d0f;font-weight:700}
@media (max-width:760px){
 .ce-columns{grid-template-columns:minmax(0,1fr)}
 .ce-columns:has(.ce-detail:not([hidden])) .ce-side{display:none}
 .ce-back{display:inline-flex}
}

.ce-incidents{margin:16px 0;min-width:0}
.ce-incidents h3{margin:4px 0}
.ce-incidents .ce-table{min-width:940px}
.ce-incident-detail pre{white-space:pre-wrap;overflow-wrap:anywhere;min-width:220px;max-width:460px;max-height:280px;overflow:auto}
.ce-incident-detail summary{cursor:pointer}
