:root{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;line-height:1.5;font-weight:400;color-scheme:light;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.language-switcher{display:flex;gap:.25rem;background:#ffffff1a;padding:.25rem;border-radius:8px}.lang-btn{background:transparent;border:none;color:#fff9;padding:.375rem .625rem;border-radius:6px;font-size:.75rem;font-weight:500;cursor:pointer;transition:all .2s ease}.lang-btn:hover{color:#ffffffe6;background:#ffffff1a}.lang-btn.active{background:#3b82f6cc;color:#fff}.sidebar{width:280px;background:linear-gradient(180deg,#1e3a5f,#0d1b2a);color:#fff;display:flex;flex-direction:column;min-height:100vh;position:fixed;left:0;top:0;transition:all .3s ease;z-index:100}.sidebar.collapsed{width:70px}.sidebar-header{padding:1.5rem;display:flex;align-items:center;gap:.75rem;border-bottom:1px solid rgba(255,255,255,.1)}.sidebar.collapsed .sidebar-header{justify-content:center;padding:1.5rem .5rem}.sidebar-logo{width:45px;height:45px;background:linear-gradient(135deg,#3b82f6,#1e40af);border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:1.5rem;flex-shrink:0}.sidebar-header h2{font-size:1.1rem;font-weight:600;margin:0}.language-switcher-container{padding:.75rem 1.5rem;border-bottom:1px solid rgba(255,255,255,.1)}.sidebar-nav{flex:1;padding:1rem 0;overflow-y:auto}.nav-link{display:flex;align-items:center;gap:.75rem;padding:.875rem 1.5rem;color:#ffffffb3;text-decoration:none;transition:all .2s ease;border-left:3px solid transparent;white-space:nowrap}.sidebar.collapsed .nav-link{justify-content:center;padding:.875rem .5rem}.nav-link:hover{background:#ffffff0d;color:#fff}.nav-link.active{background:#3b82f626;color:#60a5fa;border-left-color:#3b82f6}.nav-icon{font-size:1.25rem;width:24px;text-align:center}.sidebar-footer{padding:1rem 1.5rem;border-top:1px solid rgba(255,255,255,.1)}.sidebar.collapsed .sidebar-footer{padding:1rem .5rem}.user-info{display:flex;align-items:center;gap:.75rem;margin-bottom:1rem}.sidebar.collapsed .user-info{justify-content:center}.user-avatar{width:40px;height:40px;background:linear-gradient(135deg,#3b82f6,#1e40af);border-radius:10px;display:flex;align-items:center;justify-content:center;font-weight:600;font-size:1rem;flex-shrink:0}.user-details{display:flex;flex-direction:column;gap:.125rem;overflow:hidden}.user-email{font-size:.8rem;color:#ffffffe6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.user-role{font-size:.7rem;color:#60a5fa;text-transform:uppercase;font-weight:500}.logout-button{width:100%;padding:.75rem;background:#ffffff1a;border:1px solid rgba(255,255,255,.2);border-radius:8px;color:#fff;font-size:.875rem;cursor:pointer;transition:all .2s ease}.logout-button:hover{background:#ef444433;border-color:#ef444480}.layout{display:flex;min-height:100vh;background:#f1f5f9}.main-content{flex:1;margin-left:280px;padding:2rem;overflow-x:hidden;transition:margin-left .3s ease;position:relative}.main-content.sidebar-collapsed{margin-left:70px}.sidebar-collapse-toggle{position:fixed;left:260px;top:20px;z-index:200;background:#3b82f6;color:#fff;border:none;width:36px;height:36px;border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:14px;transition:all .3s ease;box-shadow:0 2px 8px #00000026}.sidebar-collapsed .sidebar-collapse-toggle{left:50px}.sidebar-collapse-toggle:hover{background:#2563eb;transform:scale(1.1)}.loading-screen{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#f1f5f9;gap:1rem}.loading-spinner{width:40px;height:40px;border:3px solid #e2e8f0;border-top-color:#3b82f6;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.loading-screen p{color:#64748b;font-size:.95rem}.login-page{min-height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#1e3a5f,#0d1b2a);padding:2rem;position:relative}.login-language-switcher{position:absolute;top:1.5rem;right:1.5rem}.login-container{background:#fffffff2;border-radius:16px;padding:2.5rem;width:100%;max-width:420px;box-shadow:0 25px 50px -12px #00000080}.login-header{text-align:center;margin-bottom:2rem}.logo{width:80px;height:80px;background:linear-gradient(135deg,#3b82f6,#1e40af);border-radius:20px;display:flex;align-items:center;justify-content:center;margin:0 auto 1.5rem;box-shadow:0 10px 25px -5px #3b82f680}.logo-icon{font-size:2.5rem}.login-header h1{color:#1e3a5f;font-size:1.75rem;font-weight:700;margin:0 0 .5rem}.login-header p{color:#64748b;font-size:.95rem;margin:0}.login-form{display:flex;flex-direction:column;gap:1.25rem}.form-group{display:flex;flex-direction:column;gap:.5rem}.form-group label{color:#374151;font-size:.875rem;font-weight:600}.form-group input{padding:.875rem 1rem;border:2px solid #e5e7eb;border-radius:10px;font-size:1rem;transition:all .2s ease;background:#f9fafb}.form-group input:focus{outline:none;border-color:#3b82f6;background:#fff;box-shadow:0 0 0 4px #3b82f61a}.form-group input::placeholder{color:#9ca3af}.error-message{background:#fef2f2;border:1px solid #fecaca;color:#dc2626;padding:.75rem 1rem;border-radius:8px;font-size:.875rem;text-align:center}.login-button{background:linear-gradient(135deg,#3b82f6,#1e40af);color:#fff;border:none;padding:1rem;border-radius:10px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .2s ease;margin-top:.5rem}.login-button:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 10px 25px -5px #3b82f680}.login-button:disabled{opacity:.7;cursor:not-allowed}.login-footer{margin-top:2rem;padding-top:1.5rem;border-top:1px solid #e5e7eb;text-align:center}.login-footer p{color:#64748b;font-size:.75rem;margin:0;font-family:Monaco,Menlo,monospace;background:#f1f5f9;padding:.5rem;border-radius:6px}.dashboard{max-width:1200px;margin:0 auto}.dashboard-header{margin-bottom:2rem}.dashboard-header h1{color:#1e293b;font-size:1.75rem;font-weight:700;margin:0 0 .5rem}.dashboard-header p{color:#64748b;margin:0}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1.5rem;margin-bottom:2rem}.stat-card{background:#fff;border-radius:16px;padding:1.5rem;display:flex;align-items:center;gap:1rem;box-shadow:0 1px 3px #0000001a;transition:all .2s ease}.stat-card:hover{transform:translateY(-2px);box-shadow:0 10px 25px -5px #0000001a}.stat-icon{width:60px;height:60px;background:linear-gradient(135deg,#3b82f6,#1e40af);border-radius:14px;display:flex;align-items:center;justify-content:center;font-size:1.75rem}.stat-content{display:flex;flex-direction:column;gap:.25rem}.stat-value{font-size:1.5rem;font-weight:700;color:#1e293b;text-transform:capitalize}.stat-label{font-size:.875rem;color:#64748b}.recent-section,.quick-actions{background:#fff;border-radius:16px;padding:1.5rem;box-shadow:0 1px 3px #0000001a;margin-bottom:1.5rem}.section-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.section-header h2,.quick-actions h2{font-size:1.1rem;font-weight:600;color:#1e293b;margin:0}.view-all-link{color:#3b82f6;text-decoration:none;font-size:.875rem;font-weight:500}.view-all-link:hover{text-decoration:underline}.recent-list{display:flex;flex-direction:column;gap:.5rem}.recent-item{display:flex;align-items:center;gap:1rem;padding:.75rem;border-radius:10px;text-decoration:none;transition:all .2s ease}.recent-item:hover{background:#f8fafc}.person-avatar{width:40px;height:40px;background:linear-gradient(135deg,#8b5cf6,#6d28d9);border-radius:10px;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:600}.person-info{flex:1;display:flex;flex-direction:column;gap:.125rem}.person-name{font-weight:500;color:#1e293b}.person-code{font-size:.75rem;color:#64748b}.person-arrow{color:#94a3b8}.actions-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem;margin-top:1rem}.action-card{display:flex;align-items:center;gap:.75rem;padding:1rem 1.25rem;background:#f8fafc;border:2px solid #e2e8f0;border-radius:12px;text-decoration:none;transition:all .2s ease}.action-card:hover{background:#f1f5f9;border-color:#3b82f6}.action-icon{font-size:1.25rem}.action-label{font-weight:500;color:#1e293b}.seed-section{background:linear-gradient(135deg,#fef3c7,#fde68a);border:2px solid #f59e0b;border-radius:16px;padding:1.5rem;margin-bottom:1.5rem}.seed-section h2{color:#92400e;font-size:1.1rem;font-weight:600;margin:0 0 .5rem}.seed-description{color:#a16207;font-size:.875rem;margin:0 0 1rem}.seed-actions{display:flex;align-items:center;gap:1rem;flex-wrap:wrap}.seed-btn{padding:.625rem 1.25rem;border-radius:8px;font-size:.875rem;font-weight:500;cursor:pointer;border:none;transition:all .2s ease}.seed-btn.seed{background:#10b981;color:#fff}.seed-btn.seed:hover:not(:disabled){background:#059669}.seed-btn.clear{background:#ef4444;color:#fff}.seed-btn.clear:hover:not(:disabled){background:#dc2626}.seed-btn:disabled{opacity:.6;cursor:not-allowed}.seed-status{font-size:.875rem;color:#92400e}.seed-status.seeded{color:#065f46;font-weight:500}.modal-overlay{position:fixed;inset:0;background:#0009;display:flex;align-items:center;justify-content:center;z-index:1000;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.modal-content{background:var(--bg-card, #ffffff);border-radius:12px;padding:2rem;min-width:400px;max-width:500px;box-shadow:0 20px 60px #0000004d;animation:slideIn .2s ease-out}@keyframes slideIn{0%{opacity:0;transform:translateY(-20px) scale(.95)}to{opacity:1;transform:translateY(0) scale(1)}}.modal-content h2{margin:0 0 .5rem;color:var(--text-primary, #1f2937);font-size:1.5rem}.modal-description{color:var(--text-secondary, #6b7280);margin-bottom:1.5rem}.current-link-info{background:var(--bg-success-light, #d1fae5);color:var(--text-success, #065f46);padding:.75rem 1rem;border-radius:8px;margin-bottom:1rem;display:flex;align-items:center;gap:.5rem}.link-badge{font-size:1.2rem}.modal-loading{text-align:center;padding:2rem;color:var(--text-secondary, #6b7280)}.form-group{margin-bottom:1.5rem}.user-select{width:100%;padding:.75rem 1rem;border:2px solid var(--border-color, #e5e7eb);border-radius:8px;font-size:1rem;background:var(--bg-input, #ffffff);color:var(--text-primary, #1f2937);cursor:pointer;transition:border-color .2s,box-shadow .2s}.user-select:focus{outline:none;border-color:var(--color-primary, #3b82f6);box-shadow:0 0 0 3px #3b82f633}.no-users{text-align:center;color:var(--text-secondary, #6b7280);font-style:italic;padding:1rem}.modal-actions{display:flex;gap:.75rem;justify-content:flex-end;margin-top:1.5rem}.modal-actions button{padding:.75rem 1.5rem;border-radius:8px;font-size:.9rem;font-weight:500;cursor:pointer;transition:all .2s;border:none}.btn-cancel{background:var(--bg-secondary, #f3f4f6);color:var(--text-secondary, #6b7280)}.btn-cancel:hover:not(:disabled){background:var(--border-color, #e5e7eb)}.btn-assign{background:var(--color-primary, #3b82f6);color:#fff}.btn-assign:hover:not(:disabled){background:var(--color-primary-dark, #2563eb)}.btn-assign:disabled{opacity:.5;cursor:not-allowed}.btn-unlink{background:var(--color-danger, #ef4444);color:#fff;margin-right:auto}.btn-unlink:hover:not(:disabled){background:var(--color-danger-dark, #dc2626)}.btn-unlink:disabled{opacity:.5;cursor:not-allowed}.personnel-list-page{max-width:1200px;margin:0 auto}.add-button{background:linear-gradient(135deg,#3b82f6,#1e40af);color:#fff;padding:.75rem 1.25rem;border-radius:10px;text-decoration:none;font-weight:500;font-size:.875rem;transition:all .2s ease}.search-box{margin-bottom:1.5rem}.search-box input{width:100%;padding:.875rem 1rem;border:2px solid #e2e8f0;border-radius:10px;font-size:.95rem;background:#fff;transition:all .2s ease}.search-box input:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 4px #3b82f61a}.personnel-table-container{background:#fff;border-radius:16px;box-shadow:0 1px 3px #0000001a;overflow:hidden}.personnel-table{width:100%;border-collapse:collapse}.personnel-table th{background:#f8fafc;padding:1rem;text-align:left;font-size:.75rem;font-weight:600;color:#64748b;text-transform:uppercase;letter-spacing:.05em;border-bottom:1px solid #e2e8f0}.personnel-table td{padding:1rem;border-bottom:1px solid #f1f5f9;color:#475569;font-size:.875rem}.personnel-table tbody tr{cursor:pointer;transition:all .2s ease}.personnel-table tbody tr:hover{background:#f8fafc}.employee-cell{display:flex;align-items:center;gap:.75rem}.employee-avatar{width:40px;height:40px;background:linear-gradient(135deg,#8b5cf6,#6d28d9);border-radius:10px;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:600;font-size:1rem;overflow:hidden}.employee-avatar img{width:100%;height:100%;object-fit:cover}.employee-info{display:flex;flex-direction:column;gap:.125rem}.employee-name{font-weight:500;color:#1e293b}.employee-gender{font-size:.75rem;color:#94a3b8;text-transform:capitalize}.employee-code{font-family:Monaco,Menlo,monospace;background:#f1f5f9;padding:.25rem .5rem;border-radius:4px;font-size:.8rem}.action-btn{padding:.375rem .75rem;border-radius:6px;font-size:.75rem;font-weight:500;text-decoration:none;transition:all .2s ease}.action-btn.view{background:#e0f2fe;color:#0284c7}.action-btn.view:hover{background:#bae6fd}.action-btn.edit{background:#fef3c7;color:#d97706}.action-btn.edit:hover{background:#fde68a}.empty-state{text-align:center;padding:4rem 2rem;background:#fff;border-radius:16px;box-shadow:0 1px 3px #0000001a}.empty-icon{font-size:4rem;display:block;margin-bottom:1rem}.empty-state h2{color:#1e293b;font-size:1.25rem;margin:0 0 .5rem}.empty-state p{color:#64748b;margin:0 0 1.5rem}.action-btn.assign{background:#ddd6fe;color:#7c3aed;border:none;cursor:pointer}.action-btn.assign:hover{background:#c4b5fd}.action-buttons{display:flex;gap:.5rem;flex-wrap:wrap}.linked-badge{display:inline-flex;align-items:center;gap:.25rem;background:#d1fae5;color:#065f46;padding:.25rem .5rem;border-radius:6px;font-size:.75rem;font-weight:500}.unlinked-badge{color:#94a3b8}.search-bar{margin-bottom:1.5rem}.search-bar input{width:100%;padding:.875rem 1rem;border:2px solid #e2e8f0;border-radius:10px;font-size:.95rem;background:#fff;transition:all .2s ease}.search-bar input:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 4px #3b82f61a}.filter-tabs{display:flex;gap:.5rem;margin-bottom:1.5rem;border-bottom:2px solid #e2e8f0}.filter-tab{background:transparent;border:none;padding:.75rem 1.25rem;cursor:pointer;font-size:.875rem;font-weight:500;color:#64748b;border-bottom:3px solid transparent;transition:all .2s ease}.filter-tab:hover{color:#1e40af;background:#f1f5f9}.filter-tab.active{color:#1e40af;border-bottom-color:#1e40af}.personnel-type-badge{display:inline-block;padding:.25rem .625rem;border-radius:6px;font-size:.75rem;font-weight:500}.personnel-type-badge.type-permanent{background:#dbeafe;color:#1e40af}.personnel-type-badge.type-temporary{background:#fef3c7;color:#d97706}.personnel-type-badge.type-labour{background:#e0e7ff;color:#6366f1}.image-upload-container{width:100%}.image-upload-dropzone{position:relative;width:200px;height:200px;border:2px dashed #cbd5e0;border-radius:8px;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .3s ease;background-color:#f7fafc;overflow:hidden}.image-upload-dropzone:hover:not(.disabled){border-color:#4299e1;background-color:#ebf8ff}.image-upload-dropzone.dragging{border-color:#4299e1;background-color:#ebf8ff;transform:scale(1.02)}.image-upload-dropzone.disabled{opacity:.6;cursor:not-allowed}.file-input{position:absolute;width:100%;height:100%;top:0;left:0;opacity:0;cursor:pointer}.file-input:disabled{cursor:not-allowed}.upload-placeholder{text-align:center;padding:20px;pointer-events:none}.upload-icon{font-size:48px;margin-bottom:10px}.upload-placeholder p{margin:5px 0;color:#4a5568;font-size:14px}.upload-hint{color:#718096;font-size:12px!important}.image-preview{position:relative;width:100%;height:100%}.image-preview img{width:100%;height:100%;object-fit:cover;border-radius:6px}.remove-image-button{position:absolute;top:8px;right:8px;background-color:#0009;color:#fff;border:none;border-radius:50%;width:28px;height:28px;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:18px;transition:background-color .2s;padding:0;line-height:1}.remove-image-button:hover{background-color:#dc2626cc}.image-upload-error{color:#e53e3e;font-size:14px;margin-top:8px}.dual-date-input{margin-bottom:1rem}.dual-date-label{display:block;margin-bottom:.5rem;color:#1e293b;font-weight:500;font-size:.95rem}.dual-date-label .required{color:#ef4444}.date-inputs-container{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem;align-items:flex-start}.calendar-section{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;padding:1rem}.calendar-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.calendar-title{font-size:.9rem;color:#64748b;font-weight:600;text-transform:uppercase;letter-spacing:.5px}.header-actions{display:flex;gap:.5rem;align-items:center}.today-button{background:transparent;border:1px solid #e2e8f0;padding:.25rem .75rem;border-radius:4px;font-size:.8rem;cursor:pointer;color:#2563eb;transition:all .2s}.today-button:hover{background:#eff6ff;border-color:#bfdbfe}.clear-button{background:transparent;border:1px solid #e2e8f0;padding:.25rem .75rem;border-radius:4px;font-size:.8rem;cursor:pointer;color:#64748b;transition:all .2s}.clear-button:hover{background:#fef2f2;border-color:#fecaca;color:#ef4444}.bs-date-selectors{display:flex;gap:.5rem;margin-bottom:.75rem}.bs-select{padding:.5rem;border:1px solid #cbd5e1;border-radius:6px;background:#fff;font-size:.95rem;cursor:pointer}.bs-select:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 2px #2563eb1a}.year-select{flex:1.2}.month-select{flex:2}.day-select{flex:1}.ad-date-picker{width:100%;padding:.5rem;border:1px solid #cbd5e1;border-radius:6px;font-family:inherit;font-size:.95rem}.ad-date-picker:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 2px #2563eb1a}.ad-date-picker:disabled{background-color:#f1f5f9;cursor:not-allowed;color:#475569;opacity:1;-webkit-text-fill-color:#475569;border-color:#cbd5e1}.date-display{margin-top:.75rem;padding-top:.75rem;border-top:1px dashed #e2e8f0;display:flex;justify-content:space-between;align-items:center;font-size:.85rem;color:#64748b}.clear-button-footer{background:transparent;border:none;padding:.25rem .5rem;font-size:.75rem;color:#94a3b8;cursor:pointer;border-radius:4px;transition:all .2s;font-weight:500;text-transform:uppercase;letter-spacing:.5px}.clear-button-footer:hover{background:#fef2f2;color:#ef4444}.auto-convert-toggle{display:flex;align-items:center;gap:.75rem}.checkbox-label{display:flex;align-items:center;gap:.35rem;cursor:pointer;-webkit-user-select:none;user-select:none}.checkbox-label input[type=checkbox]{cursor:pointer;width:.9rem;height:.9rem}.label-text{font-size:.8rem;color:#475569}.label-text:hover{color:#2563eb}@media(max-width:768px){.date-inputs-container{grid-template-columns:1fr}}.personnel-form-page{max-width:1000px;margin:0 auto}.page-header{display:flex;align-items:center;gap:1rem;margin-bottom:1.5rem}.page-header h1{color:#1e293b;font-size:1.5rem;font-weight:700;margin:0}.form-container{background:#fff;border-radius:16px;box-shadow:0 1px 3px #0000001a;overflow:hidden}.tabs{display:flex;overflow-x:auto;border-bottom:1px solid #e2e8f0;background:#f8fafc}.tab{display:flex;align-items:center;gap:.5rem;padding:1rem 1.25rem;background:none;border:none;border-bottom:2px solid transparent;color:#64748b;font-size:.875rem;font-weight:500;cursor:pointer;white-space:nowrap;transition:all .2s ease}.tab:hover{color:#1e293b;background:#3b82f60d}.tab.active{color:#3b82f6;border-bottom-color:#3b82f6;background:#fff}.tab-icon{font-size:1rem}.form-content{padding:1.5rem}.form-section{animation:fadeIn .2s ease}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.form-section h2{color:#1e293b;font-size:1.1rem;font-weight:600;margin:0 0 1.25rem}.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem}.form-group.full-width{grid-column:1 / -1}.form-group input,.form-group select{padding:.625rem .75rem;border:1.5px solid #e2e8f0;border-radius:8px;font-size:.875rem;transition:all .2s ease;background:#fafafa}.form-group input:focus,.form-group select:focus{outline:none;border-color:#3b82f6;background:#fff;box-shadow:0 0 0 3px #3b82f61a}.sub-section{margin-top:2rem;padding-top:1.5rem;border-top:1px solid #e2e8f0}.sub-section h3{color:#374151;font-size:.95rem;font-weight:600;margin:0 0 1rem}.section-header-row h2,.section-header-row h3{margin:0}.add-row-btn{background:#e0f2fe;color:#0284c7;border:none;padding:.5rem 1rem;border-radius:6px;font-size:.8rem;font-weight:500;cursor:pointer;transition:all .2s ease}.array-item:hover{border-color:#cbd5e1}.remove-btn{position:absolute;top:.5rem;right:.5rem;background:#fef2f2;color:#dc2626;border:none;width:28px;height:28px;border-radius:6px;cursor:pointer;font-size:.75rem;transition:all .2s ease}.empty-message{color:#94a3b8;font-size:.875rem;text-align:center;padding:2rem;background:#f8fafc;border-radius:10px;border:1px dashed #e2e8f0}.form-actions{display:flex;justify-content:flex-end;gap:1rem;margin-top:2rem;padding-top:1.5rem;border-top:1px solid #e2e8f0}.cancel-btn{background:#f1f5f9;color:#475569;border:1px solid #e2e8f0;padding:.75rem 1.5rem;border-radius:8px;font-size:.875rem;font-weight:500;cursor:pointer;transition:all .2s ease}.save-btn{background:linear-gradient(135deg,#3b82f6,#1e40af);color:#fff;border:none;padding:.75rem 1.5rem;border-radius:8px;font-size:.875rem;font-weight:500;cursor:pointer;transition:all .2s ease}.save-btn:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 5px 15px -5px #3b82f666}.personnel-detail-page{max-width:1000px;margin:0 auto}.back-button{background:none;border:none;color:#3b82f6;font-size:.95rem;cursor:pointer;padding:.5rem 0}.header-actions{display:flex;gap:.75rem}.edit-button{background:#fef3c7;color:#d97706;padding:.5rem 1rem;border-radius:8px;text-decoration:none;font-size:.875rem;font-weight:500}.edit-button:hover{background:#fde68a}.delete-button{background:#fef2f2;color:#dc2626;border:none;padding:.5rem 1rem;border-radius:8px;font-size:.875rem;font-weight:500;cursor:pointer}.delete-button:hover{background:#fecaca}.detail-container{background:#fff;border-radius:16px;box-shadow:0 1px 3px #0000001a;overflow:hidden}.profile-avatar{width:80px;height:80px;background:linear-gradient(135deg,#3b82f6,#1e40af);border-radius:20px;display:flex;align-items:center;justify-content:center;color:#fff;font-size:2rem;font-weight:600;box-shadow:0 10px 25px -5px #0000004d;overflow:hidden}.profile-avatar img{width:100%;height:100%;object-fit:cover}.profile-info h1{color:#fff;font-size:1.5rem;font-weight:700;margin:0}.detail-sections{padding:1.5rem}.detail-section{margin-bottom:2rem}.detail-section:last-child{margin-bottom:0}.detail-section h2{color:#1e293b;font-size:1rem;font-weight:600;margin:0 0 1rem;padding-bottom:.5rem;border-bottom:1px solid #e2e8f0}.detail-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem}.detail-item.full-width{grid-column:1 / -1}.sub-section:last-child{margin-bottom:0}.sub-section h3{color:#374151;font-size:.875rem;font-weight:600;margin:0 0 .75rem}.detail-table th{background:#e2e8f0;padding:.75rem;text-align:left;font-size:.7rem;font-weight:600;color:#475569;text-transform:uppercase;letter-spacing:.05em}.detail-table tbody tr:last-child td{border-bottom:none}.error-page{text-align:center;padding:4rem 2rem}.error-page h2{color:#dc2626;margin-bottom:.5rem}.error-page p{color:#64748b;margin-bottom:1.5rem}.error-page a{color:#3b82f6;text-decoration:none}.error-page a:hover{text-decoration:underline}.user-management-page{max-width:1000px;margin:0 auto}.add-button{background:linear-gradient(135deg,#3b82f6,#1e40af);color:#fff;border:none;padding:.75rem 1.25rem;border-radius:10px;font-weight:500;font-size:.875rem;cursor:pointer;transition:all .2s ease}.add-button:hover{transform:translateY(-2px);box-shadow:0 10px 25px -5px #3b82f666}.error-banner{background:#fef2f2;border:1px solid #fecaca;color:#dc2626;padding:.75rem 1rem;border-radius:8px;margin-bottom:1.5rem}.users-table-container{background:#fff;border-radius:16px;box-shadow:0 1px 3px #0000001a;overflow:hidden}.users-table{width:100%;border-collapse:collapse}.users-table th{background:#f8fafc;padding:1rem;text-align:left;font-size:.75rem;font-weight:600;color:#64748b;text-transform:uppercase;letter-spacing:.05em;border-bottom:1px solid #e2e8f0}.users-table td{padding:1rem;border-bottom:1px solid #f1f5f9;color:#475569;font-size:.875rem}.user-cell{display:flex;align-items:center;gap:.75rem}.user-avatar{width:36px;height:36px;background:linear-gradient(135deg,#8b5cf6,#6d28d9);border-radius:8px;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:600;font-size:.9rem}.user-email{font-weight:500;color:#1e293b}.role-badge{display:inline-block;padding:.25rem .75rem;border-radius:20px;font-size:.75rem;font-weight:500;text-transform:capitalize}.role-badge.superadmin{background:#fef3c7;color:#d97706}.role-badge.admin{background:#e0f2fe;color:#0284c7}.role-badge.normal{background:#f1f5f9;color:#64748b}.status-badge{display:inline-block;padding:.25rem .75rem;border:none;border-radius:20px;font-size:.75rem;font-weight:500;cursor:pointer;transition:all .2s ease}.status-badge.active{background:#dcfce7;color:#16a34a}.status-badge.inactive{background:#fef2f2;color:#dc2626}.action-btn{padding:.375rem .75rem;border:none;border-radius:6px;font-size:.75rem;font-weight:500;cursor:pointer;transition:all .2s ease}.action-btn.edit{background:#e0f2fe;color:#0284c7}.action-btn.edit:hover{background:#bae6fd}.action-btn.delete{background:#fef2f2;color:#dc2626}.action-btn.delete:hover{background:#fecaca}.modal{background:#fff;border-radius:16px;padding:2rem;width:100%;max-width:400px;box-shadow:0 25px 50px -12px #00000040}.modal h2{color:#1e293b;font-size:1.25rem;margin:0 0 1.5rem}.modal .form-group{margin-bottom:1rem}.modal .form-group label{display:block;color:#475569;font-size:.8rem;font-weight:500;margin-bottom:.375rem}.modal .form-group input,.modal .form-group select{width:100%;padding:.625rem .75rem;border:1.5px solid #e2e8f0;border-radius:8px;font-size:.875rem;transition:all .2s ease}.modal .form-group input:focus,.modal .form-group select:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}.modal-actions{display:flex;justify-content:flex-end;gap:.75rem;margin-top:1.5rem}.cancel-btn{background:#f1f5f9;color:#475569;border:none;padding:.625rem 1.25rem;border-radius:8px;font-size:.875rem;font-weight:500;cursor:pointer}.save-btn{background:linear-gradient(135deg,#3b82f6,#1e40af);color:#fff;border:none;padding:.625rem 1.25rem;border-radius:8px;font-size:.875rem;font-weight:500;cursor:pointer}.save-btn:hover{box-shadow:0 5px 15px -5px #3b82f666}.my-record-page{max-width:900px;margin:0 auto}.page-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem}.header-content h1{color:#1e293b;font-size:1.5rem;font-weight:700;margin:0 0 .25rem}.header-content p{color:#64748b;font-size:.875rem;margin:0}.edit-button{background:linear-gradient(135deg,#3b82f6,#1e40af);color:#fff;border:none;padding:.75rem 1.25rem;border-radius:10px;font-weight:500;font-size:.875rem;cursor:pointer;transition:all .2s ease}.edit-button:hover{transform:translateY(-2px);box-shadow:0 10px 25px -5px #3b82f666}.error-banner{background:#fef2f2;border:1px solid #fecaca;color:#dc2626;padding:.75rem 1rem;border-radius:8px;margin-bottom:1rem}.success-banner{background:#dcfce7;border:1px solid #86efac;color:#16a34a;padding:.75rem 1rem;border-radius:8px;margin-bottom:1rem}.record-container{background:#fff;border-radius:16px;box-shadow:0 1px 3px #0000001a;overflow:hidden}.profile-header{background:linear-gradient(135deg,#1e3a5f,#0d1b2a);padding:2rem;display:flex;align-items:center;gap:1.5rem}.profile-avatar{width:80px;height:80px;background:linear-gradient(135deg,#3b82f6,#1e40af);border-radius:20px;display:flex;align-items:center;justify-content:center;color:#fff;font-size:2rem;font-weight:600;box-shadow:0 10px 25px -5px #0000004d}.profile-info{display:flex;flex-direction:column;gap:.25rem}.profile-info h2{color:#fff;font-size:1.5rem;font-weight:700;margin:0}.profile-info .employee-code{font-family:Monaco,Menlo,monospace;background:#fff3;color:#ffffffe6;padding:.25rem .5rem;border-radius:4px;font-size:.8rem;width:fit-content}.profile-info .position{color:#94a3b8;font-size:.95rem;margin-top:.25rem}.edit-form,.view-mode{padding:1.5rem}.form-section,.detail-section{margin-bottom:1.5rem;padding-bottom:1.5rem;border-bottom:1px solid #e2e8f0}.form-section:last-child,.detail-section:last-child{margin-bottom:0;padding-bottom:0;border-bottom:none}.form-section h3,.detail-section h3{color:#1e293b;font-size:1rem;font-weight:600;margin:0 0 1rem}.form-grid,.detail-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem}.form-group{display:flex;flex-direction:column;gap:.375rem}.form-group label{color:#475569;font-size:.8rem;font-weight:500}.form-group input,.form-group select{padding:.625rem .75rem;border:1.5px solid #e2e8f0;border-radius:8px;font-size:.875rem;transition:all .2s ease}.form-group input:focus,.form-group select:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}.detail-item{display:flex;flex-direction:column;gap:.25rem}.detail-item label{color:#64748b;font-size:.75rem;font-weight:500;text-transform:uppercase;letter-spacing:.05em}.detail-item span{color:#1e293b;font-size:.9rem}.detail-item span.capitalize{text-transform:capitalize}.sub-section{background:#f8fafc;border-radius:10px;padding:1rem;margin-bottom:1rem}.sub-section h4{color:#374151;font-size:.875rem;font-weight:600;margin:0 0 .75rem}.sub-detail{background:#f8fafc;border-radius:8px;padding:.75rem 1rem;margin-bottom:.5rem}.sub-detail h4{color:#64748b;font-size:.75rem;font-weight:600;margin:0 0 .25rem;text-transform:uppercase}.sub-detail p{color:#1e293b;margin:0;font-size:.9rem}.section-header-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.section-header-row h3{margin:0}.add-row-btn{background:#e0f2fe;color:#0284c7;border:none;padding:.5rem 1rem;border-radius:6px;font-size:.8rem;font-weight:500;cursor:pointer}.add-row-btn:hover{background:#bae6fd}.array-item{position:relative;background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;padding:1rem;margin-bottom:1rem}.remove-btn{position:absolute;top:.5rem;right:.5rem;background:#fef2f2;color:#dc2626;border:none;width:28px;height:28px;border-radius:6px;cursor:pointer;font-size:.75rem}.remove-btn:hover{background:#fecaca}.detail-table{width:100%;border-collapse:collapse;background:#f8fafc;border-radius:10px;overflow:hidden}.detail-table th{background:#e2e8f0;padding:.75rem;text-align:left;font-size:.7rem;font-weight:600;color:#475569;text-transform:uppercase}.detail-table td{padding:.75rem;font-size:.85rem;color:#1e293b;border-bottom:1px solid #e2e8f0}.form-actions{display:flex;justify-content:flex-end;gap:1rem;margin-top:1.5rem;padding-top:1.5rem;border-top:1px solid #e2e8f0}.cancel-btn{background:#f1f5f9;color:#475569;border:none;padding:.75rem 1.5rem;border-radius:8px;font-size:.875rem;font-weight:500;cursor:pointer}.cancel-btn:hover{background:#e2e8f0}.save-btn{background:linear-gradient(135deg,#3b82f6,#1e40af);color:#fff;border:none;padding:.75rem 1.5rem;border-radius:8px;font-size:.875rem;font-weight:500;cursor:pointer}.save-btn:hover:not(:disabled){box-shadow:0 5px 15px -5px #3b82f666}.save-btn:disabled{opacity:.7;cursor:not-allowed}.loading{display:flex;align-items:center;justify-content:center;min-height:400px;color:#64748b}.no-record{text-align:center;padding:4rem 2rem;background:#fff;border-radius:16px;box-shadow:0 1px 3px #0000001a}.no-record-icon{font-size:4rem;display:block;margin-bottom:1rem}.no-record h2{color:#1e293b;margin:0 0 .5rem}.no-record p{color:#64748b;margin:0}.suboffice-management-page{padding:2rem;max-width:1400px;margin:0 auto}.header-content h1{font-size:2rem;margin:0 0 .5rem;color:#1a1a1a}.header-content p{margin:0;color:#666}.add-button{background:#4caf50;color:#fff;border:none;padding:.75rem 1.5rem;border-radius:8px;cursor:pointer;font-size:1rem;font-weight:500;transition:background .2s}.add-button:hover{background:#45a049}.error-banner{background:#fee;color:#c33;padding:1rem;border-radius:8px;margin-bottom:1rem}.tabs{display:flex;gap:.5rem;margin-bottom:2rem;border-bottom:2px solid #e0e0e0}.tab{background:transparent;border:none;padding:1rem 1.5rem;cursor:pointer;font-size:1rem;color:#666;border-bottom:3px solid transparent;transition:all .2s;display:flex;align-items:center;gap:.5rem}.tab:hover{color:#1976d2;background:#f5f5f5}.tab.active{color:#1976d2;border-bottom-color:#1976d2;font-weight:600}.tab .count{background:#e3f2fd;color:#1976d2;padding:.25rem .5rem;border-radius:12px;font-size:.875rem;font-weight:600}.tab.active .count{background:#1976d2;color:#fff}.tab-content{background:#fff;border-radius:12px;padding:1.5rem;box-shadow:0 2px 8px #0000001a}.content-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem}.content-header h2{margin:0;font-size:1.5rem;color:#1a1a1a}.table-container{overflow-x:auto}.data-table{width:100%;border-collapse:collapse}.data-table thead{background:#f5f5f5}.data-table th{padding:1rem;text-align:left;font-weight:600;color:#333;border-bottom:2px solid #e0e0e0}.data-table td{padding:1rem;border-bottom:1px solid #e0e0e0}.data-table tbody tr:hover{background:#f9f9f9}.empty-state{text-align:center;color:#999;padding:3rem!important}.actions{display:flex;gap:.5rem}.action-btn{padding:.5rem 1rem;border:none;border-radius:6px;cursor:pointer;font-size:.875rem;transition:all .2s}.action-btn.edit{background:#2196f3;color:#fff}.action-btn.edit:hover{background:#1976d2}.action-btn.delete{background:#f44336;color:#fff}.action-btn.delete:hover{background:#d32f2f}.modal{background:#fff;border-radius:12px;padding:2rem;width:90%;max-width:600px;max-height:90vh;overflow-y:auto}.modal h2{margin:0 0 1.5rem;color:#1a1a1a}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin-bottom:1rem}.form-group{margin-bottom:1rem}.form-group label{display:block;margin-bottom:.5rem;font-weight:500;color:#333}.form-group input{width:100%;padding:.75rem;border:1px solid #ddd;border-radius:6px;font-size:1rem;box-sizing:border-box}.form-group input:focus{outline:none;border-color:#1976d2}.cancel-btn,.save-btn{padding:.75rem 1.5rem;border:none;border-radius:6px;cursor:pointer;font-size:1rem;font-weight:500;transition:all .2s}.cancel-btn{background:#f5f5f5;color:#333}.cancel-btn:hover{background:#e0e0e0}.save-btn{background:#4caf50;color:#fff}.save-btn:hover{background:#45a049}.loading{text-align:center;padding:3rem;font-size:1.25rem;color:#666}.action-btn.documents{background:#9c27b0;color:#fff}.action-btn.documents:hover{background:#7b1fa2}.document-modal{max-width:700px}.upload-section{background:#f9f9f9;padding:1.5rem;border-radius:8px;margin-bottom:1.5rem;text-align:center}.upload-btn{background:#4caf50;color:#fff;border:none;padding:.75rem 1.5rem;border-radius:8px;cursor:pointer;font-size:1rem;font-weight:500;transition:all .2s}.upload-btn:hover:not(:disabled){background:#45a049}.upload-hint{margin:.5rem 0 0;font-size:.875rem;color:#666}.documents-list{margin-top:1.5rem}.documents-list h3{margin:0 0 1rem;font-size:1.125rem;color:#333}.empty-documents{text-align:center;padding:2rem;color:#999}.empty-documents p{margin:0;font-size:1rem}.document-items{display:flex;flex-direction:column;gap:.75rem}.document-item{display:flex;align-items:center;gap:1rem;padding:1rem;background:#f9f9f9;border-radius:8px;border:1px solid #e0e0e0;transition:all .2s}.document-item:hover{background:#f5f5f5;border-color:#ccc}.document-icon{font-size:2rem;flex-shrink:0}.document-info{flex:1;min-width:0}.document-name{font-weight:500;color:#333;margin-bottom:.25rem;word-break:break-word}.document-meta{font-size:.875rem;color:#666}.document-actions{display:flex;gap:.5rem;flex-shrink:0}.doc-btn{background:transparent;border:none;padding:.5rem;border-radius:6px;cursor:pointer;font-size:1.25rem;transition:all .2s}.doc-btn:hover{background:#e0e0e0}.doc-btn.download:hover{background:#e3f2fd}.doc-btn.delete:hover{background:#ffebee}.suboffice-detail-page{padding:2rem;max-width:1400px;margin:0 auto}.page-header-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:2rem}.header-details{display:flex;align-items:center;gap:1.5rem}.suboffice-icon{font-size:2.5rem;background:#e3f2fd;width:64px;height:64px;display:flex;align-items:center;justify-content:center;border-radius:12px}.header-info h1{font-size:1.75rem;margin:0 0 .25rem;color:#1a1a1a}.office-meta{display:flex;gap:1rem;color:#666;font-size:.875rem}.back-btn{display:flex;align-items:center;gap:.5rem;background:#fff;border:1px solid #ddd;color:#333;padding:.75rem 1.25rem;border-radius:8px;cursor:pointer;font-weight:500;transition:all .2s}.back-btn:hover{background:#f5f5f5;border-color:#ccc}.category-tabs{display:flex;gap:1rem;margin-bottom:2rem;border-bottom:2px solid #e0e0e0}.category-tab{background:transparent;border:none;padding:1rem 2rem;cursor:pointer;font-size:1rem;font-weight:600;color:#666;border-bottom:3px solid transparent;display:flex;align-items:center;gap:.75rem;transition:all .2s}.category-tab:hover{color:#1976d2;background:#f5f5f5}.category-tab.active{color:#1976d2;border-bottom-color:#1976d2}.section-icon{font-size:1.25rem}.section-content{background:#fff;border-radius:12px;padding:2rem;box-shadow:0 2px 8px #0000001a}.section-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:2rem}.section-header h2{margin:0;font-size:1.5rem;color:#333}.upload-button-wrapper{position:relative}.upload-btn{background:#4caf50;color:#fff;border:none;padding:.75rem 1.5rem;border-radius:8px;cursor:pointer;font-size:.95rem;font-weight:500;display:flex;align-items:center;gap:.5rem;transition:all .2s}.upload-btn:hover{background:#45a049}.upload-btn:disabled{background:#ccc;cursor:not-allowed}.documents-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(350px,1fr));gap:1.5rem}.doc-card{border:1px solid #e0e0e0;border-radius:10px;padding:1.25rem;display:flex;gap:1rem;transition:all .2s;background:#fcfcfc}.doc-card:hover{transform:translateY(-2px);box-shadow:0 4px 12px #00000014;border-color:#ccc;background:#fff}.doc-icon-wrapper{background:#f0f0f0;width:48px;height:48px;border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:1.75rem;flex-shrink:0}.doc-details{flex:1;min-width:0}.doc-name{font-weight:600;color:#333;margin-bottom:.25rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.doc-meta{font-size:.8rem;color:#666;margin-bottom:.75rem}.doc-actions{display:flex;gap:.75rem}.doc-action-btn{padding:.4rem .8rem;border-radius:6px;border:1px solid transparent;cursor:pointer;font-size:.8rem;font-weight:500;transition:all .2s}.doc-action-btn.download{background:#e3f2fd;color:#1976d2;border-color:#bbdefb}.doc-action-btn.download:hover{background:#bbdefb}.doc-action-btn.delete{background:#ffebee;color:#d32f2f;border-color:#ffcdd2}.doc-action-btn.delete:hover{background:#ffcdd2}.empty-section{text-align:center;padding:4rem 2rem;color:#999}.empty-icon{font-size:3rem;margin-bottom:1rem;display:block}.estimate-list-page{padding:2rem;max-width:1400px;margin:0 auto}.page-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:2rem}.header-content h1{margin:0 0 .5rem;color:#1e293b;font-size:2rem}.header-content p{margin:0;color:#64748b;font-size:.95rem}.add-button{background:#2563eb;color:#fff;border:none;padding:.75rem 1.5rem;border-radius:8px;font-size:.95rem;font-weight:500;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;gap:.5rem;transition:all .2s}.add-button:hover{background:#1d4ed8;transform:translateY(-2px);box-shadow:0 4px 12px #2563eb4d}.filter-tabs{display:flex;gap:.5rem;margin-bottom:1.5rem;flex-wrap:wrap}.filter-tab{background:#fff;border:1px solid #e2e8f0;padding:.625rem 1.25rem;border-radius:8px;cursor:pointer;font-size:.9rem;transition:all .2s;color:#475569}.filter-tab:hover{border-color:#cbd5e1;background:#f8fafc}.filter-tab.active{background:#2563eb;border-color:#2563eb;color:#fff}.search-bar{margin-bottom:2rem}.search-bar input{width:100%;padding:.875rem 1.25rem;border:1px solid #e2e8f0;border-radius:10px;font-size:.95rem;transition:all .2s}.search-bar input:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1a}.estimates-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(350px,1fr));gap:1.5rem}.estimate-card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:1.5rem;transition:all .2s;cursor:pointer;text-decoration:none;color:inherit;display:block}.estimate-card:hover{border-color:#2563eb;box-shadow:0 4px 20px #2563eb1a;transform:translateY(-2px)}.card-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:1rem;gap:1rem}.card-header h3{margin:0 0 .5rem;font-size:1.1rem;color:#1e293b;line-height:1.4}.estimate-number{margin:0;font-size:.85rem;color:#64748b;font-family:Courier New,monospace}.status-badge{padding:.375rem .75rem;border-radius:6px;font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.5px;white-space:nowrap}.status-draft{background:#f1f5f9;color:#475569}.status-review{background:#fef3c7;color:#92400e}.status-approved{background:#d1fae5;color:#065f46}.status-finalized{background:#e0e7ff;color:#3730a3}.card-body{display:flex;flex-direction:column;gap:.75rem}.card-row{display:flex;justify-content:space-between;align-items:center}.project-type-badge{background:#f8fafc;padding:.375rem .75rem;border-radius:6px;font-size:.85rem;color:#475569}.fiscal-year{font-size:.85rem;color:#64748b;font-weight:500}.location{font-size:.85rem;color:#64748b}.card-footer{display:flex;justify-content:space-between;align-items:center;margin-top:.5rem;padding-top:1rem;border-top:1px solid #f1f5f9}.amount{font-size:1.25rem;font-weight:700;color:#2563eb}.date{font-size:.8rem;color:#94a3b8}.empty-state{grid-column:1 / -1;text-align:center;padding:4rem 2rem}.empty-icon{font-size:4rem;display:block;margin-bottom:1rem;opacity:.5}.empty-state h3{margin:0 0 .5rem;color:#1e293b}.empty-state p{margin:0;color:#64748b}.toast-container{position:fixed;top:1.5rem;right:1.5rem;z-index:9999;display:flex;flex-direction:column;gap:.5rem;pointer-events:none}.toast{pointer-events:all;display:flex;align-items:center;gap:.75rem;padding:.875rem 1.25rem;border-radius:10px;font-size:.9rem;font-weight:500;box-shadow:0 4px 20px #00000026;animation:toast-in .3s ease-out;min-width:280px;max-width:420px}.toast.exiting{animation:toast-out .25s ease-in forwards}.toast-success{background:#ecfdf5;color:#065f46;border:1px solid #a7f3d0}.toast-error{background:#fef2f2;color:#991b1b;border:1px solid #fecaca}.toast-info{background:#eff6ff;color:#1e40af;border:1px solid #bfdbfe}.toast-icon{font-size:1.1rem;flex-shrink:0}.toast-message{flex:1;line-height:1.4}.toast-close{background:none;border:none;cursor:pointer;font-size:1rem;opacity:.5;padding:0;line-height:1;flex-shrink:0}.toast-close:hover{opacity:1}@keyframes toast-in{0%{transform:translate(100%);opacity:0}to{transform:translate(0);opacity:1}}@keyframes toast-out{0%{transform:translate(0);opacity:1}to{transform:translate(100%);opacity:0}}.estimate-grid{background:#fff;border-radius:8px;box-shadow:0 1px 3px #0000001a;overflow:hidden}.grid-loading{padding:3rem;text-align:center;color:#64748b}.grid-toolbar{padding:1rem;border-bottom:2px solid #e2e8f0;display:flex;justify-content:space-between;align-items:center;background:#f8fafc}.add-row-btn{padding:.5rem 1rem;background:#3b82f6;color:#fff;border:none;border-radius:6px;cursor:pointer;font-size:.875rem;font-weight:500;transition:background .2s}.add-row-btn:hover{background:#2563eb}.save-controls{display:flex;align-items:center;gap:.75rem}.unsaved-badge{background:#fef3c7;color:#92400e;padding:.375rem .75rem;border-radius:6px;font-size:.8rem;font-weight:500}.save-btn{padding:.5rem 1.25rem;background:#10b981;color:#fff;border:none;border-radius:6px;cursor:pointer;font-size:.875rem;font-weight:600;transition:all .2s}.save-btn:hover:not(:disabled){background:#059669;transform:translateY(-1px)}.save-btn:disabled{opacity:.5;cursor:not-allowed}.discard-btn{padding:.5rem 1rem;background:#ef4444;color:#fff;border:none;border-radius:6px;cursor:pointer;font-size:.875rem;font-weight:500;transition:background .2s}.discard-btn:hover:not(:disabled){background:#dc2626}.discard-btn:disabled{opacity:.5;cursor:not-allowed}.grid-scroll-container{overflow-x:auto;max-height:600px;overflow-y:auto}.estimate-table{width:100%;border-collapse:collapse;font-size:.875rem;table-layout:fixed}.estimate-table.excel-style{border:1px solid #cbd5e1}.estimate-table thead{position:sticky;top:0;z-index:10;background:#f1f5f9}.estimate-table th{padding:.75rem .5rem;text-align:left;font-weight:600;color:#1e293b;border:1px solid #cbd5e1;background:#f1f5f9;font-size:.8rem;text-transform:uppercase;letter-spacing:.025em}.estimate-table tbody tr{transition:background .15s}.estimate-table tbody tr:hover{background:#f8fafc}.estimate-table tbody tr.has-changes{background:#fef3c7}.estimate-table tbody tr.has-changes:hover{background:#fde68a}.estimate-table td{padding:0;border:1px solid #e2e8f0;background:#fff;vertical-align:middle}.estimate-table tbody tr.has-changes td{background:#fefce8}.excel-input{width:100%;height:100%;padding:.5rem;border:none;background:transparent;font-size:.875rem;font-family:inherit;outline:none;box-sizing:border-box}.excel-input:focus{background:#fff;box-shadow:inset 0 0 0 2px #3b82f6;position:relative;z-index:5}.excel-input::placeholder{color:#cbd5e1;font-style:italic}input[type=number].excel-input::-webkit-inner-spin-button,input[type=number].excel-input::-webkit-outer-spin-button{opacity:1}.col-sn{width:70px;text-align:center}.col-description{min-width:250px;max-width:400px}.col-no{width:80px}.col-dimension{width:90px}.col-quantity{width:100px}.col-unit{width:80px}.col-remarks{min-width:150px;max-width:250px}.col-actions{width:140px;text-align:center}.description-cell{display:flex;align-items:center;gap:.5rem;width:100%}.expand-btn{background:none;border:none;cursor:pointer;padding:.25rem;font-size:.75rem;color:#64748b;flex-shrink:0;width:20px;height:20px;display:flex;align-items:center;justify-content:center;border-radius:3px;transition:all .2s}.expand-btn:hover{background:#e2e8f0;color:#1e293b}.description-cell .excel-input{flex:1}.group-row{background:#f1f5f9}.group-row .excel-input{font-weight:600}.action-buttons{display:flex;gap:.25rem;justify-content:center;padding:.25rem}.action-btn{background:#e2e8f0;border:1px solid #cbd5e1;border-radius:4px;width:28px;height:28px;cursor:pointer;font-size:.75rem;display:flex;align-items:center;justify-content:center;transition:all .15s;color:#475569;flex-shrink:0}.action-btn:hover{background:#cbd5e1;transform:scale(1.05)}.action-btn.insert-above,.action-btn.insert-below{background:#dbeafe;border-color:#93c5fd;color:#1e40af}.action-btn.insert-above:hover,.action-btn.insert-below:hover{background:#bfdbfe}.action-btn.add-child{background:#d1fae5;border-color:#6ee7b7;color:#065f46}.action-btn.add-child:hover{background:#a7f3d0}.action-btn.delete{background:#fecaca;border-color:#fca5a5}.action-btn.delete:hover{background:#fca5a5}.empty-state{padding:3rem;text-align:center;color:#94a3b8;font-style:italic}.section-estimate-grid{display:flex;flex-direction:column;gap:1rem}.section-toolbar{display:flex;justify-content:space-between;align-items:center;padding:.75rem 1rem;background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px}.section-toolbar .toolbar-left{display:flex;gap:.5rem}.section-list{display:flex;flex-direction:column;gap:.75rem}.section-card{background:#fff;border:1px solid #e2e8f0;border-radius:10px;overflow:hidden;transition:box-shadow .2s}.section-card:hover{box-shadow:0 2px 8px #0000000f}.section-card-header{display:flex;align-items:center;justify-content:space-between;padding:1rem 1.25rem;cursor:pointer;-webkit-user-select:none;user-select:none;background:#f8fafc;border-bottom:1px solid #e2e8f0}.section-card-header:hover{background:#f1f5f9}.section-card-header .section-title{display:flex;align-items:center;gap:.75rem;font-weight:600;font-size:1rem;color:#1e293b}.section-card-header .section-title .expand-icon{font-size:.7rem;color:#94a3b8;transition:transform .2s;width:1rem;text-align:center}.section-card-header .section-title .expand-icon.expanded{transform:rotate(90deg)}.section-card-header .section-meta{display:flex;align-items:center;gap:1rem}.section-card-header .section-meta .item-count{font-size:.8rem;color:#64748b;background:#e2e8f0;padding:.2rem .6rem;border-radius:20px}.section-card-header .section-meta .section-subtotal{font-weight:600;color:#0f766e;font-size:.95rem}.section-card-header .section-actions{display:flex;gap:.25rem}.section-card-header .section-actions button{background:none;border:none;cursor:pointer;font-size:.85rem;padding:.25rem .5rem;border-radius:6px;transition:background .15s}.section-card-header .section-actions button:hover{background:#e2e8f0}.section-items{padding:0}.section-items table{width:100%;border-collapse:collapse;font-size:.875rem}.section-items th{background:#f1f5f9;padding:.5rem .75rem;text-align:left;font-weight:600;color:#475569;border-bottom:1px solid #e2e8f0;font-size:.8rem;text-transform:uppercase;letter-spacing:.03em}.section-items td{padding:.4rem .5rem;border-bottom:1px solid #f1f5f9}.section-items tr:last-child td{border-bottom:none}.section-items .item-input{width:100%;border:1px solid transparent;padding:.35rem .5rem;font-size:.875rem;border-radius:4px;background:transparent;box-sizing:border-box}.section-items .item-input:focus{border-color:#3b82f6;outline:none;background:#fff}.section-items .item-input:hover:not(:focus){border-color:#cbd5e1;background:#f8fafc}.section-items .col-item-sn{width:50px;text-align:center}.section-items .col-item-desc{min-width:200px}.section-items .col-item-unit{width:70px}.section-items .col-item-qty,.section-items .col-item-rate{width:90px}.section-items .col-item-amount{width:110px}.section-items .col-item-actions{width:50px;text-align:center}.section-items .col-item-no{width:60px}.section-items .col-item-dim{width:80px}.section-items .col-item-remarks{min-width:100px}.section-items .computed-amount{background:#f8fafc;padding:.35rem .5rem;font-size:.875rem;color:#0f766e;font-weight:500}.section-items .add-item-row{padding:.5rem .75rem}.section-items .add-item-btn{background:none;border:1px dashed #cbd5e1;color:#64748b;padding:.35rem .75rem;border-radius:6px;cursor:pointer;font-size:.8rem;transition:all .15s}.section-items .add-item-btn:hover{border-color:#3b82f6;color:#3b82f6;background:#eff6ff}.section-items .delete-item-btn{background:none;border:none;cursor:pointer;font-size:.8rem;padding:.2rem .4rem;border-radius:4px;opacity:.5;transition:all .15s}.section-items .delete-item-btn:hover{opacity:1;background:#fef2f2}.add-section-card{border:2px dashed #cbd5e1;border-radius:10px;padding:1rem;text-align:center;cursor:pointer;color:#64748b;font-size:.95rem;transition:all .2s}.add-section-card:hover{border-color:#3b82f6;color:#3b82f6;background:#eff6ff}.section-edit-inline{display:flex;gap:.5rem;align-items:center;padding:.75rem 1rem;background:#fff;border:1px solid #e2e8f0;border-radius:10px}.section-edit-inline input{flex:1;border:1px solid #e2e8f0;padding:.5rem .75rem;border-radius:6px;font-size:.9rem}.section-edit-inline input:focus{border-color:#3b82f6;outline:none}.section-edit-inline button{padding:.5rem 1rem;border-radius:6px;border:none;cursor:pointer;font-size:.85rem;font-weight:500}.section-edit-inline .save-section-btn{background:#3b82f6;color:#fff}.section-edit-inline .cancel-section-btn{background:#f1f5f9;color:#64748b}.section-empty{text-align:center;padding:1.5rem;color:#94a3b8;font-size:.9rem}.estimate-detail-page{padding:2rem;max-width:1200px;margin:0 auto}.detail-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:2rem;gap:2rem}.header-left h1{margin:.5rem 0;color:#1e293b;font-size:2rem}.estimate-number{margin:0;font-size:.95rem;color:#64748b;font-family:Courier New,monospace}.back-button{background:none;border:none;color:#2563eb;font-size:.95rem;cursor:pointer;padding:.5rem 0;margin-bottom:.5rem;display:inline-block}.back-button:hover{text-decoration:underline}.header-right{display:flex;gap:1rem;align-items:center}.edit-button{background:#2563eb;color:#fff;border:none;padding:.625rem 1.25rem;border-radius:8px;cursor:pointer;font-size:.9rem;text-decoration:none;display:inline-flex;align-items:center;gap:.5rem;transition:all .2s}.edit-button:hover{background:#1d4ed8}.download-button{background:#10b981;color:#fff;border:none;padding:.625rem 1.25rem;border-radius:8px;cursor:pointer;font-size:.9rem;display:inline-flex;align-items:center;gap:.5rem;transition:all .2s;font-weight:500}.download-button:hover{background:#059669}.abstract-button{background:#7c3aed;color:#fff;border:none;padding:.625rem 1.25rem;border-radius:8px;cursor:pointer;font-size:.9rem;display:inline-flex;align-items:center;gap:.5rem;transition:all .2s;font-weight:500}.abstract-button:hover{background:#6d28d9}.estimate-info{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:1.5rem;margin-bottom:2rem}.info-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1.5rem;margin-bottom:1rem}.info-item{display:flex;flex-direction:column;gap:.5rem}.info-label{font-size:.85rem;color:#64748b;font-weight:500;text-transform:uppercase;letter-spacing:.5px}.info-value{color:#1e293b;font-size:1rem}.dual-date-value{display:flex;flex-direction:column;gap:.25rem}.date-line{font-size:.9rem;color:#1e293b;display:flex;align-items:center;gap:.5rem}.date-tag{font-size:.8rem;color:#64748b;font-weight:500}.description{padding-top:1rem;border-top:1px solid #f1f5f9}.description p{margin:.5rem 0 0;color:#475569;line-height:1.6}.sections-container{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:1.5rem;margin-bottom:2rem}.sections-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem}.sections-header h2{margin:0;font-size:1.5rem;color:#1e293b}.view-toggle{display:inline-flex;border:1px solid #e2e8f0;border-radius:8px;overflow:hidden;background:#f8fafc}.toggle-btn{background:none;border:none;padding:.5rem 1rem;cursor:pointer;font-size:.85rem;font-weight:500;color:#64748b;transition:all .2s;white-space:nowrap}.toggle-btn:hover{background:#e2e8f0}.toggle-btn.active{background:#3b82f6;color:#fff}.total-amount{font-size:1.25rem;color:#1e293b}.total-amount strong{color:#2563eb;font-size:1.5rem;margin-left:.5rem}.section-card{border:1px solid #e2e8f0;border-radius:8px;margin-bottom:1rem;overflow:hidden}.section-header{display:flex;justify-content:space-between;align-items:center;padding:1rem 1.25rem;background:#f8fafc;cursor:pointer;transition:background .2s}.section-header:hover{background:#f1f5f9}.section-title{display:flex;align-items:center;gap:.75rem;font-size:1.05rem}.expand-icon{color:#64748b;font-size:.8rem}.section-subtotal{font-weight:600;color:#2563eb;font-size:1.1rem}.section-body{padding:1.25rem}.section-description{color:#64748b;margin:0 0 1rem;font-size:.95rem}.items-table{width:100%;border-collapse:collapse}.items-table th{background:#f8fafc;padding:.75rem;text-align:left;font-size:.85rem;color:#64748b;font-weight:600;text-transform:uppercase;letter-spacing:.5px;border-bottom:2px solid #e2e8f0}.items-table td{padding:.875rem .75rem;border-bottom:1px solid #f1f5f9;color:#1e293b}.items-table tbody tr:hover{background:#fafbfc}.item-number{font-family:Courier New,monospace;color:#64748b;font-size:.9rem}.item-description{display:flex;flex-direction:column;gap:.25rem}.specification{color:#64748b;font-size:.85rem;display:block}.quantity,.unit-rate,.amount{text-align:right;font-family:Courier New,monospace}.amount{font-weight:600;color:#2563eb}.no-items{text-align:center;color:#94a3b8;padding:2rem;margin:0}.empty-state{text-align:center;padding:3rem;color:#64748b}.add-section-button{background:#2563eb;color:#fff;border:none;padding:.75rem 1.5rem;border-radius:8px;margin-top:1rem;cursor:pointer;font-size:.95rem;text-decoration:none;display:inline-block}.workflow-actions{display:flex;gap:1rem;justify-content:flex-end}.workflow-button{border:none;padding:.875rem 1.75rem;border-radius:8px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .2s}.workflow-button.submit{background:#2563eb;color:#fff}.workflow-button.submit:hover{background:#1d4ed8}.workflow-button.approve{background:#10b981;color:#fff}.workflow-button.approve:hover{background:#059669}.workflow-button.reject{background:#ef4444;color:#fff}.workflow-button.reject:hover{background:#dc2626}.loading,.error{text-align:center;padding:4rem 2rem;color:#64748b;font-size:1.1rem}.add-section-row{margin-bottom:1rem;display:flex;justify-content:flex-end}.add-section-button:hover{background:#1d4ed8}.modal-overlay{position:fixed;inset:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000}.modal-content{background:#fff;border-radius:12px;padding:2rem;max-width:500px;width:90%;max-height:90vh;overflow-y:auto}.modal-content h3{margin:0 0 1.5rem;color:#1e293b}.form-group{margin-bottom:1.25rem}.form-group label{display:block;margin-bottom:.5rem;color:#1e293b;font-weight:500;font-size:.95rem}.form-group .required{color:#ef4444}.form-group input,.form-group textarea{width:100%;padding:.75rem;border:1px solid #e2e8f0;border-radius:8px;font-size:.95rem;font-family:inherit;transition:border-color .2s}.form-group input:focus,.form-group textarea:focus{outline:none;border-color:#2563eb}.modal-actions{display:flex;gap:1rem;justify-content:flex-end;margin-top:1.5rem}.cancel-button,.submit-button{padding:.75rem 1.5rem;border-radius:8px;font-size:.95rem;font-weight:500;cursor:pointer;transition:all .2s;border:none}.cancel-button{background:#f1f5f9;color:#64748b}.cancel-button:hover{background:#e2e8f0}.submit-button{background:#2563eb;color:#fff}.submit-button:hover{background:#1d4ed8}.add-item-row{margin-top:1rem;padding-top:1rem;border-top:1px solid #f1f5f9;display:flex;justify-content:flex-end}.add-item-button{background:#10b981;color:#fff;border:none;padding:.625rem 1.25rem;border-radius:6px;cursor:pointer;font-size:.9rem;transition:all .2s}.add-item-button:hover{background:#059669}.form-row-2col{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin-bottom:1.25rem}.calculated-field{background:#f8fafc;padding:1rem;border-radius:8px;border:1px solid #e2e8f0}.calculated-field label{color:#64748b;font-size:.85rem;margin-bottom:.25rem}.amount-display{font-size:1.5rem;font-weight:700;color:#2563eb;font-family:Courier New,monospace;margin-top:.5rem}.modal-large{max-width:650px}.workflow-button.reopen{background:#f59e0b}.workflow-button.reopen:hover{background:#d97706}.delete-section-button,.delete-item-button{background:transparent;border:none;cursor:pointer;font-size:1.1rem;padding:.25rem .5rem;opacity:.6;transition:opacity .2s;margin-left:.5rem}.delete-section-button:hover,.delete-item-button:hover{opacity:1}.items-table th.actions,.items-table td.actions{text-align:center;width:80px}.status-badge{display:inline-flex;align-items:center;gap:.5rem;padding:.5rem 1rem;border-radius:8px;font-size:.9rem;font-weight:600}.status-badge.status-draft{background:#f3f4f6;color:#6b7280}.status-badge.status-review{background:#dbeafe;color:#1e40af}.status-badge.status-approved{background:#d1fae5;color:#065f46}.status-badge.status-finalized{background:#e0e7ff;color:#4338ca}.estimate-form-page{padding:2rem;max-width:900px;margin:0 auto}.form-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:2rem}.form-header h1{margin:0;color:#1e293b;font-size:2rem}.cancel-button{background:none;border:1px solid #e2e8f0;color:#64748b;padding:.625rem 1.25rem;border-radius:8px;cursor:pointer;font-size:.9rem;transition:all .2s}.cancel-button:hover{border-color:#cbd5e1;background:#f8fafc}.estimate-form{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:2rem}.form-section{margin-bottom:2rem}.form-section h2{margin:0 0 1.5rem;color:#1e293b;font-size:1.25rem;padding-bottom:.75rem;border-bottom:2px solid #f1f5f9}.form-row{display:flex;gap:1.5rem;margin-bottom:1.5rem}.form-group{flex:1;display:flex;flex-direction:column;gap:.5rem}.form-group.full-width{flex:1 1 100%}.form-group label{font-size:.9rem;font-weight:600;color:#475569}.required{color:#ef4444}.form-group input,.form-group select,.form-group textarea{padding:.75rem;border:1px solid #e2e8f0;border-radius:8px;font-size:.95rem;font-family:inherit;transition:all .2s}.form-group input:focus,.form-group select:focus,.form-group textarea:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1a}.form-group textarea{resize:vertical;min-height:100px;font-family:inherit;line-height:1.5}.form-actions{display:flex;gap:1rem;justify-content:flex-end;padding-top:1.5rem;border-top:1px solid #f1f5f9}.primary-button,.secondary-button{padding:.875rem 1.75rem;border-radius:8px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .2s;border:none}.primary-button{background:#2563eb;color:#fff}.primary-button:hover:not(:disabled){background:#1d4ed8;transform:translateY(-1px);box-shadow:0 4px 12px #2563eb4d}.primary-button:disabled{opacity:.6;cursor:not-allowed}.secondary-button{background:#fff;color:#64748b;border:1px solid #e2e8f0}.secondary-button:hover:not(:disabled){border-color:#cbd5e1;background:#f8fafc}.secondary-button:disabled{opacity:.6;cursor:not-allowed}.form-note{background:#f0f9ff;border:1px solid #bfdbfe;border-radius:8px;padding:1rem;margin-top:1rem}.form-note p{margin:0;color:#1e40af;font-size:.9rem;line-height:1.5}.loading{text-align:center;padding:4rem 2rem;color:#64748b;font-size:1.1rem}@media(max-width:768px){.form-row{flex-direction:column}}*{box-sizing:border-box}body{margin:0;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:#f1f5f9;color:#1e293b;line-height:1.5}a{color:inherit;text-decoration:none}button,input,select,textarea{font-family:inherit}h1,h2,h3,h4,h5,h6{margin:0;font-weight:600}p{margin:0}
