/* empresa-encabezado-ui-v2.css */
.top_nav .nav_menu.sv-topbar-v2{border:1px solid #d7e2ee;border-radius:16px;box-shadow:0 4px 14px rgba(22,62,103,.08)}
.top_nav .sv-topbar-v2 .compact-company-info,.top_nav .sv-topbar-v2 .compact-company-info>div{min-width:0}
.top_nav .sv-topbar-v2 .compact-company-info strong{white-space:normal;overflow-wrap:anywhere;line-height:1.3}
.top_nav .sv-topbar-v2 .portal-company-switch,.top_nav .sv-topbar-v2 #menu_toggle,.top_nav .sv-topbar-v2 .info-number{min-width:44px!important;min-height:44px!important;display:inline-flex!important;align-items:center;justify-content:center;border-radius:10px!important;flex-shrink:0}
.sv-company-page.x_panel{max-width:100%;min-width:0;border:1px solid #d7e2ee!important;border-radius:18px!important;box-shadow:0 6px 22px rgba(22,62,103,.08)!important;padding:20px}
.sv-company-page .x_title h2{white-space:normal!important;overflow-wrap:anywhere;width:auto!important;max-width:100%;line-height:1.4}
.sv-company-page .x_content,.sv-company-page .tab-content,.sv-company-page .tab-pane{min-width:0;max-width:100%}
.sv-company-page .form-control{min-height:44px;border-radius:10px;border-color:#d7e2ee;box-shadow:none;max-width:100%}
.sv-company-page .form-control:focus{border-color:#1683ff;box-shadow:0 0 0 3px rgba(22,131,255,.12)}
.sv-company-page textarea.form-control{min-height:100px}
.sv-company-page .btn{min-height:44px;border-radius:10px;white-space:normal}
.sv-company-page .form-group{margin-bottom:20px}
.sv-company-page .nav-tabs{display:flex;flex-wrap:wrap;gap:4px;height:auto!important;margin:0 0 20px!important;padding:6px!important;background:#f4f8fc;border-radius:12px;border-bottom:1px solid #d7e2ee}
.sv-company-page .nav-tabs>li{float:none!important;margin:0!important}
.sv-company-page .nav-tabs>li>a{min-height:44px;display:flex;align-items:center;border-radius:9px;margin:0!important;white-space:normal}
.sv-company-page .nav-tabs>li.active>a{background:#fff!important;color:#0f6df6!important;border-color:#d7e2ee!important}
.sv-company-page #img_image{max-width:100%;object-fit:contain}
.sv-company-page .table-responsive{max-width:100%;overflow-x:auto}
.sv-modal-v2 .modal-dialog{max-width:760px;width:calc(100% - 32px);margin:24px auto}
.sv-modal-v2 .modal-content{border:1px solid #d7e2ee;border-radius:20px;box-shadow:0 24px 70px rgba(5,41,71,.28);overflow:hidden}
.sv-modal-v2 .modal-header,.sv-modal-v2 .modal-footer{padding:18px 20px;border-color:#d7e2ee}
.sv-modal-v2 .modal-title{font-size:20px;font-weight:700;line-height:1.4;color:#0b2140;padding-right:44px}
.sv-modal-v2 .modal-title .fa{color:#0f6df6;margin-right:8px}
.sv-modal-v2 .modal-header .close{min-width:44px;min-height:44px;margin-top:-10px;opacity:1;font-size:28px}
.sv-modal-v2 .modal-body{padding:20px;max-height:calc(100vh - 210px);max-height:calc(100dvh - 210px);overflow-y:auto}
.sv-modal-v2 .form-control{height:46px;border-radius:10px;border-color:#d7e2ee;font-size:16px}
.sv-modal-v2 .btn{min-height:44px;border-radius:10px}
.sv-modal-v2 .btn-info,.sv-modal-v2 .btn-primary{background:#0f6df6;border-color:#0f6df6;color:#fff}
.sv-modal-v2 .table{margin-bottom:0}
.sv-modal-v2 td{vertical-align:middle!important;overflow-wrap:anywhere}
.sv-company-page a:focus-visible,.sv-company-page button:focus-visible,.sv-modal-v2 a:focus-visible,.sv-modal-v2 button:focus-visible,.sv-topbar-v2 a:focus-visible,.sv-topbar-v2 button:focus-visible{outline:3px solid #1683ff;outline-offset:2px}
@media(max-width:767px){
.top_nav .sv-topbar-v2 .compact-company-info{gap:6px}
.top_nav .sv-topbar-v2 .compact-company-info strong{font-size:12px}
.sv-company-page.x_panel{padding:14px}
.sv-company-page .form-horizontal .form-group{margin-left:0;margin-right:0}
.sv-company-page .form-group>[class*=col-]{padding-left:0;padding-right:0;min-width:0}
.sv-company-page .nav-tabs>li{flex:1 1 calc(50% - 4px)}
.sv-company-page .nav-tabs>li>a{justify-content:center;text-align:center;font-size:13px}
.sv-company-page .control-label{text-align:left;padding-bottom:6px}
.sv-modal-v2 .modal-dialog{width:calc(100% - 24px);margin:12px auto}
.sv-modal-v2 .modal-body{padding:16px}
.sv-modal-v2 .input-group{display:flex;flex-wrap:wrap;gap:8px;width:100%}
.sv-modal-v2 .input-group .form-control{float:none;width:100%;flex:1 1 100%;border-radius:10px!important}
.sv-modal-v2 .input-group-btn{width:100%;display:block}
.sv-modal-v2 .input-group-btn .btn{width:100%;margin:0;border-radius:10px!important}
.sv-modal-v2 .table-responsive{border:0;overflow:visible}
.sv-modal-v2 #user_companies,.sv-modal-v2 #user_companies tbody{display:block;width:100%}
.sv-modal-v2 #user_companies thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.sv-modal-v2 #user_companies tbody tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:14px;margin:12px 0;border:1px solid #d7e2ee;border-radius:14px;background:#fff}
.sv-modal-v2 #user_companies tbody td{display:block;border:0;padding:0!important;white-space:normal!important;text-align:left;min-width:0;background:transparent!important}
.sv-modal-v2 #user_companies tbody td:nth-child(1){grid-column:1;grid-row:1;color:#657b97;font-size:13px}
.sv-modal-v2 #user_companies tbody td:nth-child(1):before{content:'RFC ';font-weight:700;color:#0f6df6}
.sv-modal-v2 #user_companies tbody td:nth-child(2){grid-column:1/-1;grid-row:2;font-weight:600;line-height:1.5}
.sv-modal-v2 #user_companies tbody td:nth-child(3){grid-column:2;grid-row:1}
.sv-modal-v2 #user_companies .btn-select-company.btn{min-height:44px;padding:10px 12px;font-size:13px}
}

/* Corrección de proporciones y menú conforme a referencias. */
body.ui-shell-v2 #sidebar-menu{padding:64px 10px 16px!important;margin:0!important}
body.ui-shell-v2 #sidebar-menu .menu_section{margin:0!important}
body.ui-shell-v2 #sidebar-menu .side-menu{margin:0!important;padding:0!important}
body.ui-shell-v2 #sidebar-menu .side-menu>li>a,body.ui-shell-v2 #sidebar-menu .compact-group-items>li>a{display:flex!important;align-items:center;gap:12px;min-height:48px;margin:3px 0!important;padding:10px 12px!important;border-radius:12px;font-size:15px!important;line-height:1.35!important;white-space:normal!important;overflow-wrap:anywhere;color:#f4f8ff!important}
body.ui-shell-v2 #sidebar-menu .side-menu a i.fa{width:26px;min-width:26px;font-size:21px!important;text-align:center}
body.ui-shell-v2 #sidebar-menu .compact-menu-group>details>summary{min-height:44px;padding:14px 12px 8px!important;font-size:13px!important;line-height:1.4!important;letter-spacing:.06em;color:#a8c8ee!important;font-weight:700!important}
body.ui-shell-v2 #sidebar-menu .compact-menu-group{border-bottom:1px solid rgba(157,194,231,.18);padding-bottom:12px;margin-bottom:8px}
body.ui-shell-v2 #sidebar-menu .compact-group-items{padding:0!important;margin:0!important;max-width:100%}
body.ui-shell-v2 #sidebar-menu .child_menu{padding-left:18px!important;max-width:100%}
body.ui-shell-v2 #sidebar-menu .child_menu a{font-size:13px!important;white-space:normal!important;overflow-wrap:anywhere;padding-top:10px!important;padding-bottom:10px!important}
body.ui-shell-v2 #sidebar-menu a.sv-menu-active{background:linear-gradient(100deg,#0751e7,#347fff)!important;color:#fff!important;box-shadow:0 4px 14px rgba(0,83,229,.18)}
body.ui-shell-v2 #sidebar-menu .sv-icon-blue{color:#149cff!important}body.ui-shell-v2 #sidebar-menu .sv-icon-purple{color:#b06cff!important}body.ui-shell-v2 #sidebar-menu .sv-icon-green{color:#00d6a0!important}body.ui-shell-v2 #sidebar-menu .sv-icon-orange{color:#ff983e!important}body.ui-shell-v2 #sidebar-menu .sv-icon-cyan{color:#16d5ed!important}body.ui-shell-v2 #sidebar-menu .sv-icon-pink{color:#ff5d83!important}body.ui-shell-v2 #sidebar-menu .sv-icon-yellow{color:#ffd04d!important}
body.ui-shell-v2 #sidebar-menu .admin-menu-close{top:12px!important;right:12px!important;width:42px!important;height:42px!important;border:1px solid rgba(165,203,243,.55)!important;border-radius:50%!important;background:rgba(87,144,210,.12)!important}
body.ui-shell-v2 #sidebar-menu .admin-menu-close svg{width:20px;height:20px}
@media(min-width:769px){
body.ui-shell-v2 .container.body>.main_container>.col-md-3.left_col{width:272px!important}
body.ui-shell-v2:not(.shell-desktop-hidden) .top_nav,body.ui-shell-v2:not(.shell-desktop-hidden) .right_col,body.ui-shell-v2:not(.shell-desktop-hidden) footer{margin-left:272px!important}
body.ui-shell-v2.shell-desktop-hidden .container.body>.main_container>.col-md-3.left_col{display:none!important;visibility:hidden!important;pointer-events:none!important}
body.ui-shell-v2.shell-desktop-hidden .top_nav,body.ui-shell-v2.shell-desktop-hidden .right_col,body.ui-shell-v2.shell-desktop-hidden footer{margin-left:0!important;width:auto!important}
body.ui-shell-v2.shell-desktop-hidden .top_nav .nav.toggle{display:flex!important;width:44px!important;flex:0 0 44px!important}
body.ui-shell-v2.shell-desktop-hidden #menu_toggle{border-radius:50%!important;background:#0b3155!important;color:#fff!important}
body.ui-shell-v2.shell-desktop-hidden #menu_toggle i{font-size:26px!important}
}
@media(max-width:768px){
body.ui-shell-v2 .container.body>.main_container>.col-md-3.left_col{width:min(82vw,320px)!important;z-index:1100!important;overflow-x:hidden!important}
body.ui-shell-v2.nav-sm .container.body>.main_container>.col-md-3.left_col{transform:translateX(-100%)!important;visibility:hidden!important;pointer-events:none!important}
body.ui-shell-v2.nav-md .container.body>.main_container>.col-md-3.left_col{display:block!important;transform:translateX(0)!important;visibility:visible!important;pointer-events:auto!important}
body.ui-shell-v2.nav-md .admin-menu-backdrop{display:block!important;position:fixed!important;inset:0!important;width:100vw!important;height:100vh!important;background:rgba(4,22,43,.48)!important;backdrop-filter:blur(2px);z-index:1090!important;border:0!important}
body.ui-shell-v2.nav-sm .admin-menu-backdrop{display:none!important}
body.ui-shell-v2 .top_nav,body.ui-shell-v2 .right_col,body.ui-shell-v2 footer{margin-left:0!important;max-width:100%!important}
body.ui-shell-v2 .sv-topbar-v2 .compact-company-info strong{font-size:12px!important;line-height:1.25!important}
}
body.sv-company-screen .right_col{padding:24px 16px!important}
body.sv-company-screen .right_col .page-title{height:auto!important;min-height:0!important;margin:0 0 18px!important}
body.sv-company-screen .right_col .page-title h3{font-size:28px!important;font-weight:700!important;line-height:1.25!important;margin:0 0 8px!important;color:#082146!important}
body.sv-company-screen .sv-company-page .x_title{padding:0 0 10px;margin:0 0 14px}
body.sv-company-screen .sv-company-page .x_title h2{font-size:16px!important;line-height:1.3!important;margin:0!important;font-weight:600!important}
body.sv-company-screen .sv-company-page .nav-tabs{gap:4px;padding:4px!important;margin-bottom:16px!important}
body.sv-company-screen .sv-company-page .nav-tabs>li>a{font-size:14px!important;padding:10px 16px!important;color:#0b2140!important;border:0!important}
body.sv-company-screen .sv-company-page .nav-tabs>li.active>a{background:#086bff!important;color:#fff!important;border:0!important}
body.sv-company-screen .sv-company-page .form-control{font-size:14px!important;min-height:40px!important;height:auto;border-radius:8px;line-height:1.4!important}
body.sv-company-screen .sv-company-page .control-label{font-size:13px!important;margin-bottom:4px}
body.sv-company-screen .sv-company-page .form-group{margin-bottom:14px!important}
body.sv-company-screen #tab_general>.row{display:flex;flex-wrap:wrap;align-items:flex-start}
body.sv-company-screen .sv-company-logo-editor{order:2;margin:10px 0!important}
body.sv-company-screen .sv-company-comments{order:3}
body.sv-company-screen .sv-company-logo-label{font-size:14px;font-weight:600;color:#0b2140;margin-bottom:8px}
body.sv-company-screen .sv-company-logo-editor .col-md-55{width:100%!important}
body.sv-company-screen .sv-company-logo-editor .brand-logo-container{display:flex;align-items:center;gap:12px;margin:0!important;flex-wrap:wrap}
body.sv-company-screen .sv-company-logo-editor .brand-logo-box{width:150px!important;height:86px!important;min-height:0!important;margin:0!important;border:1px dashed #c8d8ea!important;border-radius:10px!important}
body.sv-company-screen .sv-company-logo-editor .brand-logo-tools p{display:none!important}
body.sv-company-screen .sv-company-logo-editor .tools-bottom{position:static!important;background:transparent!important;padding:0!important;display:flex;flex-wrap:wrap;gap:8px}
body.sv-company-screen .sv-company-logo-editor .tools-bottom a{min-height:40px;display:inline-flex;align-items:center;justify-content:center;padding:8px 10px;gap:6px;border:1px solid #c8d8ea;border-radius:8px;color:#086bff;background:#fff;font-size:13px!important}
body.sv-company-screen #btn_edit_image:after{content:'Cambiar imagen'}
body.sv-company-screen .brand-logo-hint{font-size:12px!important;line-height:1.4!important;margin:8px 0!important}
.sv-modal-v2 .modal-title{font-size:22px!important}
.sv-modal-v2 #user_companies tbody tr.sv-company-current{background:#eef6ff!important}
@media(max-width:767px){
.sv-modal-v2 .input-group .form-control{flex:1 1 0!important;width:auto!important;min-width:0!important;font-size:14px!important;height:44px!important}
.sv-modal-v2 .input-group-btn{width:auto!important;flex:0 0 88px!important}
.sv-modal-v2 .input-group-btn .btn{font-size:14px!important;height:44px!important}
.sv-modal-v2 #user_companies tbody tr{grid-template-columns:48px minmax(0,1fr) 36px;gap:8px 10px;padding:14px;border-radius:14px;align-items:center}
.sv-modal-v2 #user_companies tbody tr:before{content:'\f1ad';font-family:FontAwesome;font-size:27px;grid-column:1;grid-row:1/3;display:flex;align-items:center;justify-content:center;width:48px;height:64px;color:#0f6df6;background:#e5f1ff;border-radius:12px}
.sv-modal-v2 #user_companies tbody tr.sv-company-current{border:1px solid #1683ff}
.sv-modal-v2 #user_companies tbody td:nth-child(1){grid-column:2;grid-row:1;color:#0b2140;font-size:14px!important;font-weight:700;line-height:1.35}
.sv-modal-v2 #user_companies tbody td:nth-child(1):before{content:'RFC';display:block;font-size:12px;font-weight:400;margin-bottom:3px}
.sv-modal-v2 #user_companies tbody td:nth-child(2){grid-column:2;grid-row:2;font-size:14px!important;line-height:1.4}
.sv-modal-v2 #user_companies tbody td:nth-child(2):before{content:'Nombre';display:block;font-weight:400;color:#657b97;font-size:12px;margin-bottom:3px}
.sv-modal-v2 #user_companies tbody td:nth-child(2) a{font-size:14px!important;color:#0b2140!important}
.sv-modal-v2 #user_companies tbody td:nth-child(3){grid-column:3;grid-row:1/3;align-self:center}
.sv-modal-v2 #user_companies .btn-select-company.btn{font-size:0!important;padding:0!important;width:36px;min-height:44px;background:transparent!important;border:0!important;display:flex;align-items:center;justify-content:center}
.sv-modal-v2 #user_companies .btn-select-company.btn:before{content:'';display:block;width:22px;height:22px;border:2px solid #99aabd;border-radius:50%;background:#fff}
.sv-modal-v2 #user_companies .sv-company-current .btn-select-company.btn:before{border-color:#1683ff;background:#1683ff;box-shadow:inset 0 0 0 3px #fff}
}

body.ui-shell-v2 .left_col.scroll-view{padding-top:0!important}
body.ui-shell-v2 .left_col.scroll-view>br{display:none!important}
body.sv-company-screen .sv-company-status{order:4}
@media(max-width:768px){body.ui-shell-v2.nav-md{overflow:hidden!important}}

@media(max-width:767px){.sv-modal-v2 #user_companies tbody tr{grid-template-columns:48px minmax(0,1fr) 44px}.sv-modal-v2 #user_companies .btn-select-company.btn{width:44px}}

@media(min-width:769px){
body.ui-shell-v2.nav-md .container.body>.main_container>.col-md-3.left_col,body.ui-shell-v2.nav-sm .container.body>.main_container>.col-md-3.left_col{width:272px!important}
body.ui-shell-v2:not(.shell-desktop-hidden) .top_nav,body.ui-shell-v2:not(.shell-desktop-hidden) .right_col,body.ui-shell-v2:not(.shell-desktop-hidden) footer{width:calc(100% - 272px)!important;max-width:calc(100% - 272px)!important;margin-left:272px!important}
body.ui-shell-v2.shell-desktop-hidden .top_nav,body.ui-shell-v2.shell-desktop-hidden .right_col,body.ui-shell-v2.shell-desktop-hidden footer{width:100%!important;max-width:100%!important;margin-left:0!important}
body.ui-shell-v2.shell-desktop-hidden .top_nav .nav.toggle{padding:0!important;background:transparent!important;box-shadow:none!important;border:0!important;height:44px!important;align-items:center}
body.ui-shell-v2.shell-desktop-hidden #menu_toggle{margin:0!important;width:44px!important;height:44px!important;padding:0!important;border:1px solid #cbdbea!important}
}

/* Restore desktop sidebar and its control for master, distributor and user. */
@media(min-width:769px){
body.ui-shell-v2:not(.shell-desktop-hidden) .container.body>.main_container>.col-md-3.left_col{display:block!important;visibility:visible!important;pointer-events:auto!important;transform:none!important}
body.admin-ui.ui-shell-v2:not(.shell-desktop-hidden) .top_nav .nav.toggle,body.user-ui.ui-shell-v2:not(.shell-desktop-hidden) .top_nav .nav.toggle{display:none!important}
}
body.ui-shell-v2 #menu_toggle{display:flex!important;align-items:center;justify-content:center;width:44px!important;height:44px!important;border-radius:50%!important;background:#0b3155!important;color:#fff!important}
@media(max-width:768px){body.ui-shell-v2.nav-md .top_nav .nav.toggle{display:none!important}}

/* panel-usuario-banner-v3.css */
/* User dashboard and optional company banner. Scoped to final-user views. */
.sv-header-banner{position:relative;overflow:hidden;border-radius:18px;margin:0 0 12px;background:#07325b;box-shadow:0 4px 18px #005fb51a}
.sv-header-banner>img{display:block;width:100%;height:auto;max-height:280px;object-fit:contain;margin:auto}
.sv-banner-label{position:absolute;top:12px;left:12px;color:white;background:#0079ec;border:1px solid #36bfff;border-radius:18px;padding:5px 12px;font-size:12px;line-height:1.2}
.sv-banner-settings{margin:24px 0 0;border-top:1px solid #e4edf8;padding:24px 0 8px}
.sv-banner-settings h3{font-size:22px;color:#09224d}.sv-banner-settings p{color:#617795}
.sv-banner-preview{position:relative;display:flex;align-items:center;justify-content:center;width:100%;max-width:750px;min-height:110px;border:1px dashed #b6cde8;border-radius:14px;background:#eff6ff;margin:14px 0;overflow:hidden}
.sv-banner-preview img{display:block;width:100%;height:auto}.sv-banner-settings input[type=file]{margin:8px 0 12px;max-width:100%}.sv-banner-remove{display:inline-block;margin-top:8px}
body.sv-user-design .top_nav .nav_menu>nav{display:flex!important;flex-wrap:nowrap!important;gap:12px!important;min-height:64px!important}
body.sv-user-design .top_nav .compact-company-info{order:2;flex:1!important;min-width:0!important;display:flex!important;align-items:center;justify-content:space-between;border:0!important;padding:0!important;gap:10px}
body.sv-user-design .top_nav .compact-company-info>div{min-width:0}body.sv-user-design .top_nav .compact-company-info strong{font-size:16px!important;line-height:1.25;color:#071b49}
body.sv-user-design .top_nav .compact-company-info span{color:#7182a5;font-size:13px!important}
body.sv-user-design .top_nav .navbar-right{order:3!important;width:auto!important;max-width:none!important;flex:0 0 auto!important;margin:0!important}
body.sv-user-design .top_nav .nav.toggle{order:1!important}body.sv-user-design .shell-notices-reserved{display:none!important}
body.sv-has-banner .top_nav .adminbar-brand{display:none!important}
body.sv-user-dashboard .right_col{padding-top:12px!important;color:#071b49!important}
body.sv-user-dashboard .portal-dashboard-content>.clearfix,body.sv-user-dashboard .portal-dashboard-content>br{display:none}
body.sv-user-dashboard .portal-metrics{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important;margin:0 0 16px!important}
body.sv-user-dashboard .portal-metrics>.tile{position:relative;float:none!important;width:auto!important;min-width:0!important;margin:0!important;padding:14px!important;border-radius:18px!important;min-height:112px!important;border:2px solid #fff!important;text-align:left!important;background:#eef7ff!important;box-shadow:0 4px 20px #1764aa09!important}
body.sv-user-dashboard .portal-metrics>.sv-metric-1{background:#effcf6!important}body.sv-user-dashboard .portal-metrics>.sv-metric-2{background:#fff7ef!important}body.sv-user-dashboard .portal-metrics>.sv-metric-3{background:linear-gradient(120deg,#0069ef,#0093ff)!important}
body.sv-user-dashboard .portal-metrics>.tile a{position:relative;display:grid!important;grid-template-columns:64px minmax(0,1fr)!important;grid-template-rows:auto auto!important;column-gap:12px!important;align-items:center!important;text-align:left!important;padding:0!important;margin:0!important;background:none!important;border:none!important;white-space:normal!important;color:#071b49!important;width:100%!important;height:100%;box-shadow:none!important}
body.sv-user-dashboard .sv-metric-icon{grid-row:1/3;display:flex;align-items:center;justify-content:center;width:64px;height:76px;border-radius:18px;background:#dbeeff;color:#0084ff;font-size:34px}
body.sv-user-dashboard .sv-metric-1 .sv-metric-icon{color:#00ac79;background:#ddf7ed}body.sv-user-dashboard .sv-metric-2 .sv-metric-icon{color:#ff8500;background:#ffecd5}body.sv-user-dashboard .sv-metric-3 .sv-metric-icon{background:none;color:white}
body.sv-user-dashboard .portal-metrics strong{align-self:end;font-size:15px!important;font-weight:500!important;line-height:1.25!important}
body.sv-user-dashboard .portal-metrics h2{align-self:start;margin:4px 0 0!important;font-size:32px!important;font-weight:700!important;color:#071b49!important}
body.sv-user-dashboard .portal-metrics .sv-metric-3 a{color:white!important;font-size:20px;font-weight:700}body.sv-user-dashboard .sv-metric-3 a>i,body.sv-user-dashboard .sv-metric-3 a>br{display:none}body.sv-user-dashboard .sv-metric-3 a>span:not(.sv-metric-icon){grid-row:1/3}
body.sv-user-dashboard .portal-quick{display:block!important;margin:0 0 16px!important;padding:16px!important;background:white!important;border:1px solid #e9f0f9;border-radius:18px!important;box-shadow:0 4px 20px #1764aa09}
body.sv-user-dashboard .portal-quick>div:first-child{padding:0!important;margin:0 0 14px!important;text-align:left!important;width:100%!important;float:none}
body.sv-user-dashboard .portal-quick h4{margin:0;font-size:22px;font-weight:700;color:#071b49}
body.sv-user-dashboard .portal-quick>div:last-child{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:0!important;padding:0!important;width:100%!important;float:none}
body.sv-user-dashboard .portal-quick .hidden-xs{display:none!important}
body.sv-user-dashboard .portal-quick a{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:14px 6px!important;margin:0!important;white-space:normal!important;border:0!important;border-radius:14px!important;color:#071b49!important;background:#eefbf5!important;font-size:14px;line-height:1.25;box-shadow:none!important;min-width:0}
body.sv-user-dashboard .portal-quick a i{font-size:32px;color:#00aa78}
body.sv-user-dashboard .portal-quick .sv-quick-1{background:#f4efff!important}body.sv-user-dashboard .sv-quick-1 i{color:#7c22dc!important}
body.sv-user-dashboard .portal-quick .sv-quick-2{background:#eef6ff!important}body.sv-user-dashboard .sv-quick-2 i{color:#0784fa!important}
body.sv-user-dashboard .portal-quick .sv-quick-3{background:#fff6ed!important}body.sv-user-dashboard .sv-quick-3 i{color:#ff8300!important}
body.sv-user-dashboard .portal-quick .sv-quick-4{background:#fff0f6!important}body.sv-user-dashboard .sv-quick-4 i{color:#f32c68!important}
body.sv-user-dashboard .x_panel{border-radius:18px!important;border:1px solid #e9f0f9!important;padding:18px!important;background:white!important;box-shadow:0 4px 20px #1764aa09}
body.sv-user-dashboard .x_title{border:0!important;display:flex!important;flex-wrap:wrap;gap:10px;align-items:center;margin-bottom:12px}
body.sv-user-dashboard .x_title h2{font-size:24px!important;font-weight:700;color:#071b49;float:none;margin:0!important;width:auto!important}
body.sv-user-dashboard .x_title h2 small{display:block!important;font-size:14px!important;font-weight:400;color:#657699;margin:4px 0 0}
body.sv-user-dashboard #report_range{border:1px solid #dce5f1!important;border-radius:10px;padding:10px!important;color:#3d5581;font-size:12px}
body.sv-user-dashboard .tiles{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px!important;margin-top:16px!important}
body.sv-user-dashboard .tiles>.tile{float:none!important;width:auto!important;min-width:0!important;margin:0!important;padding:12px 6px!important;border-radius:12px!important;border:0!important;border-bottom:4px solid #08666a!important;background:#f0f8f8!important;text-align:center!important}
body.sv-user-dashboard .tiles strong{font-size:12px!important;font-weight:500;color:#071b49;white-space:normal!important}
body.sv-user-dashboard .tiles h2{font-size:22px!important;margin:8px 0 0!important;color:#071b49;font-weight:500!important;overflow-wrap:anywhere}
body.sv-user-dashboard .tiles .sv-total-1{background:#eefbf7!important;border-color:#00b985!important}body.sv-user-dashboard .tiles .sv-total-2{background:#f0f6ff!important;border-color:#0084ff!important}body.sv-user-dashboard .tiles .sv-total-3{background:#fff7ef!important;border-color:#ff8500!important}
@media(max-width:600px){.sv-header-banner{border-radius:14px}.sv-banner-label{top:8px;left:8px;font-size:10px;padding:3px 8px}body.sv-user-design .top_nav .nav_menu>nav{gap:8px!important;min-height:56px!important}body.sv-user-design .top_nav .compact-company-info strong{font-size:12px!important}body.sv-user-design .top_nav .compact-company-info span{font-size:11px!important}body.sv-user-dashboard .portal-metrics{gap:9px!important}body.sv-user-dashboard .portal-metrics>.tile{padding:10px!important;min-height:88px!important;border-radius:14px!important}body.sv-user-dashboard .portal-metrics>.tile a{grid-template-columns:42px minmax(0,1fr)!important;column-gap:8px!important}body.sv-user-dashboard .sv-metric-icon{width:42px;height:58px;font-size:27px;border-radius:12px}body.sv-user-dashboard .portal-metrics strong{font-size:12px!important}body.sv-user-dashboard .portal-metrics h2{font-size:25px!important}body.sv-user-dashboard .portal-metrics .sv-metric-3 a{font-size:14px!important}body.sv-user-dashboard .portal-quick{padding:12px!important}body.sv-user-dashboard .portal-quick h4{font-size:19px}body.sv-user-dashboard .portal-quick>div:last-child{gap:5px}body.sv-user-dashboard .portal-quick a{font-size:10px!important;padding:12px 3px!important;gap:8px}body.sv-user-dashboard .portal-quick a i{font-size:26px}body.sv-user-dashboard .x_panel{padding:12px!important}body.sv-user-dashboard .tiles{gap:5px!important}body.sv-user-dashboard .tiles strong{font-size:10px!important}body.sv-user-dashboard .tiles h2{font-size:16px!important}}

body.sv-tenant-workspace.sv-user-dashboard .portal-dashboard-content .portal-quick>div>a.btn{color:#071b49!important;font-weight:400!important;background:#effbf6!important;box-shadow:none!important}
body.sv-tenant-workspace.sv-user-dashboard .portal-dashboard-content .portal-quick>div>a.btn i{color:#00aa78!important}
body.sv-tenant-workspace.sv-user-dashboard .portal-dashboard-content .portal-quick>div>a.sv-quick-1.btn{background:#f4efff!important}body.sv-tenant-workspace.sv-user-dashboard .portal-dashboard-content .portal-quick>div>a.sv-quick-1.btn i{color:#7c22dc!important}
body.sv-tenant-workspace.sv-user-dashboard .portal-dashboard-content .portal-quick>div>a.sv-quick-2.btn{background:#eef6ff!important}body.sv-tenant-workspace.sv-user-dashboard .portal-dashboard-content .portal-quick>div>a.sv-quick-2.btn i{color:#0784fa!important}
body.sv-tenant-workspace.sv-user-dashboard .portal-dashboard-content .portal-quick>div>a.sv-quick-3.btn{background:#fff6ed!important}body.sv-tenant-workspace.sv-user-dashboard .portal-dashboard-content .portal-quick>div>a.sv-quick-3.btn i{color:#ff8300!important}
body.sv-tenant-workspace.sv-user-dashboard .portal-dashboard-content .portal-quick>div>a.sv-quick-4.btn{background:#fff0f6!important}body.sv-tenant-workspace.sv-user-dashboard .portal-dashboard-content .portal-quick>div>a.sv-quick-4.btn i{color:#f32c68!important}

body.sv-tenant-workspace.sv-user-design.sv-has-banner.ui-shell-v2 .top_nav .nav_menu>nav>a.adminbar-brand{display:none!important}
body.sv-tenant-workspace.sv-user-design.ui-shell-v2 .top_nav .nav.toggle{background:transparent!important;padding:0!important;box-shadow:none!important}
body.sv-tenant-workspace.sv-user-design.ui-shell-v2 .top_nav #menu_toggle{border-radius:50%!important;background:#0b3155!important;color:#fff!important;border:1px solid #cbdbea!important;padding:0!important;width:44px!important;height:44px!important}
body.sv-tenant-workspace.sv-user-dashboard .portal-dashboard-content{display:block!important}

.sv-header-banner>img.sv-banner-company-logo{position:absolute;right:4%;top:50%;transform:translateY(-50%);width:16%;height:auto;max-width:100px;aspect-ratio:1;object-fit:contain;border-radius:50%;background:white;padding:4px;box-shadow:0 2px 12px #092b5a33}
.sv-header-banner>img.sv-banner-company-logo[hidden]{display:none!important}

.sv-header-banner .sv-banner-label{left:3.3%;top:11%;width:26%;min-width:105px;max-width:240px;height:14%;min-height:14px;display:flex;align-items:center;justify-content:center;gap:5px;padding:0;font-size:clamp(8px,1.35vw,16px);background:#0079ec;white-space:nowrap}

/* interfaz-compartida-v4.css */
/* Shared application views: colors and proportions, original controls retained. */
body.sv-app-design{background:#f1f7fd;color:#10284b}
body.sv-app-design .right_col{background:#f1f7fd!important;min-width:0!important}
body.sv-app-design .page-title{display:flex!important;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;height:auto!important;min-height:58px;margin:0 0 14px}
body.sv-app-design .page-title .title_left{flex:1 1 200px;width:auto!important;min-width:0}
body.sv-app-design .page-title .title_right{flex:0 1 auto;width:auto!important;max-width:100%;float:none!important}
body.sv-app-design .page-title .title_right .row{margin:0!important}
body.sv-app-design .page-title .title_right [class*="col-"]{width:auto!important;max-width:100%;padding:0!important;float:none!important;display:flex;gap:7px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
body.sv-app-design .page-title h3{font-size:28px;line-height:1.2;font-weight:700;color:#08214a;margin:8px 0;overflow-wrap:anywhere}
body.sv-app-design .x_panel{border:1px solid #e5eef8!important;border-radius:16px!important;background:white!important;padding:18px!important;box-shadow:0 4px 18px #1764aa08;min-width:0;max-width:100%}
body.sv-app-design .x_title{border-bottom:1px solid #edf2f9!important;min-width:0;display:flex;align-items:center;flex-wrap:wrap;gap:8px}
body.sv-app-design .x_title h2{font-size:21px!important;font-weight:700;color:#0b2852;line-height:1.25;max-width:100%;overflow-wrap:anywhere}
body.sv-app-design .x_content{min-width:0;max-width:100%}
body.sv-app-design .right_col .form-control,body.sv-app-design .modal .form-control{border:1px solid #cbd9eb!important;border-radius:8px!important;min-height:40px;font-size:14px;max-width:100%;box-shadow:none!important;color:#223858;background:white}
body.sv-app-design .right_col .form-control:focus,body.sv-app-design .modal .form-control:focus{border-color:#1680ff!important;box-shadow:0 0 0 3px #1680ff14!important}
body.sv-app-design .right_col .form-control[disabled],body.sv-app-design .right_col .form-control[readonly]{background:#f4f7fb!important}
body.sv-app-design .right_col textarea.form-control{min-height:82px}
body.sv-app-design .right_col label.control-label{font-size:13px;color:#19385b;line-height:1.35;white-space:normal}
body.sv-app-design .right_col .select2-container,body.sv-app-design .modal .select2-container{max-width:100%!important}
body.sv-app-design .right_col .select2-selection--single,body.sv-app-design .modal .select2-selection--single{min-height:40px;border-radius:8px!important;border-color:#cbd9eb!important;display:flex;align-items:center}
body.sv-app-design .right_col .select2-selection--multiple{min-height:40px;border-radius:8px!important;border-color:#cbd9eb!important;height:auto}
body.sv-app-design .right_col .btn,body.sv-app-design .modal .btn{border-radius:8px;box-shadow:none;white-space:normal}
body.sv-app-design .page-title .btn{min-height:40px;padding:9px 12px;margin:0!important;display:inline-flex;align-items:center;justify-content:center;font-size:14px}
body.sv-app-design .btn-primary,body.sv-app-design .sv-new-action.btn{background:#0877ff!important;border-color:#0877ff!important;color:white!important}
body.sv-app-design .sv-new-action-add-icon:before{content:'+';font-size:22px;line-height:14px;margin-right:7px}
body.sv-app-design .btn-default{background:white;border-color:#cbd9eb;color:#183f73}
body.sv-app-design .right_col .nav-tabs{display:flex;flex-wrap:wrap;gap:4px;border:0;padding:4px;background:#f3f6fc;border-radius:10px}
body.sv-app-design .right_col .nav-tabs>li{float:none!important;margin:0}
body.sv-app-design .right_col .nav-tabs>li>a{border:0!important;border-radius:8px;padding:10px 14px;color:#3f587b}
body.sv-app-design .right_col .nav-tabs>li.active>a{background:#0877ff!important;color:white!important}
body.sv-app-design .right_col .table{font-size:13px;color:#324766;max-width:100%}
body.sv-app-design .right_col .table thead th{background:#eaf3ff;color:#143d78;border-bottom:1px solid #d7e5f5!important;padding:11px 9px!important;font-weight:500}
body.sv-app-design .right_col .table thead th a{color:#143d78}
body.sv-app-design .right_col .table tbody td{padding:10px 9px;vertical-align:middle;border-top-color:#e8eef7}
body.sv-app-design .right_col .table-striped>tbody>tr:nth-of-type(odd){background:#f7faff}
body.sv-app-design .right_col .table tbody .btn{min-width:30px;min-height:30px;padding:5px 7px;white-space:nowrap}
body.sv-app-design .right_col .pagination{display:flex;flex-wrap:wrap;gap:5px}
body.sv-app-design .right_col .pagination>li>a,body.sv-app-design .right_col .pagination>li>span{border-radius:8px;min-width:36px;min-height:36px;text-align:center;border-color:#d5e2f2;color:#1b5193}
body.sv-app-design .right_col .pagination>.active>span,body.sv-app-design .right_col .pagination>.active>a{background:#0877ff;color:white;border-color:#0877ff}
body.sv-app-design .right_col .alert{border-radius:10px;line-height:1.45;overflow-wrap:anywhere}
body.sv-app-design .modal-dialog{max-width:calc(100vw - 24px)!important}
body.sv-app-design .modal-content{border-radius:16px;border:1px solid #dce7f5;box-shadow:0 15px 50px #082b5733}
body.sv-app-design .modal-header{padding:18px;border-bottom-color:#edf2f9}
body.sv-app-design .modal-title{font-size:21px;font-weight:700;color:#0b2852}
body.sv-app-design .modal-body{padding:18px}
body.sv-app-design .modal-footer{border-top-color:#edf2f9;padding:14px 18px}
/* Catalog search and tables keep every existing column and action. */
body.sv-app-design .sv-list-search{margin-bottom:14px}
body.sv-app-design .sv-list-search>.row{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:0!important}
body.sv-app-design .sv-list-search>.row>[class*="col-"]{flex:1 1 240px;width:auto!important;min-width:0;padding:0!important;float:none!important}
body.sv-app-design .sv-list-search .input-group{display:flex;align-items:stretch;width:100%}
body.sv-app-design .sv-list-search .input-group>.form-control{flex:1;min-width:0;width:100%;border-radius:8px 0 0 8px!important}
body.sv-app-design .sv-list-search .input-group-btn{display:flex;width:auto;flex:0 0 auto}
body.sv-app-design .sv-list-search .input-group-btn .btn{background:#0877ff!important;color:white!important;border-color:#0877ff!important;border-radius:0 8px 8px 0;min-height:40px;padding:8px 13px}
body.sv-app-design:not(.documentos-ui) .right_col .table-responsive>table.sv-catalog-table{min-width:100%!important;table-layout:auto}
body.sv-app-design .sv-catalog-table td,body.sv-app-design .sv-catalog-table th{white-space:normal;overflow-wrap:anywhere}
body.sv-app-design .sv-catalog-table td:last-child{white-space:nowrap}
body.sv-app-design .sv-catalog-table img{max-width:60px;max-height:60px;object-fit:contain;border:1px solid #e0e8f2;border-radius:6px;padding:2px;background:white}
body.sv-app-design .sv-table-scroll{border:1px solid #e1eaf5;border-radius:10px;overflow-x:auto;-webkit-overflow-scrolling:touch}
body.sv-app-design .sv-table-hint{font-size:12px;color:#6c819c;margin:7px 0}
body.sv-app-design .sv-table-hint[hidden]{display:none!important}
/* Original document accordions, filters, column preferences and card nodes. */
body.sv-app-design.documentos-ui .doc-toolbar{display:flex!important;flex-direction:column;gap:12px;margin:0 0 16px}
body.sv-app-design.documentos-ui .doc-toolbar>details{width:100%;min-width:0;border:1px solid #e3edf8;border-radius:14px;background:white;overflow:visible;box-shadow:0 3px 16px #1764aa06}
body.sv-app-design.documentos-ui .doc-toolbar summary{position:relative;list-style:none;display:flex;align-items:center;gap:10px;padding:15px 18px;font-size:16px;font-weight:600;color:#0b244e;cursor:pointer;min-height:54px;border-radius:14px}
body.sv-app-design.documentos-ui .doc-toolbar summary::-webkit-details-marker{display:none}
body.sv-app-design.documentos-ui .doc-toolbar summary>i{font-size:21px;color:#0877ff}
body.sv-app-design.documentos-ui .doc-toolbar summary:after{content:'⌄';margin-left:auto;color:#174573;font-size:22px;line-height:1}
body.sv-app-design.documentos-ui .doc-toolbar details[open]>summary:after{content:'⌃'}
body.sv-app-design.documentos-ui .doc-count{background:#0877ff;font-size:12px;min-width:23px;min-height:23px;text-align:center;margin-left:0;padding:3px 6px}
body.sv-app-design.documentos-ui .doc-quick{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}
body.sv-app-design.documentos-ui .doc-quick button,body.sv-app-design.documentos-ui .doc-columns button{min-height:38px;border:1px solid #cbd9eb;border-radius:8px;padding:8px 12px;background:#f7faff;color:#245285;font-size:13px}
body.sv-app-design.documentos-ui .doc-quick button:first-child{background:#0877ff;color:white;border-color:#0877ff}
body.sv-app-design.documentos-ui #form{padding:4px 18px 18px!important;gap:12px!important}
body.sv-app-design.documentos-ui #form>.row{margin-left:-6px;margin-right:-6px;width:100%;display:flex;flex-wrap:wrap}
body.sv-app-design.documentos-ui #form>.row>[class*="col-"]{padding:0 6px;float:none;min-width:0}
body.sv-app-design.documentos-ui .doc-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:4px 18px 18px}
body.sv-app-design.documentos-ui .doc-columns label{font-weight:400;font-size:14px;color:#1a345b;display:flex;gap:8px;align-items:center;margin:0}
body.sv-app-design.documentos-ui .doc-columns input{accent-color:#0877ff;width:17px;height:17px;margin:0}
body.sv-app-design.documentos-ui .doc-hidden{display:none!important}
body.sv-app-design.documentos-ui .doc-record{border:1px solid #dfe9f7!important;border-radius:14px!important;background:white!important;box-shadow:0 3px 14px #1764aa05}
body.sv-app-design.documentos-ui .doc-record>.doc-folio a{color:#0877ff!important;font-weight:700}
body.sv-app-design.documentos-ui .doc-record>.doc-estatus .label{border-radius:16px;padding:4px 10px;font-weight:400}
body.sv-app-design.documentos-ui .doc-list-meta{background:#eaf4ff;border-radius:10px;padding:12px;color:#245285}
/* Keep the operator and the original account selector visible while anchored. */
body.sv-anchored-context .right_col:before{display:none!important}
body.sv-anchored-context .sv-anchor-tools{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;padding:10px 0 0;border-top:1px solid #e5edf7;margin-top:8px;min-width:0}
body.sv-anchored-context .sv-anchor-caption{border-radius:12px;background:#eaf4ff;color:#0870da;padding:4px 8px;font-size:11px;font-weight:600}
body.sv-anchored-context .sv-operator-identity{font-size:12px!important;font-weight:500!important;color:#5d7190!important;order:0!important;flex:0 1 auto!important;max-width:100%;overflow-wrap:anywhere}
body.sv-anchored-context .sv-anchor-selector{display:flex!important;align-items:center;gap:8px;flex:1 1 260px!important;min-width:0;float:none!important;width:auto!important;max-width:100%!important;margin:0!important}
body.sv-anchored-context .sv-anchor-selector>h2{display:none!important}
body.sv-anchored-context .sv-anchor-selector>div{position:static!important;max-width:100%!important;width:100%!important;min-width:0;flex:1}
body.sv-anchored-context .sv-anchor-selector .select2-container{width:100%!important;max-width:100%!important}
body.sv-anchored-context .sv-anchor-selector .input-group{display:flex;align-items:stretch;width:100%;max-width:100%}
body.sv-anchored-context .sv-anchor-selector .input-group-btn{width:auto;display:flex;flex:0 0 auto}
body.sv-anchored-context .sv-original-company-switch{display:inline-flex;align-items:center;justify-content:center;flex:0 0 40px;margin:0!important;min-width:40px;min-height:40px;border:1px solid #cbd9eb!important;border-radius:10px!important;background:#edf6ff!important;color:#0b3b71!important}
@media(max-width:768px){body.sv-app-design .right_col{padding:14px 12px!important}body.sv-app-design .page-title h3{font-size:25px}body.sv-app-design .page-title .title_left{flex:1 1 140px}body.sv-app-design .page-title .btn{min-height:38px;font-size:12px;padding:8px 10px}body.sv-app-design .x_panel{padding:12px!important}body.sv-app-design .x_title h2{font-size:20px!important}body.sv-app-design .right_col .table{font-size:12px}body.sv-app-design .right_col .table thead th{padding:9px 7px!important}body.sv-app-design .right_col .sv-catalog-table tbody td{padding:10px 7px!important}body.sv-app-design.documentos-ui #form>.row>[class*="col-"]{width:50%!important;flex:0 0 50%}body.sv-app-design.documentos-ui #form>.row>[class*="col-"]:last-child{max-width:100%}body.sv-app-design.documentos-ui .doc-toolbar summary{font-size:14px;padding:13px 14px}body.sv-app-design.documentos-ui #form{padding:4px 14px 14px!important}body.sv-app-design.documentos-ui .doc-columns{padding:4px 14px 14px;gap:10px 7px}body.sv-app-design.documentos-ui .doc-columns label{font-size:12px}body.sv-app-design .right_col .form-horizontal .control-label{text-align:left!important;margin-bottom:5px}body.sv-app-design .right_col .form-horizontal .form-group{margin-left:0!important;margin-right:0!important}body.sv-app-design .right_col .form-horizontal .form-group>[class*="col-"]{max-width:100%}body.sv-anchored-context .sv-anchor-tools{gap:8px}body.sv-anchored-context .sv-anchor-selector{flex-basis:100%!important}}

body.sv-app-design [hidden]{display:none!important}
body.sv-app-design.documentos-ui .doc-record>.doc-estatus .label-success{background:#e3f8ee;color:#168459}
body.sv-app-design.documentos-ui .doc-record>.doc-estatus .label-danger{background:#fff0f2;color:#c33d59}

body.sv-app-design .right_col .has-error .form-control,body.sv-app-design .right_col .has-error .form-control:focus{border-color:#d94b61!important}
body.sv-app-design .right_col .has-warning .form-control{border-color:#d7a02b!important}

/* Keep operator controls below the client header instead of sharing its flex row. */
body.sv-anchored-context .top_nav .nav_menu{flex-direction:column!important;align-items:stretch!important}
body.sv-anchored-context .top_nav .nav_menu>nav{width:100%!important;flex:0 0 auto!important;min-width:0}
body.sv-anchored-context .sv-anchor-tools{width:100%!important;max-width:100%!important;flex:0 0 auto!important;box-sizing:border-box}

@media(max-width:767px){body.sv-app-design.documentos-ui .doc-record>td{min-width:0;white-space:normal!important;overflow-wrap:anywhere}body.sv-app-design.documentos-ui .doc-record>.doc-total{white-space:nowrap!important;font-size:20px!important;padding-left:0!important;padding-right:0!important}body.sv-app-design.documentos-ui .doc-record>.doc-cliente{font-size:13px!important;line-height:1.4!important}body.sv-app-design.documentos-ui .doc-record>.doc-folio{white-space:normal!important}}

/* cfdi-editor-v5.css */
/* Layout only. Original fields, rows, handlers and submission controls remain. */
.sv-v5-icon{width:23px;height:23px;flex:0 0 23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}
body.sv-app-design .page-title a>.sv-v5-icon{margin-right:7px}
body.sv-document-list-v5 .doc-toolbar summary{display:flex!important;align-items:center;gap:10px;color:#09234b;font-weight:600}
body.sv-document-list-v5 .doc-toolbar summary>.sv-v5-icon{color:#0877ff}
body.sv-document-list-v5 .doc-toolbar summary:after{margin-left:auto}
body.sv-document-list-v5 .doc-period{font-size:14px!important;line-height:1.5;gap:12px;padding:14px!important}
body.sv-document-list-v5 .sv-doc-period-text{display:flex;align-items:center;gap:8px;font-weight:400;color:#245285;min-width:0}
body.sv-document-list-v5 .doc-folio>.sv-v5-icon{color:#0877ff;margin-right:6px}
body.sv-document-list-v5 .doc-record>.doc-folio a{font-size:18px}
body.sv-document-list-v5 .doc-status{font-size:12px!important;padding:5px 10px!important}
body.sv-document-list-v5 .doc-status:before{content:'';display:inline-block;width:6px;height:6px;border-radius:50%;background:currentColor;margin-right:5px;vertical-align:middle}
body.sv-app-design .cp31-page h1,body.sv-app-design .cp31-page h2,body.sv-app-design .cp31-section-title{color:#12385f}
body.sv-app-design .cp31-page input:not([type=checkbox]):not([type=radio]):not([type=hidden]),body.sv-app-design .cp31-page select,body.sv-app-design .cp31-page textarea{border:1px solid #cbd9eb!important;border-radius:9px!important;min-height:44px;font-size:15px;max-width:100%}
body.sv-app-design .cp31-record,body.sv-app-design .cp31-group{border-radius:12px!important;border-color:#dce8f6!important}
body.sv-app-design .cp31-navigation button{border-radius:9px;min-height:44px}
body.sv-app-design .cp31-navigation button[aria-current=step]{background:#0877ff!important;color:white!important;border-color:#0877ff!important}
body.sv-cfdi-editor-v5 .sv-editor-heading{font-size:19px;font-weight:700;color:#12385f;margin:20px 0 14px;border-top:1px solid #e5edf7;padding-top:18px}
body.sv-cfdi-editor-v5 .sv-editor-heading:first-of-type{border:0;padding-top:0;margin-top:4px}
body.sv-cfdi-editor-v5 .sv-editor-row{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:0 18px;margin:0!important}
body.sv-cfdi-editor-v5 .sv-editor-row:before,body.sv-cfdi-editor-v5 .sv-editor-row:after{display:none!important;content:none!important}
body.sv-cfdi-editor-v5 .sv-editor-row>div{grid-column:span var(--sv-field-span,12);width:auto!important;float:none!important;padding:0!important;min-width:0}
body.sv-cfdi-editor-v5 .sv-editor-row .form-group{margin:0 0 18px!important}
body.sv-cfdi-editor-v5 .control-label{display:block!important;text-align:left!important;font-size:14px!important;margin-bottom:7px;line-height:1.4}
body.sv-cfdi-editor-v5 .right_col .form-control{height:44px!important;min-height:44px!important;font-size:15px!important;border-radius:9px!important}
body.sv-cfdi-editor-v5 .right_col textarea.form-control{height:auto!important;min-height:82px!important;resize:vertical}
body.sv-cfdi-editor-v5 .input-group{display:flex!important;align-items:stretch;width:100%;max-width:100%;min-width:0}
body.sv-cfdi-editor-v5 .input-group>.select2-container{display:block!important;flex:1 1 0;min-width:0!important;width:0!important}
body.sv-cfdi-editor-v5 .input-group>.form-control:not(.select2-hidden-accessible){flex:1 1 0;min-width:0;width:0!important;float:none!important}
body.sv-cfdi-editor-v5 .input-group>.input-group-btn{display:flex!important;flex:0 0 auto;width:auto!important;align-items:stretch}
body.sv-cfdi-editor-v5 .input-group>.input-group-addon{display:flex!important;align-items:center;justify-content:center;flex:0 0 40px;width:40px}
body.sv-cfdi-editor-v5 .input-group .input-group-btn .btn{height:44px!important;min-width:40px;margin:0!important;border-radius:0 8px 8px 0;padding:8px 10px}
body.sv-cfdi-editor-v5 .input-group .input-group-btn .btn+.btn{border-radius:8px;margin-left:4px!important}
body.sv-cfdi-editor-v5 .input-group-addon{border-color:#cbd9eb!important;background:#edf5ff!important;color:#215893;min-width:40px}
body.sv-cfdi-editor-v5 .select2-container{min-width:0!important;max-width:100%!important}
body.sv-cfdi-editor-v5 .right_col .select2-selection--single{height:auto!important;min-height:44px!important}
body.sv-cfdi-editor-v5 .select2-selection__rendered{white-space:normal!important;line-height:1.35!important;overflow-wrap:anywhere;padding-top:8px!important;padding-bottom:8px!important}
body.sv-cfdi-editor-v5 .sv-editor-tabs-row{margin:8px 0 0!important}
body.sv-cfdi-editor-v5 .sv-editor-tabs-row>[class*="col-"]{padding:0!important}
body.sv-cfdi-editor-v5 #myTab.sv-editor-tabs{height:auto!important;min-height:48px!important;max-height:none!important;overflow:visible!important;display:flex!important;flex-wrap:wrap!important;padding:5px!important;margin:0 0 18px!important;gap:5px;background:#eff4fb}
body.sv-cfdi-editor-v5 #myTab.sv-editor-tabs>li{height:auto!important;flex:1 1 160px;margin:0!important;min-width:0}
body.sv-cfdi-editor-v5 #myTab.sv-editor-tabs>li>a{display:flex!important;align-items:center;justify-content:center;min-height:44px;height:auto!important;white-space:normal!important;text-align:center;padding:10px!important;line-height:1.3!important;font-size:14px!important;overflow:visible!important}
body.sv-cfdi-editor-v5 .sv-editor-table-wrap{border:1px solid #dde8f5;border-radius:12px;margin-bottom:14px;max-width:100%;width:100%;overflow-x:auto!important;position:relative}
body.sv-cfdi-editor-v5 .sv-editor-table{margin:0!important;min-width:1050px;font-size:13px!important}
body.sv-cfdi-editor-v5 .sv-editor-table:not(#items){min-width:680px}
body.sv-cfdi-editor-v5 .sv-editor-table td{vertical-align:top!important;white-space:normal!important;min-width:70px}
body.sv-cfdi-editor-v5 .sv-editor-table .sv-editor-concept>td:nth-child(2){min-width:180px}
body.sv-cfdi-editor-v5 #items .sv-editor-concept>td:nth-child(3){min-width:220px}
body.sv-cfdi-editor-v5 .sv-editor-table td .form-group{margin-bottom:0!important}
body.sv-cfdi-editor-v5 .sv-editor-table .form-control{font-size:14px!important}
body.sv-cfdi-editor-v5 .sv-field-label{display:none}
body.sv-cfdi-editor-v5 .sv-concept-caption{display:none}
body.sv-cfdi-editor-v5 .sv-editor-add .btn{min-height:44px!important;font-size:14px!important;padding:10px 14px!important;white-space:nowrap}
body.sv-cfdi-editor-v5 .sv-add-label{margin-left:8px}
body.sv-cfdi-editor-v5 .sv-editor-summary td{vertical-align:middle!important;padding:12px!important}
body.sv-cfdi-editor-v5 .sv-editor-summary:last-child{font-size:18px;font-weight:700;background:#edf6ff}
body.sv-cfdi-editor-v5 .sv-editor-actions{display:flex!important;justify-content:flex-end;align-items:stretch;flex-wrap:wrap;gap:10px;padding:12px 0 0!important;font-size:0}
body.sv-cfdi-editor-v5 .sv-editor-actions:before,body.sv-cfdi-editor-v5 .sv-editor-actions:after{display:none!important;content:none!important}
body.sv-cfdi-editor-v5 .sv-editor-actions>.btn{margin:0!important;min-height:46px;font-size:14px!important;padding:12px 16px!important}
body.sv-cfdi-editor-v5 .sv-editor-actions>.btn-default{color:#355578}
@media(min-width:768px){body.sv-document-list-v5 .doc-record td{font-size:14px!important;padding:13px 10px!important;line-height:1.5}body.sv-document-list-v5 .doc-record .doc-fecha{color:#75869f}body.sv-document-list-v5 .doc-record .doc-total{font-weight:700;color:#08234b}}
@media(max-width:767px){
 body.sv-document-list-v5 .right_col{padding:12px 10px!important}
 body.sv-document-list-v5 .page-title{margin:8px 0 16px!important;min-height:48px}
 body.sv-document-list-v5 .page-title .title_left{flex:1 1 100px!important}
 body.sv-document-list-v5 .page-title .title_right [class*="col-"]{margin:0!important}
 body.sv-document-list-v5 .page-title .title_right{margin-left:auto}
 body.sv-document-list-v5 .page-title .btn{min-height:42px;padding:9px 12px;font-size:14px}
 body.sv-document-list-v5 .doc-toolbar{margin-bottom:12px!important}
 body.sv-document-list-v5 .doc-toolbar summary{font-size:15px!important;padding:14px!important}
 body.sv-document-list-v5 .x_panel{padding:14px!important}
 body.sv-document-list-v5 .doc-period{display:block!important;margin:0 0 12px!important;padding:12px!important}
 body.sv-document-list-v5 .doc-limit{display:flex!important;align-items:center;flex-wrap:wrap;gap:8px;margin:9px 0 0!important;font-size:13px;font-weight:400}
 body.sv-document-list-v5 .doc-record{padding:12px!important;gap:8px!important;grid-template-columns:minmax(0,1fr) minmax(95px,auto)!important}
 body.sv-document-list-v5 .right_col .doc-record>td{padding:0!important;min-width:0;max-width:100%;white-space:normal!important;overflow-wrap:anywhere}
 body.sv-document-list-v5 .doc-record>.doc-folio{font-size:21px!important;line-height:1.5!important;display:flex;align-items:center;flex-wrap:wrap;gap:5px}
 body.sv-document-list-v5 .doc-record>.doc-folio a{font-size:22px!important;line-height:1.3}
 body.sv-document-list-v5 .doc-record>.doc-folio>.sv-v5-icon{width:25px;height:29px;margin:0}
 body.sv-document-list-v5 .doc-record>.doc-folio .doc-month{font-size:10px!important;margin:0!important;padding:3px 6px!important}
 body.sv-document-list-v5 .doc-record>.doc-cliente{font-size:13px!important;line-height:1.45!important;font-weight:600}
 body.sv-document-list-v5 .doc-record>.doc-total{font-size:21px!important;line-height:1.5!important;white-space:nowrap!important;align-self:start}
 body.sv-document-list-v5 .doc-record>.doc-fecha{font-size:12px!important;line-height:1.5;color:#7a8ca9;padding-left:21px!important;position:relative}
 body.sv-document-list-v5 .doc-fecha:before{content:'▦';position:absolute;left:0;color:#627d9e;font-size:17px}
 body.sv-document-list-v5 .doc-record>.doc-acciones{padding-top:10px!important;border-top:1px solid #e9f0f8;gap:6px!important;align-items:center;flex-wrap:wrap!important}
 body.sv-document-list-v5 .doc-direct{display:flex;gap:6px!important}
 body.sv-document-list-v5 .doc-direct a,body.sv-document-list-v5 .doc-more{width:39px!important;height:42px!important;font-size:17px!important;border-color:#d3e2f5!important;border-radius:9px!important}
 body.sv-document-list-v5 .doc-details{min-height:42px!important;margin-left:auto!important;background:#ecf5ff!important;border-color:#c8dfff!important;color:#0877ff!important;font-size:13px!important;padding:8px 11px!important}
 body.sv-cfdi-editor-v5 .x_panel{padding:14px!important}
 body.sv-cfdi-editor-v5 .sv-editor-row{gap:0 12px}
 body.sv-cfdi-editor-v5 .sv-editor-row>div{grid-column:span 12}
 body.sv-cfdi-editor-v5 .sv-editor-row>.sv-editor-small-field{grid-column:span 6}
 body.sv-cfdi-editor-v5 .right_col .form-control{font-size:16px!important}
 body.sv-cfdi-editor-v5 .sv-editor-heading{font-size:18px;margin-top:12px}
 body.sv-cfdi-editor-v5 .sv-editor-table-wrap{overflow:visible!important;border:0!important;background:transparent}
 body.sv-cfdi-editor-v5 .sv-editor-table,body.sv-cfdi-editor-v5 .sv-editor-table:not(#items){display:block!important;width:100%!important;min-width:0!important;border:0!important;background:transparent!important}
 body.sv-cfdi-editor-v5 .sv-editor-table thead{display:none!important}
 body.sv-cfdi-editor-v5 .sv-editor-table tbody{display:block!important;width:100%}
 body.sv-cfdi-editor-v5 .sv-editor-table tr.sv-editor-concept{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;background:#fff!important;border:1px solid #d8e6f7!important;border-radius:12px;padding:14px!important;margin-bottom:14px!important}
 body.sv-cfdi-editor-v5 .sv-editor-table .sv-editor-concept>td{display:block!important;width:auto!important;min-width:0!important;max-width:100%!important;border:0!important;padding:0!important;text-align:left!important;white-space:normal!important;grid-column:span 1}
 body.sv-cfdi-editor-v5 .sv-editor-table .sv-editor-concept>td{background:transparent!important}
 body.sv-cfdi-editor-v5 .sv-editor-concept .select2-container:not(.input-group>.select2-container){width:100%!important}
 body.sv-cfdi-editor-v5 .sv-editor-concept>td.sv-concept-wide,body.sv-cfdi-editor-v5 .sv-editor-concept>td.sv-concept-actions{grid-column:1/-1}
 body.sv-cfdi-editor-v5 .sv-editor-table .sv-editor-concept>td.sv-concept-actions{display:flex!important;justify-content:space-between;align-items:center}
 body.sv-cfdi-editor-v5 .sv-concept-caption{display:block;color:#174576;font-size:15px}
 body.sv-cfdi-editor-v5 .sv-concept-actions .btn{min-height:38px!important;min-width:38px!important;padding:8px!important}
 body.sv-cfdi-editor-v5 .sv-field-label{display:block!important;font-size:13px;font-weight:600;color:#234567;margin:0 0 6px;line-height:1.4}
 body.sv-cfdi-editor-v5 .sv-editor-concept>td.sv-concept-total{grid-column:1/-1;text-align:right!important;padding-top:10px!important;border-top:1px solid #e5edf7!important;font-size:20px;font-weight:700;color:#0b2852}
 body.sv-cfdi-editor-v5 .sv-editor-concept .form-group .checkbox{display:flex;flex-wrap:wrap;gap:7px;font-size:12px}
 body.sv-cfdi-editor-v5 .sv-editor-add{display:block!important;border:0!important;margin:6px 0 16px!important}
 body.sv-cfdi-editor-v5 .sv-editor-add>td{display:none!important}
 body.sv-cfdi-editor-v5 .sv-editor-add>td:first-child{display:block!important;padding:0!important;border:0!important;min-width:0!important}
 body.sv-cfdi-editor-v5 .sv-editor-add .btn{width:100%;text-align:center}
 body.sv-cfdi-editor-v5 .sv-editor-summary{display:grid!important;grid-template-columns:minmax(0,1fr) auto;background:#f1f7fe!important;border:0!important}
 body.sv-cfdi-editor-v5 .sv-editor-summary>td{display:block!important;min-width:0!important;width:auto!important;border:0!important;padding:9px 12px!important}
 body.sv-cfdi-editor-v5 .sv-editor-summary>td:empty{display:none!important}
 body.sv-cfdi-editor-v5 .sv-editor-summary>.sv-summary-note{grid-column:1/-1;padding:0 0 16px!important;background:#f1f7fd}
 body.sv-cfdi-editor-v5 .sv-editor-summary:last-child{border-radius:0 0 10px 10px;font-size:19px}
 body.sv-cfdi-editor-v5 .sv-editor-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:100%}
 body.sv-cfdi-editor-v5 .sv-editor-actions>.btn{width:100%;white-space:normal;font-size:14px!important;line-height:1.4;display:flex;align-items:center;justify-content:center}
 body.sv-cfdi-editor-v5 #myTab.sv-editor-tabs>li{flex-basis:125px}
 body.sv-cfdi-editor-v5 .select2-dropdown{max-width:calc(100vw - 24px)!important}
 body.sv-app-design .cp31-page input:not([type=checkbox]):not([type=radio]):not([type=hidden]),body.sv-app-design .cp31-page select,body.sv-app-design .cp31-page textarea{font-size:16px}
}
/* Preserve readable columns when the sidebar reduces the desktop workspace. */
@media(min-width:768px){
 body.sv-app-design.sv-document-list-v5 .right_col .table-dropdown{width:100%;max-width:100%;overflow-x:auto!important;position:relative}
 body.sv-app-design.sv-document-list-v5 .right_col .table-dropdown>table{min-width:900px!important;width:100%!important;table-layout:auto!important}
 body.sv-app-design.sv-document-list-v5 .right_col .table-dropdown th,
 body.sv-app-design.sv-document-list-v5 .right_col .table-dropdown td{min-width:95px!important;word-break:normal!important;overflow-wrap:normal!important;white-space:normal!important}
 body.sv-app-design.sv-document-list-v5 .right_col .table-dropdown th{white-space:nowrap!important}
 body.sv-app-design.sv-document-list-v5 .right_col .table-dropdown .doc-folio{min-width:110px!important}
 body.sv-app-design.sv-document-list-v5 .right_col .table-dropdown .doc-fecha{min-width:135px!important}
 body.sv-app-design.sv-document-list-v5 .right_col .table-dropdown .doc-cliente{min-width:200px!important}
 body.sv-app-design.sv-document-list-v5 .right_col .table-dropdown .doc-total{min-width:115px!important;white-space:nowrap!important}
 body.sv-app-design.sv-document-list-v5 .right_col .table-dropdown .doc-estatus{min-width:110px!important;white-space:nowrap!important}
 body.sv-app-design.sv-document-list-v5 .right_col .table-dropdown .doc-acciones{min-width:240px!important;white-space:nowrap!important}
}

/* document-actions-v7.css */
body.sv-document-actions-v7 .doc-details{display:none!important}
body.sv-document-actions-v7 .doc-direct{display:flex!important;flex-wrap:wrap!important;gap:6px!important;min-width:0;max-width:100%}
body.sv-document-actions-v7 .doc-direct a{display:inline-flex!important;align-items:center;justify-content:center;width:40px!important;height:42px!important;min-width:40px;flex:0 0 40px;border:1px solid #d3e2f5;border-radius:9px;color:#155699;background:#fff;text-decoration:none}
body.sv-document-actions-v7 .doc-direct a:hover,body.sv-document-actions-v7 .doc-direct a:focus-visible{background:#edf6ff;border-color:#0877ff;outline:2px solid #9fcdff;outline-offset:1px}
body.sv-document-actions-v7 .doc-direct .sv-delete-draft{color:#c23d55;border-color:#efd2d9;background:#fff8fa}
body.sv-document-actions-v7 .doc-acciones{white-space:normal!important}
body.sv-document-actions-v7 .doc-more[hidden]{display:none!important}
body.sv-document-actions-v7 .doc-extra-row .doc-action-list{display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:0;list-style:none}
body.sv-document-actions-v7 .doc-extra-row .doc-action-list a{min-height:42px;display:inline-flex;align-items:center;gap:5px}
body.sv-cfdi-editor-v5 .sv-editor-heading{margin-top:14px;margin-bottom:10px;padding-top:14px}
body.sv-cfdi-editor-v5 .sv-editor-row .form-group{margin-bottom:14px!important}
body.sv-cfdi-editor-v5 .sv-editor-tabs-row{margin-top:4px!important}
body.sv-cfdi-editor-v5 #myTab.sv-editor-tabs{margin-bottom:12px!important}
@media(max-width:767px){
 body.sv-document-actions-v7 .page-title{margin-bottom:12px!important}
 body.sv-document-actions-v7 .doc-toolbar{margin-bottom:9px!important}
 body.sv-document-actions-v7 .x_panel{padding:12px!important}
 body.sv-document-actions-v7 .x_title{margin-bottom:10px!important;padding-bottom:8px!important}
 body.sv-document-actions-v7 .doc-period{padding:10px!important;margin-bottom:10px!important}
 body.sv-document-actions-v7 .doc-record{margin-bottom:10px!important;gap:7px!important}
 body.sv-document-actions-v7 .doc-record>.doc-acciones{display:flex!important;align-items:flex-start;gap:6px!important;padding-top:9px!important;grid-column:1/-1}
 body.sv-document-actions-v7 .doc-direct{flex:1 1 0;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px!important}
 body.sv-document-actions-v7 .doc-direct a,body.sv-document-actions-v7 .doc-direct .doc-more{width:100%!important;min-width:0;max-width:100%;height:44px!important;margin:0!important}
 body.sv-document-actions-v7 .doc-more{position:static!important;align-self:start;font-size:20px}
 body.sv-cfdi-editor-v5 .sv-editor-table .sv-editor-concept{gap:10px!important;padding:12px!important;margin-bottom:12px!important}
}

/* Columnas opcionales: respetar seleccion tambien en tarjetas moviles. */
@media(max-width:767px){
body.documentos-ui .table-dropdown tr.doc-record>td:not(.doc-hidden):not(.doc-folio):not(.doc-fecha):not(.doc-cliente):not(.doc-total):not(.doc-moneda):not(.doc-estatus):not(.doc-acciones):not(.doc-select){display:block!important;grid-column:1/-1;grid-row:auto;text-align:left!important;min-width:0;overflow-wrap:anywhere;padding:8px 0!important;border-top:1px solid #e6edf6!important;font-size:14px!important}
body.documentos-ui .table-dropdown tr.doc-record>td:not(.doc-hidden):not(.doc-folio):not(.doc-fecha):not(.doc-cliente):not(.doc-total):not(.doc-moneda):not(.doc-estatus):not(.doc-acciones):not(.doc-select)::before{content:attr(data-doc-label) ": ";font-weight:600;color:#526987}
body.documentos-ui .table-dropdown tr.doc-record>td.doc-hidden{display:none!important}
}
