.dashboard{gap:16px;display:grid}.dashboard-panel{background:#f7f9fb;border:1px solid #bcc7d1;border-radius:6px}.dashboard-panel--error{background:#fef2f2;border-color:#fca5a5}.dashboard-panel__header{background:linear-gradient(#eef3f7 0%,#dde6ee 100%);border-bottom:1px solid #c8d2db;padding:10px 14px}.dashboard-panel--error .dashboard-panel__header{background:linear-gradient(#fee2e2 0%,#fecaca 100%);border-color:#fca5a5}.dashboard-panel__header h2{color:#1f2a36;margin:0;font-size:1rem}.dashboard-panel__body{color:#334250;padding:14px;line-height:1.55}.dashboard-panel__body p{margin:0}.dashboard-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px;display:grid}.dashboard-card{background:#fff;border:1px solid #d6dee6;border-radius:6px;transition:box-shadow .15s;display:flex;overflow:hidden}.dashboard-card:hover{box-shadow:0 2px 8px #00000014}.dashboard-card__accent{flex-shrink:0;width:5px;display:block}.dashboard-card__content{flex:1;padding:14px}.dashboard-card__label{color:#5f6f7f;text-transform:uppercase;letter-spacing:.04em;margin-bottom:6px;font-size:.75rem;display:block}.dashboard-card__value{color:#1f2a36;margin-bottom:6px;font-size:1.6rem;line-height:1.1;display:block}.dashboard-card__detail{color:#4c5c6b;margin:0;font-size:.82rem;line-height:1.4}.dashboard-actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.dashboard-btn{color:#fff;cursor:pointer;background:#2563eb;border:none;border-radius:5px;padding:7px 16px;font-family:inherit;font-size:.88rem;text-decoration:none;transition:background .15s;display:inline-block}.dashboard-btn:hover{background:#1d4ed8}.dashboard-btn--secondary{background:#6b7280}.dashboard-btn--secondary:hover{background:#4b5563}.dashboard-loading{text-align:center;color:#6b7280;padding:40px 14px}@media (width<=700px){.dashboard-grid{grid-template-columns:1fr 1fr}}@media (width<=480px){.dashboard-grid{grid-template-columns:1fr}}.entity-page{gap:12px;display:grid}.entity-toolbar{background:linear-gradient(#eef3f7 0%,#dde6ee 100%);border:1px solid #bcc7d1;justify-content:space-between;align-items:center;gap:12px;padding:10px 12px;display:flex}.entity-toolbar__title h2{color:#1f2a36;margin:0;font-size:1.05rem}.entity-toolbar__title p{color:#5f6f7f;margin:4px 0 0;font-size:.85rem}.entity-toolbar__actions{flex-wrap:wrap;gap:8px;display:flex}.erp-button{color:#1f2a36;cursor:pointer;background:linear-gradient(#fdfefe 0%,#dfe6ec 100%);border:1px solid #9eacba;padding:9px 12px;font-weight:600}.erp-button:hover{background:linear-gradient(#f7fafc 0%,#d4dde5 100%)}.erp-button:disabled{opacity:.7;cursor:not-allowed}.erp-button--primary{color:#fff;background:linear-gradient(#566f87 0%,#3e5368 100%);border-color:#4f677f}.erp-button--primary:hover{background:linear-gradient(#607a93 0%,#455d73 100%)}.erp-button--danger{color:#fff;background:linear-gradient(#9e5a5a 0%,#7f4343 100%);border-color:#8f4a4a}.erp-button--danger:hover:not(:disabled){background:linear-gradient(#ac6666 0%,#8b4a4a 100%)}.entity-filters{background:#f7f9fb;border:1px solid #bcc7d1;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:12px;display:grid}.entity-field{gap:4px;display:grid}.entity-field label{color:#4b5b69;text-transform:uppercase;letter-spacing:.03em;font-size:.78rem;font-weight:600}.entity-field input,.entity-field select{color:#1f2a36;background:#fff;border:1px solid #aeb8c2;height:34px;padding:0 10px}.entity-field__input-wrap{flex-direction:column;display:flex}.entity-field__input-wrap input{width:100%}.entity-field__prefix-wrap{align-items:stretch;display:flex}.entity-field__prefix-wrap input{flex:1;min-width:0}.entity-field__prefix-wrap--has-prefix input{border-left:none}.entity-field__prefix{color:#334250;white-space:nowrap;background:#e8eef4;border:1px solid #aeb8c2;border-right:none;flex-shrink:0;align-items:center;height:34px;padding:0 8px;font-size:.92rem;font-weight:700;display:inline-flex}.entity-field__label-hint{color:#5f6f7f;text-transform:none;letter-spacing:0;margin-left:4px;font-size:.78rem;font-weight:400}.entity-field__sub-hint{color:#4b5b69;margin-top:3px;font-size:.75rem;line-height:1.3;display:block}.entity-panel{background:#fdfefe;border:1px solid #bcc7d1}.entity-panel__header{background:linear-gradient(#eef3f7 0%,#dde6ee 100%);border-bottom:1px solid #c8d2db;padding:10px 12px}.entity-panel__header h3{color:#1f2a36;margin:0;font-size:.98rem}.entity-panel__title-block{gap:4px;display:grid}.entity-panel__title-block p{color:#5f6f7f;margin:0;font-size:.84rem}.entity-table-wrap{overflow-x:auto}.entity-table{border-collapse:collapse;width:100%;font-size:.92rem}.entity-table thead th{text-align:left;color:#334250;white-space:nowrap;background:#e8eef4;border-bottom:1px solid #bcc7d1;border-right:1px solid #d3dbe3;padding:10px 12px}.entity-table tbody td{color:#2f3d4b;background:#fff;border-bottom:1px solid #d8e0e7;border-right:1px solid #edf1f5;padding:10px 12px}.entity-table__row--interactive{cursor:pointer}.entity-table__row--interactive:hover td{background:#f3f7fa}.entity-status{color:#334250;background:#eef3f7;border:1px solid #aeb8c2;padding:3px 8px;font-size:.78rem;font-weight:700;display:inline-block}.entity-status--active{color:#2f5a39;background:#edf7f0;border-color:#8cb19a}.entity-status--inactive{color:#7a4141;background:#faf0f0;border-color:#c7b1b1}.entity-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:12px;display:grid}.entity-form-grid--users{grid-template-columns:repeat(3,minmax(0,1fr))}.entity-form-actions{justify-content:flex-end;gap:8px;padding:0 12px 12px;display:flex}.entity-form-actions--between{justify-content:space-between;align-items:center}.entity-form-actions__right{gap:8px;display:flex}.entity-feedback{border:1px solid;padding:10px 12px;font-size:.9rem}.entity-feedback--error{color:#7a2f2f;background:#faf0f0;border-color:#d6b0b0}.entity-feedback--success{color:#2f5a39;background:#eef7f0;border-color:#a8c7b0}.entity-modal-backdrop{z-index:9999;background:#0f172a8c;justify-content:center;align-items:center;padding:24px;display:flex;position:fixed;inset:0}.entity-modal{background:#fdfefe;border:1px solid #bcc7d1;flex-direction:column;width:min(980px,100%);max-height:90vh;display:flex;overflow:hidden;box-shadow:0 24px 80px #0f172a59}.entity-modal--large{width:min(1180px,100%)}.entity-modal__header{background:linear-gradient(#eef3f7 0%,#dde6ee 100%);border-bottom:1px solid #c8d2db;justify-content:space-between;align-items:center;gap:12px;padding:10px 12px;display:flex}.entity-modal__header h3{color:#1f2a36;margin:0;font-size:.98rem}.entity-modal__close{color:#1f2a36;cursor:pointer;background:linear-gradient(#fdfefe 0%,#dfe6ec 100%);border:1px solid #9eacba;width:34px;height:34px;font-size:1.2rem;font-weight:700}.entity-modal__content{background:#eef2f6;padding:14px 14px 16px}.entity-modal__content--fit{flex-direction:column;flex:1;gap:14px;min-height:0;display:flex;overflow:hidden}.entity-modal__tabs{gap:8px;display:flex}.entity-modal__tab{color:#334250;cursor:pointer;background:linear-gradient(#fdfefe 0%,#dfe6ec 100%);border:1px solid #aeb8c2;padding:9px 14px;font-weight:700}.entity-modal__tab--active{color:#fff;background:linear-gradient(#566f87 0%,#3e5368 100%);border-color:#4f677f}.entity-modal__panel{background:#fdfefe;border:1px solid #c8d2db}.entity-modal__panel--fill{flex-direction:column;flex:1;min-height:0;display:flex;overflow:hidden}.entity-modal__panel-body{padding:14px}.entity-modal__panel-body--scroll{flex:1;min-height:0;padding:14px;overflow-y:auto}.entity-modal__status-block{background:#f7f9fb;border:1px solid #c8d2db;justify-content:space-between;align-items:center;gap:12px;margin:0 12px 12px;padding:12px;display:flex}.entity-modal__meta{background:#f7fafc;border:1px solid #d6dee6;align-items:center;gap:10px;margin-bottom:12px;padding:10px 12px;display:flex}.entity-modal__meta-label{text-transform:uppercase;letter-spacing:.03em;color:#5b6b79;font-size:.78rem;font-weight:700}.entity-modal__meta-value{color:#21313f;font-size:.92rem;font-weight:600}.entity-modal__footer{background:linear-gradient(#edf3f7 0%,#e2e9f0 100%);border-top:1px solid #c8d2db;justify-content:space-between;align-items:center;gap:12px;padding:12px 14px 14px;display:flex}.entity-modal__footer--sticky{z-index:3;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:linear-gradient(#edf3f7f5 0%,#e2e9f0fa 100%);padding:12px 14px;position:sticky;bottom:0}.entity-modal__footer-actions{justify-content:flex-end;gap:8px;display:flex}.entity-badge{white-space:nowrap;border:1px solid;padding:4px 8px;font-size:.76rem;font-weight:700;display:inline-block}.entity-badge--success{color:#2f5a39;background:#edf7f0;border-color:#8cb19a}.entity-badge--danger{color:#7a3434;background:#faf0f0;border-color:#d0aaaa}.entity-permission-table-wrap{background:#fff;border:1px solid #d7dfe6;overflow-x:auto}.entity-permission-table{border-collapse:collapse;table-layout:fixed;width:100%;font-size:.9rem}.entity-permission-table col:first-child{width:40%}.entity-permission-table col:nth-child(2),.entity-permission-table col:nth-child(3),.entity-permission-table col:nth-child(4){width:20%}.entity-permission-table thead th{text-align:left;color:#344556;white-space:nowrap;vertical-align:middle;background:#eef3f7;border-bottom:1px solid #cfd8e0;border-right:1px solid #dde5ec;padding:10px 12px}.entity-permission-table thead th:last-child{border-right:none}.entity-permission-table tbody td{vertical-align:middle;color:#2f3d4b;background:#fff;border-bottom:1px solid #e1e8ee;border-right:1px solid #edf2f6;padding:10px 12px}.entity-permission-table tbody td:last-child{border-right:none}.entity-permission-table tbody tr:hover td{background:#f7fafc}.entity-permission-table td:nth-child(2),.entity-permission-table td:nth-child(3),.entity-permission-table td:nth-child(4),.entity-permission-table th:nth-child(2),.entity-permission-table th:nth-child(3),.entity-permission-table th:nth-child(4){white-space:nowrap}.entity-permission-code{color:#6b7b88;word-break:break-word;margin-top:4px;font-size:.74rem;display:block}.entity-permission-select{color:#361f1f;background:#fff;border:1px solid #aeb8c2;width:100%;min-width:0;height:34px;padding:0 10px}.entity-permission-group__header{background:#eef3f7;border:1px solid #d0dae3;border-bottom:none;padding:8px 12px}.entity-permission-group__header h4{color:#334250;text-transform:uppercase;letter-spacing:.04em;margin:0;font-size:.88rem}.entity-permission-group{margin-bottom:16px}@media (width<=1100px){.entity-filters,.entity-form-grid,.entity-form-grid--users{grid-template-columns:1fr}.entity-toolbar{flex-direction:column;align-items:flex-start}}@media (width<=768px){.entity-modal-backdrop{padding:12px}.entity-modal{width:100%;max-height:100vh}.entity-modal__status-block,.entity-form-actions,.entity-form-actions--between,.entity-form-actions__right,.entity-modal__footer,.entity-modal__footer-actions{flex-direction:column-reverse;align-items:stretch}.entity-form-actions .erp-button,.entity-form-actions__right .erp-button,.entity-modal__footer .erp-button,.entity-modal__footer-actions .erp-button{width:100%}}.entity-obras-grid{grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:8px;margin-top:8px;display:grid}.entity-obra-card{cursor:pointer;text-align:left;color:#1f2a36;background:#fff;border:1px solid #d0dae3;align-items:center;gap:10px;padding:10px 12px;font-family:inherit;font-size:.9rem;transition:background .1s,border-color .1s;display:flex}.entity-obra-card:hover{background:#f3f7fa;border-color:#9eacba}.entity-obra-card--selected{background:#edf3f8;border-color:#4f677f}.entity-obra-card--selected:hover{background:#e4ebf2}.entity-obra-card__checkbox{flex-shrink:0;justify-content:center;align-items:center;display:flex}.entity-obra-card__check{color:#0000;background:#fff;border:2px solid #9eacba;justify-content:center;align-items:center;width:22px;height:22px;font-size:.75rem;font-weight:700;transition:all .1s;display:flex}.entity-obra-card__check--active{color:#fff;background:#3e5368;border-color:#3e5368}.entity-obra-card__info{flex-direction:column;gap:2px;min-width:0;display:flex}.entity-obra-card__tag{color:#5f6f7f;font-size:.78rem}@media (width<=768px){.entity-obras-grid{grid-template-columns:1fr}}.app-shell{background:#dfe3e8;grid-template-columns:250px 1fr;min-height:100vh;display:grid}.app-sidebar{color:#f4f7fa;background:#1f2a36;border-right:1px solid #16202a;flex-direction:column;display:flex}.app-sidebar__brand{background:#18222d;border-bottom:1px solid #31404f;align-items:center;gap:12px;padding:18px 16px;display:flex}.app-sidebar__brand strong{font-size:1.45rem;line-height:1.1;display:block}.app-sidebar__brand span{color:#a7b3bf;text-transform:uppercase;letter-spacing:.04em;margin-top:2px;font-size:.78rem;display:block}.app-sidebar__logo{color:#fff;background:#2d4358;border:1px solid #46607a;place-items:center;width:38px;height:38px;font-size:.85rem;font-weight:700;display:grid}.app-sidebar__nav{gap:2px;padding:12px 8px;display:grid}.app-sidebar__link{color:#d8e0e7;border:1px solid #0000;border-radius:2px;padding:10px 12px;font-size:.96rem;display:block}.app-sidebar__link:hover{background:#2a3948;border-color:#3c4f61}.app-sidebar__link--active{color:#16202a;background:#e7edf3;border-color:#bac6d1;font-weight:600}.app-sidebar__footer{border-top:1px solid #31404f;margin-top:auto;padding:12px 8px 16px}.app-sidebar__logout{color:#1b2835;cursor:pointer;background:#d9dfe5;border:1px solid #aeb8c2;width:100%;padding:10px 12px;font-weight:600}.app-sidebar__logout:hover{background:#cfd7df}.app-main{flex-direction:column;min-width:0;display:flex}.app-topbar{background:linear-gradient(#f8fafc 0%,#edf2f6 100%);border-bottom:1px solid #c3ccd5;padding:14px 22px 12px}.app-topbar__context{color:#6c7a88;text-transform:uppercase;letter-spacing:.08em;margin-bottom:4px;font-size:.72rem}.app-topbar h1{color:#1f2a36;margin:0;font-size:1.7rem;font-weight:700}.app-content{padding:18px}@media (width<=900px){.app-shell{grid-template-columns:1fr}.app-sidebar{border-bottom:1px solid #16202a;border-right:none}}*{box-sizing:border-box}html,body,#root{min-height:100%;margin:0;font-family:Segoe UI,Tahoma,Arial,sans-serif;font-size:14px}body{color:#1f2a36;background:#dfe3e8}a{color:inherit;text-decoration:none}button,input,textarea,select{font:inherit}:root{color:#0f172a;background:#f8fafc}
