@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000}}}.collapse{visibility:collapse}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.container{width:100%}.mx-auto{margin-inline:auto}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.table{display:table}.min-h-screen{min-height:100vh}.w-auto{width:auto}.w-full{width:100%}.min-w-\[280px\]{min-width:280px}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.items-center{align-items:center}.justify-center{justify-content:center}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.rounded-full{border-radius:3.40282e38px}.border{border-style:var(--tw-border-style);border-width:1px}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-transparent{border-color:#0000}.text-center{text-align:center}.break-all{word-break:break-all}.uppercase{text-transform:uppercase}.italic{font-style:italic}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,ease);transition-duration:var(--tw-duration,0s)}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,ease);transition-duration:var(--tw-duration,0s)}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,ease);transition-duration:var(--tw-duration,0s)}.duration-200{--tw-duration:.2s;transition-duration:.2s}@media (hover:hover){.hover\:scale-\[1\.02\]:hover{scale:1.02}}.focus\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus\:ring-offset-2:focus{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}*{box-sizing:border-box;margin:0;padding:0}body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#1e293b;background-color:#f8fafc;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;line-height:1.6}.container{max-width:1400px;margin:0 auto;padding:2rem}header{text-align:center;margin-bottom:3rem}header h1{color:#0f172a;margin-bottom:.5rem;font-size:2.5rem;font-weight:700}header p{color:#64748b;margin-bottom:1rem;font-size:1.125rem}.nav-link{color:#3b82f6;font-weight:500;text-decoration:none;transition:color .2s}.nav-link:hover{color:#2563eb}.main-content{grid-template-columns:1fr 1fr;gap:2rem;min-height:600px;display:grid}.left-pane,.right-pane{background:#fff;border-radius:12px;padding:1.5rem;box-shadow:0 1px 3px #0000001a,0 1px 2px #0000000f}.gmail-section{height:100%}.gmail-header{border-bottom:1px solid #e2e8f0;justify-content:space-between;align-items:center;margin-bottom:1.5rem;padding-bottom:1rem;display:flex}.gmail-header h2{color:#0f172a;font-size:1.25rem;font-weight:600}.form-group{margin-bottom:1.5rem}.form-group label{color:#374151;margin-bottom:.5rem;font-weight:500;display:block}.form-group input,.form-group textarea{border:1px solid #d1d5db;border-radius:6px;width:100%;padding:.75rem;font-size:.875rem;transition:border-color .2s,box-shadow .2s}.form-group input:focus,.form-group textarea:focus{border-color:#3b82f6;outline:none;box-shadow:0 0 0 3px #3b82f61a}.gmail-btn,.gmail-btn-secondary{cursor:pointer;text-align:center;border:none;border-radius:6px;padding:.75rem 1.5rem;font-size:.875rem;font-weight:500;text-decoration:none;transition:all .2s;display:inline-block}.gmail-btn{color:#fff;background-color:#3b82f6}.gmail-btn:hover{background-color:#2563eb}.gmail-btn:disabled{cursor:not-allowed;background-color:#9ca3af}.gmail-btn-secondary{color:#374151;background-color:#f3f4f6;border:1px solid #d1d5db}.gmail-btn-secondary:hover{background-color:#e5e7eb}.fetch-button-container{margin-bottom:1.5rem}#email-list{background:#f8fafc;border:1px solid #e2e8f0;border-radius:6px;max-height:400px;list-style:none;overflow-y:auto}#email-list li{cursor:pointer;border-bottom:1px solid #e2e8f0;padding:1rem;transition:background-color .2s}#email-list li:hover{background-color:#f1f5f9}#email-list li.active{background-color:#dbeafe;border-left:4px solid #3b82f6}.email-header{justify-content:space-between;align-items:center;margin-bottom:.5rem;display:flex}.email-from{color:#0f172a;font-weight:500}.email-date{color:#64748b;font-size:.75rem}.email-subject-wrapper{justify-content:space-between;align-items:center;margin-bottom:.5rem;display:flex}.email-subject{color:#374151;font-weight:500}.email-chips{align-items:center;gap:.5rem;display:flex}.attachment-chip{font-size:.875rem}.email-category{color:#1e40af;background-color:#dbeafe;border-radius:4px;padding:.25rem .5rem;font-size:.75rem;font-weight:500}.email-snippet{color:#64748b;font-size:.875rem;line-height:1.4}.email-reply{border-left:2px solid #e2e8f0;margin-left:1rem}.result-section{background:#f0f9ff;border:1px solid #bae6fd;border-radius:8px;margin-top:1rem;padding:1.5rem}.result-section h2{color:#0c4a6e;margin-bottom:1rem;font-size:1.25rem;font-weight:600}.result-output{margin-bottom:1rem}.category{color:#fff;background-color:#3b82f6;border-radius:6px;margin-bottom:.5rem;padding:.5rem 1rem;font-weight:500;display:inline-block}.reason{color:#374151;font-size:.875rem}.details-grid{grid-template-columns:auto 1fr;gap:.5rem 1rem;margin-bottom:1rem;display:grid}.details-grid dt{color:#374151;font-weight:500}.details-grid dd{color:#64748b}table{border-collapse:collapse;width:100%;margin-top:1rem}table th,table td{text-align:left;border-bottom:1px solid #e2e8f0;padding:.75rem}table th{color:#374151;background-color:#f8fafc;font-weight:500}.update-netsuite-btn{color:#fff;cursor:pointer;background-color:#10b981;border:none;border-radius:4px;padding:.5rem 1rem;font-size:.75rem;font-weight:500;transition:background-color .2s}.update-netsuite-btn:hover{background-color:#059669}.update-netsuite-btn:disabled{cursor:not-allowed;background-color:#9ca3af}.update-netsuite-btn.success{background-color:#10b981}.update-netsuite-btn.error{background-color:#ef4444}.spinner-container{flex-direction:column;justify-content:center;align-items:center;padding:2rem;display:flex}.spinner{border:2px solid #e2e8f0;border-top-color:#3b82f6;border-radius:50%;width:2rem;height:2rem;margin-bottom:1rem;animation:1s linear infinite spin}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.error-section{background:#fef2f2;border:1px solid #fecaca;border-radius:8px;margin-top:1rem;padding:1rem}.error-section p{color:#dc2626;font-weight:500}.kb-section{max-width:800px;margin:0 auto}.kb-header{border-bottom:1px solid #e2e8f0;justify-content:space-between;align-items:center;margin-bottom:2rem;padding-bottom:1rem;display:flex}.kb-header h2{color:#0f172a;font-size:1.5rem;font-weight:600}.kb-page-actions{align-items:center;gap:1rem;display:flex}#kb-list{list-style:none}.kb-list-item{background:#fff;border:1px solid #e2e8f0;border-radius:8px;margin-bottom:1rem;padding:1.5rem;box-shadow:0 1px 3px #0000001a}.kb-list-item-empty{text-align:center;color:#64748b;padding:2rem;font-style:italic}.kb-list-item-header{justify-content:space-between;align-items:center;margin-bottom:.5rem;display:flex}.kb-item-title{color:#0f172a;font-size:1.125rem;font-weight:600}.kb-item-actions{gap:.5rem;display:flex}.kb-item-actions button{color:#374151;cursor:pointer;background:#fff;border:1px solid #d1d5db;border-radius:4px;padding:.25rem .75rem;font-size:.75rem;transition:all .2s}.kb-item-actions button:hover{background-color:#f3f4f6}.kb-item-content{color:#64748b;font-size:.875rem;line-height:1.5}.modal-overlay{z-index:1000;background-color:#00000080;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.modal-content{background:#fff;border-radius:8px;width:90%;max-width:500px;max-height:80vh;padding:2rem;overflow-y:auto}.modal-content h2{color:#0f172a;margin-bottom:1.5rem;font-size:1.25rem;font-weight:600}.modal-actions{justify-content:flex-end;gap:1rem;margin-top:1.5rem;display:flex}.global-categories-container{background:#fff;border-radius:8px;margin-bottom:2rem;padding:1.5rem;box-shadow:0 1px 3px #0000001a}@media (max-width:768px){.main-content{grid-template-columns:1fr;gap:1rem}.container{padding:1rem}header h1{font-size:2rem}}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}
