@import url('/assets/asdmax-ui.css');
.lk-badge{display:inline-flex;align-items:center;gap:8px;border:1px solid #dbeafe;background:#eff6ff;color:#175cd3;border-radius:999px;padding:7px 12px;font-weight:850;font-size:13px}.account-shell{padding:34px 5vw 56px}.account-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:18px}.account-card,.account-panel{background:#fff;border:1px solid var(--line);border-radius:26px;padding:22px;box-shadow:0 8px 26px rgba(16,24,40,.05)}.account-card small{display:block;color:#667085;font-weight:800;margin-bottom:10px}.account-card strong{display:block;font-size:30px;letter-spacing:-.04em}.account-layout{display:grid;grid-template-columns:1.15fr .85fr;gap:18px;align-items:start}.account-table{width:100%;border-collapse:separate;border-spacing:0 9px}.account-table th{text-align:left;color:#667085;font-size:13px;padding:0 10px}.account-table td{background:#f8fafc;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:12px 10px}.account-table td:first-child{border-left:1px solid var(--line);border-radius:14px 0 0 14px}.account-table td:last-child{border-right:1px solid var(--line);border-radius:0 14px 14px 0}.account-form{display:grid;gap:12px}.account-form label{display:grid;gap:6px;color:#344054;font-weight:800}.account-form input,.account-form textarea,.account-form select{width:100%;border:1px solid var(--line);border-radius:14px;padding:13px 15px;font-size:16px;background:#fff;color:#101828}.account-form textarea{min-height:96px}.status-ok{color:#067647;font-weight:900}.status-new{color:#175cd3;font-weight:900}.admin-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.admin-form-grid label{display:grid;gap:6px;color:#344054;font-weight:800}.admin-form-grid .full{grid-column:1/-1}.admin-toolbar{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:16px}.muted-small{color:#667085;font-size:14px}.error{color:#b42318;font-weight:800}.ok{color:#067647;font-weight:800}.admin-card h2{font-size:28px;margin:0 0 14px;letter-spacing:-.035em}.list-row{display:grid;grid-template-columns:80px 1fr 1fr 130px;gap:10px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:16px;padding:12px;margin-bottom:8px}.list-row b{font-size:16px}.list-row span{color:#667085}.admin-side button{font-family:inherit}.admin-main h1{font-size:42px;letter-spacing:-.04em}.login-box .brand{justify-content:center}.login-box input{width:100%;border:1px solid var(--line);border-radius:14px;padding:13px 15px;font-size:16px;background:#fff;color:#101828}.login-box label{display:grid;gap:6px;text-align:left;color:#344054;font-weight:800}.login-box form{display:grid;gap:12px}.login-box .hint{font-size:14px;color:#667085}.client-top .active-link{background:#eef4ff;color:#175cd3}@media(max-width:980px){.account-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.account-layout{grid-template-columns:1fr}.admin-form-grid{grid-template-columns:1fr}.admin-form-grid .full{grid-column:auto}.list-row{grid-template-columns:1fr}}@media(max-width:640px){.account-summary{grid-template-columns:1fr}.account-shell{padding:22px 18px 40px}.account-card strong{font-size:25px}}

/* v5: fix checkbox rendering inside admin forms. The imported ASDMAX UI styles set .admin input width:100%, so checkboxes must be explicitly reset. */
.admin-form-grid .ldap-checks{display:flex;align-items:center;gap:18px;flex-wrap:wrap;padding:4px 0 8px}
.admin-form-grid label.check-row{display:flex;align-items:center;gap:10px;color:#344054;font-weight:850;min-height:28px}
.admin-form-grid label.check-row span{line-height:1.2}
.admin-form-grid input[type=checkbox],.admin input[type=checkbox],.login-box input[type=checkbox]{appearance:auto;-webkit-appearance:auto;width:18px!important;height:18px!important;min-width:18px!important;max-width:18px!important;padding:0!important;margin:0!important;border-radius:4px;flex:0 0 18px;display:inline-block}
.admin-form-grid label:not(.check-row) input:not([type=checkbox]),.admin-form-grid label:not(.check-row) textarea,.admin-form-grid label:not(.check-row) select{margin-top:6px}
.admin-form-grid label.full.check-row{grid-column:1/-1}

/* v6: account page must not inherit huge marketing h1 from the public site. */
body.lk-page .page-compact{min-height:auto;padding-top:44px;padding-bottom:36px}
body.lk-page .page-compact h1{font-size:clamp(42px,5vw,72px);line-height:1;letter-spacing:-.055em;max-width:980px;overflow-wrap:anywhere}
body.lk-page .page-compact p{font-size:clamp(18px,1.45vw,22px)}
body.lk-page .account-summary{grid-template-columns:repeat(5,minmax(0,1fr))}
body.lk-page .error:empty{display:none}
@media(max-width:1200px){body.lk-page .account-summary{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){body.lk-page .account-summary{grid-template-columns:1fr}body.lk-page .page-compact h1{font-size:clamp(36px,11vw,54px)}}

/* v7: normal client creation form instead of browser prompt(). */
.lk-modal-backdrop{position:fixed;inset:0;background:rgba(8,21,38,.58);display:flex;align-items:center;justify-content:center;padding:24px;z-index:1000;backdrop-filter:blur(3px)}
.lk-modal{width:min(920px,100%);max-height:calc(100vh - 48px);overflow:auto;background:#fff;border:1px solid var(--line);border-radius:28px;box-shadow:0 30px 90px rgba(16,24,40,.28);padding:26px}
.lk-modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}.lk-modal-head h2{font-size:34px;line-height:1;margin:0 0 8px;letter-spacing:-.04em}.lk-modal-head p{margin:0;color:#667085;font-weight:650}.icon-btn{width:42px;height:42px;border-radius:14px;border:1px solid var(--line);background:#f8fafc;color:#101828;font-size:30px;line-height:1;cursor:pointer}.lk-modal-form{display:grid;gap:14px}.lk-modal-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:4px}.admin-form-grid select{width:100%;border:1px solid var(--line);border-radius:14px;padding:13px 15px;font-size:16px;background:#fff;color:#101828;margin-top:6px}.client-list-row{grid-template-columns:80px 1.25fr 1fr 120px 130px}.list-head{display:grid;gap:10px;color:#667085;font-size:13px;font-weight:900;padding:0 12px 8px}.list-row small{display:block;color:#667085;margin-top:4px;font-weight:700}@media(max-width:760px){.lk-modal{padding:20px;border-radius:22px}.lk-modal-head h2{font-size:28px}.client-list-row{grid-template-columns:1fr}.list-head{display:none}}

/* v8: client AD login linking and account access. */
.client-list-row-v8{grid-template-columns:80px 1.25fr 1fr 170px 130px}
.login-box h1{font-size:clamp(34px,4vw,54px);line-height:1;letter-spacing:-.045em}
.access-choice{display:grid;gap:14px;text-align:left}
.access-choice h2{font-size:26px;margin:4px 0 0;letter-spacing:-.03em}
.access-choice>div{display:grid;gap:10px}
.choice-card{display:grid;gap:6px;border:1px solid var(--line);border-radius:18px;background:#fff;padding:15px 16px;color:#101828;box-shadow:0 8px 24px rgba(16,24,40,.05)}
.choice-card:hover{border-color:#93c5fd;background:#f8fbff}
.choice-card b{font-size:17px}
.choice-card span{font-size:14px;line-height:1.35;color:#667085}
.order-list-row{grid-template-columns:72px 1.15fr 1.35fr 120px 110px 130px}
.request-list-row{grid-template-columns:72px 1.1fr 1.45fr 130px 170px}
@media(max-width:760px){.client-list-row-v8{grid-template-columns:1fr}}
@media(max-width:760px){.order-list-row,.request-list-row{grid-template-columns:1fr}}

/* v9: one visual language and theme switch across LK, login and AD admin. */
.theme-toggle{
  display:inline-grid;
  place-items:center;
  flex:0 0 42px;
  width:42px;
  height:42px;
  border:1px solid var(--line);
  border-radius:50%;
  background:var(--paper);
  color:var(--ink);
  font:900 19px/1 -apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Arial,sans-serif;
  cursor:pointer;
  box-shadow:0 8px 22px rgba(16,24,40,.06);
}
.theme-toggle:hover{border-color:#93c5fd;color:#175cd3;background:#f8fbff}
.login-box{position:relative}
.login-theme{position:absolute;top:18px;right:18px}
body.admin-body h1,
body.admin-body h2,
body.admin-body h3,
body.admin-body .admin-card h2,
body.admin-body .stat-card b,
body.admin-body .list-row b,
body.lk-page h1,
body.lk-page h2,
body.lk-page h3,
body.lk-page .account-card strong{letter-spacing:0!important}
html[data-theme=dark]{color-scheme:dark}
html[data-theme=dark] body.admin-body,
html[data-theme=dark] body.lk-page{
  --bg:#07111f;
  --paper:#0f1b2d;
  --ink:#eef5ff;
  --muted:#aab8cc;
  --line:#243349;
  --blue:#60a5fa;
  --cyan:#67e8f9;
  --dark:#030712;
  --shadow:0 22px 64px rgba(0,0,0,.36);
  background:#07111f!important;
  color:#eef5ff!important;
}
html[data-theme=dark] body.admin-body .login-page{background:linear-gradient(135deg,#030712,#0b1728)!important}
html[data-theme=dark] body.admin-body .login-box,
html[data-theme=dark] body.admin-body .admin-card,
html[data-theme=dark] body.admin-body .stat-card,
html[data-theme=dark] body.admin-body .cms-list button,
html[data-theme=dark] body.admin-body .media-item,
html[data-theme=dark] body.admin-body .lk-modal,
html[data-theme=dark] body.lk-page .account-card,
html[data-theme=dark] body.lk-page .account-panel,
html[data-theme=dark] body.lk-page .client-footer,
html[data-theme=dark] body.lk-page .page-compact{
  background:#0f1b2d!important;
  border-color:#243349!important;
  color:#eef5ff!important;
}
html[data-theme=dark] body.admin-body .admin-main,
html[data-theme=dark] body.lk-page .account-shell{background:#07111f!important}
html[data-theme=dark] body.admin-body .admin-side{background:#030712!important;border-color:#243349!important}
html[data-theme=dark] body.admin-body .admin-side button,
html[data-theme=dark] body.admin-body .admin-side a{color:#c8d6e8!important}
html[data-theme=dark] body.admin-body .admin-side button:hover,
html[data-theme=dark] body.admin-body .admin-side .active,
html[data-theme=dark] body.admin-body .admin-side a:hover{background:#14243a!important;color:#fff!important}
html[data-theme=dark] body.admin-body p,
html[data-theme=dark] body.admin-body .muted-small,
html[data-theme=dark] body.admin-body .list-row span,
html[data-theme=dark] body.admin-body .cms-list span,
html[data-theme=dark] body.admin-body .editor-form label span,
html[data-theme=dark] body.admin-body .login-box label,
html[data-theme=dark] body.lk-page p,
html[data-theme=dark] body.lk-page .account-card small,
html[data-theme=dark] body.lk-page .account-table th,
html[data-theme=dark] body.lk-page .footer-nav a{color:#aab8cc!important}
html[data-theme=dark] body.admin-body input,
html[data-theme=dark] body.admin-body textarea,
html[data-theme=dark] body.admin-body select,
html[data-theme=dark] body.lk-page input,
html[data-theme=dark] body.lk-page textarea,
html[data-theme=dark] body.lk-page select{
  background:#0b1728!important;
  border-color:#33445d!important;
  color:#eef5ff!important;
}
html[data-theme=dark] body.admin-body input::placeholder,
html[data-theme=dark] body.admin-body textarea::placeholder,
html[data-theme=dark] body.lk-page input::placeholder,
html[data-theme=dark] body.lk-page textarea::placeholder{color:#8191a8!important}
html[data-theme=dark] body.admin-body .quick button,
html[data-theme=dark] body.admin-body .quick a,
html[data-theme=dark] body.admin-body .cms-list button,
html[data-theme=dark] body.admin-body .media-item button,
html[data-theme=dark] body.admin-body .theme-toggle,
html[data-theme=dark] body.lk-page .theme-toggle,
html[data-theme=dark] body.lk-page .btn.ghost,
html[data-theme=dark] body.lk-page .nav-a,
html[data-theme=dark] body.lk-page .loginlink{
  background:#0f1b2d!important;
  border-color:#33445d!important;
  color:#eef5ff!important;
}
html[data-theme=dark] body.admin-body .list-row,
html[data-theme=dark] body.lk-page .account-table td{
  background:#101f34!important;
  border-color:#243349!important;
  color:#eef5ff!important;
}
html[data-theme=dark] body.admin-body .admin-table th,
html[data-theme=dark] body.admin-body .admin-table td,
html[data-theme=dark] body.admin-body .price-grid-head,
html[data-theme=dark] body.admin-body .price-grid-row{border-color:#243349!important;color:#d7e2f2!important}
html[data-theme=dark] body.admin-body .admin-note{background:#0b1728!important;border-color:#33445d!important;color:#aab8cc!important}
html[data-theme=dark] body.admin-body .choice-card,
html[data-theme=dark] body.lk-page .choice-card{background:#101f34!important;border-color:#33445d!important;color:#eef5ff!important}
html[data-theme=dark] body.admin-body .choice-card span,
html[data-theme=dark] body.lk-page .choice-card span{color:#aab8cc!important}
html[data-theme=dark] body.lk-page .client-top{background:rgba(8,17,31,.88)!important;border-color:#243349!important}
html[data-theme=dark] body.lk-page .active-link,
html[data-theme=dark] body.lk-page .nav-a:hover{background:#14243a!important;color:#93c5fd!important}
html[data-theme=dark] body.lk-page .lk-badge{background:#0f2a3b!important;border-color:#155e75!important;color:#67e8f9!important}
html[data-theme=dark] body.admin-body a,
html[data-theme=dark] body.lk-page a{color:#93c5fd}

/* v10: shared ASDMAX wordmark across LK and AD surfaces. */
.source-brand{min-width:156px}
.source-brand .brand-logo{
  width:148px;
  height:auto;
  max-height:38px;
  object-fit:contain;
  filter:brightness(0) saturate(100%);
}
.admin-side .source-brand .brand-logo,
html[data-theme=dark] .source-brand .brand-logo{filter:none!important}
.source-brand span,
.source-brand b{display:none!important}
@media(max-width:640px){
  .source-brand{min-width:128px}
  .source-brand .brand-logo{width:128px}
}

/* v12: operator-friendly client access flow. */
.access-flow{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.access-step{border:1px solid var(--line);background:#f8fafc;border-radius:18px;padding:16px;display:grid;gap:6px}
.access-step b{font-size:17px;color:#101828}
.access-step span{color:#667085;font-weight:650;line-height:1.45}
.access-step.done{border-color:#abefc6;background:#ecfdf3}
.access-step.done b{color:#067647}
.access-main-fields{align-items:end}
.tech-details{border:1px dashed var(--line);border-radius:18px;padding:14px;background:#fbfcfe}
.tech-details summary{cursor:pointer;font-weight:900;color:#344054}
.tech-details .admin-form-grid{margin-top:12px}
.tech-details input{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:13px}
html[data-theme=dark] body.admin-body .access-step,
html[data-theme=dark] body.admin-body .tech-details{background:#101f34!important;border-color:#33445d!important}
html[data-theme=dark] body.admin-body .access-step b,
html[data-theme=dark] body.admin-body .tech-details summary{color:#eef5ff!important}
html[data-theme=dark] body.admin-body .access-step span{color:#aab8cc!important}
html[data-theme=dark] body.admin-body .access-step.done{background:#0f2a22!important;border-color:#1f8a5f!important}
@media(max-width:760px){.access-flow{grid-template-columns:1fr}}
