/* Administrative layout only. Poster grids/cards and the viewer are intentionally untouched. */
@layer cinexso-admin-adaptive {
html:has(:is(#library-editor,#user-editor,.drive-folder-picker)[open]),html body:has(:is(#library-editor,#user-editor,.drive-folder-picker)[open]){overflow:hidden!important}
html body #library-editor .editor-section-tabs{display:grid!important;grid-template-columns:minmax(0,1fr)!important;align-content:start!important;gap:6px!important;width:100%!important;min-height:0!important;box-sizing:border-box!important;overflow:auto!important;flex:none!important}
html body #library-editor .editor-section-tabs>button{min-width:0!important;width:100%!important;min-height:44px!important;height:auto!important;margin:0!important;white-space:normal!important;line-height:1.3!important;padding:8px 6px!important;font-size:14px!important}
@media(max-width:1099px){html body #library-editor .editor-section-tabs{grid-template-columns:repeat(6,minmax(0,1fr))!important;grid-auto-rows:1fr!important}}
@media(max-width:600px){html body #library-editor .editor-section-tabs{grid-template-columns:repeat(3,minmax(0,1fr))!important}html body #library-editor .editor-section-tabs>button{font-size:12px!important}html body #library-editor .eyebrow{display:none!important}}
html body #admin-shell .admin-content { min-width:0!important; }
html body #admin-shell .admin-section-head { margin:0 0 12px!important;padding:0!important; }
html body #admin-shell #admin-title { font-size:clamp(22px,2vw,30px)!important;line-height:1.2!important;margin:0 0 6px!important; }
html body #admin-shell #admin-copy { font-size:14px!important;line-height:1.5!important;margin:0!important;max-width:none!important; }
html body #admin-shell :is(.admin-general-tabs,.admin-library-tabs,.admin-activity-tabs,.compact-users-tabs,.ops-tabs,.ticket-tabs,.request-counts,.spy-views,.adaptive-tabs):not([hidden]) {
 display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(145px,100%),1fr))!important;
 grid-auto-rows:1fr!important;gap:6px!important;width:100%!important;max-width:none!important;
 min-width:0!important;height:auto!important;max-height:none!important;padding:4px!important;
 margin:0 0 12px!important;overflow:visible!important;box-sizing:border-box!important;
 background:#111!important;border:1px solid #303030!important;border-radius:12px!important;
 }
html body #admin-shell :is(.admin-general-tabs,.admin-library-tabs,.admin-activity-tabs,.compact-users-tabs,.ops-tabs,.ticket-tabs,.request-counts,.spy-views,.adaptive-tabs)>button {
 display:flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;
 width:100%!important;min-width:0!important;max-width:none!important;min-height:44px!important;height:100%!important;
 padding:10px 12px!important;margin:0!important;box-sizing:border-box!important;
 font-size:14px!important;line-height:1.3!important;white-space:normal!important;overflow-wrap:anywhere!important;
 border-radius:8px!important;text-align:center!important;
 }
html body #admin-shell :is(.admin-general-tabs,.admin-library-tabs,.admin-activity-tabs,.compact-users-tabs,.ops-tabs,.ticket-tabs,.request-counts,.spy-views,.adaptive-tabs)>button[hidden]{display:none!important}
html body #admin-shell :is(.admin-general-tabs,.admin-library-tabs,.admin-activity-tabs,.compact-users-tabs,.ops-tabs,.ticket-tabs,.request-counts,.spy-views,.adaptive-tabs)>button:focus-visible {outline:2px solid #18c9e1!important;outline-offset:2px!important}
html body #admin-shell :is(.admin-frame-tools,.request-admin-toolbar,.ticket-tools,.prep-toolbar,.compact-billing-toolbar) {
 gap:10px!important;min-width:0!important;max-width:100%!important;align-items:end!important;
 margin-bottom:12px!important;box-sizing:border-box!important;
 }
