@font-face{font-family:MTSK;src:url('/static/fonts/NotoSans-Regular.woff2')}@font-face{font-family:MTSK;src:url('/static/fonts/NotoSans-Bold.woff2');font-weight:700}
:root{--bg:#0a0c14;--panel:#121625;--panel2:#171c2d;--line:#2a3147;--text:#f5f7ff;--muted:#9ba7bd;--purple:#845ef7;--purple2:#b197fc;--green:#42d392;--red:#ff6b6b;--amber:#ffd43b;--blue:#66d9ef}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:radial-gradient(circle at 20% 10%,#24204a 0,transparent 32%),linear-gradient(135deg,#080a10,#101422);color:var(--text);font-family:MTSK,Arial,sans-serif}.hidden{display:none!important}.ambient{position:fixed;width:420px;height:420px;border-radius:50%;filter:blur(90px);opacity:.12;pointer-events:none}.ambient.a{background:#7c4dff;left:-150px;top:100px}.ambient.b{background:#3ddc97;right:-180px;bottom:-80px}.topbar{height:76px;padding:0 34px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #202638;background:#0c0f19e8;backdrop-filter:blur(14px);position:relative;z-index:2}.brand{display:flex;gap:14px;align-items:center}.brandmark{padding:10px 13px;border:1px solid #7d63f2;border-radius:9px;font-weight:700;letter-spacing:2px;box-shadow:0 0 22px #845ef744}.brand strong{display:block;font-size:14px;letter-spacing:1.7px}.brand span,.version{font-size:11px;color:var(--muted)}.top-actions{display:flex;gap:16px;align-items:center}button,input,select,textarea{font:inherit}.primary,.ghost,.warning,.danger-soft,.success-soft,.mini,.table-btn{border:0;border-radius:8px;cursor:pointer;font-weight:700}.primary{background:linear-gradient(135deg,#7c5cff,#996cff);color:white;padding:12px 18px;box-shadow:0 8px 24px #6848d52f}.primary:hover{filter:brightness(1.08)}.ghost{background:#191f31;color:#dce2ef;border:1px solid #31394f;padding:10px 14px}.warning{background:#33271a;color:#ffd98b;border:1px solid #6f5125;padding:10px 14px}.danger-soft{background:#331d27;color:#ff9aab;border:1px solid #6a3041;padding:10px 14px}.success-soft{background:#163427;color:#8bf0bd;border:1px solid #286148;padding:10px 14px}.login-wrap{max-width:1160px;margin:0 auto;min-height:calc(100vh - 76px);display:grid;grid-template-columns:1.2fr .8fr;gap:70px;align-items:center;padding:60px 30px}.kicker{font-size:11px;letter-spacing:2px;color:var(--purple2);font-weight:700}.login-info h1,.dash-head h1{font-size:52px;line-height:1.05;margin:12px 0}.login-info h1 em{font-style:normal;color:#9b87ff}.login-info>p,.dash-head p{max-width:620px;color:var(--muted);line-height:1.6}.feature-row{display:grid;grid-template-columns:44px 130px 1fr;gap:12px;align-items:center;border-top:1px solid #262c3e;padding:17px 0;max-width:600px}.feature-row span{color:#705be5;font-weight:700}.feature-row small{color:var(--muted)}.login-card,.panel,.modal-card,.stats article{background:linear-gradient(145deg,#151a2aee,#101522ee);border:1px solid #293149;border-radius:15px;box-shadow:0 24px 70px #0007}.login-card{padding:34px}.login-card h2{font-size:30px;margin:10px 0 4px}.login-card p{color:var(--muted);margin:0 0 25px}.card-badge{display:inline-flex;padding:5px 9px;border-radius:6px;background:#2e2550;color:#c7b8ff;font-size:10px;font-weight:700;letter-spacing:1.5px}label{display:flex;flex-direction:column;gap:7px;font-size:12px;color:#c9d1df;font-weight:700;margin:12px 0}input,select,textarea{width:100%;background:#0d111c;border:1px solid #323a51;color:#f5f7ff;border-radius:8px;padding:11px 12px;outline:none}input:focus,select:focus,textarea:focus{border-color:#8365ef;box-shadow:0 0 0 3px #7d5af11e}input[readonly]{color:#aab4c8;background:#111521}.wide{width:100%;margin-top:8px}.error{min-height:20px;color:#ff8d9d;font-size:12px;margin-top:5px}.devnote{margin-top:18px;padding:11px;border:1px solid #30374d;border-radius:8px;color:var(--muted);font-size:11px}.dashboard{max-width:1500px;margin:0 auto;padding:34px}.dash-head{display:flex;justify-content:space-between;align-items:center}.dash-head h1{font-size:38px;margin-bottom:5px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin:24px 0}.stats article{padding:20px 22px}.stats span{display:block;color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:1.4px}.stats strong{display:block;font-size:31px;margin-top:7px}.panel{overflow:hidden}.panel-head{padding:20px 22px;display:flex;justify-content:space-between;align-items:end;border-bottom:1px solid #293149}.panel-head h2{margin:5px 0 0}.legend{font-size:11px;color:var(--muted)}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;min-width:1050px}th,td{text-align:left;padding:14px 16px;border-bottom:1px solid #252b3e}th{font-size:10px;color:#aeb8cc;text-transform:uppercase;letter-spacing:1px;cursor:pointer;white-space:nowrap;background:#111623}th span{opacity:.35}th.sorted{color:#c8baff}td{font-size:13px}td b{display:block}td small{display:block;color:var(--muted);margin-top:3px}code{color:#d2c8ff}.pill,.status-badge{display:inline-flex;padding:5px 9px;border-radius:999px;font-size:10px;font-weight:700;border:1px solid}.pill.active,.status-badge.active{color:#84edb8;background:#153226;border-color:#2c6d4c}.pill.inactive,.status-badge.inactive{color:#ff9ca9;background:#351b24;border-color:#713241}.pill.expired,.status-badge.expired{color:#ffd67a;background:#352a18;border-color:#6f5625}.pill.future,.status-badge.future{color:#8bdcf1;background:#17303a;border-color:#2e6372}.table-btn{padding:7px 11px;background:#221d3e;color:#c8bcff;border:1px solid #493c77}.empty{padding:30px;text-align:center;color:var(--muted)}.empty b,.empty span{display:block}.empty b{color:#e6e9f2;margin-bottom:5px}.modal{position:fixed;inset:0;background:#05070bd9;display:flex;align-items:center;justify-content:center;padding:24px;z-index:50;backdrop-filter:blur(8px)}.modal-card{width:min(980px,96vw);max-height:92vh;overflow:auto;padding:28px;position:relative}.account-card{width:min(1080px,97vw)}.close{position:absolute;right:17px;top:14px;width:36px;height:36px;border-radius:50%;border:1px solid #343c52;background:#161b29;color:white;font-size:22px;cursor:pointer}.modal-title{display:flex;justify-content:space-between;align-items:center;padding-right:48px}.modal-title h2,.history-card h2,.small-card h2{font-size:28px;margin:7px 0 16px}.form-section{border:1px solid #293047;border-radius:12px;padding:19px;margin-top:14px;background:#101522}.section-head{display:flex;align-items:center;gap:12px;margin-bottom:12px}.section-head>span{display:grid;place-items:center;width:29px;height:29px;border-radius:8px;background:#2d2450;color:#c6b6ff;font-weight:700}.section-head b{display:block}.section-head small{display:block;color:var(--muted);font-weight:400;margin-top:2px}.form-grid{display:grid;gap:0 15px}.two-col{grid-template-columns:1fr 1fr}.three-col{grid-template-columns:1fr 1fr 1fr}.span2{grid-column:span 2}.input-action{display:flex;gap:8px}.input-action input{flex:1}.mini{white-space:nowrap;background:#242b3f;color:#cad3e5;border:1px solid #39445f;padding:0 10px;font-size:10px}.info-box{padding:12px 14px;background:#151d31;border:1px solid #303c5b;border-radius:8px;color:#d8deea;font-size:12px;line-height:1.5}.info-box small{color:var(--muted)}.reset-row{display:flex;align-items:center;gap:13px;margin-top:12px}.reset-row small{color:var(--muted)}.modal-actions{display:flex;justify-content:space-between;align-items:center;margin-top:18px;gap:12px}.modal-actions.right{justify-content:flex-end}.save-actions{display:flex;gap:10px;margin-left:auto}.history-area{margin-top:8px}.history-list{display:grid;gap:10px}.history-list article{display:flex;justify-content:space-between;align-items:center;padding:14px;border:1px solid #2b334a;border-radius:9px;background:#0f1420}.history-list article b,.history-list article span,.history-list article small{display:block}.history-list article span,.history-list article small{color:var(--muted);font-size:11px;margin-top:3px}.history-card{width:min(700px,95vw)}.small-card{width:min(560px,95vw)}@media(max-width:900px){.login-wrap{grid-template-columns:1fr}.login-info{display:none}.stats{grid-template-columns:1fr 1fr}.dash-head{align-items:flex-end}.two-col,.three-col{grid-template-columns:1fr}.span2{grid-column:auto}.modal-actions{flex-direction:column;align-items:stretch}.save-actions{margin-left:0}.dashboard{padding:22px 14px}}@media(max-width:560px){.topbar{padding:0 15px}.brand span,.version{display:none}.stats{grid-template-columns:1fr 1fr}.dash-head{display:block}.dash-head .primary{margin-top:14px;width:100%}.login-wrap{padding:20px}.login-card{padding:24px}.modal{padding:8px}.modal-card{padding:20px 14px}.input-action{flex-direction:column}.mini{padding:10px}.reset-row{align-items:flex-start;flex-direction:column}}
.dash-actions{display:flex;align-items:center;gap:14px}.license-chip{min-width:230px;padding:9px 13px;border:1px solid #33405a;border-radius:10px;background:#111827;display:grid;grid-template-columns:auto 1fr;column-gap:10px;align-items:center}.license-chip span{grid-row:1/3;font-size:9px;letter-spacing:1.2px;color:var(--muted);writing-mode:vertical-rl;transform:rotate(180deg)}.license-chip b{font-size:12px;color:#8bf0bd}.license-chip small{font-size:10px;color:var(--muted)}.customer-table{min-width:760px}.customer-admin-actions{display:flex;gap:10px;margin-top:16px;padding-top:16px;border-top:1px solid #293047}.lock-modal{overflow:visible}.lock-modal p{color:var(--muted);line-height:1.5}.customer-card{width:min(620px,95vw)}
@media(max-width:900px){.dash-actions{align-items:stretch;flex-direction:column}.license-chip{min-width:0}}
.order-panel{margin-bottom:18px}.order-readonly-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 15px}@media(max-width:900px){.order-readonly-grid{grid-template-columns:1fr}}

/* v040 production export */
.production-box{margin-top:18px;padding:16px;border:1px solid rgba(112,130,174,.28);border-radius:14px;background:rgba(18,27,48,.55)}
.production-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.production-head h3{margin:2px 0 0}.production-box p{margin:8px 0 12px;color:#aeb9d4;font-size:13px}
.production-colors{font-size:12px;color:#c4cde2;white-space:nowrap}.production-colors i{display:inline-block;width:10px;height:10px;border-radius:50%;margin:0 4px 0 8px}.engrave-dot{background:#0000ff}.cut-dot{background:#ff0000}
.production-sign-list{display:grid;gap:7px;margin:9px 0 12px}.production-sign-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 10px;border-radius:9px;background:rgba(255,255,255,.045)}.production-sign-row span{font-size:12px;color:#cbd4e8}.production-sign-row button{padding:7px 10px;font-size:11px}.production-actions{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}.production-box small{display:block;margin-top:9px;color:#8995b1}
.simple-settings{display:flex;gap:14px;align-items:end;flex-wrap:wrap;padding:20px}.simple-settings label{min-width:320px;flex:1}.simple-settings small{min-width:120px;color:#73d6a5}.modal-actions{display:flex;gap:10px;justify-content:flex-end;align-items:center;margin-top:18px;flex-wrap:wrap}
/* v044: tydliga lösenordsfält och visa/dölj-knapp */
.password-wrap{position:relative;width:100%}.password-wrap input{padding-right:48px}.password-eye{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:34px;height:34px;border:1px solid #3a435d;border-radius:7px;background:#181e2e;color:#d8def0;cursor:pointer;font-size:18px;line-height:1}.password-eye:hover{border-color:#8365ef;color:#fff;background:#222941}.input-action{position:relative}.input-action input[type=password],.input-action input[type=text]{padding-right:92px}.input-action .compact-eye{right:54px;top:50%;z-index:2}input:-webkit-autofill,input:-webkit-autofill:hover,input:-webkit-autofill:focus{-webkit-text-fill-color:#f5f7ff;-webkit-box-shadow:0 0 0 1000px #0d111c inset;transition:background-color 9999s ease-out 0s}

/* v045: login password field is an ordinary editable input; eye is outside the input. */
.login-password-row{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:8px;width:100%;align-items:stretch}.login-password-row input{min-width:0;padding-right:12px}.login-password-eye{position:static;width:44px;height:auto;min-height:44px;border:1px solid #3a435d;border-radius:8px;background:#181e2e;color:#d8def0;cursor:pointer;font-size:18px;line-height:1}.login-password-eye:hover{border-color:#8365ef;color:#fff;background:#222941}


/* v050 - isolerad, enkel login byggd från fungerande input-test.
   Inga generella MTSK input-regler används på dessa två fält. */
.simple-login-page{
  min-height:calc(100vh - 76px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:32px 18px;
}
.simple-login-card{
  width:min(560px,100%);
  padding:40px;
  background:#151a2a;
  border:1px solid #293149;
  border-radius:18px;
  box-shadow:0 24px 70px #0007;
}
.simple-login-badge{
  display:inline-block;
  padding:6px 12px;
  border-radius:8px;
  background:#2e2550;
  color:#c7b8ff;
  font-weight:700;
  letter-spacing:2px;
}
.simple-login-card h1{margin:22px 0 8px;font-size:42px;line-height:1.05}
.simple-login-help{margin:0 0 28px;color:#9ba7bd;font-size:17px}
.simple-login-label{margin:18px 0 8px;color:#d8deea;font-size:14px;font-weight:700}
.simple-login-input{
  all:revert;
  box-sizing:border-box;
  display:block;
  width:100%;
  height:50px;
  padding:10px 12px;
  margin:0;
  border:1px solid #3b455f;
  border-radius:8px;
  background:#ffffff;
  color:#111111;
  font-family:Arial,sans-serif;
  font-size:20px;
  line-height:28px;
  caret-color:#111111;
  cursor:text;
  user-select:text;
  -webkit-user-select:text;
}
.simple-login-input:focus{
  outline:3px solid #8767ff;
  outline-offset:2px;
  border-color:#8767ff;
}
.simple-login-error{min-height:24px;margin:10px 0 2px;color:#ff8d9d;font-size:13px}
.simple-login-button{
  all:revert;
  box-sizing:border-box;
  display:block;
  width:100%;
  padding:14px 18px;
  margin-top:4px;
  border:0;
  border-radius:9px;
  background:#805df7;
  color:white;
  text-align:center;
  font-family:Arial,sans-serif;
  font-size:17px;
  font-weight:700;
  cursor:pointer;
}
.simple-login-button:hover{filter:brightness(1.08)}
.simple-login-note{margin-top:20px;padding:12px 14px;border:1px solid #30374d;border-radius:8px;color:#9ba7bd;font-size:12px}
@media(max-width:560px){.simple-login-card{padding:26px 20px}.simple-login-card h1{font-size:36px}}

/* ==================== MTSK WEB v068 — root portal login ==================== */
body:has(.portal-login-root:not(.hidden)){
  min-height:100vh;
  background:
    radial-gradient(circle at 18% 40%,rgba(101,36,151,.38),transparent 34%),
    radial-gradient(circle at 88% 86%,rgba(22,113,116,.28),transparent 30%),
    linear-gradient(135deg,#070b14,#0a1020 55%,#090d17);
}
.portal-root-topbar{
  height:86px;
  background:#070b16ee;
  border-bottom:1px solid #1a2540;
  padding:0 30px;
}
.portal-root-topbar .brandmark{
  border-color:#6e3bb0;
  box-shadow:0 0 24px #8f37d733;
}
.portal-login-root{
  min-height:calc(100vh - 86px);
  display:grid;
  grid-template-columns:minmax(0,1.55fr) minmax(380px,.8fr);
  align-items:center;
  gap:64px;
  padding:58px 6.2vw 62px;
  position:relative;
  overflow:hidden;
}
.portal-login-root .portal-hero{
  position:relative;
  z-index:1;
  max-width:820px;
}
.portal-login-root .portal-kicker{
  color:#62e7c4;
  font-size:12px;
  font-weight:900;
  letter-spacing:.13em;
  margin-bottom:18px;
}
.portal-login-root .portal-hero h1{
  font-size:clamp(54px,5.7vw,88px);
  line-height:.96;
  letter-spacing:-.04em;
  margin:0 0 22px;
  color:#f4f5fb;
}
.portal-login-root .portal-hero h1 em{
  display:inline-block;
  color:#bd59f6;
  font-style:normal;
  margin-top:6px;
}
.portal-login-root .portal-hero p{
  max-width:690px;
  color:#aab6ce;
  font-size:17px;
  line-height:1.6;
  margin:0;
}
.portal-sign-wall{
  display:flex;
  align-items:center;
  gap:18px;
  margin-top:74px;
  flex-wrap:wrap;
}
.wall-sign{
  display:grid;
  place-items:center;
  font-weight:900;
  letter-spacing:.08em;
  box-shadow:0 16px 34px #0006;
}
.ws-a{width:210px;height:82px;border-radius:9px;background:#eee9da;color:#111;transform:rotate(-2deg)}
.ws-b{width:170px;height:96px;border-radius:50%;background:#121212;color:#fff;transform:rotate(2deg)}
.ws-c{width:205px;height:78px;background:#a51f25;color:#fff;clip-path:polygon(9% 0,91% 0,100% 50%,91% 100%,9% 100%,0 50%);transform:rotate(2deg)}
.ws-d{width:92px;height:112px;border-radius:16px;background:#24314d;color:#f0a5ff;transform:rotate(6deg)}

.root-login-card{
  position:relative;
  z-index:2;
  max-width:450px;
  width:100%;
  justify-self:end;
  background:linear-gradient(180deg,#121a2c,#0d1525);
  border:1px solid #26344e;
  border-radius:24px;
  padding:34px 32px;
  box-shadow:0 30px 80px #0008;
}
.root-login-card .portal-card-badge{
  display:inline-flex;
  padding:8px 13px;
  border-radius:999px;
  border:1px solid #694291;
  color:#dda6ff;
  background:#291740;
  font-size:10px;
  font-weight:900;
  letter-spacing:.1em;
  margin-bottom:22px;
}
.root-login-card h2{margin:0 0 5px;font-size:34px}
.root-login-card>p{color:#94a2bb;margin:0 0 24px;font-size:14px}
.root-login-card label{
  display:block;
  color:#b7c2d5;
  font-size:11px;
  font-weight:800;
  margin:14px 0;
}
.root-portal-input{
  display:block;
  width:100%;
  margin-top:8px;
  background:#f6f7fb !important;
  color:#0b0d13 !important;
  border:1px solid #cfd7e6 !important;
  border-radius:11px !important;
  padding:14px 15px !important;
  font-size:15px !important;
  min-height:52px;
  outline:none;
}
.root-portal-input:focus{
  border-color:#8a54ff !important;
  box-shadow:0 0 0 3px rgba(138,84,255,.18);
}
.root-login-card .portal-primary{
  width:100%;
  margin-top:16px;
  min-height:54px;
  border-radius:10px;
  background:linear-gradient(90deg,#a842ee,#7455ff);
  font-size:14px;
  font-weight:900;
}
.root-login-card .portal-error{
  min-height:18px;
  margin-top:3px;
}

@media(max-width:1050px){
  .portal-login-root{
    grid-template-columns:1fr;
    gap:34px;
    padding-top:34px;
  }
  .root-login-card{
    justify-self:start;
    max-width:560px;
  }
  .portal-sign-wall{margin-top:38px}
}

/* v078 — skyddad driftövervakning för SuperAdmin */
.monitor-panel{margin:24px 0}.monitor-actions{display:flex;align-items:center;gap:14px}.monitor-actions small{color:var(--muted)}
.monitor-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;background:#293149;border-bottom:1px solid #293149}
.monitor-grid article{min-height:136px;padding:20px 22px;background:linear-gradient(145deg,#151a2a,#101522)}
.monitor-grid span{display:block;color:var(--muted);font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:1.2px}
.monitor-grid strong{display:block;margin:9px 0 5px;font-size:25px}.monitor-grid small{display:block;color:var(--muted);font-size:11px;line-height:1.45}
.monitor-ok{color:var(--green)!important}.monitor-bad{color:var(--red)!important}.monitor-error{padding:13px 22px;color:#ff9ca9;background:#351b24;border-bottom:1px solid #713241}
.monitor-summary{padding:14px 22px;color:#b7c2d5;background:#0e1320;border-bottom:1px solid #293149;font-size:12px}
.monitor-subhead{border-top:0}.monitor-table{min-width:760px}.monitor-table td small{color:var(--muted);margin-top:3px}.monitor-panel+.panel{margin-top:20px}
@media(max-width:900px){.monitor-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.monitor-actions{align-items:flex-end;flex-direction:column}}
@media(max-width:560px){.monitor-grid{grid-template-columns:1fr}.monitor-actions small{display:none}}
