@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:rotateX(0);--tw-rotate-y:rotateY(0);--tw-rotate-z:rotateZ(0);--tw-skew-x:skewX(0);--tw-skew-y:skewY(0);--tw-divide-y-reverse:0;--tw-border-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}}}html{box-sizing:border-box}*,:before,:after{box-sizing:inherit}:root{color-scheme:light dark;color:#e5e7eb;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:#030712;font-family:system-ui,Avenir,Helvetica,Arial,sans-serif;font-weight:400;line-height:1.5;overflow-x:hidden}html{overflow-x:hidden}a{color:#818cf8;-webkit-text-decoration:inherit;text-decoration:inherit;font-weight:500}a:hover{color:#6366f1}body{min-width:320px;min-height:100vh;margin:0;overflow-x:hidden}button{color:#e5e7eb;cursor:pointer;background-color:#1f2937;border:1px solid #0000;border-radius:8px;padding:.6em 1.2em;font-family:inherit;font-size:1em;font-weight:500;transition:border-color .25s,background-color .25s}button:hover{background-color:#374151;border-color:#4f46e5}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media (prefers-color-scheme:light){:root{color:#111827;background-color:#f9fafb}a{color:#4f46e5}a:hover{color:#4338ca}button{color:#1f2937;background-color:#e5e7eb}button:hover{background-color:#d1d5db;border-color:#a5b4fc}.custom-text-input{color:#111827;background-color:#fff;border-color:#d1d5db}.custom-text-input:focus{border-color:#4f46e5;box-shadow:0 0 0 2px #4f46e54d}.custom-text-input:-webkit-autofill{caret-color:#111827;-webkit-transition:background-color 5000s ease-in-out;transition:background-color 5000s ease-in-out;-webkit-text-fill-color:#111827!important;-webkit-box-shadow:inset 0 0 0 30px #fff!important}.custom-text-input:-webkit-autofill:hover{caret-color:#111827;-webkit-transition:background-color 5000s ease-in-out;transition:background-color 5000s ease-in-out;-webkit-text-fill-color:#111827!important;-webkit-box-shadow:inset 0 0 0 30px #fff!important}.custom-text-input:-webkit-autofill:focus{caret-color:#111827;-webkit-transition:background-color 5000s ease-in-out;transition:background-color 5000s ease-in-out;-webkit-text-fill-color:#111827!important;-webkit-box-shadow:inset 0 0 0 30px #fff!important}.custom-text-input:-webkit-autofill:active{caret-color:#111827;-webkit-transition:background-color 5000s ease-in-out;transition:background-color 5000s ease-in-out;-webkit-text-fill-color:#111827!important;-webkit-box-shadow:inset 0 0 0 30px #fff!important}.custom-select-input{color:#111827;background-color:#fff;border-color:#d1d5db}.custom-select-input:focus{border-color:#4f46e5;box-shadow:0 0 0 2px #4f46e54d}.custom-select-input:disabled{background-color:#f3f4f6}.ai-context-container{background-color:#f3f4f6;border-color:#e5e7eb}.ai-context-header{color:#1f2937;border-bottom-color:#e5e7eb}.ai-context-section{background-color:#fff;border-color:#d1d5db}.ai-context-section-title{color:#374151;border-bottom-color:#f3f4f6}.ai-context-text{color:#4b5563}.ai-context-item{background-color:#fff;border-color:#e5e7eb}.ai-context-item:hover{background-color:#f9fafb}.ai-context-section .prose code{color:#1f2937;background-color:#f3f4f6;border-color:#e5e7eb}.segmented-control-button{color:#374151;background-color:#fff;border:1px solid #d1d5db}.segmented-control-button:hover:not(.active){background-color:#f9fafb}.segmented-control-button:focus{box-shadow:0 0 0 2px #3b82f680}.segmented-control-button.active{color:#fff;background-color:#2563eb;border-color:#2563eb}.segmented-control-button:disabled{opacity:.5;cursor:not-allowed}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes scaleUp{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}.animate-modal-in{animation:.3s ease-out forwards fadeIn,.3s ease-out forwards scaleUp}.dashboard-title{font-size:1.1rem!important}.drug-search-results-opaque{opacity:1!important;background-color:#fff!important}.patient-search-title{font-size:1.25rem!important}@media print{.no-print{display:none!important}body{color:#000!important;background-color:#fff!important;margin:0!important;padding:0!important;font-size:10pt!important;line-height:1.3!important}body *{visibility:hidden!important}.printable-section,.printable-section *{visibility:visible!important;color:#000!important;background-color:#fff!important}.printable-section{box-shadow:none!important;border:1px solid #ccc!important;border-radius:0!important;width:auto!important;margin:0 0 .5rem!important;padding:1rem!important;display:block!important}@page{margin:1in}body{margin:1in}.printable-section .prose{max-width:none!important}.printable-section .prose h4{margin-bottom:.5rem!important;font-size:12pt!important}.printable-section .prose p,.printable-section .prose div,.printable-section .prose strong,.printable-section .prose li,.printable-section .grid div{font-size:10pt!important;line-height:1.3!important}a,a:visited{color:#000!important;text-decoration:none!important}}.custom-text-input{box-sizing:border-box;color:#d1d5db;background-color:#1f2937;border:1px solid #4b5563;border-radius:.5rem;width:100%;min-height:3rem;padding:.75rem 1rem;font-size:1rem;line-height:1.5rem;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out;display:block;box-shadow:0 1px 2px #0606060d}.custom-text-input::-moz-placeholder{color:#6b7280;opacity:1}.custom-text-input::placeholder{color:#6b7280;opacity:1}.custom-text-input:focus{border-color:#818cf8;outline:none;box-shadow:0 0 0 2px #818cf866}.custom-text-input:-webkit-autofill{caret-color:#d1d5db;-webkit-transition:background-color 5000s ease-in-out;transition:background-color 5000s ease-in-out;-webkit-text-fill-color:#d1d5db!important;-webkit-box-shadow:inset 0 0 0 30px #1f2937!important}.custom-text-input:-webkit-autofill:hover{caret-color:#d1d5db;-webkit-transition:background-color 5000s ease-in-out;transition:background-color 5000s ease-in-out;-webkit-text-fill-color:#d1d5db!important;-webkit-box-shadow:inset 0 0 0 30px #1f2937!important}.custom-text-input:-webkit-autofill:focus{caret-color:#d1d5db;-webkit-transition:background-color 5000s ease-in-out;transition:background-color 5000s ease-in-out;-webkit-text-fill-color:#d1d5db!important;-webkit-box-shadow:inset 0 0 0 30px #1f2937!important}.custom-text-input:-webkit-autofill:active{caret-color:#d1d5db;-webkit-transition:background-color 5000s ease-in-out;transition:background-color 5000s ease-in-out;-webkit-text-fill-color:#d1d5db!important;-webkit-box-shadow:inset 0 0 0 30px #1f2937!important}.custom-select-input{color:#d1d5db;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#1f2937;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;border:1px solid #4b5563;border-radius:.5rem;width:100%;padding:.75rem 2.5rem .75rem 1rem;font-size:1rem;line-height:1.5rem;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out;display:block;box-shadow:0 1px 2px #0000000d}.custom-select-input:focus{border-color:#818cf8;outline:none;box-shadow:0 0 0 2px #818cf866}.custom-select-input:disabled{opacity:.7;cursor:not-allowed;background-color:#374151}.segmented-control{border-radius:.375rem;display:inline-flex;overflow:hidden;box-shadow:0 1px 2px #0000000d}.segmented-control-button{color:#d1d5db;cursor:pointer;background-color:#374151;border:1px solid #4b5563;outline:none;padding:.375rem 1rem;font-size:.875rem;font-weight:500;line-height:1.25rem;transition:background-color .15s ease-in-out,color .15s ease-in-out,border-color .15s ease-in-out}.segmented-control-button:not(:first-child){margin-left:-1px}.segmented-control-button:first-child{border-top-left-radius:.375rem;border-bottom-left-radius:.375rem}.segmented-control-button:last-child{border-top-right-radius:.375rem;border-bottom-right-radius:.375rem}.segmented-control-button:hover:not(.active){background-color:#4b5563}.segmented-control-button:focus{z-index:10;box-shadow:0 0 0 2px #3b82f680}.segmented-control-button.active{color:#fff;z-index:5;background-color:#2563eb;border-color:#2563eb}.segmented-control-button:disabled{opacity:.5;cursor:not-allowed}.status-pill{text-transform:capitalize;border:1px solid #0000;border-radius:9999px;align-items:center;padding:.3em .9em;font-size:.8rem;font-weight:500;line-height:1.2;display:inline-flex}.status-pill-pending{color:#004d40;background-color:#a0e7e5;border-color:#50c8c6}.status-pill-billed{color:#8b4513;background-color:#ffdab9;border-color:#ffa07a}.status-pill-dispensed{color:#006400;background-color:#98fb98;border-color:#3cb371}.status-pill-cancelled{color:#8b0000;background-color:#ffb6c1;border-color:salmon}.status-pill-default{color:#424242;background-color:#e0e0e0;border-color:#bdbdbd}.error-message-box{color:#ad1457;background-color:#fff0f5;border:1px solid #f8bbd0;border-radius:.75rem;margin-bottom:1rem;padding:.75rem 1rem;box-shadow:0 2px 4px #0000000d}.order-item-card{color:#065f46;background-color:#f0fdf4;border:1px solid #a7f3d0;border-radius:.75rem;margin-bottom:1rem;padding:1rem;transition:box-shadow .2s ease-in-out,border-color .2s ease-in-out;box-shadow:0 4px 8px #0000000d}.order-item-card:hover{border-color:#6ee7b7;box-shadow:0 6px 12px #00000012}.pharmacy-table-container{background-color:#f0fdf4;border:1px solid #a7f3d0;border-radius:.75rem;overflow:hidden;box-shadow:0 4px 8px #0000000d}.pharmacy-queue-table{border-collapse:separate;border-spacing:0;width:100%}.pharmacy-queue-table thead th{color:#065f46;background-color:#d1fae5;border-bottom:2px solid #6ee7b7}.pharmacy-table-container thead{background-color:#0000}.pharmacy-queue-table tbody tr{background-color:#0000;border-bottom:1px solid #a7f3d0;transition:background-color .2s ease-in-out}.pharmacy-queue-table tbody tr:last-child{border-bottom:none}.pharmacy-queue-table tbody tr:hover{background-color:#d1fae5}.pharmacy-queue-table td{color:#047857}.admin-table-container{background-color:#fff;border:1px solid #e5e7eb;border-radius:.75rem;margin-top:1rem;overflow:hidden;box-shadow:0 4px 6px -1px #0000000d,0 2px 4px -2px #0000000d}.admin-table{border-collapse:separate;border-spacing:0;min-width:100%}.admin-table thead th{color:#374151;text-align:left;text-transform:uppercase;letter-spacing:.05em;background-color:#f9fafb;border-bottom:2px solid #e5e7eb;padding:.75rem 1.5rem;font-size:.75rem;font-weight:600}.admin-table tbody tr{background-color:#fff;transition:background-color .15s ease-in-out}.admin-table tbody tr:nth-child(2n){background-color:#f9fafb}.admin-table tbody tr:hover{background-color:#f3f4f6}.admin-table tbody td{color:#4b5563;white-space:nowrap;border-bottom:1px solid #e5e7eb;padding:.75rem 1.5rem;font-size:.875rem}.admin-table tbody tr:last-child td{border-bottom:none}.admin-table-actions button{border-radius:.375rem;padding:.25rem .5rem;transition:background-color .15s ease-in-out,color .15s ease-in-out}.admin-table-actions button:hover{background-color:#e5e7eb}.admin-table-actions .action-edit{color:#059669}.admin-table-actions .action-edit:hover{color:#047857}.admin-table-actions .action-delete{color:#dc2626}.admin-table-actions .action-delete:hover{color:#b91c1c}.admin-table-actions .action-view{color:#2563eb}.admin-table-actions .action-view:hover{color:#1d4ed8}.admin-pill{text-transform:capitalize;border:1px solid #0000;border-radius:9999px;align-items:center;padding:.25em .75em;font-size:.75rem;font-weight:500;line-height:1.4;display:inline-flex}.admin-pill-icon{margin-right:.35em}.admin-pill-success{color:#03543f;background-color:#def7ec;border-color:#a7f3d0}.admin-pill-warning{color:#92400e;background-color:#fef3c7;border-color:#fde68a}.admin-pill-danger{color:#991b1b;background-color:#fee2e2;border-color:#fecaca}.admin-pill-info{color:#1e40af;background-color:#dbeafe;border-color:#bfdbfe}.admin-pill-neutral{color:#374151;background-color:#f3f4f6;border-color:#e5e7eb}.admin-pill-primary{color:#3730a3;background-color:#e0e7ff;border-color:#c7d2fe}.alert-box{border-style:solid;border-width:1px;border-radius:.5rem;align-items:center;margin-bottom:1rem;padding:.75rem 1.25rem;font-size:.875rem;display:flex;box-shadow:0 1px 3px #00000012,0 1px 2px #00000008}.alert-box-icon{margin-right:.75rem}.alert-box-content{flex-grow:1}.alert-box-close{cursor:pointer;opacity:.7;background:0 0;border:none;margin-left:1rem;padding:.25rem;transition:opacity .15s ease-in-out}.alert-box-success{color:#065f46;background-color:#f0fdf4;border-color:#a7f3d0}.alert-box-success .alert-box-icon{color:#10b981}.alert-box-success .alert-box-close{color:#065f46}.alert-box-error{color:#991b1b;background-color:#fef2f2;border-color:#fecaca}.alert-box-error .alert-box-icon{color:#ef4444}.alert-box-error .alert-box-close{color:#991b1b}.alert-box-warning{color:#92400e;background-color:#fffbeb;border-color:#fde68a}.alert-box-warning .alert-box-icon{color:#f59e0b}.alert-box-warning .alert-box-close{color:#92400e}.alert-box-info{color:#1e40af;background-color:#eff6ff;border-color:#bfdbfe}.alert-box-info .alert-box-icon{color:#3b82f6}.alert-box-info .alert-box-close{color:#1e40af}.table-responsive-wrapper{-webkit-overflow-scrolling:touch;width:100%;display:block;overflow-x:auto}/*! tailwindcss v4.1.3 | MIT License | https://tailwindcss.com */@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:rotateX(0);--tw-rotate-y:rotateY(0);--tw-rotate-z:rotateZ(0);--tw-skew-x:skewX(0);--tw-skew-y:skewY(0);--tw-divide-y-reverse:0;--tw-border-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}}}.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.z-3{z-index:3}.z-4{z-index:4}.z-10{z-index:10}.z-20{z-index:20}.z-50{z-index:50}.z-\[100\]{z-index:100}.order-1{order:1}.order-2{order:2}.col-span-2{grid-column:span 2/span 2}.container{width:100%}.mx-auto{margin-inline:auto}.mt-auto{margin-top:auto}.ml-auto{margin-left:auto}.block{display:block}.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}.h-screen{height:100vh}.max-h-\[90vh\]{max-height:90vh}.max-h-\[400px\]{max-height:400px}.min-h-screen{min-height:100vh}.w-full{width:100%}.max-w-none{max-width:none}.min-w-full{min-width:100%}.flex-1{flex:1}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.border-collapse{border-collapse:collapse}.transform{transform:var(--tw-rotate-x)var(--tw-rotate-y)var(--tw-rotate-z)var(--tw-skew-x)var(--tw-skew-y)}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.resize{resize:both}.list-inside{list-style-position:inside}.list-disc{list-style-type:disc}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px*var(--tw-divide-y-reverse));border-bottom-width:calc(1px*calc(1 - var(--tw-divide-y-reverse)))}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.rounded-full{border-radius:3.40282e38px}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-4{border-style:var(--tw-border-style);border-width:4px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-t-2{border-top-style:var(--tw-border-style);border-top-width:2px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-l-2{border-left-style:var(--tw-border-style);border-left-width:2px}.border-l-8{border-left-style:var(--tw-border-style);border-left-width:8px}.border-transparent{border-color:#0000}.border-t-transparent{border-top-color:#0000}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.break-words{overflow-wrap:break-word}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.capitalize{text-transform:capitalize}.lowercase{text-transform:lowercase}.uppercase{text-transform:uppercase}.italic{font-style:italic}.line-through{text-decoration-line:line-through}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-80{opacity:.8}.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;transition-timing-function:var(--tw-ease,ease);transition-duration:var(--tw-duration,0s)}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,ease);transition-duration:var(--tw-duration,0s)}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,ease);transition-duration:var(--tw-duration,0s)}.duration-150{--tw-duration:.15s;transition-duration:.15s}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}@media (hover:hover){.group-hover\:opacity-100:is(:where(.group):hover *){opacity:1}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-90:hover{opacity:.9}}.focus\:ring:focus,.focus\:ring-1:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + 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-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-1:focus{--tw-ring-offset-width:1px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.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}input[type=text],input[type=password],input[type=email],input[type=number],input[type=search],input[type=tel],input[type=url],textarea{padding-top:.75rem;padding-bottom:.75rem}@layer components;@property --tw-rotate-x{syntax:"*";inherits:false;initial-value:rotateX(0)}@property --tw-rotate-y{syntax:"*";inherits:false;initial-value:rotateY(0)}@property --tw-rotate-z{syntax:"*";inherits:false;initial-value:rotateZ(0)}@property --tw-skew-x{syntax:"*";inherits:false;initial-value:skewX(0)}@property --tw-skew-y{syntax:"*";inherits:false;initial-value:skewY(0)}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-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}.auth-page-container{display:flex;align-items:center;justify-content:center;min-height:100vh;background:linear-gradient(135deg,#e0f7fa,#b2ebf2);padding:1rem}.auth-form-card{background-color:#fff;padding:2.5rem;border-radius:1rem;box-shadow:0 10px 25px #0000001a,0 5px 10px #0000000a;width:100%;max-width:450px;border:1px solid #cfd8dc}@media (max-width: 767px){.auth-form-card{padding:1.5rem}}.auth-title{text-align:center;font-size:1.75rem;font-weight:700;color:#004d40;margin-bottom:2rem}.auth-form .form-group{margin-bottom:1.5rem}.auth-form label{display:block;font-size:.875rem;font-weight:600;color:#37474f;margin-bottom:.5rem}.auth-text-input{display:block;box-sizing:border-box;width:100%;min-height:3rem;padding:.75rem 1rem;font-size:1rem;line-height:1.5rem;color:#263238;background-color:#eceff1;border:1px solid #b0bec5;border-radius:.5rem;box-shadow:inset 0 1px 2px #00000013;transition:border-color .2s ease-in-out,box-shadow .2s ease-in-out}.auth-text-input::-moz-placeholder{color:#78909c;opacity:1}.auth-text-input::placeholder{color:#78909c;opacity:1}.auth-text-input:focus{outline:none;border-color:#00796b;background-color:#fff;box-shadow:0 0 0 3px #00796b33}.auth-error-message{padding:.75rem 1rem;background-color:#ffebee;border:1px solid #e57373;border-radius:.5rem;text-align:center;margin-top:1rem;margin-bottom:1rem}.auth-error-message p{font-size:.875rem;font-weight:500;color:#c62828;margin:0}.auth-submit-button{display:flex;justify-content:center;width:100%;padding:.875rem 1rem;font-size:1rem;font-weight:600;color:#fff;background-color:#00796b;border:1px solid transparent;border-radius:.5rem;box-shadow:0 2px 4px #0000001a;cursor:pointer;transition:background-color .2s ease-in-out,box-shadow .2s ease-in-out}.auth-submit-button:hover{background-color:#00695c;box-shadow:0 4px 8px #00000026}.auth-submit-button:focus{outline:none;box-shadow:0 0 0 3px #00796b4d}.auth-submit-button:disabled{background-color:#75a79f;opacity:.7;cursor:not-allowed;box-shadow:none}.auth-navigation-link-container{text-align:center;margin-top:1.5rem;font-size:.875rem;color:#455a64}.auth-navigation-link{font-weight:600;color:#00695c;text-decoration:none;transition:color .2s ease-in-out}.auth-navigation-link:hover{color:#004d40;text-decoration:underline}.auth-attribution{text-align:center;margin-top:2rem;font-size:.75rem;color:#78909c}@media (prefers-color-scheme: dark){.auth-page-container{background:linear-gradient(135deg,#0f172a,#1e293b)}.auth-form-card{background-color:#1e293b;border-color:#334155;box-shadow:0 10px 25px #0003,0 5px 10px #0000001a}.auth-title{color:#81d4fa}.auth-form label{color:#cbd5e1}.auth-text-input{color:#e2e8f0;background-color:#334155;border-color:#475569;box-shadow:inset 0 1px 2px #0000001a}.auth-text-input::-moz-placeholder{color:#94a3b8}.auth-text-input::placeholder{color:#94a3b8}.auth-text-input:focus{border-color:#22d3ee;background-color:#1e293b;box-shadow:0 0 0 3px #22d3ee4d}.auth-error-message{background-color:#450a0a;border-color:#7f1d1d}.auth-error-message p{color:#fecaca}.auth-submit-button{background-color:#06b6d4;color:#0f172a;border-color:#06b6d4}.auth-submit-button:hover{background-color:#0891b2}.auth-submit-button:focus{box-shadow:0 0 0 3px #06b6d466}.auth-submit-button:disabled{background-color:#525f7f;opacity:.6}.auth-navigation-link-container{color:#94a3b8}.auth-navigation-link{color:#22d3ee}.auth-navigation-link:hover{color:#67e8f9}.auth-attribution{color:#94a3b8}}.admin-panel-container{background-color:#f4f7f6;padding:20px;min-height:100vh;font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif}.hidden-button{display:none!important}@media (max-width: 767px){.admin-panel-container{padding:10px}}.admin-nav-bar{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding-bottom:15px;margin-bottom:20px;border-bottom:2px solid #e0e0e0}.admin-nav-button{padding:10px 15px;border-radius:6px;font-weight:500;transition:all .3s ease;cursor:pointer;display:flex;align-items:center;gap:8px;background-color:#fff;color:#555;border:1px solid #ddd;box-shadow:0 1px 3px #0000000d}.admin-nav-button:hover{background-color:#e9ecef;color:#333;border-color:#ccc;box-shadow:0 2px 5px #0000001a}.admin-nav-button.active{background-color:#007bff;color:#fff;border-color:#007bff;box-shadow:0 2px 5px #007bff33}.admin-nav-button svg{width:18px;height:18px}.admin-actions-bar{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:25px}.admin-action-button{padding:10px 18px;border-radius:6px;font-weight:500;transition:all .3s ease;cursor:pointer;display:flex;align-items:center;gap:8px;color:#fff;border:none;box-shadow:0 2px 4px #0000001a}.admin-action-button:hover{opacity:.9;box-shadow:0 3px 6px #00000026}.admin-action-button.add-patient{background-color:#28a745}.admin-action-button.all-patients{background-color:#00a99d}.admin-action-button.newtons-ai{background-color:#6f42c1}.admin-action-button:disabled{background-color:#6c757d;opacity:.7;cursor:not-allowed}.admin-action-button .button-spinner{width:16px;height:16px;border:2px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:spin 1s linear infinite}.admin-content-section{background-color:#fff;padding:0;border-radius:8px;box-shadow:0 2px 10px #00000014;margin-bottom:20px}.admin-content-section h2{font-size:1.5rem;color:#333;margin-bottom:15px;padding:15px 15px 10px;border-bottom:1px solid #eee}.clinic-settings-section{background-color:#fff;padding:0;border-radius:8px;box-shadow:0 4px 12px #0000001a;margin-top:20px}@media (max-width: 767px){.admin-panel-container,.admin-content-section,.clinic-settings-section{padding:10px}.admin-content-section h2{padding:10px;font-size:1.3rem}}.alert-box{padding:12px 18px;border-radius:6px;font-size:.95rem;display:flex;align-items:center;gap:10px;box-shadow:0 2px 8px #00000026}.alert-box-success{background-color:#d4edda;color:#155724;border:1px solid #c3e6cb}.alert-box-error{background-color:#f8d7da;color:#721c24;border:1px solid #f5c6cb}.alert-box-icon svg{width:20px;height:20px}.alert-box-close{background:transparent;border:none;color:inherit;opacity:.7;transition:opacity .2s}.alert-box-close:hover{opacity:1}.loading-animation-container{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:20px}.breathing-ball{width:40px;height:40px;background-color:#007bff;border-radius:50%;animation:breathing 2s ease-in-out infinite}@keyframes breathing{0%,to{transform:scale(.8);opacity:.7}50%{transform:scale(1);opacity:1}}@media (prefers-color-scheme: dark){.admin-panel-container{background-color:#111827;color:#e5e7eb}.admin-nav-bar{border-bottom:2px solid #374151}.admin-nav-button{background-color:#1f2937;color:#d1d5db;border:1px solid #4b5563;box-shadow:0 1px 3px #0003}.admin-nav-button:hover{background-color:#374151;color:#f3f4f6;border-color:#6b7280}.admin-nav-button.active{background-color:#3b82f6;color:#fff;border-color:#3b82f6;box-shadow:0 2px 5px #3b82f64d}.admin-content-section{background-color:#1f2937;box-shadow:0 2px 10px #0000004d}.admin-content-section h2{color:#f3f4f6;border-bottom:1px solid #4b5563}.clinic-settings-section{background-color:#1f2937;box-shadow:0 4px 12px #0000004d}.alert-box-success{background-color:#052e16;color:#a7f3d0;border:1px solid #15803d}.alert-box-error{background-color:#450a0a;color:#fecaca;border:1px solid #b91c1c}.breathing-ball{background-color:#3b82f6}}._container_1cy0o_1{padding:20px;background-color:#f9fafb;border-radius:8px;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f;margin-top:1rem}._title_1cy0o_17{font-size:1.75rem;font-weight:600;margin-bottom:1.5rem;color:#111827}._filtersContainer_1cy0o_31{display:flex;flex-wrap:wrap;gap:1rem;margin-bottom:1.5rem;align-items:flex-end;padding:1rem;background-color:#fff;border-radius:8px;box-shadow:0 1px 3px #0000001a,0 1px 2px #0000000f}._dateInputLabel_1cy0o_55{display:block;font-size:.875rem;font-weight:500;color:#374151;margin-bottom:.25rem}._dateInput_1cy0o_55{padding:.5rem .75rem;border:1px solid #d1d5db;border-radius:.375rem;box-shadow:inset 0 1px 2px #0000000d;font-size:.875rem;color:#1f2937;background-color:#fff}._dateInput_1cy0o_55:focus{outline:2px solid transparent;outline-offset:2px;border-color:#3b82f6;box-shadow:0 0 0 .2rem #3b82f640}._fetchButton_1cy0o_105{padding:.6rem 1.2rem;background-color:#2563eb;color:#fff;border-radius:.375rem;font-weight:500;transition:background-color .2s;border:none;cursor:pointer}._fetchButton_1cy0o_105:hover{background-color:#1d4ed8}._fetchButton_1cy0o_105:disabled{opacity:.6;cursor:not-allowed}._summarySection_1cy0o_145{margin-bottom:2rem}._totalRevenue_1cy0o_153{font-size:1.25rem;font-weight:600;margin-bottom:1rem;color:#1f2937;padding:1rem;background-color:#e0f2fe;border-radius:8px;border-left:5px solid #3b82f6}._totalRevenueAmount_1cy0o_175{font-weight:700;margin-left:.5rem;color:#1e40af}._card_1cy0o_187{background-color:#fff;padding:1rem;border-radius:8px;box-shadow:0 1px 3px #0000001a,0 1px 2px #0000000f;margin-bottom:1rem}._cardTitle_1cy0o_203{font-size:1.1rem;font-weight:600;margin-bottom:.75rem;color:#374151}._cardList_1cy0o_217{list-style-type:none;padding-left:0}._cardListItem_1cy0o_227{font-size:.9rem;color:#4b5563;padding:.25rem 0;border-bottom:1px solid #e5e7eb}._cardListItem_1cy0o_227:last-child{border-bottom:none}._cardListItemAmount_1cy0o_247{font-weight:500;color:#1f2937}._revenueGrid_1cy0o_257{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1rem;margin-bottom:1.5rem}._revenueCard_1cy0o_271{padding:1.25rem;border-radius:8px;box-shadow:0 2px 4px #0000000d;color:#fff}._revenueCardTitle_1cy0o_285{font-size:1rem;font-weight:600;margin-bottom:.5rem}._revenueCardAmount_1cy0o_297{font-size:1.75rem;font-weight:700}._revenueCardSubtitle_1cy0o_307{font-size:.75rem;opacity:.9}._receptionRevenue_1cy0o_317{background:linear-gradient(135deg,#60a5fa,#3b82f6)}._pharmacyRevenue_1cy0o_323{background:linear-gradient(135deg,#a78bfa,#8b5cf6)}._labRevenue_1cy0o_329{background:linear-gradient(135deg,#5eead4,#2dd4bf)}._tableSectionTitle_1cy0o_339{font-size:1.25rem;font-weight:600;margin-top:2rem;margin-bottom:1rem;color:#111827;padding-bottom:.5rem;border-bottom:2px solid #e5e7eb}._tableContainer_1cy0o_359{overflow-x:auto;background-color:#fff;border-radius:8px;box-shadow:0 1px 3px #0000001a,0 1px 2px #0000000f}._styledTable_1cy0o_373{width:100%;border-collapse:collapse}._styledTable_1cy0o_373 th,._styledTable_1cy0o_373 td{padding:.75rem 1rem;text-align:left;font-size:.875rem;border-bottom:1px solid #e5e7eb}._styledTable_1cy0o_373 th{background-color:#f3f4f6;font-weight:600;color:#374151;text-transform:uppercase;letter-spacing:.05em}._styledTable_1cy0o_373 tbody tr:hover{background-color:#f9fafb}._styledTable_1cy0o_373 td._capitalize_1cy0o_423{text-transform:capitalize}._noDataMessage_1cy0o_431{margin-top:1rem;text-align:center;color:#6b7280;font-style:italic;padding:1rem;background-color:#fff;border-radius:8px}._errorAlert_1cy0o_451{background-color:#fee2e2;color:#b91c1c;padding:1rem;border-radius:.375rem;margin-bottom:1.5rem;display:flex;align-items:center;gap:.5rem;border:1px solid #fecaca}._errorAlert_1cy0o_451 svg{stroke:#b91c1c}._loadingContainer_1cy0o_483{display:flex;align-items:center;justify-content:center;padding:2rem;gap:.75rem;color:#4b5563;font-size:1rem}._breathingBall_1cy0o_505{width:20px;height:20px;border-radius:50%;background-color:#3b82f6;animation:_breathing_1cy0o_505 1.5s ease-in-out infinite}@keyframes _breathing_1cy0o_505{0%,to{transform:scale(.8);opacity:.7}50%{transform:scale(1.2);opacity:1}}@media (prefers-color-scheme: dark){._container_1cy0o_1{background-color:#0f172a;color:#e2e8f0;box-shadow:0 4px 6px -1px #0000004d,0 2px 4px -1px #0003}._title_1cy0o_17{color:#f1f5f9}._filtersContainer_1cy0o_31{background-color:#1e293b;box-shadow:0 1px 3px #0003,0 1px 2px #00000026}._dateInputLabel_1cy0o_55{color:#94a3b8}._dateInput_1cy0o_55{border-color:#475569;color:#e2e8f0;background-color:#0f172a}._dateInput_1cy0o_55:focus{border-color:#60a5fa;box-shadow:0 0 0 .2rem #60a5fa4d}._fetchButton_1cy0o_105{background-color:#3b82f6;color:#fff}._fetchButton_1cy0o_105:hover{background-color:#2563eb}._fetchButton_1cy0o_105:disabled{background-color:#374151;opacity:.7}._totalRevenue_1cy0o_153{color:#e2e8f0;background-color:#1e3a8a;border-left-color:#60a5fa}._totalRevenueAmount_1cy0o_175{color:#93c5fd}._card_1cy0o_187{background-color:#1e293b;box-shadow:0 1px 3px #0003,0 1px 2px #00000026}._cardTitle_1cy0o_203{color:#cbd5e1}._cardListItem_1cy0o_227{color:#94a3b8;border-bottom-color:#334155}._cardListItemAmount_1cy0o_247{color:#e2e8f0}._revenueCard_1cy0o_271{color:#fff}._receptionRevenue_1cy0o_317{background:linear-gradient(135deg,#2563eb,#1d4ed8)}._pharmacyRevenue_1cy0o_323{background:linear-gradient(135deg,#7c3aed,#6d28d9)}._labRevenue_1cy0o_329{background:linear-gradient(135deg,#0d9488,#0f766e)}._tableSectionTitle_1cy0o_339{color:#f1f5f9;border-bottom-color:#334155}._tableContainer_1cy0o_359{background-color:#1e293b;box-shadow:0 1px 3px #0003,0 1px 2px #00000026}._styledTable_1cy0o_373 th,._styledTable_1cy0o_373 td{border-bottom-color:#334155}._styledTable_1cy0o_373 th{background-color:#0f172a;color:#cbd5e1}._styledTable_1cy0o_373 tbody tr:hover{background-color:#334155}._styledTable_1cy0o_373 td{color:#94a3b8}._noDataMessage_1cy0o_431{color:#94a3b8;background-color:#1e293b}._errorAlert_1cy0o_451{background-color:#7f1d1d;color:#fca5a5;border-color:#b91c1c}._errorAlert_1cy0o_451 svg{stroke:#fca5a5}._loadingContainer_1cy0o_483{color:#94a3b8}._breathingBall_1cy0o_505{background-color:#60a5fa}}.lab-inventory-container{padding:12px;font-family:Inter,sans-serif;background-color:#f8f9fa;border-radius:8px;display:flex;flex-direction:column;height:100%}@media (min-width: 640px){.lab-inventory-container{padding:16px}}.lab-inventory-header{color:#343a40;margin-bottom:12px;padding-bottom:10px;border-bottom:1px solid #dee2e6;font-size:1.4em;font-weight:600}@media (min-width: 768px){.lab-inventory-header{margin-bottom:16px;padding-bottom:12px;font-size:1.6em}}.lab-orders-view{background-color:#fff;border:1px solid #e0e0e0;border-radius:8px;padding:12px;margin-bottom:16px;box-shadow:0 1px 3px #0000000d}@media (min-width: 768px){.lab-orders-view{padding:16px;margin-bottom:20px}}.lab-orders-header-controls{display:flex;flex-direction:column;gap:10px;margin-bottom:16px}@media (min-width: 768px){.lab-orders-header-controls{gap:12px;margin-bottom:20px}}.lab-orders-title{font-size:1.3em;font-weight:600;color:#343a40;margin:0}@media (min-width: 768px){.lab-orders-title{font-size:1.5em}}.lab-orders-search-container{position:relative;width:100%}.lab-orders-search-input{padding-left:36px!important;width:100%;margin-bottom:0!important}.lab-orders-search-icon{position:absolute;left:10px;top:50%;transform:translateY(-50%);color:#6c757d}@media (min-width: 768px){.lab-orders-header-controls{flex-direction:row;justify-content:space-between;align-items:center}.lab-orders-search-container{width:300px}}.lab-inventory-table{width:100%;border-collapse:collapse;margin-top:10px;font-size:.85rem}@media (min-width: 768px){.lab-inventory-table{margin-top:15px;font-size:.9rem}}.lab-inventory-table th,.lab-inventory-table td{border:1px solid #dee2e6;padding:8px 10px;text-align:left;vertical-align:middle;white-space:nowrap}@media (min-width: 768px){.lab-inventory-table th,.lab-inventory-table td{padding:10px 12px}}.lab-inventory-table th{background-color:#f8f9fa;color:#495057;font-weight:600;font-size:.75rem;text-transform:uppercase;letter-spacing:.05em}@media (min-width: 768px){.lab-inventory-table th{font-size:.8rem}}.lab-table-actions-header{text-align:left}.lab-inventory-table tr:nth-child(2n){background-color:#f8f9fa}.lab-inventory-table tr:hover{background-color:#e9ecef}.lab-table-patient-token{font-size:.8em;color:#6c757d}@media (min-width: 768px){.lab-table-patient-token{font-size:.85em}}.lab-action-button{display:inline-flex;align-items:center;padding:5px 8px;border:1px solid transparent;font-size:.8rem;font-weight:500;border-radius:6px;background-color:transparent;transition:all .2s ease-in-out;cursor:pointer;margin:2px;color:#000}@media (min-width: 768px){.lab-action-button{padding:6px 10px;font-size:.85rem}}.lab-action-button:hover:not(:disabled){background-color:#0056b3;border-color:#0056b3;color:#fff}.lab-action-button:disabled{opacity:.6;cursor:not-allowed}.lab-table-actions{display:flex;flex-wrap:wrap;gap:4px;justify-content:flex-start}@media (min-width: 768px){.lab-table-actions{gap:6px}}.btn-bill{color:#000!important;border-color:#007bff40}.btn-bill:hover:not(:disabled){background-color:#007bff;color:#fff}.btn-collect{color:#000!important;border-color:#ffc10740}.btn-collect:hover:not(:disabled){background-color:#ffc107;color:#212529}.btn-process{color:#000!important;border-color:#17a2b840}.btn-process:hover:not(:disabled){background-color:#17a2b8;color:#fff}.btn-enter-report{color:#000!important;border-color:#6f42c140}.btn-enter-report:hover:not(:disabled){background-color:#6f42c1;color:#fff}.btn-complete{color:#000!important;border-color:#28a74540}.btn-complete:hover:not(:disabled){background-color:#28a745;color:#fff}.btn-view-report{color:#000!important;border-color:#6c757d40}.btn-view-report:hover:not(:disabled){background-color:#6c757d;color:#fff}.lab-orders-table-container{display:none}.lab-orders-card-container{display:grid;grid-template-columns:1fr;gap:12px}@media (min-width: 768px){.lab-orders-table-container{display:block;overflow-x:auto}.lab-orders-card-container{display:none;gap:16px}.lab-inventory-table th.hidden.md\:table-cell,.lab-inventory-table td.hidden.md\:table-cell{display:table-cell}}.lab-order-card{background-color:#fff;border-radius:8px;padding:12px;box-shadow:0 2px 4px #00000012;border:1px solid #e9ecef;color:#343a40}@media (min-width: 768px){.lab-order-card{padding:16px}}.lab-card-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:10px;padding-bottom:8px;border-bottom:1px solid #f1f3f5}@media (min-width: 768px){.lab-card-header{margin-bottom:12px;padding-bottom:10px}}.lab-card-patient-name{font-size:1rem;font-weight:600;color:#212529}@media (min-width: 768px){.lab-card-patient-name{font-size:1.1rem}}.lab-card-patient-token,.lab-card-date{font-size:.8rem;color:#6c757d;margin-top:2px}@media (min-width: 768px){.lab-card-patient-token,.lab-card-date{font-size:.85rem}}.lab-card-status-pill{margin-left:8px;flex-shrink:0}.lab-card-section{margin-bottom:10px}@media (min-width: 768px){.lab-card-section{margin-bottom:12px}}.lab-card-section-title{font-weight:500;font-size:.85rem;margin-bottom:4px;color:#495057}@media (min-width: 768px){.lab-card-section-title{font-size:.9rem;margin-bottom:6px}}.lab-card-test-item{font-size:.85rem;color:#343a40;padding:2px 0}@media (min-width: 768px){.lab-card-test-item{font-size:.9rem}}.lab-card-no-tests{font-size:.8rem;font-style:italic;color:#6c757d}@media (min-width: 768px){.lab-card-no-tests{font-size:.85rem}}.lab-card-actions{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-start;padding-top:10px;border-top:1px solid #e9ecef;margin-top:10px}@media (min-width: 768px){.lab-card-actions{gap:8px;padding-top:12px;margin-top:12px}}.lab-inventory-button{background-color:#007bff;color:#fff;padding:8px 12px;border:none;border-radius:6px;cursor:pointer;font-size:.9em;transition:background-color .2s ease;display:inline-flex;align-items:center;justify-content:center}@media (min-width: 768px){.lab-inventory-button{padding:10px 15px;font-size:.95em}}.lab-inventory-button:hover{background-color:#0056b3}.lab-inventory-button-secondary{background-color:#6c757d}.lab-inventory-button-secondary:hover{background-color:#545b62}.lab-inventory-button svg{margin-right:6px}.lab-inventory-input,.lab-inventory-select{width:100%;padding:8px 10px;margin-bottom:12px;border:1px solid #ced4da;border-radius:6px;box-sizing:border-box;font-size:.9rem;background-color:#fff;color:#495057}@media (min-width: 768px){.lab-inventory-input,.lab-inventory-select{padding:10px 12px;margin-bottom:15px;font-size:.95rem}}.lab-inventory-input:focus,.lab-inventory-select:focus{border-color:#007bff;box-shadow:0 0 0 .2rem #007bff40;outline:none}.lab-inventory-form-group{margin-bottom:12px}@media (min-width: 768px){.lab-inventory-form-group{margin-bottom:15px}}.lab-inventory-form-group label{display:block;margin-bottom:5px;font-weight:500;color:#495057;font-size:.85rem}@media (min-width: 768px){.lab-inventory-form-group label{margin-bottom:6px;font-size:.9rem}}.lab-inventory-card{background-color:#fff;border:1px solid #e0e0e0;border-radius:8px;padding:16px;margin-bottom:16px;box-shadow:0 1px 3px #0000000d}@media (min-width: 768px){.lab-inventory-card{padding:20px;margin-bottom:20px}}.lab-inventory-content-wrapper .lab-inventory-card{margin-bottom:0}.status-badge{padding:3px 8px;border-radius:12px;font-size:.75em;font-weight:600;text-align:center;display:inline-block;min-width:80px;line-height:1.4;white-space:nowrap}@media (min-width: 768px){.status-badge{padding:4px 10px;font-size:.8em;min-width:90px;line-height:1.5}}.status-pending{background-color:#fff3cd;color:#856404;border:1px solid #ffeeba}.status-billed{background-color:#f8d7da;color:#721c24;border:1px solid #f5c6cb}.status-collected{background-color:#ffe8cc;color:#995f00;border:1px solid #ffdcb3}.status-processing{background-color:#cce5ff;color:#004085;border:1px solid #b8daff}.status-report_ready{background-color:#d1ecf1;color:#0c5460;border:1px solid #bee5eb}.status-completed{background-color:#d4edda;color:#155724;border:1px solid #c3e6cb}.status-cancelled{background-color:#e9ecef;color:#383d41;border:1px solid #ced4da;text-decoration:line-through}.lab-pagination-controls{display:flex;flex-direction:column;align-items:center;justify-content:space-between;margin-top:20px;padding:10px 0;font-size:.85em;color:#495057;gap:8px}@media (min-width: 768px){.lab-pagination-controls{margin-top:24px;padding:12px 0;font-size:.9em;gap:10px}}.lab-pagination-info{text-align:center;margin-bottom:8px}@media (min-width: 768px){.lab-pagination-info{margin-bottom:10px}}.lab-pagination-info strong{font-weight:600;color:#212529}.lab-pagination-buttons{display:flex;align-items:center;gap:6px}@media (min-width: 768px){.lab-pagination-buttons{gap:8px}}.lab-pagination-button{padding:5px 8px;border-radius:6px;border:1px solid #ced4da;background-color:#fff;color:#495057;transition:background-color .15s ease-in-out;display:inline-flex;align-items:center;justify-content:center}@media (min-width: 768px){.lab-pagination-button{padding:6px 10px}}.lab-pagination-button:hover:not(:disabled){background-color:#f1f3f5}.lab-pagination-button:disabled{opacity:.6;cursor:not-allowed}.lab-pagination-buttons span{padding:0 6px;font-weight:500}@media (min-width: 768px){.lab-pagination-buttons span{padding:0 8px}}@media (min-width: 640px){.lab-pagination-controls{flex-direction:row;padding:12px 16px;border-top:1px solid #dee2e6}.lab-pagination-info{text-align:left;margin-bottom:0}}.error-text{color:#721c24;background-color:#f8d7da;border:1px solid #f5c6cb;padding:10px;border-radius:6px;margin-bottom:12px;font-size:.85rem}@media (min-width: 768px){.error-text{padding:12px;margin-bottom:15px;font-size:.9rem}}.loading-text{color:#004085;padding:12px;text-align:center;font-size:.9rem}@media (min-width: 768px){.loading-text{padding:15px;font-size:1rem}}.no-data-message{color:#6c757d;padding:16px;text-align:center;background-color:#f8f9fa;border:1px dashed #dee2e6;border-radius:6px;font-size:.9rem}@media (min-width: 768px){.no-data-message{padding:20px;font-size:1rem}}@media (prefers-color-scheme: dark){.lab-inventory-container{background-color:#111827}.lab-inventory-header{color:#e5e7eb;border-bottom-color:#374151}.lab-orders-view{background-color:#1f2937;border-color:#374151}.lab-orders-title{color:#e5e7eb}.lab-orders-search-input{background-color:#374151;border-color:#6b7280;color:#e5e7eb}.lab-orders-search-input::-moz-placeholder{color:#9ca3af}.lab-orders-search-input::placeholder{color:#9ca3af}.lab-orders-search-input:focus{border-color:#5eead4;box-shadow:0 0 0 2px #5eead466}.lab-orders-search-icon{color:#9ca3af}.lab-inventory-table th{background-color:#374151;color:#d1d5db;border-color:#4b5563}.lab-inventory-table td{border-color:#4b5563;color:#d1d5db}.lab-inventory-table tr:nth-child(2n){background-color:#2c3a4b}.lab-inventory-table tr:hover{background-color:#4b5563}.lab-table-patient-token{color:#9ca3af}.lab-action-button{background-color:#374151;border-color:#6b7280;color:#d1d5db}.lab-action-button:hover:not(:disabled){background-color:#4b5563;border-color:#9ca3af}.btn-bill{color:#93c5fd;border-color:#60a5fa80}.btn-bill:hover:not(:disabled){background-color:#60a5fa;color:#1e293b}.btn-collect{color:#fde047;border-color:#facc1580}.btn-collect:hover:not(:disabled){background-color:#facc15;color:#713f12}.btn-process{color:#5eead4;border-color:#2dd4bf80}.btn-process:hover:not(:disabled){background-color:#2dd4bf;color:#0f766e}.btn-enter-report{color:#d8b4fe;border-color:#c084fc80}.btn-enter-report:hover:not(:disabled){background-color:#c084fc;color:#581c87}.btn-complete{color:#a7f3d0;border-color:#6ee7b780}.btn-complete:hover:not(:disabled){background-color:#6ee7b7;color:#065f46}.btn-view-report{color:#cbd5e1;border-color:#9ca3af80}.btn-view-report:hover:not(:disabled){background-color:#9ca3af;color:#1f2937}.lab-order-card{background-color:#1f2937;border-color:#374151;color:#d1d5db}.lab-card-header{border-bottom-color:#374151}.lab-card-patient-name{color:#e5e7eb}.lab-card-patient-token,.lab-card-date{color:#9ca3af}.lab-card-section-title{color:#d1d5db}.lab-card-test-item{color:#e5e7eb}.lab-card-no-tests{color:#9ca3af}.lab-card-actions{border-top-color:#374151}.lab-inventory-button{background-color:#3b82f6}.lab-inventory-button:hover{background-color:#2563eb}.lab-inventory-button-secondary{background-color:#6b7280}.lab-inventory-button-secondary:hover{background-color:#4b5563}.lab-inventory-input,.lab-inventory-select{background-color:#374151;border-color:#6b7280;color:#e5e7eb}.lab-inventory-select option{background-color:#374151;color:#e5e7eb}.lab-inventory-input:focus,.lab-inventory-select:focus{border-color:#60a5fa;box-shadow:0 0 0 .2rem #60a5fa4d}.lab-inventory-form-group label{color:#d1d5db}.lab-inventory-card{background-color:#1f2937;border-color:#374151}.status-pending{background-color:#713f12;color:#fef08a;border-color:#facc15}.status-billed{background-color:#7f1d1d;color:#fecaca;border-color:#f87171}.status-collected{background-color:#7c2d12;color:#fed7aa;border-color:#fb923c}.status-processing{background-color:#1e40af;color:#bfdbfe;border-color:#93c5fd}.status-report_ready{background-color:#0e7490;color:#a5f3fc;border-color:#67e8f9}.status-completed{background-color:#065f46;color:#a7f3d0;border-color:#6ee7b7}.status-cancelled{background-color:#4b5563;color:#d1d5db;border-color:#6b7280}.lab-pagination-controls{color:#d1d5db;border-top-color:#374151}.lab-pagination-info strong{color:#e5e7eb}.lab-pagination-button{background-color:#374151;border-color:#6b7280;color:#d1d5db}.lab-pagination-button:hover:not(:disabled){background-color:#4b5563}.lab-pagination-buttons span{color:#e5e7eb}.error-text{color:#fca5a5;background-color:#7f1d1d;border-color:#b91c1c}.loading-text{color:#93c5fd}.no-data-message{color:#9ca3af;background-color:#1f2937;border-color:#374151}}@media (max-width: 767.98px){.hidden.md\:table-cell{display:none!important}}@media (max-width: 480px){.lab-inventory-container{padding:8px}.lab-inventory-header{font-size:1.2em;margin-bottom:10px;padding-bottom:8px}.lab-orders-view{padding:8px;margin-bottom:12px}.lab-orders-header-controls{gap:8px;margin-bottom:12px}.lab-orders-title{font-size:1.1em}.lab-orders-search-input{padding:6px 8px 6px 30px!important;font-size:.8rem!important}.lab-orders-search-icon{left:8px;width:14px;height:14px}.lab-inventory-table{font-size:.8rem}.lab-inventory-table th,.lab-inventory-table td{padding:6px 8px}.lab-inventory-table th{font-size:.7rem}.lab-table-patient-token{font-size:.75em}.lab-action-button{padding:4px 6px;font-size:.75rem;margin:1px}.lab-table-actions{gap:3px}.lab-order-card{padding:10px}.lab-card-header{margin-bottom:8px;padding-bottom:6px}.lab-card-patient-name{font-size:.9rem}.lab-card-patient-token,.lab-card-date{font-size:.75rem}.lab-card-section{margin-bottom:8px}.lab-card-section-title{font-size:.8rem;margin-bottom:3px}.lab-card-test-item{font-size:.8rem;padding:1px 0}.lab-card-no-tests{font-size:.75rem}.lab-card-actions{gap:4px;padding-top:8px;margin-top:8px}.lab-inventory-button{padding:6px 10px;font-size:.85em}.lab-inventory-button svg{margin-right:4px;height:14px;width:14px}.lab-inventory-input,.lab-inventory-select{padding:6px 8px;margin-bottom:10px;font-size:.85rem}.lab-inventory-form-group label{font-size:.8rem}.status-badge{padding:2px 6px;font-size:.7em;min-width:70px;line-height:1.3}.lab-pagination-controls{margin-top:16px;padding:8px 0;font-size:.8em;gap:6px}.lab-pagination-info{margin-bottom:6px}.lab-pagination-buttons{gap:4px}.lab-pagination-button{padding:4px 6px}.lab-pagination-button svg{height:14px;width:14px}.lab-pagination-buttons span{padding:0 4px}.error-text{padding:8px;font-size:.8rem}.loading-text{padding:10px;font-size:.85rem}.no-data-message{padding:12px;font-size:.85rem}}._container_1ihgb_1{padding:20px;background-color:#f9fafb;border-radius:8px;box-shadow:0 4px 6px #0000001a;margin-top:20px}._title_1ihgb_17{font-size:1.5rem;font-weight:600;color:#111827;margin-bottom:1rem}._dateRangeContainer_1ihgb_31{display:flex;flex-wrap:wrap;gap:1rem;margin-bottom:1.5rem;align-items:flex-end;padding-bottom:1.5rem;border-bottom:1px solid #e5e7eb}._dateInputLabel_1ihgb_51{display:block;font-size:.875rem;font-weight:500;color:#374151;margin-bottom:.25rem}._dateInput_1ihgb_51{padding:.5rem .75rem;border:1px solid #d1d5db;border-radius:.375rem;font-size:.875rem;color:#1f2937;background-color:#fff;box-shadow:inset 0 1px 2px #0000000d}._fetchButton_1ihgb_87{padding:.625rem 1rem;background-color:#2563eb;color:#fff;border-radius:.375rem;font-weight:500;transition:background-color .2s}._fetchButton_1ihgb_87:hover{background-color:#1d4ed8}._fetchButton_1ihgb_87:disabled{opacity:.6;cursor:not-allowed}._sectionTitle_1ihgb_123{font-size:1.25rem;font-weight:600;margin-bottom:.75rem;color:#1e3a8a}._tableContainer_1ihgb_137{overflow-x:auto;background-color:#fff;border-radius:8px;box-shadow:0 2px 4px #0000000d;margin-bottom:1.5rem}._analysisTable_1ihgb_153{width:100%;border-collapse:collapse;font-size:.875rem}._analysisTable_1ihgb_153 th,._analysisTable_1ihgb_153 td{padding:.75rem 1rem;text-align:left;border-bottom:1px solid #e5e7eb;vertical-align:middle}._analysisTable_1ihgb_153 th{background-color:#f3f4f6;font-weight:600;color:#374151;text-transform:uppercase;letter-spacing:.05em}._analysisTable_1ihgb_153 tbody tr:hover{background-color:#f9fafb}._analysisTable_1ihgb_153 tfoot td{font-weight:700;background-color:#f3f4f6;color:#1f2937}._textRight_1ihgb_217{text-align:right}._textGreen_1ihgb_225{color:#059669}._textRed_1ihgb_233{color:#dc2626}._textBlue_1ihgb_241{color:#2563eb}._textOrange_1ihgb_249{color:#f97316}._fontMedium_1ihgb_257{font-weight:500}._alertBox_1ihgb_265{padding:1rem;border-radius:.375rem;margin-bottom:1rem;display:flex;align-items:center;gap:.75rem}._alertBoxError_1ihgb_283{background-color:#fee2e2;border:1px solid #fecaca;color:#b91c1c}._alertBoxIcon_1ihgb_295{flex-shrink:0}._loadingContainer_1ihgb_303{display:flex;align-items:center;justify-content:center;padding:2rem;color:#4b5563;font-size:1rem}._viewSwitcher_1ihgb_321{margin-bottom:1.5rem;display:flex;flex-wrap:wrap;gap:.5rem;border-bottom:1px solid #d1d5db;padding-bottom:.75rem}._viewButton_1ihgb_339{display:flex;align-items:center;padding:.5rem 1rem;border-radius:.375rem .375rem 0 0;font-size:.875rem;font-weight:500;transition:background-color .2s,color .2s,box-shadow .2s;border:1px solid transparent;border-bottom:none;cursor:pointer}._viewButtonActive_1ihgb_365{background-color:#fff;color:#1d4ed8;border-color:#d1d5db #d1d5db #ffffff;box-shadow:0 -2px 4px #00000008;position:relative;bottom:-1px}._viewButtonInactive_1ihgb_383{background-color:#f3f4f6;color:#4b5563;border-color:transparent}._viewButtonInactive_1ihgb_383:hover{background-color:#e5e7eb;color:#1f2937}._viewButton_1ihgb_339 svg{margin-right:.5rem}._totalsSummaryContainer_1ihgb_413{padding-top:1.5rem;border-top:1px solid #e5e7eb}._totalsGrid_1ihgb_423{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem;padding:1.5rem;background-color:#f9fafb;border-radius:8px;box-shadow:inset 0 2px 4px #0000000a}._totalCard_1ihgb_443{text-align:center;padding:1rem;background-color:#fff;border-radius:6px;box-shadow:0 1px 3px #00000012}._totalLabel_1ihgb_459{font-size:.875rem;color:#6b7280;margin-bottom:.25rem}._totalValue_1ihgb_471{font-size:1.5rem;font-weight:700}._totalValueGreen_1ihgb_481{color:#047857}._totalValueBlue_1ihgb_489{color:#1e40af}._reasonDistribution_1ihgb_497{font-size:.8rem}._reasonDistribution_1ihgb_497 div{display:flex;justify-content:space-between;padding:.1rem 0}._reasonDistribution_1ihgb_497 ._totalRow_1ihgb_513{font-weight:700;border-top:1px solid #e0e0e0;margin-top:.25rem;padding-top:.25rem}._reasonDistribution_1ihgb_497 ._totalRow_1ihgb_513 span:first-child{color:#333}@media (prefers-color-scheme: dark){._container_1ihgb_1{background-color:#0f172a;color:#e2e8f0;box-shadow:0 4px 6px #0000004d}._title_1ihgb_17{color:#f1f5f9}._dateRangeContainer_1ihgb_31{border-bottom-color:#334155}._dateInputLabel_1ihgb_51{color:#94a3b8}._dateInput_1ihgb_51{border-color:#475569;color:#e2e8f0;background-color:#0f172a}._dateInput_1ihgb_51:focus{border-color:#60a5fa;box-shadow:0 0 0 .2rem #60a5fa4d}._fetchButton_1ihgb_87{background-color:#3b82f6;color:#fff}._fetchButton_1ihgb_87:hover{background-color:#2563eb}._fetchButton_1ihgb_87:disabled{background-color:#374151;opacity:.7}._sectionTitle_1ihgb_123{color:#93c5fd}._tableContainer_1ihgb_137{background-color:#1e293b;box-shadow:0 2px 4px #00000026}._analysisTable_1ihgb_153 th,._analysisTable_1ihgb_153 td{border-bottom-color:#334155}._analysisTable_1ihgb_153 th{background-color:#0f172a;color:#cbd5e1}._analysisTable_1ihgb_153 tbody tr:hover{background-color:#334155}._analysisTable_1ihgb_153 td{color:#94a3b8}._analysisTable_1ihgb_153 tfoot td{background-color:#0f172a;color:#e2e8f0}._textGreen_1ihgb_225{color:#34d399}._textRed_1ihgb_233{color:#f87171}._textBlue_1ihgb_241{color:#60a5fa}._textOrange_1ihgb_249{color:#fb923c}._alertBoxError_1ihgb_283{background-color:#7f1d1d;border-color:#b91c1c;color:#fca5a5}._alertBoxError_1ihgb_283 ._alertBoxIcon_1ihgb_295 svg{stroke:#fca5a5}._loadingContainer_1ihgb_303{color:#94a3b8}._viewSwitcher_1ihgb_321{border-bottom-color:#475569}._viewButtonActive_1ihgb_365{background-color:#1e293b;color:#60a5fa;border-color:#475569 #475569 #1e293b;box-shadow:0 -2px 4px #0000001a}._viewButtonInactive_1ihgb_383{background-color:#0f172a;color:#94a3b8}._viewButtonInactive_1ihgb_383:hover{background-color:#334155;color:#e2e8f0}._viewButton_1ihgb_339 svg{fill:currentColor}._totalsSummaryContainer_1ihgb_413{border-top-color:#334155}._totalsGrid_1ihgb_423{background-color:#0f172a;box-shadow:inset 0 2px 4px #0000001a}._totalCard_1ihgb_443{background-color:#1e293b;box-shadow:0 1px 3px #00000026}._totalLabel_1ihgb_459{color:#94a3b8}._totalValueGreen_1ihgb_481{color:#34d399}._totalValueBlue_1ihgb_489{color:#60a5fa}._reasonDistribution_1ihgb_497 ._totalRow_1ihgb_513{border-top-color:#475569}._reasonDistribution_1ihgb_497 ._totalRow_1ihgb_513 span:first-child{color:#e2e8f0}}.patient-search-page-container{width:100%;min-height:100vh;box-sizing:border-box;background-color:#f9fafb;padding-bottom:8rem}.patient-search-header{display:flex;justify-content:space-between;align-items:center;padding:1rem 1.5rem;background-color:#fff;border-bottom:1px solid #e5e7eb;box-shadow:0 2px 4px #0000000d;flex-shrink:0}.patient-search-page-title{font-size:1.5rem;font-weight:600;color:#6d28d9}.patient-search-content-box{padding:1.5rem}.patient-search-button{font-weight:700;padding:.6rem 1.2rem;border-radius:.375rem;transition:background-color .2s ease-in-out,transform .1s ease-in-out,box-shadow .2s ease-in-out;color:#fff;border:none;cursor:pointer;box-shadow:0 2px 4px #0000001a}.patient-search-button:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 4px 8px #00000026}.patient-search-button:active{transform:translateY(0);box-shadow:0 1px 2px #0000001a}.patient-search-button:disabled{opacity:.5;cursor:not-allowed}.patient-search-button-primary{background-color:#3b82f6}.patient-search-button-primary:hover:not(:disabled){background-color:#2563eb}.sticky-chat-input-box{position:fixed;bottom:0;left:0;right:0;z-index:1000;display:flex;flex-direction:column;gap:.5rem;padding:1rem;background-color:#fff;border-top:1px solid #e5e7eb;box-shadow:0 -4px 10px #0000000d;max-height:80vh}.chat-input-controls{display:flex;width:100%;gap:.75rem}.chat-input{flex-grow:1;padding:.75rem 1rem;border:1px solid #d1d5db;border-radius:.375rem;font-size:1rem;color:#374151;transition:border-color .2s ease-in-out,box-shadow .2s ease-in-out;resize:none;overflow-y:hidden;min-height:2.75rem;line-height:1.5}.chat-input:focus{border-color:#6d28d9;box-shadow:0 0 0 3px #6d28d933;outline:none}.chat-submit-button{display:flex;justify-content:center;align-items:center;width:2.75rem;height:2.75rem;padding:0;border-radius:9999px;transition:background-color .2s ease-in-out;color:#fff;border:none;cursor:pointer;background-color:#8b5cf6;flex-shrink:0}.spinner{border:4px solid transparent;border-radius:50%;border-top-color:#fff;width:1.5rem;height:1.5rem;animation:spin 1s ease-in-out infinite;box-sizing:border-box}@keyframes spin{to{transform:rotate(360deg)}}.chat-submit-button:hover:not(:disabled){background-color:#7c3aed}.chat-submit-button:disabled{opacity:.5;cursor:not-allowed}.chat-submit-button.listening{background-color:#ef4444;animation:pulse 1.5s infinite}@keyframes pulse{0%{box-shadow:0 0 #ef4444b3}70%{box-shadow:0 0 0 10px #ef444400}to{box-shadow:0 0 #ef444400}}.status-indicators{display:flex;gap:1rem;justify-content:center;width:100%;padding-bottom:.5rem}.patient-search-input-status{font-size:.875rem;color:#374151;background-color:#e5e7eb;padding:.25rem .75rem;border-radius:9999px;box-shadow:0 1px 2px #0000001a}.patient-search-results-list{width:100%;overflow-y:auto;border:1px solid #e5e7eb;border-radius:.5rem;background-color:#fff;box-shadow:0 -2px 5px #0000000d}.patient-search-result-item{padding:.75rem 1rem;cursor:pointer;border-bottom:1px solid #f3f4f6;transition:background-color .15s ease-in-out;display:flex;justify-content:space-between;align-items:center}.patient-search-result-item:last-child{border-bottom:none}.patient-search-result-item:hover{background-color:#eff6ff}.patient-search-result-item-name-container{display:flex;flex-direction:column}.patient-search-result-item-name{font-weight:500;color:#1f2937}.patient-search-result-item-token{color:#3b82f6;font-size:.875rem}.patient-search-result-item-details{font-size:.875rem;color:#4b5563;text-align:right}.patient-search-error{color:#ef4444;font-size:.875rem;margin-bottom:1rem;padding:.75rem;background-color:#fee2e2;border:1px solid #fca5a5;border-radius:.375rem}.patient-search-no-results{width:100%;color:#6b7280;padding:1rem;text-align:center;background-color:#f9fafb;border-radius:.375rem;border:1px dashed #e5e7eb}@media (prefers-color-scheme: dark){.patient-search-page-container,.patient-search-content-box{background-color:#1a202c}.patient-search-header{background-color:#2d3748;border-bottom-color:#4a5568}.patient-search-page-title{color:#c084fc}.sticky-chat-input-box{background-color:#2d3748;border-top-color:#4a5568}.chat-input{background-color:#4a5568;color:#e2e8f0;border-color:#718096}.chat-input::-moz-placeholder{color:#a0aec0}.chat-input::placeholder{color:#a0aec0}.chat-input:focus{border-color:#c084fc;box-shadow:0 0 0 3px #c084fc4d}.patient-search-input-status{color:#1a202c;background-color:#a0aec0}.patient-search-results-list{background-color:#2d3748;border-color:#4a5568}.patient-search-result-item{border-bottom-color:#4a5568}.patient-search-result-item:hover{background-color:#4a5568}.patient-search-result-item-name{color:#e2e8f0}.patient-search-result-item-token{color:#c084fc}.patient-search-result-item-details{color:#a0aec0}.patient-search-error{background-color:#452020;color:#feb2b2;border-color:#c53030}.patient-search-no-results{background-color:#2d3748;color:#a0aec0;border-color:#4a5568}}@media (max-width: 768px){.patient-search-header{flex-direction:column;gap:.75rem;padding:1rem}.sticky-chat-input-box{padding:.75rem;gap:.5rem}.chat-submit-button{padding:.75rem 1rem}}@media (max-width: 480px){.chat-input-controls{position:relative;width:100%}.chat-input{width:100%;padding-right:3.5rem}.chat-submit-button{position:absolute;top:50%;right:.5rem;transform:translateY(-50%);width:2.5rem;height:2.5rem}.chat-submit-button svg{width:1.8rem;height:1.8rem}.status-indicators{justify-content:center;padding-left:0}}.clinic-settings-container{background-color:#f9fafb;padding:2rem;border-radius:.75rem;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f;border:1px solid #e5e7eb;max-width:800px;margin:2rem auto}.clinic-settings-header{font-size:1.5rem;font-weight:600;color:#1f2937;margin-bottom:1.5rem;display:flex;align-items:center;border-bottom:1px solid #e5e7eb;padding-bottom:1rem}.clinic-settings-header svg{margin-right:.75rem;color:#10b981}.clinic-settings-form{display:grid;gap:1.75rem}.clinic-settings-form-group{display:flex;flex-direction:column}.clinic-settings-label{font-size:.875rem;font-weight:500;color:#374151;margin-bottom:.5rem;display:flex;align-items:center}.clinic-settings-label svg{margin-right:.375rem;color:#6b7280}.clinic-settings-input,.clinic-settings-textarea{padding:.75rem 1rem;border:1px solid #d1d5db;border-radius:.375rem;font-size:.875rem;color:#1f2937;background-color:#fff;transition:border-color .2s ease-in-out,box-shadow .2s ease-in-out}.clinic-settings-input:focus,.clinic-settings-textarea:focus{border-color:#10b981;box-shadow:0 0 0 3px #10b98133;outline:none}.clinic-settings-input::-moz-placeholder,.clinic-settings-textarea::-moz-placeholder{color:#9ca3af}.clinic-settings-input::placeholder,.clinic-settings-textarea::placeholder{color:#9ca3af}.clinic-settings-textarea{min-height:120px;resize:vertical}.clinic-settings-help-text{font-size:.75rem;color:#6b7280;margin-top:.375rem}.clinic-settings-button-container{display:flex;justify-content:flex-end;margin-top:1rem}.clinic-settings-button{display:inline-flex;align-items:center;padding:.625rem 1.25rem;background-color:#10b981;color:#fff;font-size:.875rem;font-weight:500;border-radius:.375rem;border:none;cursor:pointer;transition:background-color .2s ease-in-out}.clinic-settings-button:hover{background-color:#059669}.clinic-settings-button:disabled{background-color:#9ca3af;cursor:not-allowed}.clinic-settings-button svg{margin-right:.5rem}.clinic-settings-alert{padding:.75rem 1rem;margin-bottom:1.5rem;border-radius:.375rem;font-size:.875rem}.clinic-settings-alert-error{background-color:#fef2f2;border:1px solid #fecaca;color:#b91c1c}.clinic-settings-alert-success{background-color:#ecfdf5;border:1px solid #a7f3d0;color:#065f46}.loading-animation-container{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:2rem}.breathing-ball{width:30px;height:30px;background-color:#10b981;border-radius:50%;animation:breath 1.5s ease-in-out infinite;margin-bottom:1rem}@keyframes breath{0%,to{transform:scale(.8);opacity:.7}50%{transform:scale(1);opacity:1}}.loading-text{font-size:1rem;color:#4b5563;font-weight:500}@media (max-width: 768px){.clinic-settings-container{padding:1.5rem;margin:1.5rem auto}.clinic-settings-header{font-size:1.3rem;padding-bottom:.75rem;margin-bottom:1.25rem}.clinic-settings-form{gap:1.25rem}.clinic-settings-input,.clinic-settings-textarea{padding:.625rem .875rem;font-size:.8125rem}.clinic-settings-label{font-size:.8125rem}.clinic-settings-button{padding:.5rem 1rem;font-size:.8125rem}.clinic-settings-alert{padding:.625rem .875rem;font-size:.8125rem}}@media (max-width: 480px){.clinic-settings-container{padding:1rem;margin:1rem auto}.clinic-settings-header{font-size:1.15rem}.clinic-settings-form{gap:1rem}.clinic-settings-button-container{justify-content:center}.clinic-settings-button{width:100%}}@media (prefers-color-scheme: dark){.clinic-settings-container{background-color:#1f2937;border-color:#374151;box-shadow:0 4px 6px -1px #0000004d,0 2px 4px -1px #00000040}.clinic-settings-header{color:#e5e7eb;border-bottom-color:#4b5563}.clinic-settings-header svg{color:#5eead4}.clinic-settings-label{color:#d1d5db}.clinic-settings-label svg{color:#9ca3af}.clinic-settings-input,.clinic-settings-textarea{background-color:#374151;border-color:#6b7280;color:#e5e7eb}.clinic-settings-input:focus,.clinic-settings-textarea:focus{border-color:#5eead4;box-shadow:0 0 0 3px #5eead44d}.clinic-settings-input::-moz-placeholder,.clinic-settings-textarea::-moz-placeholder{color:#9ca3af}.clinic-settings-input::placeholder,.clinic-settings-textarea::placeholder{color:#9ca3af}.clinic-settings-help-text{color:#9ca3af}.clinic-settings-button{background-color:#0f766e}.clinic-settings-button:hover{background-color:#134e4a}.clinic-settings-button:disabled{background-color:#4b5563}.clinic-settings-alert-error{background-color:#7f1d1d;border-color:#b91c1c;color:#fecaca}.clinic-settings-alert-success{background-color:#065f46;border-color:#047857;color:#a7f3d0}.breathing-ball{background-color:#5eead4}.loading-text{color:#9ca3af}}.doctor-screen-container{display:flex;flex-direction:column;padding:20px;background-color:#f0f4f8;border-radius:8px;box-shadow:0 4px 8px #0000001a;font-family:Arial,sans-serif;color:#333}.doctor-screen-header{font-size:2em;color:#2c3e50;margin-bottom:20px;text-align:center;border-bottom:2px solid #3498db;padding-bottom:10px}.patient-info-section,.complaint-section,.prescription-section,.actions-section{background-color:#fff;padding:15px;margin-bottom:20px;border-radius:6px;box-shadow:0 2px 4px #0000000d}.patient-info-section h3,.complaint-section h3,.prescription-section h3,.actions-section h3{font-size:1.5em;color:#34495e;margin-bottom:10px;border-bottom:1px solid #e0e0e0;padding-bottom:5px}.patient-info-item,.complaint-item,.prescription-item{margin-bottom:10px;font-size:1em}.patient-info-item strong,.complaint-item strong,.prescription-item strong{color:#555}.form-group label{display:block;margin-bottom:5px;font-weight:700;color:#34495e}.form-group input[type=text],.form-group textarea,.form-group select{width:100%;padding:10px;border:1px solid #ccc;border-radius:4px;box-sizing:border-box;font-size:1em}.form-group textarea{resize:vertical;min-height:80px}.btn{padding:10px 15px;font-size:1em;border:none;border-radius:4px;cursor:pointer;transition:background-color .3s ease;margin-right:10px}.btn-primary{background-color:#3498db;color:#fff}.btn-primary:hover{background-color:#2980b9}.btn-secondary{background-color:#95a5a6;color:#fff}.btn-secondary:hover{background-color:#7f8c8d}.btn-danger{background-color:#e74c3c;color:#fff}.btn-danger:hover{background-color:#c0392b}.btn-success{background-color:#2ecc71;color:#fff}.btn-success:hover{background-color:#27ae60}.current-queue-section{margin-top:20px}.queue-list{list-style-type:none;padding:0}.queue-list-item{background-color:#ecf0f1;padding:10px;border:1px solid #bdc3c7;border-radius:4px;margin-bottom:8px;display:flex;justify-content:space-between;align-items:center}.queue-list-item:hover{background-color:#dfe6e9}@media (max-width: 768px){.doctor-screen-container{padding:15px}.doctor-screen-header{font-size:1.8em;margin-bottom:15px}.patient-info-section h3,.complaint-section h3,.prescription-section h3,.actions-section h3{font-size:1.3em}.patient-info-item,.complaint-item,.prescription-item,.form-group input[type=text],.form-group textarea,.form-group select{font-size:.95em}.btn{padding:8px 12px;font-size:.95em;margin-right:5px;margin-bottom:5px}.actions-section .btn{display:block;width:100%;margin-right:0;margin-bottom:10px}.actions-section .btn:last-child{margin-bottom:0}}@media (max-width: 480px){.doctor-screen-header{font-size:1.5em}.patient-info-section h3,.complaint-section h3,.prescription-section h3,.actions-section h3{font-size:1.1em}.patient-info-item,.complaint-item,.prescription-item,.form-group label{font-size:.9em}.form-group input[type=text],.form-group textarea,.form-group select{font-size:.9em;padding:8px}.btn{font-size:.9em}.queue-list-item{flex-direction:column;align-items:flex-start;gap:5px}.queue-list-item .btn{width:auto;align-self:flex-start}}@media (prefers-color-scheme: dark){.doctor-screen-container{background-color:#111827;color:#e5e7eb;box-shadow:0 4px 8px #0000004d}.doctor-screen-header{color:#93c5fd;border-bottom-color:#60a5fa}.patient-info-section,.complaint-section,.prescription-section,.actions-section{background-color:#1f2937;box-shadow:0 2px 4px #0003}.patient-info-section h3,.complaint-section h3,.prescription-section h3,.actions-section h3{color:#cbd5e1;border-bottom-color:#4b5563}.patient-info-item,.complaint-item,.prescription-item{color:#d1d5db}.patient-info-item strong,.complaint-item strong,.prescription-item strong{color:#e5e7eb}.form-group label{color:#cbd5e1}.form-group input[type=text],.form-group textarea,.form-group select{background-color:#374151;border-color:#6b7280;color:#e5e7eb}.form-group select option{background-color:#374151;color:#e5e7eb}.form-group input[type=text]:focus,.form-group textarea:focus,.form-group select:focus{border-color:#60a5fa;box-shadow:0 0 0 .2rem #60a5fa4d}.btn-primary{background-color:#3b82f6}.btn-primary:hover{background-color:#2563eb}.btn-secondary{background-color:#6b7280}.btn-secondary:hover{background-color:#4b5563}.btn-danger{background-color:#ef4444}.btn-danger:hover{background-color:#dc2626}.btn-success{background-color:#22c55e}.btn-success:hover{background-color:#16a34a}.queue-list-item{background-color:#374151;border-color:#4b5563;color:#d1d5db}.queue-list-item:hover{background-color:#4b5563}}.ai-response-container{font-family:system-ui,Avenir,Helvetica,Arial,sans-serif;background-color:#111827;border:1px solid #1f2937;border-radius:.75rem;padding:1.25rem;margin-bottom:1.25rem;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f;color:#d1d5db;line-height:1.7}.ai-response-container .prose{color:inherit;max-width:100%}.ai-response-container .prose h1,.ai-response-container .prose h2,.ai-response-container .prose h3,.ai-response-container .prose h4,.ai-response-container .prose h5,.ai-response-container .prose h6{color:#9ca3af;margin-top:1.5em;margin-bottom:.75em;line-height:1.3}.ai-response-container .prose h1{font-size:1.8em}.ai-response-container .prose h2{font-size:1.5em}.ai-response-container .prose h3{font-size:1.25em}.ai-response-container .prose p,.ai-response-container .prose ul,.ai-response-container .prose ol,.ai-response-container .prose li{color:#d1d5db;margin-bottom:1em;font-size:1em}.ai-response-container .prose ul,.ai-response-container .prose ol{padding-left:1.5em}.ai-response-container .prose strong{color:#f3f4f6;font-weight:600}.ai-response-container .prose a{color:#646cff;text-decoration:none;font-weight:500}.ai-response-container .prose a:hover{text-decoration:underline;color:#535bf2}.ai-response-container .prose blockquote{border-left:4px solid #4f46e5;padding-left:1em;margin-left:0;font-style:italic;color:#9ca3af}.ai-response-container table{border-collapse:collapse;width:100%;margin-top:1.5em;margin-bottom:1.5em;border:1px solid #374151;border-radius:.5rem;overflow:hidden;box-shadow:0 1px 3px #0000001a}.ai-response-container table th,.ai-response-container table td{border:1px solid #374151;padding:.75em 1em;text-align:left;color:#d1d5db}.ai-response-container table th{background-color:#1f2937;color:#e5e7eb;font-weight:600}.ai-response-container table td{background-color:#000}.ai-response-container .prose code{background-color:#374151;color:#e5e7eb;padding:.2em .4em;border-radius:.25rem;font-size:.9em;border:1px solid #0A192F;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace}.ai-response-container .prose pre{background-color:#000;color:#d1d5db;padding:1em;border-radius:.375rem;overflow-x:auto;border:1px solid #374151;box-shadow:inset 0 1px 3px #0003;width:100vw;position:relative;left:50%;transform:translate(-50%);box-sizing:border-box}.ai-response-container .prose pre code{background-color:transparent;color:inherit;border:none;padding:0;font-size:.9em;line-height:1.45}.ai-json-details-container{margin-top:.75rem;border-top:1px solid #374151;padding-top:.75rem}.ai-json-toggle-button{background-color:#374151;color:#e5e7eb;border:1px solid #4b5563;padding:.375rem .75rem;border-radius:.375rem;font-size:.8rem;cursor:pointer;transition:background-color .2s;margin-bottom:.5rem}.ai-json-toggle-button:hover{background-color:#4b5563}.ai-json-pre{background-color:#000;color:#d1d5db;padding:.75em;border-radius:.375rem;overflow-x:auto;border:1px solid #374151;font-size:.8em;line-height:1.5;max-height:300px;white-space:pre-wrap;word-break:break-all;width:100vw;position:relative;left:50%;transform:translate(-50%);box-sizing:border-box}.ai-json-pre code{background-color:transparent;color:inherit;border:none;padding:0;font-size:1em;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace}.ai-function-call-block{background-color:#1f2937;border:1px solid #374151;border-radius:.5rem;padding:1rem;margin-top:1rem;margin-bottom:1rem;box-shadow:0 2px 4px #0000001a;color:#d1d5db}.ai-function-status{font-size:1.05em;font-weight:600;margin-bottom:.75rem;padding:.5rem .75rem;border-radius:.375rem;display:inline-block;line-height:1.4}.ai-function-status.success{background-color:#052e16;color:#34d399;border:1px solid #064e3b}.ai-function-status.info{background-color:#1e293b;color:#60a5fa;border:1px solid #334155}.ai-function-call-block .ai-json-details-container{margin-top:.5rem;border-top:none;padding-top:0}.ai-function-call-block .ai-json-toggle-button{font-size:.75rem}.ai-function-status.error{background-color:#450a0a;color:#f87171;border:1px solid #7f1d1d}.loading-animation-container{display:flex;align-items:center;justify-content:center;height:50px;margin:10px 0}.breathing-ball{width:20px;height:20px;background-color:#5eead4;border-radius:50%;animation:breathe 1.5s ease-in-out infinite}@keyframes breathe{0%,to{transform:scale(.8);opacity:.7}50%{transform:scale(1.2);opacity:1}}@media (prefers-color-scheme: light){.ai-response-container{background-color:#f9fafb;border-color:#e5e7eb;color:#1f2937}.ai-response-container .prose h1,.ai-response-container .prose h2,.ai-response-container .prose h3,.ai-response-container .prose h4,.ai-response-container .prose h5,.ai-response-container .prose h6{color:#374151}.ai-response-container .prose p,.ai-response-container .prose ul,.ai-response-container .prose ol,.ai-response-container .prose li{color:#1f2937}.ai-response-container .prose strong{color:#111827}.ai-response-container .prose a{color:#4f46e5}.ai-response-container .prose a:hover{color:#4338ca}.ai-response-container .prose blockquote{border-left-color:#a5b4fc;color:#4b5563}.ai-response-container table{border-color:#e5e7eb}.ai-response-container table th,.ai-response-container table td{border-color:#e5e7eb;color:#1f2937}.ai-response-container table th{background-color:#f3f4f6;color:#374151}.ai-response-container table td{background-color:#fff}.ai-response-container .prose code{background-color:#e5e7eb;color:#1f2937;border-color:#d1d5db}.ai-response-container .prose pre{background-color:#f3f4f6;color:#1f2937;border-color:#e5e7eb;box-shadow:inset 0 1px 3px #0000000d}.ai-response-container .prose pre{width:auto;position:static;transform:none}.ai-json-details-container{border-top-color:#e5e7eb}.ai-json-toggle-button{background-color:#e5e7eb;color:#374151;border-color:#d1d5db}.ai-json-toggle-button:hover{background-color:#d1d5db}.ai-json-pre{background-color:#f3f4f6;color:#1f2937;border-color:#e5e7eb;width:auto;position:static;transform:none}.ai-function-call-block{background-color:#f9fafb;border-color:#e5e7eb;color:#1f2937}.ai-function-status.success{background-color:#ecfdf5;color:#065f46;border-color:#a7f3d0}.ai-function-status.info{background-color:#eff6ff;color:#1e40af;border-color:#bfdbfe}.ai-function-status.error{background-color:#fef2f2;color:#991b1b;border-color:#fecaca}.breathing-ball{background-color:#2563eb}}.reception-dashboard-container{padding:1.5rem;background-color:#f9fafb;min-height:100vh}.reception-tab-nav{margin-bottom:1.5rem;display:flex;flex-wrap:wrap;align-items:flex-end;gap:.5rem;border-bottom:1px solid #d1d5db;padding-bottom:.5rem}.reception-tab-button{display:flex;align-items:center;padding:.5rem .75rem;border-radius:.375rem .375rem 0 0;font-size:.875rem;font-weight:500;transition:background-color .15s ease-in-out,color .15s ease-in-out,box-shadow .15s ease-in-out;color:#4b5563;border:1px solid transparent;border-bottom:none}.reception-tab-button:hover{background-color:#e5e7eb;color:#1f2937}.reception-tab-button.active{background-color:#0d9488;color:#fff;box-shadow:0 1px 3px #0000001a,0 1px 2px -1px #0000001a;border-color:#0d9488}.reception-tab-button svg{margin-right:.5rem}.queue-header{display:flex;flex-direction:column;gap:1rem;margin-bottom:1.5rem}@media (min-width: 768px){.queue-header{flex-direction:row;justify-content:space-between;align-items:center}}.queue-actions{display:flex;flex-direction:column;gap:.75rem}@media (min-width: 640px){.queue-actions{flex-direction:row}}.queue-action-button{padding:.625rem 1rem;border-radius:.5rem;font-weight:500;display:flex;align-items:center;justify-content:center;transition:background-color .2s ease-in-out;color:#fff;text-align:center;width:100%}@media (min-width: 640px){.queue-action-button{width:auto}}.queue-action-button svg{margin-right:.5rem}.btn-add-patient{background-color:#0d9488}.btn-add-patient:hover{background-color:#0f766e}.btn-ai-search{background-color:#2563eb}.btn-ai-search:hover{background-color:#1d4ed8}.btn-manage-admission{background-color:#7c3aed}.btn-manage-admission:hover{background-color:#6d28d9}.btn-view-all-patients{background-color:#4f46e5}.btn-view-all-patients:hover{background-color:#4338ca}.summary-cards-grid{display:grid;grid-template-columns:1fr;gap:.75rem;width:100%}@media (min-width: 640px){.summary-cards-grid{grid-template-columns:repeat(3,1fr)}}@media (min-width: 768px){.summary-cards-grid{width:auto}}.summary-card{padding:.75rem;border-radius:.5rem;text-align:center;border:1px solid;box-shadow:0 1px 2px #0000000d}.summary-card-title{font-size:.75rem;margin-bottom:.25rem}@media (min-width: 768px){.summary-card-title{font-size:.875rem}}.summary-card-value{font-size:1.25rem;font-weight:700}@media (min-width: 768px){.summary-card-value{font-size:1.5rem}}.card-waiting{background-color:#fef3c7;border-color:#fde68a}.card-waiting .summary-card-title{color:#ca8a04}.card-waiting .summary-card-value{color:#a16207}.card-consulting{background-color:#dcfce7;border-color:#bbf7d0}.card-consulting .summary-card-title{color:#16a34a}.card-consulting .summary-card-value{color:#15803d}.card-completed{background-color:#dbeafe;border-color:#bfdbfe}.card-completed .summary-card-title{color:#2563eb}.card-completed .summary-card-value{color:#1d4ed8}.search-bar-container{position:relative;margin-bottom:1.5rem}.search-input{width:100%;padding:.75rem 1rem .75rem 2.75rem;border:1px solid #d1d5db;border-radius:.5rem;font-size:.875rem;transition:border-color .2s ease-in-out,box-shadow .2s ease-in-out}.search-input:focus{border-color:#0d9488;box-shadow:0 0 0 2px #0d948833;outline:none}.search-icon{position:absolute;left:.75rem;top:50%;transform:translateY(-50%);color:#9ca3af}.queue-table-wrapper{background-color:#fff;border-radius:.5rem;box-shadow:0 1px 3px #0000001a,0 1px 2px -1px #0000001a;overflow-x:auto;margin-bottom:1.5rem}.queue-table{width:100%;min-width:600px}.queue-table th,.queue-table td{padding:.75rem 1rem;text-align:left;font-size:.875rem;white-space:nowrap}.queue-table th{background-color:#f9fafb;color:#4b5563;font-weight:500;text-transform:uppercase;letter-spacing:.05em;border-bottom:1px solid #e5e7eb}.queue-table tbody tr:hover{background-color:#f3f4f6}.queue-table tbody tr{border-bottom:1px solid #e5e7eb}.queue-table tbody tr:last-child{border-bottom:none}.queue-token{font-weight:700;color:#0d9488;font-size:1rem}.patient-name{font-weight:500;color:#1f2937}.patient-details{color:#6b7280;font-size:.75rem}.patient-phone{color:#4b5563;font-size:.75rem;margin-top:.25rem}.complaint-text{color:#374151;max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.subscription-status-badge{padding:.25rem .625rem;border-radius:9999px;font-size:.75rem;font-weight:500;display:inline-block}.status-active{background-color:#d1fae5;color:#065f46}.status-inactive{background-color:#fee2e2;color:#991b1b}.status-none{background-color:#f3f4f6;color:#374151}.time-added{color:#6b7280}.action-doctor-cell{text-align:center}.action-doctor-content{display:flex;flex-direction:column;align-items:center;gap:.25rem;font-size:.75rem}.doctor-name-display{font-weight:500;color:#374151}.action-button{padding:.375rem .75rem;border-radius:.25rem;border:1px solid;font-weight:500;transition:background-color .15s ease-in-out;width:100%;max-width:100px;font-size:.75rem}.btn-start{background-color:#2563eb;color:#fff;border-color:#1d4ed8}.btn-start:hover{background-color:#1d4ed8}.btn-assign{background-color:#2563eb;color:#fff;border-color:#1d4ed8}.btn-assign:hover{background-color:#1d4ed8}.btn-complete{background-color:#2563eb;color:#fff;border-color:#1d4ed8}.btn-complete:hover{background-color:#1d4ed8}.status-text-italic{color:#6b7280;font-style:italic}.status-text-red{color:#ef4444;font-style:italic}.doctor-select-dropdown{width:100%;padding:.375rem .5rem;border:1px solid #d1d5db;border-radius:.25rem;font-size:.75rem;background-color:#fff;transition:border-color .2s ease-in-out,box-shadow .2s ease-in-out}.doctor-select-dropdown:focus{border-color:#0d9488;box-shadow:0 0 0 2px #0d948833;outline:none}.loading-container{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:2.5rem 0;text-align:center;color:#6b7280}.empty-queue-message{text-align:center;padding:2.5rem 0;color:#6b7280;font-size:.875rem}.error-message-reception{background-color:#fee2e2;color:#b91c1c;padding:.75rem 1rem;border:1px solid #fecaca;border-radius:.375rem;margin-bottom:1rem}.error-message-reception strong{font-weight:700}.lab-tab-content{padding:1.5rem;background-color:#fff;border-radius:.5rem;box-shadow:0 1px 3px #0000001a,0 1px 2px -1px #0000001a}.lab-tab-content h2{font-size:1.25rem;font-weight:600;margin-bottom:1rem;color:#1f2937}.lab-action-button{display:inline-flex;align-items:center;padding:.5rem 1rem;border:1px solid transparent;font-size:.875rem;font-weight:500;border-radius:.375rem;box-shadow:0 1px 2px #0000000d;color:#fff;transition:background-color .2s ease-in-out}.lab-action-button svg{width:1rem;height:1rem;margin-right:.5rem;margin-left:-.25rem}.btn-create-lab-order{background-color:#0d9488}.btn-create-lab-order:hover{background-color:#0f766e}.btn-create-lab-order:focus{outline:2px solid transparent;outline-offset:2px;box-shadow:0 0 0 2px #fff,0 0 0 4px #0d9488}.btn-search-lab-reports{background-color:#2563eb;margin-left:1rem}.btn-search-lab-reports:hover{background-color:#1d4ed8}.btn-search-lab-reports:focus{outline:2px solid transparent;outline-offset:2px;box-shadow:0 0 0 2px #fff,0 0 0 4px #2563eb}.lab-placeholder-text{margin-top:1rem;color:#6b7280;font-size:.875rem}@media (max-width: 639px){.reception-dashboard-container{padding:1rem}.reception-tab-nav{gap:.25rem}.reception-tab-button{padding:.5rem .6rem}.queue-header{gap:.75rem}.queue-action-button{padding:.5rem .75rem;font-size:.875rem}.summary-cards-grid{gap:.5rem}.summary-card{padding:.625rem}.summary-card-title{font-size:.75rem}.summary-card-value{font-size:1.125rem}.search-input{padding:.625rem .75rem .625rem 2.5rem;font-size:.875rem}.queue-table th,.queue-table td{padding:.625rem .75rem;font-size:.8125rem}.queue-token{font-size:.9375rem}.patient-details{font-size:.6875rem}.complaint-text{max-width:120px}.action-button{padding:.3rem .6rem;font-size:.75rem}.doctor-select-dropdown{padding:.3rem .5rem;font-size:.75rem}.lab-tab-content{padding:1rem}.lab-tab-content h2{font-size:1.125rem;margin-bottom:.75rem}.lab-action-button{display:block;width:100%;margin-left:0!important;margin-bottom:.5rem;text-align:center}.lab-action-button:last-child{margin-bottom:0}.lab-action-button svg{margin-right:.5rem}}@media (max-width: 400px){.reception-dashboard-container{padding:.75rem}.reception-tab-button{padding:.4rem .5rem;font-size:.8125rem}.queue-action-button{font-size:.8125rem;padding:.5rem .6rem}.summary-card-title{font-size:.6875rem}.summary-card-value{font-size:1rem}.queue-table th,.queue-table td{font-size:.75rem;padding:.5rem .6rem}.queue-token{font-size:.875rem}.complaint-text{max-width:100px}.lab-action-button{font-size:.8125rem;padding:.5rem .6rem}.lab-tab-content h2{font-size:1rem}}@media (prefers-color-scheme: dark){.reception-dashboard-container{background-color:#111827}.reception-tab-nav{border-bottom-color:#4b5563}.reception-tab-button{color:#d1d5db}.reception-tab-button:hover{background-color:#374151;color:#f3f4f6}.reception-tab-button.active{background-color:#0f766e;border-color:#0f766e}.card-waiting{background-color:#713f12;border-color:#a16207}.card-waiting .summary-card-title{color:#fde047}.card-waiting .summary-card-value{color:#fef08a}.card-consulting{background-color:#065f46;border-color:#15803d}.card-consulting .summary-card-title{color:#a7f3d0}.card-consulting .summary-card-value{color:#d1fae5}.card-completed{background-color:#1e40af;border-color:#1d4ed8}.card-completed .summary-card-title{color:#93c5fd}.card-completed .summary-card-value{color:#bfdbfe}.search-input{background-color:#374151;border-color:#6b7280;color:#e5e7eb}.search-input:focus{border-color:#14b8a6;box-shadow:0 0 0 2px #14b8a64d}.search-input::-moz-placeholder{color:#9ca3af}.search-input::placeholder{color:#9ca3af}.search-icon{color:#9ca3af}.queue-table-wrapper{background-color:#1f2937;box-shadow:0 1px 3px #0000004d,0 1px 2px -1px #00000040}.queue-table th{background-color:#374151;color:#d1d5db;border-bottom-color:#4b5563}.queue-table tbody tr:hover{background-color:#374151}.queue-table tbody tr{border-bottom-color:#4b5563}.queue-table td{color:#d1d5db}.queue-token{color:#5eead4}.patient-name{color:#e5e7eb}.patient-details{color:#9ca3af}.patient-phone{color:#fff}.complaint-text{color:#d1d5db}.status-active{background-color:#065f46;color:#a7f3d0}.status-inactive{background-color:#7f1d1d;color:#fecaca}.status-none{background-color:#4b5563;color:#d1d5db}.time-added{color:#9ca3af}.doctor-name-display{color:#d1d5db}.status-text-italic{color:#9ca3af}.status-text-red{color:#f87171}.doctor-select-dropdown{background-color:#374151;border-color:#6b7280;color:#e5e7eb}.doctor-select-dropdown option{background-color:#374151;color:#e5e7eb}.doctor-select-dropdown:focus{border-color:#14b8a6;box-shadow:0 0 0 2px #14b8a64d}.loading-container,.empty-queue-message{color:#9ca3af}.error-message-reception{background-color:#7f1d1d;color:#fecaca;border-color:#b91c1c}.lab-tab-content{background-color:#1f2937}.lab-tab-content h2{color:#e5e7eb}.lab-placeholder-text{color:#9ca3af}}.btn-start-sub-queue{background-color:#10b981;color:#fff;border-color:#059669;padding:.25rem .5rem;font-size:.7rem;margin-top:.5rem;display:block;width:-moz-fit-content;width:fit-content;margin-left:auto;margin-right:auto}.btn-start-sub-queue:hover{background-color:#059669}@media (prefers-color-scheme: dark){.btn-start-sub-queue{background-color:#059669;border-color:#047857}.btn-start-sub-queue:hover{background-color:#047857}}.admission-page-container{padding:20px;background-color:#f9f9f9;border-radius:8px;box-shadow:0 2px 10px #0000001a;max-width:1200px;margin:20px auto}.admission-header{color:#333;font-size:2em;margin-bottom:20px;border-bottom:2px solid #eee;padding-bottom:10px;text-align:center}.admission-section{background-color:#fff;padding:20px;margin-bottom:20px;border-radius:8px;box-shadow:0 1px 6px #0000000d}.admission-section-title{font-size:1.5em;color:#555;margin-bottom:15px}.admission-table{width:100%;border-collapse:collapse;margin-top:15px}.admission-table th,.admission-table td{border:1px solid #ddd;padding:12px;text-align:left}.admission-table th{background-color:#f0f0f0;color:#333;font-weight:700}.admission-table tr:nth-child(2n){background-color:#f9f9f9}.admission-table tr:hover{background-color:#f1f1f1}.admission-button{background-color:#007bff;color:#fff;padding:10px 15px;border:none;border-radius:5px;cursor:pointer;font-size:1em;transition:background-color .3s ease;margin-right:10px}.admission-button:hover{background-color:#0056b3}.admission-button-secondary{background-color:#6c757d}.admission-button-secondary:hover{background-color:#545b62}.admission-button-danger{background-color:#dc3545}.admission-button-danger:hover{background-color:#b02a37}.admission-input,.admission-select{width:100%;padding:10px;margin-bottom:15px;border:1px solid #ccc;border-radius:5px;box-sizing:border-box}.admission-label{display:block;margin-bottom:5px;font-weight:700;color:#555}.admission-form-group{margin-bottom:20px}.admission-link{color:#007bff;text-decoration:none;cursor:pointer}.admission-link:hover{text-decoration:underline}.admission-card{background-color:#fff;border:1px solid #e0e0e0;border-radius:8px;padding:20px;margin-bottom:20px;box-shadow:0 2px 4px #0000000d}.admission-card-title{font-size:1.25em;color:#333;margin-bottom:10px}.admission-card-content p{margin-bottom:8px;color:#666}.admission-card-content strong{color:#444}.admission-tabs{display:flex;margin-bottom:20px;border-bottom:1px solid #ddd}.admission-tab-button{padding:10px 20px;cursor:pointer;border:none;background-color:transparent;font-size:1em;color:#555;border-bottom:3px solid transparent;margin-right:5px}.admission-tab-button.active{color:#007bff;border-bottom:3px solid #007bff;font-weight:700}.admission-tab-content{padding-top:20px}.admission-table-wrapper{overflow-x:auto;margin-top:15px}@media (max-width: 768px){.admission-page-container{padding:15px;margin:15px}.admission-section,.admission-card{padding:15px}.admission-header{font-size:1.8em}.admission-section-title{font-size:1.3em}.admission-button{width:100%;margin-bottom:10px;margin-right:0}.admission-table,.admission-table th,.admission-table td{font-size:.9em}.admission-table th,.admission-table td{padding:8px}}@media (prefers-color-scheme: dark){.admission-page-container{background-color:#111827;box-shadow:0 2px 10px #0000004d}.admission-header{color:#e5e7eb;border-bottom-color:#374151}.admission-section{background-color:#1f2937;box-shadow:0 1px 6px #0003}.admission-section-title{color:#d1d5db}.admission-table th,.admission-table td{border-color:#4b5563}.admission-table th{background-color:#374151;color:#e5e7eb}.admission-table tr:nth-child(2n){background-color:#2c3a4b}.admission-table tr:hover{background-color:#4b5563}.admission-table td{color:#d1d5db}.admission-button{background-color:#3b82f6}.admission-button:hover{background-color:#2563eb}.admission-button-secondary{background-color:#6b7280}.admission-button-secondary:hover{background-color:#4b5563}.admission-button-danger{background-color:#ef4444}.admission-button-danger:hover{background-color:#dc2626}.admission-input,.admission-select{background-color:#374151;border-color:#6b7280;color:#e5e7eb}.admission-select option{background-color:#374151;color:#e5e7eb}.admission-input:focus,.admission-select:focus{border-color:#60a5fa;box-shadow:0 0 0 .2rem #60a5fa4d}.admission-label{color:#d1d5db}.admission-link{color:#93c5fd}.admission-card{background-color:#1f2937;border-color:#374151;box-shadow:0 2px 4px #0003}.admission-card-title{color:#e5e7eb}.admission-card-content p{color:#d1d5db}.admission-card-content strong{color:#e5e7eb}.admission-tabs{border-bottom-color:#4b5563}.admission-tab-button{color:#9ca3af}.admission-tab-button.active{color:#60a5fa;border-bottom-color:#60a5fa}}.all-patients-container{background-color:#f9fafb;padding:2rem;border-radius:8px;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f}@media (max-width: 767px){.all-patients-container{padding:1rem}.all-patients-title{font-size:1.5rem}.controls-container{flex-direction:column;align-items:stretch}.search-input-wrapper,.filter-dropdown-wrapper{min-width:0;width:100%}}.all-patients-title{color:#1f2937;margin-bottom:1.5rem;display:flex;align-items:center;font-size:2rem;font-weight:700}.all-patients-title svg{margin-right:.75rem;color:#4f46e5}.all-patients-back-button{display:inline-flex;align-items:center;padding:.5rem 1rem;border:1px solid #d1d5db;border-radius:.375rem;box-shadow:0 1px 2px #0000000d;font-size:.875rem;font-weight:500;color:#374151;background-color:#fff;transition:background-color .15s ease-in-out;margin-bottom:1rem}.all-patients-back-button:hover{background-color:#f9fafb}.all-patients-back-button svg{margin-right:.5rem}.subscription-plans-card{background-color:#fff;border-radius:.5rem;box-shadow:0 1px 3px #0000001a,0 1px 2px #0000000f;padding:1.5rem;margin-bottom:1.5rem}.subscription-plans-title{font-size:1.25rem;font-weight:600;color:#374151;margin-bottom:1rem}.subscription-plans-list{list-style:none;padding:0;margin:0;space-y:.5rem}.subscription-plans-list li{padding-bottom:.25rem;border-bottom:1px solid #f3f4f6;font-size:.875rem;color:#374151}.subscription-plans-list li:last-child{border-bottom:none}.subscription-plans-list strong{font-weight:500;color:#1f2937}.subscription-plans-list .plan-description{display:block;font-size:.75rem;color:#6b7280;margin-top:.125rem}.controls-container{margin-bottom:1.5rem;display:flex;flex-wrap:wrap;gap:1rem;align-items:center}.search-input-wrapper{position:relative;flex-grow:1;min-width:250px}.search-input{padding-left:2.5rem;width:100%;height:2.5rem;border:1px solid #d1d5db;border-radius:.375rem;box-shadow:0 1px 2px #0000000d;font-size:.875rem}.search-input:focus{border-color:#4f46e5;outline:none;box-shadow:0 0 0 2px #4f46e54d}.search-input-icon{position:absolute;left:.75rem;top:50%;transform:translateY(-50%);color:#9ca3af}.filter-dropdown-wrapper{position:relative}.filter-select-container{display:flex;align-items:center;border:1px solid #d1d5db;border-radius:.5rem;box-shadow:0 1px 2px #0000000d;background-color:#fff;height:2.5rem}.filter-select-icon{margin:0 .5rem;color:#6b7280}.filter-select{border:none;background-color:transparent;padding:.5rem .75rem .5rem .25rem;font-size:.875rem;min-width:120px;border-radius:0 .375rem .375rem 0}.filter-select:focus{outline:none;box-shadow:none}.patients-table-wrapper{background-color:#fff;border-radius:.5rem;box-shadow:0 2px 4px #0000000d;overflow-x:auto}.patients-table{width:100%;min-width:700px;border-collapse:collapse}.patients-table th,.patients-table td{padding:.75rem 1rem;text-align:left;font-size:.875rem;border-bottom:1px solid #e5e7eb}.patients-table th{background-color:#f3f4f6;color:#374151;font-weight:600;text-transform:uppercase;letter-spacing:.05em}.patients-table th.sortable-header{cursor:pointer;transition:background-color .15s ease-in-out}.patients-table th.sortable-header:hover{background-color:#e5e7eb}.patients-table th .sort-icon{margin-left:.25rem;opacity:.7}.patients-table tbody tr:hover{background-color:#f9fafb}.patients-table td{color:#4b5563}.patients-table td.patient-name{font-weight:500;color:#1f2937}.patients-table .status-badge{padding:.25rem .75rem;border-radius:9999px;font-size:.75rem;font-weight:500;text-transform:capitalize}.status-badge.active{background-color:#d1fae5;color:#065f46}.status-badge.inactive{background-color:#fee2e2;color:#991b1b}.status-badge.none{background-color:#f3f4f6;color:#374151}.patients-table .action-button{display:inline-flex;align-items:center;padding:.375rem .75rem;border:1px solid transparent;font-size:.75rem;font-weight:500;border-radius:.375rem;color:#fff;background-color:#4f46e5;box-shadow:0 1px 2px #0000000d;transition:background-color .15s ease-in-out}.patients-table .action-button:hover{background-color:#4338ca}.patients-table .action-button:focus{outline:none;box-shadow:0 0 0 2px #4f46e580}.pagination-controls{margin-top:1.5rem;display:flex;flex-direction:column;align-items:center;gap:.5rem}@media (min-width: 640px){.pagination-controls{flex-direction:row;justify-content:space-between}}.pagination-info{font-size:.875rem;color:#4b5563}.pagination-info .font-medium{font-weight:500;color:#1f2937}.pagination-buttons{display:flex;align-items:center;gap:.5rem}.pagination-button{padding:.5rem .75rem;border-radius:.375rem;border:1px solid #d1d5db;background-color:#fff;font-size:.875rem;color:#374151;display:inline-flex;align-items:center;transition:background-color .15s ease-in-out}.pagination-button:hover:not(:disabled){background-color:#f9fafb}.pagination-button:disabled{opacity:.5;cursor:not-allowed}.pagination-button svg{width:1rem;height:1rem}.pagination-button .prev-icon{margin-right:.25rem}.pagination-button .next-icon{margin-left:.25rem}.pagination-current-page{padding:0 .5rem;font-size:.875rem}.pagination-current-page .font-medium{font-weight:500;color:#1f2937}.loading-state,.empty-state{text-align:center;padding:2.5rem 0;color:#6b7280;font-size:1rem}.subscription-modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background-color:#0009;display:flex;justify-content:center;align-items:center;z-index:50;padding:1rem}.subscription-modal-content{background-color:#fff;border-radius:.5rem;box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d;padding:1.5rem;width:100%;max-width:28rem;animation:fadeInScaleUp .3s ease-out}@keyframes fadeInScaleUp{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}.subscription-modal-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.subscription-modal-title{font-size:1.25rem;font-weight:600;color:#1f2937}.subscription-modal-close-button{color:#9ca3af;transition:color .15s ease-in-out}.subscription-modal-close-button:hover{color:#374151}.subscription-modal-body .form-label{display:block;font-size:.875rem;font-weight:500;color:#374151;margin-bottom:.25rem}.subscription-modal-body .form-select{width:100%;padding:.5rem .75rem;border:1px solid #d1d5db;border-radius:.375rem;background-color:#fff;font-size:.875rem;line-height:1.25rem;box-shadow:0 1px 2px #0000000d}.subscription-modal-body .form-select:focus{border-color:#4f46e5;outline:none;box-shadow:0 0 0 2px #4f46e54d}.subscription-modal-body .form-select:disabled{background-color:#f3f4f6;cursor:not-allowed}.subscription-modal-body .error-message{font-size:.75rem;color:#ef4444;margin-top:.25rem}.subscription-modal-footer{display:flex;justify-content:flex-end;gap:.75rem;margin-top:1.5rem}.subscription-modal-button{padding:.5rem 1rem;border-radius:.375rem;font-size:.875rem;font-weight:500;box-shadow:0 1px 2px #0000000d;transition:background-color .15s ease-in-out,border-color .15s ease-in-out}.subscription-modal-button.cancel{border:1px solid #d1d5db;color:#374151;background-color:#fff}.subscription-modal-button.cancel:hover:not(:disabled){background-color:#f9fafb}.subscription-modal-button.submit{border:1px solid transparent;color:#fff;background-color:#4f46e5}.subscription-modal-button.submit:hover:not(:disabled){background-color:#4338ca}.subscription-modal-button.submit:focus{outline:none;box-shadow:0 0 0 2px #4f46e580}.subscription-modal-button:disabled{opacity:.5;cursor:not-allowed}.error-alert{background-color:#fee2e2;border:1px solid #fca5a5;color:#b91c1c;padding:.75rem 1rem;border-radius:.375rem;margin-bottom:1rem;position:relative}.error-alert strong{font-weight:600}@media (prefers-color-scheme: dark){.all-patients-container{background-color:#111827;box-shadow:0 4px 6px -1px #0000004d,0 2px 4px -1px #0003}.all-patients-title{color:#e5e7eb}.all-patients-title svg{color:#818cf8}.all-patients-back-button{border:1px solid #4b5563;color:#d1d5db;background-color:#374151}.all-patients-back-button:hover{background-color:#4b5563}.subscription-plans-card{background-color:#1f2937;box-shadow:0 1px 3px #0003,0 1px 2px #00000026}.subscription-plans-title{color:#e5e7eb}.subscription-plans-list li{border-bottom:1px solid #374151;color:#d1d5db}.subscription-plans-list strong{color:#f3f4f6}.subscription-plans-list .plan-description{color:#9ca3af}.search-input{background-color:#374151;border-color:#6b7280;color:#e5e7eb}.search-input:focus{border-color:#818cf8;box-shadow:0 0 0 2px #818cf866}.search-input::-moz-placeholder{color:#9ca3af}.search-input::placeholder{color:#9ca3af}.search-input-icon{color:#9ca3af}.filter-select-container{border-color:#6b7280;background-color:#374151}.filter-select-icon{color:#9ca3af}.filter-select{color:#e5e7eb;background-color:transparent}.filter-select option{background-color:#374151;color:#e5e7eb}.patients-table-wrapper{background-color:#1f2937;box-shadow:0 2px 4px #0003}.patients-table th,.patients-table td{border-bottom:1px solid #374151}.patients-table th{background-color:#374151;color:#e5e7eb}.patients-table th.sortable-header:hover{background-color:#4b5563}.patients-table tbody tr:hover{background-color:#374151}.patients-table td{color:#d1d5db}.patients-table td.patient-name{color:#f3f4f6}.status-badge.active{background-color:#064e3b;color:#a7f3d0}.status-badge.inactive{background-color:#7f1d1d;color:#fecaca}.status-badge.none{background-color:#4b5563;color:#e5e7eb}.patients-table .action-button{background-color:#6366f1}.patients-table .action-button:hover{background-color:#4f46e5}.patients-table .action-button:focus{box-shadow:0 0 0 2px #6366f180}.pagination-info{color:#9ca3af}.pagination-info .font-medium{color:#e5e7eb}.pagination-button{border:1px solid #4b5563;background-color:#374151;color:#d1d5db}.pagination-button:hover:not(:disabled){background-color:#4b5563}.pagination-current-page .font-medium{color:#e5e7eb}.loading-state,.empty-state{color:#9ca3af}.subscription-modal-overlay{background-color:#000000bf}.subscription-modal-content{background-color:#1f2937}.subscription-modal-title{color:#f3f4f6}.subscription-modal-close-button{color:#9ca3af}.subscription-modal-close-button:hover{color:#e5e7eb}.subscription-modal-body .form-label{color:#d1d5db}.subscription-modal-body .form-select{background-color:#374151;border-color:#6b7280;color:#e5e7eb}.subscription-modal-body .form-select:focus{border-color:#818cf8;box-shadow:0 0 0 2px #818cf866}.subscription-modal-body .form-select option{background-color:#374151;color:#e5e7eb}.subscription-modal-body .form-select:disabled{background-color:#4b5563}.subscription-modal-body .error-message{color:#fca5a5}.subscription-modal-button.cancel{border:1px solid #6b7280;color:#d1d5db;background-color:#374151}.subscription-modal-button.cancel:hover:not(:disabled){background-color:#4b5563}.subscription-modal-button.submit{background-color:#6366f1}.subscription-modal-button.submit:hover:not(:disabled){background-color:#4f46e5}.subscription-modal-button.submit:focus{box-shadow:0 0 0 2px #6366f180}.error-alert{background-color:#7f1d1d;border-color:#b91c1c;color:#fecaca}}.pharmacy-queue-container{padding:20px;background-color:#f8f9fa;min-height:calc(100vh - 60px);display:flex;flex-direction:column;gap:20px}.pharmacy-queue-header{display:flex;flex-direction:column;gap:15px;margin-bottom:20px}.pharmacy-queue-title{font-size:1.8em;color:#343a40;font-weight:600;border-bottom:2px solid #e9ecef;padding-bottom:10px}.pharmacy-actions-container{display:flex;flex-wrap:wrap;gap:15px;justify-content:space-between;align-items:center}.pharmacy-buttons-group{display:flex;flex-wrap:wrap;gap:10px}.pharmacy-action-button{padding:10px 15px;border-radius:8px;font-size:.9em;font-weight:500;cursor:pointer;display:flex;align-items:center;gap:8px;transition:all .2s ease-in-out;border:1px solid transparent}.btn-add-order{background-color:#007bff;color:#fff;border-color:#007bff}.btn-add-order:hover{background-color:#0056b3;border-color:#0056b3}.btn-inventory,.btn-ai-search{background-color:#6c757d;color:#fff;border-color:#6c757d}.btn-inventory:hover,.btn-ai-search:hover{background-color:#5a6268;border-color:#5a6268}.pharmacy-search-input-container{position:relative;flex-grow:1;max-width:400px}.pharmacy-search-input{width:100%;padding:10px 15px 10px 40px;border:1px solid #ced4da;border-radius:8px;font-size:.9em;transition:border-color .2s}.pharmacy-search-input:focus{border-color:#007bff;outline:none}.pharmacy-search-icon{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:#6c757d}.pharmacy-orders-scroll-container{flex-grow:1;overflow-y:auto;padding-bottom:20px}.error-message-box{background-color:#f8d7da;color:#721c24;border:1px solid #f5c6cb;padding:10px 15px;border-radius:8px;margin-bottom:15px;text-align:center;font-weight:500}.loading-pulse{text-align:center;padding:20px;font-size:1.1em;color:#007bff;animation:pulse 1.5s infinite ease-in-out}@keyframes pulse{0%{opacity:.7}50%{opacity:1}to{opacity:.7}}.empty-state-message{text-align:center;padding:50px 20px;color:#6c757d;font-size:1.1em;background-color:#e9ecef;border-radius:8px;margin-top:20px}.pharmacy-table-container{overflow-x:auto;background-color:#fff;border-radius:8px;box-shadow:0 2px 4px #0000000d}.pharmacy-queue-table{width:100%;border-collapse:collapse;min-width:700px}.pharmacy-queue-table th,.pharmacy-queue-table td{padding:12px 15px;border-bottom:1px solid #dee2e6;text-align:left;vertical-align:top}.pharmacy-queue-table th{background-color:#e9ecef;font-weight:600;color:#495057;text-transform:uppercase;font-size:.85em}.pharmacy-queue-table tbody tr:hover{background-color:#f2f2f2}.patient-name{font-weight:600;color:#343a40}.patient-token{font-size:.85em;color:#6c757d}.medication-info span{display:block;margin-bottom:4px;font-size:.9em;color:#495057}.medication-box-number{font-size:.8em;color:#007bff;font-weight:500;margin-left:5px}.date-info{font-size:.9em;color:#6c757d}.status-pill{display:inline-block;padding:5px 10px;border-radius:20px;font-size:.75em;font-weight:600;text-transform:capitalize;color:#fff;text-align:center;min-width:80px}.status-pill-pending{background-color:#ffc107;color:#343a40}.status-pill-billed{background-color:#17a2b8}.status-pill-dispensed{background-color:#28a745}.status-pill-cancelled{background-color:#dc3545}.status-pill-default{background-color:#6c757d}.pharmacy-table-actions{display:flex;flex-wrap:wrap;gap:5px}.pharmacy-table-action-button{padding:6px 10px;border-radius:5px;font-size:.8em;font-weight:500;cursor:pointer;display:flex;align-items:center;gap:5px;transition:background-color .2s;border:1px solid transparent}.btn-edit-order{background-color:#007bff;color:#fff}.btn-edit-order:hover{background-color:#0056b3}.btn-bill-order{background-color:#28a745;color:#fff}.btn-bill-order:hover{background-color:#218838}.btn-dispense-order{background-color:#17a2b8;color:#fff}.btn-dispense-order:hover{background-color:#138496}.btn-cancel-order{background-color:#dc3545;color:#fff}.btn-cancel-order:hover{background-color:#c82333}.btn-details-order{background-color:#6c757d;color:#fff}.btn-details-order:hover{background-color:#5a6268}.pharmacy-card-view-container{display:grid;gap:20px;padding:10px}.pharmacy-order-card{background-color:#fff;border-radius:8px;box-shadow:0 2px 4px #0000000d;padding:15px;display:flex;flex-direction:column;gap:10px;cursor:pointer;transition:transform .2s ease-in-out}.pharmacy-order-card:hover{transform:translateY(-3px)}.pharmacy-card-header{display:flex;justify-content:space-between;align-items:flex-start;border-bottom:1px solid #e9ecef;padding-bottom:10px;margin-bottom:10px}.pharmacy-card-patient-name{font-weight:600;color:#343a40;font-size:1.1em}.pharmacy-card-patient-token{font-size:.85em;color:#6c757d;margin-top:2px}.pharmacy-card-date{font-size:.85em;color:#6c757d;margin-top:5px}.pharmacy-card-medications{font-size:.9em;color:#495057}.pharmacy-card-medications-title{font-weight:600;margin-bottom:5px;color:#343a40}.pharmacy-card-medication-item{margin-bottom:3px}.pharmacy-card-medications-more{font-style:italic;color:#6c757d;margin-top:5px}.pharmacy-card-no-medications{color:#6c757d;font-style:italic}.pharmacy-card-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px;justify-content:flex-end}.pharmacy-pagination-container{display:flex;justify-content:center;align-items:center;padding:15px 0;border-top:1px solid #e9ecef;margin-top:20px;flex-wrap:wrap;gap:15px}.pagination-mobile-controls{display:flex;gap:10px}.pagination-desktop-controls{display:flex;align-items:center;gap:20px}.pagination-info p{font-size:.9em;color:#495057}.pagination-nav{display:flex;align-items:center;gap:5px}.pagination-button,.pagination-nav-button{padding:8px 12px;border:1px solid #ced4da;border-radius:5px;background-color:#fff;cursor:pointer;transition:background-color .2s,border-color .2s;font-size:.9em;color:#495057}.pagination-button:hover:not(:disabled),.pagination-nav-button:hover:not(:disabled){background-color:#e9ecef;border-color:#adb5bd}.pagination-button:disabled,.pagination-nav-button:disabled{opacity:.6;cursor:not-allowed}.pagination-current-page{padding:8px 12px;background-color:#007bff;color:#fff;border-radius:5px;font-weight:500;font-size:.9em}@media (min-width: 768px){.pharmacy-queue-header{flex-direction:row;justify-content:space-between;align-items:center}.pharmacy-actions-container{flex-wrap:nowrap}.pharmacy-search-input-container{max-width:300px}.pharmacy-card-view-container,.pagination-mobile-controls{display:none}}@media (max-width: 767px){.pharmacy-table-container,.pagination-desktop-controls{display:none}}.unavailable-drugs-note{margin-top:10px;padding:8px;background-color:#fff3cd;border:1px solid #ffeeba;border-radius:4px;font-size:.85em;color:#856404}.unavailable-drugs-note strong{color:#665000}.pharmacy-inventory-page{padding:20px;background-color:#f9fafb;min-height:100vh;font-family:Inter,sans-serif}@media (max-width: 767px){.pharmacy-inventory-page{padding:10px}.inventory-page-title{font-size:1.5rem}.inventory-table th,.inventory-table td{padding-left:8px;padding-right:8px;font-size:.8rem}.inventory-table .actions-cell{white-space:normal}}.inventory-header-controls{margin-bottom:24px;display:flex;flex-direction:column;gap:16px}@media (min-width: 768px){.inventory-header-controls{flex-direction:row;justify-content:space-between;align-items:center}}.inventory-page-title{font-size:1.75rem;font-weight:600;color:#1f2937}.inventory-actions-group{display:flex;flex-direction:column;gap:12px}@media (min-width: 640px){.inventory-actions-group{flex-direction:row;align-items:center}}.action-button{display:inline-flex;align-items:center;padding:10px 16px;border:1px solid transparent;font-size:.875rem;font-weight:500;border-radius:.375rem;box-shadow:0 1px 2px #0000000d;color:#fff;transition:background-color .2s ease-in-out}.action-button .button-icon{margin-left:-4px;margin-right:8px}.import-button{background-color:#10b981}.import-button:hover{background-color:#059669}.import-button:focus{outline:2px solid transparent;outline-offset:2px;box-shadow:0 0 0 2px #a7f3d0,0 1px 2px #0000000d}.import-button.importing{background-color:#9ca3af;cursor:not-allowed}.import-defaults-button{background-color:#2563eb}.import-defaults-button:hover{background-color:#1d4ed8}.import-defaults-button:focus{outline:2px solid transparent;outline-offset:2px;box-shadow:0 0 0 2px #93c5fd,0 1px 2px #0000000d}.import-defaults-button.importing{background-color:#9ca3af;cursor:not-allowed}.add-drug-button{background-color:#0d9488}.add-drug-button:hover{background-color:#0f766e}.add-drug-button:focus{outline:2px solid transparent;outline-offset:2px;box-shadow:0 0 0 2px #5eead4,0 1px 2px #0000000d}.delete-all-drugs-button{background-color:#dc2626}.delete-all-drugs-button:hover{background-color:#b91c1c}.delete-all-drugs-button:focus{outline:2px solid transparent;outline-offset:2px;box-shadow:0 0 0 2px #fca5a5,0 1px 2px #0000000d}.search-bar-container{margin-bottom:16px}.search-input-wrapper{position:relative}.inventory-search-input{padding:8px 16px 8px 40px;width:100%;border:1px solid #d1d5db;border-radius:.375rem;transition:box-shadow .2s ease-in-out,border-color .2s ease-in-out}.inventory-search-input:focus{outline:2px solid transparent;outline-offset:2px;border-color:#0d9488;box-shadow:0 0 0 2px #5eead4}.search-input-icon{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:#9ca3af}.inventory-table-container{background-color:#fff;border-radius:.5rem;box-shadow:0 1px 3px #0000001a,0 1px 2px #0000000f;overflow-x:auto}.inventory-table{min-width:100%;border-collapse:collapse}.inventory-table thead{background-color:#f9fafb}.inventory-table th{padding:12px 8px;text-align:left;font-size:.75rem;font-weight:500;color:#6b7280;text-transform:uppercase;letter-spacing:.05em;border-bottom:1px solid #e5e7eb}@media (min-width: 768px){.inventory-table th{padding-left:16px;padding-right:16px}}.inventory-table td{padding:16px 8px;white-space:nowrap;font-size:.875rem;border-bottom:1px solid #e5e7eb}@media (min-width: 768px){.inventory-table td{padding-left:16px;padding-right:16px}}.inventory-table tbody tr:hover{background-color:#f9fafb}.inventory-table .text-drug-name{font-weight:500;color:#111827}.inventory-table .text-muted{color:#6b7280}.inventory-table .text-price,.inventory-table .text-stock,.inventory-table .text-cost{text-align:right}.inventory-table .text-stock.low-stock{color:#dc2626;font-weight:500}.inventory-table .actions-cell{text-align:center}.inventory-table .action-icon-button{padding:4px;color:#4f46e5;transition:color .2s ease-in-out}.inventory-table .action-icon-button:hover{color:#3730a3}.inventory-table .description-cell{max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hidden-sm{display:none}@media (min-width: 768px){.hidden-sm{display:table-cell}}.hidden-md{display:none}@media (min-width: 1024px){.hidden-md{display:table-cell}}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background-color:#6b728080;overflow-y:auto;height:100%;width:100%;z-index:50;display:flex;align-items:center;justify-content:center;padding:16px}.modal-content{position:relative;background-color:#fff;padding:20px;border-radius:.5rem;box-shadow:0 20px 25px -5px #0000001a,0 10px 10px -5px #0000000a;width:100%}@media (min-width: 640px){.modal-content{max-width:400px;padding:32px}}.modal-close-button{position:absolute;top:12px;right:12px;color:#6b7280;transition:color .2s ease-in-out}.modal-close-button:hover{color:#374151}@media (min-width: 640px){.modal-close-button{top:16px;right:16px}}.modal-title{font-size:1.125rem;font-weight:500;line-height:1.5;color:#111827;margin-bottom:8px}.modal-description{font-size:.875rem;color:#4b5563;margin-bottom:16px}.modal-description .drug-name{font-weight:500}.modal-error-message{margin-bottom:16px;padding:12px;background-color:#fee2e2;color:#b91c1c;border:1px solid #fca5a5;border-radius:.375rem}.form-label{display:block;font-size:.875rem;font-weight:500;color:#374151}.form-input{margin-top:4px;display:block;width:100%;border:1px solid #d1d5db;border-radius:.375rem;box-shadow:0 1px 2px #0000000d;padding:8px 12px;font-size:.875rem;transition:box-shadow .2s ease-in-out,border-color .2s ease-in-out}.form-input:focus{outline:2px solid transparent;outline-offset:2px;border-color:#14b8a6;box-shadow:0 0 0 2px #5eead4}.form-help-text{margin-top:4px;font-size:.75rem;color:#6b7280}.modal-actions{margin-top:24px;display:flex;justify-content:flex-end;gap:12px}.button-cancel{background-color:#fff;padding:8px 16px;border:1px solid #d1d5db;border-radius:.375rem;box-shadow:0 1px 2px #0000000d;font-size:.875rem;font-weight:500;color:#374151;transition:background-color .2s ease-in-out}.button-cancel:hover{background-color:#f9fafb}.button-cancel:focus{outline:2px solid transparent;outline-offset:2px;box-shadow:0 0 0 2px #c7d2fe,0 1px 2px #0000000d}.button-submit{display:inline-flex;justify-content:center;padding:8px 16px;border:1px solid transparent;box-shadow:0 1px 2px #0000000d;font-size:.875rem;font-weight:500;border-radius:.375rem;color:#fff;background-color:#2563eb;transition:background-color .2s ease-in-out}.button-submit:hover{background-color:#1d4ed8}.button-submit:focus{outline:2px solid transparent;outline-offset:2px;box-shadow:0 0 0 2px #93c5fd,0 1px 2px #0000000d}.loading-indicator{padding:24px;text-align:center;color:#6b7280}.error-indicator{padding:24px;background-color:#fef2f2;border:1px solid #fecaca;color:#b91c1c;border-radius:.375rem}.no-results-message td{text-align:center;padding-top:40px;padding-bottom:40px;color:#6b7280}.drug-row{cursor:pointer}.collapsible-row{background-color:#f0f4f8;border-bottom:1px solid #e5e7eb}.collapsible-content{padding:10px 16px;display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px 20px;font-size:.875rem;color:#4b5563}.collapsible-content p{margin:0;padding:0}.collapsible-content strong{color:#1f2937}.expand-collapse-cell{text-align:center;width:40px}.expand-collapse-button{background:none;border:none;cursor:pointer;color:#4f46e5;padding:0;display:flex;align-items:center;justify-content:center;width:100%;height:100%}.expand-collapse-button:hover{color:#3730a3}@media (prefers-color-scheme: dark){.pharmacy-inventory-page{background-color:#111827;color:#e5e7eb}.inventory-page-title{color:#f3f4f6}.import-button:focus{box-shadow:0 0 0 2px #059669,0 1px 2px #0000000d}.import-defaults-button:focus{box-shadow:0 0 0 2px #1d4ed8,0 1px 2px #0000000d}.add-drug-button:focus{box-shadow:0 0 0 2px #0f766e,0 1px 2px #0000000d}.inventory-search-input{background-color:#374151;border-color:#6b7280;color:#e5e7eb}.inventory-search-input:focus{border-color:#0f766e;box-shadow:0 0 0 2px #14b8a6}.inventory-search-input::-moz-placeholder{color:#9ca3af}.inventory-search-input::placeholder{color:#9ca3af}.search-input-icon{color:#9ca3af}.inventory-table-container{background-color:#1f2937;box-shadow:0 1px 3px #0003,0 1px 2px #00000026}.inventory-table thead{background-color:#374151}.inventory-table th{color:#d1d5db;border-bottom:1px solid #4b5563}.inventory-table td{border-bottom:1px solid #4b5563;color:#d1d5db}.inventory-table tbody tr:hover{background-color:#374151}.inventory-table .text-drug-name{color:#f3f4f6}.inventory-table .text-muted{color:#9ca3af}.inventory-table .action-icon-button{color:#818cf8}.inventory-table .action-icon-button:hover{color:#a5b4fc}.modal-overlay{background-color:#111827bf}.modal-content{background-color:#1f2937}.modal-close-button{color:#9ca3af}.modal-close-button:hover{color:#d1d5db}.modal-title{color:#f3f4f6}.modal-description{color:#d1d5db}.modal-error-message{background-color:#7f1d1d;color:#fecaca;border-color:#b91c1c}.form-label{color:#d1d5db}.form-input{background-color:#374151;border-color:#6b7280;color:#e5e7eb}.form-input:focus{border-color:#14b8a6;box-shadow:0 0 0 2px #0d9488}.form-input::-moz-placeholder{color:#9ca3af}.form-input::placeholder{color:#9ca3af}.form-help-text{color:#9ca3af}.button-cancel{background-color:#4b5563;border-color:#6b7280;color:#e5e7eb}.button-cancel:hover{background-color:#6b7280}.button-cancel:focus{box-shadow:0 0 0 2px #9ca3af}.button-submit:focus{box-shadow:0 0 0 2px #60a5fa}.delete-all-drugs-button:focus{box-shadow:0 0 0 2px #b91c1c,0 1px 2px #0000000d}.loading-indicator{color:#9ca3af}.error-indicator{background-color:#7f1d1d;border-color:#b91c1c;color:#fecaca}.no-results-message td{color:#9ca3af}}.add-drug-form-page{background-color:#f8f9fa;color:#212529;font-family:Inter,sans-serif;min-height:100vh;padding:24px;display:flex;align-items:flex-start;justify-content:center}.add-drug-form-container{background-color:#fff;border:1px solid #dee2e6;border-radius:12px;padding:32px 40px;box-shadow:0 8px 16px #00000014;width:100%;max-width:700px}@media (max-width: 767px){.add-drug-form-page{padding:16px}.add-drug-form-container{padding:20px}.add-drug-form-header h2{font-size:1.5rem}.add-drug-form .form-grid{grid-template-columns:1fr}.add-drug-form .sm-col-span-2{grid-column:span 1 / span 1}.add-drug-form .form-actions{flex-direction:column}.add-drug-form .form-button{width:100%}}.add-drug-form-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px;padding-bottom:16px;border-bottom:1px solid #e9ecef}.add-drug-form-header h2{font-size:1.875rem;font-weight:600;color:#343a40}.add-drug-form-header .cancel-button{color:#6c757d;background:none;border:none;padding:8px;border-radius:50%;display:flex;align-items:center;justify-content:center;transition:background-color .2s ease-in-out,color .2s ease-in-out}.add-drug-form-header .cancel-button:hover{background-color:#e9ecef;color:#007bff}.add-drug-form .form-grid{display:grid;grid-template-columns:1fr;gap:20px}@media (min-width: 640px){.add-drug-form .form-grid{grid-template-columns:repeat(2,1fr);-moz-column-gap:24px;column-gap:24px}.add-drug-form .sm-col-span-2{grid-column:span 2 / span 2}}.add-drug-form .form-label{display:block;font-size:.9rem;font-weight:500;color:#495057;margin-bottom:6px}.add-drug-form .custom-text-input{background-color:#f8f9fa;border:1px solid #ced4da;color:#495057;border-radius:8px;padding:10px 14px;transition:border-color .2s ease,box-shadow .2s ease;width:100%;font-size:.95rem}.add-drug-form .custom-text-input:focus{border-color:#007bff;box-shadow:0 0 0 .2rem #007bff40;outline:none;background-color:#fff}.add-drug-form .custom-text-input::-moz-placeholder{color:#6c757d}.add-drug-form .custom-text-input::placeholder{color:#6c757d}.add-drug-form input[type=date].custom-text-input{color-scheme:light}.add-drug-form textarea.custom-text-input{min-height:80px}.add-drug-form .error-message{margin-bottom:16px;padding:12px 16px;background-color:#f8d7da;color:#721c24;border:1px solid #f5c6cb;border-radius:8px;font-size:.9rem}.add-drug-form .error-message,.add-drug-form .error-message *{color:#721c24!important}.add-drug-form .form-actions{margin-top:32px;display:flex;justify-content:flex-end;gap:12px}.add-drug-form .form-button{padding:10px 20px;border-radius:8px;font-size:.95rem;font-weight:500;transition:all .2s ease-in-out;box-shadow:0 2px 4px #0000000d;border:1px solid transparent}.add-drug-form .form-button:focus{outline:2px solid transparent;outline-offset:2px;box-shadow:0 0 0 .2rem #007bff40}.add-drug-form .form-button:disabled{opacity:.65;cursor:not-allowed}.add-drug-form .cancel-form-button{background-color:#f8f9fa;color:#495057;border-color:#ced4da}.add-drug-form .cancel-form-button:hover:not(:disabled){background-color:#e9ecef;border-color:#adb5bd}.add-drug-form .cancel-form-button:focus{box-shadow:0 0 0 .2rem #6c757d80}.add-drug-form .submit-form-button{background-color:#007bff;color:#fff}.add-drug-form .submit-form-button:hover:not(:disabled){background-color:#0056b3}.add-drug-form .submit-form-button:focus{box-shadow:0 0 0 .2rem #007bff80}.spinner{display:inline-block;width:1em;height:1em;vertical-align:-.125em;border:.15em solid currentColor;border-right-color:transparent;border-radius:50%;animation:spinner-border .75s linear infinite;margin-left:8px}@keyframes spinner-border{to{transform:rotate(360deg)}}@media (prefers-color-scheme: dark){.add-drug-form-page{background-color:#111827;color:#e5e7eb}.add-drug-form-container{background-color:#1f2937;border-color:#374151;box-shadow:0 8px 16px #00000040}.add-drug-form-header{border-bottom-color:#374151}.add-drug-form-header h2{color:#f3f4f6}.add-drug-form-header .cancel-button{color:#9ca3af}.add-drug-form-header .cancel-button:hover{background-color:#374151;color:#818cf8}.add-drug-form .form-label{color:#d1d5db}.add-drug-form .custom-text-input{background-color:#374151;border-color:#6b7280;color:#e5e7eb}.add-drug-form .custom-text-input:focus{border-color:#60a5fa;box-shadow:0 0 0 .2rem #60a5fa4d;background-color:#1f2937}.add-drug-form .custom-text-input::-moz-placeholder{color:#9ca3af}.add-drug-form .custom-text-input::placeholder{color:#9ca3af}.add-drug-form input[type=date].custom-text-input{color-scheme:dark}.add-drug-form .error-message,.add-drug-form .error-message *{background-color:#7f1d1d;color:#fecaca!important;border-color:#b91c1c}.add-drug-form .cancel-form-button{background-color:#4b5563;color:#e5e7eb;border-color:#6b7280}.add-drug-form .cancel-form-button:hover:not(:disabled){background-color:#6b7280;border-color:#9ca3af}.add-drug-form .cancel-form-button:focus{box-shadow:0 0 0 .2rem #6b728080}.add-drug-form .submit-form-button{background-color:#3b82f6;color:#fff}.add-drug-form .submit-form-button:hover:not(:disabled){background-color:#2563eb}.add-drug-form .submit-form-button:focus{box-shadow:0 0 0 .2rem #3b82f680}}.tooltip{position:absolute;bottom:100%;left:50%;transform:translate(-50%);margin-bottom:8px;padding:8px;width:256px;background-color:#1f2937;color:#fff;font-size:14px;border-radius:6px;opacity:0;transition:opacity .3s;pointer-events:none}.group:hover .tooltip{opacity:1}.edit-drug-form-page{background-color:#f8f9fa;color:#212529;font-family:Inter,sans-serif;min-height:100vh;padding:24px;display:flex;align-items:flex-start;justify-content:center}.edit-drug-form-container{background-color:#fff;border:1px solid #dee2e6;border-radius:12px;padding:32px 40px;box-shadow:0 8px 16px #00000014;width:100%;max-width:700px}@media (max-width: 767px){.edit-drug-form-page{padding:16px}.edit-drug-form-container{padding:20px}.edit-drug-form-header h2{font-size:1.5rem}.edit-drug-form .form-grid{grid-template-columns:1fr}.edit-drug-form .sm-col-span-2{grid-column:span 1 / span 1}.edit-drug-form .form-actions{flex-direction:column}.edit-drug-form .form-button{width:100%}}.edit-drug-form-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px;padding-bottom:16px;border-bottom:1px solid #e9ecef}.edit-drug-form-header h2{font-size:1.875rem;font-weight:600;color:#343a40;word-break:break-all}.edit-drug-form-header .cancel-button{color:#6c757d;background:none;border:none;padding:8px;border-radius:50%;display:flex;align-items:center;justify-content:center;transition:background-color .2s ease-in-out,color .2s ease-in-out;flex-shrink:0}.edit-drug-form-header .cancel-button:hover{background-color:#e9ecef;color:#007bff}.edit-drug-form .form-grid{display:grid;grid-template-columns:1fr;gap:20px}@media (min-width: 640px){.edit-drug-form .form-grid{grid-template-columns:repeat(2,1fr);-moz-column-gap:24px;column-gap:24px}.edit-drug-form .sm-col-span-2{grid-column:span 2 / span 2}}.edit-drug-form .form-label{display:block;font-size:.9rem;font-weight:500;color:#495057;margin-bottom:6px}.edit-drug-form .custom-text-input{background-color:#f8f9fa;border:1px solid #ced4da;color:#495057;border-radius:8px;padding:10px 14px;transition:border-color .2s ease,box-shadow .2s ease;width:100%;font-size:.95rem}.edit-drug-form .custom-text-input:focus{border-color:#007bff;box-shadow:0 0 0 .2rem #007bff40;outline:none;background-color:#fff}.edit-drug-form .custom-text-input::-moz-placeholder{color:#6c757d}.edit-drug-form .custom-text-input::placeholder{color:#6c757d}.edit-drug-form input[type=date].custom-text-input{color-scheme:light}.edit-drug-form textarea.custom-text-input{min-height:80px}.edit-drug-form .error-message-submit{margin-bottom:16px;padding:12px 16px;background-color:#f8d7da;color:#721c24;border:1px solid #f5c6cb;border-radius:8px;font-size:.9rem}.edit-drug-form .error-message-submit,.edit-drug-form .error-message-submit *{color:#721c24!important}.edit-drug-form .loading-message,.edit-drug-form .error-message-load,.edit-drug-form .not-found-message{padding:24px;text-align:center;font-size:1.1rem;color:#6c757d}.edit-drug-form .error-message-load{background-color:#f8d7da;color:#721c24;border:1px solid #f5c6cb;border-radius:8px}.edit-drug-form .form-actions{margin-top:32px;display:flex;justify-content:flex-end;gap:12px}.edit-drug-form .form-button{padding:10px 20px;border-radius:8px;font-size:.95rem;font-weight:500;transition:all .2s ease-in-out;box-shadow:0 2px 4px #0000000d;border:1px solid transparent}.edit-drug-form .form-button:focus{outline:2px solid transparent;outline-offset:2px;box-shadow:0 0 0 .2rem #007bff40}.edit-drug-form .form-button:disabled{opacity:.65;cursor:not-allowed}.edit-drug-form .cancel-form-button{background-color:#f8f9fa;color:#495057;border-color:#ced4da}.edit-drug-form .cancel-form-button:hover:not(:disabled){background-color:#e9ecef;border-color:#adb5bd}.edit-drug-form .cancel-form-button:focus{box-shadow:0 0 0 .2rem #6c757d80}.edit-drug-form .submit-form-button{background-color:#17a2b8;color:#fff}.edit-drug-form .submit-form-button:hover:not(:disabled){background-color:#117a8b}.edit-drug-form .submit-form-button:focus{box-shadow:0 0 0 .2rem #17a2b880}@media (prefers-color-scheme: dark){.edit-drug-form-page{background-color:#111827;color:#e5e7eb}.edit-drug-form-container{background-color:#1f2937;border-color:#374151;box-shadow:0 8px 16px #00000040}.edit-drug-form-header{border-bottom-color:#374151}.edit-drug-form-header h2{color:#f3f4f6}.edit-drug-form-header .cancel-button{color:#9ca3af}.edit-drug-form-header .cancel-button:hover{background-color:#374151;color:#818cf8}.edit-drug-form .form-label{color:#d1d5db}.edit-drug-form .custom-text-input{background-color:#374151;border-color:#6b7280;color:#e5e7eb}.edit-drug-form .custom-text-input:focus{border-color:#60a5fa;box-shadow:0 0 0 .2rem #60a5fa4d;background-color:#1f2937}.edit-drug-form .custom-text-input::-moz-placeholder{color:#9ca3af}.edit-drug-form .custom-text-input::placeholder{color:#9ca3af}.edit-drug-form input[type=date].custom-text-input{color-scheme:dark}.edit-drug-form .error-message-submit,.edit-drug-form .error-message-submit *{background-color:#7f1d1d;color:#fecaca!important;border-color:#b91c1c}.edit-drug-form .loading-message,.edit-drug-form .not-found-message{color:#9ca3af}.edit-drug-form .error-message-load{background-color:#7f1d1d;color:#fecaca;border-color:#b91c1c}.edit-drug-form .cancel-form-button{background-color:#4b5563;color:#e5e7eb;border-color:#6b7280}.edit-drug-form .cancel-form-button:hover:not(:disabled){background-color:#6b7280;border-color:#9ca3af}.edit-drug-form .cancel-form-button:focus{box-shadow:0 0 0 .2rem #6b728080}.edit-drug-form .submit-form-button{background-color:#0d9488;color:#fff}.edit-drug-form .submit-form-button:hover:not(:disabled){background-color:#0f766e}.edit-drug-form .submit-form-button:focus{box-shadow:0 0 0 .2rem #0d948880}}.add-patient-page-container{background-color:#f8f9fa;padding:2.5rem 1rem 2rem;box-sizing:border-box}.add-patient-card{background-color:#fff;border-radius:12px;box-shadow:0 8px 16px #0000000d;padding:2rem;width:100%;max-width:768px;margin-left:auto;margin-right:auto;margin-bottom:1.5rem}.add-patient-title{font-size:1.75rem;font-weight:700;color:#343a40;margin-bottom:1.5rem;text-align:center;display:flex;align-items:center;justify-content:center}.add-patient-title svg{margin-right:.75rem;margin-bottom:.25rem}.form-fieldset{border:1px solid #dee2e6;border-radius:8px;padding:1.5rem;margin-bottom:1.5rem}.form-fieldset legend{font-size:1.125rem;font-weight:600;color:#495057;padding:0 .75rem;margin-bottom:.75rem}.form-input,.form-select,.form-textarea{width:100%;padding:.75rem 1rem;border:1px solid #ced4da;border-radius:6px;font-size:.95rem;color:#495057;background-color:#fff;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}.form-input:focus,.form-select:focus,.form-textarea:focus{border-color:#007bff;outline:0;box-shadow:0 0 0 .2rem #007bff40}.form-input::-moz-placeholder,.form-textarea::-moz-placeholder{color:#adb5bd}.form-input::placeholder,.form-textarea::placeholder{color:#adb5bd}.form-select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right 1rem center;background-size:1em;padding-right:2.5rem}.form-label{display:block;font-size:.875rem;font-weight:500;color:#495057;margin-bottom:.375rem}.search-section{border:1px solid #e9ecef;padding:1.25rem;border-radius:8px;margin-bottom:1.5rem;background-color:#f8f9fa}.search-input-wrapper{position:relative;flex-grow:1}.search-input-wrapper svg{position:absolute;left:.75rem;top:50%;transform:translateY(-50%);color:#6c757d;pointer-events:none}.search-input-wrapper .form-input{padding-left:2.5rem}.search-results-list{margin-top:.75rem;border:1px solid #dee2e6;border-radius:6px;background-color:#fff;max-height:10rem;overflow-y:auto}.search-results-list li{padding:.75rem 1rem;border-bottom:1px solid #e9ecef;cursor:pointer;transition:background-color .15s ease-in-out;font-size:.9rem}.search-results-list li:last-child{border-bottom:none}.search-results-list li:hover{background-color:#e2f3f5}.search-info-text{font-size:.875rem;color:#6c757d;margin-top:.5rem}.search-info-text.searching{color:#007bff}.btn{display:inline-flex;align-items:center;justify-content:center;padding:.625rem 1.25rem;border-radius:6px;font-weight:600;transition:background-color .2s ease-in-out,border-color .2s ease-in-out,color .2s ease-in-out,opacity .2s ease-in-out;cursor:pointer;text-decoration:none;border:1px solid transparent;font-size:.95rem}.btn-primary{background-color:#007bff;color:#fff;border-color:#007bff}.btn-primary:hover{background-color:#0056b3;border-color:#0056b3}.btn-primary:disabled,.btn-primary.disabled{background-color:#007bff;opacity:.65;cursor:not-allowed}.btn-danger{background-color:#dc3545;color:#fff;border-color:#dc3545}.btn-danger:hover{background-color:#c82333;border-color:#bd2130}.btn-icon{margin-right:.5rem}.back-button{color:#495057;transition:color .15s ease-in-out;display:flex;align-items:center;font-size:.9rem;background:none;border:none;padding:.25rem .5rem;cursor:pointer}.back-button:hover{color:#0056b3}.back-button svg{margin-right:.25rem}.alert{padding:1rem 1.25rem;margin-bottom:1rem;border:1px solid transparent;border-radius:6px}.alert-danger{color:#721c24;background-color:#f8d7da;border-color:#f5c6cb}.alert-success{color:#155724;background-color:#d4edda;border-color:#c3e6cb}.alert strong{font-weight:700}.form-grid{display:grid;grid-template-columns:1fr;gap:1.25rem;margin-top:.5rem}@media (min-width: 768px){.form-grid-cols-2{grid-template-columns:repeat(2,1fr)}.form-grid-col-span-2{grid-column:span 2 / span 2}}.fieldset-disabled{opacity:.6;background-color:#f8f9fa;pointer-events:none}.fieldset-disabled legend{color:#6c757d}@media (max-width: 767px){.add-patient-page-container{padding-top:1.5rem;padding-left:.5rem;padding-right:.5rem}.add-patient-card,.form-fieldset{padding:1rem}.search-section{padding:.75rem}.add-patient-title{font-size:1.5rem}}@media (prefers-color-scheme: dark){.add-patient-page-container{background-color:#111827}.add-patient-card{background-color:#1f2937;box-shadow:0 8px 16px #0003}.add-patient-title{color:#e5e7eb}.form-fieldset{border:1px solid #4b5563}.form-fieldset legend{color:#d1d5db}.form-input,.form-select,.form-textarea{color:#e5e7eb;background-color:#374151;border:1px solid #6b7280}.form-input:focus,.form-select:focus,.form-textarea:focus{border-color:#3b82f6;box-shadow:0 0 0 .2rem #3b82f64d}.form-input::-moz-placeholder,.form-textarea::-moz-placeholder{color:#9ca3af}.form-input::placeholder,.form-textarea::placeholder{color:#9ca3af}.form-select{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23e5e7eb' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e")}.form-label{color:#d1d5db}.search-section{border:1px solid #374151;background-color:#1f2937}.search-input-wrapper svg{color:#9ca3af}.search-results-list{border:1px solid #4b5563;background-color:#374151}.search-results-list li{border-bottom:1px solid #4b5563;color:#e5e7eb}.search-results-list li:hover{background-color:#4b5563}.search-info-text{color:#9ca3af}.search-info-text.searching{color:#60a5fa}.btn-primary{background-color:#3b82f6;color:#fff;border-color:#3b82f6}.btn-primary:hover{background-color:#2563eb;border-color:#2563eb}.btn-primary:disabled,.btn-primary.disabled{background-color:#3b82f6;opacity:.5}.btn-danger{background-color:#ef4444;color:#fff;border-color:#ef4444}.btn-danger:hover{background-color:#dc2626;border-color:#dc2626}.back-button{color:#d1d5db}.back-button:hover{color:#60a5fa}.alert-danger{color:#fecaca;background-color:#450a0a;border-color:#7f1d1d}.alert-success{color:#a7f3d0;background-color:#052e16;border-color:#15803d}.fieldset-disabled{opacity:.6;background-color:#1f2937}.fieldset-disabled legend{color:#9ca3af}}.staff-page-container{max-width:800px;margin:2rem auto;padding:2rem;background-color:#f9f9f9;border-radius:8px;box-shadow:0 4px 12px #0000001a;font-family:Arial,sans-serif}.staff-page-container h1,.staff-page-container h2{color:#333;text-align:center;margin-bottom:1.5rem;font-weight:600}.staff-form{display:flex;flex-direction:column;gap:1.5rem}.staff-form .form-group{display:flex;flex-direction:column;gap:.5rem}.staff-form label{font-weight:500;color:#555}.staff-form input[type=text],.staff-form input[type=email],.staff-form input[type=password],.staff-form input[type=tel],.staff-form input[type=date],.staff-form select,.staff-form textarea{width:100%;padding:.75rem;border:1px solid #ccc;border-radius:4px;font-size:1rem;box-sizing:border-box;transition:border-color .3s ease}.staff-form input[type=text]:focus,.staff-form input[type=email]:focus,.staff-form input[type=password]:focus,.staff-form input[type=tel]:focus,.staff-form input[type=date]:focus,.staff-form select:focus,.staff-form textarea:focus{border-color:#007bff;outline:none;box-shadow:0 0 0 .2rem #007bff40}.staff-form .checkbox-group{display:flex;align-items:center;gap:.5rem}.staff-form .checkbox-group input[type=checkbox]{margin-right:.5rem;width:auto}.staff-form button[type=submit]{padding:.75rem 1.5rem;background-color:#007bff;color:#fff;border:none;border-radius:4px;font-size:1rem;cursor:pointer;transition:background-color .3s ease;align-self:flex-start}.staff-form button[type=submit]:hover{background-color:#0056b3}.staff-table-container{margin-top:2rem;overflow-x:auto}.staff-table{width:100%;border-collapse:collapse;background-color:#fff;box-shadow:0 2px 8px #0000000d}.staff-table th,.staff-table td{padding:.75rem 1rem;border:1px solid #e0e0e0;text-align:left;font-size:.95rem}.staff-table th{background-color:#f2f2f2;font-weight:600;color:#333}.staff-table tbody tr:nth-child(2n){background-color:#f9f9f9}.staff-table tbody tr:hover{background-color:#f1f1f1}.staff-table .actions a,.staff-table .actions button{margin-right:.5rem;padding:.3rem .6rem;font-size:.85rem;border-radius:3px;text-decoration:none;cursor:pointer}.staff-table .actions .edit-link{color:#007bff;border:1px solid #007bff}.staff-table .actions .edit-link:hover{background-color:#007bff;color:#fff}.staff-table .actions .delete-button{color:#dc3545;border:1px solid #dc3545;background-color:transparent}.staff-table .actions .delete-button:hover{background-color:#dc3545;color:#fff}.error-message{color:#dc3545;font-size:.875rem;margin-top:.25rem}.success-message{color:#28a745;font-size:.875rem;margin-top:.25rem}.loading-message{text-align:center;color:#555;font-style:italic}@media (max-width: 768px){.staff-page-container{margin:1rem;padding:1rem}.staff-form input[type=text],.staff-form input[type=email],.staff-form input[type=password],.staff-form input[type=tel],.staff-form input[type=date],.staff-form select,.staff-form textarea{font-size:.9rem;padding:.6rem}.staff-form button[type=submit]{width:100%;font-size:.95rem}.staff-table th,.staff-table td{font-size:.85rem;padding:.5rem .75rem}}@media (prefers-color-scheme: dark){.staff-page-container{background-color:#1f2937;box-shadow:0 4px 12px #0006}.staff-page-container h1,.staff-page-container h2{color:#e5e7eb}.staff-form label{color:#d1d5db}.staff-form input[type=text],.staff-form input[type=email],.staff-form input[type=password],.staff-form input[type=tel],.staff-form input[type=date],.staff-form select,.staff-form textarea{background-color:#374151;border-color:#6b7280;color:#e5e7eb}.staff-form input[type=date]{color-scheme:dark}.staff-form select option{background-color:#374151;color:#e5e7eb}.staff-form input[type=text]:focus,.staff-form input[type=email]:focus,.staff-form input[type=password]:focus,.staff-form input[type=tel]:focus,.staff-form input[type=date]:focus,.staff-form select:focus,.staff-form textarea:focus{border-color:#60a5fa;box-shadow:0 0 0 .2rem #60a5fa4d}.staff-form .checkbox-group input[type=checkbox]{accent-color:#60a5fa}.staff-form .checkbox-group{color:#d1d5db}.staff-form button[type=submit]{background-color:#3b82f6}.staff-form button[type=submit]:hover{background-color:#2563eb}.staff-table{background-color:#1f2937;box-shadow:0 2px 8px #0003}.staff-table th,.staff-table td{border-color:#4b5563}.staff-table th{background-color:#374151;color:#e5e7eb}.staff-table tbody tr:nth-child(2n){background-color:#2c3a4b}.staff-table tbody tr:hover{background-color:#4b5563}.staff-table td{color:#d1d5db}.staff-table .actions .edit-link{color:#818cf8;border-color:#818cf8}.staff-table .actions .edit-link:hover{background-color:#818cf8;color:#1e1b4b}.staff-table .actions .delete-button{color:#f87171;border-color:#f87171}.staff-table .actions .delete-button:hover{background-color:#f87171;color:#7f1d1d}.error-message{color:#fca5a5}.success-message{color:#a7f3d0}.loading-message{color:#9ca3af}}.edit-complaint-page{display:flex;flex-direction:column;background-color:#f4f6f8;color:#333;height:100vh}.edit-complaint-header{display:flex;align-items:center;justify-content:space-between;padding:.5rem 1rem;border-bottom:1px solid #e5e7eb;background-color:#fff;box-shadow:0 1px 3px #0000000d;position:sticky;top:0;z-index:20;flex-shrink:0}.edit-complaint-header .back-button{background-color:#6b7280;color:#fff;font-weight:700;padding:.5rem 1rem;border-radius:.375rem;font-size:.9rem;transition:background-color .2s}.edit-complaint-header .back-button:hover{background-color:#4b5563}.edit-complaint-header .back-button:disabled{opacity:.5}.edit-complaint-patient-details{font-size:.875rem;color:#374151;background-color:#e9ecef;padding:.5rem 1rem;border-radius:.375rem;border:1px solid #dee2e6;white-space:normal;overflow:visible;text-overflow:clip;text-align:center;min-height:2.5rem;display:flex;align-items:center;justify-content:center}.edit-complaint-patient-details strong{color:#1f2937}.edit-complaint-content-area{flex-grow:1;padding:.25rem 1rem;display:flex;min-height:0}.edit-complaint-main-column{display:flex;flex-direction:column;gap:.25rem;overflow-y:auto}.draggable-divider{width:10px;background-color:#e5e7eb;cursor:col-resize;flex-shrink:0;display:flex;align-items:center;justify-content:center;border-left:1px solid #d1d5db;border-right:1px solid #d1d5db}.draggable-divider:hover{background-color:#d1d5db}.edit-complaint-context-column{background-color:#fff;padding:.5rem;overflow-y:auto}.loading-animation-container{display:flex;justify-content:center;align-items:center;padding:.5rem;min-height:40px}.breathing-ball{width:20px;height:20px;background-color:#3b82f6;border-radius:50%;animation:breathing 1.5s ease-in-out infinite}@keyframes breathing{0%,to{transform:scale(.8);opacity:.7}50%{transform:scale(1.2);opacity:1}}.ai-error-message,.general-error-message{color:#ef4444;font-size:.875rem;padding:.5rem;border:1px solid #fca5a5;border-radius:.375rem;background-color:#fee2e2;margin-bottom:.5rem}.ai-function-status{padding:.5rem .75rem;margin-bottom:.5rem;border-radius:.375rem;font-size:.875rem;display:flex;align-items:center}.ai-function-status.error{background-color:#fee2e2;border:1px solid #fca5a5;color:#b91c1c}.ai-function-status.success{background-color:#dcfce7;border:1px solid #86efac;color:#15803d}.ai-function-status.info{background-color:#eff6ff;border:1px solid #bfdbfe;color:#1e40af}.ai-function-status .animate-spin{width:.75rem;height:.75rem;border-width:2px;margin-right:.25rem}.ai-response-container{background-color:#1e293b;color:#e2e8f0;padding:.75rem 1rem;border-radius:.5rem;margin-bottom:.25rem;font-size:.875rem;line-height:1.6;position:relative;box-shadow:0 2px 4px #0000001a}.ai-function-call-block{background-color:#334155;color:#e2e8f0;padding:.75rem 1rem;border-radius:.5rem;margin-bottom:.25rem;font-size:.875rem;position:relative}.ai-response-container h1,.ai-response-container h2,.ai-response-container h3{color:#93c5fd;margin-top:.5em;margin-bottom:.25em}.ai-response-container strong{color:#cbd5e1}.ai-response-container table,.ai-function-call-block table{width:100%;border-collapse:collapse;margin:.5rem 0;font-size:.8rem}.ai-response-container th,.ai-response-container td,.ai-function-call-block th,.ai-function-call-block td{border:1px solid #d1d5db;padding:.375rem .5rem;text-align:left;background-color:#fff;color:#1f2937}.ai-response-container th,.ai-function-call-block th{color:#1f2937}.ai-response-container code{background-color:#334155;padding:.125rem .25rem;border-radius:.25rem;font-family:monospace;font-size:.9em}.ai-response-container pre{background-color:#0f172a;padding:.75rem;border-radius:.375rem;overflow-x:auto;margin:.5rem 0}.ai-response-container pre code{background-color:transparent;padding:0}.ai-json-details-container{margin-top:.5rem;border-top:1px solid #475569;padding-top:.5rem}.ai-json-toggle-button{background-color:#475569;color:#e2e8f0;padding:.25rem .5rem;border:none;border-radius:.25rem;cursor:pointer;font-size:.75rem;display:flex;align-items:center;margin-bottom:.25rem;transition:background-color .2s}.ai-json-toggle-button:hover{background-color:#52525b}.ai-json-pre{background-color:#0f172a;color:#94a3b8;padding:.5rem;border-radius:.375rem;overflow-x:auto;font-size:.8rem;max-height:200px}.ai-response-actions{position:absolute;top:.5rem;right:.5rem;display:flex;gap:.25rem;opacity:.6;transition:opacity .2s}.ai-response-container:hover .ai-response-actions,.ai-function-call-block:hover .ai-response-actions{opacity:1}.ai-response-actions button{background-color:#475569;color:#cbd5e1;border:none;border-radius:.25rem;padding:.25rem;display:flex;align-items:center;justify-content:center;cursor:pointer}.ai-response-actions button:hover{background-color:#52525b}.ai-response-actions button:disabled{opacity:.4;cursor:not-allowed}.ai-context-container{display:flex;flex-direction:column;gap:.5rem}.ai-context-header{font-size:1.25rem;font-weight:600;color:#111827;padding-bottom:.25rem;border-bottom:1px solid #d1d5db;margin-bottom:.5rem;position:relative;top:0;background-color:#fff;z-index:10;display:flex;justify-content:space-between;align-items:center}.ai-context-section{background-color:#fff;padding:.5rem;border-radius:.375rem;border:1px solid #e5e7eb;transition:none}.ai-context-section-title{font-size:.9375rem;font-weight:600;color:#374151;display:flex;align-items:center;gap:.375rem}.ai-context-section .flex.justify-between.items-center{padding-bottom:.25rem;margin-bottom:.25rem}.ai-context-section .edit-button{color:#6b7280;background-color:transparent;padding:.25rem .75rem;border-radius:.25rem;transition:background-color .15s,color .15s}.ai-context-section .edit-button:hover:not(:disabled){background-color:#f3f4f6;color:#374151}.ai-context-section .edit-button:disabled{opacity:.4;cursor:not-allowed}.ai-context-text{font-size:.8125rem;color:#4b5563;line-height:1.65;word-break:break-word}.ai-context-text .italic.text-gray-400{color:#9ca3af;font-style:italic}.ai-context-text span.text-gray-400.ml-1{color:#6b7280;margin-left:.25rem;font-size:.6875rem}.ai-context-text .font-medium{font-weight:500;color:#1f2937}.ai-context-text strong{font-weight:500;color:#111827}.ai-context-section .prose{font-size:.8125rem;color:#4b5563;line-height:1.65}.ai-context-section .prose table{font-size:.75rem}.ai-context-section .prose th,.ai-context-section .prose td{padding:.375rem .5rem;border-color:#e5e7eb}.ai-context-section .prose th{background-color:#f3f4f6}.ai-context-section p.ai-context-text.text-gray-400.mt-1{font-size:.6875rem;color:#6b7280;margin-top:.25rem}.grouped-history-date{font-size:.75rem;font-weight:600;color:#4b5563;margin-top:.5rem;margin-bottom:.125rem;padding-bottom:.125rem;border-bottom:1px solid #e5e7eb}.grouped-history-item-container{padding-left:.2rem}.grouped-history-item{background-color:#f9fafb;padding:.2rem;border-radius:.25rem;transition:background-color .15s ease-in-out;display:flex;justify-content:space-between;align-items:center}.grouped-history-item:hover{background-color:#f3f4f6}.grouped-history-item .ai-context-text{flex-grow:1;margin-right:.375rem}.grouped-history-item .flex.items-center.space-x-1 button{background-color:transparent;border:1px solid transparent;padding:.3rem;border-radius:.25rem;display:flex;align-items:center;justify-content:center;transition:background-color .2s,color .2s,border-color .2s;flex-shrink:0}.grouped-history-item .flex.items-center.space-x-1 button:hover:not(:disabled){background-color:#e0e7ff;border-color:#c7d2fe}.grouped-history-item .flex.items-center.space-x-1 button:disabled{opacity:.5;cursor:not-allowed}.grouped-history-item button[title*=Edit]{color:#4f46e5}.grouped-history-item button[title*=Edit]:hover:not(:disabled){color:#3730a3;background-color:#e0e7ff}.grouped-history-item button[title*=Print]{color:#9333ea}.grouped-history-item button[title*=Print]:hover:not(:disabled){color:#7e22ce;background-color:#f3e8ff}.grouped-history-item button[title*=Delete]{color:#dc2626}.grouped-history-item button[title*=Delete]:hover:not(:disabled){color:#991b1b;background-color:#fee2e2}.grouped-history-item button[title*=Save]{color:#16a34a}.grouped-history-item button[title*=Save]:hover:not(:disabled){color:#14532d;background-color:#dcfce7}.grouped-history-item button[title*=Cancel]{color:#6b7280}.grouped-history-item button[title*=Cancel]:hover:not(:disabled){color:#374151;background-color:#f3f4f6}.edit-complaint-input-area{padding:0 .25rem;border-top:1px solid #e5e7eb;background-color:#fff;box-shadow:0 -1px 3px #0000000d;flex-shrink:0}.status-messages-container{margin-bottom:.5rem;max-height:60px;overflow-y:auto}.status-messages-container .loading-animation-container{height:20px;margin:5px 0}.status-messages-container .loading-animation-container .breathing-ball{width:15px;height:15px}.status-messages-container .text-center.text-red-500.text-xs.mb-1{text-align:center;color:#ef4444;font-size:.75rem;margin-bottom:.25rem}.follow-up-question-container{background-color:#e0f2fe;border:1px solid #7dd3fc;padding:.75rem;border-radius:.375rem;margin-bottom:.75rem}.follow-up-question-container .question-text{font-size:.9rem;font-weight:600;color:#075985;margin-bottom:.5rem}.follow-up-question-container .options-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:.5rem}.follow-up-question-container .option-button{background-color:#fff;color:#0e7490;border:1px solid #a5f3fc;padding:.375rem .75rem;border-radius:.375rem;font-size:.8rem;text-align:center;cursor:pointer;transition:background-color .2s,border-color .2s}.follow-up-question-container .option-button:hover{background-color:#f0f9ff;border-color:#7dd3fc}.speech-error-display{color:#ef4444;font-size:.75rem;padding:.375rem;margin-bottom:.25rem;border:1px solid #fca5a5;border-radius:.25rem;background-color:#fee2e2}.selected-file-display{font-size:.75rem;color:#4b5563;padding:.375rem .5rem;margin-bottom:.25rem;border:1px solid #d1d5db;border-radius:.25rem;background-color:#f3f4f6;display:flex;justify-content:space-between;align-items:center}.selected-file-display .remove-file-button{color:#ef4444;background:none;border:none;font-size:.875rem;cursor:pointer;padding:0 .25rem}.selected-file-display .remove-file-button:hover{color:#b91c1c}.input-wrapper{display:flex;align-items:flex-end;gap:.5rem}.main-input-container{position:relative;flex-grow:1}.complaint-textarea{box-sizing:border-box;width:100%;padding:.625rem 13.25rem 2.75rem 1rem;border:1px solid #d1d5db;border-radius:.5rem;font-size:.875rem;line-height:1.5;background-color:#fff;color:#1f2937;resize:none;overflow-y:auto;min-height:56px;max-height:150px;height:56px;border-radius:.375rem;transition:border-color .2s,box-shadow .2s}.complaint-textarea:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 2px #3b82f64d}.complaint-textarea::-moz-placeholder{color:#9ca3af}.complaint-textarea::placeholder{color:#9ca3af}.complaint-textarea:disabled{background-color:#f3f4f6;cursor:not-allowed}.chat-input-actions-container{position:absolute;bottom:.6rem;right:.6rem;display:flex;gap:.4rem;align-items:center}.chat-input-actions-container button{width:2.25rem;height:2.25rem;display:flex;align-items:center;justify-content:center;border-radius:9999px;transition:background-color .2s ease-in-out,transform .1s ease-in-out;padding:0;border:none}.chat-input-actions-container button:active:not(:disabled){transform:scale(.95)}.chat-input-actions-container button:disabled{opacity:.6;cursor:not-allowed}.chat-input-actions-container .icon-button{background-color:#edf2f7;color:#4a5568}.chat-input-actions-container .icon-button:hover:not(:disabled){background-color:#e2e8f0;color:#2d3748}.chat-input-actions-container .mic-button{background-color:#edf2f7;color:#4a5568}.chat-input-actions-container .mic-button.listening{background-color:#e53e3e;color:#fff}.chat-input-actions-container .mic-button.listening:hover:not(:disabled){background-color:#c53030}.chat-input-actions-container .mic-button:hover:not(:disabled):not(.listening){background-color:#e2e8f0;color:#2d3748}.chat-input-actions-container .send-button{background-color:#5a67d8;color:#fff;width:2.5rem;height:2.5rem}.chat-input-actions-container .send-button:hover:not(:disabled){background-color:#4c51bf}.chat-input-actions-container .send-button:disabled{background-color:#a0aec0}.chat-input-actions-container .send-button .animate-spin{width:.875rem;height:.875rem;border-width:2px}.context-edit-textarea{width:100%;padding:.5rem .75rem;border:1px solid #d1d5db;border-radius:.375rem;font-size:.8125rem;line-height:1.6;background-color:#fff;color:#1f2937;min-height:70px;margin-bottom:.625rem;transition:border-color .15s,box-shadow .15s}.context-edit-textarea:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 2px #3b82f640}.context-edit-textarea:disabled{background-color:#f3f4f6;cursor:not-allowed;opacity:.7}.context-edit-actions{display:flex;justify-content:flex-end;gap:.5rem}.context-edit-actions button{padding:.375rem .75rem;font-size:.75rem;font-weight:500;border-radius:.375rem;transition:background-color .15s,border-color .15s,color .15s,opacity .15s;line-height:1.25}.context-edit-actions .button-secondary{background-color:#fff;color:#4b5563;border:1px solid #d1d5db}.context-edit-actions .button-secondary:hover:not(:disabled){background-color:#f9fafb;border-color:#9ca3af;color:#374151}.context-edit-actions .button-primary{color:#fff;border:1px solid transparent}.context-edit-actions .button-primary.blue{background-color:#3b82f6}.context-edit-actions .button-primary.blue:hover:not(:disabled){background-color:#2563eb}.context-edit-actions .button-primary.purple{background-color:#8b5cf6}.context-edit-actions .button-primary.purple:hover:not(:disabled){background-color:#7c3aed}.context-edit-actions button:disabled{opacity:.5;cursor:not-allowed}.context-action-button{display:flex;align-items:center;gap:.25rem;background-color:#e0f2fe;color:#075985;border:1px solid #93c5fd;padding:.375rem .75rem;border-radius:.375rem;font-size:.8rem;font-weight:500;cursor:pointer;transition:background-color .2s,border-color .2s,color .2s}.context-action-button:hover:not(:disabled){background-color:#bfdbfe;border-color:#60a5fa;color:#1e40af}.context-action-button:disabled{opacity:.6;cursor:not-allowed}@media (max-width: 768px){.draggable-divider{display:none}.edit-complaint-header{padding:.25rem .5rem}.edit-complaint-header .edit-complaint-patient-details{font-size:.75rem;padding:.3rem .5rem;min-height:2rem}.edit-complaint-content-area{flex-direction:column;padding:.25rem;gap:.25rem;overflow-y:auto}.edit-complaint-main-column{gap:.25rem;overflow-y:visible}.edit-complaint-context-column{order:-1;margin-bottom:.25rem;overflow-y:visible;padding:.1rem .25rem;border-left:none;border-top:1px solid #e5e7eb;border-bottom:1px solid #e5e7eb}.ai-context-container{gap:.25rem}.ai-context-header{font-size:1.25rem;font-weight:600;color:#111827;padding-bottom:.25rem;border-bottom:1px solid #d1d5db;margin-bottom:.5rem;background-color:#fff;z-index:10;display:flex;justify-content:space-between;align-items:center}.ai-context-container{display:flex;flex-direction:column;gap:.5rem}.ai-context-actions-top{position:absolute;top:.5rem;right:.5rem;display:flex;gap:.5rem}.edit-complaint-input-area{padding:.25rem 0}.status-messages-container{max-height:30px}.follow-up-question-container{padding:.25rem;margin-bottom:.25rem}.follow-up-question-container .question-text{font-size:.75rem}.follow-up-question-container .option-button{font-size:.7rem;padding:.125rem .25rem}.complaint-textarea{padding:.3rem 10.1rem 2.25rem .1rem;min-height:70px;height:70px;max-height:150px;border-radius:.5rem}.chat-input-actions-container{flex-wrap:wrap;justify-content:flex-end;bottom:.25rem;right:.25rem}.chat-input-actions-container button{width:1.5rem;height:1.5rem}.chat-input-actions-container .send-button .lucide{width:.65rem;height:.65rem}}@media (prefers-color-scheme: dark){.edit-complaint-page{background-color:#0f172a;color:#e2e8f0}.edit-complaint-header{background-color:#1e293b;border-bottom-color:#334155;box-shadow:0 1px 3px #0003}.draggable-divider{background-color:#334155;border-left-color:#475569;border-right-color:#475569}.draggable-divider:hover{background-color:#475569}.edit-complaint-header .back-button{background-color:#475569;color:#e2e8f0}.edit-complaint-header .back-button:hover{background-color:#52525b}.edit-complaint-patient-details{background-color:#334155;color:#cbd5e1;border-color:#475569;display:flex;align-items:center;justify-content:center}.edit-complaint-patient-details strong{color:#e2e8f0}.edit-complaint-context-column{background-color:#1e293b;border-left-color:#334155}.ai-error-message,.general-error-message{color:#fca5a5;border-color:#ef4444;background-color:#7f1d1d}.ai-function-status.error{background-color:#7f1d1d;border-color:#ef4444;color:#fca5a5}.ai-function-status.success{background-color:#14532d;border-color:#22c55e;color:#86efac}.ai-function-status.info{background-color:#1e3a8a;border-color:#3b82f6;color:#93c5fd}.ai-response-container th,.ai-response-container td,.ai-function-call-block th,.ai-function-call-block td{border-color:#475569;background-color:#0f172a;color:#cbd5e1}.ai-response-container th,.ai-function-call-block th{color:#e2e8f0}.ai-context-header{color:#e2e8f0;border-bottom-color:#475569;background-color:#1e293b}.ai-context-section{background-color:#273345;border-color:#334155}.ai-context-section-title{color:#cbd5e1}.ai-context-section .edit-button{color:#94a3b8}.ai-context-section .edit-button:hover:not(:disabled){background-color:#334155;color:#e2e8f0}.ai-context-text{color:#94a3b8}.ai-context-text .italic.text-gray-400{color:#64748b}.ai-context-text span.text-gray-400.ml-1{color:#94a3b8}.ai-context-text .font-medium{color:#e2e8f0}.ai-context-text strong{color:#f1f5f9}.ai-context-section .prose{color:#94a3b8}.ai-context-section .prose th,.ai-context-section .prose td{border-color:#334155}.ai-context-section .prose th{background-color:#1e293b;color:#e2e8f0}.ai-context-section .prose td{background-color:#273345;color:#cbd5e1}.ai-context-section p.ai-context-text.text-gray-400.mt-1{color:#64748b}.grouped-history-date{color:#94a3b8;border-bottom-color:#334155}.grouped-history-item{background-color:#1e293b}.grouped-history-item:hover{background-color:#334155}.grouped-history-item button[title*=Delete]{color:#64748b}.grouped-history-item button[title*=Delete]:hover{color:#fca5a5;background-color:#7f1d1d}.edit-complaint-input-area{background-color:#2d3748;border-top-color:#4a5568;box-shadow:0 -2px 5px #0000001a}.status-messages-container .text-center.text-red-500.text-xs.mb-1{color:#feb2b2}.follow-up-question-container{background-color:#2c5282;border-color:#63b3ed}.follow-up-question-container .question-text{color:#bee3f8}.follow-up-question-container .option-button{background-color:#3182ce;color:#ebf8ff;border-color:#63b3ed}.follow-up-question-container .option-button:hover{background-color:#2b6cb0;border-color:#90cdf4}.speech-error-display{color:#feb2b2;border-color:#e53e3e;background-color:#552424}.selected-file-display{color:#cbd5e1;border-color:#718096;background-color:#4a5568}.selected-file-display .remove-file-button{color:#feb2b2}.selected-file-display .remove-file-button:hover{color:#fc8181}.complaint-textarea{border-color:#718096;background-color:#1a202c;color:#e2e8f0}.complaint-textarea:focus{border-color:#63b3ed;box-shadow:0 0 0 3px #63b3ed4d}.complaint-textarea::-moz-placeholder{color:#718096}.complaint-textarea::placeholder{color:#718096}.complaint-textarea:disabled{background-color:#2d3748;opacity:.7}.chat-input-actions-container .icon-button{background-color:#4a5568;color:#cbd5e1}.chat-input-actions-container .icon-button:hover:not(:disabled){background-color:#718096;color:#e2e8f0}.chat-input-actions-container .mic-button{background-color:#4a5568;color:#cbd5e1}.chat-input-actions-container .mic-button.listening{background-color:#e53e3e;color:#fff}.chat-input-actions-container .mic-button.listening:hover:not(:disabled){background-color:#c53030}.chat-input-actions-container .mic-button:hover:not(:disabled):not(.listening){background-color:#718096;color:#e2e8f0}.chat-input-actions-container .send-button{background-color:#4c51bf;color:#fff}.chat-input-actions-container .send-button:hover:not(:disabled){background-color:#434190}.chat-input-actions-container .send-button:disabled{background-color:#718096}.context-edit-textarea{border-color:#718096;background-color:#1a202c;color:#cbd5e1}.context-edit-textarea:focus{border-color:#63b3ed;box-shadow:0 0 0 3px #63b3ed40}.context-edit-textarea:disabled{background-color:#2d3748}.context-edit-actions .button-secondary{background-color:#4a5568;color:#cbd5e1;border-color:#718096}.context-edit-actions .button-secondary:hover:not(:disabled){background-color:#718096;border-color:#a0aec0;color:#e2e8f0}.context-edit-actions .button-primary.blue{background-color:#3182ce}.context-edit-actions .button-primary.blue:hover:not(:disabled){background-color:#2b6cb0}.context-edit-actions .button-primary.purple{background-color:#6b46c1}.context-edit-actions .button-primary.purple:hover:not(:disabled){background-color:#553c9a}@media (max-width: 768px){.edit-complaint-context-column{border-top-color:#334155;border-bottom-color:#334155}.ai-context-header{background-color:#1e293b}}}.billing-component-container{padding:20px;background-color:#f9fafb;border-radius:8px;box-shadow:0 4px 6px #0000001a;font-family:Arial,sans-serif;color:#333}.billing-header{display:flex;justify-content:space-between;align-items:center;border-bottom:2px solid #e5e7eb;padding-bottom:12px;margin-bottom:20px;flex-wrap:wrap;gap:15px}.billing-header h2{font-size:1.75rem;font-weight:600;color:#111827}.default-fee-section{display:flex;align-items:center;gap:8px}.default-fee-section label{font-size:.9rem;font-weight:500;color:#4b5563}.default-fee-section input{width:100px;padding:8px 10px;border:1px solid #d1d5db;border-radius:6px;font-size:.9rem;transition:border-color .2s,box-shadow .2s}.default-fee-section input:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 2px #2563eb33}.default-fee-section button{padding:8px;background-color:#e5e7eb;color:#374151;border:none;border-radius:6px;cursor:pointer;transition:background-color .2s}.default-fee-section button:hover{background-color:#d1d5db}.discount-section{display:flex;align-items:center;gap:8px;flex-shrink:0;margin-left:auto}.discount-section label{font-size:.9rem;font-weight:500;color:#4b5563}.discount-section input{width:80px;padding:8px 10px;border:1px solid #d1d5db;border-radius:6px;font-size:.9rem;transition:border-color .2s,box-shadow .2s}.discount-section input:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 2px #2563eb33}.discount-section .discount-value{font-size:1rem;font-weight:600;color:#0d9488;padding:8px 0}@media (prefers-color-scheme: dark){.discount-section label{color:#d1d5db}.discount-section input{background-color:#374151;border-color:#6b7280;color:#e5e7eb}.discount-section input:focus{border-color:#60a5fa;box-shadow:0 0 0 2px #60a5fa4d}.discount-section .discount-value{color:#5eead4}}.error-message{background-color:#fee2e2;border:1px solid #fca5a5;color:#b91c1c;padding:12px 16px;border-radius:6px;margin-bottom:20px;font-size:.9rem}.error-message strong{font-weight:600}.patient-details-section{margin-bottom:25px;padding:16px;background-color:#e0f2f1;border:1px solid #a7f3d0;border-radius:8px}.patient-details-section h3{font-size:1.25rem;font-weight:600;color:#0d9488;margin-bottom:10px}.patient-details-section p{font-size:.95rem;line-height:1.6;color:#0f766e}.patient-details-section p strong{font-weight:500;color:#134e4a}.bill-items-summary-section{margin-bottom:25px}.bill-items-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.bill-items-header h3{font-size:1.25rem;font-weight:600;color:#1f2937}.refresh-prices-button{font-size:.8rem;color:#2563eb;background:none;border:none;cursor:pointer;display:flex;align-items:center;gap:4px;padding:4px 8px;border-radius:4px;transition:background-color .2s,color .2s}.refresh-prices-button:hover{background-color:#eff6ff;color:#1d4ed8}.refresh-prices-button:disabled{opacity:.6;cursor:not-allowed}.refresh-prices-button .lucide{transition:transform .5s}.refresh-prices-button .lucide.animate-spin{animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.bill-info-bar{font-size:.9rem;color:#4b5563;margin-bottom:12px;padding:10px;background-color:#f3f4f6;border:1px solid #e5e7eb;border-radius:6px;display:flex;gap:16px}.bill-info-bar strong{font-weight:600;color:#1f2937}.bill-info-bar .status-paid{color:#059669}.bill-info-bar .status-pending{color:#d97706}.bill-items-list{max-height:280px;overflow-y:auto;padding:8px;border:1px solid #e5e7eb;border-radius:6px;background-color:#fff;min-height:60px}.bill-item{display:flex;justify-content:space-between;align-items:center;padding:10px 8px;border-bottom:1px solid #f3f4f6}.bill-item:last-child{border-bottom:none}.bill-item-details{flex:1;margin-right:10px;font-size:.95rem}.bill-item-quantity{font-size:.8rem;color:#6b7280;margin-left:5px}.bill-item-price-actions{display:flex;align-items:center;gap:12px}.bill-item-price{font-size:.95rem;font-weight:500;color:#1f2937;min-width:70px;text-align:right}.remove-item-button{color:#ef4444;background:none;border:none;cursor:pointer;padding:4px;border-radius:4px;transition:background-color .2s,color .2s}.remove-item-button:hover{background-color:#fee2e2;color:#dc2626}.lock-icon{color:#9ca3af;padding:4px}.empty-items-message{color:#6b7280;font-size:.9rem;padding:12px;text-align:center}.add-item-form{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end;border-top:1px solid #e5e7eb;padding-top:20px;margin-top:10px}.form-group{flex-grow:1;min-width:120px}.form-group label{display:block;font-size:.85rem;font-weight:500;color:#374151;margin-bottom:6px}.custom-text-input,.custom-select-input{width:100%;padding:10px 12px;border:1px solid #d1d5db;border-radius:6px;font-size:.9rem;transition:border-color .2s,box-shadow .2s;box-sizing:border-box}.custom-text-input:focus,.custom-select-input:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 2px #2563eb33}.add-item-button{padding:10px 20px;background-color:#2563eb;color:#fff;border:none;border-radius:6px;font-size:.9rem;font-weight:500;cursor:pointer;transition:background-color .2s;align-self:flex-end;height:40px}.add-item-button:hover{background-color:#1d4ed8}.billing-footer{border-top:2px solid #e5e7eb;padding-top:20px;margin-top:25px}.total-amount-section{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;margin-bottom:20px;gap:10px}.total-amount-label{font-size:1.2rem;font-weight:600;color:#1f2937}.total-amount-value{font-size:1.5rem;font-weight:700;color:#0d9488}.footer-actions{display:flex;flex-direction:column;gap:16px}.action-group{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:12px}.action-group .form-group{min-width:150px}.finalize-button,.record-payment-button{padding:12px 24px;border:none;border-radius:6px;font-size:1rem;font-weight:500;cursor:pointer;transition:background-color .2s,opacity .2s;flex-grow:0;min-width:180px;text-align:center}.finalize-button{background-color:#059669;color:#fff}.finalize-button:hover{background-color:#047857}.record-payment-button{background-color:#22c55e;color:#fff}.record-payment-button:hover{background-color:#16a34a}.finalize-button:disabled,.record-payment-button:disabled{opacity:.6;cursor:not-allowed;background-color:#9ca3af}.status-message{text-align:center;margin-top:16px;padding:12px;border-radius:6px;font-weight:500;font-size:.95rem}.status-message.read-only{background-color:#f3f4f6;border:1px solid #e5e7eb;color:#4b5563}.status-message.paid{background-color:#d1fae5;border:1px solid #a7f3d0;color:#065f46}.status-message.cancelled{background-color:#fee2e2;border:1px solid #fca5a5;color:#991b1b}.loading-placeholder{padding:25px;background-color:#fff;border-radius:8px;box-shadow:0 2px 4px #0000000d;text-align:center;color:#6b7280;font-size:1rem}@media print{.default-fee-section,.refresh-prices-button,.add-item-form,.footer-actions,.error-message,.remove-item-button,.lock-icon,.back-button-container,.loading-state-container,.error-state-container{display:none!important}.billing-component-container{padding:0;background-color:#fff;box-shadow:none;border-radius:0;color:#000;width:100%;max-width:none;margin:0}.billing-component-container *,.patient-details-section *,.bill-info-bar *,.bill-items-list *,.bill-item *{color:#000!important;background-color:transparent!important;box-shadow:none!important;text-shadow:none!important}.billing-header{border-bottom:2px solid #eee;padding-bottom:10px;margin-bottom:15px}.billing-header h2{font-size:1.5rem;text-align:center;width:100%}.patient-details-section{background-color:#fff!important;border:1px solid #ccc;padding:10px;margin-bottom:15px}.patient-details-section h3{font-size:1.1rem;margin-bottom:5px}.patient-details-section p{font-size:.9rem;line-height:1.4}.bill-info-bar{background-color:#fff!important;border:1px solid #ccc;padding:8px;margin-bottom:15px}.bill-items-list{max-height:none;overflow-y:visible;border:1px solid #ccc;padding:5px;background-color:#fff}.bill-item{border-bottom:1px dashed #eee;padding:8px 0}.bill-item:last-child{border-bottom:none}.bill-item-price-actions{gap:5px}.total-amount-section{margin-top:20px;margin-bottom:0;border-top:2px solid #eee;padding-top:15px}.total-amount-label{font-size:1.1rem}.total-amount-value{font-size:1.4rem;color:#000!important}.billing-component-container{page-break-after:always}}@media (max-width: 768px){.billing-component-container{padding:10px}.billing-header{flex-direction:column;align-items:flex-start;gap:10px}.billing-header h2{width:100%}.discount-section{width:100%;justify-content:flex-start;margin-left:0}.default-fee-section{width:100%;justify-content:space-between}.add-item-form{flex-direction:column;align-items:stretch}.add-item-form .form-group,.add-item-form input,.add-item-form button{width:100%}.add-item-button{margin-top:10px}.action-group{flex-direction:column;align-items:stretch}.action-group .form-group,.action-group .custom-select-input,.finalize-button,.record-payment-button{width:100%}.finalize-button,.record-payment-button{margin-top:10px}}@media (prefers-color-scheme: dark){.billing-component-container{background-color:#111827;color:#e5e7eb;box-shadow:0 4px 6px #0000004d}.billing-header{border-bottom-color:#374151}.billing-header h2{color:#f3f4f6}.default-fee-section label{color:#d1d5db}.default-fee-section input{background-color:#374151;border-color:#6b7280;color:#e5e7eb}.default-fee-section input:focus{border-color:#60a5fa;box-shadow:0 0 0 2px #60a5fa4d}.default-fee-section button{background-color:#4b5563;color:#e5e7eb}.default-fee-section button:hover{background-color:#6b7280}.error-message{background-color:#7f1d1d;border-color:#b91c1c;color:#fecaca}.patient-details-section{background-color:#164e63;border-color:#0e7490}.patient-details-section h3{color:#67e8f9}.patient-details-section p{color:#a5f3fc}.patient-details-section p strong{color:#e0f2fe}.bill-items-header h3{color:#f3f4f6}.refresh-prices-button{color:#60a5fa}.refresh-prices-button:hover{background-color:#1e3a8a;color:#93c5fd}.bill-info-bar{color:#d1d5db;background-color:#1f2937;border-color:#374151}.bill-info-bar strong{color:#f3f4f6}.bill-info-bar .status-paid{color:#6ee7b7}.bill-info-bar .status-pending{color:#fcd34d}.bill-items-list{border-color:#374151;background-color:#1f2937}.bill-item{border-bottom-color:#374151}.bill-item-details{color:#e5e7eb}.bill-item-quantity{color:#9ca3af}.bill-item-price{color:#f3f4f6}.remove-item-button{color:#f87171}.remove-item-button:hover{background-color:#7f1d1d;color:#fecaca}.lock-icon{color:#6b7280}.empty-items-message{color:#9ca3af}.add-item-form{border-top-color:#374151}.form-group label{color:#d1d5db}.custom-text-input,.custom-select-input{background-color:#374151;border-color:#6b7280;color:#e5e7eb}.custom-text-input::-moz-placeholder,.custom-select-input::-moz-placeholder{color:#9ca3af}.custom-text-input::placeholder,.custom-select-input::placeholder{color:#9ca3af}.custom-select-input option{background-color:#374151;color:#e5e7eb}.custom-text-input:focus,.custom-select-input:focus{border-color:#60a5fa;box-shadow:0 0 0 2px #60a5fa4d}.add-item-button{background-color:#60a5fa}.add-item-button:hover{background-color:#3b82f6}.billing-footer{border-top-color:#374151}.total-amount-label{color:#f3f4f6}.total-amount-value{color:#5eead4}.finalize-button{background-color:#047857}.finalize-button:hover{background-color:#065f46}.record-payment-button{background-color:#16a34a}.record-payment-button:hover{background-color:#15803d}.finalize-button:disabled,.record-payment-button:disabled{background-color:#4b5563}.status-message.read-only{background-color:#374151;border-color:#4b5563;color:#d1d5db}.status-message.paid{background-color:#064e3b;border-color:#059669;color:#a7f3d0}.status-message.cancelled{background-color:#7f1d1d;border-color:#b91c1c;color:#fecaca}.loading-placeholder{background-color:#1f2937;color:#9ca3af}}.billing-page-container{min-height:100vh;background-color:#f0f4f8;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding:40px 20px 20px;box-sizing:border-box}.back-button-container{width:100%;max-width:900px;margin-bottom:12px;display:flex;justify-content:flex-start}.back-button{color:#555;background-color:transparent;border:none;padding:8px 12px;border-radius:6px;display:flex;align-items:center;font-size:.95rem;cursor:pointer;transition:background-color .2s,color .2s}.back-button:hover{background-color:#e2e8f0;color:#1e6091}.back-button .lucide{margin-right:6px}.billing-content-wrapper{background-color:#fff;box-shadow:0 6px 12px #00000014;border-radius:10px;padding:24px 30px;width:100%;max-width:900px;border-top:5px solid #1e6091;box-sizing:border-box}.billing-page-title{font-size:1.6rem;font-weight:600;color:#2d3748;margin-bottom:8px;text-align:center}.patient-info-bar{text-align:center;font-size:.9rem;color:#4a5568;margin-bottom:20px;display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:10px 20px}.patient-info-bar span{display:flex;align-items:center}.patient-info-bar .lucide{margin-right:5px;color:#718096}.patient-info-bar .lab-order-info .lucide{color:#3b82f6}.patient-info-bar .lab-order-info{color:#2563eb;font-weight:500}.patient-info-bar .placeholder-text{color:#a0aec0;font-style:italic}.loading-state-container{min-height:100vh;background-color:#f0f4f8;display:flex;align-items:center;justify-content:center}.loading-state-text{color:#1e6091;font-size:1.1rem;font-weight:500;animation:pulse 1.5s infinite ease-in-out}@keyframes pulse{0%,to{opacity:1}50%{opacity:.6}}@media print{body{margin:0;padding:0;background-color:#fff}.billing-page-container{min-height:auto;background-color:#fff;padding:0;margin:0;width:100%;box-shadow:none;display:block}.back-button-container,.loading-state-container,.error-state-container{display:none!important}.billing-content-wrapper{box-shadow:none;border-radius:0;padding:20px;width:100%;max-width:none;border-top:none}.billing-page-title,.patient-info-bar,.patient-info-bar span,.patient-info-bar .lucide,.patient-info-bar .lab-order-info,.patient-info-bar .placeholder-text{color:#000!important;background-color:transparent!important}*{color:#000!important;background-color:transparent!important;box-shadow:none!important;text-shadow:none!important}.billing-page-title{font-size:1.8rem}.patient-info-bar{font-size:1rem}.billing-content-wrapper{page-break-after:always}}.error-state-container{min-height:100vh;background-color:#f0f4f8;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#c53030;padding:20px;text-align:center}.error-state-container .lucide{margin-bottom:16px;font-size:3rem}.error-state-title{font-size:1.25rem;font-weight:600;margin-bottom:8px}.error-state-message{font-size:.95rem;margin-bottom:20px;max-width:400px}.error-retry-button{margin-top:10px;padding:10px 20px;background-color:#c53030;color:#fff;border:none;border-radius:6px;font-size:.95rem;cursor:pointer;transition:background-color .2s}.error-retry-button:hover{background-color:#a02020}.error-go-back-button{margin-top:12px;font-size:.9rem;color:#4a5568;text-decoration:underline;cursor:pointer;transition:color .2s}.error-go-back-button:hover{color:#1e6091}@media (max-width: 768px){.billing-page-container{padding:20px 15px 15px}.billing-content-wrapper{padding:20px}.billing-page-title{font-size:1.4rem}.patient-info-bar{font-size:.85rem;gap:8px 15px}}@media (max-width: 480px){.billing-page-title{font-size:1.25rem}.patient-info-bar{flex-direction:column;align-items:center;gap:8px}.back-button-container{margin-bottom:10px}.billing-content-wrapper{padding:15px}}@media (prefers-color-scheme: dark){.billing-page-container{background-color:#0f172a}.back-button{color:#cbd5e1}.back-button:hover{background-color:#334155;color:#93c5fd}.billing-content-wrapper{background-color:#1e293b;box-shadow:0 6px 12px #0003;border-top-color:#3b82f6}.billing-page-title{color:#e2e8f0}.patient-info-bar{color:#94a3b8}.patient-info-bar .lucide{color:#64748b}.patient-info-bar .lab-order-info .lucide{color:#60a5fa}.patient-info-bar .lab-order-info{color:#93c5fd}.patient-info-bar .placeholder-text{color:#475569}.loading-state-container{background-color:#0f172a}.loading-state-text{color:#60a5fa}.error-state-container{background-color:#0f172a;color:#f87171}.error-state-container .lucide{color:#f87171}.error-state-title{color:#fca5a5}.error-state-message{color:#fda4af}.error-retry-button{background-color:#b91c1c}.error-retry-button:hover{background-color:#991b1b}.error-go-back-button{color:#94a3b8}.error-go-back-button:hover{color:#60a5fa}}.add-pharmacy-order-page{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif;padding:1rem;box-sizing:border-box}.add-pharmacy-order-page .page-header{border-bottom-color:#4b5563}.add-pharmacy-order-page .page-header h2{color:#e5e7eb;font-weight:600}.add-pharmacy-order-page .back-button{background-color:transparent;color:#9ca3af;transition:background-color .2s ease-in-out,color .2s ease-in-out}.add-pharmacy-order-page .back-button:hover{background-color:#374151;color:#f3f4f6}.add-pharmacy-order-page .content-section{background-color:#374151;border:1px solid #4b5563;border-radius:.5rem;padding:1.5rem;margin-bottom:1.5rem;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a}.add-pharmacy-order-page .content-section .section-title{color:#d1d5db;font-size:1.125rem;font-weight:500;margin-bottom:1rem}.add-pharmacy-order-page .patient-search-results{background-color:#4b5563;border:1px solid #52525b}.add-pharmacy-order-page .patient-search-results li{padding:.875rem 1.25rem;color:#e5e7eb;border-bottom:1px solid #52525b;transition:background-color .15s ease-in-out}.add-pharmacy-order-page .patient-search-results li:last-child{border-bottom:none}.add-pharmacy-order-page .patient-search-results li:hover{background-color:#52525b;cursor:pointer}.add-pharmacy-order-page .patient-search-results .patient-token{color:#60a5fa;font-weight:600}.add-pharmacy-order-page .patient-search-results .patient-details-text{color:#9ca3af}.add-pharmacy-order-page .selected-patient-info{background-color:#10b9811a;border-color:#059669;padding:1.25rem 1.5rem}.add-pharmacy-order-page .selected-patient-info .section-title,.add-pharmacy-order-page .selected-patient-info h3{color:#34d399}.add-pharmacy-order-page .selected-patient-info p{color:#6ee7b7}.add-pharmacy-order-page .change-patient-button{border-color:#10b981;color:#a7f3d0;transition:background-color .2s ease,color .2s ease}.add-pharmacy-order-page .change-patient-button:hover{background-color:#059669;color:#fff}.add-pharmacy-order-page .drug-search-dropdown{background-color:#4b5563;border-color:#52525b}.add-pharmacy-order-page .drug-search-dropdown li,.add-pharmacy-order-page .drug-search-dropdown div[role=button]{color:#e5e7eb;padding:.75rem 1rem;transition:background-color .15s ease-in-out}.add-pharmacy-order-page .drug-search-dropdown li:hover,.add-pharmacy-order-page .drug-search-dropdown div[role=button]:hover{background-color:#52525b}.add-pharmacy-order-page .drug-search-dropdown .drug-stock-price{color:#9ca3af}.add-pharmacy-order-page .add-custom-drug-button{color:#60a5fa}.add-pharmacy-order-page .add-custom-drug-button:hover{color:#93c5fd}.add-pharmacy-order-page .order-item-card{background-color:#4b5563;border:1px solid #52525b;border-radius:.375rem;padding:1.25rem;color:#f3f4f6}.add-pharmacy-order-page .order-item-card .item-name{font-weight:600;color:#fff}.add-pharmacy-order-page .order-item-card .item-name.custom{font-style:italic;color:#9ca3af}.add-pharmacy-order-page .order-item-card .item-details{color:#9ca3af}.add-pharmacy-order-page .order-item-card .item-stock.low{color:#f59e0b;font-weight:500}.add-pharmacy-order-page .dosage-input{background-color:#374151;border:1px solid #52525b;color:#f3f4f6;border-radius:.25rem;padding:.375rem .5rem;width:4.5rem}.add-pharmacy-order-page .dosage-input:focus{border-color:#60a5fa;box-shadow:0 0 0 1px #60a5fa;outline:none}.add-pharmacy-order-page .dosage-label{color:#d1d5db;margin-right:.375rem;font-size:.875rem;white-space:nowrap}.add-pharmacy-order-page .remove-item-button{color:#f87171;transition:color .2s ease,background-color .2s ease}.add-pharmacy-order-page .remove-item-button:hover{color:#ef4444;background-color:#ef44441a}.add-pharmacy-order-page .grand-total{color:#fff;font-size:1.25rem}.add-pharmacy-order-page .submit-order-button{background-color:#10b981;color:#fff;padding:.625rem 1.5rem;font-weight:500;border-radius:.375rem;transition:background-color .2s ease}.add-pharmacy-order-page .submit-order-button:hover:not(:disabled){background-color:#059669}.add-pharmacy-order-page .submit-order-button:disabled{background-color:#4b5563;opacity:.6;cursor:not-allowed}.add-pharmacy-order-page .submit-order-button .spinner{border-top-color:#fff;border-right-color:#fff;border-bottom-color:#fff;border-left-color:transparent}.custom-text-input{background-color:#374151;border:1px solid #4b5563;color:#f3f4f6;border-radius:.375rem;padding:.625rem .875rem;transition:border-color .2s ease,box-shadow .2s ease;width:100%}.custom-text-input:focus{border-color:#60a5fa;box-shadow:0 0 0 2px #3b82f666;outline:none}.custom-text-input::-moz-placeholder{color:#6b7280}.custom-text-input::placeholder{color:#6b7280}.ai-function-status.error{background-color:#fee2e2;border:1px solid #f87171;color:#b91c1c;padding:.875rem 1.25rem;border-radius:.375rem}.ai-function-status.error,.ai-function-status.error *{color:#b91c1c!important}.form-label{display:block;font-size:.875rem;font-weight:500;color:#d1d5db;margin-bottom:.375rem}@media (max-width: 768px){.add-pharmacy-order-page{padding:.5rem}.add-pharmacy-order-page .content-section{padding:1rem}.add-pharmacy-order-page .page-header h2{font-size:1.25rem}.custom-text-input,.add-pharmacy-order-page .dosage-input{font-size:.875rem}.add-pharmacy-order-page .order-item-card{padding:1rem}.add-pharmacy-order-page .grand-total{font-size:1.125rem}.add-pharmacy-order-page .submit-order-button{padding:.5rem 1.25rem;font-size:.9rem}}@media (max-width: 480px){.add-pharmacy-order-page .page-header h2{font-size:1.1rem}.add-pharmacy-order-page .content-section .section-title{font-size:1rem}.add-pharmacy-order-page .patient-search-results li,.add-pharmacy-order-page .drug-search-dropdown li,.add-pharmacy-order-page .drug-search-dropdown div[role=button]{padding:.6rem .8rem;font-size:.8rem}.add-pharmacy-order-page .dosage-label{font-size:.8rem}.add-pharmacy-order-page .dosage-input{width:3.5rem}.add-pharmacy-order-page .submit-order-button{width:100%;margin-top:1rem}.add-pharmacy-order-page .grand-total-section{flex-direction:column;align-items:stretch}}.add-pharmacy-order-page{background-color:#1f2937;color:#f3f4f6}.custom-text-input::-moz-placeholder{color:#9ca3af}.custom-text-input::placeholder{color:#9ca3af}@media (prefers-color-scheme: light){.add-pharmacy-order-page{background-color:#f9fafb;color:#1f2937}.add-pharmacy-order-page .page-header{border-bottom-color:#e5e7eb}.add-pharmacy-order-page .page-header h2{color:#111827}.add-pharmacy-order-page .back-button{color:#4b5563}.add-pharmacy-order-page .back-button:hover{background-color:#f3f4f6;color:#111827}.add-pharmacy-order-page .content-section{background-color:#fff;border-color:#e5e7eb;box-shadow:0 4px 6px -1px #0000000d,0 2px 4px -2px #0000000d}.add-pharmacy-order-page .content-section .section-title{color:#374151}.add-pharmacy-order-page .patient-search-results{background-color:#f9fafb;border-color:#e5e7eb}.add-pharmacy-order-page .patient-search-results li{color:#1f2937;border-bottom-color:#e5e7eb}.add-pharmacy-order-page .patient-search-results li:hover{background-color:#f3f4f6}.add-pharmacy-order-page .patient-search-results .patient-token{color:#2563eb}.add-pharmacy-order-page .patient-search-results .patient-details-text{color:#6b7280}.add-pharmacy-order-page .selected-patient-info{background-color:#ecfdf5;border-color:#6ee7b7}.add-pharmacy-order-page .selected-patient-info .section-title,.add-pharmacy-order-page .selected-patient-info h3{color:#047857}.add-pharmacy-order-page .selected-patient-info p{color:#059669}.add-pharmacy-order-page .change-patient-button{border-color:#059669;color:#047857}.add-pharmacy-order-page .change-patient-button:hover{background-color:#047857;color:#fff}.add-pharmacy-order-page .drug-search-dropdown{background-color:#fff;border-color:#e5e7eb}.add-pharmacy-order-page .drug-search-dropdown li,.add-pharmacy-order-page .drug-search-dropdown div[role=button]{color:#1f2937}.add-pharmacy-order-page .drug-search-dropdown li:hover,.add-pharmacy-order-page .drug-search-dropdown div[role=button]:hover{background-color:#f3f4f6}.add-pharmacy-order-page .drug-search-dropdown .drug-stock-price{color:#6b7280}.add-pharmacy-order-page .add-custom-drug-button{color:#2563eb}.add-pharmacy-order-page .add-custom-drug-button:hover{color:#1d4ed8}.add-pharmacy-order-page .order-item-card{background-color:#fff;border-color:#e5e7eb;color:#1f2937}.add-pharmacy-order-page .order-item-card .item-name{color:#111827}.add-pharmacy-order-page .order-item-card .item-name.custom{color:#4b5563}.add-pharmacy-order-page .order-item-card .item-details{color:#6b7280}.add-pharmacy-order-page .order-item-card .item-stock.low{color:#f59e0b}.add-pharmacy-order-page .dosage-input{background-color:#f9fafb;border-color:#d1d5db;color:#1f2937}.add-pharmacy-order-page .dosage-input:focus{border-color:#2563eb;box-shadow:0 0 0 1px #2563eb}.add-pharmacy-order-page .dosage-label{color:#374151}.add-pharmacy-order-page .remove-item-button{color:#ef4444}.add-pharmacy-order-page .remove-item-button:hover{color:#dc2626;background-color:#dc26260d}.add-pharmacy-order-page .grand-total{color:#111827}.add-pharmacy-order-page .submit-order-button{background-color:#10b981}.add-pharmacy-order-page .submit-order-button:hover:not(:disabled){background-color:#059669}.add-pharmacy-order-page .submit-order-button:disabled{background-color:#d1d5db}.custom-text-input{background-color:#fff;border-color:#d1d5db;color:#111827}.custom-text-input:focus{border-color:#2563eb;box-shadow:0 0 0 2px #2563eb4d}.custom-text-input::-moz-placeholder{color:#9ca3af}.custom-text-input::placeholder{color:#9ca3af}.ai-function-status.error{background-color:#fee2e2;border-color:#fca5a5;color:#b91c1c}.ai-function-status.error,.ai-function-status.error *{color:#b91c1c!important}.form-label{color:#374151}}:root{--page-bg: #f9fafb;--text-color: #1f2937;--header-color: #111827;--border-color: #e5e7eb;--section-bg: #ffffff;--section-title-color: #374151;--input-bg: #ffffff;--input-border: #d1d5db;--input-text: #111827;--input-placeholder: #9ca3af;--read-only-bg: #f3f4f6;--read-only-text: #4b5563;--button-primary-bg: #10b981;--button-primary-hover-bg: #059669;--button-secondary-bg: #ef4444;--button-secondary-hover-bg: #dc2626;--button-cancel-bg: #6b7280;--button-cancel-hover-bg: #4b5563;--back-button-color: #4b5563;--back-button-hover-bg: #f3f4f6;--back-button-hover-color: #111827;--success-message-bg: #d1fae5;--success-message-text: #065f46;--error-message-bg: #fee2e2;--error-message-text: #b91c1c}@media (prefers-color-scheme: dark){:root{--page-bg: #1f2937;--text-color: #f3f4f6;--header-color: #e5e7eb;--border-color: #4b5563;--section-bg: #374151;--section-title-color: #d1d5db;--input-bg: #374151;--input-border: #4b5563;--input-text: #f3f4f6;--input-placeholder: #6b7280;--read-only-bg: #4b5563;--read-only-text: #d1d5db;--button-primary-bg: #10b981;--button-primary-hover-bg: #059669;--button-secondary-bg: #f87171;--button-secondary-hover-bg: #ef4444;--button-cancel-bg: #4b5563;--button-cancel-hover-bg: #374151;--back-button-color: #9ca3af;--back-button-hover-bg: #374151;--back-button-hover-color: #f3f4f6;--success-message-bg: rgba(16, 185, 129, .1);--success-message-text: #34d399;--error-message-bg: #fee2e2;--error-message-text: #b91c1c}}.edit-pharmacy-order-container{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif;padding:1rem;box-sizing:border-box;background-color:var(--page-bg);color:var(--text-color);min-height:100vh}.edit-pharmacy-order-header{display:flex;align-items:center;gap:1rem;margin-bottom:1.5rem;border-bottom:1px solid var(--border-color);padding-bottom:1rem}.edit-pharmacy-order-title{color:var(--header-color);font-size:1.75rem;font-weight:700;flex-grow:1}.back-button{background-color:transparent;border:1px solid var(--border-color);color:var(--back-button-color);padding:.5rem 1rem;border-radius:.375rem;cursor:pointer;display:flex;align-items:center;gap:.5rem;transition:background-color .2s ease-in-out,color .2s ease-in-out,border-color .2s ease-in-out}.back-button:hover{background-color:var(--back-button-hover-bg);color:var(--back-button-hover-color);border-color:var(--back-button-hover-bg)}.form-section{background-color:var(--section-bg);border:1px solid var(--border-color);border-radius:.5rem;padding:1.5rem;margin-bottom:1.5rem;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -2px #0000000f}.section-title{color:var(--section-title-color);font-size:1.25rem;font-weight:600;margin-bottom:1.25rem;padding-bottom:.5rem;border-bottom:1px solid var(--border-color)}.form-group{margin-bottom:1rem;position:relative}.drug-suggestions{position:absolute;top:100%;left:0;right:0;background-color:var(--section-bg);border:1px solid var(--input-border);border-top:none;border-radius:0 0 .375rem .375rem;max-height:200px;overflow-y:auto;z-index:10;list-style:none;padding:0;margin:0;box-shadow:0 4px 6px -1px #0000001a}.drug-suggestions li{padding:.75rem 1rem;cursor:pointer;color:var(--input-text)}.drug-suggestions li:hover{background-color:var(--read-only-bg)}.form-group label{display:block;font-size:.875rem;font-weight:500;color:var(--section-title-color);margin-bottom:.5rem}.form-input{width:100%;padding:.75rem 1rem;border:1px solid var(--input-border);border-radius:.375rem;background-color:var(--input-bg);color:var(--input-text);font-size:1rem;transition:border-color .2s ease,box-shadow .2s ease}.form-input:focus{border-color:#60a5fa;box-shadow:0 0 0 2px #3b82f666;outline:none}.form-input::-moz-placeholder{color:var(--input-placeholder)}.form-input::placeholder{color:var(--input-placeholder)}.form-input.read-only{background-color:var(--read-only-bg);color:var(--read-only-text);cursor:not-allowed}.medication-item-group{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem;background-color:var(--read-only-bg);border:1px solid var(--border-color);border-radius:.5rem;padding:1rem;margin-bottom:1rem;position:relative}.remove-medication-button{background-color:transparent;border:none;color:var(--button-secondary-bg);cursor:pointer;display:flex;align-items:center;gap:.25rem;font-size:.875rem;font-weight:500;transition:color .2s ease;position:absolute;top:.75rem;right:.75rem;padding:.25rem;border-radius:.25rem}.remove-medication-button:hover{color:var(--button-secondary-hover-bg);background-color:rgba(var(--button-secondary-hover-bg-rgb),.1)}@supports not (background-color: rgba(var(--button-secondary-hover-bg-rgb),.1)){.remove-medication-button:hover{background-color:#dc26261a}}.add-medication-button{background-color:transparent;border:1px dashed var(--border-color);color:var(--section-title-color);padding:.75rem 1rem;border-radius:.375rem;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:.5rem;width:100%;font-size:1rem;font-weight:500;transition:background-color .2s ease,color .2s ease,border-color .2s ease}.add-medication-button:hover{background-color:var(--read-only-bg);color:var(--header-color);border-color:var(--section-title-color)}.form-actions{display:flex;justify-content:flex-end;gap:1rem;margin-top:2rem}.submit-button,.cancel-button{padding:.75rem 1.5rem;border-radius:.375rem;font-size:1rem;font-weight:600;cursor:pointer;display:flex;align-items:center;gap:.5rem;transition:background-color .2s ease,opacity .2s ease}.submit-button{background-color:var(--button-primary-bg);color:#fff;border:none}.submit-button:hover:not(:disabled){background-color:var(--button-primary-hover-bg)}.submit-button:disabled{background-color:var(--button-primary-bg);opacity:.6;cursor:not-allowed}.cancel-button{background-color:var(--button-cancel-bg);color:#fff;border:none}.cancel-button:hover{background-color:var(--button-cancel-hover-bg)}.loading-pulse{text-align:center;padding:2rem;font-size:1.2rem;color:var(--text-color);animation:pulse 1.5s infinite ease-in-out}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}.error-message-box{background-color:var(--error-message-bg);color:var(--error-message-text);padding:1rem;border-radius:.375rem;margin-bottom:1.5rem;border:1px solid var(--error-message-text);font-weight:500}.success-message-box{background-color:var(--success-message-bg);color:var(--success-message-text);padding:1rem;border-radius:.375rem;margin-bottom:1.5rem;border:1px solid var(--success-message-text);font-weight:500}@media (max-width: 768px){.edit-pharmacy-order-container{padding:.75rem}.edit-pharmacy-order-title{font-size:1.5rem}.back-button{padding:.4rem .8rem;font-size:.875rem}.form-section{padding:1rem;margin-bottom:1rem}.section-title{font-size:1.125rem;margin-bottom:1rem}.form-group label{font-size:.8rem;margin-bottom:.4rem}.form-input{padding:.6rem .8rem;font-size:.9rem}.medication-item-group{grid-template-columns:1fr;gap:.75rem;padding:.75rem}.remove-medication-button{position:static;width:-moz-fit-content;width:fit-content;margin-top:.5rem;align-self:flex-end}.add-medication-button{padding:.6rem .8rem;font-size:.9rem}.form-actions{flex-direction:column;gap:.75rem;margin-top:1.5rem}.submit-button,.cancel-button{width:100%;justify-content:center;padding:.6rem 1rem;font-size:.9rem}}@media (max-width: 480px){.edit-pharmacy-order-title{font-size:1.3rem}.back-button{padding:.3rem .6rem;font-size:.8rem}.section-title{font-size:1rem}.form-input{font-size:.85rem}.remove-medication-button{font-size:.8rem}.add-medication-button,.submit-button,.cancel-button{font-size:.85rem}}.lab-report-container{padding:1.5rem;background-color:#f9fafb;min-height:100vh}.lab-report-card{max-width:56rem;margin-left:auto;margin-right:auto;background-color:#fff;border-radius:.75rem;box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d;padding:1.5rem;display:flex;flex-direction:column;gap:1.5rem}@media (max-width: 639px){.lab-report-container{padding:1rem}.lab-report-card{padding:1rem;gap:1rem}.lab-report-title{font-size:1.25rem;line-height:1.75rem}.lab-report-actions{flex-direction:column;align-items:stretch}.lab-report-button{justify-content:center;width:100%}.report-details-title{font-size:1rem;line-height:1.5rem}.patient-info-card{padding:.75rem}.patient-info-title{font-size:.9375rem}.patient-info-grid{grid-template-columns:1fr;gap:.25rem .5rem}.report-findings-card{padding:.75rem}.report-findings-title{font-size:.9375rem}.error-title{font-size:1.125rem}.error-text{font-size:.875rem}}.lab-report-header{display:flex;flex-direction:column;gap:.5rem;padding-bottom:1rem;border-bottom:1px solid #e5e7eb}@media (min-width: 640px){.lab-report-header{flex-direction:row;justify-content:space-between;align-items:center}}.lab-report-title{font-size:1.5rem;line-height:2rem;font-weight:600;color:#1f2937}.lab-report-actions{display:flex;gap:.75rem;flex-wrap:wrap}.lab-report-button{display:flex;align-items:center;padding:.625rem 1rem;border-radius:.375rem;font-size:.875rem;line-height:1.25rem;transition:background-color .2s ease-in-out,border-color .2s ease-in-out,color .2s ease-in-out}.lab-report-button svg{margin-right:.5rem}.lab-report-button-primary{border:1px solid #2dd4bf;color:#0d9488}.lab-report-button-primary:hover{background-color:#f0fdfa}.lab-report-button-secondary{border:1px solid #d1d5db;color:#374151}.lab-report-button-secondary:hover{background-color:#f9fafb}.lab-report-button-action{border:1px solid #3b82f6;color:#2563eb}.lab-report-button-action:hover{background-color:#eff6ff}.report-details-section{padding-top:1rem}.report-details-title{font-size:1.125rem;line-height:1.75rem;font-weight:500;color:#374151;margin-bottom:.75rem}.loading-message{display:flex;justify-content:center;align-items:center;padding:2.5rem 0;font-size:1.125rem;color:#0d9488}.error-message-container{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:2.5rem 1rem;background-color:#fef2f2;color:#b91c1c;border:1px solid #fecaca;border-radius:.5rem}.error-message-container svg{margin-bottom:1rem;color:#ef4444}.error-title{font-size:1.25rem;font-weight:600;margin-bottom:.5rem}.error-text{margin-bottom:1rem;text-align:center}.retry-button{padding:.5rem 1rem;background-color:#dc2626;color:#fff;border-radius:.375rem;transition:background-color .2s ease-in-out}.retry-button:hover{background-color:#b91c1c}.patient-info-card{margin-bottom:1.5rem;padding:1rem;border:1px solid #bfdbfe;border-radius:.5rem;background-color:#eff6ff}.patient-info-title{font-size:1rem;font-weight:600;color:#1e40af;margin-bottom:.75rem}.patient-info-grid{display:grid;grid-template-columns:1fr;gap:.5rem 1rem;font-size:.875rem;color:#374151}@media (min-width: 640px){.patient-info-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}.patient-info-grid strong{font-weight:500}.report-findings-card{border:1px solid #e5e7eb;border-radius:.5rem;padding:1rem;background-color:#f9fafb}.report-findings-title{font-size:1rem;font-weight:600;color:#1f2937;margin-bottom:.75rem}.report-findings-content .prose{font-size:.875rem;max-width:none}.report-findings-content .prose h1,.report-findings-content .prose h2,.report-findings-content .prose h3,.report-findings-content .prose h4,.report-findings-content .prose h5,.report-findings-content .prose h6{margin-top:1.25em;margin-bottom:.5em;font-weight:600}.report-findings-content .prose p{margin-bottom:.75em;line-height:1.6}.report-findings-content .prose ul,.report-findings-content .prose ol{margin-left:1.5em;margin-bottom:.75em}.report-findings-content .prose li>p{margin-bottom:.25em}.report-findings-content .prose strong{font-weight:600}.report-findings-content .prose a{color:#0d9488;text-decoration:underline}.report-findings-content .prose a:hover{color:#0f766e}.no-content-message{text-align:center;color:#6b7280;padding:2.5rem 0}.no-content-message p{margin-bottom:.5rem}.no-content-link{color:#0d9488;text-decoration:underline;margin-top:.5rem;display:inline-block}.no-content-link:hover{color:#0f766e}@media print{.no-print{display:none!important}body,.lab-report-container,.lab-report-card{background-color:#fff!important;box-shadow:none!important;margin:0!important;padding:0!important;min-height:auto!important}.lab-report-card{border:none!important;max-width:100%!important}.patient-info-card,.report-findings-card{border:1px solid #cccccc!important;background-color:#fff!important;page-break-inside:avoid}.report-findings-content .prose{font-size:10pt!important}.report-findings-content .prose a{text-decoration:none;color:#000}}@media (prefers-color-scheme: dark){.lab-report-container{background-color:#111827}.lab-report-card{background-color:#1f2937;box-shadow:0 10px 15px -3px #0000004d,0 4px 6px -2px #00000040}.lab-report-header{border-bottom-color:#374151}.lab-report-title{color:#e5e7eb}.lab-report-button-primary{border-color:#14b8a6;color:#5eead4}.lab-report-button-primary:hover{background-color:#0f766e;color:#99f6e4}.lab-report-button-secondary{border-color:#4b5563;color:#d1d5db}.lab-report-button-secondary:hover{background-color:#374151;color:#f3f4f6}.lab-report-button-action{border-color:#60a5fa;color:#93c5fd}.lab-report-button-action:hover{background-color:#1e40af;color:#bfdbfe}.report-details-title{color:#d1d5db}.loading-message{color:#5eead4}.error-message-container{background-color:#450a0a;color:#fecaca;border-color:#7f1d1d}.error-message-container svg{color:#f87171}.error-title{color:#fca5a5}.retry-button{background-color:#b91c1c}.retry-button:hover{background-color:#991b1b}.patient-info-card{border-color:#1e40af;background-color:#1e3a8a}.patient-info-title{color:#bfdbfe}.patient-info-grid{color:#dbeafe}.patient-info-grid strong{color:#eff6ff}.report-findings-card{border-color:#374151;background-color:#1f2937}.report-findings-title{color:#e5e7eb}.report-findings-content .prose{color:#d1d5db}.report-findings-content .prose a{color:#5eead4}.report-findings-content .prose a:hover{color:#99f6e4}.report-findings-content .prose code{background-color:#374151;color:#e5e7eb;border:1px solid #4b5563;padding:.1em .3em;border-radius:.25rem}.report-findings-content .prose pre>code{padding:.5em}.no-content-message{color:#9ca3af}.no-content-link{color:#5eead4}.no-content-link:hover{color:#99f6e4}}.test-header-button{display:flex;justify-content:space-between;align-items:center;width:100%;padding:12px 15px;background-color:#f9fafb;border:1px solid #e5e7eb;border-radius:8px;cursor:pointer;transition:background-color .2s ease-in-out;text-align:left}.test-header-button:hover{background-color:#f3f4f6}.test-header-button h4{color:#1f2937;font-weight:600}.test-parameters-body{padding:15px;border-top:1px solid #e5e7eb;margin-top:10px;animation:fadeIn .3s ease-in-out}@keyframes fadeIn{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}.lab-inventory-card>.test-header-button{padding:12px 15px}.lab-inventory-card{padding:20px;background-color:#fff;border-radius:8px;box-shadow:0 4px 6px #0000000d;border:1px solid #e5e7eb}@media (max-width: 639px){.search-bar-section{margin-bottom:1rem}.search-input{padding:.5rem .625rem .5rem 2.25rem;font-size:.8125rem}.search-input-icon{left:.625rem}.search-results-list{max-height:none}.search-result-item{padding:.75rem}.result-item-header{flex-direction:column;align-items:flex-start;gap:.25rem}.result-patient-name{font-size:.875rem}.result-patient-token{font-size:.75rem}.status-badge{align-self:flex-start;margin-top:.25rem;font-size:.6875rem;padding:.125rem .5rem}.result-item-details{font-size:.75rem;gap:.25rem}.detail-item{gap:.25rem}}.search-bar-section{display:flex;flex-direction:column;gap:.5rem;margin-bottom:1.5rem}.search-label{font-size:.875rem;font-weight:500;color:#374151}.search-input-container{position:relative;display:flex;align-items:center}.search-input-icon{position:absolute;left:.75rem;color:#9ca3af;pointer-events:none}.search-input{width:100%;padding:.625rem .75rem .625rem 2.5rem;border:1px solid #d1d5db;border-radius:.375rem;font-size:.875rem;color:#1f2937;background-color:#fff;transition:border-color .2s ease-in-out,box-shadow .2s ease-in-out}.search-input:focus{outline:none;border-color:#2dd4bf;box-shadow:0 0 0 2px #2dd4bf4d}.search-input::-moz-placeholder{color:#9ca3af}.search-input::placeholder{color:#9ca3af}.search-results-area{margin-top:1rem}.search-error-message{padding:.75rem 1rem;font-size:.875rem}.search-error-message svg{margin-bottom:0}.search-results-list{list-style:none;padding:0;margin:0;border:1px solid #e5e7eb;border-radius:.5rem;max-height:28rem;overflow-y:auto;background-color:#fff}.search-result-item{padding:1rem;border-bottom:1px solid #f3f4f6;cursor:pointer;transition:background-color .15s ease-in-out}.search-result-item:last-child{border-bottom:none}.search-result-item:hover{background-color:#f9fafb}.result-item-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:.5rem;gap:.5rem}.result-patient-info{display:flex;align-items:center;gap:.375rem;flex-wrap:wrap}.result-icon{color:#6b7280;flex-shrink:0}.result-patient-name{font-size:.9375rem;font-weight:600;color:#0d9488}.result-patient-token{font-size:.8125rem;color:#4b5563}.status-badge{padding:.25rem .625rem;font-size:.75rem;font-weight:600;border-radius:9999px;white-space:nowrap;align-self:center}.status-red-600{color:#dc2626}.status-yellow-600{color:#ca8a04}.status-blue-600{color:#2563eb}.status-purple-600{color:#7e22ce}.status-bg-purple-100{background-color:#faf5ff}.status-green-600{color:#16a34a}.status-gray-600{color:#4b5563}.status-gray-600.line-through{text-decoration:line-through}.result-item-details{display:flex;flex-direction:column;gap:.375rem;font-size:.8125rem;color:#4b5563}.detail-item{display:flex;align-items:center;gap:.375rem}.detail-item span{line-height:1.4}@media (prefers-color-scheme: dark){.search-label{color:#d1d5db}.search-input-icon{color:#9ca3af}.search-input{background-color:#374151;border-color:#6b7280;color:#e5e7eb}.search-input:focus{border-color:#5eead4;box-shadow:0 0 0 2px #5eead466}.search-input::-moz-placeholder{color:#9ca3af}.search-input::placeholder{color:#9ca3af}.search-results-list{border-color:#374151;background-color:#1f2937}.search-result-item{border-bottom-color:#374151}.search-result-item:hover{background-color:#374151}.result-icon{color:#9ca3af}.result-patient-name{color:#5eead4}.result-patient-token{color:#9ca3af}.status-red-600{color:#fca5a5}.status-bg-red-100{background-color:#7f1d1d}.status-yellow-600{color:#fde047}.status-bg-yellow-100{background-color:#713f12}.status-blue-600{color:#93c5fd}.status-bg-blue-100{background-color:#1e40af}.status-purple-600{color:#d8b4fe}.status-bg-purple-100{background-color:#581c87}.status-green-600{color:#a7f3d0}.status-bg-green-100{background-color:#065f46}.status-gray-600{color:#d1d5db}.status-bg-gray-100{background-color:#4b5563}.result-item-details{color:#9ca3af}}@media (max-width: 639px){.patient-reports-card{gap:.75rem}.patient-report-item{padding:.75rem;flex-direction:column;align-items:flex-start;gap:.5rem}.report-item-main-info{gap:.5rem;width:100%}.report-item-date{font-size:.875rem}.report-item-tests{font-size:.75rem}.report-item-meta{width:100%;justify-content:space-between;margin-top:.25rem}.status-badge{font-size:.6875rem;padding:.125rem .5rem}.selected-report-details{padding:.75rem}.back-to-list-button{font-size:.8125rem;padding:.25rem .5rem;margin-bottom:.75rem}.selected-report-title{font-size:1.125rem}.updated-timestamp{font-size:.6875rem}.selected-report-tests{font-size:.8125rem;margin-bottom:.75rem}.report-findings-markdown{padding:.75rem;max-height:none}}.patient-reports-card{gap:1rem}.patient-reports-content-area{min-height:200px;display:flex;flex-direction:column}.patient-reports-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.75rem}.patient-report-item{display:flex;justify-content:space-between;align-items:center;padding:.875rem 1rem;border:1px solid #e5e7eb;border-radius:.5rem;background-color:#fff;cursor:pointer;transition:background-color .2s ease-in-out,border-color .2s ease-in-out,box-shadow .2s ease-in-out}.patient-report-item:hover{background-color:#f9fafb;border-color:#d1d5db;box-shadow:0 1px 3px #00000012,0 1px 2px #00000008}.report-item-main-info{display:flex;align-items:center;gap:.75rem;flex-grow:1;min-width:0}.report-item-icon{color:#0d9488;flex-shrink:0}.report-item-text{display:flex;flex-direction:column;gap:.125rem;min-width:0}.report-item-date{font-size:.9375rem;font-weight:500;color:#1f2937;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.report-item-tests{font-size:.8125rem;color:#4b5563;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.report-item-meta{display:flex;align-items:center;gap:.75rem;flex-shrink:0}.report-item-arrow{color:#9ca3af}.selected-report-details{padding:1rem;border:1px solid #e5e7eb;border-radius:.5rem;background-color:#f9fafb;animation:fadeIn .3s ease-out}@keyframes fadeIn{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.back-to-list-button{display:inline-flex;align-items:center;gap:.375rem;font-size:.875rem;color:#0d9488;margin-bottom:1rem;padding:.375rem .75rem;border:1px solid transparent;border-radius:.375rem;transition:background-color .2s,border-color .2s}.back-to-list-button:hover{background-color:#f0fdfa;border-color:#99f6e4}.selected-report-title{font-size:1.25rem;font-weight:600;color:#1f2937;margin-bottom:.5rem}.updated-timestamp{font-size:.75rem;color:#6b7280;margin-left:.5rem;font-weight:400}.selected-report-tests{font-size:.875rem;color:#374151;margin-bottom:1rem}.selected-report-tests strong{font-weight:500;color:#1f2937}.report-findings-markdown{background-color:#fff;border:1px solid #e5e7eb;border-radius:.375rem;padding:1rem;max-height:60vh;overflow-y:auto}.status-bg-yellow-100{background-color:#fefce8}.status-yellow-700{color:#a16207}.status-bg-blue-100{background-color:#eff6ff}.status-blue-700{color:#1d4ed8}.status-bg-indigo-100{background-color:#eef2ff}.status-indigo-700{color:#4338ca}.status-bg-green-100{background-color:#f0fdf4}.status-green-700{color:#15803d}.status-bg-gray-200{background-color:#e5e7eb}.status-gray-800{color:#1f2937}.status-bg-red-100{background-color:#fef2f2}.status-red-700{color:#b91c1c}.status-bg-gray-100{background-color:#f3f4f6}.status-gray-700{color:#374151}@media (prefers-color-scheme: dark){.patient-report-item{border-color:#374151;background-color:#1f2937}.patient-report-item:hover{background-color:#374151;border-color:#4b5563}.report-item-icon{color:#5eead4}.report-item-date{color:#e5e7eb}.report-item-tests{color:#9ca3af}.report-item-arrow{color:#6b7280}.selected-report-details{border-color:#374151;background-color:#161e2b}.back-to-list-button{color:#5eead4}.back-to-list-button:hover{background-color:#0f766e;border-color:#14b8a6;color:#ccfbf1}.selected-report-title{color:#e5e7eb}.updated-timestamp{color:#9ca3af}.selected-report-tests{color:#d1d5db}.selected-report-tests strong{color:#e5e7eb}.report-findings-markdown{background-color:#1f2937;border-color:#374151}.status-bg-yellow-100{background-color:#713f12}.status-yellow-700{color:#fde047}.status-bg-blue-100{background-color:#1e40af}.status-blue-700{color:#93c5fd}.status-bg-indigo-100{background-color:#3730a3}.status-indigo-700{color:#a5b4fc}.status-bg-green-100{background-color:#065f46}.status-green-700{color:#a7f3d0}.status-bg-gray-200{background-color:#4b5563}.status-gray-800{color:#e5e7eb}.status-bg-red-100{background-color:#7f1d1d}.status-red-700{color:#fca5a5}.status-bg-gray-100{background-color:#374151}.status-gray-700{color:#d1d5db}}.inventory-view-page{padding:24px;background-color:#f8f9fa;min-height:100vh;font-family:Inter,sans-serif}@media (max-width: 767px){.inventory-view-page{padding:10px}.inventory-title{font-size:1.5rem}.inventory-sections-container{gap:15px}.inventory-section__header-bar .lab-inventory-header,.inventory-section__lab-title{font-size:1.2em}.table-scroll-wrapper{max-height:350px}.inventory-table th,.inventory-table td{padding:8px 10px;font-size:.8rem}}.inventory-header{display:flex;flex-direction:column;gap:10px;justify-content:space-between;align-items:flex-start;margin-bottom:20px;padding-bottom:15px;border-bottom:1px solid #dee2e6}@media (min-width: 768px){.inventory-header{flex-direction:row;align-items:center;margin-bottom:30px;padding-bottom:20px}}.inventory-title{font-size:1.8rem;font-weight:700;color:#212529}@media (min-width: 768px){.inventory-title{font-size:2.25rem}}.back-button{display:inline-flex;align-items:center;padding:8px 16px;border:1px solid #ced4da;border-radius:8px;box-shadow:0 2px 4px #0000000d;font-size:.9rem;font-weight:500;color:#495057;background-color:#fff;transition:all .2s ease-in-out}@media (min-width: 768px){.back-button{padding:10px 20px;font-size:.95rem}}.back-button:hover{background-color:#f1f3f5;border-color:#adb5bd;box-shadow:0 3px 6px #00000012;transform:translateY(-1px)}.back-button-icon{margin-right:8px;color:#007bff}.loading-text,.error-text{text-align:center;padding:30px 0;font-size:1rem;color:#6c757d}@media (min-width: 768px){.loading-text,.error-text{padding:40px 0;font-size:1.15rem}}.error-text{color:#dc3545;background-color:#f8d7da;border:1px solid #f5c6cb;border-radius:8px;padding:12px 15px;margin:15px auto;max-width:100%}@media (min-width: 768px){.error-text{padding:15px 20px;margin:20px auto;max-width:800px}}.inventory-sections-container{display:grid;grid-template-columns:1fr;gap:20px}@media (min-width: 1024px){.inventory-sections-container{grid-template-columns:1fr 1fr;gap:30px}}.inventory-section__header-bar{display:flex;flex-direction:column;gap:10px;margin-bottom:15px;align-items:flex-start}.inventory-section__header-bar .lab-inventory-header{font-size:1.3em;margin-bottom:0;border-bottom:none}.inventory-section__search-area{display:flex;align-items:center;width:100%}.inventory-section__search-area .lab-inventory-input{flex-grow:1;margin-right:5px;margin-bottom:0}@media (min-width: 768px){.inventory-section__header-bar{flex-direction:row;justify-content:space-between;align-items:center;margin-bottom:15px}.inventory-section__header-bar .lab-inventory-header{font-size:1.5em}.inventory-section__search-area{width:auto}.inventory-section__search-area .lab-inventory-input{width:250px;flex-grow:0}}.inventory-section__lab-title{font-size:1.3em;margin-bottom:15px;border-bottom:none}@media (min-width: 768px){.inventory-section__lab-title{font-size:1.5em}}.table-container{overflow-x:auto;width:100%}.table-scroll-wrapper{max-height:450px;overflow-y:auto;border:1px solid #dee2e6;border-radius:8px;background-color:#fff}@media (min-width: 768px){.table-scroll-wrapper{max-height:550px;border-radius:10px}}.inventory-table{width:100%;border-collapse:collapse;border-spacing:0;font-size:.85rem}@media (min-width: 768px){.inventory-table{font-size:.9rem;border-collapse:separate}}.inventory-table thead{background-color:#e9ecef;position:sticky;top:0;z-index:10}.inventory-table th{padding:10px 12px;text-align:left;font-size:.75rem;font-weight:600;color:#495057;text-transform:uppercase;letter-spacing:.05em;border-bottom:2px solid #adb5bd;white-space:nowrap}@media (min-width: 768px){.inventory-table th{padding:14px 18px;font-size:.8rem;letter-spacing:.075em}}.inventory-table th:first-child{border-top-left-radius:7px}.inventory-table th:last-child{border-top-right-radius:7px}@media (min-width: 768px){.inventory-table th:first-child{border-top-left-radius:9px}.inventory-table th:last-child{border-top-right-radius:9px}}.inventory-table tbody tr{transition:background-color .15s ease-in-out}.inventory-table tbody tr:nth-child(2n){background-color:#f8f9fa}.inventory-table tbody tr:hover{background-color:#e2e6ea}.inventory-table td{padding:10px 12px;border-bottom:1px solid #e9ecef;color:#343a40;white-space:nowrap}@media (min-width: 768px){.inventory-table td{padding:14px 18px}}.inventory-table tbody tr:last-child td{border-bottom:none}.no-data-message{text-align:center;padding:20px 0;color:#6c757d;font-style:italic;font-size:.95rem}@media (min-width: 768px){.no-data-message{padding:30px 0;font-size:1.05rem}}.highlight-box{padding:4px 8px;border-radius:12px;font-weight:500;display:inline-flex;align-items:center;font-size:.8rem;line-height:1.2;text-align:center;min-width:70px;white-space:nowrap}@media (min-width: 768px){.highlight-box{padding:5px 10px;border-radius:16px;font-size:.85rem;min-width:80px}}.highlight-low-stock{border:1px solid #ffc107;color:#856404;background-color:#fff3cd}.highlight-near-expiry{border:1px solid #fd7e14;color:#8a4500;background-color:#ffe8d6}.highlight-expired{border:1px solid #dc3545;color:#721c24;background-color:#f8d7da;font-weight:600}.price-text{font-weight:500;color:#28a745;white-space:nowrap}.price-text:before{content:"₹";margin-right:2px}.lab-inventory-card:hover{box-shadow:0 10px 20px #0000001f,0 4px 8px #00000014;transform:translateY(-4px)}a:focus,button:focus,input:focus,select:focus,textarea:focus{outline:2px solid #007bff80;outline-offset:2px}.icon-align{vertical-align:middle;margin-right:.3em}@media (prefers-color-scheme: dark){.inventory-view-page{background-color:#111827}.inventory-header{border-bottom-color:#374151}.inventory-title{color:#e5e7eb}.back-button{border-color:#4b5563;color:#d1d5db;background-color:#374151}.back-button:hover{background-color:#4b5563;border-color:#6b7280}.back-button-icon{color:#818cf8}.loading-text,.error-text{color:#9ca3af}.error-text{color:#fecaca;background-color:#7f1d1d;border-color:#b91c1c}.inventory-section__header-bar .lab-inventory-header,.inventory-section__lab-title{color:#e5e7eb}.table-scroll-wrapper{border-color:#374151;background-color:#1f2937}.inventory-table thead{background-color:#374151}.inventory-table th{color:#d1d5db;border-bottom-color:#4b5563}.inventory-table tbody tr:nth-child(2n){background-color:#2c3a4b}.inventory-table tbody tr:hover{background-color:#4b5563}.inventory-table td{border-bottom-color:#374151;color:#d1d5db}.no-data-message{color:#9ca3af}.highlight-low-stock{border-color:#facc15;color:#fef08a;background-color:#713f12}.highlight-near-expiry{border-color:#fb923c;color:#fed7aa;background-color:#7c2d12}.highlight-expired{border-color:#f87171;color:#fecaca;background-color:#7f1d1d}.price-text{color:#6ee7b7}.lab-inventory-card:hover{box-shadow:0 10px 20px #0000004d,0 4px 8px #0003}a:focus,button:focus,input:focus,select:focus,textarea:focus{outline-color:#60a5fa80}}.subscription-page-container{padding:2rem;max-width:900px;margin:2rem auto;background-color:#f9fafb;border-radius:8px;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f}.subscription-page-container h1,.subscription-page-container h2{color:#1f2937;margin-bottom:1.5rem;text-align:left;font-weight:700}.subscription-page-container h1{font-size:1.75rem;display:flex;align-items:center}.subscription-page-container h1 svg{margin-right:.75rem;color:#4f46e5}.subscription-page-container h2{font-size:1.25rem;font-weight:600;border-bottom:1px solid #e5e7eb;padding-bottom:.75rem}.subscription-form{background-color:#fff;padding:1.5rem;border-radius:.5rem;box-shadow:0 1px 3px #0000001a,0 1px 2px #0000000f;margin-bottom:1.5rem}.subscription-form .form-group{margin-bottom:1rem}.subscription-form label{display:block;margin-bottom:.5rem;font-weight:500;color:#374151;font-size:.875rem}.subscription-form input[type=text],.subscription-form input[type=number],.subscription-form input[type=date],.subscription-form textarea,.subscription-form select{width:100%;padding:.625rem .75rem;border:1px solid #d1d5db;border-radius:.375rem;box-sizing:border-box;font-size:.875rem;transition:border-color .2s ease-in-out,box-shadow .2s ease-in-out;background-color:#fff}.subscription-form input[type=text]:focus,.subscription-form input[type=number]:focus,.subscription-form input[type=date]:focus,.subscription-form textarea:focus,.subscription-form select:focus{border-color:#4f46e5;outline:none;box-shadow:0 0 0 2px #4f46e54d}.subscription-form textarea{min-height:80px;resize:vertical}.subscription-form .form-group input[type=radio]{width:auto;margin-right:.5rem;accent-color:#4f46e5}.subscription-form .form-group label.inline-flex{display:inline-flex;align-items:center;font-weight:400;color:#374151;margin-right:1rem}.subscription-btn{display:inline-flex;align-items:center;justify-content:center;padding:.625rem 1rem;border:1px solid transparent;border-radius:.375rem;cursor:pointer;font-size:.875rem;font-weight:500;color:#fff;background-color:#4f46e5;box-shadow:0 1px 2px #0000000d;transition:background-color .15s ease-in-out}.subscription-btn:hover:not(:disabled){background-color:#4338ca}.subscription-btn:focus{outline:none;box-shadow:0 0 0 2px #4f46e580}.subscription-btn:disabled{opacity:.5;cursor:not-allowed}.subscription-btn-danger{background-color:#dc2626;color:#fff}.subscription-btn-danger:hover:not(:disabled){background-color:#b91c1c}.subscription-btn-secondary{background-color:#6b7280;color:#fff}.subscription-btn-secondary:hover:not(:disabled){background-color:#4b5563}.subscription-page-container .all-patients-back-button{display:inline-flex;align-items:center;padding:.5rem 1rem;border:1px solid #d1d5db;border-radius:.375rem;box-shadow:0 1px 2px #0000000d;font-size:.875rem;font-weight:500;color:#374151;background-color:#fff;transition:background-color .15s ease-in-out;margin-bottom:1.5rem}.subscription-page-container .all-patients-back-button:hover{background-color:#f9fafb}.subscription-page-container .all-patients-back-button svg{margin-right:.5rem}.subscription-plan-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1.5rem;margin-top:1rem}.subscription-plan-card{background-color:#fff;border:1px solid #e5e7eb;border-radius:.5rem;padding:1.25rem;box-shadow:0 1px 3px #00000012,0 1px 2px #0000000a;transition:box-shadow .2s ease-in-out,border-color .2s ease-in-out,transform .2s ease-in-out;cursor:pointer}.subscription-plan-card:hover{box-shadow:0 4px 8px #0000001a;border-color:#a5b4fc;transform:translateY(-3px)}.subscription-plan-card.selected-plan{border-color:#4f46e5;box-shadow:0 0 0 2px #4f46e566;transform:translateY(-1px)}.subscription-plan-card h3{font-size:1.25rem;color:#374151;font-weight:600;margin-top:0;margin-bottom:.5rem}.subscription-plan-card p{font-size:.875rem;color:#4b5563;margin-bottom:.5rem;line-height:1.5}.subscription-plan-card .price{font-size:1.5rem;font-weight:700;color:#10b981;margin-bottom:.75rem}.subscription-plan-card .duration{font-style:normal;color:#6b7280;font-size:1rem;font-weight:500}.subscription-plan-actions{margin-top:1rem;display:flex;gap:.5rem;justify-content:flex-end}.subscription-plan-actions .subscription-btn{padding:.5rem .75rem;font-size:.875rem}.subscription-table{width:100%;border-collapse:collapse;margin-top:1.5rem;background-color:#fff;box-shadow:0 2px 4px #0000000d;border-radius:.5rem;overflow:hidden;overflow-x:auto}.subscription-table th,.subscription-table td{border-bottom:1px solid #e5e7eb;padding:.75rem 1rem;text-align:left;font-size:.875rem}.subscription-table th{background-color:#f3f4f6;color:#374151;font-weight:600;text-transform:uppercase;letter-spacing:.05em}.subscription-table tr:hover{background-color:#f9fafb}.subscription-table td{color:#4b5563}.subscription-table .actions-cell{display:flex;gap:.5rem}.subscription-table .actions-cell .subscription-btn{padding:.375rem .75rem}.loading-state-subscription,.error-state-subscription{text-align:center;padding:2.5rem 0;color:#6b7280;font-size:1rem}.error-alert-subscription{background-color:#fee2e2;border:1px solid #fca5a5;color:#b91c1c;padding:.75rem 1rem;border-radius:.375rem;margin-bottom:1rem}@media (max-width: 768px){.subscription-plan-list{grid-template-columns:1fr}.subscription-form{padding:1rem}.subscription-page-container h1{font-size:1.5rem}.subscription-page-container h2{font-size:1.125rem}.subscription-page-container{padding:1rem;margin:1rem auto}}@media (prefers-color-scheme: dark){.subscription-page-container{background-color:#111827;box-shadow:0 4px 6px -1px #0000004d,0 2px 4px -1px #00000040}.subscription-page-container h1,.subscription-page-container h2{color:#e5e7eb}.subscription-page-container h1 svg{color:#818cf8}.subscription-page-container h2{border-bottom-color:#4b5563}.subscription-form{background-color:#1f2937;box-shadow:0 1px 3px #0000004d,0 1px 2px #00000040}.subscription-form label{color:#d1d5db}.subscription-form input[type=text],.subscription-form input[type=number],.subscription-form input[type=date],.subscription-form textarea,.subscription-form select{background-color:#374151;border-color:#6b7280;color:#e5e7eb}.subscription-form input[type=date]{color-scheme:dark}.subscription-form select option{background-color:#374151;color:#e5e7eb}.subscription-form input[type=text]:focus,.subscription-form input[type=number]:focus,.subscription-form input[type=date]:focus,.subscription-form textarea:focus,.subscription-form select:focus{border-color:#818cf8;box-shadow:0 0 0 2px #818cf866}.subscription-form .form-group input[type=radio]{accent-color:#818cf8}.subscription-form .form-group label.inline-flex{color:#d1d5db}.subscription-btn{background-color:#6366f1}.subscription-btn:hover:not(:disabled){background-color:#4f46e5}.subscription-btn:focus{box-shadow:0 0 0 2px #6366f180}.subscription-btn-danger{background-color:#ef4444}.subscription-btn-danger:hover:not(:disabled){background-color:#dc2626}.subscription-btn-secondary{background-color:#6b7280}.subscription-btn-secondary:hover:not(:disabled){background-color:#4b5563}.subscription-page-container .all-patients-back-button{border-color:#4b5563;color:#d1d5db;background-color:#374151}.subscription-page-container .all-patients-back-button:hover{background-color:#4b5563}.subscription-plan-card{background-color:#1f2937;border-color:#4b5563;box-shadow:0 1px 3px #0000004d,0 1px 2px #00000040}.subscription-plan-card:hover{box-shadow:0 4px 8px #0000004d;border-color:#818cf8}.subscription-plan-card.selected-plan{border-color:#818cf8;box-shadow:0 0 0 2px #818cf880}.subscription-plan-card h3{color:#e5e7eb}.subscription-plan-card p{color:#d1d5db}.subscription-plan-card .price{color:#6ee7b7}.subscription-plan-card .duration{color:#9ca3af}.subscription-table{background-color:#1f2937;box-shadow:0 2px 4px #00000040}.subscription-table th,.subscription-table td{border-bottom-color:#4b5563}.subscription-table th{background-color:#374151;color:#d1d5db}.subscription-table tr:hover{background-color:#374151}.subscription-table td{color:#d1d5db}.loading-state-subscription,.error-state-subscription{color:#9ca3af}.error-alert-subscription{background-color:#7f1d1d;border-color:#b91c1c;color:#fecaca}}.user-management-page{padding:20px;background-color:#f4f7f6;border-radius:8px;box-shadow:0 2px 4px #0000001a;margin:20px}.user-management-page h1{color:#333;margin-bottom:20px;text-align:center}.add-user-button{background-color:#28a745;color:#fff;padding:10px 15px;border:none;border-radius:5px;cursor:pointer;font-size:16px;margin-bottom:20px;transition:background-color .3s ease}.add-user-button:hover{background-color:#218838}.controls-container{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;gap:10px}.search-input{flex-grow:1;padding:10px;border:1px solid #ccc;border-radius:5px;font-size:16px;max-width:300px}.user-table{width:100%;border-collapse:collapse;margin-top:20px;background-color:#fff;border-radius:8px;overflow:hidden;box-shadow:0 1px 3px #0000001a}.user-table th,.user-table td{border:1px solid #ddd;padding:12px 15px;text-align:left}.user-table th{background-color:#e9ecef;color:#555;font-weight:700}.user-table tr:nth-child(2n){background-color:#f8f9fa}.user-table tr:hover{background-color:#e2e6ea}.edit-button,.delete-button{padding:8px 12px;border:none;border-radius:4px;cursor:pointer;font-size:14px;margin-right:5px;transition:background-color .3s ease}.edit-button{background-color:#007bff;color:#fff}.edit-button:hover{background-color:#0056b3}.delete-button{background-color:#dc3545;color:#fff}.delete-button:hover{background-color:#c82333}.modal{position:fixed;z-index:1000;left:0;top:0;width:100%;height:100%;overflow:auto;background-color:#0006;display:flex;justify-content:center;align-items:center}.modal-content{background-color:#fff;margin:auto;padding:30px;border-radius:8px;box-shadow:0 4px 8px #0003;width:90%;max-width:500px;position:relative}.modal-content h2{margin-top:0;color:#333;margin-bottom:20px;text-align:center}.close-button{color:#aaa;position:absolute;top:10px;right:15px;font-size:28px;font-weight:700;cursor:pointer}.close-button:hover,.close-button:focus{color:#333;text-decoration:none}.form-group{margin-bottom:15px}.form-group label{display:block;margin-bottom:5px;color:#555;font-weight:700}.form-group input[type=text],.form-group input[type=email],.form-group input[type=password],.form-group select{width:calc(100% - 22px);padding:10px;border:1px solid #ccc;border-radius:4px;font-size:16px}.modal-content button[type=submit]{background-color:#007bff;color:#fff;padding:10px 20px;border:none;border-radius:5px;cursor:pointer;font-size:16px;width:100%;transition:background-color .3s ease}.modal-content button[type=submit]:hover{background-color:#0056b3}.error-message{color:#dc3545;background-color:#f8d7da;border:1px solid #f5c6cb;padding:10px;border-radius:5px;margin-bottom:20px;text-align:center}.tutorial-modal-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#000000b3;display:flex;justify-content:center;align-items:center;z-index:1000}.tutorial-modal-content{background-color:#fff;padding:30px;border-radius:8px;box-shadow:0 4px 15px #0003;max-width:600px;width:90%;text-align:left;color:#333;font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;position:relative}.tutorial-modal-content h2{color:#0056b3;margin-bottom:20px;font-size:1.8em;border-bottom:2px solid #eee;padding-bottom:10px}.tutorial-modal-content p{margin-bottom:15px;line-height:1.6;font-size:1em}.tutorial-modal-content ul{list-style:disc inside;margin-bottom:20px;padding-left:20px}.tutorial-modal-content ul li{margin-bottom:8px;font-size:.95em}.tutorial-modal-actions{display:flex;justify-content:flex-end;gap:15px;margin-top:25px;padding-top:15px;border-top:1px solid #eee}.tutorial-button{padding:10px 20px;border:none;border-radius:5px;cursor:pointer;font-size:1em;transition:background-color .3s ease,transform .2s ease}.tutorial-button.action{background-color:#28a745;color:#fff}.tutorial-button.action:hover{background-color:#218838;transform:translateY(-2px)}.tutorial-button.action i{margin-right:8px}.tutorial-step-indicator{text-align:center;margin-top:20px;font-size:.9em;color:#666}.tutorial-button.primary{background-color:#007bff;color:#fff}.tutorial-button.primary:hover{background-color:#0056b3;transform:translateY(-2px)}.tutorial-button.secondary{background-color:#6c757d;color:#fff}.tutorial-button.secondary:hover{background-color:#5a6268;transform:translateY(-2px)}body.dark-mode .tutorial-modal-content{background-color:#333;color:#f0f0f0;box-shadow:0 4px 15px #00000080}body.dark-mode .tutorial-modal-content h2{color:#87ceeb;border-bottom-color:#555}body.dark-mode .tutorial-modal-actions{border-top-color:#555}body.dark-mode .tutorial-step-indicator{color:#bbb}.tutorial-interactive-area{margin-top:20px;padding:20px;background-color:#f9f9f9;border-radius:8px;border:1px solid #eee}body.dark-mode .tutorial-interactive-area{background-color:#444;border-color:#666}.tutorial-interactive-component h3{color:#0056b3;margin-bottom:15px;font-size:1.4em}body.dark-mode .tutorial-interactive-component h3{color:#87ceeb}.tutorial-input{width:calc(100% - 22px);padding:10px;margin-bottom:15px;border:1px solid #ccc;border-radius:5px;font-size:1em}body.dark-mode .tutorial-input{background-color:#555;color:#f0f0f0;border-color:#777}.tutorial-message{margin-top:15px;font-weight:700;padding:10px;border-radius:5px}.tutorial-message.success{color:#155724;background-color:#d4edda;border:1px solid #c3e6cb}.tutorial-message.error{color:#721c24;background-color:#f8d7da;border:1px solid #f5c6cb}body.dark-mode .tutorial-message.success{color:#d4edda;background-color:#155724;border-color:#c3e6cb}body.dark-mode .tutorial-message.error{color:#f8d7da;background-color:#721c24;border-color:#f5c6cb}.tutorial-countdown-indicator{text-align:center;margin-top:10px;font-size:1em;color:#007bff;font-weight:700}body.dark-mode .tutorial-countdown-indicator{color:#87ceeb}@media (max-width: 768px){.tutorial-modal-content{padding:20px 15px;width:95%}.tutorial-modal-content h2{font-size:1.5em}.tutorial-modal-content p{font-size:.95em}.tutorial-modal-actions{flex-direction:column;gap:10px}.tutorial-button{width:100%;padding:12px}.tutorial-interactive-area{padding:15px}.tutorial-interactive-component h3{font-size:1.2em}.tutorial-input{width:calc(100% - 20px)}}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-color:#f4f7f6}.dashboard-layout{min-height:100vh;background-color:#e9ecef;overflow-x:hidden}.app-header{background-color:#fff;padding:.75rem 1.5rem;border-bottom:1px solid #dee2e6;display:flex;justify-content:space-between;align-items:center;box-shadow:0 2px 4px #0000000d;position:sticky;top:0;z-index:1000}.header-left{display:flex;align-items:center;gap:.75rem}.logo-container{flex-shrink:0;height:3rem;width:3rem;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:50%;overflow:hidden;transition:transform .3s ease}.logo-container:hover{transform:scale(1.1)}.logo-image{max-height:100%;max-width:100%;-o-object-fit:contain;object-fit:contain}.title-section{display:flex;flex-direction:column}@media (min-width: 640px){.title-section{flex-direction:row;align-items:baseline;gap:.5rem}}.app-title-link{font-size:1.125rem;font-weight:600;color:#0056b3;text-decoration:none;transition:color .2s ease-in-out}.app-title-link:hover{color:#003d80}.user-role-panel{font-size:.875rem;font-weight:500;color:#495057}.header-right{display:flex;align-items:center;gap:1rem}.install-button{background-color:#007bff;color:#fff;font-weight:600;padding:.375rem .75rem;border-radius:.375rem;box-shadow:0 1px 2px #0000000d;transition:background-color .15s ease-in-out;display:flex;align-items:center;gap:.375rem;font-size:.75rem;border:none;cursor:pointer}.install-button:hover{background-color:#0056b3}.install-button svg{height:1rem;width:1rem}.user-welcome-text{font-size:.875rem;font-weight:500;color:#343a40}@media (max-width: 639px){.user-welcome-text{display:none}.app-header{padding:.75rem .5rem}}.logout-button{background-color:#dc3545;color:#fff;font-size:.75rem;font-weight:600;padding:.375rem .75rem;border-radius:.375rem;box-shadow:0 1px 2px #0000000d;transition:background-color .15s ease-in-out;border:none;cursor:pointer}.logout-button:hover{background-color:#c82333}.go-pro-button{background-color:#28a745;color:#fff;font-size:.75rem;font-weight:600;padding:.375rem .75rem;border-radius:.375rem;box-shadow:0 1px 2px #0000000d;transition:background-color .15s ease-in-out;border:none;cursor:pointer}.go-pro-button:hover{background-color:#218838}.pro-badge{background-color:#ffc107;color:#212529;font-size:.75rem;font-weight:700;padding:.375rem .6rem;border-radius:.375rem;box-shadow:0 1px 2px #0000000d;border:1px solid #e0a800;text-transform:uppercase}.main-content{width:100%;padding:.75rem 0rem;position:relative}@media (min-width: 768px){.main-content{padding:1.5rem}}@media print{.no-print{display:none!important}}@media (prefers-color-scheme: dark){body{background-color:#030712;color:#e5e7eb}.dashboard-layout{background-color:#111827}.app-header{background-color:#1f2937;border-bottom:1px solid #374151}.app-title-link{color:#93c5fd}.app-title-link:hover{color:#60a5fa}.user-role-panel{color:#9ca3af}.user-welcome-text{color:#d1d5db}.install-button{background-color:#3b82f6;color:#fff}.install-button:hover{background-color:#2563eb}.logout-button{background-color:#e25454;color:#fff}.logout-button:hover{background-color:#dc2626}}
