.navigation{position:fixed;bottom:0;left:0;right:0;background:#fff;border-top:1px solid #e0e0e0;display:flex;justify-content:space-around;padding:.5rem 0;box-shadow:0 -2px 4px #0000000d;z-index:100}.nav-item{display:flex;flex-direction:column;align-items:center;gap:.25rem;padding:.5rem 1rem;background:none;border:none;cursor:pointer;color:#666;transition:color .2s;min-width:80px;min-height:60px}.nav-item:hover,.nav-item.active{color:#4caf50}.nav-icon{width:24px;height:24px;stroke-linecap:round;stroke-linejoin:round}.nav-label{font-size:.75rem;font-weight:500}@media(min-width:1024px){.navigation{position:static;border-top:none;border-bottom:1px solid #e0e0e0;padding:1rem 0;box-shadow:none}.nav-item{flex-direction:row;gap:.5rem;padding:.75rem 1.5rem;min-height:auto}.nav-label{font-size:1rem}}.sync-indicator{display:flex;align-items:center;gap:.5rem;padding:.5rem 1rem;border-radius:20px;font-size:.875rem;font-weight:500}.sync-icon{width:20px;height:20px;display:flex;align-items:center;justify-content:center}.sync-icon svg{width:100%;height:100%;stroke-linecap:round;stroke-linejoin:round}.status-syncing .sync-icon svg.spin{animation:rotate 1s linear infinite}.sync-text{white-space:nowrap}.pending-count{background:#0003;padding:.125rem .5rem;border-radius:12px;font-size:.75rem;font-weight:600}.status-synced{background:#e8f5e9;color:#2e7d32}.status-syncing{background:#e3f2fd;color:#1976d2}.status-offline{background:#fff3e0;color:#f57c00}.status-error{background:#ffebee;color:#c62828}@keyframes rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media(max-width:768px){.sync-indicator{font-size:.75rem;padding:.375rem .75rem}.sync-icon{width:16px;height:16px}}.dashboard-view{padding:1rem;max-width:1200px;margin:0 auto;padding-bottom:80px}.dashboard-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:2rem;flex-wrap:wrap;gap:1rem}.dashboard-header h1{margin:0;color:#333}.dashboard-header .date{margin:.5rem 0 0;color:#666;font-size:.875rem}.empty-state p{color:#666;font-size:1.125rem;margin-bottom:2rem}.btn-add-large{background:#4caf50;color:#fff;border:none;padding:1rem 2rem;border-radius:8px;font-size:1rem;cursor:pointer;min-height:44px}.btn-add-large:hover{background:#45a049}.earnings-by-person{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:1.5rem;margin-bottom:2rem}.person-card{background:#fff;border:1px solid #e0e0e0;border-radius:8px;padding:1.5rem;box-shadow:0 2px 4px #0000000d}.person-card h3{margin:0 0 1rem;color:#333;font-size:1.25rem}.person-earnings{margin-bottom:1rem}.earning-item{display:flex;justify-content:space-between;padding:.5rem 0;border-bottom:1px solid #f5f5f5}.earning-item:last-child{border-bottom:none}.earning-time{color:#666;font-size:.875rem}.earning-amount{font-weight:500;color:#333}.person-total{display:flex;justify-content:space-between;padding-top:1rem;border-top:2px solid #e0e0e0;font-weight:600}.total-amount{color:#4caf50;font-size:1.125rem}.daily-total{background:linear-gradient(135deg,#4caf50,#45a049);color:#fff;padding:2rem;border-radius:12px;text-align:center;box-shadow:0 4px 6px #0000001a}.daily-total h2{margin:0 0 1rem;font-size:1.25rem;font-weight:500}.total-amount-large{margin:0;font-size:2.5rem;font-weight:700}.btn-add-floating{position:fixed;bottom:5.5rem;right:1rem;width:56px;height:56px;border-radius:50%;background:#4caf50;color:#fff;border:none;font-size:2rem;line-height:1;cursor:pointer;box-shadow:0 4px 12px #4caf5066;display:flex;align-items:center;justify-content:center;transition:all .2s;z-index:50;-webkit-tap-highlight-color:transparent}.btn-add-floating:hover{background:#45a049;transform:scale(1.05)}.btn-add-floating:active{transform:scale(.95);box-shadow:0 2px 8px #4caf5066}@media(max-width:768px){.dashboard-view{padding:.75rem;padding-bottom:100px}.earnings-by-person{grid-template-columns:1fr}.total-amount-large{font-size:2rem}.btn-add-floating{bottom:5rem;right:1rem}}@media(min-width:1024px){.btn-add-floating{bottom:2rem;right:2rem;width:60px;height:60px}.dashboard-view{padding-bottom:2rem}}.history-view{padding:1rem;max-width:800px;margin:0 auto;padding-bottom:80px}.history-header{margin-bottom:2rem}.history-header h1{margin:0 0 1rem;color:#333}.search-box{position:relative;display:flex;align-items:center;max-width:500px}.search-icon{position:absolute;left:1rem;width:20px;height:20px;color:#666;pointer-events:none;stroke-linecap:round;stroke-linejoin:round}.search-input{width:100%;padding:.75rem 3rem;border:2px solid #e0e0e0;border-radius:8px;font-size:1rem;transition:border-color .2s}.search-input:focus{outline:none;border-color:#4caf50}.clear-search{position:absolute;right:.5rem;width:32px;height:32px;border:none;background:#f5f5f5;border-radius:50%;font-size:1.5rem;line-height:1;color:#666;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .2s}.clear-search:hover{background:#e0e0e0}.search-loading{text-align:center;padding:1rem;color:#666}.history-list{display:flex;flex-direction:column;gap:2rem}.day-group{background:#fff;border:1px solid #e0e0e0;border-radius:8px;overflow:hidden;box-shadow:0 2px 4px #0000000d}.day-header{display:flex;justify-content:space-between;align-items:center;padding:1rem 1.5rem;background:#f5f5f5;border-bottom:1px solid #e0e0e0}.day-header h2{margin:0;font-size:1.125rem;color:#333;font-weight:600}.day-total{font-size:1.125rem;font-weight:600;color:#4caf50}.day-earnings{padding:.5rem 0}.history-item{display:flex;justify-content:space-between;align-items:center;padding:1rem 1.5rem;border-bottom:1px solid #f5f5f5;gap:1rem}.history-item:last-child{border-bottom:none}.history-item-main{display:flex;align-items:center;gap:1rem;flex:1}.history-time{color:#999;font-size:.875rem;min-width:60px}.history-person{color:#333;font-weight:500}.history-item-right{display:flex;align-items:center;gap:1rem}.history-amount{font-weight:600;color:#333;font-size:1.125rem}.history-actions{display:flex;gap:.5rem}.action-btn{width:36px;height:36px;border:none;border-radius:6px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s;padding:0}.action-btn svg{width:18px;height:18px;stroke-linecap:round;stroke-linejoin:round}.edit-btn{background:#e3f2fd;color:#1976d2}.edit-btn:hover{background:#bbdefb}.delete-btn{background:#ffebee;color:#c62828}.delete-btn:hover{background:#ffcdd2}@media(max-width:768px){.history-view{padding:.75rem}.search-box{max-width:100%}.day-header{padding:.75rem 1rem}.day-header h2,.day-total{font-size:1rem}.history-item{padding:.75rem 1rem;flex-wrap:wrap}.history-item-main{width:100%}.history-item-right{width:100%;justify-content:space-between}.action-btn{width:32px;height:32px}.action-btn svg{width:16px;height:16px}}.statistics-view{padding:1rem;max-width:1200px;margin:0 auto;padding-bottom:80px}.statistics-view h1{margin:0 0 2rem;color:#333}.empty-state{text-align:center;padding:4rem 2rem}.empty-state p{color:#666;font-size:1.125rem}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1.5rem}.stat-card{background:#fff;border:1px solid #e0e0e0;border-radius:8px;padding:1.5rem;box-shadow:0 2px 4px #0000000d}.stat-card h3{margin:0 0 1rem;color:#666;font-size:.875rem;font-weight:600;text-transform:uppercase;letter-spacing:.5px}.stat-value{margin:0 0 .5rem;font-size:2rem;font-weight:700;color:#333}.stat-subtitle{margin:0;color:#999;font-size:.875rem}.stat-card-primary{background:linear-gradient(135deg,#4caf50,#45a049);color:#fff}.stat-card-primary h3{color:#ffffffe6}.stat-card-primary .stat-value{color:#fff}.stat-card-primary .stat-subtitle{color:#fffc}.stat-card-full{grid-column:1 / -1}.person-stats{display:flex;flex-direction:column;gap:1rem}.person-stat-item{display:grid;grid-template-columns:150px 1fr auto;align-items:center;gap:1rem}.person-name{font-weight:500;color:#333}.person-stat-bar-container{background:#f5f5f5;height:24px;border-radius:12px;overflow:hidden}.person-stat-bar{height:100%;background:linear-gradient(90deg,#4caf50,#45a049);transition:width .3s ease}.person-amount{font-weight:600;color:#4caf50;min-width:120px;text-align:right}.date-range{margin:0;font-size:1.125rem;color:#333}@media(max-width:768px){.statistics-view{padding:.75rem}.stats-grid{grid-template-columns:1fr}.stat-value{font-size:1.75rem}.person-stat-item{grid-template-columns:1fr;gap:.5rem}.person-amount{text-align:left}}.earning-form-overlay{position:fixed;inset:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000}.earning-form-container{background:#fff;padding:2rem;border-radius:8px;width:90%;max-width:400px;box-shadow:0 4px 6px #0000001a}.earning-form-container h2{margin:0 0 1.5rem;color:#333}.form-group{margin-bottom:1.5rem}.form-group label{display:block;margin-bottom:.5rem;color:#555;font-weight:500}.form-group input{width:100%;padding:.75rem;border:2px solid #ddd;border-radius:4px;font-size:16px;box-sizing:border-box;min-height:44px}.form-group input:focus{outline:none;border-color:#4caf50}.form-group input.error{border-color:#f44336}.error-message{display:block;color:#f44336;font-size:.875rem;margin-top:.25rem}.form-actions{display:flex;gap:1rem;justify-content:flex-end}.form-actions button{padding:.75rem 1.5rem;border:none;border-radius:4px;font-size:16px;cursor:pointer;min-width:100px;min-height:44px}.btn-cancel{background:#f5f5f5;color:#333}.btn-cancel:hover:not(:disabled){background:#e0e0e0}.btn-submit{background:#4caf50;color:#fff}.btn-submit:hover:not(:disabled){background:#45a049}.form-actions button:disabled{opacity:.6;cursor:not-allowed}@media(max-width:768px){.earning-form-container{width:95%;padding:1.5rem}}*{box-sizing:border-box}body{margin: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:#f5f5f5}.app{min-height:100vh;display:flex;flex-direction:column}.app-content{flex:1;padding-top:0}.app-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100vh;gap:1rem}.loading-spinner{width:48px;height:48px;border:4px solid #f3f3f3;border-top:4px solid #4CAF50;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.app-loading p{color:#666;font-size:1.125rem}@media(min-width:1024px){.app{flex-direction:row}.app-content{flex:1;padding-top:0}}
