.medset-company-field{margin:0 0 24px}
.medset-company-field>label{display:block;font-size:13px;margin-bottom:8px}
.medset-company-search{display:flex;gap:10px;align-items:stretch}
.medset-company-search input{width:100%;min-width:0;flex:1;border:1px solid var(--stroke_black,#ddd);border-radius:7px;padding:10px 12px;font-size:14px;background:var(--card_bg_black,#fff);color:inherit}
.medset-company-search button{flex-shrink:0}
.medset-company-field .medset-company-status{font-size:12px;line-height:1.45;margin:8px 0;color:var(--secondary,#74777e)}
.medset-company-results{border:1px solid var(--stroke_black,#e4e6ed);border-radius:8px;max-height:260px;overflow:auto}
.medset-company-results[hidden],.medset-company-details[hidden]{display:none}
.medset-company-results button{display:flex;flex-direction:column;gap:4px;text-align:left;background:transparent;border:0;border-bottom:1px solid var(--stroke_black,#eee);width:100%;padding:12px;font-size:12px;cursor:pointer;color:inherit}
.medset-company-results button:hover{background:#f4f6ff}
.medset-company-results span{font-size:11px;line-height:1.5;color:var(--secondary,#777)}
.medset-company-details{padding:12px 14px;background:var(--light_bg_black,#f6f7fa);border:1px solid var(--stroke_black,#e9ebef);border-radius:8px}
.medset-company-details dl{display:grid;grid-template-columns:100px minmax(0,1fr);gap:6px 12px;margin:0;font-size:12px;line-height:1.5}
.medset-company-details dt{font-weight:400;color:var(--secondary,#777)}
.medset-company-details dd{margin:0;overflow-wrap:anywhere}
@media(max-width:600px){.medset-company-search{flex-wrap:wrap}.medset-company-search input{flex-basis:100%}.medset-company-details dl{grid-template-columns:1fr;gap:2px}.medset-company-details dd{margin-bottom:7px}}

.medset_invoice_frame.jqmWindow{width:min(540px,calc(100vw - 32px))!important;max-width:calc(100vw - 32px)!important;max-height:calc(100dvh - 40px)!important;top:50%!important;left:50%!important;transform:translate(-50%,-50%)!important;margin:0!important;overflow:auto!important;border-radius:12px}
.medset-invoice-popup .form-header{padding:26px 26px 0!important;margin-bottom:12px}
.medset-invoice-popup .form-body,.medset-invoice-popup .form-footer{padding-left:26px!important;padding-right:26px!important}
.medset-invoice-popup .form-footer{padding-bottom:24px!important;margin-top:16px!important}
.medset-invoice-popup .form-header .title{font-size:22px;line-height:1.3;padding-right:22px}
.medset-invoice-popup .medset-invoice-caption{font-size:12px;line-height:1.5;margin:0 0 8px;color:var(--secondary,#74777e)}
.medset-invoice-popup .medset-invoice-terms{font-size:13px;line-height:1.5;margin:0 0 8px;font-weight:500}
.medset-invoice-popup .medset-company-field{margin:18px 0}
.medset-invoice-popup .form-control{min-height:40px;height:40px;padding-top:8px;padding-bottom:8px}
.medset-invoice-popup .form-group{margin-bottom:14px}
.medset-invoice-popup .form-footer .bottom-close{display:none}
.medset-invoice-popup .medset-invoice-note{padding:0 26px}
.medset_invoice_frame>.top-close{position:absolute;right:14px;top:12px;border:0;background:none;font-size:28px;line-height:1;z-index:5;color:#999}
@media(max-width:600px){.medset_invoice_frame.jqmWindow{width:calc(100vw - 24px)!important;max-width:calc(100vw - 24px)!important;max-height:calc(100dvh - 24px)!important}.medset-invoice-popup .form-header{padding:22px 18px 0!important}.medset-invoice-popup .form-body,.medset-invoice-popup .form-footer{padding-left:18px!important;padding-right:18px!important}.medset-invoice-popup .medset-invoice-note{padding:0 18px}}

.medset_invoice_frame .medset-invoice-popup{max-height:none!important;height:auto!important;overflow:visible!important}
.medset-company-details summary{font-size:12px;line-height:1.5;cursor:pointer;color:var(--theme-base-color,#365ee7)}
.medset-company-details details[open] summary{margin-bottom:12px}
.medset-invoice-popup .form-footer .jqmClose{display:none}
.medset_invoice_frame>.top-close{position:sticky!important;top:12px;float:right;margin-right:14px;margin-bottom:-28px;right:auto}

.medset_invoice_frame.jqmWindow{min-height:0!important;height:auto!important}
@media(max-width:600px){.medset-invoice-popup .medset-company-search{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.medset-invoice-popup .medset-company-search button{padding-left:12px;padding-right:12px}}

.medset_invoice_frame.jqmWindow{bottom:auto!important;right:auto!important}

.medset-company-search{position:relative}
.medset-company-search>.medset-company-results{position:absolute;top:calc(100% + 6px);left:0;right:0;z-index:30;background:var(--card_bg_black,#fff);box-shadow:0 8px 24px #0002;max-height:250px}
.medset-company-results button:focus{background:#eef2ff;outline:2px solid #365ee7;outline-offset:-2px}

/* Persistent, draggable scroll control for the two delivery-related dialogs. */
.medset-scroll-managed{scrollbar-width:none!important;overscroll-behavior:contain}
.medset-scroll-managed::-webkit-scrollbar{display:none!important}
.medset-popup-scrollbar{position:fixed;width:9px;background:transparent;cursor:pointer;touch-action:none;user-select:none}
.medset-popup-scrollbar::before{content:"";position:absolute;left:3px;top:0;width:3px;height:100%;border-radius:3px;background:#edf0f5;pointer-events:none}
.medset-popup-scrollbar__thumb{will-change:transform;position:relative;display:block;width:3px;margin-left:3px;border-radius:3px;background:#9aa6bf;min-height:36px}
.medset-popup-scrollbar:hover .medset-popup-scrollbar__thumb,.medset-popup-scrollbar:focus-visible .medset-popup-scrollbar__thumb{background:#627ab1}
.medset-popup-scrollbar:focus-visible{outline:2px solid #365ee7;outline-offset:3px}
.medset-popup-scrollbar__thumb::after{content:"";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:7px;height:7px;box-sizing:border-box;border:1px solid #fff;border-radius:50%;background:#7186b0;pointer-events:none}
.medset-popup-scrollbar:hover .medset-popup-scrollbar__thumb::after,.medset-popup-scrollbar:focus-visible .medset-popup-scrollbar__thumb::after{background:#4f69a0}
.medset-popup-scrollbar[hidden]{display:none!important}
@media(forced-colors:active){.medset-popup-scrollbar{background:Canvas;border:1px solid CanvasText}.medset-popup-scrollbar__thumb{background:Highlight}.medset-popup-scrollbar__thumb::after{background:Highlight;border-color:Canvas}}
