/* Flujo GMAO: pantallas de trabajo, detalle OT y revisión */
.runtime-screen{width:min(100% - 32px,980px);margin:24px auto 120px;padding:22px;border:1px solid #2d363d;border-radius:18px;background:linear-gradient(145deg,#10171b,#080b0d);box-shadow:0 24px 60px rgba(0,0,0,.5)}
.runtime-screen.hidden{display:none!important}.runtime-screen.active{display:grid!important;gap:18px}.runtime-screen-head{display:flex;gap:14px;align-items:center;border-bottom:1px solid #29343b;padding-bottom:16px}.runtime-screen-head button{width:auto!important;min-height:42px!important;padding:0 14px!important}.runtime-screen-head h2{margin:.15rem 0 0;text-transform:uppercase}.runtime-list{display:grid;gap:14px}.runtime-ot-card{display:grid;grid-template-columns:1fr auto;gap:12px;padding:16px;border:1px solid #303b42;border-left:4px solid #f27405;border-radius:14px;background:#15191c}.runtime-ot-main{cursor:pointer}.runtime-ot-card strong{display:block;color:#f27405;font-size:1rem}.runtime-ot-card span{display:block;margin-top:4px;color:#b8c0c7;font-size:.86rem}.runtime-ot-card b{align-self:start;padding:6px 10px;border-radius:8px;background:rgba(242,116,5,.18);color:#ffb86b;font-size:.76rem}.runtime-ot-card.ok{border-left-color:#22c55e}.runtime-ot-card.ok b{background:rgba(34,197,94,.16);color:#4ade80}.runtime-ot-card.pending{border-left-color:#f59e0b}.runtime-ot-card.danger{border-left-color:#ef4444}.runtime-ot-card.danger b{background:rgba(239,68,68,.16);color:#f87171}.runtime-ot-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;grid-column:1/-1}.runtime-ot-actions button{width:auto!important;min-height:44px!important;padding:0 14px!important;border-radius:12px!important}.runtime-empty{display:grid;place-items:center;min-height:120px;color:#9aa3aa;border:1px dashed #344047;border-radius:14px;background:#11171b}.runtime-modal{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;padding:20px;background:rgba(0,0,0,.78);backdrop-filter:blur(8px);overflow:auto}.runtime-modal-card{position:relative;width:min(100%,920px);max-height:calc(100vh - 40px);overflow:auto;padding:24px;border:1px solid #334047;border-radius:18px;background:linear-gradient(145deg,#12191d,#080b0d);box-shadow:0 30px 80px rgba(0,0,0,.72)}.runtime-modal-close{position:absolute;top:14px;right:14px;width:42px!important;height:42px!important;min-height:42px!important;padding:0!important;border-radius:12px!important}.runtime-modal-card h2{margin:.2rem 52px 16px 0;font-size:1.45rem}.runtime-detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:12px 0 18px}.runtime-detail-grid p,.runtime-info-card{margin:0;padding:14px;border:1px solid #2f3b43;border-radius:14px;background:#11171b;color:#d5dce1}.runtime-info-card h3,.runtime-close-form h3{margin:0 0 10px;color:#fff}.runtime-description{white-space:pre-wrap;line-height:1.45;color:#e5e7eb}.runtime-close-form{display:grid;gap:12px;margin-top:18px;padding:16px;border:1px solid #2f3b43;border-radius:14px;background:#11171b}.runtime-close-form textarea{min-height:96px;width:100%;resize:vertical}.runtime-file-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.runtime-file-grid label{display:grid;gap:8px;padding:12px;border:1px dashed #384650;border-radius:12px;background:#090d10}.runtime-review-note{padding:12px;border-radius:12px;background:rgba(34,197,94,.12);color:#86efac}.runtime-stats article{cursor:pointer;transition:transform .15s ease,border-color .15s ease}.runtime-stats article:hover{transform:translateY(-2px);border-color:#f27405}.runtime-section-title button{width:auto!important;padding:0 14px!important}
@media(max-width:760px){.runtime-screen{width:min(100% - 20px,640px);margin:12px auto 96px;padding:16px}.runtime-screen-head{align-items:flex-start}.runtime-modal{padding:10px;place-items:start center}.runtime-modal-card{max-height:none;padding:18px}.runtime-detail-grid{grid-template-columns:1fr}.runtime-file-grid{grid-template-columns:1fr}.runtime-ot-card{grid-template-columns:1fr}.runtime-ot-actions button{flex:1}.runtime-modal-card h2{font-size:1.2rem}}
