/*
 * [masti_dashboard] on the front end. dashboard.css styles the dashboard itself;
 * this file makes it a full-width dark band inside any theme and resets theme
 * typography that would otherwise leak in (headings, paragraphs, links, forms).
 */
/* Full-width band, whatever content width or layout margins the theme uses. */
html:has(.masti-dashboard-shell) body { overflow-x: clip; }
body .masti-dashboard-shell {
    position: relative;
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 calc(50% - 50vw) !important;
    padding: 0;
    background: #0b0b09;
    color: #f6f0e5;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 13px;
    line-height: 1.5;
    text-align: left;
}
.masti-dashboard-shell *, .masti-dashboard-shell *::before, .masti-dashboard-shell *::after { box-sizing: border-box; }

/* Theme resets (body-level selectors beat typical `.entry-content p` rules). */
body .masti-dashboard-shell :is(p, a, label, span, small, strong, dt, dd, th, td, li, button, input, select) { font-family: inherit; letter-spacing: normal; text-transform: none; }
body .masti-dashboard-shell :is(p, dl, dt, dd, ul, ol, li, figure, form, fieldset, table) { margin: 0; }
body .masti-dashboard-shell :is(p, label, dt, dd, td, th, li) { font-size: inherit; font-weight: inherit; line-height: inherit; color: inherit; }
body .masti-dashboard-shell :is(ul, ol) { padding: 0; list-style: none; }
body .masti-dashboard-shell a { color: inherit; text-decoration: none; box-shadow: none; }
body .masti-dashboard-shell a:hover { color: #ddbf7a; }
body .masti-dashboard-shell table { width: 100%; border: 0; background: none; }
body .masti-dashboard-shell :is(th, td) { border-left: 0; border-right: 0; background: none; }
body .masti-dashboard-shell :is(h1, h2, h3) { color: #f6f0e5; font-family: Georgia, "Times New Roman", serif; font-weight: 400; text-transform: none; letter-spacing: -.02em; }
body .masti-dashboard-shell .md-eyebrow { font-size: 9px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: #c9a45c; }
body .masti-dashboard-shell .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* Dashboard frame on the front end (in wp-admin it is offset for the admin menu). */
.masti-dashboard.masti-dashboard--front { margin: 0 auto; min-height: 0; max-width: 1480px; padding-bottom: 56px; }
.masti-dashboard--front .md-topbar { padding-left: 32px; padding-right: 32px; }

/* Form controls: themes often restyle inputs, selects and buttons. */
body .masti-dashboard-shell :is(input[type=search], input[type=text], input[type=date], input[type=password], input[type=email], select) {
    width: auto; min-height: 38px; margin: 0; padding: 6px 12px;
    border: 1px solid rgba(201, 164, 92, .38); border-radius: 10px;
    background: #0f0e0b; color: #f6f0e5; font-size: 13px; line-height: 1.4; box-shadow: none;
}
body .masti-dashboard-shell select {
    -webkit-appearance: none; appearance: none; padding-right: 36px; cursor: pointer;
    background: #0f0e0b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23c9a45c' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center / 12px 8px;
}
body .masti-dashboard-shell select option { background: #17150f; color: #f6f0e5; }
body .masti-dashboard-shell input[type=date] { color-scheme: dark; }
body .masti-dashboard-shell :is(input, select):focus { border-color: #c9a45c; outline: none; box-shadow: 0 0 0 1px #c9a45c; }
body .masti-dashboard-shell button { font: inherit; }

/* Sign-in and no-access cards. */
.md-login { max-width: 440px; margin: 0 auto; padding: 72px 24px 88px; }
body .masti-dashboard-shell .md-login h2 { margin: 6px 0 8px; font-size: 34px; }
body .masti-dashboard-shell .md-login .md-intro { margin: 0 0 26px; color: #8f8a80; }
.md-login form { display: grid; gap: 14px; padding: 24px; border: 1px solid rgba(201, 164, 92, .18); border-radius: 18px; background: #17150f; }
.md-login form p { display: grid; gap: 6px; }
body .masti-dashboard-shell .md-login label { color: #8f8a80; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
body .masti-dashboard-shell .md-login :is(input[type=text], input[type=password]) { width: 100%; min-height: 44px; }
body .masti-dashboard-shell .md-login .login-remember label { display: inline-flex; align-items: center; gap: 8px; letter-spacing: .06em; }
body .masti-dashboard-shell .md-login input[type=checkbox] { margin: 0; accent-color: #c9a45c; }
body .masti-dashboard-shell .md-login :is(input[type=submit], .md-button) {
    display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 46px; padding: 0 20px;
    border: 1px solid #c9a45c; border-radius: 999px; background: #c9a45c; color: #0b0b09;
    font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; cursor: pointer;
}
body .masti-dashboard-shell .md-login .md-button { width: auto; }
body .masti-dashboard-shell .md-login input[type=submit]:hover { background: #ddbf7a; }

@media (max-width: 782px) {
    .masti-dashboard--front .md-topbar, .masti-dashboard--front .md-hero { padding-left: 16px; padding-right: 16px; }
    .masti-dashboard--front .md-toolbar { margin-left: 16px; margin-right: 16px; }
    body .masti-dashboard-shell select { max-width: 100%; }
    .md-status-form select { min-width: 0 !important; width: 100% !important; }
}
@media print {
    body .masti-dashboard-shell { width: auto !important; max-width: none !important; margin: 0 !important; background: #fff; }
}

/* On the "No Header or Footer" page template the dashboard fills the window. */
body.masti-blank:has(.masti-dashboard-shell) { margin: 0; background: #0b0b09; }
body.masti-blank .masti-dashboard-shell { min-height: 100vh; }
.md-login-error { margin: 0 0 18px; padding: 12px 14px; border: 1px solid rgba(230, 120, 110, .45); border-radius: 12px; background: rgba(200, 80, 70, .12); color: #f1c2bc; font-size: 13px; line-height: 1.5; }
