:root{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;line-height:1.5;font-weight:400;color-scheme:light;color:#333;background-color:#fff;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background-color:#f8f9fa}h1{font-size:3.2em;line-height:1.1}h1 #root{width:100%}h1 input,h1 button{font-family:inherit}.home-content{background:#e6f3ff;min-height:calc(100vh - 95px);padding:20px;border-radius:12px;margin:10px}.nav-tabs{display:flex;background-color:#e1f5fe;border-bottom:2px solid #e9ecef;margin-bottom:20px;overflow-x:auto}.nav-tab{background:none;border:none;padding:12px 16px;font-size:14px;font-weight:500;color:#6c757d;cursor:pointer;transition:all .2s ease;border-bottom:3px solid transparent;white-space:nowrap;min-width:120px}.nav-tab:hover{background-color:#e9ecef;color:#495057}.nav-tab.active{color:#007bff;border-bottom-color:#007bff;background-color:#fff;font-weight:600}.tab-content{min-height:calc(100vh - 65px);padding:30px;background:#e1f5fe}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.tab-placeholder{text-align:center;padding:60px 20px;color:#6c757d}.tab-placeholder h2{color:#495057;margin-bottom:16px;font-size:24px;font-weight:300}.tab-placeholder p{font-size:16px;max-width:500px;margin:0 auto;line-height:1.5}@media(max-width:768px){.nav-tab{font-size:12px;padding:10px 12px;min-width:100px}}.sidebar-toggle{position:fixed;top:20px;left:20px;z-index:1001;background:#374151;border:none;border-radius:8px;padding:12px;cursor:pointer;transition:all .3s ease;box-shadow:0 4px 6px #0000001a}.sidebar-toggle:hover{background:#1f2937;transform:scale(1.05)}.hamburger{width:20px;height:15px;display:flex;flex-direction:column;justify-content:space-between}.hamburger span{width:100%;height:2px;background:#fff;border-radius:1px;transition:all .3s ease}.sidebar-open .hamburger span:nth-child(1){transform:rotate(45deg) translate(5px,5px)}.sidebar-open .hamburger span:nth-child(2){opacity:0}.sidebar-open .hamburger span:nth-child(3){transform:rotate(-45deg) translate(7px,-6px)}.sidebar{position:fixed;top:0;left:0;width:280px;height:100vh;background:linear-gradient(180deg,#1f2937,#374151);transform:translate(-100%);transition:transform .3s ease-in-out;z-index:1000;box-shadow:4px 0 15px #0000001a}.sidebar-open{transform:translate(0)}.sidebar-closed{transform:translate(-100%)}.sidebar-content{padding:0;height:100%;overflow-y:auto}.sidebar-header{padding:30px 20px 20px;border-bottom:1px solid #4b5563}.sidebar-header h3{color:#fff;font-size:20px;font-weight:600;margin:0;text-align:center;background:linear-gradient(135deg,#3b82f6,#8b5cf6);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.sidebar-nav{padding:20px 0}.sidebar-item{width:100%;display:flex;align-items:center;padding:16px 20px;background:none;border:none;color:#d1d5db;cursor:pointer;font-size:14px;font-weight:500;transition:all .2s ease;border-left:3px solid transparent;text-align:left}.sidebar-item:hover{background:#3b82f61a;color:#fff;border-left-color:#3b82f6;transform:translate(5px)}.sidebar-item:active,.sidebar-item.active{background:#3b82f633;color:#fff;border-left-color:#3b82f6}.sidebar-icon{margin-right:12px;font-size:16px;min-width:20px}.sidebar-label{flex:1}.sidebar-overlay{position:fixed;top:0;left:0;width:100vw;height:100vh;background:#00000080;z-index:999;opacity:0;animation:fadeIn .3s ease-in-out forwards}@keyframes fadeIn{to{opacity:1}}.main-content{transition:margin-left .3s ease-in-out;min-height:100vh}.content-shifted{margin-left:0}@media(max-width:768px){.sidebar{width:250px}.sidebar-toggle{top:15px;left:15px;padding:10px}.hamburger{width:18px;height:13px}}@media(max-width:480px){.sidebar{width:100%}}.sidebar-content::-webkit-scrollbar{width:4px}.sidebar-content::-webkit-scrollbar-track{background:#374151}.sidebar-content::-webkit-scrollbar-thumb{background:#6b7280;border-radius:2px}.sidebar-content::-webkit-scrollbar-thumb:hover{background:#9ca3af}.app-container{position:relative;min-height:100vh}.nav-tabs{padding-left:70px}@media(max-width:768px){.nav-tabs{padding-left:60px}}.app-container{padding:40px 20px;background-color:#f8f9fa;min-height:100vh;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}.lookup-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(380px,1fr));gap:20px;max-width:100%;margin:0;padding:0 10px}.shipping-panel{margin:24px 10px 0;padding:20px;background:#fff;border:1px solid #dbe4ee;border-radius:10px;box-shadow:0 2px 8px #0000000f}.shipping-title{margin:0 0 12px;font-size:18px;color:#1f2937}.shipping-error{margin-top:10px;color:#b91c1c;font-size:14px}.shipping-image-wrap{margin-top:14px;border:1px solid #e5e7eb;border-radius:8px;overflow:hidden;background:#f9fafb}.shipping-image{display:block;width:100%;height:auto;max-height:70vh;object-fit:contain}.lookup-section-container{display:flex;flex-direction:column;gap:16px}.lookup-section-container{width:100%;max-width:none}.lookup-section{background:#fff;padding:24px;border-radius:8px;box-shadow:0 2px 8px #0000001a;border:1px solid #e1e5e9}.results-section{background:#fff;padding:20px;border-radius:8px;box-shadow:0 2px 6px #00000014;border:1px solid #e1e5e9;border-left:4px solid #10b981}.results-section h4{margin:0 0 16px;color:#374151;font-size:15px;font-weight:600}.results-summary{display:flex;gap:12px;margin-bottom:16px;flex-wrap:wrap}.success-badge,.error-badge{padding:4px 12px;border-radius:20px;font-size:13px;font-weight:500}.success-badge{background-color:#d1fae5;color:#065f46}.error-badge{background-color:#fee2e2;color:#991b1b}.count-badge{padding:4px 12px;background-color:#dbeafe;color:#1e40af;border-radius:20px;font-size:13px;font-weight:500}.info-badge{padding:4px 12px;background-color:#fef3c7;color:#92400e;border-radius:20px;font-size:13px;font-weight:500}.result-record{background:#f9fafb;border:1px solid #e5e7eb;border-radius:6px;padding:12px;margin-bottom:12px}.record-header{display:flex;gap:16px;margin-bottom:8px;font-size:12px;color:#6b7280}.record-id,.record-user,.record-time{font-weight:500}.record-content{font-size:14px;line-height:1.5;color:#374151}.notes-section{background:#fff;padding:20px;border-radius:8px;box-shadow:0 2px 6px #00000014;border:1px solid #e1e5e9;border-left:4px solid #f59e0b}.notes-section h4{margin:0 0 16px;color:#374151;font-size:15px;font-weight:600}.add-note-container{margin-bottom:20px;padding:16px;background:#f9fafb;border-radius:6px;border:1px solid #e5e7eb}.note-input{width:100%;padding:12px;border:2px solid #d1d5db;border-radius:6px;font-size:14px;font-family:inherit;resize:vertical;min-height:60px;margin-bottom:12px;transition:border-color .2s ease}.note-input:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}.note-actions{display:flex;gap:8px}.add-note-btn,.add-note-notify-btn{padding:8px 16px;border:none;border-radius:6px;font-size:13px;font-weight:500;cursor:pointer;transition:all .2s ease}.add-note-btn{background-color:#10b981;color:#fff}.add-note-btn:hover:not(:disabled){background-color:#059669}.add-note-notify-btn{background-color:#f59e0b;color:#fff}.add-note-notify-btn:hover:not(:disabled){background-color:#d97706}.add-note-btn:disabled,.add-note-notify-btn:disabled{background-color:#9ca3af;cursor:not-allowed}.notes-list{max-height:300px;overflow-y:auto}.no-notes{text-align:center;color:#6b7280;font-style:italic;padding:20px}.no-results{text-align:center;color:#6b7280;font-style:italic;padding:16px;background:#f9fafb;border-radius:6px;border:1px dashed #d1d5db}.note-item{background:#f9fafb;border:1px solid #e5e7eb;border-radius:6px;padding:12px;margin-bottom:8px;transition:all .2s ease}.note-item:hover{border-color:#d1d5db;box-shadow:0 1px 3px #0000001a}.note-item.db-note{background:#f0f9ff;border-left:4px solid #0ea5e9}.note-item.local-note{background:#f9fafb;border-left:4px solid #10b981}.note-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;font-size:12px;color:#6b7280}.note-actions{display:flex;align-items:center;gap:8px}.db-badge{font-size:14px;opacity:.7}.note-user,.note-time{font-weight:500}.delete-note-btn{background:none;border:none;color:#ef4444;cursor:pointer;padding:2px 6px;border-radius:4px;font-size:14px;transition:all .2s ease}.delete-note-btn:hover:not(:disabled){background-color:#fee2e2;color:#dc2626}.delete-note-btn:disabled{color:#9ca3af;cursor:not-allowed;opacity:.5}.note-text{font-size:14px;line-height:1.5;color:#374151;white-space:pre-wrap}.section-header{font-size:16px;font-weight:600;color:#333;margin-bottom:16px;padding-bottom:8px;border-bottom:2px solid #f1f3f4}.input-group{display:flex;gap:12px;align-items:center}.lookup-input{flex:1;padding:12px 16px;border:2px solid #d1d5db;border-radius:6px;font-size:14px;transition:border-color .2s ease,box-shadow .2s ease;background-color:#fafafa}.lookup-input:focus{outline:none;border-color:#3b82f6;background-color:#fff;box-shadow:0 0 0 3px #3b82f61a}.lookup-input::placeholder{color:#9ca3af;font-style:italic}.lookup-syntax-hint{margin-top:10px;color:#6b7280;font-size:12px}.lookup-validation-error{margin-top:6px;color:#b91c1c;font-size:13px;font-weight:500}.serial-report-results{border-left-color:#2563eb}.serial-report-status{color:#1f2937;font-size:14px}.serial-report-error{color:#b91c1c;font-size:14px;font-weight:500}.serial-report-content{display:flex;flex-direction:column;gap:8px}.serial-report-link{color:#1d4ed8;font-weight:600;text-decoration:underline;width:fit-content}.serial-report-link:hover{color:#1e40af}.serial-report-help-text{color:#4b5563;font-size:13px}.lookup-button{padding:12px 24px;background-color:#4f46e5;color:#fff;border:none;border-radius:6px;font-size:14px;font-weight:500;cursor:pointer;transition:background-color .2s ease,transform .1s ease;min-width:80px}.lookup-button:hover:not(:disabled){background-color:#4338ca;transform:translateY(-1px)}.lookup-button:active:not(:disabled){transform:translateY(0)}.lookup-button:disabled{background-color:#9ca3af;cursor:not-allowed;transform:none}.app-loading{display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:100vh;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.loading-spinner{width:50px;height:50px;border:4px solid rgba(255,255,255,.3);border-top:4px solid white;border-radius:50%;animation:spin 1s linear infinite;margin-bottom:20px}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.login-container{display:flex;justify-content:center;align-items:center;min-height:100vh;background:linear-gradient(135deg,#667eea,#764ba2);padding:20px}.login-card{background:#fff;padding:40px;border-radius:20px;box-shadow:0 20px 60px #0003;max-width:480px;width:100%;text-align:center;animation:slideUp .6s ease-out}@keyframes slideUp{0%{opacity:0;transform:translateY(30px)}to{opacity:1;transform:translateY(0)}}.login-header h1{color:#333;font-size:2.5rem;margin-bottom:10px;font-weight:700}.login-header h2{color:#666;font-size:1.4rem;margin-bottom:8px;font-weight:600}.login-header p{color:#888;font-size:1rem;margin-bottom:30px}.company-info{background:#f8f9fa;padding:25px;border-radius:12px;margin-bottom:30px;border-left:4px solid #007bff}.company-info h3{color:#333;font-size:1.2rem;margin-bottom:15px;font-weight:600}.company-info p{color:#666;font-size:.95rem;margin-bottom:8px;line-height:1.5}.microsoft-login-btn{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;padding:15px 24px;background:#0078d4;color:#fff;border:none;border-radius:8px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .3s ease;margin-bottom:25px}.microsoft-login-btn:hover{background:#106ebe;transform:translateY(-2px);box-shadow:0 8px 25px #0078d44d}.microsoft-login-btn:disabled{background:#ccc;cursor:not-allowed;transform:none;box-shadow:none}.microsoft-icon{width:20px;height:20px}.btn-spinner{width:20px;height:20px;border:2px solid rgba(255,255,255,.3);border-top:2px solid white;border-radius:50%;animation:spin 1s linear infinite}.login-footer{border-top:1px solid #eee;padding-top:20px}.security-notice{color:#28a745;font-size:.9rem;font-weight:500;margin-bottom:8px}.domain-info{color:#6c757d;font-size:.85rem;font-style:italic}.user-header{display:flex;justify-content:space-between;align-items:center;background:linear-gradient(135deg,#007bff,#0056b3);color:#fff;padding:15px 25px;border-radius:12px 12px 0 0;margin:10px 10px 0;box-shadow:0 4px 12px #007bff33}.user-info{display:flex;flex-direction:column;gap:4px}.welcome-text{font-size:1.1rem;font-weight:600}.user-email{font-size:.9rem;opacity:.9;font-style:italic}.logout-btn{display:flex;align-items:center;gap:8px;background:#fff3;color:#fff;border:none;padding:10px 16px;border-radius:8px;font-size:.9rem;font-weight:500;cursor:pointer;transition:all .3s ease}.logout-btn:hover{background:#ffffff4d;transform:translateY(-1px)}.logout-icon{font-size:1rem}@media(max-width:768px){.lookup-grid{grid-template-columns:1fr;gap:20px}.app-container{padding:20px 16px}.input-group{flex-direction:column;align-items:stretch}.lookup-button{width:100%}.results-summary{flex-direction:column;gap:8px}.note-actions{flex-direction:column}.add-note-btn,.add-note-notify-btn{width:100%}.record-header{flex-direction:column;gap:4px}.login-card{padding:30px 25px;margin:20px}.login-header h1{font-size:2rem}.user-header{flex-direction:column;gap:15px;text-align:center}.user-info{align-items:center}}
