@import url('legacy.css');
:root{--mirs-blue:#306bdd;--mirs-ink:#17334e;--mirs-muted:#73879f;--mirs-line:#e4edf6;--mirs-surface:#fff;--mirs-radius:24px}
html{min-height:100%;background:#f1f7fd}body.mirs-theme{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:15px;line-height:1.6;color:var(--mirs-ink);background:radial-gradient(ellipse at 94% 10%,#dcecff 0,transparent 45%),linear-gradient(135deg,#edf6ff,#f6f9fc);margin:0;min-height:100vh;-webkit-font-smoothing:antialiased}body.mirs-theme *{box-sizing:border-box}body.mirs-theme a{color:var(--mirs-blue)}body.mirs-theme a:focus-visible,body.mirs-theme button:focus-visible,body.mirs-theme input:focus-visible{outline:3px solid #9dc3ff;outline-offset:3px}body.mirs-theme h1,body.mirs-theme h2,body.mirs-theme h3,body.mirs-theme h4{font-weight:700;color:var(--mirs-ink);letter-spacing:-.025em;line-height:1.2}body.mirs-theme h1{font-size:30px;margin:0 0 24px}body.mirs-theme h3{font-size:22px;margin:0 0 18px}body.mirs-theme p{line-height:1.65}body.mirs-theme .container-fluid{min-width:0!important}body.mirs-theme #wrap-all,body.mirs-theme #wrap-wrap-all{background:none;min-height:100vh;width:100%;margin:0;padding:0}
body.mirs-theme .header{height:94px;position:sticky;top:0;z-index:1000;background:rgba(247,251,255,.96);color:var(--mirs-ink);border-bottom:1px solid var(--mirs-line);box-shadow:none;margin:0;padding:0 32px;display:flex;align-items:center}body.mirs-theme .header>.row{width:100%;display:flex;align-items:center;gap:24px;margin:0;padding:0!important}body.mirs-theme .mirs-brand{display:flex;align-items:center;gap:14px;color:#205ca1;text-decoration:none;flex-shrink:0}body.mirs-theme .mirs-brand img{width:50px;height:50px;object-fit:contain}body.mirs-theme .mirs-brand span{font-size:25px;font-weight:800;letter-spacing:.04em;line-height:1.15}body.mirs-theme .mirs-brand small{display:block;font-size:12px;font-weight:500;letter-spacing:0;color:var(--mirs-muted);margin-top:4px}body.mirs-theme .mirs-menu-toggle{display:none;border:0;background:#e7f0ff;color:#306bdd;width:42px;height:42px;border-radius:14px;font-size:23px}body.mirs-theme .notify-row{margin:0 0 0 auto;padding:0;float:none}body.mirs-theme .top-menu>li>a{background:#e9f1ff!important;border:0!important;color:var(--mirs-blue)!important;width:46px;height:46px;border-radius:15px;display:flex;align-items:center;justify-content:center;position:relative}body.mirs-theme .header-right{float:none;display:flex;gap:18px;align-items:center;margin:0}body.mirs-theme .logout{padding:0;margin:0}body.mirs-theme .logout a{color:#516981!important;border:1px solid #d8e5f2!important;background:#fff!important;padding:10px 18px;font-size:14px;border-radius:14px}body.mirs-theme .lang-select-wrapper{margin:0;position:relative}body.mirs-theme .lang-select{color:#516981;background:transparent;border:0;padding:6px;min-width:0}body.mirs-theme .lang-label{font-size:13px}body.mirs-theme .lang-flag{width:23px}body.mirs-theme .lang-options{z-index:1200;border-radius:15px;box-shadow:0 12px 40px #17334e15;border:1px solid var(--mirs-line)}body.mirs-theme .telegram-btn .btn{background:#fff;color:var(--mirs-blue);border:1px solid var(--mirs-line);font-size:13px}body.mirs-theme .mirs-unread{position:absolute;right:-5px;top:-5px;min-width:20px;height:20px;border-radius:10px;background:#306bdd;color:#fff;font-size:11px;font-weight:700;padding:1px 5px;border:2px solid #f7fbff}body.mirs-theme [hidden]{display:none!important}
body.mirs-theme .wrapcontent{margin:0;padding:0;position:relative;min-height:calc(100vh - 220px)}body.mirs-theme .mirs-sidebar{position:fixed;left:24px;top:118px;max-height:calc(100vh - 142px);overflow:auto;width:232px;border:1px solid #edf2f8;border-radius:24px;background:rgba(255,255,255,.88);padding:24px 12px;box-shadow:0 12px 35px #183b6810}body.mirs-theme .mirs-sidebar-caption{font-size:10px;font-weight:800;letter-spacing:.15em;color:#8fa1b6;margin:0 16px 16px}body.mirs-theme .mirs-navigation{margin:0;padding:0;list-style:none;float:none;width:100%}body.mirs-theme .mirs-navigation>li{margin:4px 0;float:none;display:block}body.mirs-theme .mirs-navigation>li>a{display:flex;align-items:center;gap:12px;color:#64778e;font-weight:550;font-size:14px;padding:12px 14px;border-radius:14px;text-decoration:none}body.mirs-theme .mirs-nav-mark{display:block;width:10px;height:10px;border:2px solid #a6b8cd;border-radius:4px;flex-shrink:0}body.mirs-theme .mirs-navigation>li.is-current>a{color:#306bdd;background:#eaf2ff}body.mirs-theme .is-current>a .mirs-nav-mark{border-color:#306bdd;background:#306bdd}body.mirs-theme .mirs-navigation a:hover{background:#f0f6ff;color:#306bdd}body.mirs-theme .mirs-submenu{padding-left:40px;list-style:none}body.mirs-theme .mirs-submenu a{display:block;padding:7px 0;color:#73879f;font-size:13px}body.mirs-theme .mirs-submenu .is-current>a{color:#306bdd;font-weight:700}body.mirs-theme .mirs-sidebar-note{font-size:12px;color:#9aabbd;border-top:1px solid var(--mirs-line);margin:22px 14px 0;padding-top:18px}body.mirs-theme .main{margin:0 0 0 280px;padding:34px 28px;min-width:0;width:auto}body.mirs-theme .main>.container-fluid{padding:0;max-width:1280px;margin:0 auto}body.mirs-theme .breadcrumb{padding:0;margin:0 0 24px;background:none;border:0;font-size:13px;color:#7d91a8}body.mirs-theme .breadcrumb .divider{padding:0 9px;color:#b1c2d2}body.mirs-theme .well,body.mirs-theme .panel,body.mirs-theme .content-panel,body.mirs-theme .form-wrapper,body.mirs-theme .mirs-card{background:white;color:var(--mirs-ink);border:1px solid #edf2f8;border-radius:var(--mirs-radius);box-shadow:0 14px 42px #183b6808;padding:26px;margin-bottom:24px}body.mirs-theme .well{background:radial-gradient(circle at 100% 0,#e7f1ff 0,transparent 35%),#fff}body.mirs-theme .panel-heading,body.mirs-theme .content-panel-heading{background:none;border-bottom:1px solid var(--mirs-line);padding:0 0 16px;color:var(--mirs-ink)}body.mirs-theme .panel-body{padding:18px 0 0}body.mirs-theme .right-col{margin:0}body.mirs-theme .right-col>div>div{border-radius:20px}body.mirs-theme .btn{border-radius:13px;padding:11px 20px;font-weight:650;line-height:1.4;transition:background .15s,box-shadow .15s;border:1px solid transparent;white-space:normal}body.mirs-theme .btn-default,body.mirs-theme .btn-primary,body.mirs-theme input[type=submit]{background:var(--mirs-blue);color:#fff;border-color:var(--mirs-blue);box-shadow:0 7px 18px #306bdd14}body.mirs-theme .btn-default:hover,body.mirs-theme .btn-primary:hover{background:#245cc8;color:#fff}body.mirs-theme .btn-danger{color:#bd4550;background:#fff0f1;border-color:#ffe0e3;box-shadow:none}body.mirs-theme .btn-sm{padding:8px 14px;font-size:13px}body.mirs-theme .btn-link{background:none;box-shadow:none;color:#306bdd}body.mirs-theme input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=submit]),body.mirs-theme select,body.mirs-theme textarea{border:1px solid #dce7f3;background:#f7faff;border-radius:12px;color:var(--mirs-ink);max-width:100%;padding:10px 12px;box-shadow:none;min-height:42px}body.mirs-theme label{font-weight:550;color:#627a94}body.mirs-theme table{background:#fff;max-width:100%}body.mirs-theme .table-responsive{border:0;overflow-x:auto;border-radius:16px}body.mirs-theme .table>thead>tr>th{background:#f3f8ff;color:#7890a9;border-bottom:1px solid var(--mirs-line);font-size:12px;font-weight:600;padding:14px}body.mirs-theme .table>tbody>tr>td{border-top:1px solid var(--mirs-line);padding:14px;vertical-align:middle}body.mirs-theme .table-striped>tbody>tr:nth-of-type(odd){background:#fafcff}body.mirs-theme .alert{border-radius:16px;border:0;padding:16px 20px}body.mirs-theme .alert-info{background:#e8f2ff;color:#32679f}body.mirs-theme .mirs-pwa-actions{display:flex;gap:10px;flex-wrap:wrap;margin:20px 0}body.mirs-theme .mirs-pwa-actions .btn{margin:0}body.mirs-theme #mirs-push-devices{margin-top:26px}body.mirs-theme .mirs-device-row{border-color:var(--mirs-line);padding:16px 0}body.mirs-theme .mirs-device-detail{color:var(--mirs-muted)}body.mirs-theme #mirs-push-prompt,body.mirs-theme #mirs-install-prompt{border:1px solid var(--mirs-line);border-radius:24px;box-shadow:0 20px 70px #17334e30;padding:24px;color:var(--mirs-ink);bottom:calc(20px + env(safe-area-inset-bottom))}body.mirs-theme .site-footer{background:transparent;color:#8b9db2;position:static;height:auto;border:0;margin:0 28px 0 280px;padding:12px;font-size:12px}body.mirs-theme .footer-menu{display:flex;justify-content:center;gap:24px;list-style:none;padding:0}body.mirs-theme .footer-copy br{display:none}body.mirs-theme .footer-left{margin-left:308px}body.mirs-theme .mirs-signature{color:#96a8bd;text-align:center;font-size:12px;padding:10px 0 26px;margin-left:280px}body.mirs-theme .modal-content{border:0;border-radius:24px;box-shadow:0 20px 70px #17334e25;overflow:hidden}body.mirs-theme .mirs-message-list{display:grid;gap:14px}body.mirs-theme .mirs-message{display:block;background:#fff;border:1px solid var(--mirs-line);border-radius:20px;padding:24px;text-decoration:none;box-shadow:0 8px 24px #17334e05}body.mirs-theme .mirs-message:hover{border-color:#a8c9ff;box-shadow:0 8px 24px #306bdd10}body.mirs-theme .mirs-message h3{font-size:17px;margin:0 0 8px}body.mirs-theme .mirs-message p{color:#667f99;margin:0 0 14px;overflow-wrap:anywhere}body.mirs-theme .mirs-message time{font-size:12px;color:#94a6ba}body.mirs-theme .mirs-new{display:inline-block;color:#306bdd;background:#eaf2ff;border-radius:8px;font-size:11px;font-weight:700;padding:3px 8px;margin-bottom:14px}body.mirs-theme .mirs-empty{padding:60px 25px;text-align:center;color:#8094ab}body.mirs-theme .mirs-empty-icon{font-size:30px;background:#eaf2ff;color:#306bdd;width:76px;height:76px;line-height:76px;border-radius:24px;margin:0 auto 24px}
body.mirs-theme.guest{background:radial-gradient(ellipse at 5% 15%,#d9eaff,transparent 55%),#f1f7fd}body.mirs-theme .mirs-login-shell{max-width:1160px;margin:auto;min-height:100vh;display:grid;grid-template-columns:1.1fr 1fr;align-items:center;gap:70px;padding:60px 35px 80px;position:relative}body.mirs-theme .mirs-login-intro .mirs-brand{margin-bottom:70px}body.mirs-theme .mirs-eyebrow{font-size:11px;font-weight:800;letter-spacing:.17em;color:#80a0c0;margin-bottom:18px}body.mirs-theme .mirs-login-intro h1{font-size:54px;line-height:1.14;letter-spacing:-.04em;margin-bottom:26px}body.mirs-theme .mirs-login-intro p{font-size:17px;color:#758da5;max-width:400px}body.mirs-theme .mirs-login-pills{display:flex;gap:8px;flex-wrap:wrap;margin-top:34px}body.mirs-theme .mirs-login-pills span{padding:7px 12px;border:1px solid #dce9f8;background:#ffffff70;border-radius:20px;font-size:12px;color:#6485a8}body.mirs-theme .mirs-login-card{background:#fff;border:1px solid #e8f0f9;padding:40px;border-radius:32px;box-shadow:0 24px 70px #17334e0d;min-width:0}body.mirs-theme .login-content{padding:0!important;width:100%;margin:0;color:var(--mirs-ink)}body.mirs-theme .login-content .form-wrapper{padding:0;border:0;box-shadow:none;background:transparent}body.mirs-theme .mirs-login-card h1{font-size:26px}body.mirs-theme .mirs-login-footer{position:absolute;bottom:24px;left:0;right:0;text-align:center;font-size:12px;color:#93a8c0}body.mirs-theme .login-content input[type=text],body.mirs-theme .login-content input[type=password]{width:100%;max-width:100%}body.mirs-theme .login-content .row{margin:0}body.mirs-theme .login-content .btn,body.mirs-theme .login-content input[type=submit]{border-radius:14px;padding:13px 22px}
@media(min-width:769px){body.mirs-theme .mirs-sidebar{display:block!important}body.mirs-theme .main{margin-left:280px!important}}@media(max-width:1100px){body.mirs-theme .telegram-btn{display:none!important}body.mirs-theme .mirs-login-shell{gap:32px}body.mirs-theme .mirs-login-intro h1{font-size:44px}}@media(max-width:768px){body.mirs-theme .header{height:82px;padding:0 16px;padding-top:env(safe-area-inset-top)}body.mirs-theme .header>.row{gap:12px}body.mirs-theme .mirs-menu-toggle{display:block;flex-shrink:0}body.mirs-theme .mirs-brand img{width:36px;height:36px}body.mirs-theme .mirs-brand span{font-size:20px}body.mirs-theme .mirs-brand small{font-size:10px}body.mirs-theme .header-right{gap:8px}body.mirs-theme .lang-label,body.mirs-theme .lang-select-wrapper,body.mirs-theme .telegram-icon{display:none!important}body.mirs-theme .logout a{padding:9px 12px;font-size:12px}body.mirs-theme .top-menu>li>a{width:38px;height:38px;border-radius:12px}body.mirs-theme .mirs-sidebar{position:fixed;top:94px;left:12px;right:12px;width:auto;z-index:1100;max-height:75vh;overflow:auto;display:none;box-shadow:0 20px 80px #17334e35}body.mirs-theme.mirs-menu-open .mirs-sidebar{display:block}body.mirs-theme .main{margin:0!important;padding:24px 16px}body.mirs-theme .main>.container-fluid>.row{margin:0}body.mirs-theme .main>.container-fluid>.row>div[class*=col-]{padding:0}body.mirs-theme .well,body.mirs-theme .content-panel,body.mirs-theme .panel,body.mirs-theme .form-wrapper,body.mirs-theme .mirs-card{padding:22px;border-radius:24px;margin-bottom:18px}body.mirs-theme h1{font-size:26px}body.mirs-theme h3{font-size:20px}body.mirs-theme .site-footer,body.mirs-theme .mirs-signature,body.mirs-theme .footer-left{margin-left:0}body.mirs-theme .mirs-device-row{gap:10px}body.mirs-theme .mirs-login-shell{display:block;min-height:100vh;padding:30px 18px 75px}body.mirs-theme .mirs-login-intro .mirs-brand{margin-bottom:30px}body.mirs-theme .mirs-login-intro h1{font-size:34px}body.mirs-theme .mirs-login-intro p{font-size:15px;margin-bottom:25px}body.mirs-theme .mirs-login-pills,body.mirs-theme .mirs-eyebrow{display:none}body.mirs-theme .mirs-login-card{padding:28px 22px}body.mirs-theme .mirs-message{padding:22px}body.mirs-theme .mirs-login-footer{bottom:20px}}@media(prefers-reduced-motion:reduce){body.mirs-theme *{transition:none!important}}

body.mirs-theme .mirs-navigation svg{flex-shrink:0;color:#8ea5bd}body.mirs-theme .mirs-navigation .is-current>a svg{color:#306bdd}body.mirs-theme .mirs-section-note{color:#8094ab;margin-top:-14px;margin-bottom:28px}body.mirs-theme .mirs-empty-icon svg{vertical-align:middle;width:32px;height:32px}body.mirs-theme .mirs-login-card .content-panel{padding:0;border:0;box-shadow:none;background:none;margin:20px 0 0}body.mirs-theme .mirs-login-card .lang-select-position{position:relative;display:flex;justify-content:flex-end;top:auto;right:auto}body.mirs-theme .mirs-login-card .lang-select-wrapper{display:block!important}body.mirs-theme .mirs-login-card #loginTitie{margin:16px 0 25px;font-size:26px;color:#17334e}body.mirs-theme .logincontentblock{margin:0}body.mirs-theme .mirs-login-card .lang-options{right:0}body.mirs-theme .mirs-login-card .form-horizontal .form-group{margin-left:0;margin-right:0}body.mirs-theme .mirs-login-card .login-btn{width:100%}body.mirs-theme .mirs-login-card .errorMessage{color:#c64a55}body.mirs-theme .mirs-login-card .popbox{z-index:1500!important}
@media(max-width:768px){body.mirs-theme .header-right .lang-select-wrapper{display:block!important}body.mirs-theme .header-right .lang-select{padding:4px}body.mirs-theme .header>.row{gap:8px}body.mirs-theme .header-right .lang-options{right:0;left:auto;min-width:145px}}
@media(max-width:420px){body.mirs-theme .header .mirs-brand small{display:none}body.mirs-theme .header .mirs-brand{gap:8px}body.mirs-theme .header .mirs-brand span{font-size:18px}}
@media(max-width:350px){body.mirs-theme .header .mirs-brand span{display:none}}

/* MIRS 1.0.1: isolate the toolbar from legacy Bootstrap header geometry. */
body.mirs-theme{--mirs-muted:#59728d;--mirs-line:#d4e0ee;--mirs-radius:30px;background:radial-gradient(ellipse at 95% 6%,#d4e4f8 0,transparent 52%),linear-gradient(135deg,#e8eff8,#e0eaf6);color:#17334e}
body.mirs-theme .header{position:sticky;top:16px;left:auto;right:auto;height:auto;min-height:76px;margin:16px 24px 0;padding:14px 22px;border:1px solid #ccdced;border-radius:26px;background:#fff;box-shadow:0 8px 24px rgba(29,65,110,.09);color:#17334e}
body.mirs-theme .header>.row{display:flex;align-items:center;justify-content:flex-start;flex-wrap:nowrap;gap:22px;height:auto;min-height:46px;width:100%;margin:0!important;padding:0!important;background:transparent!important;border:0;box-shadow:none}
body.mirs-theme .header>.row::before,body.mirs-theme .header>.row::after{display:none;content:none}
body.mirs-theme .header .notify-row{display:flex!important;align-items:center;justify-content:center;align-self:center;float:none;position:static;inset:auto;flex:0 0 auto;width:auto;height:auto;margin:0 0 0 auto!important;padding:0;transform:none}
body.mirs-theme .header .notify-row ul.top-menu{display:flex;align-items:center;list-style:none;float:none;margin:0!important;padding:0!important;height:auto}
body.mirs-theme .header .notify-row ul.top-menu>li{display:flex;align-items:center;float:none;position:relative;margin:0!important;padding:0!important;width:auto;height:auto}
body.mirs-theme .header .notify-row ul.top-menu>li>a{display:flex;align-items:center;justify-content:center;position:relative;float:none;top:auto;line-height:1;width:46px;height:46px;margin:0!important;padding:0!important;border:1px solid #d5e4fa!important;border-radius:16px;background:#eaf2ff!important;color:#2764cf!important;box-shadow:none;text-decoration:none}
body.mirs-theme .header .notify-row ul.top-menu>li>a:hover{background:#dbeaff!important}
body.mirs-theme .header .glyphicon-bell{display:block;position:static;width:22px;height:22px;margin:0;line-height:1;background:center/22px 22px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232764cf' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9a6 6 0 0112 0c0 7 3 7 3 9H3c0-2 3-2 3-9M9 21h6'/%3E%3C/svg%3E")}
body.mirs-theme .header .glyphicon-bell::before{content:none}
body.mirs-theme .header .mirs-unread{right:-5px;top:-5px;z-index:2;border:2px solid #fff;box-shadow:0 2px 5px #245cc822;background:#2764cf;line-height:16px;padding:0 4px;height:20px;min-width:20px}
body.mirs-theme .header>.row>.header-right{display:flex;align-items:center;justify-content:flex-end;flex:0 0 auto;float:none;gap:14px;margin:0;padding:0;height:auto}
body.mirs-theme .header .lang-select-wrapper{width:auto;min-width:0;flex:0 0 auto;margin:0}
body.mirs-theme .header .lang-select{display:flex;align-items:center;gap:8px;color:#456482;background:#f3f7fc;border:1px solid #dce6f2;border-radius:16px;min-height:46px;padding:10px 14px;line-height:1.2}
body.mirs-theme .header .lang-label{color:#456482;line-height:1.2}
body.mirs-theme .header .lang-options{color:#244563;background:#fff;border:1px solid #d3e0ee;border-radius:16px;overflow:hidden;margin-top:8px;box-shadow:0 12px 36px #17334e1c}
body.mirs-theme .header .lang-option{color:#456482}
body.mirs-theme .header .lang-option:hover,body.mirs-theme .header .lang-option.selected{background:#eaf2ff;color:#2764cf}
body.mirs-theme .header .lang-flag{flex-shrink:0;margin:0}
body.mirs-theme .header>.row>.header-right .telegram-btn{margin:0;padding:0}
body.mirs-theme .header>.row>.header-right .telegram-btn .btn-default{background:#eaf2ff!important;color:#2764cf!important;border:1px solid #d5e4fa!important;border-radius:16px;min-height:46px;margin:0;padding:12px 18px;font-size:13px;box-shadow:none;line-height:20px}
body.mirs-theme .header .logout .btn{display:flex;align-items:center;min-height:46px;padding:10px 20px;background:#fff!important;border:1px solid #c6d7ec!important;border-radius:16px;color:#31577e!important;box-shadow:none}
body.mirs-theme .header .logout .btn:hover{background:#f1f6fd!important}
body.mirs-theme .mirs-sidebar{top:116px;max-height:calc(100vh - 140px);border:1px solid #cad9eb;border-radius:30px;background:#fff;box-shadow:0 10px 28px #173b6610;scrollbar-width:thin;scrollbar-color:#c2d1e4 transparent}
body.mirs-theme .mirs-sidebar::-webkit-scrollbar{width:5px}body.mirs-theme .mirs-sidebar::-webkit-scrollbar-thumb{background:#c2d1e4;border-radius:5px}
body.mirs-theme .mirs-navigation>li>a{color:#45617f;border-radius:17px}
body.mirs-theme .mirs-navigation>li.is-current>a{background:#dae9ff;color:#225fcb}
body.mirs-theme .mirs-sidebar-caption{color:#627e9d}
body.mirs-theme .mirs-submenu a,body.mirs-theme .mirs-sidebar-note{color:#607997}
body.mirs-theme .well,body.mirs-theme .panel,body.mirs-theme .content-panel,body.mirs-theme .form-wrapper,body.mirs-theme .mirs-card{background:#fff;border:1px solid #d2deec;border-radius:30px;box-shadow:0 12px 30px #23466e0b}
body.mirs-theme .content-panel .content-panel{background:#f7faff;border:1px solid #dce6f2;border-radius:22px;box-shadow:none}
body.mirs-theme .breadcrumb{color:#526f8e}
body.mirs-theme .mirs-device-detail,body.mirs-theme .mirs-section-note,body.mirs-theme .mirs-message p{color:#58718d}
body.mirs-theme .mirs-message{border-color:#d0deee;border-radius:26px;box-shadow:0 8px 24px #23466e0a}
@media(max-width:1100px){body.mirs-theme .header>.row{gap:16px}body.mirs-theme .header>.row>.header-right{gap:10px}}
@media(max-width:768px){
 body.mirs-theme .header{top:calc(10px + env(safe-area-inset-top));margin:10px 10px 0;padding:10px 12px;min-height:64px;border-radius:22px}
 body.mirs-theme .header>.row{gap:8px;min-height:42px}
 body.mirs-theme .header>.row>.header-right{gap:6px}
 body.mirs-theme .header .notify-row ul.top-menu>li>a{width:38px;height:38px;border-radius:13px}
 body.mirs-theme .header .lang-select{min-height:38px;padding:7px;border-radius:13px;gap:0}
 body.mirs-theme .header .lang-label{display:none}
 body.mirs-theme .header .logout .btn{min-height:38px;padding:8px 10px;border-radius:13px;font-size:12px}
 body.mirs-theme .header .lang-select-wrapper{width:auto;min-width:0}
 body.mirs-theme .mirs-sidebar{top:calc(88px + env(safe-area-inset-top));border-radius:26px;max-height:calc(100dvh - 114px - env(safe-area-inset-top));box-shadow:0 18px 60px #17334e30}
 body.mirs-theme .main{padding-top:24px}
 body.mirs-theme .well,body.mirs-theme .content-panel,body.mirs-theme .panel,body.mirs-theme .form-wrapper,body.mirs-theme .mirs-card{border-radius:28px}
}

/* MIRS 1.0.2: rounded grid cells without clipping account menus. */
body.mirs-theme table.panel-grid,body.mirs-theme table.table{border-collapse:separate!important;border-spacing:0!important;border-radius:24px;border:1px solid #cbdbee;padding:0;background:#fff;box-shadow:0 8px 24px #23466e09}
body.mirs-theme table.panel-grid>thead>tr>td,body.mirs-theme table.panel-grid>thead>tr>th,body.mirs-theme table.panel-grid>tbody>tr>td{border:0;border-bottom:1px solid #dce6f2;padding:14px 16px;background:#fff}
body.mirs-theme table.panel-grid>thead>tr>td,body.mirs-theme table.panel-grid>thead>tr>th{background:#eaf2fd;color:#31577e;font-weight:650}
body.mirs-theme table.panel-grid>tbody>tr:nth-child(even)>td{background:#f5f9ff}
body.mirs-theme table.panel-grid>thead>tr:first-child>*:first-child,body.mirs-theme table.table>thead>tr:first-child>*:first-child{border-top-left-radius:23px}
body.mirs-theme table.panel-grid>thead>tr:first-child>*:last-child,body.mirs-theme table.table>thead>tr:first-child>*:last-child{border-top-right-radius:23px}
body.mirs-theme table.panel-grid>tbody>tr:last-child>td,body.mirs-theme table.table>tbody>tr:last-child>td{border-bottom:0}
body.mirs-theme table.panel-grid>tbody>tr:last-child>td:first-child,body.mirs-theme table.table>tbody>tr:last-child>td:first-child{border-bottom-left-radius:23px}
body.mirs-theme table.panel-grid>tbody>tr:last-child>td:last-child,body.mirs-theme table.table>tbody>tr:last-child>td:last-child{border-bottom-right-radius:23px}
body.mirs-theme .tar-curshape{color:#426c9b;font-size:13px;font-weight:550;margin-top:5px}
@media(max-width:768px){body.mirs-theme table.panel-grid>tbody>tr:first-child>td:first-child{border-top-left-radius:23px;border-top-right-radius:23px}body.mirs-theme table.panel-grid>tbody>tr:last-child>td:last-child{border-bottom-left-radius:23px;border-bottom-right-radius:23px}}

/* MIRS 1.0.3: aligned logout and language selector with room for its chevron. */
body.mirs-theme .header .logout{display:flex;align-items:center;float:none;margin:0!important;padding:0;align-self:center}
body.mirs-theme .header .logout>a{margin:0!important;float:none;line-height:20px;height:46px;min-height:46px;box-sizing:border-box}
body.mirs-theme .header .lang-select-wrapper{width:auto;min-width:142px;align-self:center}
body.mirs-theme .header .lang-select{width:100%;height:46px;min-height:46px;padding:10px 34px 10px 14px;justify-content:flex-start}
body.mirs-theme .header .lang-label{white-space:nowrap;overflow:visible}
body.mirs-theme .header .lang-select::after{right:14px;border-color:#6281a3;width:7px;height:7px}
body.mirs-theme .header .lang-options{min-width:180px;right:0;left:auto;text-align:left}
body.mirs-theme .header .lang-option{white-space:nowrap}
@media(max-width:768px){
 body.mirs-theme .header .logout>a{height:38px;min-height:38px;margin:0!important}
 body.mirs-theme .header .lang-select-wrapper{width:52px;min-width:52px}
 body.mirs-theme .header .lang-select{height:38px;min-height:38px;padding:7px 20px 7px 8px}
 body.mirs-theme .header .lang-select::after{right:8px;width:6px;height:6px}
 body.mirs-theme .header .lang-flag{width:20px}
}

/* MIRS 1.0.4: visible feedback while navigating or rendering AJAX data. */
body.mirs-theme.mirs-loading .mirs-root{filter:blur(3px);pointer-events:none;user-select:none}
body.mirs-theme #mirs-loading-overlay{position:fixed;inset:0;z-index:20000;display:flex;align-items:center;justify-content:center;padding:24px;background:rgba(228,237,249,.5);cursor:progress}
body.mirs-theme #mirs-loading-overlay[hidden]{display:none!important}
body.mirs-theme .mirs-loading-card{display:flex;align-items:center;flex-direction:column;gap:12px;width:100%;max-width:300px;padding:30px 24px;border:1px solid #ccdcf0;border-radius:26px;background:rgba(255,255,255,.97);color:#17334e;box-shadow:0 16px 60px #17334e20;text-align:center}
body.mirs-theme .mirs-loading-card strong{font-size:18px;line-height:1.3}
body.mirs-theme .mirs-loading-card p{font-size:13px;color:#617b98;margin:0}
body.mirs-theme .mirs-loading-spinner{display:block;width:34px;height:34px;border:3px solid #dae8fc;border-top-color:#306bdd;border-radius:50%;animation:mirs-spin .8s linear infinite}
body.mirs-theme .mirs-loading-return{border:1px solid #d3e0f1;border-radius:12px;padding:8px 14px;margin-top:6px;background:#eef5ff;color:#306bdd;font-size:13px;cursor:pointer}
@keyframes mirs-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){body.mirs-theme .mirs-loading-spinner{animation:none;border-color:#306bdd #dae8fc #dae8fc}}

/* Nonblocking progress while table data is arriving. */
body.mirs-theme .mirs-table-loading-status{position:fixed;right:20px;bottom:calc(20px + env(safe-area-inset-bottom));z-index:1400;padding:12px 18px;border:1px solid #cbdcf2;border-radius:18px;background:#f3f8ff;color:#205ca1;box-shadow:0 8px 28px #17334e18;font-size:14px;pointer-events:none;max-width:calc(100vw - 40px)}

/* Keep footer widths independent of inherited full-width positioning. */
body.mirs-theme #wrap-wrap-all,body.mirs-theme #wrap-all{width:auto;max-width:100%;min-width:0;box-sizing:border-box}
body.mirs-theme .site-footer{width:auto!important;min-width:0!important;max-width:none;left:auto;right:auto;float:none;box-sizing:border-box;margin:0 28px 0 280px;overflow-wrap:anywhere}
body.mirs-theme .site-footer .text-center,body.mirs-theme .footer-copy{width:auto;min-width:0;max-width:100%;float:none;white-space:normal;box-sizing:border-box;overflow-wrap:anywhere}
body.mirs-theme .footer-left{width:auto;max-width:calc(100% - 336px);min-width:0;box-sizing:border-box;overflow-wrap:anywhere}
body.mirs-theme .footer-menu{flex-wrap:wrap;margin:0;max-width:100%}
body.mirs-theme .mirs-signature{width:auto;max-width:none;box-sizing:border-box}
/* The outer card clips corners; only the inset child scrolls. */
body.mirs-theme .mirs-sidebar{overflow:hidden!important;padding:14px 0}
body.mirs-theme .mirs-sidebar-scroll{overflow-y:auto;overflow-x:hidden;max-height:calc(100vh - 170px);max-height:calc(100dvh - 170px);padding:10px 12px;box-sizing:border-box;scrollbar-width:thin;scrollbar-color:#c2d1e4 transparent;overscroll-behavior:contain}
body.mirs-theme .mirs-sidebar-scroll::-webkit-scrollbar{width:5px}
body.mirs-theme .mirs-sidebar-scroll::-webkit-scrollbar-thumb{background:#c2d1e4;border-radius:5px}
body.mirs-theme .mirs-passkey-dialog{position:fixed;inset:auto;top:50%;left:50%;transform:translate(-50%,-50%);margin:0;max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);overflow:auto;width:calc(100% - 32px);max-width:440px;border:1px solid #dce7f3;border-radius:28px;background:#fff;color:var(--mirs-ink);padding:30px;box-sizing:border-box;box-shadow:0 24px 80px #17334e30}
body.mirs-theme .mirs-passkey-dialog::backdrop{background:#17334e66;backdrop-filter:blur(3px)}
body.mirs-theme .mirs-passkey-dialog h3{margin:12px 0;font-size:25px}
body.mirs-theme .mirs-passkey-dialog p{line-height:1.6;color:#627a94}
body.mirs-theme .mirs-passkey-dialog .btn{display:block;width:100%;margin-top:12px}
body.mirs-theme .mirs-passkey-dialog .mirs-passkey-later{background:#edf4ff;color:#306bdd;box-shadow:none}
@media(max-width:768px){body.mirs-theme .site-footer{margin:0 16px}body.mirs-theme .footer-left{margin:0 16px;max-width:calc(100% - 32px)}body.mirs-theme .mirs-sidebar-scroll{max-height:calc(100dvh - 146px - env(safe-area-inset-top))}body.mirs-theme .mirs-signature{margin-left:0}}

/* MIRS 1.2.0: a stable toolbar with a measured content offset. */
body.mirs-theme.mirs-has-header{--mirs-header-gap:16px;--mirs-header-side:24px}
html{scroll-padding-top:calc(var(--mirs-header-height,76px) + 32px + env(safe-area-inset-top,0px))}
body.mirs-theme.mirs-has-header .header{position:fixed;top:calc(var(--mirs-header-gap) + env(safe-area-inset-top,0px));left:calc(var(--mirs-header-side) + env(safe-area-inset-left,0px));right:calc(var(--mirs-header-side) + env(safe-area-inset-right,0px));width:auto;margin:0}
body.mirs-theme.mirs-has-header #wrap-all{padding-top:calc(var(--mirs-header-height,76px) + var(--mirs-header-gap) + env(safe-area-inset-top,0px))}
body.mirs-theme.mirs-has-header .mirs-sidebar{top:calc(var(--mirs-header-height,76px) + 40px + env(safe-area-inset-top,0px));max-height:calc(100dvh - var(--mirs-header-height,76px) - 64px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))}
body.mirs-theme.mirs-has-header .mirs-sidebar-scroll{max-height:calc(100dvh - var(--mirs-header-height,76px) - 94px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))}
/* Filtering an ancestor changes the containing block of fixed descendants. */
body.mirs-theme.mirs-has-header.mirs-loading .mirs-root{filter:none}
/* Keep the sidebar's ancestors unfiltered so position:fixed stays relative to the viewport. */
body.mirs-theme.mirs-has-header.mirs-loading .wrapcontent{filter:none}
body.mirs-theme.mirs-has-header.mirs-loading .header,body.mirs-theme.mirs-has-header.mirs-loading .main,body.mirs-theme.mirs-has-header.mirs-loading .mirs-sidebar,body.mirs-theme.mirs-has-header.mirs-loading .footer-left,body.mirs-theme.mirs-has-header.mirs-loading .site-footer,body.mirs-theme.mirs-has-header.mirs-loading .mirs-signature{filter:blur(3px)}
@media(max-width:768px){
 body.mirs-theme.mirs-has-header{--mirs-header-gap:10px;--mirs-header-side:10px}
 body.mirs-theme.mirs-has-header #wrap-all{padding-top:calc(var(--mirs-header-height,64px) + 10px + env(safe-area-inset-top,0px))}
 body.mirs-theme.mirs-has-header .main{padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}
 body.mirs-theme.mirs-has-header .mirs-sidebar{top:calc(var(--mirs-header-height,64px) + 24px + env(safe-area-inset-top,0px));max-height:calc(100dvh - var(--mirs-header-height,64px) - 40px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))}
 body.mirs-theme.mirs-has-header .mirs-sidebar-scroll{max-height:calc(100dvh - var(--mirs-header-height,64px) - 70px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))}
}
/* Only LANBilling data rows become cards; group headings and pagers stay separate. */
@media(max-width:769px){
 body.mirs-theme .panel-grid-wrapper{overflow:visible;margin-bottom:16px}
 body.mirs-theme table.panel-grid{display:block;width:100%;border:0!important;border-radius:0;background:transparent;box-shadow:none}
 body.mirs-theme table.panel-grid>tbody{display:block;width:100%}
 body.mirs-theme table.panel-grid tr.mirs-grid-card{display:block;margin:0 0 16px;border:1px solid #d5e2f0;border-radius:22px;background:#fff;box-shadow:0 6px 18px #23466e08}
 body.mirs-theme table.panel-grid tr.mirs-grid-card>td{display:block;width:100%;min-height:0;padding:11px 16px;text-align:left;font-size:14px;line-height:1.5;color:#17334e;border:0;border-bottom:1px solid #edf2f8;border-radius:0;background:transparent;overflow-wrap:anywhere}
 body.mirs-theme table.panel-grid tr.mirs-grid-card>td::before{content:attr(data-label);display:block;float:none;width:auto;margin:0 0 4px;color:#68809a;font-size:12px;line-height:1.4;font-weight:600}
 body.mirs-theme table.panel-grid tr.mirs-grid-card>td[data-label=""]::before{display:none}
 body.mirs-theme table.panel-grid tr.mirs-grid-card>td:first-child{padding-top:14px;padding-bottom:14px;background:#f0f6ff;border-radius:21px 21px 0 0}
 body.mirs-theme table.panel-grid tr.mirs-grid-card>td:last-child{padding-bottom:14px;border-bottom:0;border-radius:0 0 21px 21px}
 body.mirs-theme table.panel-grid tr.mirs-grid-card>td:only-child{border-radius:21px}
 body.mirs-theme table.panel-grid tr.grid-spacer{display:none}
 body.mirs-theme table.panel-grid>tbody>tr.grid-group-header-row,body.mirs-theme table.panel-grid>tbody>tr.grid-head-pager{border:0;margin:0 0 12px;background:transparent}
 body.mirs-theme table.panel-grid>tbody>tr.grid-group-header-row>td,body.mirs-theme table.panel-grid>tbody>tr.grid-head-pager>td{border:0;min-height:0;padding:8px 0;background:transparent;border-radius:0}
 body.mirs-theme table.panel-grid .clip{float:none;white-space:normal;width:auto;max-width:100%}
}
/* iPhone export stays inside the PWA until the user chooses a file action. */
body.mirs-theme .mirs-export-dialog{position:fixed;inset:auto;top:50%;left:50%;transform:translate(-50%,-50%);margin:0;width:calc(100% - 32px);max-width:440px;max-height:calc(100dvh - 32px);overflow:auto;padding:28px;border:1px solid #dce7f3;border-radius:28px;background:#fff;color:var(--mirs-ink);box-shadow:0 24px 80px #17334e30}
body.mirs-theme .mirs-export-dialog::backdrop{background:#17334e66;backdrop-filter:blur(4px)}
body.mirs-theme .mirs-export-dialog p{color:#627c97;overflow-wrap:anywhere}
body.mirs-theme .mirs-export-actions{display:flex;flex-direction:column;gap:10px}
body.mirs-theme .mirs-export-actions [hidden]{display:none!important}
body.mirs-theme .mirs-export-close{background:#edf4ff;color:#306bdd}
