/* MIDAN — restrained operations dashboard skin. No gradients, no decorative AI-style effects. */
:root{
  --m-navy:#102f42;
  --m-navy-2:#173d52;
  --m-teal:#0f766e;
  --m-teal-2:#0b625c;
  --m-ink:#122f40;
  --m-ink-2:#29495a;
  --m-muted:#526a78;
  --m-line:#d5e0e5;
  --m-soft:#f5f8f9;
  --m-page:#edf1f3;
  --m-white:#ffffff;
  --m-danger:#a63f3b;
}
html,body,#app{min-height:100%}
body{margin:0;background:var(--m-page)!important;color:var(--m-ink)!important;font-family:"Segoe UI",Tahoma,Arial,sans-serif!important;font-size:14px!important;font-weight:650!important;letter-spacing:0!important}
*{box-sizing:border-box}
h1,h2,h3,h4,strong,b{color:var(--m-ink)!important;font-weight:900!important}
h1{font-size:30px!important;line-height:1.25!important;letter-spacing:-.35px!important}
h2{font-size:19px!important;line-height:1.45!important}
h3{font-size:15px!important}
p,small,.helper,.muted{font-weight:650!important}.helper,.muted{color:var(--m-muted)!important;line-height:1.8!important}
label{color:#244457!important;font-weight:850!important;font-size:13px!important}
input,select,textarea{background:#fff!important;color:#173749!important;border:1px solid #c7d4da!important;border-radius:8px!important;box-shadow:none!important;font:700 13px/1.5 inherit!important;min-height:42px!important}
input::placeholder,textarea::placeholder{color:#7e929e!important;font-weight:600!important}
input:focus,select:focus,textarea:focus{outline:3px solid rgba(15,118,110,.12)!important;border-color:var(--m-teal)!important;box-shadow:none!important}
button{background:var(--m-teal)!important;color:#fff!important;border:1px solid var(--m-teal)!important;border-radius:8px!important;box-shadow:none!important;font-weight:850!important;transition:background-color .14s ease,border-color .14s ease!important}
button:hover:not(:disabled){background:var(--m-teal-2)!important;border-color:var(--m-teal-2)!important;transform:none!important;box-shadow:none!important}
button:disabled{opacity:.55!important}
.secondary{background:#fff!important;color:#29495a!important;border-color:#c9d6dc!important}.secondary:hover:not(:disabled){background:#f2f5f6!important;color:#1b3d4f!important;border-color:#bacbd3!important}
.text-button{background:#eff8f6!important;color:#0d6c65!important;border:1px solid #c9e1dc!important}.text-button:hover:not(:disabled){background:#e2f2ee!important;color:#095c56!important}
.danger-link{background:#fff!important;color:var(--m-danger)!important;border:1px solid #ebcecc!important}.danger-link:hover:not(:disabled){background:#fff0ef!important;color:#923632!important}
.card{background:#fff!important;border:1px solid var(--m-line)!important;border-radius:12px!important;box-shadow:0 3px 12px rgba(16,47,66,.045)!important;padding:24px!important}

/* Shell */
.sidebar{width:240px!important;background:var(--m-navy)!important;border:0!important;box-shadow:none!important;padding:28px 18px 20px!important}
.sidebar .identity,.sidebar .brand{margin:0 10px 38px!important}
.sidebar .identity-type,.sidebar .brand{color:#fff!important;font-weight:900!important}.sidebar .identity-type small,.sidebar .identity-sub,.sidebar .brand small{color:#91a8b6!important;font-weight:650!important}
.nav-label{color:#7e99a9!important;font-size:10px!important;font-weight:900!important;letter-spacing:.4px!important;padding:0 14px!important;margin-bottom:10px!important}
nav{gap:5px!important}nav button{min-height:45px!important;padding:11px 14px!important;border:1px solid transparent!important;border-radius:9px!important;background:transparent!important;color:#b9c9d2!important;font-size:13px!important;font-weight:750!important;box-shadow:none!important}
nav button:hover{background:#173d52!important;color:#fff!important;border-color:#173d52!important}nav button.active{background:#1a4659!important;color:#fff!important;border-color:#28586a!important;box-shadow:inset -3px 0 #28b7a5!important;font-weight:900!important}
.sidebar-note{color:#71c7b8!important;font-weight:800!important}.sidebar-note p{color:#91a8b6!important}.user-card{border-color:#28495c!important}.user-card strong{color:#fff!important}.user-card small{color:#91a8b6!important}.avatar{background:#1d4a5e!important;color:#c5f2e9!important;font-weight:900!important}.logout{background:transparent!important;color:#a6b9c4!important;border-color:transparent!important}.logout:hover{background:#173d52!important;color:#fff!important}
.main-area{margin-right:240px!important}.topbar{height:66px!important;background:#fff!important;border-color:#dae4e8!important;box-shadow:0 1px 0 rgba(16,47,66,.03)!important;padding:0 40px!important}.breadcrumb{color:var(--m-teal)!important;font-weight:900!important}.top-label{color:#4f6b7a!important;font-weight:800!important}

/* Main layout */
.content{max-width:1520px!important;margin:0 auto!important;padding:32px 40px 48px!important;background:transparent!important;text-align:right!important}
.content h1,.content h2,.content h3,.content label,.content input,.content select,.content textarea,.content table{text-align:right!important}
.content .page-heading{display:flex!important;flex-direction:row!important;align-items:flex-end!important;justify-content:space-between!important;gap:24px!important;margin-bottom:23px!important;text-align:right!important}.page-heading>div:first-child{max-width:760px!important}.page-heading p{font-size:12.5px!important;line-height:1.8!important}.eyebrow{color:var(--m-teal)!important;font-size:10px!important;font-weight:900!important;margin-bottom:5px!important}
.content .heading-actions{justify-content:flex-end!important}.filters{justify-content:flex-start!important;gap:14px!important;padding:11px 14px!important;margin-bottom:22px!important;border:1px solid var(--m-line)!important;border-radius:11px!important;background:#fff!important;box-shadow:none!important}.filters label{font-size:11px!important}.refresh{margin-right:0!important;margin-inline-start:auto!important}
.content .tabs{display:inline-flex!important;width:auto!important;max-width:100%!important;gap:4px!important;justify-content:flex-start!important;padding:5px!important;margin:0 0 20px!important;background:#e4eaed!important;border:1px solid #d3dde2!important;border-radius:11px!important}.tabs button{min-height:38px!important;padding:8px 13px!important;background:transparent!important;color:#3c5868!important;border:0!important;border-radius:7px!important;font-size:12px!important;font-weight:850!important}.tabs button:hover{background:#f8fafb!important;color:#17384b!important}.tabs button.selected,.tabs button.selected:hover{background:var(--m-navy)!important;color:#fff!important;box-shadow:0 1px 2px rgba(16,47,66,.14)!important}

/* Settings: editor + register */
.two-cols.settings{display:grid!important;grid-template-columns:minmax(335px,.72fr) minmax(0,1.55fr)!important;gap:22px!important;align-items:start!important}.two-cols.settings>section{width:auto!important;min-width:0!important}.settings .card{margin-bottom:0!important}.settings form{margin-top:18px!important}.settings .form-actions{justify-content:flex-start!important;border-top:1px solid #e1e9ed!important;padding-top:18px!important;margin-top:22px!important;gap:9px!important}.content .check{justify-content:flex-start!important;text-align:right!important;font-weight:750!important}.narrow,.team-picker{margin-right:0!important;margin-left:0!important}

/* Tables */
.table-wrap{border-radius:10px!important}.data-register{border:1px solid var(--m-line)!important;border-radius:10px!important;background:#fff!important;box-shadow:none!important;margin:15px 0 20px!important;overflow:auto!important}.data-register table{width:100%!important;font-size:13px!important;text-align:right!important;border-collapse:collapse!important}.data-register thead th,th{padding:14px 13px!important;background:#17384b!important;color:#fff!important;border-color:#17384b!important;font-size:12.5px!important;font-weight:900!important;text-align:right!important;letter-spacing:0!important}.data-register tbody td,td{padding:14px 13px!important;border-bottom:1px solid #e1e8ec!important;color:#1f3d4e!important;font-weight:750!important;text-align:right!important;line-height:1.65!important}.data-register tbody tr:nth-child(even){background:#f6f8f9!important}.data-register tbody tr:hover{background:#edf5f3!important}.data-register td:first-child{color:#526d7c!important;font-weight:900!important}.data-register .row-actions{white-space:nowrap!important;text-align:center!important}.row-actions{display:flex!important;justify-content:center!important;align-items:center!important;gap:6px!important;flex-wrap:wrap!important}.row-actions button{padding:8px 10px!important;font-size:12px!important;font-weight:850!important}

/* Dashboard visual consistency */
.stats-grid{gap:14px!important}.stats-grid .stat{background:#fff!important;border:1px solid var(--m-line)!important;border-top:1px solid var(--m-line)!important;border-radius:11px!important;box-shadow:none!important;padding:20px!important}.stats-grid .stat:hover{transform:none!important;box-shadow:0 3px 12px rgba(16,47,66,.045)!important}.stat>span{color:#556f7e!important;font-size:11px!important;font-weight:800!important}.stat>strong{color:#123247!important;font-weight:900!important}.stat>small{color:#657d8b!important;font-weight:650!important}.stat i,.stat:nth-child(2) i,.stat:nth-child(3) i,.stat:nth-child(4) i{background:#e6f2ef!important;color:var(--m-teal)!important}.badge{border-radius:6px!important;font-weight:900!important}.green{background:#e3f3ee!important;color:#17644f!important}.yellow{background:#fff2d4!important;color:#815b13!important}.red{background:#f9e5e4!important;color:#9c3e3a!important}.neutral{background:#eaf0f3!important;color:#526d7c!important}.notice{background:#f2f7f6!important;border-color:#d9e7e3!important;color:#365966!important;font-weight:750!important}.success{background:#e1f3ed!important;color:#156447!important}.error{background:#f9e5e4!important;color:#9d3d39!important}

/* Admin account enhancement */
.midan-accounts-card{position:relative!important}.midan-accounts-toolbar{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:10px}.midan-accounts-toolbar h2{margin:0!important}.midan-accounts-toolbar p{margin:4px 0 0!important}.midan-show-passwords{display:inline-flex!important;align-items:center!important;gap:7px!important;white-space:nowrap!important;background:#17384b!important;border-color:#17384b!important}.midan-show-passwords:hover{background:#102f42!important;border-color:#102f42!important}.midan-show-passwords.is-active{background:#102f42!important}.midan-password-cell{min-width:220px!important}.midan-password-mask{letter-spacing:2px;color:#5e7481;font-weight:900}.midan-password-value{display:inline-block;padding:7px 9px;border:1px solid #c6dcd6;border-radius:7px;background:#f1f8f6;color:#113b37;font:800 12px/1.3 Consolas,"Courier New",monospace;direction:ltr;user-select:all}.midan-copy-pass{display:inline-flex!important;align-items:center!important;margin-inline-start:6px!important;padding:7px 9px!important;background:#fff!important;color:#0b665f!important;border-color:#c7d9dc!important;font-size:11px!important}.midan-copy-pass:hover{background:#edf6f4!important;color:#084f4a!important}.midan-pass-missing{color:#8a5b2a;font-size:11px;font-weight:800}.midan-pass-private{color:#607481;font-size:11px;font-weight:750}.midan-admin-edit{background:#eff8f6!important;color:#0d6c65!important;border-color:#c9e1dc!important}

/* Modal used for editing the administrator account */
.midan-modal-backdrop{position:fixed;inset:0;z-index:99999;display:grid;place-items:center;padding:20px;background:rgba(8,29,42,.58);backdrop-filter:blur(2px)}.midan-modal{width:min(520px,100%);background:#fff;border:1px solid #cbd8de;border-radius:14px;box-shadow:0 24px 80px rgba(7,28,41,.28);padding:24px;text-align:right}.midan-modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}.midan-modal-head h2{margin:0!important}.midan-modal-head p{margin:4px 0 0;color:#526a78;font-size:12px;font-weight:650}.midan-modal-close{min-width:36px!important;width:36px!important;height:36px!important;padding:0!important;background:#fff!important;color:#29495a!important;border-color:#cbd8de!important;font-size:20px!important;line-height:1!important}.midan-modal form{display:grid;gap:14px}.midan-modal label{display:grid;gap:7px}.midan-modal .midan-modal-actions{display:flex;gap:9px;justify-content:flex-start;border-top:1px solid #e2e9ed;padding-top:18px;margin-top:4px}.midan-modal-status{display:none;padding:10px 12px;border-radius:8px;font-size:12px;font-weight:800}.midan-modal-status.show{display:block}.midan-modal-status.error{background:#f9e5e4!important;color:#963b37!important}.midan-modal-status.success{background:#e2f2ed!important;color:#155f49!important}

/* Login: sober and brand-led */
.login-story{background:#102f42!important}.login-story:after{display:none!important}.login-form-wrap{background:#f4f6f8!important}.story-copy .eyebrow{color:#65cfbd!important}.story-copy p{color:#abc0cc!important}.story-line span{background:#30b6a2!important}.login-form h2{color:#123247!important}

@media(max-width:1100px){.two-cols.settings{grid-template-columns:1fr!important}.content{padding:28px 26px 44px!important}.midan-accounts-toolbar{align-items:stretch;flex-direction:column}.midan-show-passwords{justify-content:center!important;width:100%!important}}
@media(max-width:760px){.sidebar{width:min(84vw,285px)!important}.main-area{margin-right:0!important}.topbar{padding:0 16px!important}.content{padding:22px 14px 100px!important}.content .page-heading{align-items:flex-start!important;flex-direction:column!important}.content .heading-actions{width:100%!important;justify-content:flex-start!important;flex-wrap:wrap!important}.filters{overflow-x:auto!important}.content .tabs{display:flex!important;width:100%!important;overflow-x:auto!important;flex-wrap:nowrap!important}.tabs button{white-space:nowrap!important}.card{padding:18px!important}.data-register thead th,.data-register tbody td{padding:11px 10px!important}.midan-modal{padding:20px!important}.midan-modal-actions{flex-direction:column}.midan-modal-actions button{width:100%!important}.row-actions{gap:5px!important}}
