:root{--bg: #0b1220;--card: #131a2b;--text: #eef2f7;--muted: #aab2bf;--primary: #f5c400;--ok: #22c55e;--warn: #f59e0b;--danger: #ef4444;--border: #1f2a44}*{box-sizing:border-box}html,body,#root{height:100%}body{margin:0;background:#fff;color:var(--text);font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Hiragino Sans,Noto Sans JP,sans-serif}.center{display:grid;place-items:center;height:100%}.auth-container{min-height:100%;display:grid;place-items:center;padding:16px}.card{width:100%;background:var(--card);border:1px solid var(--border);border-radius:14px;padding:20px 18px;box-shadow:0 10px 24px #0000004d}.logo{font-weight:700;font-size:18px;opacity:.9;margin-bottom:8px}.title{margin:4px 0 16px;font-size:22px}.form{display:grid;gap:12px}.label{display:grid;gap:6px;font-size:14px;color:var(--muted)}.input-wrap{display:flex;align-items:center;gap:8px;background:#0e1524;border:1px solid var(--border);border-radius:10px;padding:10px 12px}.input-wrap input{flex:1;color:var(--text);background:transparent;border:none;outline:none;font-size:16px}button.primary{width:100%;padding:14px;border-radius:10px;border:none;background:var(--primary);color:#111827;font-weight:600;font-size:16px}button.primary:disabled{opacity:.7}button.ghost{background:transparent;border:none;color:var(--muted)}.error{color:#fff;background:#b91c1c;border:1px solid #7f1d1d;padding:10px;border-radius:10px;font-size:14px}.menu-container{min-height:100%;display:grid;grid-template-rows:auto 1fr}.topbar{display:flex;align-items:center;gap:8px;padding:10px 12px;border-bottom:1px solid var(--border);position:sticky;top:0;background:#131a2be6;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}.icon-btn{background:transparent;border:1px solid var(--border);color:var(--text);border-radius:10px;width:40px;height:40px;display:grid;place-items:center}.grow{flex:1}.user{color:var(--muted);font-size:14px}.menu-grid{padding:16px;display:grid;gap:10px;grid-template-columns:1fr 1fr}.menu-card{display:flex;align-items:center;gap:10px;padding:14px;border-radius:12px;text-decoration:none;background:#0e1524;color:var(--text);border:1px solid var(--border)}.menu-text{display:grid}.menu-title{font-weight:600}.menu-sub{font-size:12px;color:var(--muted)}.menu-card.admin{outline:1px dashed rgba(245,196,0,.45)}@media(min-width:640px){.menu-grid{grid-template-columns:repeat(3,1fr)}}@media(max-width:767px){.dl-btn{display:none!important}}.header-dropdown{position:absolute;top:40px;right:0;background:#fff;border-radius:8px;box-shadow:0 4px 16px #00000026;min-width:180px;z-index:100;overflow:hidden}.header-dropdown-item{display:flex;align-items:center;gap:10px;width:100%;padding:12px 16px;background:none;border:none;font-size:13px;font-weight:500;color:#333;cursor:pointer;transition:background .15s;text-align:left}.header-dropdown-item:hover{background:#f5f5f5}.header-dropdown-item+.header-dropdown-item{border-top:1px solid #eee}.header-dropdown-danger{color:#f44336}.header-dropdown-danger:hover{background:#fef2f2}.daily-header{background:#1e3a5f;padding:12px 16px;border-bottom:2px solid #2d5a8c;margin:-16px -16px 16px}.daily-title{margin:0;font-size:16px;font-weight:600;color:#fff;text-align:center}.daily-info-card{background:#f5f5f5;color:#333;border:none;border-radius:8px;padding:14px;margin-bottom:12px;position:relative;font-size:13px;line-height:1.6}.info-row{display:flex;margin-bottom:4px}.info-label{min-width:80px;font-weight:500}.info-value{color:#333;font-weight:600}.step-badge{position:absolute;top:12px;right:12px;background:linear-gradient(135deg,#f96,#ff6b6b);color:#fff;padding:6px 12px;border-radius:6px;font-size:11px;font-weight:600;box-shadow:0 2px 6px #ff6b6b4d}.check-display-btn{width:100%;background:#1e3a8a;color:#fff;border:none;border-radius:8px;padding:12px;font-size:15px;font-weight:600;margin-bottom:12px;cursor:pointer;transition:background .2s}.check-display-btn:hover{background:#1a337a}.helper-text{font-size:11px;color:var(--muted);margin:0 0 16px;text-align:center}.calendar-section{background:#f5f5f5;color:#333;border:none;border-radius:8px;padding:12px}.calendar-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;padding:0 8px}.calendar-nav{background:transparent;border:none;color:#333;font-size:16px;font-weight:700;cursor:pointer;padding:4px 8px}.calendar-month{font-size:14px;font-weight:600;color:#333}.calendar-week-view{overflow-x:auto;-webkit-overflow-scrolling:touch}.week-header{display:grid;grid-template-columns:repeat(7,1fr);gap:2px;margin-bottom:2px}.week-day-label{text-align:center;font-size:10px;font-weight:600;padding:4px 2px;color:#666;min-width:40px}.week-day-label.sunday{color:#ef4444}.week-day-label.saturday{color:#3b82f6}.week-row{display:grid;grid-template-columns:repeat(7,1fr);gap:0}.calendar-section .day-cell{display:grid;grid-template-rows:1fr 1fr;min-width:40px;border-radius:4px;text-align:center;font-weight:600;color:#333;background:#fff;padding:0;line-height:normal}.calendar-section .day-cell.today-cell{background:#fff}.calendar-section .day-cell.today-cell .day-number{background:#fff;color:#333;border-bottom-color:#e0e4e8}.calendar-section .day-cell.today-cell .day-check{background:#f8fffe}.today-number{display:flex;align-items:center;justify-content:center;width:24px;height:24px;background:#1e3a8a;color:#fff;border-radius:50%;font-size:12px;font-weight:700;margin:0 auto}.day-number{text-align:center;font-size:13px;font-weight:600;padding:8px 4px;background:#fff;border-bottom:1px solid #e0e4e8;min-height:32px;display:flex;align-items:center;justify-content:center;color:#333}.day-number.empty{background:#f3f4f6}.day-check{background:#f8fffe;text-align:center;padding:4px;min-height:28px;display:flex;align-items:center;justify-content:center;transition:background .15s}.day-check:hover{background:#e8f5e9}.day-check.empty,.day-check.empty:hover{background:#f3f4f6}.check-mark{font-size:11px;font-weight:700}.calendar-helper{font-size:10px;color:#6b7280;margin:12px 0 0;text-align:center;line-height:1.4}.no-data-message{text-align:center;padding:20px;color:#9ca3af;font-size:13px;background:#f9fafb;border:1px dashed #d1d5db;border-radius:6px;margin:8px 0}.emergency-header{background:#1e3a5f;padding:12px 16px;border-bottom:2px solid #2d5a8c;margin:-16px -16px 16px}.emergency-title{margin:0;font-size:16px;font-weight:600;color:#fff;text-align:center}.emergency-info-box{background:#1e3a5f;color:#fff;padding:12px 16px;margin-bottom:16px;border-radius:8px}.emergency-system-name{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:600}.system-icon{font-size:18px}.emergency-contacts{display:flex;flex-direction:column;gap:12px}.emergency-contact-card{background:#fff;border:1px solid #ddd;border-radius:8px;padding:14px;box-shadow:0 1px 3px #0000001a}.contact-category{background:#e8f4f8;color:#1a56a0;padding:6px 12px;border-radius:6px;font-size:13px;font-weight:600;display:inline-block;margin-bottom:12px}.contact-details{margin-bottom:12px;font-size:12px;color:#333;line-height:1.6}.contact-row{margin-bottom:2px}.contact-label{color:#555}.floor-info{color:#1a56a0;font-weight:600}.contact-person{display:flex;align-items:center;gap:8px;padding:8px 12px;background:#e3f2fd;border-radius:6px;margin-bottom:12px}.person-icon{font-size:18px}.person-name{font-size:13px;font-weight:600;color:#1976d2}.contact-phones{display:flex;flex-direction:column;gap:8px}.phone-row{display:flex;align-items:center;gap:8px;padding:8px 12px;background:#f5f5f5;border-radius:6px}.phone-label{min-width:30px;font-size:12px;font-weight:600;color:#666}.phone-number{flex:1;font-size:13px;color:#333;font-family:Courier New,monospace}.call-btn{background:linear-gradient(135deg,#66bb6a,#4caf50);color:#fff;border:none;border-radius:6px;padding:6px 12px;font-size:12px;font-weight:600;cursor:pointer;display:flex;align-items:center;gap:4px;box-shadow:0 2px 4px #4caf504d;transition:background .2s}.call-btn:hover{background:linear-gradient(135deg,#4caf50,#388e3c)}.phone-icon{font-size:14px}.production-input-section{background:#fff;color:#333;border:1px solid #ddd;border-radius:8px;padding:12px}.production-section-title{font-size:11px;font-weight:600;color:#555;margin:0 0 6px;display:block}.production-table{width:100%;border-collapse:collapse;font-size:13px}.production-table thead{background:#f5f5f5}.production-table th{padding:10px 8px;text-align:center;font-weight:600;color:#555;border-bottom:1px solid #e0e0e0}.production-table tbody tr{border-bottom:1px solid #e5e7eb}.production-table tbody tr:hover{background:#f9fafb}.production-table td{padding:10px 8px;border:1px solid #e5e7eb}.day-cell{text-align:center;font-weight:600;color:#333;background:#fafafa;padding:4px 8px;line-height:1.3}.day-cell.today-cell,.shots-cell.today-cell,.maintenance-cell.today-cell{background:#1e3a8a;color:#fff}.shots-cell{text-align:right;font-family:Courier New,monospace;color:#1a56a0;font-weight:600;min-height:32px}.maintenance-cell{text-align:center;font-size:11px;color:#22c55e;font-weight:600}.prod-stat-card{background:linear-gradient(135deg,#283593,#1565c0);border-radius:8px;padding:10px 12px;margin-bottom:12px;color:#fff}.prod-stat-label{font-size:10px;opacity:.85;margin-bottom:4px}.prod-stat-row{display:flex;justify-content:space-between;align-items:baseline}.prod-stat-val{font-size:24px;font-weight:700}.prod-stat-threshold{font-size:11px;opacity:.8}.prod-stat-card--exceeded{background:linear-gradient(135deg,#b71c1c,#c62828)}.prod-stat-maintenance-warning{font-size:24px;font-weight:700;animation:blink 1s ease-in-out infinite}@keyframes blink{0%,to{opacity:1}50%{opacity:0}}.modal-overlay{position:fixed;inset:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000}.modal-content{background:#fff;border-radius:12px;padding:24px;width:85%;max-width:320px;box-shadow:0 4px 20px #0000004d;text-align:center}.modal-message{font-size:14px;color:#333;margin:0 0 20px;line-height:1.6}.modal-buttons{display:flex;gap:12px;justify-content:center}.modal-btn{flex:1;padding:10px 16px;border:none;border-radius:8px;font-size:14px;font-weight:600;cursor:pointer;transition:background .2s}.modal-btn-cancel{background:#e5e7eb;color:#333}.modal-btn-cancel:hover{background:#d1d5db}.modal-btn-confirm{background:linear-gradient(135deg,#42a5f5,#1e88e5);color:#fff}.modal-btn-confirm:hover{background:linear-gradient(135deg,#1e88e5,#1565c0)}@media(max-width:480px){.production-table{font-size:12px}.production-table th,.production-table td{padding:8px 4px}.production-section-title{font-size:13px}}@media(min-width:600px){.daily-header,.emergency-header{padding:14px 24px}.daily-title,.emergency-title{font-size:18px}.daily-info-card,.emergency-info-box{padding:16px 20px;font-size:14px;margin-bottom:16px}.info-label{min-width:120px;font-size:14px}.info-value{font-size:14px}.production-input-section{padding:16px 20px}.production-section-title{font-size:15px}.production-table{font-size:14px}.production-table th,.production-table td{padding:12px}.calendar-section{padding:16px 20px}.week-day-label{min-width:52px;font-size:11px;padding:4px}.calendar-section .day-cell{min-width:52px}.day-number{font-size:14px;padding:10px 4px;min-height:36px}.day-check{min-height:32px}.check-mark{font-size:12px}.emergency-contact-card{padding:16px 20px}.contact-category{font-size:14px}.contact-details{font-size:13px}.person-name,.phone-number{font-size:14px}.call-btn{padding:8px 16px;font-size:13px}.modal-content{max-width:480px;padding:28px 32px}.modal-message{font-size:15px}}@media(min-width:768px){.daily-info-card,.production-input-section,.calendar-section,.emergency-contact-card{border-radius:10px}.production-table th,.production-table td{padding:14px 16px}.week-day-label{min-width:60px;font-size:14px}.calendar-section .day-cell{min-width:60px}}@media(orientation:landscape)and (max-height:600px){.daily-header,.emergency-header{padding:8px 16px}.daily-title,.emergency-title{font-size:14px}.daily-info-card{padding:10px 14px;margin-bottom:8px}.info-row{margin-bottom:2px}.production-input-section{padding:10px 12px}.calendar-section{padding:8px 12px}.day-number{min-height:28px;padding:6px 4px}.day-check{min-height:24px}.emergency-info-box{padding:8px 14px;margin-bottom:10px}.emergency-contact-card{padding:10px 14px}}