html body #admin-shell :is(.admin-frame-tools,.request-admin-toolbar,.ticket-tools,.prep-toolbar,.compact-billing-toolbar) :is(input,select,button,.select-trigger) {
 min-height:44px!important;font-size:14px!important;line-height:1.4!important;box-sizing:border-box!important;max-width:100%!important;
 }
html body #admin-shell :is(.admin-frame-tools,.request-admin-toolbar,.ticket-tools,.prep-toolbar,.compact-billing-toolbar) label {min-width:0!important;line-height:1.4!important}
html body #admin-shell .admin-stats {gap:10px!important;align-items:stretch!important;grid-auto-rows:1fr!important}
html body #admin-shell .general-metric {min-height:112px!important;height:auto!important;padding:14px!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:8px!important}
html body #admin-shell .general-metric>span {font-size:14px!important;line-height:1.4!important}
html body #admin-shell .general-metric>strong {font-size:28px!important;line-height:1!important}
html body #admin-shell .general-metric>small {font-size:13px!important;line-height:1.4!important;margin-top:auto!important}
html body #admin-shell .general-primary-grid {gap:12px!important;align-items:stretch!important}
html body #admin-shell .general-panel {padding:16px!important;min-width:0!important;height:auto!important}
html body #admin-shell .general-task {gap:10px!important;min-width:0!important;align-items:center!important}
html body #admin-shell .general-task :is(strong,small) {white-space:normal!important;overflow-wrap:anywhere!important;line-height:1.4!important}
html body #admin-shell #admin-users-accounts{gap:10px!important}
html body #admin-shell #admin-users-accounts>.admin-workflow-note{display:none!important}
html body #admin-shell #admin-users-accounts>.admin-search{margin:0 0 8px!important}
html body #admin-shell #admin-users-accounts>.admin-search input{min-height:44px!important;font-size:14px!important}
html body #admin-shell #compact-users-summary{margin:0 0 8px!important;font-size:14px!important}
html body #admin-shell .adaptive-film-export .filmoteca-card-footer{margin:0!important;padding:16px 0!important;display:flex!important;gap:16px!important;align-items:center!important;flex-wrap:wrap!important}
html body #admin-shell .adaptive-film-export[hidden],html body #admin-shell .adaptive-film-summary[hidden],html body #admin-shell #petition-library-list>.user-row[hidden]{display:none!important}
html body #admin-shell [data-admin-pane="pagos"]:not([data-ops-view="periods"])>.compact-billing-toolbar{display:none!important}
html body #admin-shell [data-admin-pane="pagos"] :is(#billing-form,.billing-register-body,.billing-register-details,.billing-register-fields){height:auto!important;max-height:none!important;overflow:visible!important;scrollbar-gutter:auto!important}
html body #admin-shell [data-admin-pane="pagos"] .billing-register-body{min-height:0!important;flex:none!important}
html body #admin-shell [data-admin-pane="pagos"] .billing-register-actions{position:static!important;flex:none!important;gap:10px!important;flex-wrap:wrap!important}
html body #admin-shell [data-admin-pane="pagos"] .billing-account-options{max-height:300px!important;overflow-y:auto!important}
@media(max-width:600px){
 html body #admin-shell :is(.admin-general-tabs,.admin-library-tabs,.admin-activity-tabs,.compact-users-tabs,.ops-tabs,.ticket-tabs,.request-counts,.spy-views,.adaptive-tabs):not([hidden]){grid-template-columns:repeat(2,minmax(0,1fr))!important}
 html body #admin-shell .admin-general-tabs:not([hidden]){grid-template-columns:repeat(3,minmax(0,1fr))!important}
 html body #admin-shell .admin-general-tabs>button{padding:10px 4px!important;font-size:13px!important}
 html body #admin-shell .general-panel{padding:12px!important}
 html body #admin-shell .discover-filters{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
 html body #admin-shell .discover-filters .select-trigger{white-space:normal!important;overflow-wrap:anywhere!important;height:auto!important;min-height:44px!important;line-height:1.4!important;padding-right:32px!important}
}
@media(max-width:360px){html body #admin-shell .discover-filters{grid-template-columns:minmax(0,1fr)!important}}
}
