.login-container{display:flex;justify-content:center;align-items:center;min-height:100vh;background:linear-gradient(135deg,#667eea,#764ba2)}.login-box{background:#fff;padding:40px;border-radius:8px;box-shadow:0 10px 25px #0003;width:100%;max-width:400px}.login-box h1{text-align:center;margin-bottom:30px;color:#333;font-size:24px}.login-box .form-group{margin-bottom:20px}.login-box .form-group label{display:block;margin-bottom:8px;color:#555;font-weight:500}.login-box .form-group input{width:100%;padding:12px;border:1px solid #ddd;border-radius:4px;font-size:16px;transition:border-color .2s}.login-box .form-group input:focus{outline:none;border-color:#667eea}.login-box .form-group input:disabled{background-color:#f5f5f5;cursor:not-allowed}.login-box .error-message{background-color:#fee;color:#c33;padding:12px;border-radius:4px;margin-bottom:20px;font-size:14px}.login-box .btn{width:100%;padding:12px;border:none;border-radius:4px;font-size:16px;font-weight:500;cursor:pointer;transition:background-color .2s}.login-box .btn.btn-primary{background-color:#667eea;color:#fff}.login-box .btn.btn-primary:hover:not(:disabled){background-color:#5568d3}.login-box .btn.btn-primary:disabled{opacity:.6;cursor:not-allowed}.management{width:100%;max-width:1400px;margin:0 auto}.management__navigation{display:flex;gap:10px;padding:20px 20px 0;border-bottom:2px solid #dee2e6}.management__navigation .nav-button{padding:10px 20px;border:none;background:transparent;cursor:pointer;font-size:16px;font-weight:500;color:#6c757d;border-bottom:2px solid transparent;margin-bottom:-2px;transition:all .2s}.management__navigation .nav-button:hover{color:#007bff}.management__navigation .nav-button.active{color:#007bff;border-bottom-color:#007bff}.management__content{padding:20px}.workflow-management{width:100%;padding:0;max-width:100%;margin:0}.workflow-management__header{display:flex;align-items:center;justify-content:space-between;margin-bottom:30px;gap:15px}.workflow-management__header h1{margin:0;flex:1}.workflow-management .btn{padding:8px 16px;border:none;border-radius:4px;cursor:pointer;font-size:14px;transition:background-color .2s}.workflow-management .btn.btn-primary{background-color:#007bff;color:#fff}.workflow-management .btn.btn-primary:hover:not(:disabled){background-color:#0056b3}.workflow-management .btn.btn-primary:disabled{opacity:.6;cursor:not-allowed}.workflow-management .btn.btn-secondary{background-color:#6c757d;color:#fff}.workflow-management .btn.btn-secondary:hover{background-color:#545b62}.workflow-management .btn.btn-sm{padding:4px 8px;font-size:12px}.workflow-management .error-message{color:#dc3545;padding:10px;background-color:#f8d7da;border-radius:4px;margin:10px 0}.workflow-management .empty-state{text-align:center;padding:40px;color:#6c757d}.workflow-configurations-list .configurations-table{width:100%;border-collapse:collapse;background:#fff;border-radius:4px;overflow:hidden;box-shadow:0 2px 4px #0000001a}.workflow-configurations-list .configurations-table thead{background-color:#f8f9fa}.workflow-configurations-list .configurations-table thead th{padding:12px;text-align:left;font-weight:600;border-bottom:2px solid #dee2e6}.workflow-configurations-list .configurations-table tbody tr{border-bottom:1px solid #dee2e6}.workflow-configurations-list .configurations-table tbody tr:hover{background-color:#f8f9fa}.workflow-configurations-list .configurations-table tbody tr td{padding:12px}.workflow-configurations-list .configurations-table .status-badge{padding:4px 8px;border-radius:12px;font-size:12px;font-weight:500}.workflow-configurations-list .configurations-table .status-badge.active{background-color:#d4edda;color:#155724}.workflow-configurations-list .configurations-table .status-badge.inactive{background-color:#f8d7da;color:#721c24}.workflow-configuration-detail .config-info{background:#fff;padding:20px;border-radius:4px;margin-bottom:30px;box-shadow:0 2px 4px #0000001a}.workflow-configuration-detail .config-info .form-group{margin-bottom:15px}.workflow-configuration-detail .config-info .form-group label{display:block;margin-bottom:5px;font-weight:500}.workflow-configuration-detail .config-info .form-group input,.workflow-configuration-detail .config-info .form-group textarea{width:100%;padding:8px;border:1px solid #ced4da;border-radius:4px;font-size:14px}.workflow-configuration-detail .config-info .form-group textarea{resize:vertical}.workflow-configuration-detail .config-info .form-row{display:grid;grid-template-columns:1fr 1fr;gap:15px}.workflow-configuration-detail .config-info .info-section{margin-top:15px;padding-top:15px;border-top:1px solid #dee2e6}.workflow-configuration-detail .config-info .info-section p{margin:5px 0}.workflow-configuration-detail .workflows-section .section-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.workflow-configuration-detail .workflows-section .section-header h2{margin:0}.workflow-configuration-detail .workflows-section .workflows-list-inline{display:flex;flex-direction:column;gap:20px}.workflow-configuration-detail .workflows-section .workflows-list-inline .step-card-inline{margin-bottom:0}.workflow-configuration-detail .inline-workflow-editor{background:#fff;border-radius:4px;box-shadow:0 2px 4px #0000001a;overflow:hidden}.workflow-configuration-detail .inline-workflow-editor .workflow-header-collapsed{display:flex;justify-content:space-between;align-items:center;padding:15px 20px;cursor:pointer;background-color:#f8f9fa;border-bottom:1px solid #dee2e6;transition:background-color .2s}.workflow-configuration-detail .inline-workflow-editor .workflow-header-collapsed:hover{background-color:#e9ecef}.workflow-configuration-detail .inline-workflow-editor .workflow-header-collapsed .workflow-header-left{display:flex;align-items:center;gap:10px;flex:1}.workflow-configuration-detail .inline-workflow-editor .workflow-header-collapsed .workflow-header-left .expand-icon{font-size:12px;color:#6c757d;width:20px}.workflow-configuration-detail .inline-workflow-editor .workflow-header-collapsed .workflow-header-left h3{margin:0;font-size:16px}.workflow-configuration-detail .inline-workflow-editor .workflow-header-collapsed .workflow-header-left .workflow-meta{display:flex;gap:8px;margin-left:15px}.workflow-configuration-detail .inline-workflow-editor .workflow-header-collapsed .workflow-header-left .workflow-meta .badge{padding:4px 8px;background-color:#e9ecef;border-radius:12px;font-size:12px}.workflow-configuration-detail .inline-workflow-editor .workflow-header-collapsed .workflow-header-left .workflow-meta .status-badge{padding:4px 8px;border-radius:12px;font-size:12px;font-weight:500}.workflow-configuration-detail .inline-workflow-editor .workflow-header-collapsed .workflow-header-left .workflow-meta .status-badge.active{background-color:#d4edda;color:#155724}.workflow-configuration-detail .inline-workflow-editor .workflow-header-collapsed .workflow-header-left .workflow-meta .status-badge.inactive{background-color:#f8d7da;color:#721c24}.workflow-configuration-detail .inline-workflow-editor .workflow-header-collapsed .workflow-header-right .step-count{color:#6c757d;font-size:14px}.workflow-configuration-detail .inline-workflow-editor .workflow-expanded-content{padding:20px}.workflow-configuration-detail .inline-workflow-editor .workflow-expanded-content .workflow-edit-form{margin-bottom:20px;padding-bottom:20px;border-bottom:1px solid #dee2e6}.workflow-configuration-detail .inline-workflow-editor .workflow-expanded-content .workflow-edit-form .form-group{margin-bottom:15px}.workflow-configuration-detail .inline-workflow-editor .workflow-expanded-content .workflow-edit-form .form-group label{display:block;margin-bottom:5px;font-weight:500;font-size:14px}.workflow-configuration-detail .inline-workflow-editor .workflow-expanded-content .workflow-edit-form .form-group input,.workflow-configuration-detail .inline-workflow-editor .workflow-expanded-content .workflow-edit-form .form-group textarea,.workflow-configuration-detail .inline-workflow-editor .workflow-expanded-content .workflow-edit-form .form-group select{width:100%;padding:8px;border:1px solid #ced4da;border-radius:4px;font-size:14px}.workflow-configuration-detail .inline-workflow-editor .workflow-expanded-content .workflow-edit-form .form-row{display:grid;grid-template-columns:2fr 1fr auto;gap:15px;align-items:end}.workflow-configuration-detail .inline-workflow-editor .workflow-expanded-content .workflow-edit-form .form-actions{display:flex;gap:10px;margin-top:15px}.workflow-configuration-detail .inline-workflow-editor .workflow-expanded-content .workflow-view-mode{display:flex;justify-content:space-between;align-items:start;margin-bottom:20px;padding-bottom:20px;border-bottom:1px solid #dee2e6}.workflow-configuration-detail .inline-workflow-editor .workflow-expanded-content .workflow-view-mode .workflow-info-display{flex:1}.workflow-configuration-detail .inline-workflow-editor .workflow-expanded-content .workflow-view-mode .workflow-info-display p{margin:5px 0;font-size:14px}.workflow-configuration-detail .inline-workflow-editor .workflow-expanded-content .workflow-view-mode .workflow-info-display p strong{margin-right:8px}.workflow-configuration-detail .inline-workflow-editor .workflow-expanded-content .workflow-steps-section .section-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.workflow-configuration-detail .inline-workflow-editor .workflow-expanded-content .workflow-steps-section .section-header h4{margin:0;font-size:16px}.workflow-configuration-detail .inline-workflow-editor .workflow-expanded-content .workflow-steps-section .workflow-steps-list{display:flex;flex-direction:column;gap:10px}.workflow-configuration-detail .inline-workflow-editor .workflow-expanded-content .workflow-steps-section .workflow-steps-list .step-card-inline{background-color:#f8f9fa;padding:12px;border-radius:4px;border:1px solid #dee2e6}.workflow-configuration-detail .inline-workflow-editor .workflow-expanded-content .workflow-steps-section .workflow-steps-list .step-card-inline .step-header-inline{display:flex;justify-content:space-between;align-items:center}.workflow-configuration-detail .inline-workflow-editor .workflow-expanded-content .workflow-steps-section .workflow-steps-list .step-card-inline .step-header-inline strong{font-size:14px}.workflow-configuration-detail .inline-workflow-editor .workflow-expanded-content .workflow-steps-section .workflow-steps-list .step-card-inline .step-header-inline .step-order{margin-left:10px;color:#6c757d;font-size:12px}.workflow-configuration-detail .inline-workflow-editor .workflow-expanded-content .workflow-steps-section .workflow-steps-list .step-card-inline .step-header-inline .badge{margin-left:8px;padding:2px 6px;background-color:#e9ecef;border-radius:8px;font-size:11px}.workflow-configuration-detail .inline-step-editor{background-color:#f8f9fa;padding:15px;border-radius:4px;border:1px solid #dee2e6;margin-bottom:10px}.workflow-configuration-detail .inline-step-editor .step-editor-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px;padding-bottom:10px;border-bottom:1px solid #dee2e6}.workflow-configuration-detail .inline-step-editor .step-editor-header h4{margin:0;font-size:14px}.workflow-configuration-detail .inline-step-editor .step-editor-header .step-editor-actions{display:flex;gap:8px}.workflow-configuration-detail .inline-step-editor .step-editor-form .form-row{display:grid;grid-template-columns:2fr 1fr auto;gap:15px;margin-bottom:15px}.workflow-configuration-detail .inline-step-editor .step-editor-form .form-group{margin-bottom:15px}.workflow-configuration-detail .inline-step-editor .step-editor-form .form-group label{display:block;margin-bottom:5px;font-weight:500;font-size:14px}.workflow-configuration-detail .inline-step-editor .step-editor-form .form-group input[type=text],.workflow-configuration-detail .inline-step-editor .step-editor-form .form-group input[type=number],.workflow-configuration-detail .inline-step-editor .step-editor-form .form-group textarea{width:100%;padding:8px;border:1px solid #ced4da;border-radius:4px;font-size:14px}.workflow-configuration-detail .inline-step-editor .step-editor-form .form-group textarea{font-family:Courier New,monospace}.workflow-configuration-detail .inline-step-editor .step-editor-form .form-group textarea.error{border-color:#dc3545}.workflow-configuration-detail .inline-step-editor .step-editor-form .form-group input[type=checkbox]{margin-right:8px}.allowed-actions-editor .mode-selector{display:flex;gap:10px;margin-bottom:20px;border-bottom:1px solid #dee2e6}.allowed-actions-editor .mode-selector button{padding:8px 16px;border:none;background:none;cursor:pointer;border-bottom:2px solid transparent;margin-bottom:-1px}.allowed-actions-editor .mode-selector button.active{border-bottom-color:#007bff;color:#007bff;font-weight:500}.allowed-actions-editor .mode-selector button:hover:not(.active){color:#007bff}.allowed-actions-editor .simple-mode .form-group,.allowed-actions-editor .advanced-mode .form-group,.allowed-actions-editor .json-mode .form-group{margin-bottom:15px}.allowed-actions-editor .simple-mode .actions-list,.allowed-actions-editor .simple-mode .top-level-actions,.allowed-actions-editor .advanced-mode .actions-list,.allowed-actions-editor .advanced-mode .top-level-actions,.allowed-actions-editor .json-mode .actions-list,.allowed-actions-editor .json-mode .top-level-actions{margin-bottom:20px}.allowed-actions-editor .simple-mode .actions-list h4,.allowed-actions-editor .simple-mode .top-level-actions h4,.allowed-actions-editor .advanced-mode .actions-list h4,.allowed-actions-editor .advanced-mode .top-level-actions h4,.allowed-actions-editor .json-mode .actions-list h4,.allowed-actions-editor .json-mode .top-level-actions h4{margin-bottom:10px}.allowed-actions-editor .simple-mode .actions-list .checkbox-label,.allowed-actions-editor .simple-mode .top-level-actions .checkbox-label,.allowed-actions-editor .advanced-mode .actions-list .checkbox-label,.allowed-actions-editor .advanced-mode .top-level-actions .checkbox-label,.allowed-actions-editor .json-mode .actions-list .checkbox-label,.allowed-actions-editor .json-mode .top-level-actions .checkbox-label{display:block;padding:8px;margin:4px 0;border-radius:4px}.allowed-actions-editor .simple-mode .actions-list .checkbox-label:hover,.allowed-actions-editor .simple-mode .top-level-actions .checkbox-label:hover,.allowed-actions-editor .advanced-mode .actions-list .checkbox-label:hover,.allowed-actions-editor .advanced-mode .top-level-actions .checkbox-label:hover,.allowed-actions-editor .json-mode .actions-list .checkbox-label:hover,.allowed-actions-editor .json-mode .top-level-actions .checkbox-label:hover{background-color:#f8f9fa}.allowed-actions-editor .simple-mode .actions-list .checkbox-label input[type=checkbox],.allowed-actions-editor .simple-mode .top-level-actions .checkbox-label input[type=checkbox],.allowed-actions-editor .advanced-mode .actions-list .checkbox-label input[type=checkbox],.allowed-actions-editor .advanced-mode .top-level-actions .checkbox-label input[type=checkbox],.allowed-actions-editor .json-mode .actions-list .checkbox-label input[type=checkbox],.allowed-actions-editor .json-mode .top-level-actions .checkbox-label input[type=checkbox]{margin-right:8px}.allowed-actions-editor .simple-mode .actions-list .checkbox-label.nested,.allowed-actions-editor .simple-mode .top-level-actions .checkbox-label.nested,.allowed-actions-editor .advanced-mode .actions-list .checkbox-label.nested,.allowed-actions-editor .advanced-mode .top-level-actions .checkbox-label.nested,.allowed-actions-editor .json-mode .actions-list .checkbox-label.nested,.allowed-actions-editor .json-mode .top-level-actions .checkbox-label.nested{margin-left:20px}.allowed-actions-editor .simple-mode .submenus,.allowed-actions-editor .advanced-mode .submenus,.allowed-actions-editor .json-mode .submenus{margin-top:20px}.allowed-actions-editor .simple-mode .submenus h4,.allowed-actions-editor .advanced-mode .submenus h4,.allowed-actions-editor .json-mode .submenus h4{margin-bottom:15px}.allowed-actions-editor .simple-mode .submenus .submenu-section,.allowed-actions-editor .advanced-mode .submenus .submenu-section,.allowed-actions-editor .json-mode .submenus .submenu-section{margin-bottom:20px;padding:15px;background-color:#f8f9fa;border-radius:4px}.allowed-actions-editor .simple-mode .submenus .submenu-section .submenu-toggle,.allowed-actions-editor .advanced-mode .submenus .submenu-section .submenu-toggle,.allowed-actions-editor .json-mode .submenus .submenu-section .submenu-toggle{display:block;font-weight:500;margin-bottom:10px}.allowed-actions-editor .simple-mode .submenus .submenu-section .submenu-toggle input[type=checkbox],.allowed-actions-editor .advanced-mode .submenus .submenu-section .submenu-toggle input[type=checkbox],.allowed-actions-editor .json-mode .submenus .submenu-section .submenu-toggle input[type=checkbox]{margin-right:8px}.allowed-actions-editor .simple-mode .submenus .submenu-section .submenu-actions,.allowed-actions-editor .advanced-mode .submenus .submenu-section .submenu-actions,.allowed-actions-editor .json-mode .submenus .submenu-section .submenu-actions{margin-left:20px;margin-top:10px}.allowed-actions-editor .simple-mode .json-mode textarea,.allowed-actions-editor .advanced-mode .json-mode textarea,.allowed-actions-editor .json-mode .json-mode textarea{width:100%;padding:8px;border:1px solid #ced4da;border-radius:4px;font-size:14px;font-family:Courier New,monospace;min-height:200px}.allowed-actions-editor .simple-mode .json-mode .hint,.allowed-actions-editor .advanced-mode .json-mode .hint,.allowed-actions-editor .json-mode .json-mode .hint{margin-top:10px;font-size:12px;color:#6c757d}.allowed-actions-editor .simple-mode .json-mode .hint code,.allowed-actions-editor .advanced-mode .json-mode .hint code,.allowed-actions-editor .json-mode .json-mode .hint code{background-color:#f8f9fa;padding:2px 4px;border-radius:2px}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background-color:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000}.modal-content{background:#fff;padding:30px;border-radius:8px;max-width:500px;width:90%;max-height:90vh;overflow-y:auto}.modal-content h2,.modal-content h3{margin-top:0}.modal-content .form-group{margin-bottom:15px}.modal-content .form-group label{display:block;margin-bottom:5px;font-weight:500}.modal-content .form-group input,.modal-content .form-group textarea,.modal-content .form-group select{width:100%;padding:8px;border:1px solid #ced4da;border-radius:4px;font-size:14px}.modal-content .form-row{display:grid;grid-template-columns:1fr 1fr;gap:15px}.modal-content .modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.shipments-filters{margin-bottom:20px;padding:15px;background:#f8f9fa;border-radius:8px}.shipments-filters .filter-row{display:flex;align-items:center;gap:12px;margin-bottom:10px;flex-wrap:wrap}.shipments-filters .filter-row label{min-width:100px;font-weight:500}.shipments-filters .filter-row input[type=text],.shipments-filters .filter-row input[type=datetime-local],.shipments-filters .filter-row select{padding:6px 10px;border:1px solid #ced4da;border-radius:4px}.shipments-filters .filter-hint{color:#6c757d;font-size:13px}.shipments-bulk-actions{display:flex;gap:10px;margin-bottom:15px}.shipments-pagination{display:flex;align-items:center;gap:15px;margin-top:15px}.empty-hint{color:#6c757d;margin:20px 0}.btn-danger{background-color:#dc3545;color:#fff}.btn-danger:hover:not(:disabled){background-color:#c82333}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000}.modal-content{background:#fff;border-radius:8px;max-width:90vw;max-height:90vh;overflow:auto;box-shadow:0 4px 20px #00000026}.shipment-detail-modal{min-width:500px}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:16px 20px;border-bottom:1px solid #dee2e6}.modal-header h2{margin:0;font-size:18px}.modal-close{background:none;border:none;font-size:24px;cursor:pointer;color:#6c757d;padding:0 4px;line-height:1}.modal-close:hover{color:#333}.modal-body{padding:20px}.shipment-detail-fields .detail-section{margin-bottom:24px}.shipment-detail-fields .detail-section h3{margin:0 0 12px;font-size:14px;color:#495057;text-transform:uppercase;letter-spacing:.5px}.shipment-detail-fields .detail-section dl{display:grid;grid-template-columns:140px 1fr;gap:6px 16px;margin:0;font-size:14px}.shipment-detail-fields .detail-section dt{margin:0;color:#6c757d;font-weight:500}.shipment-detail-fields .detail-section dd{margin:0}.shipment-detail-fields .notes-pre{white-space:pre-wrap;margin:0;font-size:13px}.section-desc{color:#6c757d;margin-bottom:20px}.elasticsearch-actions{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:20px}.index-result{padding:12px 16px;border-radius:8px;margin-top:16px}.index-result.success{background:#d4edda;color:#155724}.index-result.error{background:#f8d7da;color:#721c24}.index-result ul{margin:8px 0 0;padding-left:20px}.badge{padding:4px 8px;border-radius:12px;font-size:12px}.badge.badge-success{background-color:#d4edda;color:#155724}.badge.badge-secondary{background-color:#e9ecef;color:#6c757d}*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:#f5f5f5}.loading{display:flex;justify-content:center;align-items:center;height:100vh;font-size:18px}
