.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background-color:#00000080;display:flex;justify-content:center;align-items:center;z-index:10000;animation:fadeIn .2s ease-out}.modal-container{background:#fff;border-radius:12px;box-shadow:0 10px 40px #0003;max-width:480px;width:90%;animation:slideUp .3s ease-out}@keyframes slideUp{0%{transform:translateY(20px);opacity:0}to{transform:translateY(0);opacity:1}}.modal-content{padding:2rem;text-align:center}.modal-icon{margin:0 auto 1.5rem;display:block}.modal-icon.success{stroke:#10b981}.modal-icon.error{stroke:#ef4444}.modal-icon.warning{stroke:#f59e0b}.modal-icon.danger{stroke:#dc2626}.modal-icon.info{stroke:#3b82f6}.modal-title{font-size:1.5rem;font-weight:600;margin-bottom:.75rem;color:#1f2937}.modal-message{font-size:1rem;color:#6b7280;margin-bottom:2rem;line-height:1.6;white-space:pre-line}.modal-actions{display:flex;gap:.75rem;justify-content:center}.modal-button{padding:.75rem 2rem;border:none;border-radius:8px;font-size:1rem;font-weight:500;cursor:pointer;transition:all .2s ease;min-width:100px}.modal-button.primary{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.modal-button.primary:hover{transform:translateY(-2px);box-shadow:0 4px 12px #667eea66}.modal-button.secondary{background:#f3f4f6;color:#374151}.modal-button.secondary:hover{background:#e5e7eb}.modal-button:active{transform:translateY(0)}@media (max-width: 640px){.modal-container{width:95%}.modal-content{padding:1.5rem}.modal-title{font-size:1.25rem}.modal-message{font-size:.9rem}.modal-button{padding:.625rem 1.5rem;font-size:.9rem}.modal-icon{width:40px;height:40px}}.dashboard-layout{display:flex;min-height:100vh;background-color:#f5f5f5}.sidebar{width:260px;background:linear-gradient(180deg,#2c3e50,#34495e);color:#fff;display:flex;flex-direction:column;box-shadow:2px 0 8px #0000001a}.sidebar-header{padding:24px 20px;border-bottom:1px solid rgba(255,255,255,.1)}.sidebar-header h2{margin:0 0 8px;font-size:20px;font-weight:600}.sidebar-header p{margin:0;font-size:13px;opacity:.7}.user-info{padding:16px 20px;border-bottom:1px solid rgba(255,255,255,.1);display:flex;align-items:center;gap:12px;transition:background .2s}.user-info:hover{background:#ffffff0d}.user-avatar{width:40px;height:40px;background:#3498db4d;border-radius:50%;display:flex;align-items:center;justify-content:center;overflow:hidden;flex-shrink:0}.user-avatar svg{color:#3498db}.user-details{display:flex;flex-direction:column;gap:2px;flex:1}.user-name{font-size:14px;font-weight:600;color:#fff}.user-role{font-size:12px;color:#fff9}.sidebar-nav{flex:1;padding:16px 0}.nav-item{display:flex;align-items:center;padding:14px 20px;color:#fffc;text-decoration:none;transition:all .2s ease;border-left:3px solid transparent}.nav-item:hover{background-color:#ffffff0d;color:#fff}.nav-item.active{background-color:#3498db33;border-left-color:#3498db;color:#fff}.nav-icon{font-size:20px;margin-right:12px}.nav-label{font-size:14px;font-weight:500}.sidebar-footer{padding:16px 20px;border-top:1px solid rgba(255,255,255,.1)}.btn-logout{width:100%;display:flex;align-items:center;justify-content:center;gap:8px;padding:10px;background-color:#e74c3c33;color:#e74c3c;border:1px solid rgba(231,76,60,.3);border-radius:6px;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s ease;margin-bottom:12px}.btn-logout:hover{background-color:#e74c3c4d;border-color:#e74c3c80;color:#fff}.sidebar-footer p{margin:0;text-align:center;font-size:12px;opacity:.5}.main-content{flex:1;padding:32px;overflow-y:auto}@media (max-width: 768px){.sidebar{width:80px}.sidebar-header h2{font-size:24px}.sidebar-header p,.nav-label{display:none}.nav-item{justify-content:center}.nav-icon{margin-right:0;font-size:24px}}.nav-section{margin-bottom:8px}.nav-section-title{padding:12px 20px 8px;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:1px;color:#ffffff80;margin-top:8px}.nav-section:first-child .nav-section-title{margin-top:0}.dashboard-home{max-width:1400px}.page-header{margin-bottom:32px}.page-header h1{margin:0 0 8px;font-size:32px;color:#2c3e50}.loading,.error{text-align:center;padding:60px 20px;font-size:18px;color:#7f8c8d}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:24px;margin-bottom:32px}.stat-card{background:#fff;border-radius:12px;padding:24px;display:flex;align-items:center;gap:20px;box-shadow:0 2px 8px #00000014;transition:transform .2s ease,box-shadow .2s ease}.stat-card:hover{transform:translateY(-4px);box-shadow:0 4px 16px #0000001f}.stat-icon{font-size:48px;opacity:.9}.stat-content{flex:1}.stat-content h3{margin:0 0 8px;font-size:14px;font-weight:500;color:#7f8c8d;text-transform:uppercase;letter-spacing:.5px}.stat-value{margin:0 0 4px;font-size:32px;font-weight:700;color:#2c3e50}.stat-label{font-size:13px;color:#95a5a6}.stat-card.blue{border-left:4px solid #3498db}.stat-card.green{border-left:4px solid #2ecc71}.stat-card.orange{border-left:4px solid #f39c12}.stat-card.purple{border-left:4px solid #9b59b6}.section{background:#fff;border-radius:12px;padding:28px;margin-bottom:24px;box-shadow:0 2px 8px #00000014}.section h2{margin:0 0 20px;font-size:20px;color:#2c3e50;font-weight:600}.machine-status-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px}.status-card{display:flex;align-items:center;gap:16px;padding:20px;border-radius:8px;border:2px solid #ecf0f1;transition:border-color .2s ease}.status-card.available{border-color:#2ecc71;background:#eafaf1;color:#2ecc71}.status-card.pending{border-color:#f39c12;background:#fef5e7;color:#f39c12}.status-card.running{border-color:#3498db;background:#ebf5fb;color:#2980b9}.status-card.offline{border-color:#e74c3c;background:#fadbd8;color:#c0392b}.status-icon{font-size:28px}.status-content h4{margin:0 0 4px;font-size:14px;font-weight:600}.status-content .status-value{margin:0;font-size:24px;font-weight:700;color:inherit}.text-green{color:#27ae60}.text-red{color:#c0392b}.separator{color:#bdc3c7;margin:0 6px;font-weight:300}.quick-actions{display:flex;gap:16px;flex-wrap:wrap}.action-button{background:#f8f9fa;border:1px solid #dfe6e9;border-radius:8px;padding:16px 24px;display:flex;align-items:center;gap:12px;text-decoration:none;color:#2c3e50;font-weight:500;transition:all .2s ease}.action-button:hover{background:#fff;border-color:#b2bec3;transform:translateY(-2px);box-shadow:0 4px 12px #0000000d}.action-icon{font-size:24px}.map-container{margin-top:16px}#map{width:100%;height:600px;border-radius:8px;border:1px solid #e1e8ed;z-index:1}.leaflet-popup-content-wrapper{border-radius:8px;box-shadow:0 4px 12px #00000026}.leaflet-popup-content{margin:12px;font-family:Sarabun,Sukhumvit Set,-apple-system,sans-serif}.no-machines{text-align:center;padding:60px 20px;color:#7f8c8d}.no-machines p{margin:0;font-size:16px}.map-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;flex-wrap:wrap;gap:16px}.map-header h2{margin:0}.map-filters{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.filter-group{display:flex;align-items:center;gap:8px}.filter-group label{font-size:14px;font-weight:500;color:#555;white-space:nowrap}.filter-search{padding:8px 12px;border:1px solid #ddd;border-radius:6px;font-size:14px;min-width:200px;transition:border-color .2s}.filter-search:focus{outline:none;border-color:#3498db;box-shadow:0 0 0 3px #3498db1a}.filter-select{padding:8px 12px;border:1px solid #ddd;border-radius:6px;font-size:14px;background:#fff;cursor:pointer;min-width:180px;transition:border-color .2s}.filter-select:focus{outline:none;border-color:#3498db;box-shadow:0 0 0 3px #3498db1a}.filter-reset{padding:8px 16px;background:#e74c3c;color:#fff;border:none;border-radius:6px;font-size:14px;cursor:pointer;transition:background .2s;white-space:nowrap}.filter-reset:hover{background:#c0392b}.filter-result-info{background:#e8f4fd;color:#2980b9;padding:10px 16px;border-radius:6px;font-size:14px;font-weight:500;margin-bottom:16px;text-align:center;border-left:4px solid #3498db}.btn-reset-filter{margin-top:16px;padding:10px 24px;background:#3498db;color:#fff;border:none;border-radius:6px;font-size:14px;cursor:pointer;transition:background .2s}.btn-reset-filter:hover{background:#2980b9}@media (max-width: 768px){.map-header{flex-direction:column;align-items:flex-start}.map-filters{width:100%;flex-direction:column;align-items:stretch}.filter-group{width:100%;flex-direction:column;align-items:flex-start}.filter-search,.filter-select,.filter-reset{width:100%}}.machine-management{max-width:1400px}.page-header p{margin:0;color:#7f8c8d;font-size:14px}.filter-section{background:#fff;padding:16px 20px;border-radius:8px;margin-bottom:24px;display:flex;align-items:center;gap:12px}.filter-section label{font-weight:500;color:#2c3e50}.filter-section select{padding:8px 12px;border:1px solid #ddd;border-radius:6px;font-size:14px;min-width:200px}.machines-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:20px}.machine-card{background:#fff;border-radius:12px;padding:20px;box-shadow:0 2px 8px #00000014;transition:transform .2s ease,box-shadow .2s ease;position:relative}.esp32-status-badge{display:table;margin-left:auto;margin-bottom:8px;padding:4px 10px;border-radius:20px;font-size:11px;font-weight:600;display:flex;align-items:center;gap:6px;width:fit-content}.esp32-status-badge.online{background:linear-gradient(135deg,#d5f4e6,#b8e6d5);color:#27ae60;border:1px solid #a0d9c4}.esp32-status-badge.offline{background:linear-gradient(135deg,#fadbd8,#f5b7b1);color:#e74c3c;border:1px solid #f1948a}.esp32-status-badge .status-dot{width:8px;height:8px;border-radius:50%;animation:pulse 2s infinite}.esp32-status-badge.online .status-dot{background:#27ae60;box-shadow:0 0 8px #27ae6099}.esp32-status-badge.offline .status-dot{background:#e74c3c;box-shadow:0 0 8px #e74c3c99}@keyframes pulse{0%,to{opacity:1;transform:scale(1)}50%{opacity:.6;transform:scale(1.2)}}.machine-card:hover{transform:translateY(-4px);box-shadow:0 4px 16px #0000001f}.machine-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:16px;padding-bottom:12px;border-bottom:2px solid #f0f0f0}.machine-header h3{margin:0;font-size:18px;color:#2c3e50}.status-badge{padding:4px 12px;border-radius:12px;font-size:12px;font-weight:600;text-transform:uppercase}.status-badge.green{background:#d5f4e6;color:#27ae60}.status-badge.blue{background:#d6eaf8;color:#2980b9}.status-badge.red{background:#fadbd8;color:#e74c3c}.machine-details{margin-bottom:16px}.machine-details p{margin:8px 0;font-size:14px;color:#555}.machine-actions{display:flex;gap:4px;flex-wrap:nowrap}.machine-actions .btn-qr,.machine-actions .btn-connect,.machine-actions .btn-edit,.machine-actions .btn-delete-machine{padding:8px 0;font-size:12px;display:flex;justify-content:center;align-items:center;white-space:nowrap}.btn-primary,.btn-secondary,.btn-qr,.btn-edit,.btn-connect,.btn-delete-machine,.btn-test{padding:10px 20px;border:none;border-radius:6px;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s ease}.btn-primary{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.btn-secondary{background:#ecf0f1;color:#2c3e50}.btn-qr{flex:1;background:#3498db;color:#fff}.btn-qr:hover{background:#2980b9}.btn-connect{flex:1;background:linear-gradient(135deg,#9b59b6,#8e44ad);color:#fff}.btn-connect:hover{background:linear-gradient(135deg,#8e44ad,#7d3c98);transform:translateY(-2px);box-shadow:0 4px 12px #9b59b666}.btn-edit{flex:1;background:#f39c12;color:#fff}.btn-edit:hover{background:#e67e22}.btn-delete-machine{flex:1;background:#e74c3c;color:#fff}.btn-delete-machine:hover{background:#c0392b;transform:translateY(-2px);box-shadow:0 4px 12px #e74c3c66}.modal-content{background:#fff;border-radius:12px;padding:32px;max-width:800px;width:90%;max-height:90vh;overflow-y:auto}.modal-content h2{margin:0 0 24px;color:#2c3e50}.modal-content input,.modal-content select{padding:12px 16px;border:1px solid #ddd;border-radius:6px;font-size:14px}.modal-content input:focus,.modal-content select:focus{outline:none;border-color:#667eea}.disabled-input{background:#f5f5f5;color:#999;cursor:not-allowed}.form-group{margin-bottom:12px}.form-group label{display:block;margin-bottom:6px;font-size:13px;font-weight:500;color:#555}.qr-modal{text-align:center}.qr-display img{max-width:300px;width:100%;margin:20px auto;border:2px solid #ecf0f1;border-radius:8px;padding:16px;background:#fff}.qr-display p{margin:8px 0;font-size:14px;color:#555}.map-section{margin:20px 0;padding:15px;background-color:#f8f9fa;border-radius:8px}.map-section label{display:block;font-weight:600;margin-bottom:10px;color:#2c3e50}.modal-subtitle{color:#7f8c8d;font-size:14px;margin:-10px 0 20px}.info-box{background:#e3f2fd;border-left:4px solid #2196f3;padding:12px 16px;border-radius:6px;margin:16px 0}.info-box p{margin:0 0 8px;font-weight:600;color:#1976d2}.info-box ul{margin:8px 0 0 20px;padding:0;color:#555}.info-box li{margin:4px 0;font-size:13px}.btn-test{background:linear-gradient(135deg,#16a085,#1abc9c);color:#fff;padding:10px 20px;font-weight:500}.btn-test:hover{background:linear-gradient(135deg,#138d75,#16a085);transform:translateY(-2px);box-shadow:0 4px 12px #16a08566}@media (max-width: 768px){.page-header{flex-direction:column;gap:16px}.machines-grid{grid-template-columns:1fr}.filter-section{flex-direction:column;align-items:flex-start}.filter-section select{width:100%}}.btn-save-qr{background:#27ae60;color:#fff;padding:10px 20px;border:none;border-radius:6px;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s ease;margin-right:10px}.btn-save-qr:hover{background:#219150;transform:translateY(-2px);box-shadow:0 4px 12px #27ae6066}.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::selection{background:transparent}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{width:1600px;height:1600px;-webkit-transform-origin:0 0}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none!important;max-height:none!important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile{max-width:none!important;max-height:none!important;width:auto;padding:0}.leaflet-container img.leaflet-tile{mix-blend-mode:plus-lighter}.leaflet-container.leaflet-touch-zoom{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{-ms-touch-action:pinch-zoom;touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{-ms-touch-action:none;touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51,181,229,.4)}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{width:0;height:0;-moz-box-sizing:border-box;box-sizing:border-box;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto}.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;-webkit-transition:opacity .2s linear;-moz-transition:opacity .2s linear;transition:opacity .2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{-webkit-transition:-webkit-transform .25s cubic-bezier(0,0,.25,1);-moz-transition:-moz-transform .25s cubic-bezier(0,0,.25,1);transition:transform .25s cubic-bezier(0,0,.25,1)}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{-webkit-transition:none;-moz-transition:none;transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive,.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{background:#ddd;outline-offset:1px}.leaflet-container a{color:#0078a8}.leaflet-zoom-box{border:2px dotted #38f;background:#ffffff80}.leaflet-container{font-family:Helvetica Neue,Arial,Helvetica,sans-serif;font-size:12px;font-size:.75rem;line-height:1.5}.leaflet-bar{box-shadow:0 1px 5px #000000a6;border-radius:4px}.leaflet-bar a{background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:#000}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover,.leaflet-bar a:focus{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none}.leaflet-bar a.leaflet-disabled{cursor:default;background-color:#f4f4f4;color:#bbb}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{font:700 18px Lucida Console,Monaco,monospace;text-indent:1px}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{box-shadow:0 1px 5px #0006;background:#fff;border-radius:5px}.leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAQAAAADQ4RFAAACf0lEQVR4AY1UM3gkARTePdvdoTxXKc+qTl3aU5U6b2Kbkz3Gtq3Zw6ziLGNPzrYx7946Tr6/ee/XeCQ4D3ykPtL5tHno4n0d/h3+xfuWHGLX81cn7r0iTNzjr7LrlxCqPtkbTQEHeqOrTy4Yyt3VCi/IOB0v7rVC7q45Q3Gr5K6jt+3Gl5nCoDD4MtO+j96Wu8atmhGqcNGHObuf8OM/x3AMx38+4Z2sPqzCxRFK2aF2e5Jol56XTLyggAMTL56XOMoS1W4pOyjUcGGQdZxU6qRh7B9Zp+PfpOFlqt0zyDZckPi1ttmIp03jX8gyJ8a/PG2yutpS/Vol7peZIbZcKBAEEheEIAgFbDkz5H6Zrkm2hVWGiXKiF4Ycw0RWKdtC16Q7qe3X4iOMxruonzegJzWaXFrU9utOSsLUmrc0YjeWYjCW4PDMADElpJSSQ0vQvA1Tm6/JlKnqFs1EGyZiFCqnRZTEJJJiKRYzVYzJck2Rm6P4iH+cmSY0YzimYa8l0EtTODFWhcMIMVqdsI2uiTvKmTisIDHJ3od5GILVhBCarCfVRmo4uTjkhrhzkiBV7SsaqS+TzrzM1qpGGUFt28pIySQHR6h7F6KSwGWm97ay+Z+ZqMcEjEWebE7wxCSQwpkhJqoZA5ivCdZDjJepuJ9IQjGGUmuXJdBFUygxVqVsxFsLMbDe8ZbDYVCGKxs+W080max1hFCarCfV+C1KATwcnvE9gRRuMP2prdbWGowm1KB1y+zwMMENkM755cJ2yPDtqhTI6ED1M/82yIDtC/4j4BijjeObflpO9I9MwXTCsSX8jWAFeHr05WoLTJ5G8IQVS/7vwR6ohirYM7f6HzYpogfS3R2OAAAAAElFTkSuQmCC);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAQAAABvcdNgAAAEsklEQVR4AWL4TydIhpZK1kpWOlg0w3ZXP6D2soBtG42jeI6ZmQTHzAxiTbSJsYLjO9HhP+WOmcuhciVnmHVQcJnp7DFvScowZorad/+V/fVzMdMT2g9Cv9guXGv/7pYOrXh2U+RRR3dSd9JRx6bIFc/ekqHI29JC6pJ5ZEh1yWkhkbcFeSjxgx3L2m1cb1C7bceyxA+CNjT/Ifff+/kDk2u/w/33/IeCMOSaWZ4glosqT3DNnNZQ7Cs58/3Ce5HL78iZH/vKVIaYlqzfdLu8Vi7dnvUbEza5Idt36tquZFldl6N5Z/POLof0XLK61mZCmJSWjVF9tEjUluu74IUXvgttuVIHE7YxSkaYhJZam7yiM9Pv82JYfl9nptxZaxMJE4YSPty+vF0+Y2up9d3wwijfjZbabqm/3bZ9ecKHsiGmRflnn1MW4pjHf9oLufyn2z3y1D6n8g8TZhxyzipLNPnAUpsOiuWimg52psrTZYnOWYNDTMuWBWa0tJb4rgq1UvmutpaYEbZlwU3CLJm/ayYjHW5/h7xWLn9Hh1vepDkyf7dE7MtT5LR4e7yYpHrkhOUpEfssBLq2pPhAqoSWKUkk7EDqkmK6RrCEzqDjhNDWNE+XSMvkJRDWlZTmCW0l0PHQGRZY5t1L83kT0Y3l2SItk5JAWHl2dCOBm+fPu3fo5/3v61RMCO9Jx2EEYYhb0rmNQMX/vm7gqOEJLcXTGw3CAuRNeyaPWwjR8PRqKQ1PDA/dpv+on9Shox52WFnx0KY8onHayrJzm87i5h9xGw/tfkev0jGsQizqezUKjk12hBMKJ4kbCqGPVNXudyyrShovGw5CgxsRICxF6aRmSjlBnHRzg7Gx8fKqEubI2rahQYdR1YgDIRQO7JvQyD52hoIQx0mxa0ODtW2Iozn1le2iIRdzwWewedyZzewidueOGqlsn1MvcnQpuVwLGG3/IR1hIKxCjelIDZ8ldqWz25jWAsnldEnK0Zxro19TGVb2ffIZEsIO89EIEDvKMPrzmBOQcKQ+rroye6NgRRxqR4U8EAkz0CL6uSGOm6KQCdWjvjRiSP1BPalCRS5iQYiEIvxuBMJEWgzSoHADcVMuN7IuqqTeyUPq22qFimFtxDyBBJEwNyt6TM88blFHao/6tWWhuuOM4SAK4EI4QmFHA+SEyWlp4EQoJ13cYGzMu7yszEIBOm2rVmHUNqwAIQabISNMRstmdhNWcFLsSm+0tjJH1MdRxO5Nx0WDMhCtgD6OKgZeljJqJKc9po8juskR9XN0Y1lZ3mWjLR9JCO1jRDMd0fpYC2VnvjBSEFg7wBENc0R9HFlb0xvF1+TBEpF68d+DHR6IOWVv2BECtxo46hOFUBd/APU57WIoEwJhIi2CdpyZX0m93BZicktMj1AS9dClteUFAUNUIEygRZCtik5zSxI9MubTBH1GOiHsiLJ3OCoSZkILa9PxiN0EbvhsAo8tdAf9Seepd36lGWHmtNANTv5Jd0z4QYyeo/UEJqxKRpg5LZx6btLPsOaEmdMyxYdlc8LMaJnikDlhclqmPiQnTEpLUIZEwkRagjYkEibQErwhkTAKCLQEbUgkzJQWc/0PstHHcfEdQ+UAAAAASUVORK5CYII=);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{padding:6px 10px 6px 6px;color:#333;background:#fff}.leaflet-control-layers-scrollbar{overflow-y:scroll;overflow-x:hidden;padding-right:5px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block;font-size:13px;font-size:1.08333em}.leaflet-control-layers-separator{height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=)}.leaflet-container .leaflet-control-attribution{background:#fff;background:#fffc;margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{padding:0 5px;color:#333;line-height:1.4}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover,.leaflet-control-attribution a:focus{text-decoration:underline}.leaflet-attribution-flag{display:inline!important;vertical-align:baseline!important;width:1em;height:.6669em}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{border:2px solid #777;border-top:none;line-height:1.1;padding:2px 5px 1px;white-space:nowrap;-moz-box-sizing:border-box;box-sizing:border-box;background:#fffc;text-shadow:1px 1px #fff}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{border:2px solid rgba(0,0,0,.2);background-clip:padding-box}.leaflet-popup{position:absolute;text-align:center;margin-bottom:20px}.leaflet-popup-content-wrapper{padding:1px;text-align:left;border-radius:12px}.leaflet-popup-content{margin:13px 24px 13px 20px;line-height:1.3;font-size:13px;font-size:1.08333em;min-height:1px}.leaflet-popup-content p{margin:1.3em 0}.leaflet-popup-tip-container{width:40px;height:20px;position:absolute;left:50%;margin-top:-1px;margin-left:-20px;overflow:hidden;pointer-events:none}.leaflet-popup-tip{width:17px;height:17px;padding:1px;margin:-10px auto 0;pointer-events:auto;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:#fff;color:#333;box-shadow:0 3px 14px #0006}.leaflet-container a.leaflet-popup-close-button{position:absolute;top:0;right:0;border:none;text-align:center;width:24px;height:24px;font:16px/24px Tahoma,Verdana,sans-serif;color:#757575;text-decoration:none;background:transparent}.leaflet-container a.leaflet-popup-close-button:hover,.leaflet-container a.leaflet-popup-close-button:focus{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{width:24px;margin:0 auto;-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";filter:progid:DXImageTransform.Microsoft.Matrix(M11=.70710678,M12=.70710678,M21=-.70710678,M22=.70710678)}.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{position:absolute;padding:6px;background-color:#fff;border:1px solid #fff;border-radius:3px;color:#222;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;box-shadow:0 1px 3px #0006}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-top:before,.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{position:absolute;pointer-events:none;border:6px solid transparent;background:transparent;content:""}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{left:50%;margin-left:-6px}.leaflet-tooltip-top:before{bottom:0;margin-bottom:-12px;border-top-color:#fff}.leaflet-tooltip-bottom:before{top:0;margin-top:-12px;margin-left:-6px;border-bottom-color:#fff}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{top:50%;margin-top:-6px}.leaflet-tooltip-left:before{right:0;margin-right:-12px;border-left-color:#fff}.leaflet-tooltip-right:before{left:0;margin-left:-12px;border-right-color:#fff}@media print{.leaflet-control{-webkit-print-color-adjust:exact;print-color-adjust:exact}}.map-picker{width:100%}.map-search{display:flex;gap:10px;margin-bottom:15px}.map-search input{flex:1;padding:10px;border:1px solid #ddd;border-radius:4px;font-size:14px}.map-search button{padding:10px 20px;background-color:#007bff;color:#fff;border:none;border-radius:4px;cursor:pointer;font-size:14px}.map-search button:hover:not(:disabled){background-color:#0056b3}.map-search button:disabled{background-color:#ccc;cursor:not-allowed}.search-results{max-height:200px;overflow-y:auto;border:1px solid #ddd;border-radius:4px;margin-bottom:15px;background:#fff}.search-result-item{padding:10px;cursor:pointer;border-bottom:1px solid #eee}.search-result-item:hover{background-color:#f0f0f0}.search-result-item:last-child{border-bottom:none}.map-container{border:2px solid #ddd;border-radius:8px;overflow:hidden;margin-bottom:15px}.coordinates-display{background-color:#f8f9fa;padding:15px;border-radius:4px;font-size:14px}.coordinates-display p{margin:5px 0}.map-hint{color:#6c757d;font-style:italic;margin-top:10px!important}.leaflet-container{font-family:inherit}.notification-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#0009;display:flex;align-items:center;justify-content:center;z-index:10000;animation:fadeIn .2s ease-in-out}.notification-modal{background:#fff;border-radius:16px;padding:30px;max-width:500px;width:90%;box-shadow:0 20px 60px #0000004d;position:relative;animation:slideIn .3s ease-out;display:flex;gap:20px;align-items:flex-start}@keyframes slideIn{0%{transform:translateY(-50px);opacity:0}to{transform:translateY(0);opacity:1}}.notification-icon{font-size:48px;line-height:1;flex-shrink:0}.notification-content{flex:1;min-width:0}.notification-title{margin:0 0 12px;font-size:20px;font-weight:600;color:#1a1a1a}.notification-message{font-size:15px;line-height:1.6;color:#4a4a4a;white-space:pre-line;word-wrap:break-word}.notification-close{position:absolute;top:15px;right:15px;background:none;border:none;font-size:32px;color:#888;cursor:pointer;padding:0;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:50%;transition:all .2s;line-height:1}.notification-close:hover{background:#0000000d;color:#333}.notification-success{border-top:4px solid #10b981}.notification-success .notification-title{color:#059669}.notification-error{border-top:4px solid #ef4444}.notification-error .notification-title{color:#dc2626}.notification-warning{border-top:4px solid #f59e0b}.notification-warning .notification-title{color:#d97706}.notification-info{border-top:4px solid #3b82f6}.notification-info .notification-title{color:#2563eb}.notification-question{border-top:4px solid #8b5cf6}.notification-question .notification-title{color:#7c3aed}@media (max-width: 768px){.notification-modal{padding:24px;max-width:90%}.notification-icon{font-size:36px}.notification-title{font-size:18px}.notification-message{font-size:14px}}.confirm-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#0009;display:flex;align-items:center;justify-content:center;z-index:10000;animation:fadeIn .2s ease-in-out}.confirm-modal{background:#fff;border-radius:16px;padding:30px;max-width:480px;width:90%;box-shadow:0 20px 60px #0000004d;animation:slideIn .3s ease-out}.confirm-icon{font-size:56px;text-align:center;margin-bottom:20px}.confirm-content{text-align:center;margin-bottom:30px}.confirm-title{margin:0 0 12px;font-size:22px;font-weight:600;color:#1a1a1a}.confirm-message{font-size:15px;line-height:1.6;color:#4a4a4a;white-space:pre-line}.confirm-actions{display:flex;gap:12px;justify-content:center}.confirm-btn{padding:12px 32px;border:none;border-radius:8px;font-size:15px;font-weight:500;cursor:pointer;transition:all .2s;min-width:100px}.confirm-btn-cancel{background:#f3f4f6;color:#374151}.confirm-btn-cancel:hover{background:#e5e7eb}.confirm-btn-confirm{background:#3b82f6;color:#fff}.confirm-btn-confirm:hover{background:#2563eb}.confirm-danger .confirm-title{color:#dc2626}.confirm-danger .confirm-btn-confirm{background:#ef4444}.confirm-danger .confirm-btn-confirm:hover{background:#dc2626}.confirm-warning .confirm-title{color:#d97706}.confirm-warning .confirm-btn-confirm{background:#f59e0b}.confirm-warning .confirm-btn-confirm:hover{background:#d97706}.confirm-info .confirm-title{color:#2563eb}.confirm-question .confirm-title{color:#7c3aed}.confirm-question .confirm-btn-confirm{background:#8b5cf6}.confirm-question .confirm-btn-confirm:hover{background:#7c3aed}@media (max-width: 768px){.confirm-modal{padding:24px}.confirm-icon{font-size:48px}.confirm-title{font-size:20px}.confirm-message{font-size:14px}.confirm-actions{flex-direction:column-reverse}.confirm-btn{width:100%}}.btn-close{min-width:60px;padding:0 8px;font-size:12px;font-weight:500;display:flex;align-items:center;justify-content:center;height:28px;border-radius:5px}.btn-open{background:linear-gradient(135deg,#16a085,#1abc9c);color:#fff}.btn-open:hover:not(:disabled){background:linear-gradient(135deg,#138d75,#16a085)}.btn-close{background:linear-gradient(135deg,#c0392b,#e74c3c);color:#fff}.btn-close:hover:not(:disabled){background:linear-gradient(135deg,#922b21,#c0392b)}.machine-status-page{padding:24px;max-width:1400px;margin:0 auto}.filter-section{background:#fff;padding:20px;border-radius:12px;box-shadow:0 2px 8px #00000014;margin-bottom:20px;display:flex;align-items:center;gap:16px;flex-wrap:wrap}.filter-group{display:flex;align-items:center;gap:12px;flex:0 0 auto}.filter-group label{font-size:14px;font-weight:600;color:#2c3e50;white-space:nowrap}.status-filter-select{padding:10px 16px;border:2px solid #e0e0e0;border-radius:8px;font-size:14px;font-weight:500;color:#2c3e50;background:#fff;cursor:pointer;transition:all .2s ease;min-width:250px}.status-filter-select:hover{border-color:#3498db}.status-filter-select:focus{outline:none;border-color:#3498db;box-shadow:0 0 0 3px #3498db1a}.btn-clear-filter{padding:10px 20px;background:#e74c3c;color:#fff;border:none;border-radius:8px;font-size:14px;font-weight:600;cursor:pointer;transition:all .2s ease;white-space:nowrap}.btn-clear-filter:hover{background:#c0392b;transform:translateY(-1px);box-shadow:0 2px 8px #e74c3c4d}.btn-clear-filter:active{transform:translateY(0)}.device-info{font-size:13px}.device-id{font-family:Courier New,monospace;font-weight:600;color:#2c3e50;margin-bottom:2px}.device-ip{font-size:11px;color:#7f8c8d;margin-top:2px}.heartbeat-info{font-size:13px}.heartbeat-time{font-weight:600;margin-bottom:2px}.heartbeat-time.recent{color:#27ae60}.heartbeat-time.old{color:#e74c3c}.heartbeat-timestamp{font-size:11px;color:#7f8c8d;font-family:Courier New,monospace}.text-muted{color:#95a5a6;font-style:italic}.machine-table{width:100%;border-collapse:collapse;min-width:800px}.machine-table th{background:#f8f9fa;padding:16px;text-align:left;font-weight:600;color:#2c3e50;border-bottom:2px solid #e9ecef;font-size:14px}.machine-table td{padding:16px;border-bottom:1px solid #eee;vertical-align:middle;color:#2c3e50}.machine-table tr:last-child td{border-bottom:none}.machine-table tr:hover td{background-color:#fcfcfc}.font-mono{font-family:Courier New,monospace;font-weight:600;color:#34495e;font-size:12px}.machine-name-cell{font-weight:500;font-size:12px}.status-badge{display:inline-block;padding:6px 12px;border-radius:20px;font-size:12px;font-weight:600;white-space:nowrap}.status-badge-green{background:#d5f4e6;color:#27ae60}.status-badge-yellow{background:#fef5e7;color:#f39c12}.status-badge-blue{background:#ebf5fb;color:#3498db}.status-badge-gray{background:#ecf0f1;color:#7f8c8d}.status-note{font-size:11px;color:#e74c3c;margin-top:4px}.connection-badge{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:6px;font-size:12px;font-weight:500}.connection-badge.online{background:#e8f8f5;color:#27ae60;border:1px solid #a9dfbf}.connection-badge.offline{background:#fdedec;color:#e74c3c;border:1px solid #f5b7b1}.power-status-badge{display:inline-block;padding:6px 12px;border-radius:20px;font-size:12px;font-weight:600;white-space:nowrap}.power-status-on{background:#d5f4e6;color:#27ae60;border:1px solid #a9dfbf}.power-status-washing{background:#d6eaf8;color:#2874a6;border:1px solid #85c1e9}.power-status-off{background:#fdedec;color:#e74c3c;border:1px solid #f5b7b1}.power-status-running{background:#e8f8f5;color:#16a085;border:1px solid #a3e4d7;animation:pulse 2s ease-in-out infinite}.power-status-completed{background:#eafaf1;color:#28b463;border:1px solid #a9dfbf}.power-status-stopped{background:#fef5e7;color:#f39c12;border:1px solid #f9e79f}.power-status-unknown{background:#ecf0f1;color:#7f8c8d;border:1px solid #bdc3c7}.status-badge .dot,.connection-badge .dot{width:8px;height:8px;border-radius:50%;display:inline-block}.connection-badge.online .dot{background:#27ae60;box-shadow:0 0 4px #27ae6066}.connection-badge.offline .dot{background:#e74c3c}.text-center{text-align:center;color:#95a5a6;padding:40px!important}.control-buttons{display:flex;flex-direction:column;gap:4px;justify-content:center;align-items:center;min-width:0}.control-buttons-vertical{display:flex;flex-direction:column;gap:4px;align-items:center;min-width:0}.control-row{display:flex;flex-direction:row;gap:8px;justify-content:center;align-items:center}.btn-control{display:flex;align-items:center;justify-content:center;padding:0 8px;border:none;border-radius:5px;font-size:12px;font-weight:500;cursor:pointer;transition:all .2s ease;white-space:nowrap;min-width:60px;height:28px;margin:0;letter-spacing:.2px}.btn-control.btn-start,.btn-control.btn-stop,.btn-control.btn-open,.btn-control.btn-close{min-width:48px;height:22px;font-size:10px;padding:0 6px}.btn-control:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 2px 4px #0000001f}.btn-control:active:not(:disabled){transform:translateY(0)}.btn-control:disabled{opacity:.4;cursor:not-allowed}.btn-open{background:linear-gradient(135deg,#27ae60,#2ecc71);color:#fff}.btn-open:hover:not(:disabled){background:linear-gradient(135deg,#229954,#27ae60)}.btn-close{background:linear-gradient(135deg,#e74c3c,#ec7063);color:#fff}.btn-close:hover:not(:disabled){background:linear-gradient(135deg,#c0392b,#e74c3c)}.btn-start{background:linear-gradient(135deg,#27ae60,#2ecc71);color:#fff}.btn-start:hover:not(:disabled){background:linear-gradient(135deg,#229954,#27ae60)}.btn-stop{background:linear-gradient(135deg,#e74c3c,#ec7063);color:#fff}.btn-stop:hover:not(:disabled){background:linear-gradient(135deg,#c0392b,#e74c3c)}.btn-reset{background:linear-gradient(135deg,#f39c12,#f1c40f);color:#fff}.btn-reset:hover:not(:disabled){background:linear-gradient(135deg,#d68910,#f39c12)}.notification-toast{position:fixed;top:20px;right:20px;min-width:320px;max-width:500px;padding:16px 20px;border-radius:12px;box-shadow:0 8px 32px #00000026;z-index:10000;animation:slideInRight .3s ease-out;font-size:15px;font-weight:500;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.notification-toast.success{background:linear-gradient(135deg,#27ae60,#2ecc71);color:#fff;border-left:4px solid #1e8449}.notification-toast.error{background:linear-gradient(135deg,#c0392b,#e74c3c);color:#fff;border-left:4px solid #922b21}.notification-toast.warning{background:linear-gradient(135deg,#f39c12,#f1c40f);color:#fff;border-left:4px solid #d68910}.notification-toast.info{background:linear-gradient(135deg,#2980b9,#3498db);color:#fff;border-left:4px solid #1f618d}.notification-content{display:flex;align-items:center;justify-content:space-between;gap:12px}.notification-message{flex:1;line-height:1.5;letter-spacing:.3px}.notification-close{background:#fff3;border:none;color:#fff;font-size:20px;width:28px;height:28px;border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s ease;flex-shrink:0}.notification-close:hover{background:#ffffff4d;transform:rotate(90deg)}@keyframes slideInRight{0%{transform:translate(400px);opacity:0}to{transform:translate(0);opacity:1}}@media screen and (max-width: 768px){.notification-toast{right:10px;left:10px;min-width:auto;max-width:none;top:10px}}.user-management{max-width:1400px}.page-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:24px}.users-table{width:100%;border-collapse:collapse;table-layout:fixed}.users-table th:nth-child(1),.users-table td:nth-child(1){width:80px}.users-table th:nth-child(2),.users-table td:nth-child(2){width:150px}.users-table th:nth-child(3),.users-table td:nth-child(3){width:180px}.users-table th:nth-child(4),.users-table td:nth-child(4){width:110px}.users-table th:nth-child(5),.users-table td:nth-child(5){width:140px}.users-table th:nth-child(6),.users-table td:nth-child(6){width:100px;text-align:center}.users-table th:nth-child(7),.users-table td:nth-child(7){width:90px;text-align:center}.users-table th:nth-child(8),.users-table td:nth-child(8){width:160px;text-align:center}.users-table thead{background:#f8f9fa}.users-table th{padding:10px 12px;text-align:left;font-weight:600;color:#2c3e50;font-size:13px;border-bottom:2px solid #ecf0f1;white-space:nowrap}.users-table td{padding:12px;border-bottom:1px solid #ecf0f1;color:#555;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:200px;cursor:default}.users-table td:hover{overflow:visible;position:relative}.users-table tbody tr:hover{background:#f8f9fa}.machine-count{background:#e8f4f8;color:#2980b9;padding:3px 10px;border-radius:10px;font-size:12px;font-weight:500;display:inline-block}.status-badge{padding:3px 10px;border-radius:10px;font-size:11px;font-weight:600;text-transform:uppercase;display:inline-block;white-space:nowrap}.status-badge.active{background:#d5f4e6;color:#27ae60}.status-badge.inactive{background:#fadbd8;color:#e74c3c}.action-buttons{display:flex;gap:4px;justify-content:center;flex-wrap:nowrap}.btn-edit,.btn-view,.btn-delete{padding:5px 10px;border:none;border-radius:5px;font-size:11px;cursor:pointer;transition:all .2s ease;font-weight:500;white-space:nowrap}.btn-edit{background:linear-gradient(135deg,#f39c12,#e67e22);color:#fff}.btn-edit:hover{transform:translateY(-2px);box-shadow:0 4px 12px #f39c1266}.btn-view{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.btn-view:hover{transform:translateY(-2px);box-shadow:0 4px 12px #667eea66}.btn-delete{background:#fadbd8;font-size:14px}.btn-delete:hover{background:#f5b7b1;transform:scale(1.1)}.btn-primary{padding:12px 24px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:8px;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s ease}.btn-primary:hover{transform:translateY(-2px);box-shadow:0 4px 12px #667eea66}.btn-primary.full-width{width:100%;margin-top:16px}.btn-secondary{padding:12px 24px;background:#ecf0f1;color:#2c3e50;border:none;border-radius:8px;font-size:14px;font-weight:500;cursor:pointer}.btn-secondary:hover{background:#d5dbdb}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000}.modal-content{background:#fff;border-radius:12px;padding:32px;max-width:500px;width:90%;max-height:90vh;overflow-y:auto}.modal-content h2{margin:0 0 12px;color:#2c3e50}.auto-id-hint{background:#e3f2fd;color:#1976d2;padding:10px 14px;border-radius:6px;margin:0 0 20px;font-size:13px;border-left:3px solid #1976d2}.modal-content form{display:flex;flex-direction:column;gap:16px}.form-group{display:flex;flex-direction:column;gap:6px}.form-group label{font-size:13px;font-weight:600;color:#2c3e50;text-align:left}.form-section{margin-top:24px;padding-top:24px;border-top:2px solid #e9ecef}.form-section h3{margin:0 0 16px;font-size:15px;color:#667eea;font-weight:600;display:flex;align-items:center;gap:8px}.form-section h3:before{content:"🏦";font-size:18px}.modal-content input,.modal-content textarea,.modal-content select{padding:12px 16px;border:1px solid #ddd;border-radius:6px;font-size:14px;font-family:inherit;width:100%}.modal-content input:focus,.modal-content textarea:focus,.modal-content select:focus{outline:none;border-color:#667eea}.disabled-input{background:#f8f9fa;color:#7f8c8d;cursor:not-allowed}.password-reset-section{background:#fff3cd;padding:16px;border-radius:8px;border-left:4px solid #f39c12;margin-top:8px}.btn-reset-password{width:100%;padding:12px;background:linear-gradient(135deg,#e74c3c,#c0392b);color:#fff;border:none;border-radius:6px;font-size:14px;font-weight:600;cursor:pointer;transition:all .2s ease}.btn-reset-password:hover{transform:translateY(-2px);box-shadow:0 4px 12px #e74c3c66}.reset-hint{margin:8px 0 0;font-size:12px;color:#856404;text-align:center}.modal-actions{display:flex;gap:12px;margin-top:8px}.modal-actions button{flex:1}.summary-modal{max-width:900px}.summary-header{display:flex;justify-content:space-between;align-items:flex-start;background:#f8f9fa;padding:20px;border-radius:8px;margin-bottom:24px}.user-info p{margin:4px 0;font-size:14px;color:#555}.period-badge{display:inline-block;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;padding:8px 16px;border-radius:20px;font-size:14px;font-weight:500}.summary-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-bottom:32px}.summary-card{background:#fff;padding:24px;border-radius:12px;text-align:center;box-shadow:0 2px 8px #00000014;border:2px solid transparent;transition:all .3s ease}.summary-card:hover{transform:translateY(-4px);box-shadow:0 4px 16px #0000001f}.summary-card.blue{border-color:#3498db}.summary-card.green{border-color:#2ecc71}.summary-card.orange{border-color:#f39c12}.summary-icon{font-size:40px;margin-bottom:12px}.summary-label{font-size:13px;color:#7f8c8d;margin-bottom:8px;font-weight:500}.summary-value{font-size:28px;font-weight:700;color:#2c3e50}.summary-card.blue .summary-value{color:#3498db}.summary-card.green .summary-value{color:#2ecc71}.summary-card.orange .summary-value{color:#f39c12}.summary-label{font-size:13px;margin-bottom:8px;opacity:.8}.summary-card.highlight .summary-label{opacity:1}.summary-value{font-size:24px;font-weight:700}.machines-summary{margin-top:32px;background:#f8f9fa;padding:20px;border-radius:8px}.machines-summary h3{margin:0 0 16px;color:#2c3e50;font-size:18px;font-weight:600}.machines-summary table{width:100%;border-collapse:collapse;background:#fff;border-radius:8px;overflow:hidden}.machines-summary th,.machines-summary td{padding:14px 16px;text-align:left;border-bottom:1px solid #ecf0f1}.machines-summary th{background:#34495e;font-weight:600;color:#fff;text-transform:uppercase;font-size:12px;letter-spacing:.5px}.machines-summary td.center{text-align:center}.machines-summary td.right{text-align:right;font-weight:600;color:#f39c12}.machines-summary tbody tr:hover{background:#f8f9fa}.machines-summary tbody tr:last-child td{border-bottom:none}.loading{text-align:center;padding:60px 20px;font-size:18px;color:#7f8c8d}@media (max-width: 768px){.page-header{flex-direction:column;gap:16px}.table-container{overflow-x:scroll}.summary-stats{grid-template-columns:1fr}.action-buttons{flex-direction:column}}.modal-top-bar{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;flex-wrap:wrap;gap:16px}.modal-top-bar h2{margin:0;font-size:1.5rem}.summary-filters{display:flex;gap:10px}.filter-select{padding:8px 12px;border:1px solid #ddd;border-radius:6px;font-size:14px;color:#2c3e50;background-color:#f8f9fa;cursor:pointer;min-width:120px}.filter-select:focus{outline:none;border-color:#3498db;box-shadow:0 0 0 2px #3498db33}.credentials-modal{max-width:600px!important}.credentials-info{display:flex;flex-direction:column;gap:1.5rem;margin:1.5rem 0}.credential-item{display:flex;flex-direction:column;gap:.5rem}.credential-item label{font-weight:600;color:#2c3e50;font-size:.95rem}.credential-value{display:flex;align-items:center;gap:1rem;background-color:#f8f9fa;padding:1rem;border-radius:8px;border:2px solid #e9ecef}.credential-value code{flex:1;font-size:1.1rem;font-family:Courier New,monospace;color:#2c3e50;background-color:#fff;padding:.5rem;border-radius:4px;border:1px solid #dee2e6;word-break:break-all}.btn-copy{padding:.5rem 1rem;background-color:#3498db;color:#fff;border:none;border-radius:6px;cursor:pointer;font-size:.85rem;font-weight:600;white-space:nowrap;transition:all .2s}.btn-copy:hover{background-color:#2980b9;transform:translateY(-1px)}.btn-copy:active{transform:translateY(0)}.payment-history-page{padding:24px;max-width:1600px;margin:0 auto}.page-header h1{margin:0 0 8px;font-size:28px;color:#2c3e50}.filter-group input{padding:8px 12px;border:1px solid #ddd;border-radius:6px;font-size:14px;transition:border-color .2s}.filter-group input:focus{outline:none;border-color:#3498db}.payment-table{width:100%;border-collapse:collapse;min-width:1400px}.payment-table th{background:#f8f9fa;padding:14px 12px;text-align:left;font-weight:600;color:#2c3e50;border-bottom:2px solid #e9ecef;font-size:13px;white-space:nowrap}.payment-table td{padding:14px 12px;border-bottom:1px solid #eee;color:#2c3e50;font-size:13px;vertical-align:middle}.payment-table tr:last-child td{border-bottom:none}.payment-table tr:hover td{background-color:#fcfcfc}.machine-info strong{font-size:14px;color:#2c3e50}.owner-info div{font-weight:500}.amount-cell{font-weight:700;color:#27ae60;font-size:14px}.payment-status{display:inline-block;padding:4px 10px;border-radius:12px;font-size:11px;font-weight:600;white-space:nowrap}.status-success{background:#d5f4e6;color:#27ae60}.status-pending{background:#fef5e7;color:#f39c12}.status-failed{background:#fadbd8;color:#e74c3c}.status-unknown{background:#ecf0f1;color:#7f8c8d}.operation-history-page{padding:24px;max-width:1600px;margin:0 auto}.page-header{margin-bottom:24px}.page-header p{color:#7f8c8d;font-size:14px;margin:0}.filters-section{background:#fff;padding:20px;border-radius:12px;box-shadow:0 2px 8px #00000014;margin-bottom:20px;display:flex;gap:16px;flex-wrap:wrap;align-items:flex-end}.filter-group{display:flex;flex-direction:column;gap:6px;min-width:200px}.filter-group label{font-size:13px;font-weight:600;color:#2c3e50}.filter-group input,.filter-group select{padding:8px 12px;border:1px solid #ddd;border-radius:6px;font-size:14px;transition:border-color .2s;background:#fff}.filter-group input:focus,.filter-group select:focus{outline:none;border-color:#3498db}.btn-reset{padding:8px 16px;background:#95a5a6;color:#fff;border:none;border-radius:6px;cursor:pointer;font-size:14px;font-weight:500;transition:background .2s}.btn-reset:hover{background:#7f8c8d}.summary-bar{background:#f8f9fa;padding:12px 20px;border-radius:8px;margin-bottom:16px}.summary-bar p{margin:0;color:#2c3e50;font-size:14px}.summary-bar strong{color:#3498db;font-size:16px}.table-container{background:#fff;border-radius:12px;box-shadow:0 2px 8px #00000014;overflow:hidden;overflow-x:auto}.operation-table{width:100%;border-collapse:collapse;min-width:1300px}.operation-table th{background:#f8f9fa;padding:16px;text-align:left;font-weight:600;color:#2c3e50;border-bottom:2px solid #e9ecef;font-size:14px;white-space:nowrap}.operation-table td{padding:16px;border-bottom:1px solid #eee;color:#2c3e50;vertical-align:middle}.operation-table tr:last-child td{border-bottom:none}.operation-table tr:hover td{background-color:#fcfcfc}.font-mono{font-family:Courier New,monospace;font-size:12px;color:#34495e;font-weight:600}.machine-info{display:flex;flex-direction:column;gap:2px}.machine-info strong{font-size:12px;color:#2c3e50;font-weight:500}.machine-info small{font-size:11px;color:#7f8c8d}.owner-info{display:flex;flex-direction:column;gap:2px}.owner-info div{font-weight:500;font-size:12px}.owner-info small{font-size:11px;color:#7f8c8d}.amount-cell{font-weight:600;color:#27ae60;font-size:12px}.datetime-cell{font-size:12px;color:#34495e;white-space:nowrap}.duration-cell{text-align:center;font-size:12px}.duration-value{display:inline-block;padding:4px 12px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border-radius:12px;font-weight:600;font-size:12px}.duration-calculating{display:inline-block;padding:4px 12px;background:#fff3cd;color:#856404;border-radius:12px;font-weight:600;font-size:11px;animation:pulse 2s infinite}.payment-badge{display:inline-block;padding:5px 12px;border-radius:14px;font-size:12px;font-weight:600;white-space:nowrap}.payment-success{background:#d5f4e6;color:#27ae60;border:1px solid #a9dfbf}.payment-pending{background:#fef5e7;color:#f39c12;border:1px solid #f9e79f}.payment-failed{background:#fadbd8;color:#e74c3c;border:1px solid #f5b7b1}.payment-unknown{background:#ecf0f1;color:#7f8c8d;border:1px solid #bdc3c7}.operation-badge{display:inline-block;padding:5px 12px;border-radius:14px;font-size:12px;font-weight:600;white-space:nowrap}.operation-not-started{background:#f0f0f0;color:#95a5a6;border:1px solid #d5d8dc}.operation-running{background:#ebf5fb;color:#3498db;border:1px solid #aed6f1;animation:pulse 2s infinite}.operation-completed{background:#e8f8f5;color:#1abc9c;border:1px solid #a3e4d7}.text-center{text-align:center!important;color:#95a5a6;padding:40px!important}.text-muted{color:#95a5a6}.pagination{display:flex;justify-content:center;align-items:center;gap:16px;margin-top:24px;padding:16px}.pagination button{padding:8px 16px;background:#3498db;color:#fff;border:none;border-radius:6px;cursor:pointer;font-size:14px;font-weight:500;transition:background .2s}.pagination button:hover:not(:disabled){background:#2980b9}.pagination button:disabled{background:#bdc3c7;cursor:not-allowed}.page-info{font-size:14px;color:#2c3e50;font-weight:500}.loading{display:flex;justify-content:center;align-items:center;height:400px;color:#7f8c8d;font-size:1.1rem}@media (max-width: 768px){.filters-section{flex-direction:column}.filter-group,.btn-reset{width:100%}}.machine-status-badge{display:inline-block;padding:4px 12px;border-radius:12px;font-size:.8rem;font-weight:600;text-align:center}.machine-status-badge.status-available{background-color:#d4edda;color:#155724}.machine-status-badge.status-pending{background-color:#fff3cd;color:#856404}.machine-status-badge.status-running{background-color:#d1ecf1;color:#0c5460}.machine-status-badge.status-maintenance{background-color:#f8d7da;color:#721c24}.machine-status-badge.status-offline{background-color:#e2e3e5;color:#383d41}.machine-status-badge.status-unknown{background-color:#f8f9fa;color:#6c757d}.power-status-badge{display:inline-block;padding:4px 12px;border-radius:12px;font-size:.8rem;font-weight:600;text-align:center}.power-status-badge.power-on{background-color:#cce5ff;color:#004085}.power-status-badge.power-washing{background-color:#d1ecf1;color:#0c5460}.power-status-badge.power-running{background-color:#bee5eb;color:#0c5460;animation:pulse 2s infinite}.power-status-badge.power-completed{background-color:#d4edda;color:#155724}.power-status-badge.power-stopped{background-color:#fff3cd;color:#856404}.power-status-badge.power-off{background-color:#e2e3e5;color:#383d41}.power-status-badge.power-unknown{background-color:#f8f9fa;color:#6c757d}@keyframes pulse{0%,to{opacity:1}50%{opacity:.7}}.bank-accounts{padding:20px;max-width:1400px;margin:0 auto}.page-header{margin-bottom:30px}.page-header h1{font-size:28px;font-weight:600;color:#1a1a1a;margin:0 0 8px}.page-description{color:#666;font-size:14px;margin:0}.message{padding:12px 16px;border-radius:8px;margin-bottom:20px;font-size:14px;animation:slideDown .3s ease-out}@keyframes slideDown{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.accounts-actions{margin-bottom:30px}.btn-primary{background:#007bff;color:#fff;border:none;padding:10px 20px;border-radius:6px;font-size:14px;font-weight:500;cursor:pointer;transition:background .2s}.btn-primary:hover{background:#0056b3}.account-form-container{background:#fff;border:1px solid #e0e0e0;border-radius:12px;padding:24px;margin-bottom:30px;box-shadow:0 2px 8px #0000000d}.form-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px;padding-bottom:16px;border-bottom:1px solid #e0e0e0}.form-header h2{font-size:20px;font-weight:600;color:#1a1a1a;margin:0}.btn-close{background:none;border:none;font-size:28px;color:#999;cursor:pointer;padding:0;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:4px;transition:all .2s}.btn-close:hover{background:#f5f5f5;color:#333}.account-form{display:flex;flex-direction:column;gap:20px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:20px}.form-row .full-width{grid-column:1 / -1}.form-group label{font-size:14px;font-weight:500;color:#333;margin-bottom:8px}.form-group input[type=text],.form-group input[type=tel]{padding:10px 12px;border:1px solid #ddd;border-radius:6px;font-size:14px;transition:border-color .2s}.form-group input:focus{outline:none;border-color:#007bff}.form-group input:read-only{background:#f5f5f5;cursor:not-allowed}.checkbox-group{justify-content:center}.checkbox-group label{display:flex;align-items:center;gap:8px;cursor:pointer;margin:0}.checkbox-group input[type=checkbox]{width:18px;height:18px;cursor:pointer}.checkbox-group span{font-size:14px;font-weight:500;color:#333}.form-actions{display:flex;gap:12px;justify-content:flex-end;margin-top:8px;padding-top:20px;border-top:1px solid #e0e0e0}.btn-secondary{background:#fff;color:#666;border:1px solid #ddd;padding:10px 20px;border-radius:6px;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s}.btn-secondary:hover{background:#f5f5f5;border-color:#bbb;color:#333}.accounts-list{min-height:200px}.loading{text-align:center;padding:60px 20px;color:#999;font-size:16px}.empty-state{text-align:center;padding:60px 20px}.empty-state p{margin:8px 0}.empty-state p:first-child{font-size:18px;color:#333;font-weight:500}.empty-hint{color:#999;font-size:14px}.accounts-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(350px,1fr));gap:20px}.account-card{background:#fff;border:1px solid #e0e0e0;border-radius:12px;padding:20px;transition:all .2s;position:relative}.account-card:hover{box-shadow:0 4px 12px #00000014;transform:translateY(-2px)}.account-card.default{border:2px solid #ffc107;background:linear-gradient(135deg,#fff9e6,#fff 50%)}.badge-default{position:absolute;top:12px;right:12px;background:#ffc107;color:#000;padding:4px 12px;border-radius:12px;font-size:12px;font-weight:600}.account-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:16px;padding-bottom:12px;border-bottom:1px solid #e0e0e0}.account-header h3{font-size:18px;font-weight:600;color:#1a1a1a;margin:0;flex:1;padding-right:8px}.status-badge{padding:4px 10px;border-radius:12px;font-size:12px;font-weight:500}.account-details{display:flex;flex-direction:column;gap:10px;margin-bottom:16px}.detail-row{display:flex;justify-content:space-between;font-size:14px}.detail-row .label{color:#666;font-weight:500}.detail-row .value{color:#1a1a1a;font-weight:500;text-align:right}.account-actions{display:flex;gap:8px;flex-wrap:wrap;padding-top:12px;border-top:1px solid #e0e0e0}.account-actions button{flex:1;min-width:90px;padding:8px 12px;border:none;border-radius:6px;font-size:13px;font-weight:500;cursor:pointer;transition:all .2s}.btn-set-default{background:#fff3cd;color:#856404;border:1px solid #ffc107}.btn-set-default:hover{background:#ffc107;color:#000}.btn-edit{background:#e7f3ff;color:#0056b3;border:1px solid #007bff}.btn-edit:hover{background:#007bff;color:#fff}.btn-delete{background:#ffe6e6;color:#c82333;border:1px solid #dc3545}.btn-delete:hover:not(:disabled){background:#dc3545;color:#fff}.btn-delete:disabled{opacity:.5;cursor:not-allowed}@media (max-width: 768px){.form-row,.accounts-grid{grid-template-columns:1fr}.account-actions{flex-direction:column}.account-actions button{min-width:100%}}.revenue-by-member{max-width:1600px;padding:0}.page-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:24px;flex-wrap:wrap;gap:16px}.page-header h1{margin:0 0 8px;font-size:24px;color:#2c3e50}.page-header p{margin:0;color:#7f8c8d;font-size:13px}.filter-controls{display:flex;gap:12px;align-items:center}.month-select,.year-select{padding:10px 16px;border:1px solid #ddd;border-radius:8px;font-size:14px;font-weight:500;background:#fff;cursor:pointer;transition:all .2s ease}.month-select:hover,.year-select:hover{border-color:#667eea}.month-select:focus,.year-select:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 3px #667eea1a}.summary-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:20px;margin-bottom:24px}.summary-card{background:#fff;border-radius:12px;padding:24px;box-shadow:0 2px 8px #00000014;display:flex;align-items:center;gap:20px;transition:all .3s ease}.summary-card:hover{transform:translateY(-4px);box-shadow:0 8px 20px #0000001f}.summary-card .card-icon{font-size:48px;line-height:1}.summary-card .card-content h3{margin:0 0 8px;font-size:13px;font-weight:600;color:#7f8c8d;text-transform:uppercase;letter-spacing:.5px}.summary-card .card-content .amount{margin:0;font-size:28px;font-weight:700;color:#2c3e50}.summary-card.total-revenue{background:linear-gradient(135deg,#667eea,#764ba2)}.summary-card.total-revenue .card-content h3,.summary-card.total-revenue .card-content .amount{color:#fff}.summary-card.total-transactions{background:linear-gradient(135deg,#f093fb,#f5576c)}.summary-card.total-transactions .card-content h3,.summary-card.total-transactions .card-content .amount{color:#fff}.summary-card.total-members{background:linear-gradient(135deg,#4facfe,#00f2fe)}.summary-card.total-members .card-content h3,.summary-card.total-members .card-content .amount{color:#fff}.table-container{background:#fff;border-radius:12px;padding:24px;box-shadow:0 2px 8px #00000014;overflow-x:auto}.revenue-table{width:100%;border-collapse:collapse;table-layout:auto}.revenue-table th{background:#f8f9fa;padding:14px 12px;text-align:left;font-size:12px;font-weight:700;color:#2c3e50;text-transform:uppercase;letter-spacing:.5px;border-bottom:2px solid #e9ecef;white-space:nowrap}.revenue-table td{padding:14px 12px;font-size:13px;color:#495057;border-bottom:1px solid #e9ecef}.revenue-table tbody tr{transition:all .2s ease}.revenue-table tbody tr:hover{background:#f8f9fa}.revenue-table .user-id{font-weight:600;color:#667eea}.revenue-table .user-name{font-weight:500;color:#2c3e50}.revenue-table .user-email{color:#7f8c8d;font-size:12px}.revenue-table .machine-count,.revenue-table .transaction-count{text-align:center;font-weight:600}.revenue-table .revenue{font-weight:700;color:#27ae60;text-align:right}.revenue-table .avg-revenue{font-weight:600;color:#3498db;text-align:right}.status-badge{display:inline-block;padding:4px 12px;border-radius:12px;font-size:11px;font-weight:600;text-transform:uppercase}.status-badge.active{background:#d4edda;color:#155724}.status-badge.inactive{background:#f8d7da;color:#721c24}.revenue-table tfoot .total-row{background:#f8f9fa;font-weight:700;border-top:2px solid #dee2e6}.revenue-table tfoot .total-row td{padding:16px 12px;font-size:14px;color:#2c3e50}.loading,.no-data{text-align:center;padding:60px 20px;color:#7f8c8d;font-size:14px}.no-data p{margin:0;font-size:16px}@media (max-width: 768px){.page-header{flex-direction:column;align-items:stretch}.filter-controls{justify-content:stretch}.month-select,.year-select{flex:1}.summary-cards{grid-template-columns:1fr}.table-container{overflow-x:scroll}.revenue-table{min-width:900px}}.login-container{min-height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#667eea,#764ba2);padding:20px}.login-card{background:#fff;border-radius:16px;box-shadow:0 20px 60px #0000004d;width:100%;max-width:420px;padding:40px;animation:slideUp .5s ease}@keyframes slideUp{0%{opacity:0;transform:translateY(30px)}to{opacity:1;transform:translateY(0)}}.login-header{text-align:center;margin-bottom:30px}.logo{display:inline-flex;align-items:center;justify-content:center;width:80px;height:80px;background:linear-gradient(135deg,#667eea,#764ba2);border-radius:50%;margin-bottom:20px}.logo svg{color:#fff}.login-header h1{margin:0 0 8px;font-size:28px;font-weight:700;color:#1f2937}.login-header p{margin:0;color:#6b7280;font-size:14px}.login-form,.form-group{margin-bottom:20px}.form-group label{display:block;margin-bottom:8px;font-weight:500;color:#374151;font-size:14px}.form-group input{width:100%;padding:12px 16px;border:2px solid #e5e7eb;border-radius:8px;font-size:16px;transition:all .3s ease;box-sizing:border-box}.form-group input:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 3px #667eea1a}.error-message{display:flex;align-items:center;gap:8px;padding:12px 16px;background-color:#fee;border:1px solid #fcc;border-radius:8px;color:#c00;font-size:14px;margin-bottom:20px}.error-message svg{flex-shrink:0}.btn-login{width:100%;padding:14px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:8px;font-size:16px;font-weight:600;cursor:pointer;transition:all .3s ease;display:flex;align-items:center;justify-content:center;gap:8px}.btn-login:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 10px 20px #667eea4d}.btn-login:disabled{opacity:.7;cursor:not-allowed}.spinner{width:16px;height:16px;border:2px solid rgba(255,255,255,.3);border-radius:50%;border-top-color:#fff;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.login-footer{border-top:1px solid #e5e7eb;padding-top:20px}.demo-credentials{background-color:#f9fafb;padding:16px;border-radius:8px;font-size:13px;color:#6b7280;text-align:center;margin:0;line-height:1.8}.demo-credentials strong{color:#374151;display:block;margin-bottom:8px}.demo-credentials code{background-color:#e5e7eb;padding:2px 8px;border-radius:4px;font-family:Courier New,monospace;color:#667eea;font-weight:600}@media (max-width: 480px){.login-card{padding:30px 20px}.login-header h1{font-size:24px}.logo{width:64px;height:64px}.logo svg{width:32px;height:32px}}@keyframes marching-ants{0%{background-position:0 0,0 100%,0 0,100% 0}to{background-position:20px 0,-20px 100%,0 -20px,100% 20px}}:root{--rc-drag-handle-size: 12px;--rc-drag-handle-mobile-size: 24px;--rc-drag-handle-bg-colour: rgba(0, 0, 0, .2);--rc-drag-bar-size: 6px;--rc-border-color: rgba(255, 255, 255, .7);--rc-focus-color: #0088ff}.ReactCrop{position:relative;display:inline-block;cursor:crosshair;max-width:100%}.ReactCrop *,.ReactCrop *:before,.ReactCrop *:after{box-sizing:border-box}.ReactCrop--disabled,.ReactCrop--locked{cursor:inherit}.ReactCrop__child-wrapper{overflow:hidden;max-height:inherit}.ReactCrop__child-wrapper>img,.ReactCrop__child-wrapper>video{display:block;max-width:100%;max-height:inherit}.ReactCrop:not(.ReactCrop--disabled) .ReactCrop__child-wrapper>img,.ReactCrop:not(.ReactCrop--disabled) .ReactCrop__child-wrapper>video{touch-action:none}.ReactCrop:not(.ReactCrop--disabled) .ReactCrop__crop-selection{touch-action:none}.ReactCrop__crop-mask{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;width:calc(100% + .5px);height:calc(100% + .5px)}.ReactCrop__crop-selection{position:absolute;top:0;left:0;transform:translateZ(0);cursor:move}.ReactCrop--disabled .ReactCrop__crop-selection{cursor:inherit}.ReactCrop--circular-crop .ReactCrop__crop-selection{border-radius:50%}.ReactCrop--circular-crop .ReactCrop__crop-selection:after{pointer-events:none;content:"";position:absolute;top:-1px;right:-1px;bottom:-1px;left:-1px;border:1px solid var(--rc-border-color);opacity:.3}.ReactCrop--no-animate .ReactCrop__crop-selection{outline:1px dashed white}.ReactCrop__crop-selection:not(.ReactCrop--no-animate .ReactCrop__crop-selection){animation:marching-ants 1s;background-image:linear-gradient(to right,#fff 50%,#444 50%),linear-gradient(to right,#fff 50%,#444 50%),linear-gradient(to bottom,#fff 50%,#444 50%),linear-gradient(to bottom,#fff 50%,#444 50%);background-size:10px 1px,10px 1px,1px 10px,1px 10px;background-position:0 0,0 100%,0 0,100% 0;background-repeat:repeat-x,repeat-x,repeat-y,repeat-y;color:#fff;animation-play-state:running;animation-timing-function:linear;animation-iteration-count:infinite}.ReactCrop__crop-selection:focus{outline:2px solid var(--rc-focus-color);outline-offset:-1px}.ReactCrop--invisible-crop .ReactCrop__crop-mask,.ReactCrop--invisible-crop .ReactCrop__crop-selection{display:none}.ReactCrop__rule-of-thirds-vt:before,.ReactCrop__rule-of-thirds-vt:after,.ReactCrop__rule-of-thirds-hz:before,.ReactCrop__rule-of-thirds-hz:after{content:"";display:block;position:absolute;background-color:#fff6}.ReactCrop__rule-of-thirds-vt:before,.ReactCrop__rule-of-thirds-vt:after{width:1px;height:100%}.ReactCrop__rule-of-thirds-vt:before{left:33.3333333333%}.ReactCrop__rule-of-thirds-vt:after{left:66.6666666667%}.ReactCrop__rule-of-thirds-hz:before,.ReactCrop__rule-of-thirds-hz:after{width:100%;height:1px}.ReactCrop__rule-of-thirds-hz:before{top:33.3333333333%}.ReactCrop__rule-of-thirds-hz:after{top:66.6666666667%}.ReactCrop__drag-handle{position:absolute;width:var(--rc-drag-handle-size);height:var(--rc-drag-handle-size);background-color:var(--rc-drag-handle-bg-colour);border:1px solid var(--rc-border-color)}.ReactCrop__drag-handle:focus{background:var(--rc-focus-color)}.ReactCrop .ord-nw{top:0;left:0;transform:translate(-50%,-50%);cursor:nw-resize}.ReactCrop .ord-n{top:0;left:50%;transform:translate(-50%,-50%);cursor:n-resize}.ReactCrop .ord-ne{top:0;right:0;transform:translate(50%,-50%);cursor:ne-resize}.ReactCrop .ord-e{top:50%;right:0;transform:translate(50%,-50%);cursor:e-resize}.ReactCrop .ord-se{bottom:0;right:0;transform:translate(50%,50%);cursor:se-resize}.ReactCrop .ord-s{bottom:0;left:50%;transform:translate(-50%,50%);cursor:s-resize}.ReactCrop .ord-sw{bottom:0;left:0;transform:translate(-50%,50%);cursor:sw-resize}.ReactCrop .ord-w{top:50%;left:0;transform:translate(-50%,-50%);cursor:w-resize}.ReactCrop__disabled .ReactCrop__drag-handle{cursor:inherit}.ReactCrop__drag-bar{position:absolute}.ReactCrop__drag-bar.ord-n{top:0;left:0;width:100%;height:var(--rc-drag-bar-size);transform:translateY(-50%)}.ReactCrop__drag-bar.ord-e{right:0;top:0;width:var(--rc-drag-bar-size);height:100%;transform:translate(50%)}.ReactCrop__drag-bar.ord-s{bottom:0;left:0;width:100%;height:var(--rc-drag-bar-size);transform:translateY(50%)}.ReactCrop__drag-bar.ord-w{top:0;left:0;width:var(--rc-drag-bar-size);height:100%;transform:translate(-50%)}.ReactCrop--new-crop .ReactCrop__drag-bar,.ReactCrop--new-crop .ReactCrop__drag-handle,.ReactCrop--fixed-aspect .ReactCrop__drag-bar,.ReactCrop--fixed-aspect .ReactCrop__drag-handle.ord-n,.ReactCrop--fixed-aspect .ReactCrop__drag-handle.ord-e,.ReactCrop--fixed-aspect .ReactCrop__drag-handle.ord-s,.ReactCrop--fixed-aspect .ReactCrop__drag-handle.ord-w{display:none}@media (pointer: coarse){.ReactCrop .ord-n,.ReactCrop .ord-e,.ReactCrop .ord-s,.ReactCrop .ord-w{display:none}.ReactCrop__drag-handle{width:var(--rc-drag-handle-mobile-size);height:var(--rc-drag-handle-mobile-size)}}.profile-container{max-width:900px;margin:0 auto;padding:24px}.profile-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.profile-header h1{font-size:24px;color:#2c3e50;margin:0}.btn-back{padding:8px 16px;background:#6c757d;color:#fff;border:none;border-radius:6px;cursor:pointer;font-size:14px;transition:background .2s}.btn-back:hover{background:#5a6268}.message{padding:12px 16px;border-radius:8px;margin-bottom:20px;font-size:14px;animation:slideIn .3s ease-out}.message.success{background:#d4edda;color:#155724;border:1px solid #c3e6cb}.message.error{background:#f8d7da;color:#721c24;border:1px solid #f5c6cb}@keyframes slideIn{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.profile-form{background:#fff;border-radius:12px;padding:32px;box-shadow:0 2px 8px #0000001a}.profile-image-section{text-align:center;margin-bottom:32px;padding-bottom:24px;border-bottom:1px solid #e1e8ed}.profile-image-wrapper{display:inline-block;margin-bottom:16px}.profile-image-preview{width:150px;height:150px;border-radius:50%;object-fit:cover;border:4px solid #3498db;cursor:pointer;transition:transform .2s,box-shadow .2s}.profile-image-preview:hover{transform:scale(1.05);box-shadow:0 4px 12px #3498db4d}.profile-image-placeholder{width:150px;height:150px;border-radius:50%;background:#f8f9fa;border:3px dashed #dee2e6;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;transition:all .2s;color:#6c757d}.profile-image-placeholder:hover{background:#e9ecef;border-color:#3498db;color:#3498db}.profile-image-placeholder svg{margin-bottom:8px}.profile-image-placeholder p{margin:0;font-size:12px}.profile-image-actions{display:flex;gap:12px;justify-content:center;margin-bottom:8px}.btn-upload{padding:8px 16px;background:#3498db;color:#fff;border:none;border-radius:6px;cursor:pointer;font-size:14px;transition:background .2s}.btn-upload:hover{background:#2980b9}.btn-remove-image{padding:8px 16px;background:#e74c3c;color:#fff;border:none;border-radius:6px;cursor:pointer;font-size:14px;transition:background .2s}.btn-remove-image:hover{background:#c0392b}.image-hint{color:#6c757d;font-size:12px;margin:0}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}.form-section-divider{margin:32px 0 24px;padding-top:24px;border-top:2px solid #e1e8ed}.form-section-divider h3{font-size:18px;color:#2c3e50;margin:0 0 8px}.section-hint{font-size:13px;color:#6c757d;margin:0}.form-group{display:flex;flex-direction:column}.form-group.full-width{grid-column:1 / -1}.form-group label{font-weight:600;color:#2c3e50;margin-bottom:8px;font-size:14px}.form-group input,.form-group textarea,.form-group select{padding:10px 12px;border:1px solid #dee2e6;border-radius:6px;font-size:14px;font-family:Sarabun,sans-serif;transition:border-color .2s,box-shadow .2s}.form-group input:focus,.form-group textarea:focus,.form-group select:focus{outline:none;border-color:#3498db;box-shadow:0 0 0 3px #3498db1a}.form-group textarea{resize:vertical;min-height:80px}.form-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:24px;padding-top:24px;border-top:1px solid #e1e8ed}.btn-cancel{padding:10px 24px;background:#6c757d;color:#fff;border:none;border-radius:6px;cursor:pointer;font-size:14px;transition:background .2s}.btn-cancel:hover{background:#5a6268}.btn-cancel:disabled{opacity:.6;cursor:not-allowed}.btn-save{padding:10px 24px;background:#27ae60;color:#fff;border:none;border-radius:6px;cursor:pointer;font-size:14px;font-weight:600;transition:background .2s}.btn-save:hover{background:#229954}.btn-save:disabled{opacity:.6;cursor:not-allowed}.loading{text-align:center;padding:40px;color:#6c757d;font-size:16px}@media (max-width: 768px){.profile-container{padding:16px}.profile-form{padding:20px}.form-grid{grid-template-columns:1fr}.profile-header{flex-direction:column;align-items:flex-start;gap:12px}.form-actions{flex-direction:column}.btn-cancel,.btn-save{width:100%}}.crop-modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#000000bf;display:flex;align-items:center;justify-content:center;z-index:9999;animation:fadeIn .2s ease-out}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.crop-modal{background:#fff;border-radius:12px;max-width:90vw;max-height:90vh;display:flex;flex-direction:column;box-shadow:0 8px 32px #0000004d;animation:slideUp .3s ease-out}@keyframes slideUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.crop-modal-header{display:flex;justify-content:space-between;align-items:center;padding:20px;border-bottom:1px solid #e1e8ed}.crop-modal-header h3{margin:0;font-size:18px;color:#2c3e50}.btn-close{width:32px;height:32px;border:none;background:#f8f9fa;border-radius:6px;cursor:pointer;font-size:18px;color:#6c757d;display:flex;align-items:center;justify-content:center;transition:all .2s}.btn-close:hover{background:#e9ecef;color:#2c3e50}.crop-container{padding:20px;overflow:auto;flex:1;display:flex;justify-content:center;align-items:center;background:#f8f9fa}.crop-modal-actions{display:flex;justify-content:flex-end;gap:12px;padding:20px;border-top:1px solid #e1e8ed}.btn-crop-confirm{padding:10px 24px;background:#3498db;color:#fff;border:none;border-radius:6px;cursor:pointer;font-size:14px;font-weight:600;transition:background .2s}.btn-crop-confirm:hover{background:#2980b9}.btn-crop-confirm:disabled{opacity:.5;cursor:not-allowed;background:#95a5a6}@media (max-width: 768px){.crop-modal{max-width:95vw;max-height:95vh}.crop-container{padding:12px}.crop-modal-actions{flex-direction:column}.crop-modal-actions .btn-cancel,.crop-modal-actions .btn-crop-confirm{width:100%}}*{margin:0;padding:0;box-sizing:border-box}.App{min-height:100vh;background-color:#f5f5f5}@tailwind base;@tailwind components;@tailwind utilities;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}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}
