/* MM Ops standalone shell, plus the WordPress-admin classes the screens use (wrap, notice, widefat, button, nav-tab…). */

:root {
	--ink: #1d2327;
	--muted: #50575e;
	--line: #c3c4c7;
	--soft: #f0f0f1;
	--bg: #f6f7f7;
	--card: #fff;
	--accent: #0072b2;
	--accent-dark: #005a8c;
	--nav: #1d2327;
	--nav-ink: #e8eaeb;
	--ok: #00a32a;
	--warn: #b26200;
	--err: #b32d2e;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
code { background: var(--soft); padding: 1px 5px; border-radius: 3px; font-size: 13px; }
h1 { font-size: 23px; font-weight: 500; margin: 0 0 8px; }
h2 { font-size: 18px; font-weight: 600; margin: 12px 0 8px; }
h3 { font-size: 15px; font-weight: 600; margin: 12px 0 6px; }
input, select, textarea, button { font: inherit; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=month], input[type=search], input[type=file], select, textarea {
	border: 1px solid #8c8f94; border-radius: 4px; padding: 5px 8px; background: #fff; color: var(--ink); min-height: 32px; max-width: 100%;
}
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* ---------------------------------------------------------------- shell */
.mmops-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 16px; background: var(--nav); color: var(--nav-ink); }
.mmops-brand { color: #fff; font-weight: 700; font-size: 16px; text-decoration: none; letter-spacing: .02em; }
.mmops-brand:hover { color: #fff; }
.mmops-user { margin-left: auto; display: flex; align-items: center; gap: 16px; font-size: 13px; }
.mmops-user a { color: var(--nav-ink); text-decoration: none; }
.mmops-user a:hover { color: #fff; text-decoration: underline; }
.mmops-user small { color: #a7aaad; margin-left: 4px; }
.mmops-burger { display: none; background: none; border: 0; color: #fff; font-size: 22px; cursor: pointer; padding: 4px 8px; }
.mmops-shell { display: flex; min-height: calc(100vh - 48px); }
.mmops-nav { flex: 0 0 200px; background: #2c3338; padding: 8px 0; }
.mmops-nav ul { list-style: none; margin: 0; padding: 0; }
.mmops-nav ul + ul { margin-top: 12px; padding-top: 12px; border-top: 1px solid #3c434a; }
.mmops-nav a { display: block; padding: 8px 16px; color: var(--nav-ink); text-decoration: none; border-left: 4px solid transparent; }
.mmops-nav a:hover { background: #3c434a; color: #fff; }
.mmops-nav a.current { background: var(--accent); color: #fff; border-left-color: #8fd3ff; font-weight: 600; }
.mmops-main { flex: 1; min-width: 0; padding: 16px 24px 48px; }

/* ---------------------------------------------------------------- WordPress admin look-alikes */
.wrap { max-width: 1600px; }
.wp-heading-inline { display: inline-block; margin-right: 8px; }
.wp-header-end { border: 0; margin: 4px 0 12px; }
.page-title-action, .button {
	display: inline-flex; align-items: center; gap: 4px; min-height: 30px; padding: 0 12px; border: 1px solid var(--accent); border-radius: 4px;
	background: #f6f7f7; color: var(--accent); font-size: 13px; line-height: 2; text-decoration: none; cursor: pointer; white-space: nowrap; vertical-align: middle;
}
.page-title-action { margin: 0 4px 4px 0; position: relative; top: -3px; }
.button:hover, .page-title-action:hover { background: #f0f6fc; border-color: var(--accent-dark); color: var(--accent-dark); }
.button-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.button-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.button-small { min-height: 24px; padding: 0 8px; font-size: 12px; line-height: 1.8; }
.button-large { min-height: 36px; padding: 0 16px; font-size: 14px; }
.button[disabled], .button:disabled { opacity: .5; cursor: default; }
.button-link { background: none; border: 0; color: var(--accent); text-decoration: underline; cursor: pointer; padding: 0; }
p.submit { margin: 16px 0; }
.description { color: var(--muted); font-size: 13px; }
.notice { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent); padding: 1px 12px; margin: 8px 0 14px; border-radius: 2px; box-shadow: 0 1px 1px rgba(0, 0, 0, .04); }
.notice p { margin: 8px 0; }
.notice-success, .updated { border-left-color: var(--ok); }
.notice-error, .error { border-left-color: var(--err); }
.notice-warning { border-left-color: #dba617; }
.notice-info { border-left-color: #72aee6; }
.notice.inline { display: block; }
.widefat { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); margin: 8px 0; }
.widefat th, .widefat td { padding: 7px 10px; text-align: left; border-bottom: 1px solid #e2e4e7; vertical-align: top; }
.widefat thead th, .widefat tfoot th { font-weight: 600; background: #fff; border-bottom: 1px solid var(--line); }
.striped > tbody > :nth-child(odd) { background: #f6f7f7; }
.form-table { border-collapse: collapse; width: 100%; max-width: 900px; }
.form-table th { width: 260px; text-align: left; padding: 14px 10px 14px 0; vertical-align: top; font-weight: 600; }
.form-table td { padding: 10px 0; }
.nav-tab-wrapper { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); margin: 8px 0 14px; }
.nav-tab { padding: 6px 12px; border: 1px solid var(--line); border-bottom: 0; background: #e8e8e8; color: var(--ink); text-decoration: none; border-radius: 4px 4px 0 0; margin-bottom: -1px; }
.nav-tab:hover { background: #fff; }
.nav-tab-active, .nav-tab-active:hover { background: var(--bg); border-bottom: 1px solid var(--bg); font-weight: 600; }
.tablenav { margin: 8px 0; display: flex; justify-content: flex-end; }
.tablenav-pages { display: flex; flex-wrap: wrap; gap: 4px; }
.page-numbers { display: inline-block; min-width: 30px; padding: 3px 8px; text-align: center; border: 1px solid var(--line); border-radius: 3px; background: #fff; text-decoration: none; }
.page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }
.page-numbers.dots { border: 0; background: none; }
.mmops-ok { color: var(--ok); font-weight: 700; }
.mmops-warn { color: var(--warn); font-weight: 700; }
.mmops-secret { display: inline-block; font-size: 16px; letter-spacing: .08em; margin: 6px 0; padding: 4px 8px; }

/* ---------------------------------------------------------------- sign-in / installer */
.mmops-auth { display: flex; min-height: 100vh; align-items: flex-start; justify-content: center; padding: 8vh 16px 32px; }
.mmops-auth-box { width: 100%; max-width: 400px; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 24px; box-shadow: 0 1px 3px rgba(0, 0, 0, .06); }
.mmops-auth-brand { font-weight: 800; color: var(--accent); letter-spacing: .03em; margin-bottom: 8px; }
.mmops-auth-form label { display: block; margin: 0 0 12px; }
.mmops-auth-form label span { display: block; font-weight: 600; margin-bottom: 4px; }
.mmops-auth-form input { width: 100%; }
.mmops-auth-form .button-primary { width: 100%; justify-content: center; margin-top: 4px; }
.mmops-auth-form .button-link { display: block; margin: 12px auto 0; }

/* ---------------------------------------------------------------- small screens */
@media (max-width: 900px) {
	.mmops-burger { display: block; }
	.mmops-user-name { display: none; }
	.mmops-nav { position: fixed; top: 48px; left: 0; bottom: 0; width: 240px; z-index: 30; transform: translateX(-100%); transition: transform .2s; overflow-y: auto; }
	.mmops-nav.open { transform: none; box-shadow: 4px 0 16px rgba(0, 0, 0, .25); }
	.mmops-main { padding: 12px 16px 40px; }
	.widefat { display: block; overflow-x: auto; }
	.form-table th, .form-table td { display: block; width: auto; padding: 6px 0; }
}
@media print {
	.mmops-top, .mmops-nav, .mmops-filters, .mmops-dl, .page-title-action, p.submit { display: none !important; }
	.mmops-main { padding: 0; }
	body { background: #fff; }
}
