:root{font-family:Segoe UI,Inter,system-ui,-apple-system,sans-serif;line-height:1.5;font-weight:400;color:#0d1b3f;background-color:#f4f7ff;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}body{margin:0;min-width:320px;min-height:100vh;background:#f4f7ff}#root{width:100%;margin:0 auto}.login-container{min-height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#667eea,#764ba2);padding:20px}.login-box{background:#fff;border-radius:12px;box-shadow:0 10px 40px #0003;padding:40px;width:100%;max-width:450px;animation:fadeIn .3s ease-in}@keyframes fadeIn{0%{opacity:0;transform:translateY(-20px)}to{opacity:1;transform:translateY(0)}}.login-box h1{margin:0 0 10px;color:#333;font-size:28px;text-align:center;font-weight:600}.login-subtitle{text-align:center;color:#666;margin-bottom:30px;font-size:14px}.form-group{margin-bottom:20px}.form-group label{display:block;margin-bottom:8px;color:#333;font-weight:500}.form-group input,.form-group select{width:100%;padding:12px 16px;border:2px solid #e0e0e0;border-radius:8px;font-size:16px;box-sizing:border-box;transition:all .3s ease;outline:none}.form-group input:focus,.form-group select:focus{border-color:#667eea;box-shadow:0 0 0 3px #667eea1a}.form-group input.error{border-color:#e74c3c}.form-group small{display:block;margin-top:5px;color:#666;font-size:12px}.submit-button{width:100%;padding:14px 24px;font-size:16px;font-weight:600;border:none;border-radius:8px;cursor:pointer;transition:all .3s ease;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;margin-top:10px}.submit-button:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 5px 15px #667eea66}.submit-button:disabled{opacity:.6;cursor:not-allowed;transform:none}.error-message{background-color:#fee;border:1px solid #fcc;color:#c33;padding:12px;border-radius:6px;font-size:14px;text-align:center;margin-bottom:20px}.login-footer{margin-top:30px;padding-top:20px;border-top:1px solid #e0e0e0;text-align:center}.login-footer p{font-size:12px;color:#999;margin:0}.procedures-container{width:100vw;height:100vh;margin:0;padding:0;background:linear-gradient(180deg,#e3f2fd,#f5f9ff 60%,#fff);color:#1565c0;font-family:Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;display:flex;flex-direction:column;overflow:hidden}.header{position:sticky;top:0;z-index:5;background:linear-gradient(135deg,#e3f2fd,#fff);border-bottom:1px solid #d5e5ff;box-shadow:0 6px 18px #0f3b7c14;padding:18px 24px;display:flex;justify-content:space-between;align-items:center;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.header h1{margin:0 0 6px;color:#0d47a1;font-size:24px;font-weight:700}.user-info{margin:0;color:#1e3a5f;font-size:14px}.header-actions{display:flex;align-items:center;gap:15px}.logout-button{padding:10px 20px;background:linear-gradient(135deg,#1e88e5,#1565c0);color:#fff;border:none;border-radius:8px;cursor:pointer;font-size:14px;font-weight:600;transition:all .2s;box-shadow:0 3px 10px #1e88e52e}.logout-button:hover{transform:translateY(-1px);box-shadow:0 5px 15px #1e88e54d}.admin-button{padding:10px 20px;background:linear-gradient(135deg,#42a5f5,#1e88e5);color:#fff;border:none;border-radius:8px;cursor:pointer;font-size:14px;font-weight:600;transition:all .2s;box-shadow:0 3px 10px #42a5f52e}.admin-button:hover{transform:translateY(-1px);box-shadow:0 5px 15px #42a5f54d}.content{width:100%;height:calc(100vh - 120px);margin:0;padding:20px;display:flex;flex-direction:column;overflow:hidden}.actions-bar{display:flex;gap:12px;margin-bottom:20px;flex-wrap:wrap;flex-shrink:0}.action-button{padding:12px 24px;border:none;border-radius:8px;font-size:16px;font-weight:600;cursor:pointer;transition:all .2s}.action-button:not(:disabled):hover{transform:translateY(-2px);box-shadow:0 4px 12px #00000026}.action-button:disabled{opacity:.6;cursor:not-allowed}.action-button.primary{background:linear-gradient(135deg,#42a5f5,#1e88e5);color:#fff;box-shadow:0 3px 10px #1e88e52e}.action-button.primary:hover:not(:disabled){box-shadow:0 5px 15px #1e88e54d}.action-button.secondary{background:#e3f2fd;color:#0d47a1;border:1px solid #bbdefb}.action-button.secondary:hover:not(:disabled){background:#bbdefb}.action-button:not(.primary):not(.secondary){background:#fff;color:#0d47a1;border:1px solid #bbdefb;box-shadow:0 2px 8px #0d47a114}.results-box{background:#fff;border-radius:12px;padding:20px;margin-bottom:20px;box-shadow:0 4px 14px #06358214;border:1px solid #e1e8f5}.results-box.success{border-left:4px solid #4caf50}.results-box.warning{border-left:4px solid #ff9800}.results-box h3{margin:0 0 15px;color:#0d47a1;font-size:18px}.results-box p{margin:8px 0;color:#1e3a5f}.failed-list{margin-top:15px;padding-top:15px;border-top:1px solid #e1e8f5}.failed-list h4{margin:0 0 10px;color:#c62828;font-size:14px}.failed-list ul{margin:0;padding-left:20px;color:#1e3a5f}.failed-list li{margin:5px 0}.close-results{margin-top:15px;padding:8px 16px;background:#6c757d;color:#fff;border:none;border-radius:8px;cursor:pointer;font-size:14px;font-weight:600;transition:all .2s}.close-results:hover{background:#5a6268;transform:translateY(-1px)}.loading,.empty-state{text-align:center;padding:60px 20px;background:#fff;border-radius:12px;color:#1e3a5f;box-shadow:0 4px 14px #06358214;border:1px solid #e1e8f5;flex-shrink:0}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}.loading{animation:pulse 2s ease-in-out infinite}.procedures-table .filter-row{background:#fff;border-bottom:2px solid #42a5f5;box-shadow:0 2px 4px #42a5f51a;position:sticky;top:48px;z-index:9;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}.procedures-table .filter-row td{padding:10px 8px;background:#fff!important;border-bottom:1px solid #e3f2fd;position:relative}.filter-cell{display:flex;align-items:center;gap:5px}.filter-button{width:28px;height:28px;border:none;border-radius:4px;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:14px;transition:all .2s;flex-shrink:0}.search-button{background:linear-gradient(135deg,#64b5f6,#42a5f5);color:#fff;box-shadow:0 2px 4px #42a5f54d}.search-button:hover{background:linear-gradient(135deg,#42a5f5,#1e88e5);transform:scale(1.1);box-shadow:0 3px 6px #42a5f566}.clear-button{background:linear-gradient(135deg,#ef5350,#e53935);color:#fff;box-shadow:0 2px 4px #e539354d}.clear-button:hover{background:linear-gradient(135deg,#e53935,#c62828);transform:scale(1.1);box-shadow:0 3px 6px #e5393566}.filter-input{width:100%;padding:8px 10px;border:1px solid #90caf9;border-radius:6px;background:#fff;font-size:12.5px;color:#1565c0;transition:all .2s;font-family:Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif}.filter-input:focus{outline:none;border-color:#42a5f5;box-shadow:0 0 0 3px #42a5f526;background:#f5f9ff}.filter-input::placeholder{color:#90caf9;font-size:11.5px;font-style:italic}.date-filter-wrapper{position:relative;display:flex;align-items:center}.date-input{padding-right:28px}.calendar-icon{position:absolute;right:10px;font-size:15px;color:#42a5f5;opacity:.8;-webkit-user-select:none;user-select:none}.calendar-icon.clickable{cursor:pointer;pointer-events:auto;transition:all .2s}.calendar-icon.clickable:hover{opacity:1;transform:scale(1.1);color:#1e88e5}.date-picker-hidden{position:absolute;opacity:0;width:0;height:0;pointer-events:none;border:none;padding:0;margin:0}.procedures-table th{position:sticky;top:0;z-index:10}.procedures-table tbody tr:hover td{color:#004d40;font-weight:500}.procedures-table-wrapper{flex:1;display:flex;flex-direction:column;overflow:hidden;background:#fff;border-radius:12px;box-shadow:0 4px 20px #42a5f51f;border:1px solid #e3f2fd;position:relative}.procedures-table-container{flex:1;overflow:auto;position:relative;background:#fff;border-radius:12px}.procedures-table-container::-webkit-scrollbar{width:12px;height:12px}.procedures-table-container::-webkit-scrollbar-track{background:#f5f9ff;border-radius:6px}.procedures-table-container::-webkit-scrollbar-thumb{background:linear-gradient(135deg,#64b5f6,#42a5f5);border-radius:6px;border:2px solid #f5f9ff;transition:background .3s}.procedures-table-container::-webkit-scrollbar-thumb:hover{background:linear-gradient(135deg,#42a5f5,#1e88e5)}.procedures-table-container::-webkit-scrollbar-corner{background:#f5f9ff}.procedures-table{width:100%;border-collapse:separate;border-spacing:0;min-width:3000px;table-layout:fixed;background:#fff;font-family:Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif}.procedures-table thead{background:linear-gradient(135deg,#64b5f6,#42a5f5);box-shadow:0 2px 8px #42a5f526;position:sticky;top:0;z-index:10;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}.procedures-table th{padding:14px 10px;text-align:left;font-weight:600;color:#fff;border-bottom:2px solid #1e88e5;font-size:13px;position:relative;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:linear-gradient(135deg,#64b5f6,#42a5f5);box-shadow:0 2px 4px #00000014;text-shadow:0 1px 2px rgba(0,0,0,.1);letter-spacing:.3px}.procedures-table th .resizer{position:absolute;top:0;right:0;width:5px;height:100%;cursor:col-resize;background:#ffffff40;transition:background .2s;z-index:10}.procedures-table th .resizer:hover{background:#fff9}.procedures-table th .resizer:active{background:#ffffffe6}.procedures-table th input{width:100%;padding:4px 6px;margin-top:4px;border:1px solid rgba(255,255,255,.3);border-radius:4px;background:#ffffffe6;font-size:12px;color:#333}.procedures-table th input::placeholder{color:#999;font-size:11px}.procedures-table td{padding:14px 12px;border-bottom:1px solid #e3f2fd;color:#1565c0;font-size:13.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;position:relative;background:#fff;font-weight:400;line-height:1.5}.procedures-table tbody tr:nth-child(2n){background:#f5f9ff}.procedures-table tbody tr:nth-child(odd){background:#fff}.procedures-table tbody tr:hover{background:linear-gradient(90deg,#e3f2fd,#bbdefb);transform:scale(1.001);box-shadow:0 2px 12px #42a5f526;transition:all .2s ease;border-left:3px solid #42a5f5}.procedures-table tbody tr:hover td{color:#0d47a1;font-weight:500}.procedures-table tbody tr:last-child td{border-bottom:none}.procedures-table tbody tr.sms-sent,.procedures-table tbody tr.sms-sent td{background:#e8f5e9!important}.procedures-table tbody tr.sms-sent:hover{background:#c8e6c9!important;border-left:3px solid #4caf50}.procedures-table tbody tr.sms-sent:hover td{background:#c8e6c9!important;color:#1b5e20;font-weight:500}.procedures-table input[type=checkbox]{width:18px;height:18px;cursor:pointer}@media(max-width:768px){.header{flex-direction:column;align-items:flex-start;gap:15px}.actions-bar{flex-direction:column}.action-button{width:100%}}.admin-panel{min-height:100vh;background:linear-gradient(180deg,#e8f0ff,#f7faff 60%,#fff);color:#0a1f44;padding:24px;font-family:Segoe UI,Arial,sans-serif}.admin-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px;padding:20px;background:#fff;border-radius:12px;box-shadow:0 4px 14px #06358214;border:1px solid #e1e8f5}.admin-header h1{margin:0 0 6px;color:#0d47a1;font-size:24px}.admin-header p{margin:0;color:#1e3a5f;font-size:14px}.header-actions{display:flex;gap:12px}.admin-content{max-width:1200px;margin:0 auto}.admin-section{margin-top:24px}.section-header{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:12px}.section-header h2{margin:0;color:#0d47a1;font-size:20px}.card{background:#fff;border-radius:12px;padding:20px;box-shadow:0 4px 14px #06358214;border:1px solid #e1e8f5}.form{display:flex;flex-direction:column;gap:16px}.form label{display:flex;flex-direction:column;font-weight:600;color:#1e3a5f;gap:6px;font-size:14px}.form input,.form select{padding:10px 12px;border-radius:8px;border:1px solid #cbd6ec;font-size:14px;background:#f9fbff;transition:all .2s}.form input:focus,.form select:focus{outline:none;border-color:#1e88e5;box-shadow:0 0 0 3px #1e88e51a}.form-actions{display:flex;gap:10px;margin-top:6px}.user-list{display:flex;flex-direction:column;gap:12px}.user-row{display:flex;justify-content:space-between;align-items:center;padding:16px;border:1px solid #e3ebfb;border-radius:8px;background:#f9fbff;transition:all .2s}.user-row:hover{box-shadow:0 2px 8px #0d47a11a}.user-edit-form{padding:16px;border:2px solid #1e88e5;border-radius:8px;background:#f5f9ff;margin-bottom:12px}.user-edit-form .form{gap:12px}.user-info{flex:1}.user-name{display:flex;align-items:center;gap:10px;margin-bottom:8px}.user-name strong{color:#0d47a1;font-size:16px}.user-meta{display:flex;gap:10px;align-items:center}.badge{padding:4px 10px;border-radius:12px;font-size:12px;font-weight:600}.badge.admin{background:#e3f2fd;color:#0d47a1}.badge.area{background:#e8f5e9;color:#2e7d32}.status{padding:4px 10px;border-radius:12px;font-size:12px;font-weight:600}.status.active{background:#e8f5e9;color:#2e7d32}.status.inactive{background:#ffebee;color:#c62828}.row-actions{display:flex;gap:8px}.btn{padding:10px 16px;border:none;border-radius:8px;cursor:pointer;font-weight:600;font-size:14px;transition:all .2s}.btn.primary{background:linear-gradient(135deg,#1e88e5,#1565c0);color:#fff}.btn.secondary{background:#e3f2fd;color:#0d47a1;border:1px solid #bbdefb}.btn.ghost{background:transparent;color:#0d47a1;border:1px solid #bbdefb}.btn.danger{background:#ffebee;color:#c62828;border:1px solid #ffcdd2}.btn:disabled{opacity:.6;cursor:not-allowed}.btn:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 3px 10px #0d47a12e}.error-message{background:#ffebee;color:#c62828;padding:15px;border-radius:8px;margin-bottom:20px;border:1px solid #ffcdd2}.success-message{background:#e8f5e9;color:#2e7d32;padding:15px;border-radius:8px;margin-bottom:20px;border:1px solid #c8e6c9}.loading,.empty-state{text-align:center;padding:40px;color:#1e3a5f}@media(max-width:768px){.admin-header{flex-direction:column;align-items:flex-start;gap:15px}.user-row{flex-direction:column;align-items:flex-start;gap:12px}.row-actions{width:100%}.btn{flex:1}}.app-container{width:100%;height:100vh;margin:0;padding:0;background:radial-gradient(circle at 20% 20%,rgba(129,177,255,.25),transparent 35%),radial-gradient(circle at 80% 0%,rgba(100,181,246,.25),transparent 30%),linear-gradient(180deg,#e6f2ff,#f9fbff 60%,#fff)}*{box-sizing:border-box}body{margin:0;padding:0;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:#f4f7ff}#root{min-height:100vh}
