/* Estilo institucional UNATUR. Referencia de distribución SICE. */
#studyControlPage .ce-shell{border:1px solid #d6e0e5;border-radius:8px;background:#fff;box-shadow:none;overflow:hidden}
#studyControlPage>.menu-study36{display:none!important}
#studyControlPage .u173-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 26px;background:#f0f4f5;border-bottom:3px solid #1b6176}
#studyControlPage .u173-heading p{margin:0 0 6px;font-size:10px;letter-spacing:1.7px;color:#647984;font-weight:700}
#studyControlPage .u173-heading h2{margin:0;color:#17394b;font-size:24px;font-weight:600;line-height:1.25}
#studyControlPage .u173-heading>span{font-size:12px;color:#5c737e;text-align:right}
#studyControlPage .ce-body{padding:22px 26px;background:#fff}
#studyControlPage .u173-toolbar{justify-content:flex-start;padding:0 0 16px;border-bottom:1px solid #e4e9eb;margin-bottom:16px}
#studyControlPage button{border:1px solid #c8d6db;background:#fff;color:#234b5c;border-radius:5px;min-height:38px;padding:9px 15px;font:600 13px system-ui;cursor:pointer}
#studyControlPage button.primary{background:#1b6176;color:#fff;border:1px solid #1b6176}
#studyControlPage button.secondary,#studyControlPage .u173-rowactions button,#studyControlPage .u173-pagination button{border:1px solid #c8d6db;background:#fff;color:#234b5c}
#studyControlPage button:disabled{cursor:not-allowed;opacity:.5}
#studyControlPage button:focus-visible,#studyControlPage input:focus-visible,#studyControlPage select:focus-visible{outline:3px solid #e79336;outline-offset:2px}
#studyControlPage .ce-help{font-size:13px;color:#5d747f;line-height:1.6;margin:12px 0 20px}
#studyControlPage .ce-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 28px;margin:18px 0 24px}
#studyControlPage .ce-form label,#studyControlPage .u173-filters label,#studyControlPage .u173-listbar label,#studyControlPage .u173-document-search label{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:600;color:#284959}
#studyControlPage input:not([type=checkbox]):not([type=radio]),#studyControlPage select,#studyControlPage textarea{box-sizing:border-box;min-height:40px;width:100%;border:1px solid #c6d3d9;border-radius:4px;background:#fff;color:#17394b;padding:9px 11px;font:14px system-ui}
#studyControlPage select[multiple]{min-height:115px}
#studyControlPage textarea{resize:vertical;min-height:76px}
#studyControlPage .ce-form .ce-wide{grid-column:1/-1;padding-top:12px;border-top:1px solid #e1e7ea}
#studyControlPage .u173-tabs{display:flex;gap:0;border-bottom:2px solid #1b6176;margin:-2px 0 20px;overflow:auto}
#studyControlPage .u173-tabs button{border:0;border-radius:0;background:#fff;color:#47636e;padding:13px 20px;white-space:nowrap}
#studyControlPage .u173-tabs button.active{background:#eef5f6;color:#17394b;box-shadow:inset 0 3px #1b6176;font-weight:700}
#studyControlPage .u173-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:16px;background:#f5f8f9;border:1px solid #e1e9ec;padding:16px;margin-bottom:20px}
#studyControlPage .u173-listbar{display:flex;justify-content:space-between;align-items:center;gap:20px;border-top:2px solid #719f92;padding:18px 0 12px}
#studyControlPage .u173-listbar strong{font-size:13px;color:#4d6671}
#studyControlPage .u173-listbar label{flex-direction:row;align-items:center;font-weight:400}
#studyControlPage .u173-listbar input{max-width:220px}
#studyControlPage .ce-table-wrap{overflow:auto;border:1px solid #e1e8eb;border-radius:4px}
#studyControlPage .ce-table{width:100%;border-collapse:collapse;margin:0;font-size:13px}
#studyControlPage .ce-table th{background:#edf3f5;border-bottom:1px solid #d7e1e5;padding:12px;color:#284959;white-space:nowrap;font-weight:700;text-align:left}
#studyControlPage .ce-table td{padding:12px;border-bottom:1px solid #e7edef;color:#314e5b;vertical-align:top}
#studyControlPage .ce-table tbody tr:nth-child(even){background:#f9fbfb}
#studyControlPage .u173-rowactions{display:flex;gap:6px}
#studyControlPage .u173-empty{text-align:center;padding:30px!important;color:#6f858e!important}
#studyControlPage .u173-pagination{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:16px 0;font-size:12px;color:#607782}
#studyControlPage .u173-pagination span{margin-right:auto}
#studyControlPage fieldset{border:1px solid #dce5e9;border-radius:5px;padding:18px 20px;margin:24px 0;min-width:0}
#studyControlPage legend{padding:0 9px;color:#17394b;font-weight:700;font-size:15px}
#studyControlPage fieldset>p{font-size:12px;color:#647983;margin:0}
#studyControlPage .u173-config fieldset .ce-form{margin:6px 0}
#studyControlPage .u173-brand-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}
#studyControlPage .u173-brand{height:140px;display:flex;align-items:center;justify-content:center;border:1px dashed #b5c8d0;background:#f7fafb;color:#758b94;font-size:12px;margin-bottom:12px}
#studyControlPage .u173-brand img{max-width:100%;max-height:130px;object-fit:contain}
#studyControlPage .u173-upload{font-size:12px;color:#647983;display:block}
#studyControlPage .u173-upload input{margin-top:8px}
#studyControlPage .u173-save{display:flex;align-items:center;gap:20px;padding-top:12px}
#studyControlPage .u173-save span{font-size:12px;color:#647983}
#studyControlPage .u173-rules{border:1px solid #d9e3e7;background:#f8fbfc;padding:16px!important;border-radius:5px}
#studyControlPage .u173-rules summary{cursor:pointer;font-size:14px;font-weight:700;color:#1b6176}
#studyControlPage .u173-rules>p{font-size:12px;color:#647983;line-height:1.6}
#studyControlPage .u173-note{border-left:3px solid #719f92;background:#f3f8f6;padding:16px 20px;line-height:1.65;color:#37574f;font-size:13px;margin:16px 0}
#studyControlPage .u173-note button{margin-right:10px}
#studyControlPage .u173-document-search{display:flex;gap:12px;align-items:end;max-width:480px}
#studyControlPage .u173-document-search label{flex:1}
#studyControlPage .u173-document-types{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
#studyControlPage .u173-document-types label{display:flex;gap:9px;align-items:center;font-size:13px;line-height:1.5}
#studyControlPage .u173-document-types input,#studyControlPage .u173-permissions input{width:18px;height:18px;accent-color:#1b6176}
#studyControlPage .u173-permissions{grid-column:1/-1}
#studyControlPage .u173-permissions td{text-align:center}
#studyControlPage .u173-clickrow{cursor:pointer}
#studyControlPage .u173-clickrow:hover{background:#eaf3f5}
#studyControlPage .u173-student-actions{display:flex;align-items:center;gap:20px;margin-bottom:20px}
#studyControlPage .u173-student-actions p{font-size:13px;color:#647983;line-height:1.5}
#studyControlPage .u173-total{color:#1b6176;background:#edf5f7;padding:14px;font-weight:700}
#studyControlPage .u173-student-top{display:flex;align-items:center;gap:22px;margin:20px 0 28px}
#studyControlPage .u173-student-top h3{margin:0 0 7px;font-size:20px;color:#17394b}
#studyControlPage .u173-student-top p{font-size:13px;margin:6px 0;color:#637d89}
#studyControlPage .u173-student-photo{width:90px;height:110px;display:flex;align-items:center;justify-content:center;background:#eaf1f4;color:#54747f;font-size:28px;flex-shrink:0;border-radius:5px}
#studyControlPage .u173-student-photo img{width:100%;height:100%;object-fit:cover;border-radius:5px}
#studyControlPage .u173-student-buttons{display:flex;gap:8px;margin-left:auto;flex-wrap:wrap}
#studyControlPage .u173-student-fields{display:grid;grid-template-columns:1fr 1fr;gap:22px 30px;margin:26px 0}
#studyControlPage .u173-student-fields dt{font-size:12px;color:#67808b;margin-bottom:7px}
#studyControlPage .u173-student-fields dd{margin:0;padding:12px;background:#f6f9fa;border:1px solid #e1e8eb;border-radius:4px;font-size:14px;overflow-wrap:anywhere}
@media(max-width:760px){
 #studyControlPage .u173-heading{padding:18px;display:block}#studyControlPage .u173-heading h2{font-size:21px}#studyControlPage .u173-heading>span{display:block;text-align:left;margin-top:10px}
 #studyControlPage .ce-body{padding:16px}#studyControlPage .ce-form,#studyControlPage .u173-filters,#studyControlPage .u173-brand-grid{grid-template-columns:1fr;gap:14px}
 #studyControlPage .u173-document-types{grid-template-columns:1fr}#studyControlPage .u173-toolbar{flex-wrap:wrap;gap:8px}#studyControlPage .u173-toolbar button{width:auto}
 #studyControlPage .u173-save,#studyControlPage .u173-student-actions{align-items:flex-start;flex-direction:column;gap:10px}
 #studyControlPage .u173-listbar{flex-wrap:wrap;gap:12px}#studyControlPage .u173-listbar label{width:100%}#studyControlPage .u173-listbar input{max-width:none}
 #studyControlPage .u173-pagination{flex-wrap:wrap}#studyControlPage .u173-pagination span{flex-basis:100%}#studyControlPage fieldset{padding:15px;margin:20px 0}
 #studyControlPage .u173-tabs button{padding:12px 15px}#studyControlPage .ce-table td{padding:10px}
 #studyControlPage .u173-student-top{flex-wrap:wrap;gap:14px}#studyControlPage .u173-student-buttons{margin-left:0;width:100%}#studyControlPage .u173-student-fields{grid-template-columns:1fr;gap:16px}
}
.u173-plan-context{max-width:680px;margin:0 0 18px}.u173-plan-context label{display:grid;gap:7px;font-weight:600}.u173-plan-context select{width:100%;padding:10px 12px;border:1px solid #c4d0d4;border-radius:5px;background:#fff;color:#17394b;font:inherit}.u173-filters{grid-template-columns:repeat(auto-fit,minmax(190px,1fr))}
.u174-user-create{margin:16px 0;padding:16px;border:1px solid #dce5eb;border-radius:6px}.u174-user-create summary{cursor:pointer;font-weight:700}.u174-user-create form{margin-top:16px}.u174-password{display:inline-flex;align-items:center;gap:8px}
/* El documento incrustado no añade otra barra a la del área de trabajo. */
html:has(body:not(.login-mode) #appView.app:not(.hidden)){height:100%!important;overflow:hidden!important}
html body:not(.login-mode):has(#appView.app:not(.hidden)){height:100dvh!important;overflow:hidden!important}
html body:not(.login-mode) #appView.app{height:100dvh!important;min-height:0!important;overflow:hidden!important}
html body:not(.login-mode) #appView.app>.app-main{height:100dvh!important;min-height:0!important;max-height:100dvh!important;overflow-y:auto!important;overflow-x:hidden!important}
@media(max-width:760px){
 html body:not(.login-mode) #appView.app .topbar{position:relative!important;inset:auto!important;display:flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:8px!important;min-height:60px!important;height:auto!important;padding:10px 12px!important;margin:0 0 12px!important;z-index:5!important;box-sizing:border-box!important}
 html body:not(.login-mode) #appView.app .topbar-left{flex:1 1 auto!important;display:flex!important;align-items:center!important;gap:8px!important;min-width:0!important;width:auto!important}
 html body:not(.login-mode) #appView.app .topbar .menu-toggle{position:static!important;inset:auto!important;width:34px!important;height:34px!important;flex:0 0 34px!important;margin:0!important}
 html body:not(.login-mode) #appView.app .topbar .system-title{font-size:16px!important;white-space:normal!important;line-height:1.2!important}
 html body:not(.login-mode) #appView.app .topbar-actions{position:static!important;inset:auto!important;flex:0 0 auto!important;width:auto!important;max-width:90px!important;display:flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:6px!important;margin:0!important}
 html body:not(.login-mode) #appView.app .topbar :is(.top-user-copy,.top-avatar,.topbar-divider,.sync-indicator),html body:not(.login-mode) #appView.app .topbar #syncIndicator,html body:not(.login-mode) #appView.app .topbar #topUserInitial{display:none!important}
 html body:not(.login-mode) #appView.app .topbar .u174-password{width:36px!important;height:36px!important;min-width:36px!important;padding:7px!important;justify-content:center!important}
 html body:not(.login-mode) #appView.app .topbar .u174-password span{display:none!important}
 html body:not(.login-mode) #appView.app .topbar .notification-bell{width:36px!important;height:36px!important;min-width:36px!important}
 html body:not(.login-mode) #appView.app .content-heading{position:relative!important;inset:auto!important;clear:both!important}
}
/* V176: el menú ocupa toda la altura; las listas crecen sin comprimirse. */
html body:not(.login-mode) #appView>#sidebar.sidebar{height:100vh!important;height:100dvh!important;max-height:100dvh!important;padding:12px 12px max(12px,env(safe-area-inset-bottom))!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#8ba9c5 transparent}
html body:not(.login-mode) #appView #sidebar .sidebar-brand{flex:0 0 84px!important;min-height:84px!important;height:84px!important;padding:0 12px 6px!important}
html body:not(.login-mode) #appView #sidebar .sidebar-brand-image{height:78px!important;min-height:0!important;width:160px!important}
html body:not(.login-mode) #appView #sidebar .eje-label{flex:0 0 auto!important;margin:10px 8px!important;font-size:11px!important}
html body:not(.login-mode) #appView #sidebar .nav{flex:0 0 auto!important;min-height:0!important;overflow:visible!important;padding:0 0 12px!important;gap:3px!important}
html body:not(.login-mode) #appView #sidebar .nav>*{flex-shrink:0!important}
html body:not(.login-mode) #appView #sidebar .nav button{flex-shrink:0!important;min-height:40px!important;height:auto!important;white-space:normal!important;line-height:1.4!important;padding:9px 10px!important}
html body:not(.login-mode) #appView #sidebar .sidebar-submenu39{margin:0 0 8px 10px!important;padding:0 0 0 8px!important;max-height:none!important;overflow:visible!important}
html body:not(.login-mode) #appView #sidebar .sidebar-submenu39 button{font-size:12px!important;min-height:35px!important;padding:7px 8px!important}
html body:not(.login-mode) #appView #sidebar .sidebar-category-items160{margin-left:2px!important;padding-left:6px!important;max-height:none!important;overflow:visible!important}
html body:not(.login-mode) #appView #sidebar .user-box{flex:0 0 auto!important;margin-top:auto!important;padding:10px!important}
html body:not(.login-mode) #appView #sidebar :is(.logout,.session-switch){min-height:36px!important;margin-top:8px!important;padding:7px!important}
@media(max-height:500px){html body:not(.login-mode) #appView #sidebar .sidebar-brand{flex-basis:58px!important;min-height:58px!important;height:58px!important}html body:not(.login-mode) #appView #sidebar .sidebar-brand-image{height:52px!important}}
/* V178: ficha institucional con retrato lateral y pestañas, como la referencia. */
#ceIntegralContent[data-u178-screen="ficha173"] .u173-toolbar{display:none!important}
#studyControlPage .u178-ficha-tools{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:0 0 18px;border-bottom:1px solid #dfe7ed;margin-bottom:20px}
#studyControlPage .u178-ficha-tools button{min-height:35px;padding:7px 14px;font-size:12px;border-radius:4px}
#studyControlPage .u178-find{display:flex;align-items:center;margin-left:auto;max-width:280px}
#studyControlPage .u178-find input{min-height:35px;max-width:160px;border-radius:4px 0 0 4px}
#studyControlPage .u178-find button{border-radius:0 4px 4px 0;background:#1b6176;color:white;border-color:#1b6176}
#studyControlPage .u178-ficha{display:grid;grid-template-columns:224px minmax(0,1fr);gap:24px;align-items:start}
#studyControlPage .u178-student-card{border:1px solid #dce5eb;background:#fff;border-radius:5px;overflow:hidden;position:sticky;top:12px}
#studyControlPage .u178-photo{display:flex;flex-direction:column;align-items:center;gap:12px;background:linear-gradient(140deg,#f2a019,#f08312);padding:24px 18px 18px;text-align:center}
#studyControlPage .u178-portrait{width:104px;height:126px;border:4px solid #fff;background:#f7f8fa;box-shadow:0 3px 9px #7b440a30;border-radius:3px;overflow:hidden;display:grid;place-items:center}
#studyControlPage .u178-portrait img{width:100%;height:100%;object-fit:cover}
#studyControlPage .u178-portrait svg{width:80px;height:96px;fill:#c6cdd2}
#studyControlPage .u178-photo strong{font-size:13px;line-height:1.4;color:#422808;overflow-wrap:anywhere}
#studyControlPage .u178-photo-upload{font-size:11px;color:#fff;border:1px solid #ffffffa0;padding:6px 12px;border-radius:4px;cursor:pointer;position:relative;overflow:hidden}
#studyControlPage .u178-photo-upload input{position:absolute;width:1px!important;height:1px!important;opacity:0;min-height:0!important;padding:0!important}
#studyControlPage .u178-photo-upload:focus-within{outline:3px solid #17394b;outline-offset:3px}
#studyControlPage .u178-student-card dl{margin:0}
#studyControlPage .u178-student-card dl>div{display:grid;grid-template-columns:72px minmax(0,1fr);gap:8px;padding:12px 14px;border-bottom:1px solid #eef2f4;font-size:12px}
#studyControlPage .u178-student-card dl>div:last-child{border-bottom:0}
#studyControlPage .u178-student-card dt{color:#6c7b85}
#studyControlPage .u178-student-card dd{margin:0;color:#17394b;font-weight:600;overflow-wrap:anywhere}
#studyControlPage .u178-ficha-content{min-width:0}
#studyControlPage .u178-ficha-tabs{margin:0 0 24px;border-bottom:1px solid #ccd9e0;gap:0}
#studyControlPage .u178-ficha-tabs button{border:0;padding:12px 13px;font-size:12px;font-weight:500;border-radius:0;background:white;min-height:42px}
#studyControlPage .u178-ficha-tabs button.active{box-shadow:inset 0 3px #1b6176;background:#f5f9fb;color:#17394b;font-weight:700}
#studyControlPage .u178-fields{display:grid;gap:12px;max-width:740px}
#studyControlPage .u178-field{display:grid;grid-template-columns:155px minmax(0,1fr);align-items:center;gap:14px;font-size:12px;color:#314b5c}
#studyControlPage .u178-field>span{font-weight:600}
#studyControlPage .u178-field>span b{color:#c45424;font-weight:600}
#studyControlPage .u178-field :is(input,select){min-height:36px!important;padding:7px 10px!important;font-size:13px!important;border-radius:3px!important}
#studyControlPage .u178-field input[readonly],#studyControlPage .u178-field select:disabled{background:#f3f6f8!important;color:#526b7b!important;opacity:1}
#studyControlPage .u178-panel-actions{display:flex;justify-content:flex-end;margin-top:20px;padding-top:16px;border-top:1px solid #e5ecef}
#studyControlPage .u178-dossier-state{display:flex;align-items:center;gap:12px;padding:14px;background:#f4f8fa;border-left:3px solid #1b6176;margin-bottom:18px;font-size:13px}
#studyControlPage #u178Feedback{font-size:13px;color:#1b6176;min-height:20px;margin-top:18px}
#studyControlPage .u178-sr{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:980px){#studyControlPage .u178-ficha{grid-template-columns:190px minmax(0,1fr);gap:18px}#studyControlPage .u178-field{grid-template-columns:130px minmax(0,1fr);gap:10px}#studyControlPage .u178-ficha-tabs button{padding:12px 10px}}
@media(max-width:760px){#studyControlPage .u178-ficha{grid-template-columns:1fr;gap:20px}#studyControlPage .u178-student-card{position:static;display:grid;grid-template-columns:145px minmax(0,1fr)}#studyControlPage .u178-photo{padding:15px 10px;gap:8px}#studyControlPage .u178-portrait{width:75px;height:90px}#studyControlPage .u178-photo strong{font-size:11px}#studyControlPage .u178-student-card dl{align-self:center}#studyControlPage .u178-student-card dl>div{padding:10px;grid-template-columns:65px minmax(0,1fr)}#studyControlPage .u178-field{grid-template-columns:1fr;gap:6px}#studyControlPage .u178-ficha-tools{gap:6px}#studyControlPage .u178-find{order:4;margin-left:0;max-width:none;width:100%}#studyControlPage .u178-find input{max-width:none;flex:1}#studyControlPage .u178-ficha-tabs{margin-bottom:18px}}
#studyControlPage .u179-radio{display:flex;align-items:center;gap:22px;min-height:36px}
#studyControlPage .u179-radio label{display:flex;gap:7px;align-items:center;font-size:13px}
#studyControlPage .u179-radio input{width:16px!important;height:16px!important;min-height:0!important;accent-color:#1b6176}

/* V181: contexto común de sede y plan. */
#studyControlPage .u173-plan-context{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;max-width:880px}
#studyControlPage #u181UnitRule{font-weight:400;line-height:1.6;margin:0;padding:12px 14px;background:#f1f6f7;border:1px solid #dce7eb;border-radius:5px}
@media(max-width:600px){#studyControlPage .u173-plan-context{grid-template-columns:minmax(0,1fr)}}
