body[data-route="materiales"] .records-table td.main-cell{min-width:220px}
@media(max-width:1050px){.material-sector-menu{grid-template-columns:repeat(3,1fr)}.material-sector-btn{border-bottom:1px solid #edf2f8}.material-tabs{display:flex!important;overflow-x:auto}.material-tab{min-width:150px!important}.materials-toolbar{grid-template-columns:1fr!important}}

/* 4.16.366 · Materiales Online = jerarquía real de Materiales Desktop */
.material-sector-context{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid #cddff0;border-radius:7px;margin:-2px 0 10px;padding:9px 12px;color:#123b6d}
.material-sector-context-icon{width:29px;height:29px;border-radius:50%;display:grid;place-items:center;background:#1478ee;color:#fff;flex:0 0 auto}
.material-sector-context>div:last-child{display:flex;flex-direction:column;gap:1px}.material-sector-context strong{font:700 11px "Segoe UI",Arial}.material-sector-context span{font:400 9px "Segoe UI",Arial;color:#64809d}
#record-modal.material-mode .record-dialog{width:min(1540px,calc(100vw - 16px));height:calc(100vh - 16px);max-height:none;margin:8px auto;border-radius:5px}
#record-modal.material-mode #record-form{height:100%;display:flex;flex-direction:column;min-height:0}
#record-modal.material-mode #record-fields{flex:1;min-height:0;overflow:auto;padding:8px 12px 12px}
#record-modal.material-mode .material-section{margin-bottom:9px;border:1px solid #cfe0ef;background:#fff;border-radius:6px;overflow:hidden}
#record-modal.material-mode .material-section>.client-section-title{background:#eaf4fe;padding:8px 10px;margin:0;border:0;color:#123b6d;font:700 10px "Segoe UI",Arial}
#record-modal.material-mode .material-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:10px}
#record-modal.material-mode .material-general-stock{grid-template-columns:repeat(5,minmax(0,1fr))}
#record-modal.material-mode .material-price-fields{grid-template-columns:repeat(7,minmax(0,1fr))}
#record-modal.material-mode .field-group{display:flex;flex-direction:column;gap:4px;min-width:0}
#record-modal.material-mode .field-group.wide{grid-column:1/-1}
#record-modal.material-mode .field-group>span{font:400 9px "Segoe UI",Arial;color:#4e6884;text-transform:uppercase}
#record-modal.material-mode .field-group input,#record-modal.material-mode .field-group select,#record-modal.material-mode .field-group textarea{min-height:34px;border:1px solid #bdd5eb;border-radius:5px;background:#fff;padding:6px 9px;font:600 10px "Segoe UI",Arial;color:#17385e;box-sizing:border-box;width:100%}
#record-modal.material-mode .field-group textarea{min-height:55px;resize:vertical}
#record-modal.material-mode .material-price-table{margin:0 10px 10px;width:calc(100% - 20px)}
#record-modal.material-mode .material-image-tools{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px;align-items:end;padding:10px}
#record-modal.material-mode .material-image-preview{min-height:250px;border-top:1px solid #dbe8f4;background:#f8fbfe;display:grid;place-items:center;padding:20px}
#record-modal.material-mode .material-image-preview>div{display:flex;flex-direction:column;align-items:center;gap:8px;max-width:760px;text-align:center;color:#6c839b}
#record-modal.material-mode .material-image-preview strong{font:700 12px "Segoe UI",Arial;color:#17385e}.material-image-preview span{font:400 9px "Segoe UI",Arial;word-break:break-all}
#record-modal.material-mode .material-related-head{padding:8px 10px;background:#eef6fd;display:flex;justify-content:space-between;align-items:center;border-top:1px solid #d5e4f2}
#record-modal.material-mode .material-related-head strong{font:700 9px "Segoe UI",Arial;color:#17385e}.material-related-head span{font:400 9px "Segoe UI",Arial;color:#718aa4}
@media(max-width:1100px){#record-modal.material-mode .material-fields,#record-modal.material-mode .material-general-stock,#record-modal.material-mode .material-price-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* 4.16.367 · menú de sectores persistente y cabecera limpia */
#material-sector-menu.hidden,#material-sector-context.hidden{display:none!important}
body:not([data-route="materiales"]) #material-sector-menu,body:not([data-route="materiales"]) #material-sector-context{display:none!important}
body[data-route="materiales"] #material-sector-menu:not(.hidden){display:grid}

/* 4.16.370 · Materiales: menú de sectores visible de forma determinista */
#module-kpis + #material-sector-menu{display:grid!important;margin-top:8px!important;margin-bottom:8px!important}
#material-sector-menu.hidden{display:none!important}
#material-sector-context{display:flex!important;margin-bottom:8px!important}
#material-sector-context.hidden{display:none!important}

/* 4.16.380 · cabecera operativa: avisos, ayuda y cuenta */
.user-button{border:0;background:transparent;font:inherit;color:inherit;cursor:pointer;text-align:left;padding:4px 6px;border-radius:7px}.user-button:hover,.icon-btn:hover{background:#eef5fc}.icon-btn{cursor:pointer}.icon-btn em:empty{display:none}
.top-modal{position:fixed;inset:0;z-index:12000;background:rgba(28,47,70,.42);display:flex;align-items:flex-start;justify-content:flex-end;padding:70px 18px 18px}.top-modal.hidden{display:none}.top-modal-dialog{width:min(520px,calc(100vw - 28px));max-height:calc(100vh - 90px);overflow:auto;background:#fff;border:1px solid #cbdced;border-radius:10px;box-shadow:0 18px 55px rgba(23,56,94,.22)}.top-modal-head{display:flex;align-items:center;justify-content:space-between;padding:15px 18px;border-bottom:1px solid #dbe7f2}.top-modal-head small{display:block;color:#1478ee;font:700 9px "Segoe UI",Arial}.top-modal-head h2{margin:2px 0 0;color:#17385e;font:700 18px "Segoe UI",Arial}.top-modal-head button{border:0;background:transparent;color:#49627d;font-size:24px;cursor:pointer}.top-modal-body{padding:16px 18px;color:#17385e;font:400 11px "Segoe UI",Arial}.top-alert-item{display:grid;grid-template-columns:32px 1fr;gap:10px;padding:11px 0;border-bottom:1px solid #edf2f7}.top-alert-item:last-child{border-bottom:0}.top-alert-icon{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#fff0d8;color:#e68b00;font-weight:700}.top-alert-item strong{display:block;font-size:11px}.top-alert-item small{display:block;margin-top:3px;color:#6f849a}.account-form{display:grid;gap:12px}.account-form label{display:grid;gap:5px;color:#49627d;font:600 9px "Segoe UI",Arial;text-transform:uppercase}.account-form input{height:36px;border:1px solid #bcd4eb;border-radius:5px;padding:0 10px;color:#17385e;font:600 10px "Segoe UI",Arial}.account-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:3px}.account-message{min-height:16px;color:#0b9848;font:600 10px "Segoe UI",Arial}.account-message.error{color:#e53250}.account-separator{height:1px;background:#e3edf6;margin:7px 0}.help-block{padding:10px 0;border-bottom:1px solid #edf2f7}.help-block:last-child{border-bottom:0}.help-block strong{display:block;margin-bottom:4px;color:#17385e}.help-block span{color:#607894;line-height:1.45}.top-account-summary{display:flex;align-items:center;gap:11px;padding:2px 0 12px}.top-account-summary .avatar{width:42px;height:42px}.btn.danger-soft{border:1px solid #f0bcc5;background:#fff5f6;color:#d92f49}

/* 4.16.380 - Cabecera operativa: avisos, ayuda y cuenta */
.topbar .icon-btn,.topbar .user-button{cursor:pointer}
.topbar .icon-btn:hover,.topbar .user-button:hover{background:#f3f7fc}
.top-action-panel{position:fixed;z-index:250;width:min(390px,calc(100vw - 24px));max-height:calc(100vh - 90px);overflow:auto;background:#fff;border:1px solid #cbd9e9;border-radius:10px;box-shadow:0 18px 55px rgba(10,38,78,.22)}
.top-action-panel.hidden{display:none!important}
.top-panel-head{display:flex;align-items:center;gap:10px;padding:13px 14px;border-bottom:1px solid #dbe5f0;background:#f8fbff}
.top-panel-head>div:first-child:not(.account-panel-avatar){flex:1}.top-panel-head small{display:block;color:#0878ec;font-size:10px;font-weight:700}.top-panel-head strong{display:block;color:#062b5c;font-size:16px}.top-panel-head span{display:block;color:#657c9a;font-size:11px;margin-top:2px}.top-panel-head>button{margin-left:auto;border:0;background:transparent;color:#496786;font-size:21px;cursor:pointer}
.top-panel-body{padding:13px 14px}.top-alert-list{padding:0}.top-alert-item{display:grid;grid-template-columns:30px 1fr;gap:10px;align-items:center;padding:12px 14px;border-bottom:1px solid #edf2f7}.top-alert-item:last-child{border-bottom:0}.top-alert-item b{display:block;color:#0c315e;font-size:12px}.top-alert-item small{display:block;color:#687f9d;margin-top:3px}.top-alert-symbol{width:25px;height:25px;border-radius:50%;display:grid;place-items:center;background:#fff0d1;color:#c87800;font-weight:800}.top-alert-symbol.danger{background:#ffe4e8;color:#db2f46}.top-alert-symbol.info{background:#e6f1ff;color:#0878ec}.top-panel-empty{padding:18px;color:#16824c;text-align:center}
.help-body p{margin:0 0 12px;color:#355273;line-height:1.45}.help-shortcuts{display:grid;gap:7px;margin:10px 0 14px}.help-shortcuts span{padding:8px 9px;border:1px solid #dce7f2;border-radius:7px;background:#f8fbff;color:#264666}.help-shortcuts kbd{border:1px solid #bdcee0;border-bottom-width:2px;border-radius:4px;background:#fff;padding:1px 5px;font:600 10px "Segoe UI"}.help-note{font-size:11px;color:#647a97!important}
.account-panel-avatar{width:42px;height:42px;border-radius:50%;background:#0878ec;color:#fff;display:grid;place-items:center;font-weight:700}.account-head>div:nth-child(2){flex:1}.account-form{display:grid;gap:10px}.account-form>strong{color:#0a315f;font-size:13px}.account-form label{display:grid;gap:4px;color:#496783;font-size:10px;font-weight:600}.account-form input{height:36px;border:1px solid #bfd2e6;border-radius:6px;padding:0 10px;color:#0a315f;font:600 13px "Segoe UI";outline:none}.account-form input:focus{border-color:#0878ec;box-shadow:0 0 0 2px rgba(8,120,236,.09)}.top-panel-save{height:36px;border:1px solid #76c997;border-radius:6px;background:#effbf4;color:#098644;font-weight:700;cursor:pointer}.account-divider{height:1px;background:#dce6f0;margin:0 14px}.account-message{min-height:16px}.account-message.ok{color:#078647}.account-message.error{color:#d62f46}.account-logout{width:calc(100% - 28px);height:36px;margin:0 14px 14px;border:1px solid #ef9aa6;border-radius:6px;background:#fff5f6;color:#c62b42;font-weight:700;cursor:pointer}

/* GestorProject Online · Productos 4.16.384 */
.product-sector-menu{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));min-height:58px;margin:8px 0 10px;background:#fff;border:1px solid #cddff0;border-radius:9px;overflow:hidden}
.product-sector-btn{position:relative;min-width:0;border:0;border-right:1px solid #edf2f8;background:#fff;color:#123b6d;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:8px 4px;cursor:pointer;font:600 9px "Segoe UI",Arial}
.product-sector-btn:last-child{border-right:0}.product-sector-btn b{display:flex}.product-sector-btn small{position:absolute;right:8px;top:6px;color:#8aa0b7;font:600 8px "Segoe UI",Arial}.product-sector-btn.active{background:#edf6ff;color:#0873ef;box-shadow:inset 0 -3px 0 #1478ee}.product-sector-btn:hover{background:#f6faff}
body:not([data-route="productos"]) #product-sector-menu{display:none!important}
#record-modal.product-mode{position:fixed;inset:0;padding:0;background:#f4f8fc;z-index:1200}
#record-modal.product-mode .record-dialog.product-dialog{width:calc(100vw - 16px);height:calc(100vh - 16px);max-width:none;max-height:none;margin:8px auto;border-radius:5px;border:1px solid #9fb8d0;box-shadow:none;display:flex;flex-direction:column;background:#f4f8fc}
#record-modal.product-mode .record-dialog-head{height:66px;min-height:66px;padding:10px 18px;background:#fff;border-bottom:1px solid #d7e5f4}
#record-modal.product-mode #record-form{display:flex;flex-direction:column;min-height:0;flex:1;overflow:hidden;padding:0 14px 12px}
#record-modal.product-mode #record-fields{display:flex;flex-direction:column;gap:8px;flex:1;min-height:0;overflow:auto;padding:8px 0;background:#f4f8fc}
#record-modal.product-mode .record-dialog-actions{position:static;display:flex;justify-content:flex-end;padding:9px 0 0;background:#f4f8fc;border-top:1px solid #d7e5f4}
#record-modal.product-mode #product-hero{margin-top:8px;background:#fff;border:1px solid #cfe0f1;border-radius:6px;overflow:hidden}
.product-hero{min-height:62px;display:flex;align-items:center;gap:12px;padding:8px 12px}.product-avatar{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;color:#fff;font:700 14px "Segoe UI",Arial}.product-identity{display:flex;flex-direction:column;gap:3px}.product-identity strong{font:700 14px "Segoe UI",Arial;color:#123b6d}.product-identity small{font:400 9px "Segoe UI",Arial;color:#6d8298}.product-sector-chip{margin-left:auto;background:#edf6ff;border:1px solid #c8e0f8;border-radius:14px;padding:5px 10px;color:#1478ee;font:700 9px "Segoe UI",Arial;text-transform:uppercase}
.product-section{border:1px solid #cfe0ef;background:#fff;border-radius:6px;overflow:hidden}.product-section>.client-section-title{background:#eaf4fe;padding:8px 10px;margin:0;border:0;color:#123b6d;font:700 10px "Segoe UI",Arial}.product-fields{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;padding:10px}.product-fields .field-group.wide{grid-column:span 3}.product-fields .field-group{display:flex;flex-direction:column;gap:4px;min-width:0}.product-fields .field-group>span{font:400 9px "Segoe UI",Arial;color:#4e6884;text-transform:uppercase}.product-fields input,.product-fields select{min-height:34px;border:1px solid #bdd5eb;border-radius:5px;background:#fff;padding:6px 9px;font:600 10px "Segoe UI",Arial;color:#17385e;box-sizing:border-box;width:100%}.product-fields input[readonly]{background:#f5f8fb;color:#627b94}
.product-bom{flex:1;min-height:220px}.product-bom-head,.product-bom-row{display:grid;grid-template-columns:3fr 1.2fr .7fr .8fr 1fr 1fr;gap:8px;align-items:center;padding:8px 10px}.product-bom-head{background:#f0f6fc;color:#4c6680;font:600 9px "Segoe UI",Arial;text-transform:uppercase}.product-bom-row{border-top:1px solid #e4edf6;color:#17385e;font:600 10px "Segoe UI",Arial}.product-bom-row strong{text-align:right}.product-bom-empty{min-height:110px;display:grid;place-items:center;color:#7890a8;font:600 10px "Segoe UI",Arial}
@media(max-width:1200px){.product-sector-menu{grid-template-columns:repeat(4,1fr)}.product-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.product-fields .field-group.wide{grid-column:1/-1}}


/* Maquinaria Online · jerarquía visual Desktop */
.machine-sector-menu{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));min-height:58px;margin:8px 0 10px;background:#fff;border:1px solid #cddff0;border-radius:9px;overflow:hidden}
.machine-sector-btn{position:relative;border:0;border-right:1px solid #e3edf7;background:#fff;color:#113b70;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;cursor:pointer;padding:7px 4px;font:600 11px "Segoe UI"}
.machine-sector-btn:last-child{border-right:0}.machine-sector-btn b{display:flex}.machine-sector-btn small{position:absolute;right:8px;top:5px;color:#8aa0b7;font-size:9px}.machine-sector-btn.active{background:#f2f7ff;color:#1477f2;box-shadow:inset 0 -3px #1477f2}
body:not([data-route="maquinaria"]) #machine-sector-menu{display:none!important}
#record-modal.machine-mode{position:fixed;inset:0;padding:0;background:#f4f8fc;z-index:1200}
#record-modal.machine-mode .record-dialog.machine-dialog{width:calc(100vw - 16px);height:calc(100vh - 16px);max-width:none;max-height:none;margin:8px auto;border-radius:5px;border:1px solid #9fb8d0;box-shadow:none;display:flex;flex-direction:column;background:#f4f8fc}
#record-modal.machine-mode .record-dialog-head{height:66px;min-height:66px;padding:10px 18px;background:#fff;border-bottom:1px solid #d7e5f4}
#record-modal.machine-mode #record-form{display:flex;flex-direction:column;min-height:0;flex:1;overflow:hidden;padding:0 14px 12px}
#record-modal.machine-mode #record-fields{display:flex;flex-direction:column;gap:8px;flex:1;min-height:0;overflow:auto;padding:0;background:#f4f8fc}
#record-modal.machine-mode #machine-hero{margin-top:8px;background:#fff;border:1px solid #cfe0f1;border-radius:6px;overflow:hidden}
.machine-tabs{display:grid;grid-template-columns:1fr 1fr;background:#fff;border-bottom:1px solid #d5e4f3;margin-top:7px}.machine-tabs button{border:0;background:#fff;color:#123b73;height:54px;display:flex;align-items:center;justify-content:center;gap:7px;cursor:pointer;border-bottom:3px solid transparent;font-weight:600}.machine-tabs button.active{color:#1477f2;background:#f2f7ff;border-bottom-color:#1477f2}
#machine-tab-content{display:flex;flex-direction:column;gap:9px;padding:8px 0 12px;overflow:auto}.machine-card{background:#fff;border:1px solid #cfe0f1;border-radius:4px;overflow:hidden}.machine-fields{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;padding:10px}.machine-fields .field-group.wide{grid-column:1/-1}.machine-cons-head,.machine-cons-row{display:grid;grid-template-columns:2fr 1fr 1.2fr .8fr .8fr .8fr 1fr;gap:8px;align-items:center;padding:10px 12px}.machine-cons-head{background:#edf5fd;color:#315375;font-size:10px}.machine-cons-row{border-top:1px solid #e4edf6;font-size:11px}.machine-cons-row .ok{color:#139a4a}.machine-cons-row .low{color:#d68910}
#record-modal.machine-mode .record-dialog-actions{position:static;display:flex;justify-content:flex-end;padding:9px 0 0;background:#f4f8fc;border-top:1px solid #d7e5f4}
@media(max-width:1200px){.machine-sector-menu{grid-template-columns:repeat(3,1fr)}.machine-fields{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* 4.16.402 · Órdenes de trabajo Online alineadas con la jerarquía Desktop */
body[data-route="ordenes"] .module-head{margin-bottom:10px}
body[data-route="ordenes"] .module-head h1{font-size:22px;color:#0b3265;margin-bottom:2px}
body[data-route="ordenes"] .module-head .breadcrumb{font-size:9px;color:#7890aa}
body[data-route="ordenes"] .module-head p{font-size:10px;color:#617b9a;margin-top:2px}
body[data-route="ordenes"] .module-kpis{grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-bottom:10px}
body[data-route="ordenes"] .module-mini-kpi{min-height:88px;padding:12px 13px;border-radius:12px}
body[data-route="ordenes"] .module-kpi-icon{width:44px;height:44px}
body[data-route="ordenes"] .module-mini-kpi strong{font-size:22px}
body[data-route="ordenes"] .module-mini-kpi small{font-size:10px}
.order-sector-menu{display:grid;grid-template-columns:repeat(6,1fr);background:#fff;border:1px solid #e4edf7;border-radius:2px;margin:0 0 10px;min-height:58px;overflow:hidden}
.order-sector-btn{position:relative;border:0;background:#fff;color:#0b356c;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;cursor:pointer;font:inherit;font-size:10px;font-weight:700;padding:7px 6px 8px}
.order-sector-btn b{height:23px;display:grid;place-items:center;color:#126ff0}.order-sector-btn:nth-child(2) b{color:#0577ff}.order-sector-btn:nth-child(3) b{color:#0eb45d}.order-sector-btn:nth-child(4) b{color:#f18d00}.order-sector-btn:nth-child(5) b{color:#08a3bd}.order-sector-btn:nth-child(6) b{color:#6554e8}
.order-sector-btn:after{content:"";position:absolute;left:16%;right:16%;bottom:0;height:3px;background:transparent}
.order-sector-btn.active{background:#f2f7ff;color:#0871ee}.order-sector-btn.active:after{background:#1477f2}
body[data-route="ordenes"] .module-card{border:0;background:#fff;box-shadow:none;padding-top:0}
.order-list-profile{min-height:55px;display:flex;align-items:center;gap:10px;padding:8px 12px;border-bottom:1px solid #e6eef7;background:#fff}
.order-profile-icon{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#1676ee;color:#fff;flex:0 0 auto}
.order-list-profile strong{display:block;font-size:12px;color:#0b3265}.order-list-profile span{display:block;font-size:8px;color:#7186a0;margin-top:2px}.order-list-profile button{margin-left:auto;border:1px solid #b8d4f3;background:#fff;color:#0872ee;border-radius:4px;font-size:9px;font-weight:700;padding:7px 10px;cursor:pointer}
body[data-route="ordenes"] .module-toolbar.orders-toolbar{display:grid;grid-template-columns:170px minmax(260px,1fr) auto;gap:10px;align-items:end;padding:10px 12px;border-bottom:0;background:#fff}
body[data-route="ordenes"] .orders-toolbar .client-search-label{min-width:0}
body[data-route="ordenes"] .orders-toolbar .client-toolbar-actions{display:flex;gap:7px;justify-content:flex-end;flex-wrap:nowrap}
body[data-route="ordenes"] .orders-toolbar .wf-action-btn{height:34px;min-width:86px;padding:0 10px;border-radius:2px;font-size:9px}
body[data-route="ordenes"] .records-wrap{border-top:1px solid #e2ebf5}
body[data-route="ordenes"] .records-table{table-layout:fixed}
body[data-route="ordenes"] .records-table th{background:#edf4fb;color:#173d6d;font-size:8px;height:34px;padding:8px 9px}
body[data-route="ordenes"] .records-table th:nth-child(1){width:10%}
body[data-route="ordenes"] .records-table th:nth-child(2){width:17%}
body[data-route="ordenes"] .records-table th:nth-child(3){width:15%}
body[data-route="ordenes"] .records-table th:nth-child(4){width:17%}
body[data-route="ordenes"] .records-table th:nth-child(5){width:12%}
body[data-route="ordenes"] .records-table th:nth-child(6){width:11%}
body[data-route="ordenes"] .records-table th:nth-child(7){width:10%}
body[data-route="ordenes"] .records-table th:nth-child(8){width:108px}
body[data-route="ordenes"] .records-table td{height:54px;padding:7px 9px;font-size:9px;color:#123761;border-bottom:1px solid #edf2f8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body[data-route="ordenes"] .records-table tbody tr:nth-child(even){background:#f7faff}
body[data-route="ordenes"] .records-table tbody tr.selected{background:#eaf3ff!important;box-shadow:inset 3px 0 #1477f2}
.order-title-cell{display:flex;align-items:center;gap:8px;min-width:0}.order-title-cell strong{font-size:9px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.order-avatar{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#16a3a0;color:#fff;font-size:8px;font-weight:800;flex:0 0 auto}
body[data-route="ordenes"] tbody tr:nth-child(3n+2) .order-avatar{background:#ff7a16}body[data-route="ordenes"] tbody tr:nth-child(3n+3) .order-avatar{background:#7245e9}
.order-badge{display:inline-flex;align-items:center;gap:6px;border-radius:8px;padding:5px 9px;font-size:8px;font-weight:600;line-height:1;background:#e9f2ff;color:#1471e8}.order-badge i{width:4px;height:4px;border-radius:50%;background:currentColor}
.order-badge.pending{background:#fff0d8;color:#df8a00}.order-badge.production{background:#e4f0ff;color:#1475ee}.order-badge.delivery,.order-badge.done{background:#def7ef;color:#078c73}.order-badge.manipulado{background:#F1ECFF;color:#7D4CE6}.order-badge.entregado{background:#E2F7F2;color:#0A8F78}.order-badge.urgent{background:#e82238;color:#fff}.order-badge.high{background:#ffe7c5;color:#d97b00}.order-badge.low{background:#edf2f7;color:#657b95}.order-badge.normal{background:#e9f2ff;color:#1471e8}
body[data-route="ordenes"] .client-row-actions{gap:5px;justify-content:center}body[data-route="ordenes"] .client-row-actions button{width:30px;min-width:30px;height:36px;padding:3px 2px;border:1px solid #bed4ee;background:#fff;color:#0874ed}body[data-route="ordenes"] .client-row-actions button small{font-size:7px;margin-top:2px}body[data-route="ordenes"] .client-row-actions .row-delete{color:#e92f46}
.order-pagination{display:flex;justify-content:space-between;align-items:center;padding:16px 2px 2px;color:#0d3c73;font-size:8px;font-weight:600}.order-pagination>div{display:flex;align-items:center;gap:5px}.order-pagination button{width:29px;height:29px;border:0;border-radius:6px;background:#f2f6fb;color:#9aabc0;cursor:pointer}.order-pagination b{width:29px;height:29px;border-radius:6px;background:#1477f2;color:#fff;display:grid;place-items:center}.order-pagination select{height:31px;border:1px solid #c9dced;border-radius:5px;background:#fff;color:#153d70;font-size:9px;padding:0 8px;margin-left:8px}
@media(max-width:1200px){body[data-route="ordenes"] .module-kpis{grid-template-columns:repeat(3,1fr)}body[data-route="ordenes"] .module-toolbar.orders-toolbar{grid-template-columns:150px 1fr}.orders-toolbar .client-toolbar-actions{grid-column:1/-1}.order-sector-menu{grid-template-columns:repeat(3,1fr)}}
@media(max-width:800px){body[data-route="ordenes"] .module-kpis{grid-template-columns:repeat(2,1fr)}.order-sector-menu{grid-template-columns:repeat(2,1fr)}body[data-route="ordenes"] .module-toolbar.orders-toolbar{grid-template-columns:1fr}.orders-toolbar .client-toolbar-actions{overflow-x:auto;justify-content:flex-start}.order-pagination{gap:10px;align-items:flex-start;flex-direction:column}}


/* 4.16.419 · Base industrial Online */
body[data-route="base_industrial"] .module-view{padding-bottom:20px}
body[data-route="base_industrial"] .module-head{margin-bottom:12px}
body[data-route="base_industrial"] .module-kpis{
  display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-bottom:10px
}
.industrial-kpi{
  min-height:82px;background:#fff;border:1px solid #dce6f2;border-radius:12px;
  display:flex;align-items:center;gap:10px;padding:12px;box-shadow:0 1px 1px rgba(21,53,89,.02)
}
.industrial-kpi-icon{
  width:42px;height:42px;border-radius:50%;display:grid;place-items:center;color:#fff;
  font-weight:800;font-size:18px;flex:0 0 42px
}
.industrial-kpi.purple .industrial-kpi-icon{background:#6c35f4}
.industrial-kpi.blue .industrial-kpi-icon{background:#1677ee}
.industrial-kpi.cyan .industrial-kpi-icon{background:#06a6b8}
.industrial-kpi.orange .industrial-kpi-icon{background:#f39a0a}
.industrial-kpi.red .industrial-kpi-icon{background:#ff3855}
.industrial-kpi.green .industrial-kpi-icon{background:#10af5a}
.industrial-kpi div{display:flex;flex-direction:column;min-width:0}
.industrial-kpi small{font-size:11px;color:#36577e}
.industrial-kpi b{font-size:21px;line-height:1.05;color:#0b2f61}
.industrial-kpi em{font-size:9px;color:#7990aa;font-style:normal;margin-top:3px}
.industrial-online-tabs{
  display:grid;grid-template-columns:repeat(11,minmax(0,1fr));background:#fff;
  border:1px solid #dce6f2;border-radius:10px 10px 0 0;overflow:hidden;margin-bottom:10px
}
.industrial-online-tabs button{
  border:0;border-right:1px solid #edf2f8;background:#fff;min-height:58px;
  color:#173b69;display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:2px;cursor:pointer;font-family:inherit
}
.industrial-online-tabs button:last-child{border-right:0}
.industrial-online-tabs button>span{font-size:17px;color:#1776ee;font-weight:800}
.industrial-online-tabs button small{font-size:8px;font-weight:700}
.industrial-online-tabs button.active{background:#f1f6ff;box-shadow:inset 0 -3px #1776ee;color:#1269d5}
.industrial-module-card .module-toolbar{border-radius:10px 10px 0 0}
.industrial-module-card .records-wrap{min-height:440px}
.industrial-avatar-cell{width:44px}
.industrial-avatar{
  display:inline-grid;width:30px;height:30px;border-radius:50%;place-items:center;color:#fff;
  font-weight:800;font-size:11px
}
.industrial-avatar.a0{background:#1177e8}.industrial-avatar.a1{background:#0ca6a6}
.industrial-avatar.a2{background:#7546ef}.industrial-avatar.a3{background:#f28a0b}
.industrial-avatar.a4{background:#e94458}.industrial-avatar.a5{background:#12a957}
.industrial-readonly td{font-size:12px}
@media(max-width:1200px){
  body[data-route="base_industrial"] .module-kpis{grid-template-columns:repeat(3,1fr)}
  .industrial-online-tabs{grid-template-columns:repeat(6,1fr)}
}


/* 4.16.421 · Navegación industrial más legible y dinámica */
.industrial-online-tabs{
  display:flex !important;
  grid-template-columns:none !important;
  align-items:stretch;
  overflow-x:auto;
  overflow-y:hidden;
  scrollbar-width:thin;
  gap:0;
  min-height:76px;
  border-radius:12px;
  border:1px solid #d9e5f2;
  background:#fff;
  box-shadow:0 2px 8px rgba(21,58,99,.04);
}
.industrial-online-tabs button{
  flex:1 0 102px;
  min-width:102px;
  min-height:74px;
  padding:8px 7px 7px;
  border:0;
  border-right:1px solid #e6eef7;
  position:relative;
  background:#fff;
  color:#25486f;
  transition:background .16s ease, transform .16s ease, box-shadow .16s ease;
}
.industrial-online-tabs button:hover{
  background:color-mix(in srgb, var(--industrial-accent) 7%, white);
  box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--industrial-accent) 18%, transparent);
}
.industrial-online-tabs button.active{
  background:color-mix(in srgb, var(--industrial-accent) 10%, white) !important;
  box-shadow:inset 0 -4px var(--industrial-accent) !important;
  color:#143b68 !important;
}
.industrial-tab-icon{
  width:31px;
  height:31px;
  display:grid;
  place-items:center;
  margin:0 auto 4px;
  color:var(--industrial-accent);
}
.industrial-tab-icon svg{
  width:29px;
  height:29px;
  display:block;
}
.industrial-online-tabs button small{
  display:block;
  font-size:10.5px !important;
  line-height:1.1;
  font-weight:750 !important;
  letter-spacing:.01em;
  color:#173d6b;
  white-space:normal;
}
.industrial-online-tabs button.active small{
  color:var(--industrial-accent);
}
@media(max-width:1400px){
  .industrial-online-tabs button{
    flex:0 0 106px;
    min-width:106px;
  }
}


/* 4.16.422 · Control horario Online con jerarquía Desktop */
.attendance-online-shell{display:flex;flex-direction:column;gap:12px;padding-bottom:18px}
.att-surface{background:#fff;border:1px solid #d9e4ef;border-radius:14px;box-shadow:0 1px 2px rgba(20,55,95,.03)}
.att-top-grid{display:grid;grid-template-columns:56fr 44fr;gap:14px}
.att-employee-card{min-height:128px;padding:16px 18px;display:flex;align-items:center;gap:16px}
.att-big-icon{width:60px;height:60px;border-radius:50%;display:grid;place-items:center;flex:0 0 60px;color:#0b4b9c;background:#edf5ff}
.att-big-icon svg{width:36px;height:36px}
.att-employee-card>div:last-child{display:flex;flex-direction:column;gap:3px}
.att-employee-card strong{font-size:18px;color:#123b73}
.att-employee-card span{font-size:12px;color:#6b819b}
.att-employee-card b,.att-employee-card small{font-size:11px;color:#294c77}
.att-clock-card{min-height:128px;padding:12px 18px;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center}
.att-clock-card small{font-size:10px;font-weight:800;color:#7389a2}
.att-clock-card strong{font-size:28px;line-height:1;color:#123b73;margin:4px 0}
.att-clock-card b{font-size:12px;color:#294c77;text-transform:capitalize}
.att-clock-card em{font-size:12px;font-weight:800;font-style:normal;margin-top:4px}
.att-clock-card span{font-size:10px;color:#7b8fa6}

.att-action-card{padding:10px;display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.att-action{height:48px;border-radius:10px;border:1px solid;display:flex;align-items:center;justify-content:center;gap:9px;background:#fff;font-family:inherit;cursor:pointer;font-size:11px}
.att-action span{width:23px;height:23px}.att-action svg{width:23px;height:23px}
.att-action.success{color:#099b51;background:#effaf4;border-color:#8bd6ad}
.att-action.warning{color:#d98300;background:#fff7e8;border-color:#f3c36d}
.att-action.primary{color:#1477f2;background:#eef6ff;border-color:#8fc0f6}
.att-action.danger{color:#e33c51;background:#fff0f2;border-color:#f2a1ad}
.att-action:disabled{opacity:.42;cursor:not-allowed}

.att-kpi-row{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.att-kpi{min-height:86px;background:#fff;border:1px solid #d9e4ef;border-radius:14px;padding:13px 14px;display:flex;align-items:center;justify-content:space-between}
.att-kpi div{display:flex;flex-direction:column;gap:5px}.att-kpi small{font-size:11px;font-weight:700;color:#71869f}
.att-kpi strong{font-size:17px;color:#123b73}.att-kpi>span{width:46px;height:46px;border-radius:50%;background:var(--att-color);color:#fff;display:grid;place-items:center}
.att-kpi svg{width:26px;height:26px}

.att-manager-bar{padding:11px 14px;display:grid;grid-template-columns:minmax(360px,1fr) 180px auto;gap:12px;align-items:end}
.att-manager-bar label{font-size:10px;font-weight:800;color:#536b8c;display:flex;flex-direction:column;gap:5px}
.att-manager-bar select,.att-manager-bar input{height:40px;border:1px solid #cfddec;border-radius:10px;background:#fff;padding:0 12px;color:#173b69;font:600 11px "Segoe UI",sans-serif}
.att-manager-note{display:flex;align-items:baseline;gap:6px;padding:0 10px 7px}.att-manager-note b{font-size:20px;color:#1477f2}.att-manager-note span{font-size:10px;color:#71869f}

.att-presence-row{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}
.att-presence{min-height:78px;background:#fff;border:1px solid #d9e4ef;border-radius:13px;padding:10px 12px;display:flex;align-items:center;gap:10px}
.att-presence>span{width:40px;height:40px;min-width:40px;border-radius:50%;display:grid;place-items:center;color:#fff}.att-presence>span svg{width:20px;height:20px}.att-presence div{display:grid;grid-template-columns:auto auto;column-gap:8px;align-items:center}
.att-presence small{grid-column:1/3;font-size:10px;font-weight:850}.att-presence strong{font-size:22px}.att-presence em{font-style:normal;font-size:10px;color:#687e98}

.att-list-card{overflow:hidden;min-height:430px;display:flex;flex-direction:column}
.att-list-head{padding:12px 14px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e5edf5}
.att-list-head h2{font-size:16px;color:#123b73;margin:0}.att-list-head p{font-size:10px;color:#71869f;margin:3px 0 0}
.att-list-tools{display:flex;align-items:end;gap:7px}.att-list-tools label{font-size:9px;font-weight:800;color:#607795;display:flex;align-items:center;gap:6px}
.att-list-tools input{height:36px;width:200px;border:1px solid #d2deeb;border-radius:9px;padding:0 10px}
.att-tool{height:36px;border-radius:9px;border:1px solid;display:flex;align-items:center;gap:5px;padding:0 10px;background:#fff;font:750 9px "Segoe UI",sans-serif;cursor:pointer}
.att-tool svg{width:17px;height:17px}.att-tool.blue{color:#1477f2;border-color:#a9caf2;background:#f2f7ff}
.att-tool.orange{color:#d98200;border-color:#efc57c;background:#fff8eb}.att-tool.neutral{color:#4d6684;border-color:#cbd8e6;background:#f8fafc}
.att-table-wrap{flex:1;overflow:auto}.att-table{width:100%;border-collapse:collapse;font-size:11px}
.att-table th{position:sticky;top:0;background:#f2f6fb;color:#173b69;text-align:left;padding:10px 12px;font-size:9px;z-index:1}
.att-table td{padding:10px 12px;border-bottom:1px solid #edf2f7;color:#183a66}.att-table tbody tr:nth-child(even){background:#f8fbfe}
.att-table tbody tr:hover,.att-table tbody tr.selected{background:#e7f2ff}
.att-table td:first-child{display:flex;align-items:center;gap:8px}.att-avatar{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;color:#fff;font-weight:800;font-size:9px;flex:0 0 30px}
.att-mark{display:inline-block;padding:4px 8px;border-radius:999px;font-weight:800;font-size:9px}.att-mark.green{background:#e4f8ec;color:#09934b}.att-mark.orange{background:#fff2dc;color:#c87700}.att-mark.blue{background:#e7f2ff;color:#126bd5}.att-mark.red{background:#ffe9ed;color:#d73549}.att-mark.gray{background:#eef2f6;color:#65768b}
.att-empty{text-align:center!important;padding:70px!important;color:#7a8fa6!important}
.att-table-footer{min-height:40px;border-top:1px solid #e7eef6;padding:0 13px;display:flex;align-items:center;justify-content:space-between;color:#6e829b;font-size:9px;font-weight:700}
@media(max-width:1250px){
  .att-top-grid{grid-template-columns:1fr}.att-kpi-row{grid-template-columns:repeat(2,1fr)}
  .att-presence-row{grid-template-columns:repeat(3,1fr)}.att-list-head{align-items:flex-start;gap:10px;flex-direction:column}
  .att-list-tools{flex-wrap:wrap}.att-manager-bar{grid-template-columns:1fr 180px}
}


/* 4.16.423 · Personal / RRHH Online */
.rrhh-online-shell{display:flex;flex-direction:column;gap:11px;padding-bottom:16px}
.rrhh-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.rrhh-kpi{min-height:88px;background:#fff;border:1px solid #d9e4ef;border-radius:14px;padding:12px 14px;display:flex;align-items:center;gap:11px}
.rrhh-kpi>span{width:46px;height:46px;border-radius:50%;background:var(--rrhh-color);color:#fff;display:grid;place-items:center;flex:0 0 46px}
.rrhh-kpi svg{width:27px;height:27px}.rrhh-kpi div{display:flex;flex-direction:column}
.rrhh-kpi small{font-size:10.5px;color:#34557e}.rrhh-kpi strong{font-size:21px;line-height:1.05;color:#102f61}
.rrhh-kpi em{font-size:9px;color:#7287a0;font-style:normal;margin-top:3px}

.rrhh-tabs{display:flex;background:#fff;border:1px solid #d9e4ef;border-radius:12px;overflow-x:auto;min-height:70px}
.rrhh-tabs button{flex:1 0 125px;border:0;border-right:1px solid #e8eef5;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;position:relative;cursor:pointer;color:#23456f}
.rrhh-tabs button span{width:28px;height:28px;color:var(--rrhh-color)}.rrhh-tabs svg{width:28px;height:28px}
.rrhh-tabs button b{font-size:10px}.rrhh-tabs button:hover{background:color-mix(in srgb,var(--rrhh-color) 6%,white)}
.rrhh-tabs button.active{background:color-mix(in srgb,var(--rrhh-color) 9%,white);box-shadow:inset 0 -4px var(--rrhh-color)}
.rrhh-tabs button.active b{color:var(--rrhh-color)}

.rrhh-section-content{background:#fff;border:1px solid #d9e4ef;border-radius:14px;overflow:hidden;min-height:540px;display:flex;flex-direction:column}
.rrhh-section-head{min-height:72px;padding:12px 14px;border-bottom:1px solid #e8eef5;display:flex;align-items:center;justify-content:space-between;gap:14px}
.rrhh-section-head h2{margin:0;color:#123b73;font-size:18px}.rrhh-section-head p{margin:3px 0 0;color:#70849d;font-size:10px}
.rrhh-search{display:flex;align-items:center;gap:7px}.rrhh-search label{font-size:9px;font-weight:800;color:#506987}
.rrhh-search input{height:36px;width:270px;border:1px solid #ccdae8;border-radius:9px;padding:0 10px;color:#173b69}
.rrhh-search span{font-size:9px;color:#7388a1;min-width:72px}

.rrhh-table-wrap{flex:1;overflow:auto}.rrhh-table{width:100%;border-collapse:collapse;font-size:11px}
.rrhh-table th{position:sticky;top:0;background:#f2f6fb;color:#173b69;text-align:left;padding:10px 12px;font-size:9px;z-index:1}
.rrhh-table td{padding:10px 12px;border-bottom:1px solid #edf2f7;color:#183a66;vertical-align:middle}
.rrhh-table tbody tr:nth-child(even){background:#f8fbfe}.rrhh-table tbody tr:hover{background:#eaf4ff}
.rrhh-table td:first-child>.rrhh-avatar,.rrhh-person-cell{display:flex;align-items:center;gap:8px}
.rrhh-avatar{width:31px;height:31px;border-radius:50%;display:inline-grid;place-items:center;color:#fff;font-size:9px;font-weight:800;flex:0 0 31px}
.rrhh-avatar.xl{width:60px;height:60px;font-size:17px;background:#1477F2}
.rrhh-avatar.c0{background:#1477F2}.rrhh-avatar.c1{background:#0AA7A6}.rrhh-avatar.c2{background:#7546EF}.rrhh-avatar.c3{background:#F28A0B}.rrhh-avatar.c4{background:#E8485C}.rrhh-avatar.c5{background:#0AA957}
.rrhh-badge{display:inline-block;padding:4px 8px;border-radius:999px;font-size:9px;font-weight:800}.rrhh-badge.green{background:#e4f8ec;color:#0a934c}.rrhh-badge.orange{background:#fff2dc;color:#c77900}.rrhh-badge.red{background:#ffe8ec;color:#d33348}.rrhh-badge.gray{background:#eef2f6;color:#65778d}
.rrhh-empty{text-align:center!important;padding:70px 20px!important;color:#778ba4!important}

.rrhh-profile{padding:16px;display:grid;grid-template-columns:340px 1fr;gap:16px}.rrhh-profile-main{border:1px solid #dce6f0;border-radius:13px;padding:16px;display:flex;align-items:center;gap:14px}
.rrhh-profile-main h3{margin:0;color:#123b73;font-size:18px}.rrhh-profile-main p{margin:4px 0;color:#70839b;font-size:10px}.rrhh-profile-main b{font-size:10px;color:#294c77}
.rrhh-profile-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.rrhh-profile-grid article{border:1px solid #dce6f0;border-radius:12px;padding:12px;display:flex;flex-direction:column;gap:4px}
.rrhh-profile-grid small{font-size:9px;color:#71859d}.rrhh-profile-grid strong{font-size:13px;color:#123b73}

.rrhh-cards{padding:14px;display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.rrhh-cards article{border:1px solid #dce6f0;border-radius:13px;padding:13px;display:flex;gap:10px}
.rrhh-cards article>span{width:38px;height:38px;color:#e5484d}.rrhh-cards svg{width:32px;height:32px}.rrhh-cards h3{margin:2px 0 4px;color:#123b73;font-size:13px}
.rrhh-cards small,.rrhh-cards em{font-size:9px;color:#7a8da4;font-style:normal}.rrhh-cards p{font-size:10px;color:#4f6886;margin:0 0 4px}

@media(max-width:1250px){
 .rrhh-kpis{grid-template-columns:repeat(3,1fr)}.rrhh-profile{grid-template-columns:1fr}.rrhh-profile-grid{grid-template-columns:repeat(2,1fr)}
 .rrhh-section-head{align-items:flex-start;flex-direction:column}.rrhh-search{width:100%}.rrhh-search input{flex:1;width:auto}
}


/* 4.16.424 · Paridad visual Personal/RRHH + Control horario */
.att-desktop-grid{display:grid;grid-template-columns:minmax(0,1fr) 315px;gap:12px;align-items:start}
.att-desktop-main{display:flex;flex-direction:column;gap:10px}
.att-calendar{background:#fff;border:1px solid #d9e4ef;border-radius:14px;overflow:hidden;position:sticky;top:12px}
.att-calendar header{height:48px;background:#0e4f94;color:#fff;display:grid;grid-template-columns:42px 1fr 42px;align-items:center;text-align:center}
.att-calendar header button{height:100%;border:0;background:transparent;color:#fff;font-size:24px;cursor:pointer}
.att-calendar header strong{font-size:14px}
.att-week,.att-days{display:grid;grid-template-columns:repeat(7,1fr);padding:0 12px}
.att-week{padding-top:12px}.att-week b{text-align:center;font-size:10px;color:#173b69;padding:5px 0}
.att-days button,.att-days span{height:31px;border:0;background:#fff;color:#173b69;font-size:10px;cursor:pointer;border-radius:4px}
.att-days button:hover{background:#edf5ff}.att-days button.selected{background:#1477f2;color:#fff;font-weight:800}
.att-calendar footer{margin-top:10px;background:#f5f8fc;padding:12px;text-align:center}
.att-calendar footer small{display:block;font-size:9px;color:#617895}.att-calendar footer strong{display:block;color:#1477f2;font-size:12px;margin:4px 0 10px}
.att-calendar footer div{display:flex;justify-content:space-between;gap:10px}
.att-calendar footer button{height:34px;flex:1;border:0;border-radius:8px;background:#1477f2;color:#fff;font-weight:700;font-size:9px}
.att-calendar footer button:last-child{background:#91a5bd}

.rrhh-360-head{min-height:56px}.rrhh-employee-picker{font-size:9px;font-weight:800;color:#526b8a;display:flex;align-items:center;gap:7px}
.rrhh-employee-picker select{height:34px;min-width:260px;border:1px solid #cfddeb;border-radius:8px;padding:0 9px;color:#173b69;background:#fff;font-weight:700}
.rrhh-identity-card{margin:10px 12px 0;border:1px solid #d8e3ef;background:#fff;border-radius:12px;padding:10px 12px;display:flex;justify-content:space-between;gap:12px;align-items:center}
.rrhh-identity-main{display:flex;align-items:center;gap:9px}.rrhh-identity-main>.rrhh-person-cell{display:none}.rrhh-identity-main:before{content:"";width:40px;height:40px;border-radius:50%;background:#12a957}
.rrhh-identity-main strong{display:block;color:#123b73;font-size:13px}.rrhh-identity-main small{display:block;color:#506a88;font-size:9px;margin-top:3px}
.rrhh-contact-actions{display:flex;gap:6px}.rrhh-contact-actions button{min-width:125px;height:40px;border:1px solid #a9caf2;background:#eef6ff;color:#1477f2;border-radius:7px;font-size:8px;display:grid;grid-template-columns:24px 1fr;text-align:left;align-items:center;padding:4px 8px}
.rrhh-contact-actions button span{font-size:7px;color:#6f8299}.rrhh-contact-actions button b{font-size:8px;color:#1477f2}.rrhh-contact-actions button.wa{border-color:#8ed5ac;background:#effaf4;color:#0b9f54}.rrhh-contact-actions button:disabled{opacity:.45}
.rrhh-360-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:9px 12px}
.rrhh-360-kpis article{border:1px solid #dce6ef;border-radius:11px;min-height:72px;display:flex;align-items:center;gap:9px;padding:9px 11px}
.rrhh-360-kpis article>span{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;color:#fff}.rrhh-360-kpis svg{width:23px;height:23px}
.rrhh-360-kpis .purple{background:#7546ef}.rrhh-360-kpis .orange{background:#f39a0a}.rrhh-360-kpis .green{background:#0aa957}.rrhh-360-kpis .blue{background:#1477f2}
.rrhh-360-kpis div{display:flex;flex-direction:column}.rrhh-360-kpis small{font-size:8px;color:#5d7491}.rrhh-360-kpis strong{font-size:13px;color:#123b73}.rrhh-360-kpis em{font-size:7px;color:#7b8ea5;font-style:normal}
.rrhh-360-grid{display:grid;grid-template-columns:1fr 1fr 1.15fr;gap:8px;padding:0 12px 12px}
.rrhh-info-column{display:flex;flex-direction:column;gap:8px}.rrhh-info-panel,.rrhh-quick,.rrhh-history{border:1px solid #d7e3ef;background:#f7fbff;border-radius:10px;overflow:hidden}
.rrhh-info-panel h3,.rrhh-quick h3,.rrhh-history h3{margin:0;padding:7px 9px;background:#eaf4ff;color:#123b73;font-size:9px}
.rrhh-info-panel>div{display:grid;grid-template-columns:115px 1fr;gap:5px;align-items:center;padding:4px 8px}
.rrhh-info-panel span{font-size:8px;color:#4f6785}.rrhh-info-panel b{background:#fff;border:1px solid #d7e3ef;min-height:23px;border-radius:4px;padding:4px 6px;font-size:8px;color:#173b69;font-weight:600}
.rrhh-side-column{display:flex;flex-direction:column;gap:8px}
.rrhh-quick .wf-action-bar.rrhh-quick-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:8px}
.rrhh-quick .wf-action-btn{width:100%;min-width:0;height:38px;padding:0 10px;border-radius:3px;font-size:9.5px;font-weight:700;gap:7px}
.rrhh-quick .wf-action-btn .wf-svg-icon{width:16px;height:16px}
.rrhh-history{min-height:210px}.rrhh-history article{display:flex;gap:7px;padding:7px 9px}.rrhh-history i{width:6px;height:6px;border-radius:50%;background:#f39a0a;margin-top:4px}.rrhh-history div{display:flex;flex-direction:column}.rrhh-history b{font-size:8px;color:#173b69}.rrhh-history small,.rrhh-history span{font-size:7px;color:#70849d}
@media(max-width:1300px){.att-desktop-grid{grid-template-columns:1fr}.att-calendar{position:static}.rrhh-360-grid{grid-template-columns:1fr 1fr}.rrhh-side-column{grid-column:1/3}}


/* 4.16.425 · diagnóstico visual de módulos centralizados */
.module-head.special-module-head{
  min-height:0!important;
  padding-bottom:0!important;
  margin-bottom:8px!important;
}
.module-head.special-module-head::after{display:none!important}
.rrhh-central-source{
  align-self:flex-end;
  display:flex;align-items:center;gap:6px;
  font-size:9px;font-weight:700;color:#09934c;
  margin:-2px 2px 0 0;
}
.rrhh-central-source span{
  width:7px;height:7px;border-radius:50%;background:#10b45d;
}


/* 4.16.426 · aislamiento del menú horizontal de Base industrial */
#industrial-online-tabs.hidden{
  display:none !important;
}
/* El menú industrial sólo puede existir visualmente dentro de su propia ruta. */
body:not(.industrial-online-active) #industrial-online-tabs{
  display:none !important;
}

/* 4.16.428 · Ficha 360 RRHH: más espacio útil y legibilidad Desktop */
body[data-route="personal_rrhh"] .module-head.special-module-head{margin-bottom:6px!important}
body[data-route="personal_rrhh"] #module-kpis:empty,
body[data-route="personal_rrhh"] #client-selected-bar:empty,
body[data-route="personal_rrhh"] .module-card.hidden{display:none!important}
.rrhh-online-shell{gap:9px}
.rrhh-section-content{min-height:0}
.rrhh-360-head{min-height:62px;padding:10px 16px}
.rrhh-360-head h2{font-size:20px!important}.rrhh-360-head p{font-size:11px!important}
.rrhh-employee-picker{font-size:11px}.rrhh-employee-picker select{height:38px;min-width:285px;font-size:12px}
.rrhh-identity-card{margin:8px 12px 0;padding:11px 13px}
.rrhh-identity-main:before{width:44px;height:44px}.rrhh-identity-main strong{font-size:15px}.rrhh-identity-main small{font-size:10px}
.rrhh-badge{font-size:10px;padding:4px 9px}
.rrhh-contact-actions button{min-width:140px;height:44px;font-size:10px}.rrhh-contact-actions button span{font-size:8px}.rrhh-contact-actions button b{font-size:10px}
.rrhh-360-kpis{gap:9px;margin:9px 12px}.rrhh-360-kpis article{min-height:78px;padding:10px 12px}
.rrhh-360-kpis article>span{width:42px;height:42px}.rrhh-360-kpis svg{width:25px;height:25px}
.rrhh-360-kpis small{font-size:10px}.rrhh-360-kpis strong{font-size:16px}.rrhh-360-kpis em{font-size:9px}
.rrhh-360-grid{grid-template-columns:1fr 1fr 1.08fr;gap:10px;padding:0 12px 12px}
.rrhh-info-column,.rrhh-side-column{gap:9px}
.rrhh-info-panel h3,.rrhh-quick h3,.rrhh-history h3{padding:8px 10px;font-size:11px}
.rrhh-info-panel>div{grid-template-columns:125px 1fr;gap:6px;padding:5px 9px}
.rrhh-info-panel span{font-size:10px}.rrhh-info-panel b{min-height:28px;padding:5px 7px;font-size:10px}
.rrhh-quick>div{gap:6px;padding:8px}.rrhh-quick button{height:37px;font-size:9.5px}
.rrhh-history{min-height:230px}.rrhh-history article{padding:8px 10px}.rrhh-history b{font-size:10px}.rrhh-history small,.rrhh-history span{font-size:9px}
@media(max-width:1450px){.rrhh-360-grid{grid-template-columns:1fr 1fr}.rrhh-side-column{grid-column:1/3}}

/* 4.16.429 · RRHH Ficha 360: elimina banda heredada y encaja sin scroll vertical */
body[data-route="personal_rrhh"] #module-kpis,
body[data-route="personal_rrhh"] #client-selected-bar,
body[data-route="personal_rrhh"] #material-sector-menu,
body[data-route="personal_rrhh"] #material-sector-context,
body[data-route="personal_rrhh"] #order-sector-menu,
body[data-route="personal_rrhh"] #order-profile,
body[data-route="personal_rrhh"] .module-card{
  display:none!important;
  min-height:0!important;
  height:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
}
body[data-route="personal_rrhh"] .module-head.special-module-head{
  margin:0 0 4px!important;
  padding:0!important;
}
body[data-route="personal_rrhh"] .rrhh-central-source{margin:0 2px 2px 0!important}
body[data-route="personal_rrhh"] .rrhh-online-shell{gap:6px!important}
body[data-route="personal_rrhh"] .rrhh-360-head{min-height:52px!important;padding:7px 14px!important}
body[data-route="personal_rrhh"] .rrhh-employee-picker select{height:34px!important}
body[data-route="personal_rrhh"] .rrhh-identity-card{margin:6px 10px 0!important;padding:8px 11px!important}
body[data-route="personal_rrhh"] .rrhh-contact-actions button{height:38px!important}
body[data-route="personal_rrhh"] .rrhh-360-kpis{margin:6px 10px!important;gap:7px!important}
body[data-route="personal_rrhh"] .rrhh-360-kpis article{min-height:66px!important;padding:7px 10px!important}
body[data-route="personal_rrhh"] .rrhh-360-kpis article>span{width:38px!important;height:38px!important}
body[data-route="personal_rrhh"] .rrhh-360-grid{gap:7px!important;padding:0 10px 8px!important}
body[data-route="personal_rrhh"] .rrhh-info-column,
body[data-route="personal_rrhh"] .rrhh-side-column{gap:6px!important}
body[data-route="personal_rrhh"] .rrhh-info-panel h3,
body[data-route="personal_rrhh"] .rrhh-quick h3,
body[data-route="personal_rrhh"] .rrhh-history h3{padding:6px 9px!important}
body[data-route="personal_rrhh"] .rrhh-info-panel>div{padding:3px 8px!important}
body[data-route="personal_rrhh"] .rrhh-info-panel b{min-height:25px!important;padding:4px 7px!important}
body[data-route="personal_rrhh"] .rrhh-quick>div{padding:6px!important;gap:5px!important}
body[data-route="personal_rrhh"] .rrhh-quick button{height:33px!important}
body[data-route="personal_rrhh"] .rrhh-history{min-height:190px!important}
body[data-route="personal_rrhh"] .rrhh-history article{padding:6px 9px!important}


/* 4.16.430 · RRHH: legibilidad + Ficha de empleado/usuario */
body[data-route="personal_rrhh"] .rrhh-360-head h2{font-size:21px!important}
body[data-route="personal_rrhh"] .rrhh-360-head p{font-size:11.5px!important}
body[data-route="personal_rrhh"] .rrhh-identity-main strong{font-size:16px!important}
body[data-route="personal_rrhh"] .rrhh-identity-main small{font-size:10.5px!important}
body[data-route="personal_rrhh"] .rrhh-badge{font-size:10.5px!important}
body[data-route="personal_rrhh"] .rrhh-360-kpis small{font-size:10.5px!important}
body[data-route="personal_rrhh"] .rrhh-360-kpis strong{font-size:17px!important}
body[data-route="personal_rrhh"] .rrhh-360-kpis em{font-size:9.5px!important}
body[data-route="personal_rrhh"] .rrhh-info-panel h3,
body[data-route="personal_rrhh"] .rrhh-quick h3,
body[data-route="personal_rrhh"] .rrhh-history h3{font-size:11.5px!important}
body[data-route="personal_rrhh"] .rrhh-info-panel span{font-size:10.5px!important}
body[data-route="personal_rrhh"] .rrhh-info-panel b{font-size:11px!important}
body[data-route="personal_rrhh"] .rrhh-quick button{font-size:10px!important}
body[data-route="personal_rrhh"] .rrhh-history b{font-size:10.5px!important}
body[data-route="personal_rrhh"] .rrhh-history small,
body[data-route="personal_rrhh"] .rrhh-history span{font-size:9.5px!important}

/* Ficha de empleado / usuario */
.rrhh-data-toolbar{height:52px;display:grid;grid-template-columns:190px 1fr 280px;align-items:center;gap:10px;padding:0 12px;border-bottom:1px solid #d7e3ef;background:#f7fbff}
.rrhh-data-toolbar>button,.rrhh-data-actions button{height:34px;border:1px solid #b8cee8;background:#fff;color:#145aa6;border-radius:5px;font-size:10.5px;font-weight:800;cursor:pointer}
.rrhh-data-toolbar h2{margin:0;color:#123b73;font-size:19px}
.rrhh-data-actions{display:flex;justify-content:flex-end;gap:7px}.rrhh-data-actions button{min-width:125px}
.rrhh-data-actions .primary{background:#eaf4ff;border-color:#8bbcf5;color:#0871e8}

.rrhh-data-identity{min-height:70px;margin:7px 10px 0;padding:8px 11px;border:1px solid #d7e3ef;border-radius:10px;background:#fff;display:flex;align-items:center;gap:10px}
.rrhh-data-who{display:flex;align-items:center;gap:7px;flex-wrap:wrap;min-width:260px}.rrhh-data-who strong{font-size:16px;color:#123b73}.rrhh-data-who small{width:100%;font-size:10px;color:#506a88}
.rrhh-contact-actions.compact{margin-left:auto}.rrhh-contact-actions.compact button{height:39px;min-width:140px}

.rrhh-data-tabs{display:flex;margin:7px 10px 0;border-bottom:1px solid #c9d9ea;background:#fff}
.rrhh-data-tabs button{flex:1;min-width:80px;height:39px;border:0;background:#fff;color:#294e78;font-size:9.5px;font-weight:800;cursor:pointer;border-bottom:3px solid transparent}
.rrhh-data-tabs button.active{color:#0871e8;border-bottom-color:#0871e8;background:#f2f8ff}

.rrhh-data-form{padding:7px 10px 10px}
.rrhh-data-columns{display:grid;grid-template-columns:1fr 1fr;gap:8px;align-items:start}
.rrhh-data-panel{border:1px solid #cdddec;background:#f5faff;border-radius:8px;overflow:hidden;margin-bottom:7px}
.rrhh-data-panel h3{margin:0;padding:7px 9px;background:#e7f3ff;color:#123b73;font-size:11.5px}
.rrhh-data-panel-body{padding:6px 8px}
.rrhh-data-field{display:grid;grid-template-columns:145px 1fr;gap:7px;align-items:center;margin:4px 0}
.rrhh-data-field>span{font-size:10.5px;color:#385778}
.rrhh-data-field input,.rrhh-data-field textarea{width:100%;box-sizing:border-box;border:1px solid #c9dbea;background:#fff;border-radius:5px;color:#173b69;font-size:11px;padding:4px 7px}
.rrhh-data-field input{height:29px}.rrhh-data-field input[readonly]{background:#f7f9fc;color:#60758d}
.rrhh-data-field.textarea{display:block}.rrhh-data-field.textarea span{display:block;margin-bottom:5px}.rrhh-data-field textarea{height:180px;resize:vertical}
.rrhh-data-wide{width:100%}.rrhh-data-table{width:100%;border-collapse:collapse;font-size:10.5px}.rrhh-data-table th{background:#eff5fb;color:#274c76;padding:8px;text-align:left}.rrhh-data-table td{padding:8px;border-bottom:1px solid #e7edf4}
.rrhh-data-summary{display:flex;align-items:center;gap:10px;padding:10px;border-bottom:1px solid #e4edf5}.rrhh-data-summary strong{font-size:20px;color:#0871e8}.rrhh-data-summary span{font-size:11px;color:#526c8b}
.rrhh-data-empty{padding:80px;text-align:center;color:#758aa3;font-size:12px}

@media(max-width:1350px){
  .rrhh-data-columns{grid-template-columns:1fr}
  .rrhh-data-tabs{overflow-x:auto}.rrhh-data-tabs button{flex:0 0 105px}
  .rrhh-data-toolbar{grid-template-columns:160px 1fr 250px}
}


/* 4.16.431 · Personal/RRHH Online: paridad visual/funcional Desktop */
.rrhh-employee-context{display:flex;justify-content:space-between;align-items:center;padding:8px 12px;background:#fff;border:1px solid #d6e2ef;border-radius:8px;margin-bottom:7px}
.rrhh-employee-context>div:first-child{display:flex;align-items:center;gap:8px}.rrhh-employee-context strong{display:block;color:#123b73;font-size:13px}.rrhh-employee-context small{font-size:9.5px;color:#637b96}
.rrhh-context-actions{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}
.rrhh-desktop-toolbar{display:flex;align-items:center;gap:7px;padding:7px 10px;border:1px solid #d6e2ef;border-top:0;background:#fff}.rrhh-desktop-toolbar label{display:flex;align-items:center;gap:5px;font-size:10px;font-weight:700;color:#385778;margin-right:auto}
.rrhh-filter-select{height:31px;border:1px solid #c4d7ea;border-radius:5px;background:#fff;padding:0 26px 0 8px;color:#173b69}
.rrhh-action-btn{height:31px;padding:0 13px;border:1px solid #b9d0e7;background:#fff;border-radius:3px;font-size:9.5px;font-weight:800;color:#0b67ce;cursor:pointer}.rrhh-action-btn.green{color:#079548;border-color:#9bd8b7;background:#f1fff7}.rrhh-action-btn.orange{color:#d97900;border-color:#f4c98c;background:#fff9ee}.rrhh-action-btn.red{color:#e43c4b;border-color:#f2aab0;background:#fff5f6}.rrhh-action-btn.purple{color:#7c3aed;border-color:#c9b7f5;background:#faf7ff}
.rrhh-click-table tr{cursor:pointer}.rrhh-click-table tr.selected{background:#dfefff!important}.rrhh-row-actions{white-space:nowrap}.rrhh-row-actions button{min-width:35px;height:31px;border:1px solid #b8d0e7;background:#fff;color:#0871e8;margin-right:3px}.rrhh-row-actions small{display:block;font-size:7px;color:#385778}
.rrhh-subtabs{display:flex;background:#fff;border:1px solid #d6e2ef;border-top:0}.rrhh-subtabs button{height:37px;flex:1;border:0;border-bottom:3px solid transparent;background:#fff;font-size:9px;font-weight:800;color:#365775}.rrhh-subtabs button.active{color:#0871e8;border-bottom-color:#0871e8;background:#eef6ff}
.rrhh-vac-mode{display:flex;gap:5px;padding:6px 10px;background:#fff}.rrhh-vac-mode button{height:31px;padding:0 16px;border:1px solid #b9cfe7;background:#fff;color:#1c5fa5;font-weight:800}.rrhh-vac-mode button.active{background:#eaf4ff;border-color:#7bb5f2}
.rrhh-vac-controls{display:grid;grid-template-columns:34px 1fr 34px 60px;align-items:center;gap:5px;padding:7px 10px;background:#fff}.rrhh-vac-controls strong{text-align:left;color:#123b73;font-size:14px}.rrhh-vac-controls button{height:29px;border:1px solid #b9d0e7;background:#fff;color:#0871e8}
.rrhh-vac-legend{display:flex;gap:12px;flex-wrap:wrap;padding:5px 10px;background:#f7fbff;border-top:1px solid #e1eaf4}.rrhh-vac-legend span{font-size:9px;color:#365775}.rrhh-vac-legend i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#1477f2;margin-right:4px}
.rrhh-calendar{display:grid;grid-template-columns:repeat(7,1fr);border-left:1px solid #d8e4ef;border-top:1px solid #d8e4ef;background:#fff}.rrhh-calendar>.head{height:27px;display:flex;align-items:center;justify-content:center;background:#edf4fb;border-right:1px solid #d8e4ef;border-bottom:1px solid #d8e4ef;font-size:9px;font-weight:800;color:#365775}.rrhh-calendar>.day{min-height:78px;padding:5px;border-right:1px solid #d8e4ef;border-bottom:1px solid #d8e4ef;box-sizing:border-box}.rrhh-calendar>.day.out{background:#f7f9fc;color:#aab8c6}.rrhh-calendar>.day>b{display:block;text-align:right;font-size:9px}.rrhh-calendar>.day>span{display:block;margin-top:3px;padding:2px 4px;border-radius:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:8px}.rrhh-calendar>.day>span.approved{background:#dcf7e7;color:#08793d}.rrhh-calendar>.day>span.pending{background:#fff1d7;color:#a96500}
.rrhh-modal-overlay{position:fixed;inset:0;background:rgba(7,30,58,.35);z-index:9999;display:flex;align-items:center;justify-content:center}.rrhh-modal{width:min(620px,92vw);background:#fff;border-radius:10px;box-shadow:0 20px 60px rgba(0,0,0,.25);overflow:hidden}.rrhh-modal-head{display:flex;justify-content:space-between;align-items:center;padding:13px 16px;background:#123b73;color:#fff}.rrhh-modal-head h3{margin:0;font-size:16px}.rrhh-modal-head button{background:transparent;border:0;color:#fff;font-size:22px}.rrhh-modal form{padding:14px}.rrhh-modal-field{display:grid;grid-template-columns:170px 1fr;align-items:center;gap:8px;margin:7px 0;font-size:10.5px;color:#385778}.rrhh-modal-field input,.rrhh-modal-field select,.rrhh-modal-field textarea{border:1px solid #c7d9eb;border-radius:5px;padding:7px;font-size:11px}.rrhh-modal-field textarea{height:100px}.rrhh-modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}.rrhh-modal-actions button{height:34px;padding:0 16px;border:1px solid #b7cce2;background:#fff;border-radius:5px}.rrhh-modal-actions .primary{background:#0871e8;color:#fff;border-color:#0871e8}

/* 4.16.432 · Paridad visual estricta Personal/RRHH con WFERP Desktop */
.rrhh-online-shell{font-family:inherit}
.rrhh-tabs{height:54px;display:grid!important;grid-template-columns:repeat(8,minmax(108px,1fr));overflow:visible!important}
.rrhh-tabs button{min-width:0!important;height:54px!important;padding:4px 5px!important;display:flex!important;flex-direction:column!important;justify-content:center!important;gap:2px!important;white-space:normal!important}
.rrhh-tabs button span{height:20px!important}.rrhh-tabs button span svg{width:19px!important;height:19px!important}
.rrhh-tabs button b{font-size:9px!important;line-height:11px!important;text-align:center!important;overflow:visible!important;text-overflow:clip!important;white-space:normal!important}
.rrhh-section-head{min-height:54px!important;padding:8px 12px!important}.rrhh-section-head h2{font-size:17px!important;color:#123b73!important}.rrhh-section-head p{font-size:9px!important}
.rrhh-employee-context{min-height:52px}.rrhh-context-actions .rrhh-action-btn{min-width:88px}
.rrhh-table thead th{height:31px!important;font-size:8px!important;letter-spacing:.02em}.rrhh-table tbody td{height:42px!important;font-size:9px!important}
.rrhh-person-cell{display:flex!important;align-items:center!important;gap:8px!important;min-width:150px}.rrhh-person-cell b{font-size:9px!important;color:#153c6b!important}
.rrhh-avatar{width:28px!important;height:28px!important;min-width:28px!important;border-radius:50%!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;color:#fff!important;font-size:9px!important;font-weight:800!important}
.rrhh-avatar.c0{background:#12a85a!important}.rrhh-avatar.c1{background:#1477f2!important}.rrhh-avatar.c2{background:#f07b13!important}.rrhh-avatar.c3{background:#6f39e8!important}.rrhh-avatar.c4{background:#0ea6a0!important}.rrhh-avatar.c5{background:#e0009a!important}
.rrhh-row-actions button{width:38px!important;height:34px!important;border-radius:3px!important}.rrhh-row-actions button.danger{color:#ff3048!important;border-color:#ffc2cb!important}
.rrhh-subtabs{height:60px!important}.rrhh-subtabs button{height:60px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:4px!important}.rrhh-subtabs button span{font-size:15px!important}.rrhh-subtabs button b{font-size:8.5px!important}
.rrhh-desktop-toolbar{min-height:44px!important}.rrhh-action-btn{font-size:9px!important;font-weight:800!important}
.rrhh-vac-mode{justify-content:flex-start!important}.rrhh-calendar>.day{min-height:92px!important}
.rrhh-modal{width:min(760px,94vw)!important;border-radius:5px!important}.rrhh-modal-head{height:44px!important;padding:0 14px!important;background:#f7f9fc!important;color:#173b69!important;border-bottom:1px solid #d7e3f1!important}.rrhh-modal-head h3{font-size:10px!important;font-weight:700!important}.rrhh-modal-head button{color:#71859b!important}
.rrhh-modal form{background:#f4f8fc!important;padding:16px 22px 18px!important}.rrhh-form-intro{background:#fff;padding:12px 14px;margin:-2px -2px 14px;border-bottom:1px solid #d7e3f1}.rrhh-form-intro strong{display:block;font-size:17px;color:#123b73}.rrhh-form-intro span{display:block;margin-top:4px;font-size:10px;color:#61778f}
.rrhh-modal-field{grid-template-columns:145px 1fr!important;background:#fff;margin:0!important;padding:7px 10px!important}.rrhh-modal-field span{font-weight:700!important;font-size:9px!important;color:#365775!important}.rrhh-modal-field input,.rrhh-modal-field select,.rrhh-modal-field textarea{height:34px!important;background:#f7fbff!important;border-color:#c8d9ea!important}
.rrhh-modal-field textarea{height:55px!important}.rrhh-form-two{display:grid;grid-template-columns:1fr 1fr;gap:8px;background:#fff}.rrhh-form-two .rrhh-modal-field{grid-template-columns:92px 1fr!important}.rrhh-modal-wide{grid-template-columns:145px 1fr!important}
.rrhh-modal-actions{background:#fff;margin:0!important;padding:12px 10px 4px!important}.rrhh-modal-actions button{font-size:9px!important;font-weight:800!important;border-radius:2px!important}.rrhh-modal-actions .primary{background:#12b95b!important;border-color:#12b95b!important}
@media(max-width:1250px){.rrhh-tabs{grid-template-columns:repeat(8,minmax(90px,1fr))}.rrhh-tabs button b{font-size:8px!important}.rrhh-context-actions .rrhh-action-btn{min-width:74px;padding:0 8px}}


/* 4.16.433 · Personal/RRHH > Empleados: jerarquía Clientes Online + Desktop */
.rrhh-employee-selected{
  min-height:58px!important;
  margin:0 0 8px 0!important;
  border:1px solid #d8e5f1!important;
  border-radius:0!important;
  background:#fff!important;
  padding:7px 12px!important;
}
.rrhh-employee-selected .client-selected-copy{
  display:flex!important;
  align-items:center!important;
  gap:9px!important;
}
.rrhh-employee-selected .client-selected-copy strong{
  display:block!important;
  color:#173c6a!important;
  font-size:11px!important;
  line-height:1.2!important;
}
.rrhh-employee-selected .client-selected-copy>div>span{
  display:block!important;
  margin-top:3px!important;
  color:#526d89!important;
  font-size:8.5px!important;
}
.rrhh-selected-actions{
  gap:6px!important;
}
.rrhh-selected-actions button{
  min-width:84px!important;
  height:34px!important;
  padding:0 9px!important;
  border-radius:0!important;
  font-size:8.5px!important;
}
.rrhh-selected-actions button:nth-child(1){
  color:#6f38ed!important;border-color:#cfbdf7!important;background:#fbf8ff!important;
}
.rrhh-selected-actions button:nth-child(2){
  color:#e88700!important;border-color:#f2c88b!important;background:#fffaf2!important;
}
.rrhh-selected-actions button:nth-child(3),
.rrhh-selected-actions button:nth-child(5),
.rrhh-selected-actions button:nth-child(6){
  color:#07984d!important;border-color:#99ddb6!important;background:#f5fff8!important;
}
.rrhh-selected-actions button:nth-child(4){
  color:#0869d9!important;border-color:#b9d3ef!important;background:#f5f9ff!important;
}

.rrhh-employee-list-head{
  min-height:48px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  background:#fff;
  border:1px solid #dce7f2;
  border-bottom:0;
  padding:7px 12px;
}
.rrhh-employee-list-head h2{
  margin:0;
  font-size:15px;
  line-height:1.15;
  color:#173c6a;
}
.rrhh-employee-list-head p{
  margin:3px 0 0;
  font-size:8.5px;
  color:#66809a;
}
.rrhh-employee-list-head>small{
  font-size:8px;
  color:#71859a;
}

.rrhh-client-toolbar{
  min-height:58px!important;
  padding:8px 12px!important;
  border:1px solid #dce7f2!important;
  border-bottom:1px solid #dce7f2!important;
}
.rrhh-client-toolbar .client-filter-label select{
  width:150px!important;
  min-height:34px!important;
}
.rrhh-client-toolbar .client-search-label{
  flex:1!important;
}
.rrhh-client-toolbar .client-search-label input{
  width:100%!important;
  min-height:34px!important;
  border:1px solid #cbdceb!important;
  border-radius:6px!important;
  padding:0 10px!important;
}
.rrhh-client-toolbar .client-toolbar-actions{
  display:flex!important;
  gap:7px!important;
  margin-left:auto!important;
}
.rrhh-client-toolbar .wf-action-btn{
  height:38px!important;
  min-width:112px!important;
  border-radius:0!important;
  font-size:10px!important;
  font-weight:700!important;
}

.rrhh-employee-table-wrap{
  border:1px solid #dce7f2;
  border-top:0;
  background:#fff;
  min-height:430px;
}
.rrhh-employee-table{
  width:100%;
  table-layout:auto;
  font-size:10px!important;
}
.rrhh-employee-table thead th{
  height:auto!important;
  padding:11px 12px!important;
  background:#eff5fb!important;
  color:#21446e!important;
  font-size:9px!important;
  font-weight:600!important;
}
.rrhh-employee-table tbody td{
  height:auto!important;
  padding:10px 12px!important;
  font-size:10px!important;
  color:#17365f!important;
}
.rrhh-employee-table tbody tr:nth-child(even) td{
  background:#f9fbfd!important;
}
.rrhh-employee-table tbody tr:hover td{
  background:#eaf4ff!important;
}
.rrhh-employee-table tbody tr.selected td{
  background:#d9ebff!important;
}
.rrhh-list-name{
  gap:10px!important;
}
.rrhh-list-name strong{
  color:#17365f!important;
  font-size:10px!important;
  font-weight:700!important;
  white-space:nowrap!important;
}
.rrhh-employee-table .rrhh-avatar{
  width:30px!important;
  height:30px!important;
  min-width:30px!important;
  font-size:9px!important;
}

.rrhh-direct-actions{
  gap:4px!important;
  justify-content:center!important;
}
.rrhh-direct-actions button{
  min-width:38px!important;
  width:38px!important;
  height:34px!important;
  padding:2px!important;
  border:1px solid #bdd4eb!important;
  background:#fff!important;
  border-radius:0!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
}
.rrhh-direct-actions .row-view,
.rrhh-direct-actions .row-edit{
  color:#0878ec!important;
}
.rrhh-direct-actions .row-delete{
  color:#ff3448!important;
}
.rrhh-direct-actions small{
  display:block!important;
  font-size:7px!important;
  margin-top:4px!important;
  color:inherit!important;
}

@media(max-width:1350px){
  .rrhh-client-toolbar .wf-action-btn{min-width:92px!important}
  .rrhh-selected-actions button{min-width:72px!important}
  .rrhh-employee-table tbody td{padding-left:8px!important;padding-right:8px!important}
}


/* 4.16.434 · Empleados: barra estable idéntica a Clientes Online */
.rrhh-client-toolbar{
  display:grid!important;
  grid-template-columns:180px minmax(320px,1fr) auto!important;
  align-items:end!important;
  gap:10px!important;
  width:100%!important;
  box-sizing:border-box!important;
}
.rrhh-client-toolbar .client-filter-label,
.rrhh-client-toolbar .client-search-label{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  min-width:0!important;
}
.rrhh-client-toolbar .client-filter-label select{
  width:125px!important;
  flex:1!important;
}
.rrhh-client-toolbar .client-search-label input{
  flex:1!important;
  width:auto!important;
  min-width:0!important;
}
.rrhh-client-toolbar .client-toolbar-actions{
  display:flex!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:7px!important;
  margin:0!important;
}
.rrhh-client-toolbar .wf-action-btn{
  min-width:104px!important;
  height:36px!important;
}
@media(max-width:1180px){
  .rrhh-client-toolbar{
    grid-template-columns:160px 1fr!important;
  }
  .rrhh-client-toolbar .client-toolbar-actions{
    grid-column:1/-1!important;
  }
}

/* Alta/edición completa del empleado: patrón WFERP Desktop */
.rrhh-data-toolbar{
  min-height:42px!important;
  padding:5px 10px!important;
}
.rrhh-data-toolbar>div h2{
  font-size:17px!important;
  font-weight:700!important;
}
.rrhh-data-identity{
  min-height:66px!important;
}
.rrhh-data-tabs{
  display:grid!important;
  grid-template-columns:repeat(10,minmax(76px,1fr))!important;
  min-height:48px!important;
  overflow:visible!important;
}
.rrhh-data-tabs button{
  min-width:0!important;
  min-height:48px!important;
  padding:4px 3px!important;
  font-size:9px!important;
  font-weight:700!important;
  white-space:normal!important;
  line-height:1.1!important;
}
.rrhh-data-form{
  min-height:410px!important;
}
.rrhh-data-panel h3{
  font-size:10px!important;
}
.rrhh-data-field span{
  font-size:9px!important;
}
.rrhh-data-field input,
.rrhh-data-field select,
.rrhh-data-field textarea{
  font-size:10px!important;
  min-height:28px!important;
}


/* 4.16.435 · RRHH Empleados · paridad visual estricta con Desktop */

/* Barra de empleado seleccionado */
.rrhh-employee-selected{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:16px!important;
  padding:7px 10px!important;
}
.rrhh-employee-selected .client-selected-copy{
  flex:0 1 auto!important;
  min-width:300px!important;
}
.rrhh-selected-actions-right{
  margin-left:auto!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  flex-wrap:nowrap!important;
  gap:5px!important;
}
.rrhh-selected-actions-right button{
  min-width:86px!important;
  height:34px!important;
  padding:0 8px!important;
}

/* Eliminar cualquier resto visual de la banda Empleados */
.rrhh-employee-list-head{display:none!important}

/* Toolbar pegado a la ficha, como Desktop */
.rrhh-client-toolbar{
  margin-top:0!important;
  border-top:1px solid #dce7f2!important;
  min-height:48px!important;
  padding:6px 10px!important;
}

/* Listado */
.rrhh-employee-table thead th{
  font-size:9px!important;
  font-weight:700!important;
}
.rrhh-employee-table tbody td{
  font-size:10px!important;
  font-weight:600!important;
}
.rrhh-list-name strong{
  font-size:10px!important;
  font-weight:700!important;
}
.rrhh-direct-actions small{
  font-size:7.2px!important;
  font-weight:600!important;
}

/* Ficha Nuevo/Editar: menú horizontal con pictogramas */
.rrhh-data-tabs{
  display:grid!important;
  grid-template-columns:repeat(10,minmax(80px,1fr))!important;
  min-height:58px!important;
  height:58px!important;
  background:#fff!important;
  border-top:1px solid #d9e5f1!important;
  border-bottom:1px solid #d9e5f1!important;
  overflow:visible!important;
}
.rrhh-data-tabs button{
  min-width:0!important;
  height:58px!important;
  padding:3px 2px!important;
  border:0!important;
  border-bottom:3px solid transparent!important;
  background:#fff!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:2px!important;
  color:#153d6c!important;
}
.rrhh-data-tabs button span{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:22px!important;
  height:22px!important;
  color:var(--tab-color)!important;
}
.rrhh-data-tabs button span svg{
  width:19px!important;
  height:19px!important;
}
.rrhh-data-tabs button b{
  font-size:8.5px!important;
  line-height:10px!important;
  font-weight:700!important;
  text-align:center!important;
  white-space:normal!important;
}
.rrhh-data-tabs button.active{
  background:#f1f7ff!important;
  border-bottom-color:var(--tab-color)!important;
}

/* 4.17.032 - visibilidad de contraseñas */
.login-password-field,.account-password-field{position:relative;display:block;width:100%}
.login-password-field input,.account-password-field input{width:100%;padding-right:42px!important;box-sizing:border-box}
.password-visibility{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:34px!important;height:30px!important;min-width:34px!important;padding:0!important;border:0!important;background:transparent!important;color:#0a315f!important;font-size:18px!important;line-height:30px!important;cursor:pointer!important;box-shadow:none!important}
.password-visibility:hover{background:#edf5ff!important;color:#0878ec!important;border-radius:5px!important}
.password-eye-icon{width:20px;height:20px;display:block;margin:auto;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}

/* 4.17.647 · Control horario: cajas de empleado y hora alineadas con las tarjetas y con pictogramas */
.att-top-grid{grid-template-columns:1fr 1fr!important;gap:10px!important}
.att-employee-card,.att-clock-card{min-height:96px!important;padding:12px 18px!important;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:16px!important;text-align:left!important}
.att-big-icon.att-picto{width:64px;height:64px;flex:0 0 64px;background:transparent!important;border-radius:50%;padding:0}
.att-big-icon.att-picto img{width:64px;height:64px;object-fit:contain;display:block}
.att-clock-txt{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0}
.att-clock-card .att-clock-txt strong{font-size:30px;margin:2px 0}
.att-employee-card strong{font-size:17px}
@media (max-width:1100px){.att-top-grid{grid-template-columns:1fr!important}}
/* 4.17.648 · Control horario: bajar el contenido para que no tape el subtítulo */
html body[data-route="control_horario"] #attendance-online-shell{padding-top:16px!important}
