/* MBSC Rental /mgmt/ visual system V0.3.13 — business operations remain in Core. */
body.mpt-management-standalone{
 --rmg-blue:#142d45;--rmg-deep:#102338;--rmg-accent:#246b9e;
 --rmg-ink:#203246;--rmg-muted:#6d7b8b;--rmg-line:#e4e9ef;--rmg-bg:#f5f7fa;
 background:#f5f7fa;font-size:14px;color:#243548
}
body.mpt-management-standalone :focus-visible{outline:3px solid #4a96cb;outline-offset:3px}
.rmg-sidebar{background:linear-gradient(172deg,#172a3c 0%,#0f2031 100%);padding:20px 13px 16px}
.rmg-brand{padding:5px 8px 24px;gap:12px}
.rmg-brand-icon{background:#fcf5ed;color:#8d5a40;border-radius:12px;box-shadow:none;width:43px;height:43px}
.rmg-brand-icon .dashicons{font-size:24px;width:24px;height:24px}
.rmg-brand strong{font-weight:780;font-size:16px}
.rmg-brand small{color:#b3bac1;letter-spacing:.14em}
.rmg-menu-title{font-size:11px;color:#8fa2b4}
.rmg-nav a{border-radius:10px;color:#ccd5dc!important;font-weight:600;padding:11px 13px;gap:11px}
.rmg-nav a:hover{background:#ffffff17;color:white!important}
.rmg-nav a.is-active{background:#2b455b;color:#fff!important;box-shadow:inset 3px 0 #d3a788}
.rmg-nav .dashicons,.rmg-sidebar-bottom .dashicons{color:#bbcad7}
.rmg-mode-switch{background:#102333;border:1px solid #34475b;border-radius:12px;padding:4px}
.rmg-mode-switch a{color:#c6d1de;font-size:12px}
.rmg-mode-switch a.is-current{color:#2d3440;background:#f6ebe0;border-radius:8px}
.rmg-sidebar-bottom{border-top-color:#ffffff21}
.rmg-topbar{background:#fffefd;border-color:#e9ecf0;height:74px;box-shadow:0 1px 8px #1b2e4605}
.rmg-menu-search{border-radius:11px;background:#f8fafb;border-color:#e2e9f0}
.rmg-menu-search:focus-within{border-color:#a8becf;box-shadow:0 0 0 3px #bfd5e644}
.rmg-main{padding-bottom:68px}
.rmg-hero{border-radius:17px;background:linear-gradient(114deg,#253f55,#446173 75%,#79909a);padding:28px 34px;min-height:201px}
.rmg-hero:before{background:radial-gradient(circle at center,#f3e1cd1e,transparent 64%)}
.rmg-eyebrow{color:#dfc5ad;letter-spacing:.18em}
.rmg-hero h1{font-weight:780;letter-spacing:.035em}
.rmg-hero p{color:#e6edf2}
.rmg-hero-cta{border-radius:9px;background:#fff8f0;color:#5a493c!important;min-height:40px;align-items:center}
.rmg-hero-art{align-items:center;justify-content:center;opacity:.65}
.rmg-art-house{font-size:0;transform:none;color:#e5edf4;display:block}
.rmg-art-house svg{display:block;max-width:100%;height:auto;filter:drop-shadow(0 8px 16px #172e3980)}
.rmg-art-tag{color:#385a5d;background:#f4f1e4;border-radius:9px}
.rmg-section-heading{margin:22px 0 12px}
.rmg-section-heading h2{color:#273e51;font-size:17px}
.rmg-section-heading a{color:#876146!important}
.rmg-stat{border:1px solid #e5eaf0;border-radius:15px;box-shadow:0 5px 18px #29384a0a;padding:17px;min-height:138px;transition:box-shadow .2s,transform .2s}
.rmg-stat:hover,.rmg-quick a:hover{box-shadow:0 9px 27px #344f6b16;border-color:#c7d5e1}
.rmg-stat strong{color:#20394b;font-weight:780}
.rmg-stat small,.rmg-recent td a{color:#6c6f9b}
.rmg-stat-icon{width:37px;height:37px;border-radius:11px}
.rmg-stat-icon.blue{background:#eaf1fb;color:#3d6e9d}
.rmg-stat-icon.teal{background:#e5f3ec;color:#397f69}
.rmg-stat-icon.amber{background:#f8eddc;color:#a57a46}
.rmg-stat-icon.purple{background:#f0ebf6;color:#87709d}
.rmg-quick{gap:11px}
.rmg-quick a{background:#fffefa;border-radius:13px;min-height:96px;border:1px solid #e3e8ed;color:#334b5a!important}
.rmg-quick .dashicons{color:#a36f54;font-size:24px;width:24px;height:24px}
.rmg-quick strong{font-size:12px}
.rmg-recent{border-radius:15px;border-color:#e4e8ed;box-shadow:0 7px 22px #2e435107}
.rmg-recent th{background:#f5f6f8;color:#617489;font-weight:700}
.rmg-recent td{border-color:#edf0f2;color:#344658}
.rmg-status{border-radius:7px}
.rmg-empty{padding:34px 24px;text-align:center;color:#78838e;background:linear-gradient(130deg,#fffefa,#f9fafc)}
.rmg-workspace .mpt-card{border:1px solid #e4e9ee;border-radius:15px;box-shadow:0 7px 23px #293b4907;padding:24px}
.rmg-workspace .mpt-card h2{color:#293e4e;font-weight:740}
.rmg-workspace .mpt-note{background:#f5f8fb;border:1px solid #d9e8f1;border-left:3px solid #7496b5;border-radius:10px;color:#52677a}
.rmg-workspace .button,.rmg-workspace button.button{border:1px solid #d2dde6;background:#fffefa;color:#3b6385;border-radius:9px;min-height:37px;font-weight:620}
.rmg-workspace .button:hover{background:#f7f2ed;border-color:#b3bdc5}
.rmg-workspace .button-primary,.rmg-workspace button.button-primary{background:#335f7b;color:white!important;border-color:#335f7b}
.rmg-workspace .mpt-field input:not([type=file]),.rmg-workspace .mpt-field select,.rmg-workspace .mpt-field textarea,.rmg-workspace input:not([type=checkbox]):not([type=radio]),.rmg-workspace select,.rmg-workspace textarea{min-height:42px;border-color:#d5dfe7;border-radius:9px;background:#fffefa;padding:8px 11px}
.rmg-workspace textarea{min-height:93px}
.rmg-workspace .mpt-field input:focus,.rmg-workspace .mpt-field select:focus,.rmg-workspace .mpt-field textarea:focus{border-color:#769bb8;outline:2px solid #cedfec}
.rmg-workspace .mpt-table-scroll{border:1px solid #e4e9ef;border-radius:11px;overflow-x:auto}
.rmg-workspace table.widefat th{background:#f7f9fb;color:#5a7284;font-size:12px}
.rmg-workspace table.widefat td{color:#34495a}
.rmg-login{background:linear-gradient(125deg,#f4ede6,#ecf1f4)}
.rmg-login-brand{color:#2b4457}
.rmg-login-box{border-color:#e3e7e9;box-shadow:0 24px 64px #172f401c;border-radius:20px}
.rmg-login-icon{background:#344e62;border-radius:13px}
.rmg-login-box #wp-submit{background:#344e62;border-radius:9px;min-height:43px}
.rmg-login-box a{color:#6c5a4b}
.rmg-test-bar{background:#fff7e9;border-color:#ead5aa;color:#685739}
.rmg-mode-explain{background:#edf6f2;border-color:#c7e1d4;color:#366353}
@media(max-width:820px){.rmg-sidebar{box-shadow:8px 0 25px #0f1d2c35}.rmg-main{padding:18px 14px 52px}.rmg-hero{padding:24px}.rmg-hero-art{display:none}}
@media(max-width:520px){
 .rmg-topbar{height:65px}
 .rmg-hero{border-radius:14px;min-height:170px}
 .rmg-hero h1{font-size:22px}
 .rmg-hero p{font-size:12px}
 .rmg-stats{gap:9px}
 .rmg-stat{min-height:124px;padding:14px;border-radius:12px}
 .rmg-quick{grid-template-columns:repeat(2,minmax(0,1fr))}
 .rmg-quick a{min-height:84px}
 .rmg-workspace .mpt-card{padding:17px;border-radius:13px}
 .rmg-workspace .mpt-form-grid{grid-template-columns:1fr}
 .rmg-section-heading{margin-top:18px}
}
@media(prefers-reduced-motion:reduce){.rmg-stat,.rmg-quick a{transition:none!important;transform:none!important}}

/* 0.3.14: allow an already authenticated technical user to switch accounts. */
.rmg-login-box .rmg-account-switch{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;padding:12px 16px;border-radius:12px;background:#175682;color:#fff;text-decoration:none;font-weight:700;margin:18px 0 8px;}
.rmg-login-box .rmg-account-switch:hover,.rmg-login-box .rmg-account-switch:focus-visible{background:#0e4268;color:#fff;outline-offset:3px;}
.rmg-login-box .rmg-switch-help{font-size:12px;line-height:1.65;color:#677b88;}

/* 0.3.15 Organization workspace */
.mpt-org-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:14px;margin-top:16px}
.mpt-org-member{border:1px solid #e5eaf1;border-radius:16px;background:#fff;padding:18px;min-width:0}
.mpt-org-member-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.mpt-org-member-top strong{font-size:18px;color:#203347}
.mpt-org-member-top span{font-size:12px;padding:4px 8px;background:#f2f5f8;border-radius:20px}
.mpt-org-fields{display:grid;grid-template-columns:1fr;gap:10px;margin:12px 0}
.mpt-org-fields label{display:grid;gap:5px;font-weight:600;font-size:13px}
.mpt-org-fields input[type=text],.mpt-org-fields select{width:100%;min-height:42px;border-radius:8px;border:1px solid #cdd6df;padding:8px}
.mpt-org-fields .mpt-org-check{display:flex;align-items:center;gap:8px}
@media(max-width:680px){.mpt-org-member{padding:14px}.mpt-org-grid{grid-template-columns:1fr}}

/* V0.3.16: native-branded management login and account recovery */
.rmg-front-form{display:grid;gap:14px;margin:17px 0 8px}
.rmg-front-form label{display:grid;gap:7px;font-size:13px;font-weight:650;color:#364b5f}
.rmg-front-form input:not([type=checkbox]){width:100%;box-sizing:border-box;min-height:45px;padding:10px 12px;border:1px solid #cbd9e8;border-radius:9px;background:#fff;color:#203344;font:inherit}
.rmg-front-form input:focus-visible{outline:2px solid #8ca9c0;outline-offset:1px}
.rmg-front-form label.rmg-remember{display:flex;align-items:center;gap:7px;font-weight:500}
.rmg-front-form .rmg-remember input{height:16px;width:16px;margin:0}
.rmg-auth-submit{width:100%;border:0;border-radius:9px;min-height:45px;background:#344e62;color:#fff;cursor:pointer;font-weight:730;font-size:14px}
.rmg-auth-submit:hover{background:#233b50}
.rmg-auth-notice{padding:11px 13px;background:#f8f1e6;border:1px solid #ead6b8;border-radius:9px;color:#6d4c38!important}
.rmg-sidebar-signout{padding:0;margin:0}
.rmg-sidebar-signout button{display:flex;align-items:center;gap:8px;width:100%;background:transparent;border:0;color:#d6e2ea;padding:9px 12px;font-size:12px;cursor:pointer;text-align:left;border-radius:8px}
.rmg-sidebar-signout button:hover{background:#ffffff17}

/* 0.3.17: Organization titles and external supervisor onboarding. */
.mpt-job-add{display:flex;align-items:end;flex-wrap:wrap;gap:10px;margin:14px 0}
.mpt-job-add label{display:grid;gap:6px;min-width:min(100%,260px);font-weight:600}
.mpt-job-add input{min-height:42px;border-radius:9px;border:1px solid #cbd5de;padding:8px 12px}
.mpt-job-tags{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.mpt-job-tags form{display:flex;align-items:center;gap:8px;border:1px solid #e1e8ef;padding:6px 7px 6px 12px;border-radius:30px;background:#fff}
.mpt-job-tags form span{font-size:13px;font-weight:600}
.mpt-job-tags .button{min-height:28px;padding:0 10px;line-height:26px}
.mpt-org-manager-toggle{display:inline-flex;align-items:flex-start;gap:10px;margin:16px 0 3px;line-height:1.6;font-weight:600}

/* V0.4.2: expiring credentials — manager scope and once-daily accessible modal */
.rmg-cert-dashboard{background:#fffcf7;border:1px solid #eadcc7;border-left:4px solid #bc8c51;border-radius:14px;padding:18px 20px;margin:0 0 22px;color:#394b5b;box-shadow:0 3px 15px #23324308}
.rmg-cert-dashboard-title{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:10px}
.rmg-cert-dashboard-title .dashicons{color:#ae7843}
.rmg-cert-dashboard-title h2{margin:0;font-size:17px;color:#2c3d4d}
.rmg-cert-dashboard-title a{margin-left:auto;font-size:13px;color:#376483;text-decoration:none}
.rmg-cert-dashboard-title a:hover{text-decoration:underline}
.rmg-cert-line{display:flex;flex-wrap:wrap;gap:6px 14px;align-items:center;padding:11px 12px;background:#fff;border:1px solid #efe6d9;border-radius:9px;margin:8px 0;font-size:13px}
.rmg-cert-line strong{color:#31485a}
.rmg-cert-line span:last-child{color:#7a6043}
.rmg-cert-line.is-overdue{border-color:#eab5a9;background:#fff6f3}
.rmg-cert-line.is-overdue span{color:#a44231}
.rmg-cert-none{color:#697b89;font-size:13px;margin:9px 0}
.rmg-cert-team{border-top:1px solid #eee2d2;margin-top:12px;padding-top:12px}
.rmg-cert-team summary{cursor:pointer;font-weight:680;color:#455d6b}
.rmg-cert-team .rmg-cert-line{margin-left:10px}
.rmg-cert-email{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;padding-top:12px;border-top:1px solid #eee2d2;margin-top:15px}
.rmg-cert-email label{display:flex;align-items:center;gap:7px;font-size:13px;cursor:pointer}
.rmg-cert-email input{margin:0}
.rmg-cert-email button{background:#365e79;color:white;border:0;border-radius:8px;padding:8px 14px;cursor:pointer}
.rmg-cert-email small{flex-basis:100%;color:#72818e}
.rmg-cert-saved{padding:10px 14px;margin-bottom:14px;border:1px solid #b4d0b7;border-radius:8px;background:#edf8ee}
body.rmg-cert-modal-open{overflow:hidden}
.rmg-cert-modal-backdrop{position:fixed;inset:0;z-index:100000;background:#10243f9c;display:flex;justify-content:center;align-items:center;padding:20px;overflow-y:auto;box-sizing:border-box}
.rmg-cert-modal{box-sizing:border-box;width:min(100%,510px);max-height:min(90vh,820px);overflow:auto;background:#fff;border:1px solid #efe3d5;border-radius:20px;padding:30px;box-shadow:0 20px 72px #0d253b45;color:#314556}
.rmg-cert-modal h2{font-size:23px;line-height:1.4;margin:12px 0 8px;color:#203a50}
.rmg-cert-modal p{line-height:1.7;font-size:14px;color:#687886}
.rmg-cert-modal-icon{width:48px;height:48px;display:grid;place-items:center;background:#fff2df;border-radius:15px;color:#ae753c}
.rmg-cert-modal-icon .dashicons{font-size:27px;width:27px;height:27px}
.rmg-cert-modal-list{display:grid;gap:10px;margin:16px 0}
.rmg-cert-modal-item{display:grid;gap:5px;background:#f9fafb;border:1px solid #e1e8ef;border-radius:12px;padding:13px 15px}
.rmg-cert-modal-item strong{color:#203d51;font-size:15px}
.rmg-cert-modal-item span{color:#8a5b36;font-weight:650}
.rmg-cert-modal-item small{color:#647687}
.rmg-cert-modal-item.is-overdue{background:#fff5f2;border-color:#efbdb5}
.rmg-cert-modal-hint{font-size:12px!important;margin:12px 0 16px}
.rmg-cert-modal-actions{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap}
.rmg-cert-modal-actions button,.rmg-cert-modal-actions a{min-height:43px;min-width:112px;padding:10px 16px;box-sizing:border-box;border-radius:10px;text-align:center;cursor:pointer;font-weight:700;font-size:13px;text-decoration:none;line-height:23px}
.rmg-cert-modal-actions button{background:#fff;border:1px solid #cad6df;color:#4e6778}
.rmg-cert-modal-actions a{background:#325d79;color:#fff!important;border:1px solid #325d79}
.rmg-cert-modal-actions button:focus-visible,.rmg-cert-modal-actions a:focus-visible{outline:3px solid #4b90c8;outline-offset:3px}
@media(max-width:600px){.rmg-cert-dashboard{padding:14px}.rmg-cert-dashboard-title a{width:100%;margin:0}.rmg-cert-modal{padding:22px 18px;border-radius:15px}.rmg-cert-modal-actions>*{flex:1}.rmg-cert-modal-backdrop{align-items:center;padding:12px}}

/* V0.4.3 — branded LINE Login with password fallback */
.mpt-line-main-btn{display:flex;align-items:center;justify-content:center;gap:13px;width:100%;min-height:53px;padding:10px 16px;margin:15px 0 6px;border-radius:12px;background:#06c755;color:#fff!important;font-size:17px;font-weight:800;text-decoration:none;transition:background .15s ease}
.mpt-line-main-btn:hover,.mpt-line-main-btn:focus-visible{background:#04a947;color:#fff!important}
.mpt-line-icon{display:grid;place-items:center;background:white;color:#06c755;min-width:44px;height:29px;border-radius:13px;font-size:12px;font-weight:950;letter-spacing:-.08em;position:relative}
.mpt-line-icon::after{content:'';position:absolute;bottom:-4px;left:12px;border-width:5px 5px 0 0;border-style:solid;border-color:#fff transparent transparent transparent}
.mpt-line-divider{display:flex;align-items:center;gap:11px;text-align:center;color:#7d8790;font-size:12px;margin:16px 0 12px}
.mpt-line-divider:before,.mpt-line-divider:after{content:'';height:1px;background:#e1e5e8;flex:1}
.rmg-login-box .mpt-line-first{font-size:12px;line-height:1.5;margin:0 0 12px;color:#607482}
.mpt-line-settings code{display:inline-block;overflow-wrap:anywhere;white-space:normal;max-width:100%}
.mpt-line-settings input[type=text],.mpt-line-settings input[type=password]{width:min(490px,100%);min-height:42px}
.mpt-line-settings form{margin-top:16px}.mpt-line-settings label{font-weight:600}
.mpt-line-profile{margin-bottom:20px}.mpt-line-profile form{margin-top:14px}

/* 0.4.10: agent public company catalogue without exposing private cases. */
.rmg-inventory-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:4px 0 14px}
.rmg-inventory-tabs a{padding:9px 14px;border:1px solid #d5d9df;border-radius:999px;background:#fff;color:#46515d;text-decoration:none;font-size:14px;font-weight:600}
.rmg-inventory-tabs a.active{background:#25364a;border-color:#25364a;color:#fff}
.rmg-inventory-table{margin-bottom:28px}

.rmg-inventory-pager{display:flex;align-items:center;gap:14px;justify-content:flex-end;margin:-16px 0 24px;font-size:13px}
.rmg-inventory-pager a{border:1px solid #cfd6dd;border-radius:6px;padding:6px 10px;color:#364152;text-decoration:none;background:#fff}
