.premium-page{max-width:1500px;margin:0 auto;padding:0 24px 48px;color:#18324f}
.premium-page .page-heading{margin:18px 0 26px}
.premium-page .page-heading .heading-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.premium-panel,.premium-section,.premium-form,.premium-hero{border:1px solid #dce6f1;border-radius:22px;background:#fff;box-shadow:0 16px 38px rgba(25,53,81,.06)}
.premium-panel{padding:24px}
.premium-search{display:block;max-width:430px;margin-bottom:20px;color:#657c98;font-weight:700;font-size:13px}
.premium-search input,.premium-page input:not([type=checkbox]):not([type=file]),.premium-page select,.premium-page textarea{display:block;width:100%;box-sizing:border-box;margin-top:7px;padding:12px 14px;border:1px solid #cad8e8;border-radius:11px;background:#f8faff;color:#193653;font:inherit}
.premium-page input:focus,.premium-page select:focus,.premium-page textarea:focus{outline:2px solid #2563eb;outline-offset:2px}
.premium-table-wrap{width:100%;overflow:auto}
.premium-table{width:100%;border-collapse:collapse;text-align:left;font-size:14px}
.premium-table th{color:#687f9a;text-transform:uppercase;letter-spacing:.09em;font-size:11px;padding:14px 12px;border-bottom:1px solid #e1e8f0;white-space:nowrap}
.premium-table td{padding:15px 12px;border-bottom:1px solid #ecf0f5;vertical-align:middle}
.premium-table tr[data-premium-open]{cursor:pointer;transition:background .18s}
.premium-table tr[data-premium-open]:hover,.premium-table tr[data-premium-open]:focus{background:#eff6ff;outline:none}
.premium-open-arrow{color:#2563eb;font-size:21px;text-align:right}
.premium-hero{padding:28px 30px;margin:20px 0}
.premium-hero h2{margin:8px 0;font-size:27px}
.premium-hero p{margin:0;color:#627991}
.premium-section,.premium-form{padding:22px 26px;margin:18px 0}
.premium-section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px}
.premium-section-actions,.premium-row-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.premium-section-actions .button{min-height:36px;padding:7px 12px;font-size:12px}
.premium-row-actions .button{min-height:36px;padding:7px 10px;font-size:12px}
.premium-section-heading h3,.premium-form h3{margin:0;font-size:19px}
.premium-section-heading span{color:#70859d;font-size:12px}
.premium-form h3{margin-bottom:18px}
.premium-form label,#premium-admin-view label{display:block;margin:11px 0;font-size:13px;font-weight:700;color:#506884}
.premium-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.premium-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.premium-doc-row,.premium-account{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:12px 0;border-top:1px solid #e7edf4}
.premium-account small{display:block;color:#7388a0;margin-top:3px}
.premium-account-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;flex:none}
.premium-account-actions .button{min-height:36px;padding:7px 11px;font-size:12px}
@media(max-width:650px){#premium-admin-view .premium-account{align-items:flex-start;flex-direction:column}#premium-admin-view .premium-account-actions{justify-content:flex-start;width:100%}}
#premium-admin-view{color:#18324f}
#premium-admin-view .page-heading .eyebrow,#premium-view .page-heading .eyebrow{color:#2563eb}
#premium-admin-view input:not([type=checkbox]):not([type=file]),#premium-admin-view select{background:#fff}
#premium-admin-view select{appearance:none;-webkit-appearance:none;min-height:52px;padding:12px 48px 12px 16px;line-height:1.35;font-size:16px;background-color:#fff;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='m5 7.5 5 5 5-5' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 15px center;background-size:20px 20px;cursor:pointer}
#premium-admin-view input:not([type=checkbox]):not([type=file]){min-height:52px;font-size:16px}
#premium-admin-view .button.button-outline{background:#fff;border-color:#d5dfeb;color:#18324f;box-shadow:none}
#premium-admin-view .button.button-primary,#premium-view .button.button-primary,.premium-dialog .button.button-primary{background:#2563eb;border-color:#2563eb;color:#fff;box-shadow:0 8px 19px rgba(37,99,235,.18)}
#premium-admin-view .button.button-primary:hover,#premium-view .button.button-primary:hover,.premium-dialog .button.button-primary:hover{background:#1d4ed8;border-color:#1d4ed8}
.premium-page .button.premium-delete{background:#d32e3b;border-color:#d32e3b;color:#fff;box-shadow:none}
.premium-page .button.premium-delete:hover{background:#bb2230;border-color:#bb2230}
#premium-admin-view .premium-panel,#premium-admin-view .premium-client-bar,#premium-admin-view .premium-section{border-radius:16px;box-shadow:0 9px 28px rgba(25,53,81,.04)}
body[data-view="premium-admin-view"] .shell{width:100%;max-width:none;padding-left:0;padding-right:0}
#premium-admin-view{width:100%;max-width:none;margin:0;padding:0;color-scheme:light}
.premium-admin-shell{display:grid;grid-template-columns:220px minmax(0,1fr);min-height:650px;overflow:hidden;border:1px solid #dce6f1;border-radius:18px;background:#f5f7fc;box-shadow:0 14px 36px rgba(25,53,81,.07)}
html.embedded-contracts body[data-view="premium-admin-view"] .shell{display:flex;flex-direction:column;width:100%;max-width:none;min-height:100vh;min-height:100dvh;margin:0;padding:0}
html.embedded-contracts body[data-view="premium-admin-view"] #premium-admin-view{display:flex;flex:1;flex-direction:column;min-height:100vh;min-height:100dvh}
html.embedded-contracts body[data-view="premium-admin-view"] .premium-admin-shell{flex:1;width:100%;min-height:100vh;min-height:100dvh;border:0;border-radius:0;box-shadow:none}
.premium-admin-rail{display:flex;flex-direction:column;gap:0;min-width:0;padding:27px 16px;background:#fff;border-right:1px solid #dce6f1}
.premium-admin-rail>.eyebrow{color:#2563eb;font-size:11px;letter-spacing:.12em}
.premium-admin-rail>h2{margin:9px 6px 20px;color:#18324f;font-size:20px}
.premium-client-rail-list{display:grid;align-content:start;gap:5px;min-width:0;max-height:60vh;overflow-y:auto;padding:2px}
.premium-client-rail-item{display:block;width:100%;min-width:0;padding:12px 13px;border:0;border-radius:10px;background:transparent;color:#18324f;text-align:left;font:inherit;cursor:pointer}
.premium-client-rail-item:hover{background:#f2f6fd}
.premium-client-rail-item.selected{background:#eaf2ff;box-shadow:inset 3px 0 #2563eb}
.premium-client-rail-item strong,.premium-client-rail-item small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.premium-client-rail-item strong{font-size:14px}
.premium-client-rail-item small{margin-top:4px;color:#68809b;font-size:12px}
#premium-admin-view .premium-rail-add{justify-content:flex-start;min-height:43px;margin-top:18px;padding:9px 13px;background:#fff;color:#2563eb;border-color:#dce6f1}
#premium-admin-view .premium-rail-back{justify-content:flex-start;margin-top:auto;padding:9px 13px}
.premium-admin-main{min-width:0;padding:28px 31px 32px;background:#f5f7fc}
.premium-admin-main-heading{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:19px}
.premium-admin-main-heading .eyebrow{color:#2563eb;font-size:11px;letter-spacing:.12em}
.premium-admin-main-heading h1{margin:8px 0 5px;color:#18324f;font-size:31px;letter-spacing:-.035em;line-height:1.15}
.premium-admin-main-heading-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.premium-admin-main-heading-actions img{width:95px;height:50px;object-fit:contain;object-position:center}
.premium-admin-main-heading-actions .button{min-height:42px}
#premium-admin-view .premium-summary{margin:0;padding:0;color:#7288a0;font-size:14px;white-space:normal}
.premium-admin-main .premium-admin-tabs{gap:20px;margin-bottom:24px}
.premium-admin-main .premium-admin-tab{padding:13px 3px 12px}
.premium-admin-main .premium-admin-section-head h2{margin:0;color:#18324f;font-size:22px}
.premium-admin-main .premium-search{max-width:480px;margin-bottom:15px}
.premium-admin-object-list{display:grid;gap:9px}
.premium-admin-object-card{display:grid;grid-template-columns:80px minmax(0,1fr) 22px;align-items:center;gap:15px;width:100%;min-height:68px;padding:12px 17px;border:1px solid #dce6f1;border-radius:12px;background:#fff;color:#18324f;text-align:left;font:inherit;cursor:pointer;transition:border-color .15s,background .15s,box-shadow .15s}
.premium-admin-object-card:hover,.premium-admin-object-card:focus-visible{border-color:#aac8f8;background:#fbfdff;box-shadow:0 5px 14px rgba(31,78,146,.06)}
.premium-object-belaz{font-size:14px;font-weight:700;font-variant-numeric:tabular-nums}
.premium-object-info{min-width:0}
.premium-object-info strong,.premium-object-info small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.premium-object-info strong{font-size:14px}
.premium-object-info small{margin-top:4px;color:#7288a0;font-size:12px}
.premium-object-arrow{color:#2563eb;font-size:20px;text-align:right}
.premium-admin-object-empty{padding:26px;border:1px dashed #cbd9eb;border-radius:12px;background:#fff;color:#70849c;text-align:center}
.premium-import-menu{position:relative}
.premium-import-menu summary{list-style:none;cursor:pointer}
.premium-import-menu summary::-webkit-details-marker{display:none}
.premium-import-menu-panel{position:absolute;right:0;top:calc(100% + 6px);z-index:6;min-width:190px;padding:5px;border:1px solid #dce6f1;border-radius:10px;background:#fff;box-shadow:0 12px 28px rgba(25,53,81,.14)}
.premium-import-menu-panel button{display:block;width:100%;padding:11px 12px;border:0;border-radius:7px;background:transparent;color:#18324f;text-align:left;font:inherit;cursor:pointer}
.premium-import-menu-panel button:hover{background:#eff6ff}
.premium-dialog#premium-logo-dialog{color-scheme:light;background:#fff;color:#18324f}
.premium-dialog#premium-logo-dialog .premium-client-logo-tools{margin-top:18px}
.premium-dialog#premium-logo-dialog .premium-client-logo-tools label{width:100%!important}
.premium-dialog#premium-logo-dialog .premium-client-logo-tools input[type=file]{max-width:none}
@media(max-width:850px){.premium-admin-shell{grid-template-columns:1fr}.premium-admin-rail{padding:16px;border-right:0;border-bottom:1px solid #dce6f1}.premium-admin-rail>.eyebrow,.premium-admin-rail>h2{display:none}.premium-client-rail-list{display:flex;gap:6px;max-height:none;overflow-x:auto;padding:2px 0}.premium-client-rail-item{flex:none;width:auto;min-width:125px}.premium-rail-add{align-self:flex-start;margin-top:9px!important}.premium-admin-main{padding:22px}}
@media(max-width:560px){.premium-admin-main{padding:18px 14px}.premium-admin-main-heading{align-items:flex-start;flex-direction:column}.premium-admin-main-heading h1{font-size:26px}.premium-admin-main .premium-admin-section-head{align-items:flex-start}.premium-admin-main .premium-import-actions{width:100%;justify-content:flex-start}.premium-admin-object-card{grid-template-columns:58px minmax(0,1fr) 18px;gap:9px;padding:11px 12px}.premium-object-info strong,.premium-object-info small{white-space:normal;overflow-wrap:anywhere}.premium-admin-list-foot{gap:10px}}
.premium-client-bar{display:flex;justify-content:space-between;align-items:end;gap:20px;padding:17px 22px;margin-bottom:16px}
.premium-client-bar label{width:min(360px,100%);margin:0!important}
.premium-client-bar label{width:min(500px,100%)}
.premium-client-bar select{background:#fff!important}
.premium-client-logo-tools{display:flex;align-items:end;gap:9px;flex-wrap:wrap;min-width:0}
.premium-client-logo-tools label{width:min(260px,100%)!important;margin:0!important}
.premium-client-logo-tools input[type=file]{display:block;width:100%;max-width:260px;box-sizing:border-box;min-height:42px;margin-top:7px;padding:8px;border:1px solid #cad8e8;border-radius:10px;background:#fff;color:#193653;font:inherit;font-size:12px}
.premium-client-logo-tools .button{min-height:42px;padding:8px 11px;font-size:12px}
.premium-client-logo-tools img{width:92px;height:48px;object-fit:contain;object-position:center;background:#f6f8fc;border:1px solid #e0e8f2;border-radius:9px;padding:4px}
body[data-view="premium-view"] .brand #premium-brand-logo{display:block;width:104px;height:45px;max-height:45px;object-fit:contain;object-position:center}
body[data-view="premium-view"] .brand #premium-brand-logo.hidden{display:none}
@media(max-width:950px){body[data-view="premium-view"] .brand #premium-brand-logo{width:75px}.premium-client-bar{align-items:start;flex-wrap:wrap}.premium-client-logo-tools{width:100%}}
@media(max-width:650px){body[data-view="premium-view"] .customer-mobile-header-top #premium-mobile-brand-logo{display:block;width:min(37vw,145px);height:55px;max-height:55px;object-fit:contain;object-position:center}body[data-view="premium-view"] .customer-mobile-header-top .header-customer-number{display:none}}
.premium-summary{color:#6b8099;white-space:nowrap;padding-bottom:10px}
.premium-admin-tabs{display:flex;gap:4px;border-bottom:1px solid #dce6f1;margin:0 0 20px}
.premium-admin-tab{border:0;border-bottom:3px solid transparent;background:transparent;color:#637b95;padding:12px 18px;font:inherit;font-weight:700;cursor:pointer}
.premium-admin-tab:hover{color:#18324f}
.premium-admin-tab.active{border-bottom-color:#2563eb;color:#18324f}
.premium-admin-section-head{display:flex;align-items:end;justify-content:space-between;gap:16px;margin:0 0 14px}
.premium-import-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.premium-import-actions .button{min-height:42px}
.premium-admin-detail-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.premium-admin-detail-actions .button{min-height:42px}
#premium-object-dialog .premium-object-address{grid-column:1/-1}
.premium-dialog #premium-client-form,.premium-dialog#premium-import-dialog{color:#18324f}
.premium-dialog #premium-client-form label,.premium-dialog .premium-import-file-label{display:block;margin:15px 0 10px;color:#506884;font-size:13px;font-weight:700}
.premium-dialog #premium-client-form input,.premium-dialog .premium-import-file-label input{display:block;width:100%;box-sizing:border-box;min-height:48px;margin-top:7px;padding:10px 12px;border:1px solid #cad8e8;border-radius:11px;background:#fff;color:#193653;font:inherit}
.premium-dialog #premium-client-form .subtle,#premium-import-help{line-height:1.5;color:#627991}
.premium-import-preview{min-height:72px;margin:16px 0 0;padding:14px 16px;border:1px solid #dce6f1;border-radius:12px;background:#f8faff;color:#18324f;line-height:1.5}
.premium-import-preview ul{max-height:175px;overflow:auto;margin:10px 0 0;padding-left:20px}
.premium-bulk-doc-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px 16px;margin-top:18px}
.premium-bulk-doc-client{display:inline-block;margin:3px 0 10px;padding:6px 10px;border-radius:8px;background:#eaf2ff;color:#19488f;font-size:13px;font-weight:800}
.premium-bulk-doc-fields label{display:grid;align-content:start;gap:7px;min-width:0;color:#506884;font-size:13px;font-weight:700}
.premium-bulk-doc-fields label:last-child{grid-column:1/-1}
.premium-bulk-doc-fields input,.premium-bulk-doc-fields select{box-sizing:border-box;width:100%;min-height:48px;padding:10px 12px;border:1px solid #cad8e8;border-radius:11px;background:#fff;color:#193653;font:inherit}
.premium-bulk-doc-fields .hidden{display:none}
.premium-bulk-doc-summary{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
.premium-bulk-doc-summary span{padding:5px 9px;border-radius:8px;background:#eaf2ff;color:#19488f;font-weight:700}
.premium-bulk-doc-summary .premium-bulk-doc-error{background:#fff1f1;color:#c82736}
.premium-bulk-doc-list{max-height:260px;overflow:auto;margin:12px 0 0;padding:0;list-style:none}
.premium-bulk-doc-list li{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1.5fr) auto;gap:10px;padding:8px 0;border-top:1px solid #e4ebf4;font-size:12px}
.premium-bulk-doc-list li span{overflow-wrap:anywhere}
.premium-bulk-doc-list li b{color:#315b91}
.premium-bulk-doc-list li.premium-bulk-doc-blocked b{color:#c82736}
@media(max-width:650px){.premium-bulk-doc-fields{grid-template-columns:1fr}.premium-bulk-doc-list li{grid-template-columns:1fr 1fr}.premium-bulk-doc-list li b{grid-column:1/-1}}
.premium-admin-section-head h2{font-size:22px;margin:0 0 4px}
.premium-admin-section-head p{margin:0}
#premium-admin-view .premium-search{margin:0 0 14px}
.premium-admin-table-wrap{padding:10px 18px;overflow-x:auto}
.premium-admin-table{min-width:580px}
.premium-admin-table th,.premium-admin-table td{padding:13px 12px}
.premium-admin-table tr[data-premium-admin-object]{cursor:pointer}
.premium-admin-table tr[data-premium-admin-object]:hover{background:#eff6ff}
.premium-admin-table td:first-child{color:#18324f;font-weight:700;white-space:nowrap}
.premium-admin-table td small{display:block;color:#7288a0;margin-top:3px}
.premium-admin-table .premium-action-heading{text-align:right}
.premium-admin-table td:last-child{text-align:right}
.premium-admin-open{border:0;background:#eff6ff;color:#1d4ed8;padding:9px 14px;border-radius:9px;font:inherit;font-weight:700;cursor:pointer;white-space:nowrap}
.premium-admin-open:hover{background:#dbeafe}
.premium-admin-list-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:15px 0;color:#6c8098;font-size:13px}
.premium-admin-pager{display:flex;align-items:center;gap:9px}
.premium-admin-pager .button{padding:8px 11px}
.premium-admin-pager button:disabled{opacity:.45;cursor:default}
.premium-export{position:relative}
.premium-export summary{list-style:none;cursor:pointer}
.premium-export summary::-webkit-details-marker{display:none}
.premium-export-menu{position:absolute;right:0;top:calc(100% + 5px);z-index:4;min-width:132px;padding:5px;background:#fff;border:1px solid #dce6f1;border-radius:10px;box-shadow:0 12px 28px rgba(25,53,81,.12)}
.premium-export-menu button{display:block;width:100%;border:0;background:transparent;text-align:left;padding:10px;border-radius:7px;color:#18324f;font:inherit;cursor:pointer}
.premium-export-menu button:hover{background:#f5f7fa}
#premium-admin-detail-back{margin-bottom:14px}
.premium-admin-detail-hero{padding:22px 26px;margin:0 0 16px}
.premium-admin-detail-hero h2{margin:6px 0;font-size:25px}
.premium-admin-detail-hero p{margin:0;color:#627991}
.premium-admin-detail-hero .eyebrow,.premium-hero .eyebrow{color:#2563eb}
.premium-admin-detail-hero .premium-service{display:inline-block;margin-top:12px;padding:7px 10px;background:#f2f5fa;border-radius:8px;color:#49627d;font-size:13px}
.premium-admin-action-heading,.premium-admin-row-actions{text-align:right;width:1%;white-space:nowrap}
.premium-admin-row-actions .button{min-height:36px;padding:6px 10px;margin-right:5px;font-size:12px}
.premium-admin-row-actions .button:last-child{margin-right:0}
.premium-admin-entity-form{border-top:1px solid #e6edf4;margin-top:14px;padding-top:10px}
.premium-admin-entity-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.premium-admin-entity-fields label{min-width:0}
#premium-admin-view .premium-section{margin:0 0 16px}
#premium-admin-view .premium-section-heading span{color:#71859e;font-size:12px}
.premium-admin-access-empty{padding:18px;background:#f6f8fb;border-radius:10px;color:#70849c;margin-bottom:20px}
.premium-admin-access-empty strong{display:block;color:#18324f;margin-bottom:4px}
#premium-invite-form{border-top:1px solid #e5ebf2;padding-top:4px}
#premium-invite-form h3{font-size:18px;margin:18px 0 12px}
.premium-invite-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.premium-invite-fields label{min-width:0}
#premium-invite-object-picker{max-width:650px}
#premium-invite-object-picker>label{max-width:380px}
.premium-document-form{display:grid;grid-template-columns:minmax(220px,1fr) minmax(170px,230px) auto;align-items:end;gap:11px;margin-top:22px;padding-top:18px;border-top:1px solid #e6edf4}
.premium-upload-intro{grid-column:1/-1;display:flex;align-items:baseline;gap:12px}
.premium-upload-intro strong{font-size:14px;color:#193451}
.premium-upload-intro small{font-size:12px;color:#71859e}
.premium-document-form label,.premium-folder-form label{min-width:0;margin:0!important}
#premium-admin-view .premium-upload-file{position:relative;display:flex;align-items:center;gap:10px;min-height:52px;padding:7px 10px;border:1px solid #cad8e8;border-radius:11px;background:#fff;cursor:pointer}
.premium-upload-file:focus-within{outline:2px solid #2563eb;outline-offset:2px}
.premium-upload-file-button{display:inline-flex;align-items:center;justify-content:center;flex:none;min-height:34px;padding:5px 10px;border-radius:8px;background:#edf4ff;color:#1d4ed8;font-size:12px;font-weight:700}
#premium-upload-filename{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#617893;font-size:13px;font-weight:500}
.premium-upload-file input[type=file]{position:absolute;width:1px;height:1px;opacity:0;clip-path:inset(50%)}
#premium-admin-view .premium-upload-destination{font-size:12px}
.premium-upload-destination select{display:block;box-sizing:border-box;width:100%;margin-top:6px}
.premium-document-form button{min-height:52px;margin:0}
.premium-folder-form{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:8px 0 20px}
.premium-folder-form label{flex:1;max-width:420px}
.premium-folder-form button{min-height:52px}
.premium-document-groups{display:grid;gap:11px}
.premium-folder-group{min-width:0;margin:0;border:1px solid #dce6f1;border-radius:12px;background:#fff;overflow:hidden}
.premium-folder-heading,.premium-folder-actions,.premium-doc-actions{display:flex;align-items:center;gap:8px}
.premium-folder-heading{min-height:56px;padding:6px 12px;justify-content:space-between}
.premium-folder-toggle{display:flex;align-items:center;gap:10px;min-width:0;min-height:43px;flex:1;border:0;background:transparent;text-align:left;color:#193451;font:inherit;cursor:pointer}
.premium-folder-toggle:focus-visible{outline:2px solid #2563eb;outline-offset:2px;border-radius:8px}
.premium-folder-toggle strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px}
.premium-folder-icon,.premium-doc-file-icon{display:grid;place-items:center;flex:none;width:33px;height:33px;border-radius:9px;background:#edf4ff;color:#2563eb}
.premium-folder-icon svg,.premium-doc-file-icon svg{width:18px;height:18px}
.premium-folder-count{margin-left:auto;color:#71859e;font-size:12px;white-space:nowrap}
.premium-folder-chevron{margin:0 2px 3px;color:#6a8098;font-size:22px;line-height:1;transform:rotate(-90deg);transition:transform .15s}
.premium-folder-toggle[aria-expanded=true] .premium-folder-chevron{transform:rotate(0)}
.premium-folder-actions{flex:none}
.premium-folder-actions .button,.premium-doc-actions .button{min-height:36px;padding:6px 10px;font-size:12px}
.premium-folder-body{border-top:1px solid #e6edf4}
.premium-folder-body[hidden]{display:none}
.premium-doc-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;padding:12px 14px;border-top:1px solid #e7edf4}
.premium-folder-body .premium-doc-row:first-child{border-top:0}
.premium-doc-file-name{display:block;min-width:0;flex:1}
.premium-doc-file-name strong,.premium-doc-file-name small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.premium-doc-file-name strong{color:#193451;font-size:13px}
.premium-doc-file-name small{margin-top:3px;color:#71859e;font-size:11px}
.premium-doc-actions{justify-content:flex-end;flex-wrap:wrap}
.premium-doc-actions select{width:auto;min-width:180px;max-width:240px;min-height:38px!important;margin:0;padding:6px 38px 6px 10px!important;font-size:13px!important}
.premium-document-empty{margin:0;padding:17px 14px;color:#71859e;font-size:13px}
#premium-admin-document .premium-section-heading{align-items:start;margin-bottom:16px}
#premium-admin-document-object{margin:5px 0 0;color:#71859e;font-size:13px}
#premium-view .premium-customer-panel .premium-document-groups{margin-top:3px}
#premium-view .premium-customer-panel .premium-doc-row>.button{flex:none;min-height:36px;padding:6px 11px;font-size:12px}
.premium-grant-objects{max-height:320px;overflow:auto;padding:9px;border:1px solid #e0e7ef;border-radius:12px;margin:12px 0}
.premium-grant-objects label{display:flex;align-items:center;gap:8px;margin:3px 0;padding:6px;border-radius:7px;cursor:pointer;font-weight:500}
.premium-grant-objects label:hover{background:#f5f7fa}
.premium-grant-objects input{accent-color:#2563eb}
.premium-access-form{padding:16px;background:#f7f9fc;border:1px solid #dce6f1;border-radius:14px;margin:14px 0}
.premium-dialog{box-sizing:border-box;width:min(540px,calc(100vw - 28px));max-height:min(86vh,900px);overflow:auto;border:1px solid #dce6f1;border-radius:18px;background:#fff;padding:26px;box-shadow:0 24px 60px rgba(21,42,68,.22);color:#18324f}
.premium-wide-dialog{width:min(760px,calc(100vw - 28px))}
.premium-dialog::backdrop{background:rgba(17,35,58,.5)}
.premium-dialog .dialog-heading{display:flex;align-items:start;justify-content:space-between;gap:16px;margin-bottom:20px}
.premium-dialog .dialog-heading h2{font-size:23px;margin:5px 0 0}
.premium-dialog .dialog-heading .eyebrow{color:#2563eb}
.premium-dialog label{display:block;margin:10px 0;font-size:13px;font-weight:700;color:#506884}
.premium-dialog input:not([type=checkbox]),.premium-dialog select{display:block;box-sizing:border-box;width:100%;min-height:50px;margin-top:7px;padding:11px 14px;border:1px solid #cad8e8;border-radius:11px;background:#fff;color:#193653;font:inherit;font-size:16px}
.premium-dialog select{appearance:none;-webkit-appearance:none;padding-right:46px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='m5 7.5 5 5 5-5' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;background-size:20px 20px}
.premium-dialog .modal-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:22px}
.premium-dialog-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 14px}
.premium-dialog-fields label{min-width:0}
.premium-dialog .premium-invite-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
.premium-dialog #premium-invite-form{border-top:0;padding-top:0}
.premium-dialog .premium-grant-objects{max-height:270px}

/* Customer object detail follows the contract portal's light card layout. */
#premium-view.premium-detail-active{max-width:1280px;color:#202337}
#premium-view.premium-detail-active>.page-heading{display:none}
#premium-view.premium-detail-active #premium-back{margin:6px 0 25px;border-color:#d9dcf0;color:#4142ac}
.premium-customer-title{margin:0 0 23px}
.premium-customer-title .eyebrow{color:#4743e8!important;margin-bottom:10px}
.premium-customer-title h1{margin:0 0 8px;font-size:clamp(26px,3vw,36px);line-height:1.17;letter-spacing:-.04em;color:#202337}
.premium-customer-title p{margin:0;color:#697286;font-size:14px}
.premium-customer-overview{display:grid;grid-template-columns:minmax(125px,.5fr) minmax(0,1.65fr) minmax(0,1.3fr);gap:24px;padding:23px 28px;border-top:4px solid #173b60;border-radius:20px;background:#f1f6fc}
.premium-customer-fact{min-width:0}
.premium-customer-fact small{display:block;margin:0 0 6px;color:#697d94;font-size:10px;font-weight:800;letter-spacing:.09em;text-transform:uppercase}
.premium-customer-fact strong{display:block;color:#183651;font-size:16px;line-height:1.4;overflow-wrap:anywhere}
.premium-customer-name strong{font-size:18px}
.premium-customer-workspace{margin-top:21px;border-radius:20px;overflow:hidden}
.premium-customer-tabs{display:flex;gap:3px;overflow-x:auto;padding:0 25px;border-bottom:1px solid #e8edf4}
.premium-customer-tabs button{display:flex;align-items:center;gap:7px;flex:none;min-height:63px;padding:13px 14px 11px;border:0;border-bottom:3px solid transparent;background:transparent;color:#66748a;font:inherit;font-size:13px;font-weight:730;white-space:nowrap;cursor:pointer}
.premium-customer-tabs button[aria-selected=true]{color:#4743e8;border-bottom-color:#4743e8}
.premium-customer-tabs button span{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 5px;border-radius:7px;background:#f0efff;color:#514ad2;font-size:11px;font-weight:800}
.premium-customer-panel{padding:27px 28px 25px;min-height:350px}
.premium-customer-panel-head{display:flex;align-items:end;justify-content:space-between;flex-wrap:wrap;gap:16px;margin-bottom:21px}
.premium-customer-panel-head h2{margin:0;color:#193451;font-size:22px}
.premium-customer-panel-head p{margin:5px 0 0;color:#697286;font-size:13px}
.premium-customer-tools{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
#premium-view .premium-customer-tools input{width:240px;min-height:44px;margin:0;padding:10px 12px;border:1px solid #d9dcf0;border-radius:10px;background:#fff;color:#202337;font-size:13px}
#premium-view.premium-detail-active .button.button-primary{background:#4743e8;border-color:#4743e8;color:#fff;box-shadow:0 8px 19px rgba(71,67,232,.19)}
#premium-view.premium-detail-active .button.button-primary:hover{background:#3733ce;border-color:#3733ce}
#premium-view .premium-customer-table th{color:#6f8095;font-size:10px;letter-spacing:.075em;border-color:#e4e9f0}
#premium-view .premium-customer-table td{color:#34435a;font-size:13px;border-color:#edf0f5}
#premium-view .premium-customer-table th:last-child{text-align:right}
#premium-view .premium-customer-table td.premium-row-actions{display:table-cell;white-space:nowrap;text-align:right;width:1%}
#premium-view .premium-customer-table td.premium-row-actions .button+.button{margin-left:8px}
#premium-view .premium-customer-table .button.button-outline{border-color:#d9dcf0;color:#4142ac}
.premium-customer-list-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:17px;color:#8b93a3;font-size:12px}
.premium-customer-pager{display:flex;align-items:center;gap:8px;color:#697286}
.premium-customer-pager .button{min-height:35px;padding:6px 10px;font-size:12px}
.premium-customer-pager .button:disabled{opacity:.45;cursor:default}
#premium-view .premium-customer-panel .premium-form{max-width:650px;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
#premium-view .premium-customer-panel .premium-form label{display:block;margin:0 0 16px;color:#37465c;font-size:13px;font-weight:730}
#premium-view .premium-customer-panel .premium-form input,#premium-view .premium-customer-panel .premium-form textarea{margin-top:9px;background:#fff}
#premium-view .premium-customer-panel .premium-form input[type=file]{display:block;box-sizing:border-box;width:100%;padding:13px;border:1px dashed #b9c5e9;border-radius:12px;background:#f8f9ff;color:#34435a}
.premium-dialog.premium-customer-dialog{padding:0;border:0;border-radius:22px;overflow:hidden;background:#fff;box-shadow:0 32px 90px rgba(25,34,69,.27)}
.premium-dialog.premium-customer-dialog .dialog-heading{position:relative;align-items:flex-start;margin:0;padding:29px 30px 25px;border-top:4px solid #4743e8;border-bottom:1px solid #e9edf5;background:linear-gradient(135deg,#f7f8ff 0%,#fff 75%)}
.premium-dialog.premium-customer-dialog .dialog-heading h2{font-size:25px;letter-spacing:-.035em;line-height:1.15;margin:9px 0 0;color:#18324f}
.premium-dialog.premium-customer-dialog .dialog-heading p{margin:11px 0 0;color:#64758d;font-size:13px;line-height:1.5;max-width:370px}
.premium-dialog.premium-customer-dialog #premium-entity-close{display:grid;place-items:center;flex:none;width:40px;height:40px;padding:0;border:0;border-radius:12px;background:#eeeffb;color:#4743e8;font-size:18px}
.premium-dialog.premium-customer-dialog #premium-entity-form{padding:21px 30px 27px}
.premium-dialog.premium-customer-dialog .premium-dialog-fields{gap:13px 16px}
.premium-dialog.premium-customer-dialog .premium-dialog-fields label{margin:0;color:#3b526f;font-size:12px;letter-spacing:.01em}
.premium-dialog.premium-customer-dialog .premium-dialog-fields input{min-height:54px;margin-top:8px;border-color:#d2dcf0;border-radius:12px;background:#fbfcff;color:#18324f;font-weight:600;box-shadow:0 1px 2px rgba(21,45,81,.03)}
.premium-dialog.premium-customer-dialog .premium-dialog-fields input:focus{outline:2px solid #4743e8;outline-offset:1px;background:#fff}
.premium-dialog-fields .premium-authorized-switch{display:inline-flex!important;grid-column:1/-1;justify-self:start;align-items:center;gap:9px;box-sizing:border-box;max-width:100%;min-height:40px;padding:8px 12px;margin:2px 0 0!important;border:1px solid #dce3f3;border-radius:10px;background:#f7f9fe;color:#294366;font-size:13px;font-weight:700;line-height:1.3;cursor:pointer}
.premium-dialog.premium-customer-dialog .premium-dialog-fields .premium-authorized-switch input[type=checkbox]{display:block;flex:none;box-sizing:border-box;width:18px;height:18px;min-height:18px;padding:0;margin:0;border:0;border-radius:4px;background:transparent;box-shadow:none;accent-color:#4743e8}
.premium-rights-open{grid-column:1/-1;width:100%;min-height:50px;padding:10px 13px;border:1px solid #d9dcf0;border-radius:12px;background:#f6f6ff;color:#4142ac;font:inherit;font-size:13px;font-weight:700;text-align:left;cursor:pointer}
.premium-rights-open:hover{background:#ececff}
#premium-confirm-dialog{border-top:4px solid #d62d3d}
#premium-confirm-message{margin:0;color:#415873;font-size:15px;line-height:1.5}
#premium-confirm-dialog .modal-actions{display:flex;flex-direction:column;align-items:stretch;gap:10px}
#premium-confirm-dialog .modal-actions .button{width:100%;min-height:48px;margin:0}
#premium-confirm-dialog .modal-actions .button.premium-delete{border:1px solid #d32e3b;background:#d32e3b;color:#fff;box-shadow:0 8px 18px rgba(211,46,59,.18)}
#premium-confirm-dialog .modal-actions .button.premium-delete:hover{border-color:#bb2230;background:#bb2230}
.premium-rights-table-wrap{overflow-x:auto}
.premium-rights-table{width:100%;border-collapse:collapse;min-width:540px;text-align:center;color:#243d59;font-size:13px}
.premium-rights-table th,.premium-rights-table td{padding:13px 10px;border-bottom:1px solid #e6ebf3}
.premium-rights-table thead th{background:#f3f5fd;color:#536883;font-size:11px;text-transform:uppercase;letter-spacing:.04em}
.premium-rights-table th:first-child{text-align:left}
.premium-rights-table tbody th{color:#244564;font-weight:800}
.premium-dialog.premium-customer-dialog input[type=number]{appearance:textfield;-moz-appearance:textfield}
.premium-dialog.premium-customer-dialog input[type=number]::-webkit-inner-spin-button,.premium-dialog.premium-customer-dialog input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.premium-dialog.premium-customer-dialog .modal-actions{padding-top:17px;margin-top:24px;border-top:1px solid #edf0f5}
.premium-dialog.premium-customer-dialog .modal-actions .button{min-height:44px;padding:10px 20px;border-radius:11px}
.premium-dialog.premium-customer-dialog .dialog-heading .eyebrow{color:#4743e8}
.premium-dialog.premium-customer-dialog .button.button-primary{background:#4743e8;border-color:#4743e8;box-shadow:0 8px 19px rgba(71,67,232,.19)}
.premium-dialog.premium-customer-dialog .button.button-primary:hover{background:#3733ce;border-color:#3733ce}
@media(max-width:800px){.premium-customer-overview{grid-template-columns:1fr 1fr}.premium-customer-name{grid-column:auto}}
@media(max-width:700px){.premium-customer-overview{grid-template-columns:1fr;gap:15px;padding:18px}.premium-customer-name{grid-column:auto}.premium-customer-panel{padding:20px 16px}.premium-customer-panel-head{display:block}.premium-customer-tools{margin-top:17px}#premium-view .premium-customer-tools input{width:100%}.premium-customer-tabs{padding:0 10px}.premium-customer-tabs button{min-height:55px;padding:10px 11px}.premium-customer-table thead{display:none}.premium-customer-table tbody{display:grid;gap:11px}.premium-customer-table tr{display:grid;padding:13px 14px;border:1px solid #e6e8f0;border-radius:12px;background:#fff}.premium-customer-table td{display:flex;align-items:start;justify-content:space-between;gap:15px;border:0!important;padding:6px 0!important;overflow-wrap:anywhere}.premium-customer-table td[data-label]::before{content:attr(data-label);color:#7c8495;font-size:11px;text-transform:uppercase;letter-spacing:.05em;font-weight:750;flex:none}.premium-customer-table td.premium-row-actions{justify-content:flex-end;margin-top:7px;padding-top:12px!important;border-top:1px solid #edf0f5!important}.premium-customer-table tr:has(td[colspan]) td{display:block}.premium-customer-table tr:has(td[colspan]){padding:18px}}
@media(max-width:800px){.premium-page{padding:0 12px 30px}.premium-fields,.premium-admin-entity-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.premium-panel,.premium-section,.premium-form{padding:18px}.premium-page .page-heading .heading-actions{width:100%}.premium-invite-fields{grid-template-columns:1fr 1fr}.premium-admin-list-foot{flex-wrap:wrap}.premium-document-form{grid-template-columns:1fr 1fr}.premium-document-form button{grid-column:1/-1}}
@media(max-width:500px){.premium-fields,.premium-invite-fields,.premium-admin-entity-fields,.premium-document-form,.premium-dialog-fields,.premium-dialog .premium-invite-fields{grid-template-columns:1fr}.premium-page .page-heading{display:block}.premium-page .page-heading .heading-actions{margin-top:16px}.premium-client-bar{display:block}.premium-summary{padding:10px 0 0}.premium-admin-section-head{align-items:start;flex-direction:column}.premium-admin-table{min-width:520px}.premium-admin-pager{width:100%;justify-content:space-between}.premium-document-form button{grid-column:auto}.premium-folder-form label,.premium-folder-form button{width:100%;max-width:none}.premium-doc-actions select{width:100%;max-width:none}.premium-dialog{padding:20px}.premium-dialog .modal-actions .button{flex:1}}
@media(max-width:800px){.premium-document-form{grid-template-columns:minmax(0,1fr) minmax(150px,210px)}.premium-document-form>button{grid-column:2}.premium-folder-heading{flex-wrap:wrap}.premium-folder-actions{margin-left:43px}.premium-doc-actions{width:100%}.premium-doc-actions select{flex:1;max-width:none}.premium-doc-row{flex-wrap:wrap}.premium-doc-file-name{flex-basis:calc(100% - 50px)}}
@media(max-width:500px){.premium-document-form{grid-template-columns:1fr}.premium-upload-intro{display:block}.premium-upload-intro small{display:block;margin-top:4px}.premium-document-form>button{grid-column:1}.premium-folder-toggle strong{white-space:normal}.premium-folder-count{font-size:11px}.premium-folder-actions{margin-left:43px;flex-wrap:wrap}.premium-doc-actions{justify-content:stretch}.premium-doc-actions select{min-width:100%}.premium-doc-actions .button{flex:1}.premium-doc-row>.button{margin-left:45px}}
@media(max-width:500px){.premium-dialog.premium-customer-dialog .dialog-heading{padding:23px 20px 20px}.premium-dialog.premium-customer-dialog #premium-entity-form{padding:20px}.premium-dialog.premium-customer-dialog .premium-dialog-fields{grid-template-columns:1fr}}
@media(max-width:500px){.premium-client-logo-tools label{width:100%!important}.premium-client-logo-tools input[type=file]{max-width:none}}
@media(max-width:700px){#premium-view .premium-customer-table td.premium-row-actions{display:flex;justify-content:flex-end;width:auto}}
@media(pointer:coarse){.premium-doc-actions select{font-size:16px!important}}
