*{box-sizing:border-box}body{color:#172033;background:#f3f6fb;margin:0;font-family:Arial,Helvetica,sans-serif}.page{justify-content:center;align-items:center;min-height:100vh;padding:32px;display:flex}.login-card,.panel,.topbar,.module{background:#fff;border:1px solid #dbe4f0;border-radius:24px;padding:34px;box-shadow:0 18px 45px #14234614}.login-card{grid-template-columns:1.1fr .9fr;align-items:center;gap:32px;width:min(980px,100%);display:grid}.app-shell{gap:22px;min-height:100vh;padding:24px;display:grid}.topbar{justify-content:space-between;align-items:center;gap:20px;display:flex}.eyebrow{color:#2455a6;text-transform:uppercase;letter-spacing:.08em;margin:0 0 10px;font-size:13px;font-weight:700}h1,h2,h3{margin:0}h1{font-size:34px;line-height:1.08}h2{font-size:28px}h3{font-size:20px}.description,.module-header p,.topbar p{color:#526074;margin-top:12px;font-size:16px;line-height:1.5}.login-form{gap:16px;display:grid}.login-form label,.form-card label{color:#3d4b63;gap:8px;font-size:14px;font-weight:700;display:grid}input,select{background:#fff;border:1px solid #cfd9e8;border-radius:14px;outline:none;width:100%;padding:12px 13px;font-size:15px}input:focus,select:focus{border-color:#2455a6;box-shadow:0 0 0 4px #2455a61f}button{color:#fff;cursor:pointer;background:#2455a6;border:none;border-radius:14px;padding:12px 17px;font-size:15px;font-weight:700}button:disabled{opacity:.7;cursor:wait}.secondary-button{background:#172033}.error{color:#b91c1c;margin:0;font-weight:700}.success{color:#15803d;margin:0;font-weight:700}.module{gap:22px;display:grid}.module-header{justify-content:space-between;align-items:center;gap:16px;display:flex}.module-grid{grid-template-columns:1fr;align-items:start;gap:22px;display:grid}.form-card,.table-card{background:#f8fbff;border:1px solid #dbe4f0;border-radius:20px;padding:22px}.form-card{gap:18px;display:grid}.form-grid{grid-template-columns:1fr 1fr;gap:14px;display:grid}.table-wrap{width:100%;margin-top:16px;overflow-x:auto}table{border-collapse:collapse;width:100%;min-width:760px}th,td{text-align:left;border-bottom:1px solid #dbe4f0;padding:12px;font-size:14px}th{color:#3d4b63;background:#eef4fc}td{color:#26344d}@media (width<=900px){.page,.app-shell{padding:18px}.login-card,.module-grid,.topbar{grid-template-columns:1fr}.topbar,.module-header{flex-direction:column;align-items:stretch}.form-grid{grid-template-columns:1fr}h1{font-size:28px}}.tabs{background:#fff;border:1px solid #dbe4f0;border-radius:18px;gap:12px;padding:12px;display:flex;box-shadow:0 12px 28px #1423460f}.tabs button{color:#2455a6;background:#eef4fc}.tabs button.tab-active{color:#fff;background:#2455a6}.detail-card{background:#f8fbff;border:1px solid #dbe4f0;border-radius:20px;padding:22px}.detail-content{gap:8px;margin-top:16px;display:grid}.detail-content p{color:#26344d;margin:0}.documents-box{background:#fff;border:1px solid #dbe4f0;border-radius:16px;margin-top:18px;padding:16px}.documents-box h4{margin:0 0 10px}.documents-box p{color:#526074;margin:0}.topbar{color:#fff;background:#2455a6;border-color:#1f4a91}.topbar .eyebrow,.topbar h1,.topbar p{color:#fff}.topbar .secondary-button{color:#fff;background:#dc2626}.topbar .secondary-button:hover{background:#b91c1c}.tabs{border-color:#2455a6}.topbar{border-radius:20px;min-height:auto;padding:22px 32px}.topbar h1{margin:0;font-size:28px;line-height:1.15}.topbar .eyebrow{margin-bottom:8px;font-size:12px}.topbar p{margin-top:8px;font-size:14px}.topbar .secondary-button{border-radius:12px;padding:10px 16px}.danger-button{color:#fff;background:#dc2626}.danger-button:hover{background:#b91c1c}.documents-list{gap:12px;display:grid}.document-item{background:#f8fbff;border:1px solid #dbe4f0;border-radius:14px;justify-content:space-between;align-items:center;gap:14px;padding:14px;display:flex}.document-info{gap:5px;display:grid}.document-info span{color:#526074;font-size:14px}.document-actions{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.document-actions a{color:#2455a6;background:#eef4fc;border-radius:12px;justify-content:center;align-items:center;min-height:38px;padding:9px 13px;font-weight:700;text-decoration:none;display:inline-flex}.status-badge{color:#166534;background:#dcfce7;border-radius:999px;width:fit-content;padding:5px 10px;font-size:13px;font-weight:700;display:inline-flex}.status-danger{color:#991b1b;background:#fee2e2}.status-open{color:#166534;background:#dcfce7}.status-review{color:#92400e;background:#fef3c7}.status-closed{color:#334155;background:#e2e8f0}@media (width<=760px){.document-item{flex-direction:column;align-items:stretch}.document-actions{justify-content:flex-start}}.section-header{gap:14px;margin-bottom:16px;display:grid}.section-header h3{margin:0}.search-box{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.search-box input{flex:1;min-width:280px}.secondary-light-button{color:#2455a6;background:#eef4fc}.secondary-light-button:hover{background:#dbeafe}.page{background:radial-gradient(circle at 0 0,#ca8a0429,#0000 32%),radial-gradient(circle at 100% 100%,#16653438,#0000 34%),linear-gradient(135deg,#07111f 0%,#102316 48%,#18230f 100%)}.login-card{background:linear-gradient(135deg,#fffffff5,#f8fafcf0);border:1px solid #ca8a046b;position:relative;overflow:hidden;box-shadow:0 28px 80px #00000057}.login-card:before{content:"";pointer-events:none;background:linear-gradient(90deg,#ca8a0433,#0000 24%),repeating-linear-gradient(135deg,#0f172a09 0 2px,#0000 2px 12px);position:absolute;inset:0}.login-card>div:first-child{z-index:1;color:#fff;background:linear-gradient(135deg,#0f172af5,#166534eb),repeating-linear-gradient(45deg,#ffffff0a 0 10px,#0000 10px 20px);border:1px solid #ca8a0457;border-radius:20px;align-content:center;min-height:300px;padding:28px;display:grid;position:relative}.login-card>div:first-child:before{content:"R.P.M.\a CIUTRAN";color:#facc15;text-align:center;white-space:pre-line;letter-spacing:.08em;background:#0206175c;border:2px solid #facc15b8;border-radius:18px;justify-content:center;align-items:center;width:118px;height:76px;margin-bottom:20px;font-size:18px;font-weight:900;line-height:1.15;display:inline-flex;box-shadow:inset 0 0 0 6px #facc1514}.login-card>div:first-child .eyebrow{color:#facc15}.login-card>div:first-child h1{color:#fff;text-shadow:0 3px 18px #00000059}.login-card>div:first-child .description{color:#dbeafe;max-width:420px}.login-form{z-index:1;background:#fff;border:1px solid #d6dee9;border-radius:20px;padding:26px;position:relative;box-shadow:0 18px 40px #0f172a1a}.login-form:before{content:"Acceso autorizado";color:#166534;text-transform:uppercase;letter-spacing:.12em;font-size:12px;font-weight:800}.login-form input{background:#f8fafc;border-color:#b8c4d6}.login-form button{background:linear-gradient(135deg,#1f3b22,#2455a6);border:1px solid #facc1561;box-shadow:0 12px 26px #2455a638}.login-form button:hover{background:linear-gradient(135deg,#172e1b,#1f4a91)}@media (width<=900px){.login-card>div:first-child{min-height:auto}}.modal-backdrop{z-index:1000;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#07111fb8;justify-content:center;align-items:center;padding:24px;display:flex;position:fixed;inset:0}.modal-card{background:#fff;border:1px solid #dbe4f0;border-radius:22px;width:min(720px,100%);max-height:88vh;padding:24px;overflow-y:auto;box-shadow:0 30px 90px #00000057}.modal-card-wide{width:min(980px,100%)}.modal-header{border-bottom:1px solid #dbe4f0;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:18px;padding-bottom:16px;display:flex}.modal-form{box-shadow:none;background:0 0;border:none;padding:0}@media (width<=760px){.modal-backdrop{align-items:flex-start;padding:12px}.modal-card{max-height:94vh;padding:18px}.modal-header{flex-direction:column}}.modal-card-wide{width:min(1080px,100vw - 28px);max-height:calc(100vh - 24px);padding:18px 22px;overflow:visible}.modal-card-wide .modal-header{margin-bottom:12px;padding-bottom:10px}.modal-card-wide .form-grid{gap:10px 12px}.modal-card-wide label{gap:5px;font-size:.82rem}.modal-card-wide input,.modal-card-wide select{min-height:38px;padding:8px 12px}.modal-card-wide .document-actions{margin-top:12px}@media (height<=650px){.modal-card-wide{padding:14px 18px}.modal-card-wide .modal-header{margin-bottom:8px;padding-bottom:8px}.modal-card-wide .form-grid{gap:7px 10px}.modal-card-wide input,.modal-card-wide select{min-height:34px;padding:6px 10px}.modal-card-wide .document-actions{margin-top:8px}}.documents-section-header{border-top:1px solid #dbe4f0;margin-top:20px;padding-top:16px}.documents-grid{grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:14px;margin-top:12px;display:grid}.document-card{background:#f8fafc;border:1px solid #dbe4f0;border-radius:18px;flex-direction:column;justify-content:space-between;gap:14px;padding:16px;display:flex;box-shadow:0 10px 26px #0f172a0f}.document-card h4{color:#0f172a;margin:6px 0 12px;font-size:1rem}.document-card p{color:#24324a;margin:6px 0}.document-card .document-actions{border-top:1px solid #e2e8f0;padding-top:12px}.modal-card-wide .documents-grid{max-height:330px;padding-right:4px;overflow-y:auto}@media (width<=760px){.documents-grid{grid-template-columns:1fr}.modal-card-wide .documents-grid{max-height:none;overflow-y:visible}}.expediente-modal-card{flex-direction:column;max-height:calc(100vh - 28px);display:flex;overflow:hidden}.expediente-modal-card .detail-content{grid-template-columns:repeat(2,minmax(220px,1fr));gap:6px 18px;margin-bottom:8px;display:grid}.expediente-modal-card .detail-content p{margin:2px 0}.expediente-modal-card .documents-section-header{margin-top:10px;padding-top:10px}.expediente-modal-card .documents-grid{flex:1;min-height:0;max-height:calc(100vh - 360px);padding:0 6px 8px 0;overflow-y:auto}.expediente-modal-card .document-card{padding:14px}.expediente-modal-card .document-card p{margin:4px 0}@media (width<=760px){.expediente-modal-card{-webkit-overflow-scrolling:touch;max-height:calc(100svh - 20px);padding-bottom:calc(22px + env(safe-area-inset-bottom));overflow-y:auto}.expediente-modal-card .detail-content{grid-template-columns:1fr}.expediente-modal-card .documents-grid{max-height:none;padding-bottom:calc(34px + env(safe-area-inset-bottom));overflow:visible}}.modules-stage{min-height:520px;position:relative}.module-panel{display:none}.module-panel-active{animation:.18s ease-out moduleFadeIn;display:block}@keyframes moduleFadeIn{0%{opacity:.35;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}.tabs button{transition:background-color .16s,color .16s,border-color .16s,transform .16s}.tabs button:hover{transform:translateY(-1px)}.topbar-brand{align-items:center;gap:16px;min-width:0;display:flex}.topbar-logo{color:#ffe600;letter-spacing:.08em;background:#102f2f;border:1.5px solid #c9aa1f;border-radius:14px;flex-direction:column;flex:none;justify-content:center;align-items:center;gap:2px;width:96px;height:54px;font-size:15px;font-weight:900;line-height:1;display:flex;box-shadow:inset 0 0 0 1px #ffe6001f,0 8px 20px #0f172a24}.topbar-logo span{display:block}@media (width<=640px){.topbar-brand{gap:12px}.topbar-logo{border-radius:12px;width:78px;height:44px;font-size:12px}}.topbar,.topbar-brand{align-items:center}.topbar-brand>div:last-child{flex-direction:column;justify-content:center;gap:4px;padding-top:3px;display:flex}.topbar-brand h1,.topbar-brand p{margin:0}.topbar-brand h1{line-height:1.08}.topbar-brand p{line-height:1.2}.audit-card{flex-direction:column;gap:16px;display:flex}.audit-card-header{justify-content:space-between;align-items:flex-start;gap:16px;display:flex}.audit-card-header h3,.audit-card-header p{margin:0}.audit-card-header p{color:#64748b;margin-top:4px}.audit-search{margin:0}.audit-summary{color:#64748b;justify-content:space-between;align-items:center;gap:12px;font-size:.9rem;display:flex}.audit-action-badge{color:#1d4ed8;white-space:nowrap;background:#eef4ff;border-radius:999px;align-items:center;width:fit-content;max-width:220px;padding:5px 10px;font-size:.8rem;font-weight:800;display:inline-flex}.audit-detail-content{gap:10px;display:grid}.audit-detail-content p{margin:0}@media (width<=760px){.audit-card-header,.audit-summary{flex-direction:column;align-items:stretch}.audit-card-header .document-actions,.audit-card-header .document-actions button{width:100%}html,body,#root{width:100%;max-width:100%;overflow-x:hidden}.page{justify-content:center;align-items:center;min-height:100svh;padding:6px;overflow:hidden}.app-shell{gap:12px;padding:12px;overflow-x:hidden}.login-card{border-radius:18px;grid-template-columns:1fr;gap:8px;width:min(100%,470px);max-height:calc(100svh - 12px);padding:8px;display:grid;overflow-y:auto}.login-card>div:first-child{border-radius:16px;min-height:auto;padding:12px 14px}.login-card>div:first-child:before{border-radius:13px;width:72px;height:44px;margin-bottom:6px;font-size:11px}.login-card>div:first-child .eyebrow{margin-bottom:5px;font-size:10px;line-height:1.15}.login-card>div:first-child h1{margin:0;font-size:20px;line-height:1.05}.login-card>div:first-child .description{margin-top:7px;font-size:11.5px;line-height:1.25}.login-form{border-radius:16px;gap:8px;padding:12px}.login-form input{min-height:36px;padding:7px 10px}.login-form button{min-height:38px;padding:8px 12px}.topbar{border-radius:16px;flex-direction:column;align-items:stretch;gap:10px;padding:14px}.topbar-brand{gap:10px;width:100%;min-width:0}.topbar-logo{border-radius:12px;flex:none;width:66px;height:40px;font-size:10px}.topbar-brand>div:last-child{min-width:0;padding-top:0}.topbar-brand h1{overflow-wrap:anywhere;font-size:18px;line-height:1.12}.topbar-brand p{overflow-wrap:anywhere;font-size:11px;line-height:1.25}.topbar .secondary-button{border-radius:11px;justify-content:center;width:100%;min-height:38px;padding:8px 12px;font-size:.86rem}.tabs{box-sizing:border-box;border-radius:16px;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;width:100%;max-width:100%;padding:8px;display:grid;overflow:hidden}.tabs button{white-space:nowrap;text-align:center;justify-content:center;width:100%;min-width:0;min-height:38px;padding:8px 5px;font-size:.76rem}.module{border-radius:18px;gap:14px;padding:14px;overflow-x:hidden}.table-card,.form-card{box-sizing:border-box;border-radius:16px;width:100%;min-width:0;max-width:100%;padding:14px;overflow:hidden}.module-header,.section-header,.audit-card-header{flex-direction:column;align-items:stretch;gap:10px}.module-header h2{font-size:1.35rem}.module-header p,.table-card p{font-size:.9rem;line-height:1.35}.table-card h3{font-size:1.12rem}.document-actions{flex-wrap:wrap;gap:8px;display:flex}.document-actions button,.document-actions a,.module-header button,td button{border-radius:11px;width:auto;min-height:36px;padding:7px 12px;font-size:.82rem}.search-box{grid-template-columns:1fr;gap:8px;display:grid}.search-box input,.search-box label{width:100%;min-width:0}.search-box button{border-radius:11px;width:fit-content;min-height:36px;padding:7px 12px;font-size:.82rem}.table-wrap{-webkit-overflow-scrolling:touch;border-radius:14px;width:100%;max-width:100%;margin-top:12px;padding-bottom:4px;overflow:auto hidden}table{width:max-content;min-width:620px;max-width:none}th,td{vertical-align:top;padding:8px 9px;font-size:.78rem;line-height:1.25}.modal-backdrop{align-items:flex-start;padding:10px}.modal-card,.modal-card-wide,.expediente-modal-card{border-radius:18px;width:calc(100vw - 20px);max-width:calc(100vw - 20px);max-height:calc(100vh - 20px);padding:14px;overflow-y:auto}.modal-header{align-items:flex-start;gap:10px}.modal-header h3{font-size:1.05rem}.modal-card.expediente-modal-card{-webkit-overflow-scrolling:touch;max-height:calc(100svh - 20px);padding-bottom:calc(46px + env(safe-area-inset-bottom));box-sizing:border-box;display:block;overflow-y:auto}.modal-card.expediente-modal-card .documents-grid{min-height:auto;max-height:none;padding-bottom:calc(90px + env(safe-area-inset-bottom));flex:none;overflow:visible}}@media (width<=430px){.tabs{gap:5px;padding:7px}.tabs button{min-height:36px;padding:7px 3px;font-size:.69rem}.topbar-brand h1{font-size:17px}.topbar-logo{width:62px;height:38px;font-size:9.5px}table{min-width:600px}th,td{padding:7px 8px;font-size:.76rem}}.report-panel,.reports-panel{background:#eff6ffb8;border:1px solid #2563eb2e;border-radius:16px;justify-content:space-between;align-items:flex-end;gap:1rem;margin:1rem 0;padding:1rem;display:flex}.report-panel h4,.reports-panel h4{color:#1e3a8a;margin:0 0 .25rem}.report-panel p,.reports-panel p{color:#64748b;margin:0;font-size:.9rem}.report-actions,.reports-actions{flex-wrap:wrap;justify-content:flex-end;align-items:flex-end;gap:.7rem;display:flex}.report-actions label,.reports-actions label{color:#475569;gap:.25rem;min-width:150px;font-size:.82rem;font-weight:700;display:grid}.report-actions select,.reports-actions select{min-height:38px}@media (width<=768px){.report-panel,.reports-panel{align-items:stretch;display:grid}.report-actions,.reports-actions{justify-content:stretch;display:grid}.report-actions label,.report-actions button,.reports-actions label,.reports-actions button{width:100%}}.reports-panel .secondary-light-button{border:1px solid #2563eb59;box-shadow:0 1px 2px #0f172a0f}.reports-panel .secondary-light-button:hover{background:#dbeafed9;border-color:#2563eba6}@media (width>=900px){.reports-panel,.report-panel{grid-template-columns:minmax(220px,1fr) auto;align-items:center;column-gap:24px;display:grid}.reports-actions,.report-actions{flex-wrap:nowrap;justify-content:flex-end;align-items:flex-end;gap:10px;width:auto;display:flex}.reports-actions label,.report-actions label{min-width:150px;margin:0}.reports-actions select,.report-actions select{min-width:150px}.reports-actions button,.report-actions button{white-space:nowrap}.reports-actions .secondary-light-button,.report-actions .secondary-light-button{padding-left:16px;padding-right:16px}}
