/*
 * Standalone baseline.
 *
 * The plugin's CSS was written to sit inside wp-admin, which supplied a
 * handful of base rules. This file provides only those, so dashboard-v2.css
 * / admin.css / import.css can be used byte-identical.
 *
 * Everything below is either a wp-admin rule the plugin relied on, or the
 * app bar that replaces the WordPress admin menu.
 */

/* ── wp-admin baseline ───────────────────────────────────────── */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: #f0f0f1;
    color: #3c434a;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", sans-serif;
    font-size: 13px;
    line-height: 1.4em;
}

/* wp-admin's content wrapper — the plugin templates all open with .wrap */
.wrap {
    margin: 10px 20px 0 2px;
    padding: 0 20px 40px;
    max-width: 100%;
}

/* wp-admin utility classes used by the templates */
.hidden {
    display: none !important;
}

.screen-reader-text {
    border: 0;
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* ── App bar (replaces the wp-admin menu + admin bar) ────────── */

.mf-appbar {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0 20px;
    height: 46px;
    background: #1d2327;
    color: #f0f0f1;
    position: sticky;
    top: 0;
    z-index: 9999;
}

.mf-appbar__brand {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.mf-appbar__nav {
    display: flex;
    gap: 4px;
    margin-right: auto;
}

.mf-appbar__nav a {
    color: #c3c4c7;
    text-decoration: none;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 4px;
    line-height: 1.6;
}

.mf-appbar__nav a:hover,
.mf-appbar__nav a:focus-visible {
    color: #72aee6;
    background: rgba(255, 255, 255, 0.06);
}

.mf-appbar__nav a.is-active {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.mf-appbar__logout {
    margin: 0;
}

.mf-appbar__logout button {
    background: none;
    border: 1px solid #4f5457;
    color: #c3c4c7;
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
}

.mf-appbar__logout button:hover {
    color: #fff;
    border-color: #8c8f94;
}

/* ── Login ───────────────────────────────────────────────────── */

.mf-login {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: #f0f0f1;
}

.mf-login__card {
    width: 100%;
    max-width: 360px;
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    padding: 32px 28px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.mf-login__title {
    margin: 0 0 4px;
    font-size: 20px;
    color: #1d2327;
}

.mf-login__sub {
    margin: 0 0 24px;
    font-size: 13px;
    color: #646970;
}

.mf-login__field {
    margin-bottom: 16px;
}

.mf-login__field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #1d2327;
}

.mf-login__field input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    color: #2c3338;
}

.mf-login__field input:focus {
    border-color: #2271b1;
    outline: 2px solid transparent;
    box-shadow: 0 0 0 1px #2271b1;
}

.mf-login__submit {
    width: 100%;
    padding: 10px 16px;
    background: #2271b1;
    border: 1px solid #2271b1;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
}

.mf-login__submit:hover {
    background: #135e96;
    border-color: #135e96;
}

.mf-login__error {
    margin: 0 0 16px;
    padding: 10px 12px;
    background: #fcf0f1;
    border-left: 4px solid #d63638;
    color: #8a2424;
    font-size: 13px;
    border-radius: 2px;
}

/* Horsepower chip on listing cards — tinted so it reads as a spec, not a tag. */
.mfv2-chip.mfa-chip--hp {
    background: var(--mf-lime-soft, #f6fae6);
    border-color: var(--mf-lime, #9ec825);
    color: var(--mf-green-dark, #005027);
    font-weight: 600;
}


/* ── Hide the dashboard intro header ─────────────────────────
 * "Intelligence d'achat Monfort" + the paragraph beneath it.
 * Removed in the standalone app only — the plugin template stays
 * byte-identical, so the WordPress side is unaffected.
 */
.mfv2 .mfv2-header {
    display: none;
}

/* The tabs sat under that header; give them back a little breathing room. */
.mfv2 .mfv2-tabs {
    margin-top: 4px;
}
