
/* Carillia 2.3.14: Bootstrap 5.3 form and personnel layer. */
:root{--erp-primary:#3455db;--erp-deep:#172b57;--erp-accent:#08a696;--erp-border:#dfe5f0;--erp-muted:#64748b;--bs-primary:#3455db;--bs-primary-rgb:52,85,219}
body{background:#f3f5fb!important;color:#26334d!important;font-family:"Segoe UI",Inter,Arial,sans-serif!important}
body .plus-hero.erp-person-hero{background:linear-gradient(115deg,#263f85 0%,#324ec7 58%,#0c9398 100%)!important;box-shadow:0 14px 38px #253e8520;padding:32px!important;border:0!important;position:relative;overflow:hidden}
body .erp-person-hero h1,body .erp-person-hero h1 *{color:#fff!important;-webkit-text-fill-color:#fff!important;opacity:1!important;text-shadow:none!important;font-size:clamp(1.8rem,3vw,2.7rem)!important;line-height:1.15!important;letter-spacing:-.035em!important;font-weight:750!important;margin:12px 0!important}
body .erp-person-hero .eyebrow{color:#c5f5ee!important;font-size:.72rem!important;letter-spacing:.16em!important}body .erp-person-hero p,body .erp-person-meta,body .erp-person-meta span{color:#f0f5ff!important;font-size:.95rem!important;font-weight:400!important;opacity:1!important}.erp-person-meta{display:flex;gap:12px;flex-wrap:wrap;margin-top:20px}.erp-person-meta span{background:#ffffff18;padding:8px 12px;border:1px solid #ffffff24;border-radius:8px;overflow-wrap:anywhere}
body .erp-context{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:.79rem;background:#e9eefb;border:1px solid #d5def7;border-radius:10px;padding:10px 15px;margin:0 0 18px;color:#3e527e}.erp-context strong{color:#243e86}.erp-back{display:inline-block;font-size:.85rem;color:#415eb5!important;text-decoration:none;margin-bottom:14px}
.erp-pagehead{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:10px 0 28px}.erp-pagehead h1{color:#192d56!important;font-size:clamp(1.7rem,2.8vw,2.4rem)!important;margin:8px 0!important;letter-spacing:-.04em!important;font-weight:750!important}.erp-pagehead p{color:#65738b!important;margin:8px 0 0;font-size:.95rem!important}.erp-kicker{display:block;font-size:.71rem;font-weight:700;letter-spacing:.14em;color:#5871bc}.erp-state{font-size:.77rem;color:#2340a6;background:#edf1ff;padding:8px 13px;border-radius:99px;font-weight:650;white-space:nowrap}
body .erp-personnel-nav{display:flex;flex-wrap:wrap;gap:7px;border-bottom:1px solid #dfe6f2;background:transparent!important;padding:0 0 14px!important;margin:0 0 25px!important;box-shadow:none!important;min-height:0!important}body .erp-personnel-nav a{display:inline-flex;align-items:center;color:#3c5077!important;background:#fff;border:1px solid #dce3f1;border-radius:9px;padding:9px 13px;text-decoration:none;font-size:.83rem!important;font-weight:600!important}.erp-personnel-nav a:hover{color:#2646c7!important;border-color:#a7b9f1;background:#f7f9ff}.erp-self-nav a:first-child{background:#eef2ff!important;color:#2946ac!important}.erp-actions{display:flex;gap:9px;flex-wrap:wrap;margin:20px 0 26px}
body .erp-form-card{background:white!important;border:1px solid var(--erp-border)!important;border-radius:16px!important;padding:28px!important;margin:0 0 24px!important;box-shadow:0 5px 20px #253e8505!important;scroll-margin-top:95px}body .erp-form-card>header{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:26px}.erp-form-card header div{flex:1}.erp-form-card h2{font-size:1.12rem!important;color:#24365b!important;font-weight:700!important;margin:0 0 7px!important;letter-spacing:-.02em}.erp-form-card header p{font-size:.84rem;color:#71809a;margin:0}.erp-group-number{flex:none;display:flex;width:38px;height:38px;align-items:center;justify-content:center;color:#3455db;background:#eef2ff;border:1px solid #e2e8fc;border-radius:12px;font-size:.83rem;font-weight:700}
body .erp-editor-tools{display:flex;justify-content:space-between;align-items:center;gap:16px;background:linear-gradient(100deg,#edf2ff,#f1faf9);border:1px solid #dce5fb;border-radius:13px;padding:17px 20px;margin-bottom:20px}.erp-editor-tools strong{display:block;font-size:.87rem;color:#284071}.erp-editor-tools span{display:block;font-size:.79rem;color:#697a98;margin-top:3px}.erp-form-index{display:flex;gap:6px;overflow-x:auto;scrollbar-width:thin;margin:0 0 22px;padding-bottom:5px}.erp-form-index a{flex:none;text-decoration:none;color:#526584!important;font-size:.79rem;border:1px solid #dfe5f2;border-radius:8px;background:#fff;padding:9px 11px}.erp-form-index a span{color:#3455db;font-weight:700;margin-right:7px}
body .erp-editor .row,body .erp-form-card .row{display:flex;flex-wrap:wrap;--bs-gutter-x:1.5rem;--bs-gutter-y:1.5rem}.erp-field{height:100%;position:relative}body .erp-field .form-label,body .erp-form-card .form-label{display:block;font-size:.84rem!important;font-weight:600!important;color:#3c4b68!important;line-height:1.45!important;margin-bottom:8px!important;letter-spacing:0!important;text-transform:none!important}.erp-required{color:#c24462;font-weight:700;margin-left:4px}.erp-editor [data-required]{display:none!important}
body .erp-editor input.form-control,body .erp-editor textarea.form-control,body .erp-editor select.form-select,body .erp-form-card .form-control,body .erp-form-card .form-select{display:block;width:100%;max-width:100%;min-height:46px!important;padding:11px 13px!important;background-color:#fff!important;color:#263958!important;border:1px solid #cfd8e9!important;border-radius:9px!important;font-size:.94rem!important;font-weight:400!important;line-height:1.45!important;box-shadow:0 1px 2px #243e8510!important;transition:border-color .15s,box-shadow .15s!important;box-sizing:border-box}
body .erp-editor select.form-select,body .erp-form-card select.form-select{padding-right:36px!important}body .erp-form-card textarea.form-control{min-height:128px!important;resize:vertical}body .erp-editor input:focus,body .erp-editor select:focus,body .erp-editor textarea:focus,body .erp-form-card .form-control:focus,body .erp-form-card .form-select:focus{outline:0!important;border-color:#7b92ed!important;box-shadow:0 0 0 4px #3455db15!important}body .erp-editor input[readonly],body .erp-editor input:disabled{background:#f0f3f9!important;color:#718198!important}.erp-field .form-text{font-size:.76rem!important;color:#76839a!important;line-height:1.5;margin-top:7px}.erp-check{display:flex;align-items:center;gap:10px;padding:12px 0}.erp-check .form-label{margin:0!important}.erp-check input.form-check-input{float:none!important;margin:0!important;min-height:0!important;width:19px!important;height:19px!important;flex:none}.erp-editor .invalid-feedback{font-size:.76rem!important;line-height:1.4}.erp-editor .errorlist{list-style:none;color:#b43552;font-size:.85rem;padding:12px 15px;background:#fff0f4;border:1px solid #f1d0db;border-radius:9px;margin:10px 0}
body .erp-savebar{position:sticky;bottom:12px;z-index:15;display:flex;justify-content:space-between;align-items:center;gap:20px;border:1px solid #dce3f1;background:#ffffffef;backdrop-filter:blur(12px);box-shadow:0 7px 30px #253e8515;border-radius:13px;padding:15px 20px;margin-top:25px}.erp-savebar p{margin:0!important;color:#718098;font-size:.79rem}.erp-savebar>div{display:flex;gap:10px}.erp-info{background:#f0f5ff!important;border:1px solid #dbe5fb!important;border-left:4px solid #6d89e5!important;border-radius:11px;padding:16px 20px;margin:0 0 22px;color:#4b6085;font-size:.87rem}.erp-info strong{color:#2f497d}.erp-info p{margin:5px 0 0!important;font-size:.85rem!important;line-height:1.65}.erp-info>a{display:inline-block;margin-top:10px;color:#3455db;font-weight:600}
body .btn{border-radius:9px!important;font-size:.84rem!important;line-height:1.4!important;padding:10px 15px!important;font-weight:600!important;text-decoration:none!important;box-shadow:none!important;transition:background .16s,border-color .16s,transform .16s!important;white-space:normal}body .btn-primary{--bs-btn-bg:#3455db;--bs-btn-border-color:#3455db;background:#3455db!important;color:#fff!important;border:1px solid #3455db!important}body .btn-primary:hover{background:#2948c4!important;transform:translateY(-1px)}body .btn-outline-primary{background:#fff!important;border:1px solid #b8c7f3!important;color:#3455db!important}body .btn-outline-primary:hover{background:#f0f4ff!important}body .btn-outline-danger{background:#fff!important;border:1px solid #e8b6c4!important;color:#ac3e5b!important}.btn-outline-secondary{border:1px solid #ccd7e8!important;background:#fff!important;color:#52647f!important}
.erp-definition-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin:0}.erp-definition-grid dt{font-size:.75rem;color:#7b89a0;font-weight:500;margin-bottom:6px}.erp-definition-grid dd{font-size:.92rem;color:#2b3f65;font-weight:600;margin:0}.erp-period{display:flex;align-items:flex-end;flex-wrap:wrap;gap:16px;margin-bottom:25px}.erp-period>div{width:190px}.erp-period button{min-height:46px}.erp-method{font-size:.78rem;color:#7b88a0;margin-top:16px}.erp-method summary{cursor:pointer;font-weight:600}.erp-method p{line-height:1.7;margin-top:10px}
.erp-mail-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(320px,1fr);gap:24px}.erp-mail-layout:not(:has(>aside)){grid-template-columns:1fr}.erp-message{border:1px solid #e0e7f3;border-radius:12px;padding:20px;margin-bottom:16px;background:#fff}.erp-unread{border-left:4px solid #5974e4;background:#f8faff}.erp-message-top{display:flex;justify-content:space-between;gap:12px;color:#77869f;font-size:.75rem;margin-bottom:10px}.erp-message-top>span{font-weight:600;color:#526588}.erp-message h3{font-size:1.02rem!important;letter-spacing:0!important;color:#243d70!important;margin-bottom:14px!important}.erp-message-body{font-size:.91rem;line-height:1.75;overflow-wrap:anywhere;color:#4b5d7d;margin:0 0 17px}.erp-read{font-size:.73rem;color:#7d8ba1}.erp-empty{text-align:center;padding:45px 15px;color:#8590a7}.erp-empty>span{font-size:2.6rem;display:block;color:#9eb3ef;margin-bottom:15px}.erp-empty h3{color:#4f6284!important;font-size:1rem!important}.erp-empty p{font-size:.85rem}.erp-pagination{display:flex;gap:15px;font-size:.8rem;align-items:center;padding-top:16px}.erp-sent{border-bottom:1px solid #e5eaf5;padding:12px 0;font-size:.85rem}.erp-sent summary{font-weight:600;color:#40577f;cursor:pointer}.erp-sent small{display:block;color:#8190a6;margin:7px 0}.erp-credential{display:block;padding:17px;border:1px dashed #b7c7ec;background:#f4f7ff;border-radius:8px;margin-bottom:18px;font-size:1rem;overflow-wrap:anywhere}
body .plus-input-trigger{display:none!important}body .plus-input-dialog{border-radius:16px!important;border-color:#d8e2f3!important;font-size:.9rem;color:#314666;max-width:720px}body .plus-input-dialog .plus-nav{background:transparent!important;min-height:0!important;box-shadow:none!important}.erp-assist-button{display:inline-flex;margin-bottom:16px}body .plus-stats article{border:1px solid #dde6f6!important;background:linear-gradient(110deg,#f4f7ff,#f1faf9)!important;border-radius:12px!important}body .plus-stats strong{color:#375cc4!important}body .table-responsive .table th{background:#f4f7fd!important;color:#687c9f!important;font-size:.69rem!important;letter-spacing:.035em;white-space:nowrap}body .table-responsive .table td{font-size:.84rem!important;color:#41587c;padding:15px 14px!important}body .table-responsive .table td strong{color:#3455b5}
@media(max-width:1000px){.erp-mail-layout{grid-template-columns:1fr}.erp-definition-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){body .erp-form-card{padding:20px!important}.erp-pagehead{align-items:flex-start;flex-direction:column;gap:12px}.erp-editor-tools{flex-direction:column;align-items:stretch}.erp-form-index{margin-left:-3px}.erp-person-meta{display:block}.erp-person-meta span{display:block;margin-top:8px}.erp-savebar{flex-direction:column;align-items:stretch;bottom:6px;padding:13px!important;gap:10px}.erp-savebar>div{justify-content:flex-end}.erp-definition-grid{gap:18px}.erp-period>div{width:calc(50% - 8px)}.erp-period .btn{width:100%}.erp-message-top{flex-direction:column;gap:5px}body .erp-person-hero{padding:24px!important}.erp-context{font-size:.73rem!important}}
@media print{.erp-context,.erp-actions,.erp-personnel-nav,.erp-savebar,.erp-editor-tools{display:none!important}.erp-form-card{box-shadow:none!important;break-inside:avoid}}
/* Isolate the editor grid from legacy .row/nav/form rules. */
body form.erp-editor{display:block!important;background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;max-width:none!important}
body .erp-editor .row.g-4,body .erp-form-card .row.g-4,body .erp-editor .lineform.row{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:24px!important;margin:0!important;align-items:start!important}
body .erp-editor .row>[class*="col-"],body .erp-form-card .row.g-4>[class*="col-"]{width:auto!important;max-width:none!important;min-width:0!important;flex:none!important;padding:0!important;margin:0!important}
body .erp-editor .row>.col-xl-12,body .erp-form-card .row.g-4>.col-xl-12{grid-column:1/-1}
body nav.erp-form-index,body nav.erp-pagination{background:transparent!important;min-height:0!important;box-shadow:none!important;border:0!important;position:static!important;width:auto!important;padding:0!important;color:#657da2!important}
body nav.erp-form-index{display:flex!important;gap:8px!important;padding-bottom:6px!important;margin-bottom:24px!important}
body nav.erp-pagination{display:flex!important;gap:16px!important;border-top:1px solid #e4eafa!important;padding-top:18px!important}
body .erp-editor .lineform{border:1px solid #e0e7f3;border-radius:12px;padding:20px!important;margin-bottom:16px!important;background:#f8faff}
@media(max-width:1200px){body .erp-editor .row.g-4,body .erp-form-card .row.g-4,body .erp-editor .lineform.row{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:640px){body .erp-editor .row.g-4,body .erp-form-card .row.g-4,body .erp-editor .lineform.row{grid-template-columns:1fr!important;gap:20px!important}}
body .carillia-shop-identity .carillia-shop-title{color:#fff!important;-webkit-text-fill-color:#fff!important;opacity:1!important;font-weight:700!important}
body .carillia-shop-identity .carillia-shop-eyebrow{color:#a6c1de!important;opacity:1!important}
body .carillia-shop-identity .carillia-shop-caption{color:#d0deef!important;opacity:1!important}
@media(max-width:900px){
 body #sidebar.carillia-sidebar{width:min(86vw,300px)!important;max-width:300px!important;transform:translateX(-105%)!important;visibility:hidden!important;transition:transform .2s ease,visibility .2s!important;z-index:1050!important;box-shadow:none!important}
 body #sidebar.carillia-sidebar.open{transform:translateX(0)!important;visibility:visible!important;box-shadow:20px 0 60px #16243d45!important}
 body #menu-toggle{display:inline-flex!important;align-items:center;justify-content:center;min-width:40px;min-height:40px}
 body .shell.carillia-shell{display:block!important}body .main,body main.carillia-main{margin-left:0!important;width:100%!important;min-width:0!important}
}
