/* Terralys 360 · Lectura directiva contextual y RCA documental */
.rt-header{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin:8px 0 20px}.rt-header small,.rt-overline{display:block;font-size:10px;letter-spacing:1.5px;font-weight:800;color:#4578ad}.rt-header h1{font-size:29px;line-height:1.15;margin:7px 0;color:#1c3852}.rt-header p{color:#667b8f;font-size:13px;margin:0}.rt-header button{white-space:nowrap}
.rt-context{display:flex;align-items:end;justify-content:space-between;gap:16px;background:#fff;border:1px solid #dce7f0;border-radius:15px;padding:15px 18px;margin-bottom:16px}.rt-context label{min-width:230px;flex:1;max-width:420px;font-size:10px;color:#617b92;letter-spacing:.5px;font-weight:800}.rt-context select{margin-top:7px;display:block;width:100%;border:1px solid #cadceb;padding:11px 12px;border-radius:10px;font-family:inherit;color:#1d3c56;background:#f7fafd}.rt-context>div{display:flex;gap:10px;align-items:center;flex:1}.rt-context>div b{font-size:13px}.rt-context>div small{font-size:10px;color:#668096}.rt-context-icon{font-size:18px;color:#427baf}.rt-context button{white-space:nowrap}
.rt-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:11px;margin:0 0 18px}.rt-metrics>div{background:#fff;border:1px solid #dee8f1;border-radius:13px;padding:15px 14px;min-width:0;display:flex;flex-direction:column;gap:7px}.rt-metrics small{font-size:9px;letter-spacing:.7px;color:#637d95;font-weight:800}.rt-metrics strong{font-size:25px;color:#213d57;line-height:1}.rt-metrics span{font-size:11px;color:#72889e}
.rt-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(320px,.8fr);gap:17px;align-items:start}.rt-side{display:flex;flex-direction:column;gap:17px;min-width:0}.rt-surface{background:#fff;border:1px solid #dce6ef;border-radius:15px;padding:18px;min-width:0}.rt-section-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:18px}.rt-section-heading h2{font-size:18px;color:#203d57;margin:0 0 5px}.rt-section-heading p{font-size:12px;color:#778b9e;margin:0}.rt-counter{background:#eaf1fa;color:#285e98;padding:7px 10px;border-radius:20px;font-size:11px;font-weight:700;white-space:nowrap}.rt-itemlist{display:flex;flex-direction:column;gap:13px}.rt-item{border:1px solid #dce7f0;background:#fcfdff;border-radius:13px;overflow:hidden}.rt-item-body{padding:15px}.rt-item-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:7px}.rt-code{font-size:10px;letter-spacing:.35px;color:#63829d;font-weight:750}.rt-item h3{font-size:14px;color:#253f57;margin:6px 0;line-height:1.35}.rt-item p{font-size:11px;color:#70869a;line-height:1.5;margin:0 0 12px}.rt-meta{display:flex;gap:10px;flex-wrap:wrap;color:#617e94;font-size:10px;margin:10px 0}.rt-state{padding:5px 9px;border-radius:50px;font-weight:750;font-size:10px;white-space:nowrap;border:1px solid transparent}.rt-state.review{background:#fff4e4;color:#9f691f;border-color:#f0ddbd}.rt-state.work{background:#e9f1fd;color:#2963ae;border-color:#d9e6fb}.rt-state.ok{background:#e7f7f2;color:#287b61;border-color:#cde6db}.rt-state.plan{background:#f2f5f8;color:#6b7d90;border-color:#e0e6ec}.rt-progress{height:7px;background:#eaf0f6;border-radius:8px;overflow:hidden}.rt-progress span{height:100%;background:#3c74b5;display:block;border-radius:8px}.rt-progress-label{font-size:10px;color:#7d8ea0;display:block;margin:5px 0 0}.rt-item-actions{display:flex;gap:7px;flex-wrap:wrap;align-items:center;background:#f4f8fc;padding:9px 12px;border-top:1px solid #e5edf5}.rt-item-actions button,.rt-rca-actions button,.rt-file,.rt-wide{font-size:11px!important;border-radius:8px;padding:9px 11px;border:1px solid #cfdeec;background:white;color:#275b8f;font-weight:750;cursor:pointer}.rt-item-actions button.primary{background:#285d96;color:#fff;border-color:#285d96}.rt-file{margin:6px 5px 0 0;display:inline-flex;align-items:center;gap:6px}.rt-history{margin:14px 0 0;font-size:11px;color:#52708c}.rt-history summary{cursor:pointer;font-weight:750}.rt-log{border-left:2px solid #b7cde1;padding:5px 9px;margin:8px 0}.rt-log small{color:#7c90a4}.rt-log p{margin:5px 0 0}.rt-query{padding:12px 2px;border-bottom:1px solid #e7eef5;display:flex;flex-direction:column;align-items:flex-start;gap:6px}.rt-query strong{font-size:12px;color:#254966}.rt-query small{font-size:10px;color:#7590a8}.rt-query p{margin:0;font-size:11px;color:#657b91}.rt-wide{width:100%;margin-top:14px}.rt-empty{padding:12px;color:#74889c;font-size:12px;background:#f5f8fc;border-radius:9px}.rt-method{font-size:10px;color:#7a8ca0;margin:16px 4px;line-height:1.5}.rt-rca-overview{margin:15px 0 18px}.rt-rca-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.rt-rca-summary{border:1px solid #dce6f1;padding:15px;border-radius:13px;background:#fbfcfe;display:flex;flex-direction:column}.rt-rca-summary h3{font-size:13px;color:#28445f;margin:8px 0 5px;line-height:1.4}.rt-rca-summary p{font-size:11px;color:#70869c;min-height:30px}.rt-rca-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:auto}.rt-docrow{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #e1e9f2;border-radius:11px;padding:10px;margin-top:9px;background:#f9fbfe}.rt-docrow div{display:flex;flex-direction:column;gap:4px}.rt-docrow strong{font-size:11px}.rt-docrow small{font-size:10px;color:#72899f}.rt-modal-docs{margin-top:20px}.rt-modal-docs h3{font-size:15px}
@media(max-width:1120px){.rt-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.rt-layout{grid-template-columns:1fr}.rt-rca-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.rt-header,.rt-context{flex-direction:column;align-items:stretch}.rt-header h1{font-size:24px}.rt-context label{max-width:none;min-width:0}.rt-context>div{flex:none}.rt-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.rt-rca-grid{grid-template-columns:1fr}.rt-surface{padding:14px}.rt-section-heading{flex-wrap:wrap}.rt-item-actions{flex-direction:column;align-items:stretch}.rt-item-actions button{width:100%}}
