/* MGO Payneos SoftPOS V2.5.4 - Dynamics 365 / Fluent-inspired visual theme.
   Original Microsoft code, fonts, or logos are NOT included. No API logic is changed.
   This sheet is additive: app.css and existing PROD/UAT components remain intact. */
:root{
  --navy:#0c2047; --navy2:#102c5b; --ink:#242424; --muted:#616a77;
  --surface:#fff; --canvas:#f5f6f8; --stroke:#e3e6eb;
  --blue:#0f6cbd; --blue2:#095a9d; --green:#107c41;
  --red:#c42b1c; --orange:#986f0b; --radius:7px;
  --shadow:0 1px 3px rgba(15,23,42,.055);
}
html{scroll-behavior:smooth}
body{font-family:"Segoe UI Variable","Segoe UI",-apple-system,BlinkMacSystemFont,Arial,sans-serif;font-size:13px;line-height:1.48;color:var(--ink);background:var(--canvas)}
:focus-visible{outline:2px solid #0f6cbd;outline-offset:2px}
::selection{background:#cfe4f6}
/* Global dark application header */
.dashboard .topbar{position:fixed;z-index:50;top:0;left:0;right:0;height:52px;padding:0 22px 0 14px;background:#0b1f47;color:#fff;border:0;box-shadow:0 1px 2px rgba(0,0,0,.12);gap:24px}
.d365-header-identity{display:flex;align-items:center;gap:14px;white-space:nowrap;min-width:245px}
.d365-appgrid{font-size:25px;line-height:1;width:30px;height:30px;display:grid;place-items:center;color:#eaf3ff;font-weight:300}
.d365-header-name{font-size:14px;font-weight:650;color:#fff;letter-spacing:-.12px}
.d365-header-separator{padding:0 7px;color:#95a9c7;font-weight:300}
.dashboard .breadcrumb{color:#aabbd5;font-size:11px;font-weight:400;letter-spacing:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1}
.dashboard .breadcrumb strong{color:#fff;font-weight:500}
.dashboard .breadcrumb span{color:#7085a6}
.dashboard .top-actions{gap:12px;flex-shrink:0}
.dashboard .top-actions .pill.pale{background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.15);color:#fff;padding:5px 10px;border-radius:4px;font-size:11px;font-weight:600}
.dashboard .top-actions .pill.pale .dot{width:7px;height:7px;background:#47d39a;box-shadow:none}
.dashboard .top-actions .avatar.small{background:#4765a0;color:#fff;width:30px;height:30px;border:1px solid #7894bf}
.workspace-menu-trigger{background:transparent!important;border:1px solid #5d7292!important;border-radius:4px!important;color:#fff!important;padding:7px 10px!important;font-weight:600!important;font-size:11px!important}
.workspace-menu-trigger:hover,.workspace-menu[open] .workspace-menu-trigger{background:#254271!important;border-color:#9db4d8!important;color:#fff!important}
.workspace-menu-panel{top:calc(100% + 8px);border:1px solid #d8dfe8;border-radius:7px;box-shadow:0 12px 35px rgba(0,0,0,.21);padding:6px}
.workspace-menu-heading{color:#6c7584;font-size:10px;padding:9px 11px}
.workspace-menu-item{font-size:12px;border-radius:4px;padding:10px}
.workspace-menu-item.active{background:#e4f0fa;color:#0f6cbd}
.workspace-menu-item:hover{background:#f0f5fb}
/* Light gray Dynamics-style site map */
.dashboard .sidebar{top:52px;bottom:0;width:246px;background:#f8f9fb;color:#343b43;z-index:40;border-right:1px solid #e0e5ea;box-shadow:none;scrollbar-width:thin;scrollbar-color:#cfd7e0 transparent}
.sidebar-top{padding:19px 15px 16px;border-bottom:1px solid #e9edf2}
.dashboard .sidebar .brand{font-size:16px;color:#1f2937;font-weight:600;gap:10px}
.dashboard .sidebar .brand b{color:#4b5563;font-weight:400}
.dashboard .sidebar .brand small{color:#7d8792;font-size:10px;letter-spacing:.5px;margin-top:2px}
.dashboard .sidebar .brand-icon{border-radius:5px;background:#0f6cbd;box-shadow:none;height:32px;width:32px;font-size:19px}
.dashboard .sidebar .environment{margin-top:17px;border:1px solid #e3e7ed;border-radius:5px;background:#fff;padding:8px 10px;font-size:10px;letter-spacing:.3px;color:#4b5563;font-weight:600}
.dashboard .sidebar .environment .dot{background:#129966;box-shadow:none}
.dashboard .sidebar .env-tag{background:#e4eff9;border-radius:3px;color:#0f6cbd;font-size:9px}
.dashboard .nav{padding:10px 9px 16px}
.dashboard .nav-label{font-size:10px;letter-spacing:.6px;color:#6b7280;font-weight:700;padding:14px 14px 5px}
.dashboard .nav-label.space-top{margin-top:14px;border-top:1px solid #e9edf2}
.dashboard .nav-link{border-radius:4px;margin:1px 0;padding:8px 11px;gap:11px;color:#39414b;font-size:12px;font-weight:500;transition:background .12s;color .12s}
.dashboard .nav-link:hover{background:#edf0f3;color:#101828}
.dashboard .nav-link.active{background:#e5eff8;color:#074c82;box-shadow:inset 3px 0 #0f6cbd;font-weight:650}
.dashboard .nav-link .nav-icon{font-size:16px;color:#62707f}
.dashboard .nav-link.active .nav-icon{color:#0f6cbd}
.dashboard .prod-nav-link{padding:8px 11px;font-size:12px;line-height:1.45}
.dashboard .prod-nav-link .nav-icon{flex:0 0 19px;font-size:15px}
.dashboard .sidebar-bottom{border-color:#e5e9ef;margin:0 13px;padding:13px 4px 18px}
.dashboard .mini-profile .avatar{width:33px;height:33px;background:#d8e9f9;color:#0f6cbd;border-radius:50%}
.dashboard .mini-profile b{color:#303841;font-size:12px}
.dashboard .mini-profile small{color:#77818d}
.dashboard .logout{color:#0f6cbd;font-size:12px;padding-top:12px}
.dashboard .logout:hover{color:#095a9d;text-decoration:underline}
/* Workspace layout and command bar */
.dashboard .workspace{margin-left:246px;min-width:0}
.dashboard .content{max-width:1690px;padding:78px 29px 22px;margin:0 auto}
.dashboard .page-heading{margin-bottom:17px;align-items:center;gap:22px}
.dashboard .page-heading h1{font-size:24px;color:#242424;font-weight:620;letter-spacing:-.45px;margin-bottom:6px}
.dashboard .page-heading p{color:#697586;font-size:12px;max-width:1000px}
.dashboard .eyebrow{font-size:10px;letter-spacing:.7px;color:#537087;font-weight:700;margin-bottom:6px}
.dashboard .page-chip{border:1px solid #e0e5eb;border-radius:4px;color:#687380;background:#fff;font-size:11px;padding:7px 10px}
.d365-commandbar{display:flex;align-items:center;gap:5px;flex-wrap:wrap;padding:6px 9px;min-height:45px;background:#fff;border:1px solid #e3e8ef;border-radius:6px;margin-bottom:21px;box-shadow:var(--shadow)}
.d365-command{display:inline-flex;align-items:center;gap:7px;padding:8px 12px;border-radius:4px;color:#314155;font-size:12px;font-weight:550}
.d365-command span{font-size:16px;color:#0f6cbd;line-height:1}
.d365-command:hover{background:#eff5fa;color:#0f6cbd}
.d365-command-divider{height:22px;width:1px;background:#dfe3e8;margin:0 4px}
.d365-command-hint{margin-left:auto;color:#8b95a3;font-size:11px;padding-right:7px;white-space:nowrap}
/* Panels, summaries and record forms */
.dashboard .panel,.dashboard .stat-card{border:1px solid #e2e6ec;border-radius:7px;box-shadow:0 1px 2px rgba(17,24,39,.04);background:#fff}
.dashboard .panel{padding:20px 22px;margin-bottom:18px}
.dashboard .stat-card{padding:17px 19px}
.dashboard .stat-card strong{font-size:27px;color:#1e293b;font-weight:620;letter-spacing:-.5px}
.dashboard .stat-card .stat-top{font-weight:550;color:#637083}
.dashboard .stat-card .stat-top span{color:#0f6cbd}
.dashboard .stats-grid{gap:12px;margin-bottom:16px}
.dashboard .two-col{gap:16px;margin-bottom:16px}
.dashboard .panel-header{align-items:center}
.dashboard h2{font-size:16px;letter-spacing:-.1px;color:#252525;font-weight:620}
.dashboard .panel-header p{color:#728092;font-size:12px}
.dashboard .btn{border-radius:4px;padding:9px 15px;font-size:12px;min-height:36px;line-height:1.35;font-weight:600}
.dashboard .btn.primary{background:#0f6cbd;color:#fff;border-color:#0f6cbd}
.dashboard .btn.primary:hover{background:#095a9d}
.dashboard .btn.outline{background:#fff;border-color:#aeb9c7;color:#25445f}
.dashboard .btn.outline:hover{background:#f4f9fe;border-color:#0f6cbd;color:#0f6cbd}
.dashboard .btn:disabled{opacity:.5}
.dashboard .status{border-radius:4px;font-weight:600;font-size:11px;padding:4px 8px}
.dashboard .status.good{background:#e4f4e8;color:#146c38}
.dashboard .status.warn{background:#fff4da;color:#855c08}
.dashboard .status.bad{background:#fae8e6;color:#ad2922}
.dashboard .table-wrap{border:1px solid #e7eaee;border-radius:5px;overflow:auto}
.dashboard .table-wrap table{font-size:12px}
.dashboard .table-wrap th{background:#f7f8fa;color:#465461;text-transform:none;letter-spacing:0;font-size:11px;font-weight:650;padding:10px 12px;white-space:nowrap}
.dashboard .table-wrap td{color:#4e5b69;border-color:#eceff2;padding:10px 12px}
.dashboard .table-wrap tbody tr:nth-child(even){background:#fbfcfd}
.dashboard .table-wrap tbody tr:hover{background:#eff6fc}
.dashboard .table-wrap td strong{color:#233d54}
.dashboard form label{color:#3d4754;font-size:12px;font-weight:600;margin-bottom:13px}
.dashboard input:not([type=checkbox]):not([type=radio]):not([type=hidden]),.dashboard select,.dashboard textarea{background:#fff;border:1px solid #bcc6d1;border-radius:4px;min-height:36px;padding:9px 11px;color:#263445;margin-top:5px;box-shadow:none}
.dashboard input:focus,.dashboard select:focus,.dashboard textarea:focus{outline:none;border-color:#0f6cbd!important;box-shadow:0 0 0 2px rgba(15,108,189,.14)!important}
.dashboard input[type=checkbox],.dashboard input[type=radio]{accent-color:#0f6cbd}
.dashboard .notice{border-radius:5px;padding:12px 14px;background:#f8fafc;border-color:#e1e7ee;color:#536478;margin:14px 0}
.dashboard .notice.blue{background:#edf5fc;border-color:#d6e9f7;color:#254b70}
.dashboard .notice.warning{background:#fff9e9;border-color:#f2e2b6;color:#74510a}
.dashboard .alert{border-radius:5px}
.dashboard .key-values>div{padding:10px 0}
.dashboard .key-values span{color:#6b7785}
.dashboard .step{padding:12px 0}
.dashboard .step>span{background:#eaf3fb;color:#0f6cbd;border-radius:4px}
.dashboard .formula{border-radius:6px}
.dashboard .footer{color:#778390}
/* Preserve PROD action confirmations but make dialog consistent with Fluent style. */
.prod-confirm-dialog{border-radius:8px;box-shadow:0 22px 60px rgba(1,25,52,.3)}
.prod-confirm-dialog h2{font-weight:630;color:#222}
.prod-confirm-line{border-color:#e5e9ef}
.prod-confirm-list{border-radius:5px;background:#fafbfd}
.prod-confirm-warning{border-radius:5px}
/* Authentication/installation share the new theme but no request flow changes. */
.auth-bg{background:linear-gradient(110deg,#edf3fa,#f8fafc 55%,#e9f0fa);border-top:6px solid #0b1f47}
.login-card,.install-card{background:#fff;border:1px solid #dfe5ec;border-radius:8px;box-shadow:0 16px 48px rgba(14,36,64,.12)}
.login-card .brand-big,.install-card .brand-big{color:#223245}
.login-card .brand-big b,.install-card .brand-big b{color:#536575}
.login-card .brand-icon,.install-card .brand-icon{background:#0f6cbd;box-shadow:none;border-radius:6px}
.login-card h1,.install-card h1{font-size:25px;letter-spacing:-.2px}
.login-card input,.install-card input{border-radius:4px;border-color:#b9c5d1}
.login-card .btn.primary,.install-card .btn.primary{background:#0f6cbd;border-radius:4px}
.login-card .btn.primary:hover,.install-card .btn.primary:hover{background:#095a9d}
/* Tablet and phones: keep navigation reachable without covering the command bar. */
@media(max-width:1100px){
  .dashboard .sidebar{width:229px}
  .dashboard .workspace{margin-left:229px}
  .dashboard .content{padding-left:20px;padding-right:20px}
  .d365-header-identity{min-width:205px}
  .dashboard .topbar{gap:13px}
  .dashboard .breadcrumb{display:none}
}
@media(max-width:720px){
  .dashboard .sidebar{width:min(280px,90vw);top:52px;transform:translateX(-105%);box-shadow:12px 10px 30px rgba(0,0,0,.11)}
  .dashboard .sidebar.open{transform:translateX(0)}
  .dashboard .workspace{margin-left:0}
  .dashboard .topbar{height:52px;padding:0 12px;gap:8px}
  .dashboard .mobile-menu{display:block;color:#fff;padding:6px;font-size:21px;line-height:1;flex:none}
  .d365-header-identity{gap:5px;min-width:0;flex:1;overflow:hidden}
  .d365-header-name{font-size:12px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}
  .d365-appgrid{display:none}
  .dashboard .top-actions{gap:6px}
  .dashboard .top-actions .pill{display:none}
  .dashboard .content{padding:70px 14px 18px}
  .dashboard .page-heading{align-items:flex-start;gap:8px}
  .dashboard .page-heading h1{font-size:21px}
  .d365-commandbar{gap:0;padding:5px 6px}
  .d365-command{padding:8px 7px;font-size:11px}
  .d365-command-hint{display:none}
  .dashboard .panel{padding:17px 15px}
  .dashboard .two-col{gap:13px}
  .dashboard .stats-grid{gap:9px}
}
@media(max-width:400px){
  .d365-header-name{font-size:11px}
  .d365-header-separator{padding:0 3px}
  .workspace-menu-trigger{padding:7px 6px!important;font-size:10px!important}
  .d365-command{font-size:10px;gap:4px;padding:7px 6px}
  .dashboard .page-chip{display:none}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}

/* V2.5.5 – Dynamics grouped site map + real settings and status screens */
.dashboard .nav-section{padding-top:14px}
.dashboard .nav-section.space-top{margin-top:12px;border-top:1px solid #e1e7ef}
.dashboard .nav-link.prod-nav-link{display:flex;align-items:center;min-height:35px}
.dashboard .nav-link.prod-nav-link > span:last-child{min-width:0;overflow-wrap:anywhere}
.settings-link-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:16px 0}
.settings-link-card{display:flex;flex-direction:column;gap:9px;text-decoration:none;padding:18px 19px;border:1px solid #dce3ed;background:#fff;border-radius:6px;color:#253348;min-width:0;transition:background .15s,border-color .15s}
.settings-link-card:hover,.settings-link-card:focus-visible{background:#f0f7fd;border-color:#0f6cbd}
.settings-link-card strong{font-size:14px;color:#1e364d}
.settings-link-card span{color:#586779;font-size:12px;line-height:1.5}
.settings-link-card b{font-size:12px;color:#0f6cbd;margin-top:auto}
.settings-action-row{display:flex;flex-wrap:wrap;gap:9px;margin:15px 0}
.settings-diagnostic-stats{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0 18px}
.settings-diagnostic-stats span{background:#eef4fa;border:1px solid #dfe7ef;border-radius:4px;padding:10px 12px;font-size:12px;color:#3b5165}
@media(max-width:760px){.settings-link-grid{grid-template-columns:1fr}.settings-link-card{padding:15px}}

/* V2.5.6 – Three daily tasks, records and settings; technical Payneos captions retained. */
.dashboard .nav-link.prod-nav-link{display:flex;align-items:flex-start;gap:10px;padding:9px 11px;min-height:45px}
.dashboard .prod-nav-link .nav-icon{padding-top:3px;flex:0 0 19px}
.dashboard .prod-nav-link .nav-copy,.dashboard .nav-advanced-toggle .nav-copy{display:flex;flex:1;flex-direction:column;gap:3px;min-width:0}
.dashboard .prod-nav-link .nav-friendly,.dashboard .nav-advanced-toggle .nav-friendly{font-size:12.5px;line-height:1.25;font-weight:600;color:#26384b;overflow-wrap:anywhere}
.dashboard .prod-nav-link .nav-technical,.dashboard .nav-advanced-toggle .nav-technical{display:block;font-size:9.5px;line-height:1.4;font-weight:400;color:#758497;letter-spacing:0;overflow-wrap:anywhere}
.dashboard .prod-nav-link.active .nav-friendly{color:#074c82;font-weight:700}
.dashboard .prod-nav-link.active .nav-technical{color:#477395}
.dashboard .prod-nav-link:hover .nav-technical{color:#47657e}
.dashboard .prod-main-link .nav-friendly{font-size:13px;font-weight:650}
.dashboard .prod-advanced{margin-top:2px}
.dashboard .nav-advanced-toggle{cursor:pointer;list-style:none;display:flex;align-items:flex-start;gap:10px;color:#626f7d;padding:9px 11px;margin:1px 0;border-radius:4px}
.dashboard .nav-advanced-toggle::-webkit-details-marker{display:none}
.dashboard .nav-advanced-toggle:hover{background:#edf0f3}
.dashboard .nav-advanced-toggle .nav-advanced-icon{font-size:16px;line-height:1;flex:0 0 19px;color:#62707f;padding-top:2px}
.dashboard .nav-advanced-toggle .nav-chevron{margin-left:5px;font-size:13px;transition:transform .14s;color:#52687d}
.dashboard .prod-advanced[open] .nav-chevron{transform:rotate(180deg)}
.dashboard .prod-advanced[open] .nav-link{padding-left:15px}
.dashboard .workspace-menu-item{display:flex;align-items:flex-start;gap:9px;padding:8px 10px;min-height:44px}
.dashboard .workspace-menu-copy{display:flex;flex-direction:column;gap:2px;min-width:0;font-size:12px;line-height:1.3}
.dashboard .workspace-menu-copy small{display:block;font-size:10px;color:#778599;font-weight:400}
.dashboard .workspace-menu-item.active .workspace-menu-copy small{color:#557d9c}
.dashboard .settings-link-card small{font-size:10px;color:#76859a;line-height:1.4}
@media(max-width:720px){
  .dashboard .nav-link.prod-nav-link{padding:10px 12px}
  .dashboard .prod-nav-link .nav-friendly{font-size:13px}
  .dashboard .prod-nav-link .nav-technical{font-size:10px}
}

/* V2.5.7: user-friendly PROD device directory (local-only; no changes to API forms). */
.prod-device-directory .prod-tech-term{display:inline-block;margin-left:8px;font-size:11px;font-weight:500;color:#6e7e90;vertical-align:middle}
.prod-device-directory .prod-device-section-title{display:flex;align-items:end;justify-content:space-between;gap:18px;margin:18px 0 14px;flex-wrap:wrap}
.prod-device-directory .prod-device-section-title h3{margin:0 0 4px}
.prod-device-directory .prod-device-section-title .muted{margin:0}
.prod-device-directory .prod-device-row-header,.prod-device-directory .prod-device-entry-row{display:grid;grid-template-columns:minmax(160px,1fr) minmax(150px,.9fr) minmax(180px,1.3fr) 42px;gap:10px;align-items:end}
.prod-device-directory .prod-device-row-header{padding:0 10px;font-size:12px;font-weight:650;color:#425468}
.prod-device-directory .prod-device-row-header small,.prod-device-directory .prod-device-entry-row small,.prod-device-directory .prod-device-list th small,.prod-device-directory .prod-device-search-label small{display:block;font-size:10px;font-weight:450;color:#7a899b;line-height:1.5}
.prod-device-directory .prod-device-entry-rows{display:grid;gap:10px;margin:9px 0 12px}
.prod-device-directory .prod-device-entry-row{padding:12px;border:1px solid #e1e8f1;border-radius:6px;background:#fafbfd}
.prod-device-directory .prod-device-entry-row label{margin:0;font-weight:600;min-width:0}
.prod-device-directory .prod-device-entry-row input{width:100%;min-width:0;margin:5px 0 0}
.prod-device-directory .prod-device-remove{min-height:36px!important;min-width:36px;padding:0!important;font-size:22px!important;line-height:1}
.prod-device-directory .prod-device-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:12px 0 20px}
.prod-device-directory .prod-device-toolbar .btn.primary{margin-left:auto}
.prod-device-directory .prod-device-search-label{min-width:min(290px,100%);margin:0!important}
.prod-device-directory .prod-device-search-label input{width:100%;margin-top:5px}
.prod-device-directory .prod-device-list td{vertical-align:middle}
.prod-device-directory .prod-device-list input{min-width:140px;width:100%;margin:0!important}
.prod-device-directory .prod-device-list .btn{white-space:nowrap}
.prod-device-directory .prod-device-list tbody tr[hidden]{display:none!important}
.prod-device-directory .prod-device-footnote{font-size:12px;margin-top:16px}
@media(min-width:850px){.prod-device-directory .prod-device-entry-row label{font-size:0}.prod-device-directory .prod-device-entry-row label small{display:none}.prod-device-directory .prod-device-entry-row label input{font-size:13px}}
@media(max-width:850px){.prod-device-directory .prod-device-row-header{display:none}.prod-device-directory .prod-device-entry-row{grid-template-columns:1fr 1fr}.prod-device-directory .prod-device-entry-row label:nth-child(3){grid-column:1/-1}.prod-device-directory .prod-device-remove{justify-self:end}.prod-device-directory .prod-device-toolbar .btn.primary{margin-left:0}}
@media(max-width:520px){.prod-device-directory .prod-device-entry-row{grid-template-columns:1fr}.prod-device-directory .prod-device-entry-row label:nth-child(3){grid-column:auto}.prod-device-directory .prod-device-toolbar .btn{width:100%}.prod-device-directory .prod-device-search-label{width:100%}}

/* V2.5.8 – dedicated SHA-256 identity module (Fluent / Dynamics visual style) */
.prod-hash-module .hash-inner-panel {background:var(--surface,#fff);border:1px solid var(--line,#dce2ec);border-radius:10px;padding:18px;}
.prod-hash-module .hash-inner-panel h3 {margin-top:0;}
.prod-hash-module .hash-identity-value {font-size:11px;overflow-wrap:anywhere;word-break:break-all;white-space:normal;display:inline-block;max-width:290px;line-height:1.45;}
.prod-hash-module .hash-identity-table td {vertical-align:middle;}
.prod-hash-module tr.hash-recent {background:rgba(0,120,212,.055);}
.prod-hash-module a {color:#0067b8;}
@media(max-width:900px){.prod-hash-module .hash-identity-value{max-width:220px;}}
/* V2.5.9 read-only PROD home dashboard. No third-party JavaScript or fonts. */
.prod-dashboard{display:grid;gap:17px}.prod-dash-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:3px 0 8px}.prod-dash-head h2{font-size:24px;letter-spacing:-.5px;margin:1px 0 5px}.prod-dash-head p{margin:0;color:#667185}.prod-dash-eyebrow{font-size:10px!important;letter-spacing:1.3px;font-weight:700;color:#0f6cbd!important}.prod-dash-pill{border:1px solid #b5dacf;background:#edf8f3;color:#14663e;font-size:11px;font-weight:650;padding:8px 12px;border-radius:20px;white-space:nowrap}.prod-dash-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.prod-kpi{display:flex;flex-direction:column;text-decoration:none!important;border:1px solid #e0e6ee;border-radius:9px;background:#fff;padding:20px 17px;min-height:137px;box-shadow:0 2px 8px rgba(15,23,42,.035);color:#253349!important}.prod-kpi:hover{border-color:#73a9d5;box-shadow:0 6px 20px rgba(15,85,155,.08)}.prod-kpi span{font-size:12px;color:#657083;font-weight:600}.prod-kpi strong{font-size:31px;color:#142c4c;line-height:1.7;font-weight:700;font-variant-numeric:tabular-nums}.prod-kpi small{font-size:10.5px;color:#778295}.prod-dash-grid{display:grid;grid-template-columns:1.35fr 1fr;gap:15px}.prod-dash-card{padding:19px 20px;background:#fff;border:1px solid #e2e7ee;border-radius:9px;box-shadow:0 2px 8px rgba(15,23,42,.035);min-width:0}.prod-dash-card-title{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:19px}.prod-dash-card-title h3{margin:0;font-size:14px;font-weight:700;color:#253349}.prod-dash-card-title>span{font-size:10.5px;color:#748195}.prod-bars{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:12px;min-height:185px;align-items:end}.prod-bar-col{height:185px;min-width:0;display:flex;flex-direction:column;align-items:center;gap:6px}.prod-bar-value{font-size:11px;font-weight:650;color:#52647b}.prod-bar-track{width:min(45px,100%);height:142px;border-radius:5px;background:#f0f5fa;display:flex;align-items:flex-end;overflow:hidden}.prod-bar-fill{width:100%;min-height:0;background:linear-gradient(180deg,#3b94db,#0f6cbd);border-radius:5px 5px 0 0}.prod-bar-label{font-size:10px;color:#667287;white-space:nowrap}.prod-dash-foot{font-size:10.5px;color:#8490a0;margin:20px 0 0}.prod-donut-layout{display:flex;gap:24px;align-items:center;min-height:185px}.prod-donut{width:172px;height:172px;flex:0 0 172px;display:grid;place-items:center;border-radius:50%;background:conic-gradient(#0f6cbd 0 calc(var(--ok)*1%),#cc4d43 calc(var(--ok)*1%) calc((var(--ok) + var(--fail))*1%),#e6a23c calc((var(--ok) + var(--fail))*1%) calc((var(--ok) + var(--fail) + var(--pending))*1%),#dce3eb calc((var(--ok) + var(--fail) + var(--pending))*1%) 100%)}.prod-donut>div{background:white;width:116px;height:116px;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center}.prod-donut strong{font-size:27px;color:#172d48}.prod-donut small{color:#738096;font-size:10px}.prod-donut-legend{display:grid;gap:12px;flex:1;min-width:0}.prod-donut-legend span{display:flex;gap:8px;align-items:center;color:#667185;font-size:11px}.prod-donut-legend b{margin-left:auto;color:#263953}.prod-donut-legend i{width:9px;height:9px;border-radius:3px;flex:0 0 9px}.pd-ok{background:#0f6cbd}.pd-fail{background:#cc4d43}.pd-pending{background:#e6a23c}.pd-other{background:#dce3eb}.prod-dash-quick{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.prod-dash-quick a{display:flex;justify-content:space-between;align-items:center;border:1px solid #e0e7ef;border-radius:5px;padding:14px 12px;text-decoration:none;color:#194a74;font-size:12px;font-weight:600;background:#f9fbfd}.prod-dash-quick a:hover{border-color:#8cb9df;background:#edf6fd}.prod-dash-quick a span{font-size:20px}.prod-dash-disclaimer{color:#758296;font-size:11px;margin:0 2px}.prod-settings-connection{border:1px solid #dce6ef;background:#f8fbff;border-radius:7px;padding:16px 18px;margin-bottom:19px}.prod-settings-connection h3{margin:0 0 5px;font-size:16px}.prod-settings-connection .key-values{margin:14px 0}.prod-settings-connection .settings-action-row{margin-top:12px}
@media(max-width:1200px){.prod-dash-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.prod-dash-grid{grid-template-columns:1fr}.prod-dash-quick{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:630px){.prod-dash-head{align-items:flex-start;flex-direction:column}.prod-dash-kpis{gap:9px}.prod-kpi{min-height:115px;padding:14px}.prod-kpi strong{font-size:26px}.prod-dash-card{padding:14px}.prod-donut-layout{flex-direction:column}.prod-donut-legend{width:100%}.prod-dash-quick{grid-template-columns:1fr}.prod-bars{gap:5px}}

/* V2.6 Device Registry direct, explicitly confirmed API enrollment */
.prod-registry-send{display:flex;flex-direction:column;gap:8px;margin-top:10px;min-width:240px;}
.prod-registry-target-label{display:block;font-size:12px;line-height:1.4;}
.prod-registry-target-label select{display:block;width:100%;max-width:390px;margin-top:5px;}
.prod-registry-send .btn{align-self:flex-start;}
.prod-device-list td:last-child{min-width:265px;}

/* V2.6.1: active / archived users */
.prod-passive-archive {margin:18px 0;padding:14px;border:1px solid var(--border,#d9e2eb);border-radius:10px;}
.prod-passive-archive summary {cursor:pointer;padding:5px 0;}
.prod-device-list td form {margin-top:6px;}

/* V2.6.2 Registry cancel + local archive. Never expose API secrets. */
.prod-registry-cancel {display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin:12px 0;padding:10px;border:1px solid var(--border,#dbe4ef);border-radius:8px;}
.prod-registry-cancel .prod-registry-target-label {width:100%;max-width:440px;}
.prod-registry-cancel select,.prod-registry-cancel input {width:100%;max-width:440px;}

/* V2.6.3 Device Registry selection and SHA technical identity */
.prod-registry-bulkbar{display:flex;flex-wrap:wrap;align-items:end;gap:10px;margin:12px 0;padding:12px;border:1px solid #dbe3ee;border-radius:8px;background:#f7faff}
.prod-registry-bulkbar label{flex:1 1 260px;margin:0;min-width:200px}
.prod-registry-bulkbar button{white-space:normal}
.prod-registry-hash{display:block;max-width:220px;overflow-wrap:anywhere;word-break:break-all;font-size:11px;line-height:1.45}
.prod-device-list th:first-child,.prod-device-list td:first-child{width:54px;min-width:54px;text-align:center}
@media(max-width:800px){.prod-registry-bulkbar{flex-direction:column;align-items:stretch}.prod-registry-bulkbar label{width:100%;flex:auto}}

/* V2.6.4: Shared registry actions; no per-device API action column. */
.prod-device-list th:nth-child(2),.prod-device-list td:nth-child(2){min-width:190px}
.prod-registry-cancel-panel{margin:10px 0 16px;padding:10px 14px;border:1px solid #dbe3ee;border-radius:8px;background:#fff}
.prod-registry-cancel-panel summary{cursor:pointer;color:#1b4e80}
.prod-registry-cancel-panel summary small{color:#6b798c;font-size:11px;font-weight:400}
.prod-registry-cancel-panel .prod-registry-cancel{max-width:740px}
.prod-registry-cancel-panel .prod-registry-cancel label{width:100%;max-width:580px}
.prod-registry-cancel-panel select,.prod-registry-cancel-panel input{width:100%;max-width:580px}
.prod-device-list td:last-child{min-width:160px}

/* V2.6.5: Device Registry checkbox must not inherit text input dimensions. */
.prod-device-directory .prod-device-list input.prod-registry-check[type="checkbox"] {
  display:inline-block!important; position:static!important; appearance:auto!important;
  width:18px!important; min-width:18px!important; max-width:18px!important;
  height:18px!important; min-height:18px!important; margin:0 auto!important;
  padding:0!important; vertical-align:middle; accent-color:#0f6cbd;
  cursor:pointer; opacity:1!important; visibility:visible!important;
}
.prod-device-directory .prod-device-list td:first-child { text-align:center; }


/* V2.6.6 – Readable, responsive Device Registry toolbar */
.prod-device-directory .prod-registry-bulkbar {
  display:flex; flex-direction:column; align-items:stretch; gap:14px;
  margin:14px 0 18px; padding:18px 20px; background:#f7faff;
  border:1px solid #d9e3f1; border-radius:12px;
}
.prod-registry-toolbar-heading strong {display:block;color:#173d68;font-size:15px;line-height:1.4}
.prod-registry-toolbar-heading small {display:block;margin-top:3px;color:#63758c;font-size:12px;line-height:1.45}
.prod-registry-toolbar-main {display:grid;grid-template-columns:minmax(185px,0.85fr) minmax(290px,2fr);gap:18px;align-items:end}
.prod-registry-selection {display:flex;align-items:center;gap:12px;flex-wrap:wrap;min-height:42px}
.prod-registry-selection .btn {min-height:39px;white-space:nowrap}
.prod-registry-selection strong {font-size:13px;color:#274461;white-space:nowrap}
.prod-device-directory .prod-registry-bulkbar .prod-registry-merchant-label {display:block;flex:initial;min-width:0;font-weight:600;font-size:12px;color:#34516d}
.prod-registry-merchant-label select {display:block;width:100%;margin-top:6px;min-height:42px;border-radius:7px;background:white}
.prod-registry-toolbar-actions {display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;padding-top:13px;border-top:1px solid #dde6f1}
.prod-registry-toolbar-actions .btn {min-height:40px;padding:9px 14px;white-space:nowrap;font-size:12px}
.prod-registry-toolbar-actions .btn.primary {min-width:208px}
@media(max-width:900px){
  .prod-registry-toolbar-main{grid-template-columns:1fr;gap:12px}
  .prod-registry-toolbar-actions{justify-content:flex-start}
}
@media(max-width:580px){
  .prod-device-directory .prod-registry-bulkbar{padding:14px;gap:12px}
  .prod-registry-toolbar-actions{display:grid;grid-template-columns:1fr}
  .prod-registry-toolbar-actions .btn,.prod-registry-toolbar-actions .btn.primary{width:100%;min-width:0}
}

/* V2.6.7 – duplicate telephone number warning dialog */
.prod-duplicate-dialog {border:1px solid #df9c9c;border-radius:12px;padding:22px 24px;width:min(480px,calc(100vw - 28px));max-width:100%;box-shadow:0 24px 70px #14283d44;color:#1c344d;background:#fff}
.prod-duplicate-dialog::backdrop {background:rgba(15,31,54,.48)}
.prod-duplicate-dialog-heading{display:flex;align-items:center;gap:12px;font-size:19px;color:#a82828}
.prod-duplicate-dialog-heading span{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:#ffeded;color:#b32222;font-weight:800}
.prod-duplicate-dialog p{white-space:pre-line;overflow-wrap:anywhere;line-height:1.7;margin:14px 0 22px}
.prod-duplicate-dialog-actions{display:flex;justify-content:flex-end}

/* V2.7.3: SHA-256 user identity is nested under Settings in the PROD sitemap. */
.dashboard .prod-settings-submenu{margin:1px 0 4px 13px;border-left:2px solid #e1e7ef;padding-left:7px}
.dashboard .prod-settings-submenu .nav-link.prod-settings-child{padding:7px 9px;min-height:37px}
.dashboard .prod-settings-submenu .prod-settings-child .nav-friendly{font-size:11.75px}
.dashboard .prod-settings-submenu .prod-settings-child .nav-technical{font-size:9px}

/* V2.7.4 - Device Registry control placement (visual only; no API changes). */
.prod-device-directory .prod-registry-list-status{
  display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:8px 0 12px;
}
.prod-device-directory .prod-registry-list-status #prodDeviceListCount{margin:0;}
.prod-device-directory .prod-registry-list-status #prodRegistryCount{
  color:#274461;font-size:13px;white-space:nowrap;
}
.prod-device-directory .prod-registry-toolbar-heading{display:flex;flex-direction:column;gap:13px;}
.prod-device-directory .prod-registry-toolbar-heading .prod-registry-merchant-label{
  display:block;width:100%;margin:0;min-width:0;
}
.prod-device-directory .prod-registry-toolbar-heading .prod-registry-merchant-label select{
  width:100%;max-width:none;
}
.prod-device-directory .prod-registry-toolbar-actions #prodRegistryAll{
  min-height:40px;
}

/* V2.7.5 - Common Türkiye server clock, all UAT/PROD views, sign-in and installer. */
.mgo-clock{display:inline-flex;flex-direction:column;justify-content:center;align-items:flex-end;gap:1px;white-space:nowrap;min-width:150px;line-height:1.15}
.mgo-clock-label{font-size:9px;font-weight:700;letter-spacing:.7px;color:#8ea5c8}
.mgo-clock-time{font-family:Consolas,Monaco,'Courier New',monospace;font-size:12px;font-weight:700;font-variant-numeric:tabular-nums;color:#e8f4ff}
.mgo-clock-status{position:absolute;transform:translateX(11px);font-size:9px;line-height:1;color:#5ee6aa}
.mgo-clock.mgo-clock-warning .mgo-clock-status{color:#f8b75b}
.auth-bg .mgo-clock{display:flex;margin:15px auto 0;align-items:center;width:max-content;border-top:1px solid #e7edf3;padding:14px 8px 0}
.auth-bg .mgo-clock-label{color:#788aa4}
.auth-bg .mgo-clock-time{color:#294d76}
.auth-bg .mgo-clock-status{transform:translateX(102px)}
@media(max-width:1100px){.dashboard .mgo-clock{min-width:125px}.dashboard .mgo-clock-time{font-size:11px}.dashboard .mgo-clock-label{font-size:8px}}
@media(max-width:720px){.dashboard .top-actions{gap:5px}.dashboard .mgo-clock{min-width:118px}.dashboard .mgo-clock-label{font-size:8px}.dashboard .mgo-clock-time{font-size:10px}.dashboard .mgo-clock-status{transform:translateX(7px)}}
@media(max-width:400px){.dashboard .mgo-clock{min-width:106px}.dashboard .mgo-clock-time{font-size:9px}.dashboard .mgo-clock-label{font-size:7px}}

/* V2.7.7: Settings relocated next to WORKSPACE. Small accessible nested Advanced menu. */
.dashboard .settings-topmenu{flex:0 0 auto}
.dashboard .settings-menu-panel{width:min(335px,calc(100vw - 22px));max-height:min(72vh,680px)}
.dashboard .settings-advanced{margin:6px 3px 3px;border-top:1px solid #e1e7ef;padding-top:6px}
.dashboard .settings-advanced-summary{list-style:none;display:flex;align-items:center;gap:10px;cursor:pointer;border-radius:4px;padding:12px 11px;font-size:12px;font-weight:700;color:#344c6c;user-select:none}
.dashboard .settings-advanced-summary::-webkit-details-marker{display:none}
.dashboard .settings-advanced-summary:hover,.dashboard .settings-advanced-summary:focus-visible{background:#f0f5fb;color:#1751bb}
.dashboard .settings-advanced-summary .settings-chevron{margin-left:auto;transition:transform .15s}
.dashboard .settings-advanced[open] .settings-chevron{transform:rotate(180deg)}
.dashboard .settings-advanced-items{padding:0 0 5px 12px;border-left:2px solid #e1e7ef;margin-left:16px}
.dashboard .settings-topmenu[open] .workspace-menu-trigger{background:#254271!important}
@media(max-width:720px){.dashboard .settings-menu-panel{right:0;max-height:65vh}.dashboard .settings-topmenu .workspace-menu-trigger{padding:7px 6px!important;font-size:10px!important}}

/* V2.8.15.4: Payneos UserId input and save button must remain visibly separate.
   This does not alter SHA-256 text or the original Enrollment forms. */
.prod-device-directory .mgo-provider-save-help{margin:12px 0!important;font-size:12px;line-height:1.55}
.prod-device-directory .prod-device-list th:nth-child(3),
.prod-device-directory .prod-device-list td:nth-child(3){min-width:300px}
.prod-device-directory .mgo-provider-code-form{display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;align-items:center!important;gap:7px!important;margin:0!important;min-width:0!important}
.prod-device-directory .mgo-provider-code-form input[name="identity_provider_code"]{display:block!important;flex:1 1 170px!important;width:auto!important;max-width:100%!important;min-width:145px!important;margin:0!important}
.prod-device-directory .mgo-provider-code-form button{flex:0 0 auto!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:36px!important;margin:0!important;white-space:nowrap!important}
.prod-device-directory .mgo-provider-code-saved{font-size:11px;font-weight:700;color:#087544;background:#e5f7ef;border:1px solid #afe7c9;padding:8px 10px;border-radius:7px;white-space:nowrap}
.prod-device-directory .prod-device-list td:nth-child(4) input{width:100%!important;max-width:100%!important;min-width:155px;box-sizing:border-box}
@media(max-width:760px){.prod-device-directory .prod-device-list{min-width:850px}.prod-device-directory .mgo-provider-code-form input[name="identity_provider_code"]{min-width:150px!important}}

/* V2.8.17 - SHA disclosure stays collapsed until the operator opens a row. */
.mgo-sha-disclosure{max-width:250px}
.mgo-sha-disclosure summary{cursor:pointer;color:#235a95;font-weight:700;white-space:nowrap;padding:7px 3px}
.mgo-sha-disclosure[open] summary{margin-bottom:7px}
.mgo-sha-disclosure code{display:block;max-width:250px;overflow-wrap:anywhere;user-select:text}
.mgo-send-history{margin:18px 0;padding-top:12px;border-top:1px solid #d8e0ea}
.mgo-send-history th,.mgo-send-history td{font-size:12px;white-space:normal;vertical-align:middle}
.mgo-send-history .table-wrap{overflow:auto}

/* V2.8.19: user-supplied UserId + auto mgogrpN Subtenant, scoped to device registry */
.prod-device-directory .prod-device-list td code{overflow-wrap:anywhere}
.prod-device-directory .prod-device-list td small.muted{display:block;font-size:11px;line-height:1.5;margin-top:4px}
.prod-device-directory .prod-device-list td form .btn.outline{white-space:normal;margin-top:6px}
