:root {
    color-scheme: light;
    --bg: #f4f1ed;
    --surface: #fffdf9;
    --surface-2: #f8faf7;
    --surface-3: #eef7f2;
    --ink: #17212b;
    --text: #31404f;
    --muted: #6b7a88;
    --faint: #9aa8b5;
    --line: #dfe5e6;
    --line-strong: #bdc9cc;
    --brand: #0aa6a6;
    --brand-dark: #087477;
    --brand-soft: #ddf7f5;
    --sky: #3c83f6;
    --sky-soft: #e5f0ff;
    --coral: #e85d75;
    --coral-soft: #fde9ee;
    --violet: #6d5ce8;
    --violet-soft: #ecebff;
    --amber: #bd7a16;
    --amber-soft: #fff2d7;
    --danger: #b42318;
    --danger-soft: #fee4e2;
    --nav: #203032;
    --nav-2: #283a3c;
    --shadow: 0 18px 48px rgba(32, 48, 50, 0.12);
    --shadow-soft: 0 8px 24px rgba(32, 48, 50, 0.08);
    --radius: 8px;
    --radius-sm: 6px;
    --focus: 0 0 0 3px rgba(24, 137, 119, 0.2);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg);
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        linear-gradient(90deg, rgba(23, 33, 43, 0.035) 1px, transparent 1px),
        linear-gradient(0deg, rgba(23, 33, 43, 0.03) 1px, transparent 1px),
        linear-gradient(180deg, #fbfaf7 0%, var(--bg) 54%, #eef5f1 100%);
    background-size: 42px 42px, 42px 42px, auto;
    color: var(--text);
    font-family: Inter, "Segoe UI", Roboto, Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.45;
}

a {
    color: var(--brand-dark);
    text-decoration: none;
    font-weight: 750;
}

a:hover {
    color: var(--brand);
    text-decoration: underline;
}

code {
    display: inline-block;
    padding: 2px 7px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: #f5f7f7;
    color: var(--ink);
    font-family: Consolas, "Liberation Mono", monospace;
    font-size: 0.92em;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 292px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 18px 14px;
    background: #101a1c;
    color: #f8faf9;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.brand {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    margin: 0 4px 18px;
    padding: 11px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.06);
}

.brand.large {
    margin-bottom: 24px;
}

.brand-mark {
    position: relative;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    border-radius: 12px;
    background:
        radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 26%),
        linear-gradient(135deg, #0b2b34 0%, #0aa6a6 46%, #6d5ce8 100%);
    color: white;
    font-weight: 900;
    box-shadow:
        0 12px 24px rgba(10, 166, 166, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.38);
    overflow: hidden;
}

.brand-mark::before {
    content: "";
    position: absolute;
    inset: 7px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 10px;
}

.benfet-mark {
    isolation: isolate;
}

.benfet-orbit {
    position: absolute;
    width: 58px;
    height: 22px;
    border: 2px solid rgba(255, 255, 255, 0.48);
    border-left-color: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    transform: rotate(-32deg);
}

.benfet-orbit::after {
    content: "";
    position: absolute;
    right: 5px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.95);
    transform: translateY(-50%);
}

.benfet-core {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    border-radius: 8px;
    background: rgba(8, 20, 28, 0.34);
    color: #ffffff;
    font-size: 24px;
    font-weight: 950;
    line-height: 1;
    transform: translateY(-1px);
}

.brand strong {
    display: block;
    color: white;
    font-size: 16px;
    letter-spacing: 0;
}

.brand small {
    display: block;
    margin-top: 2px;
    color: #bdd0d0;
    font-size: 12px;
}

.sidebar nav {
    display: grid;
    flex: 1 1 auto;
    gap: 8px;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 4px;
    scrollbar-color: rgba(255, 255, 255, 0.38) rgba(255, 255, 255, 0.08);
    scrollbar-width: thin;
}

.sidebar nav::-webkit-scrollbar {
    width: 10px;
}

.sidebar nav::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.07);
    border-radius: 999px;
}

.sidebar nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.34);
    border-radius: 999px;
    border: 2px solid #101a1c;
}

.nav-primary {
    display: grid;
    gap: 6px;
    margin: 0 2px 12px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
}

.sidebar nav a {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 39px;
    padding: 9px 11px 9px 14px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    color: #d7e5e4;
    font-weight: 750;
    isolation: isolate;
}

.sidebar nav a::before {
    content: "";
    width: 4px;
    align-self: stretch;
    margin: -4px 10px -4px 0;
    border-radius: 999px;
    background: transparent;
}

.sidebar nav a:hover {
    background: var(--nav-2);
    border-color: rgba(255, 255, 255, 0.12);
    color: white;
    text-decoration: none;
}

.sidebar nav a.active {
    background: #f8faf7;
    border-color: rgba(255, 255, 255, 0.32);
    color: #17212b;
    box-shadow:
        0 8px 18px rgba(0, 0, 0, 0.14),
        inset 0 0 0 1px rgba(255, 255, 255, 0.82);
    font-weight: 900;
}

.sidebar nav a.active::before {
    background: var(--nav-accent, var(--brand));
}

.sidebar nav a.active::after {
    content: "";
    position: absolute;
    right: 9px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--nav-accent, var(--brand));
    box-shadow: 0 0 0 4px rgba(10, 166, 166, 0.16);
    transform: translateY(-50%);
}

.nav-primary a {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.nav-primary a::before {
    background: #ffffff;
}

.nav-primary a.active::before {
    background: var(--brand);
}

.nav-section {
    display: grid;
    gap: 5px;
    margin: 12px 2px 0;
    padding: 8px 8px 10px;
    border: 1px solid var(--nav-border, rgba(255, 255, 255, 0.14));
    border-left: 10px solid var(--nav-accent, #ffffff);
    border-radius: var(--radius);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.nav-section.section-active {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.045)),
        var(--nav-section-bg, transparent);
    border-color: var(--nav-accent, rgba(255, 255, 255, 0.45));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        0 10px 24px rgba(0, 0, 0, 0.16);
}

.nav-section a {
    min-height: 36px;
    background: rgba(16, 26, 28, 0.24);
    border-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.nav-section a:hover {
    border-color: var(--nav-accent, rgba(255, 255, 255, 0.3));
    background: rgba(255, 255, 255, 0.12);
}

.nav-section a.active {
    background: #ffffff;
    color: #17212b;
    border-color: var(--nav-accent, #ffffff);
    padding-right: 28px;
}

.sidebar nav a:focus-visible,
.button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 0;
    box-shadow: var(--focus);
}

.nav-group {
    display: flex;
    align-items: center;
    min-height: 31px;
    margin: 0 0 4px;
    padding: 0 10px;
    border-radius: 5px;
    background: var(--nav-accent, #ffffff);
    color: var(--nav-ink, #122023);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.nav-group::before {
    content: "";
    width: 7px;
    height: 7px;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--nav-ink, #122023);
}

.nav-estructura {
    --nav-accent: #00c389;
    --nav-border: #00c389;
    --nav-ink: #06251d;
    background: #064333;
}

.nav-trabajo {
    --nav-accent: #4f8cff;
    --nav-border: #4f8cff;
    --nav-ink: #071a3d;
    background: #10356f;
}

.nav-almacen {
    --nav-accent: #ffbf2e;
    --nav-border: #ffbf2e;
    --nav-ink: #342000;
    background: #62420a;
}

.nav-compras {
    --nav-accent: #ff6b7a;
    --nav-border: #ff6b7a;
    --nav-ink: #3a050d;
    background: #65202b;
}

.nav-sistema {
    --nav-accent: #b38cff;
    --nav-border: #b38cff;
    --nav-ink: #1f0b43;
    background: #422875;
}

.nav-section .nav-group {
    color: var(--nav-ink, #122023);
}

.nav-section a::before {
    background: var(--nav-accent, rgba(255, 255, 255, 0.5));
    opacity: 0.45;
}

.nav-section a:hover::before,
.nav-section a.active::before {
    opacity: 1;
}

.main {
    min-height: 100vh;
    margin-left: 292px;
    padding: 24px;
}

.main-auth {
    min-height: 100vh;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    padding: 18px 20px;
    border: 1px solid rgba(223, 229, 230, 0.9);
    border-radius: var(--radius);
    background: rgba(255, 253, 249, 0.9);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(12px);
}

.topbar h1 {
    margin: 0;
    color: var(--ink);
    font-size: 26px;
    line-height: 1.15;
}

.topbar p {
    margin: 5px 0 0;
    color: var(--muted);
}

.topbar-actions {
    display: flex;
    gap: 10px;
}

.login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-box {
    width: min(450px, 100%);
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 253, 249, 0.96);
    box-shadow: var(--shadow);
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.kpi {
    min-height: 118px;
    padding: 16px;
    border: 1px solid var(--line);
    border-top: 4px solid var(--brand);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.kpi:nth-child(2) {
    border-top-color: var(--coral);
}

.kpi:nth-child(3) {
    border-top-color: var(--sky);
}

.kpi:nth-child(4) {
    border-top-color: var(--violet);
}

.kpi:nth-child(5) {
    border-top-color: var(--amber);
}

.kpi span {
    display: block;
    min-height: 36px;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.kpi strong {
    display: block;
    color: var(--ink);
    font-size: 33px;
    line-height: 1;
}

.kpi.danger {
    border-color: #f2c5c4;
    border-top-color: var(--coral);
    background: #fff9f7;
}

.kpi.danger strong {
    color: var(--danger);
}

.kpi.warning {
    border-color: #efd6a0;
    border-top-color: var(--amber);
    background: #fffaf0;
}

.kpi.warning strong {
    color: var(--amber);
}

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.toolbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.search {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.search input {
    min-width: 310px;
}

.panel {
    margin-bottom: 16px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 253, 249, 0.96);
    box-shadow: var(--shadow-soft);
}

.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.panel-heading h2 {
    margin: 0;
    color: var(--ink);
    font-size: 18px;
}

.panel-heading span {
    color: var(--muted);
    font-weight: 800;
}

.media-panel {
    margin-bottom: 16px;
}

.asset-photo {
    width: min(620px, 100%);
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.asset-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 9px;
    padding: 22px;
    color: var(--muted);
    background:
        linear-gradient(90deg, rgba(154, 168, 181, 0.18) 1px, transparent 1px),
        linear-gradient(0deg, rgba(154, 168, 181, 0.18) 1px, transparent 1px),
        #f8faf7;
    background-size: 26px 26px;
}

.placeholder-icon {
    position: relative;
    width: 96px;
    height: 72px;
    border: 3px solid #8da0a6;
    border-radius: var(--radius-sm);
    background: white;
}

.placeholder-icon::before {
    content: "";
    position: absolute;
    left: 13px;
    bottom: 13px;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    background: #cbd7d2;
    transform: rotate(45deg);
}

.placeholder-icon::after {
    content: "";
    position: absolute;
    right: 14px;
    top: 12px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #8da0a6;
}

.photo-placeholder strong {
    color: var(--ink);
    font-size: 16px;
}

.photo-placeholder small {
    color: var(--muted);
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
}

th,
td {
    padding: 12px 13px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th {
    background: #f1f5f2;
    color: #52636a;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
}

td {
    color: #263644;
}

tbody tr:hover {
    background: #f8faf7;
}

tbody tr:last-child td {
    border-bottom: 0;
}

.actions {
    white-space: nowrap;
}

.actions a,
.actions button {
    margin-right: 8px;
    font-weight: 800;
}

.inline-form {
    display: inline;
}

.inline-form button {
    border: 0;
    background: transparent;
    padding: 0;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.empty {
    padding: 30px;
    color: var(--muted);
    text-align: center;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 9px 13px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: #ffffff;
    color: #263644;
    cursor: pointer;
    font: inherit;
    font-weight: 850;
    box-shadow: 0 1px 0 rgba(23, 33, 43, 0.04);
}

.button:hover {
    border-color: #9caeb1;
    background: #f7faf8;
    color: var(--ink);
    text-decoration: none;
}

.button.primary {
    border-color: var(--brand);
    background: linear-gradient(135deg, var(--brand) 0%, #2f83d1 100%);
    color: white;
}

.button.primary:hover {
    border-color: var(--brand-dark);
    background: linear-gradient(135deg, var(--brand-dark) 0%, #2d69b4 100%);
    color: white;
}

.button.ghost {
    background: rgba(255, 255, 255, 0.58);
}

.button.danger {
    border-color: #f1b3ad;
    background: var(--danger-soft);
    color: var(--danger);
}

.danger-link {
    color: var(--danger);
}

.work-request-guide,
.work-flow-panel,
.work-conversation-panel {
    border-left: 4px solid var(--accent);
}

.work-request-guide ol {
    margin: 10px 0 0;
    padding-left: 20px;
    color: var(--muted);
}

.request-quality-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.request-quality-grid div,
.work-summary-box,
.conversation-message {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    padding: 12px;
}

.request-quality-grid span,
.work-summary-box span,
.conversation-message header span {
    color: var(--muted);
    display: block;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.request-quality-grid strong {
    display: block;
    margin-top: 6px;
    white-space: pre-wrap;
}

.work-summary-box {
    margin-top: 14px;
}

.conversation-list {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
}

.conversation-message header {
    align-items: baseline;
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.conversation-message p {
    margin-bottom: 0;
    white-space: pre-wrap;
}

.conversation-message.type-sistema {
    background: #eef8f6;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #eef3f0;
    color: #344850;
    font-size: 12px;
    font-weight: 900;
}

.priority-urgente,
.priority-alta {
    border-color: #efb8bb;
    background: var(--coral-soft);
    color: var(--danger);
}

.priority-media {
    border-color: #ecd39a;
    background: var(--amber-soft);
    color: #875407;
}

label {
    display: grid;
    gap: 7px;
    color: #344850;
    font-weight: 850;
}

input,
select,
textarea {
    width: 100%;
    min-height: 40px;
    border: 1px solid #c8d4d5;
    border-radius: var(--radius-sm);
    padding: 9px 11px;
    background: #ffffff;
    color: var(--ink);
    font: inherit;
}

input::placeholder,
textarea::placeholder {
    color: #9aa8b5;
}

input[type="file"] {
    min-height: 44px;
    padding: 8px;
    background: #f8faf7;
}

textarea {
    min-height: 112px;
    resize: vertical;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.full {
    grid-column: 1 / -1;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 6px;
}

.hierarchy-picker {
    padding: 16px;
    border: 1px solid #c9d8d5;
    border-left: 5px solid var(--brand);
    border-radius: var(--radius);
    background: var(--surface-3);
}

.hierarchy-picker h2 {
    margin: 0 0 6px;
    color: var(--ink);
    font-size: 16px;
}

.structure-assist {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(71, 132, 190, .28);
    border-radius: var(--radius-sm);
    background: rgba(234, 244, 255, .72);
    color: var(--ink);
}

.structure-assist[hidden] {
    display: none;
}

.structure-assist strong {
    flex: 0 0 auto;
    color: #24506f;
    font-size: 13px;
}

.structure-assist span {
    flex: 1 1 auto;
    min-width: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.structure-assist .button {
    flex: 0 0 auto;
    padding: 8px 10px;
    white-space: nowrap;
}

@media (max-width: 720px) {
    .structure-assist {
        align-items: flex-start;
        flex-direction: column;
    }

    .structure-assist .button {
        align-self: flex-start;
    }
}

.copy-source-preview[hidden] {
    display: none;
}

.copy-source-preview {
    display: grid;
    gap: 10px;
    margin-top: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(52, 132, 120, .28);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .72);
}

.copy-source-preview > span,
.copy-source-preview small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.copy-source-preview > strong {
    color: var(--ink);
    font-size: 15px;
    overflow-wrap: anywhere;
}

.copy-source-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px 14px;
}

.copy-source-preview-grid div {
    min-width: 0;
}

.copy-source-preview-grid b {
    display: block;
    color: var(--ink);
    font-size: 13px;
    overflow-wrap: anywhere;
}

.copy-source-preview-description {
    grid-column: 1 / -1;
}

.hierarchy-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-top: 13px;
}

.alert {
    padding: 11px 12px;
    border: 1px solid #efb8bb;
    border-radius: var(--radius-sm);
    background: var(--danger-soft);
    color: var(--danger);
    font-weight: 850;
}

.alert.success {
    border-color: #a8d8c9;
    background: var(--brand-soft);
    color: var(--brand-dark);
}

.role-admin-modal[hidden] {
    display: none;
}

.role-admin-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(12, 23, 31, 0.52);
    backdrop-filter: blur(6px);
}

.role-admin-dialog {
    width: min(520px, 100%);
    padding: 24px;
    border: 1px solid rgba(224, 113, 117, 0.35);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 24px 70px rgba(16, 31, 44, 0.28);
}

.role-admin-dialog h2 {
    margin: 0 0 10px;
    color: var(--danger);
    font-size: 22px;
}

.role-admin-dialog p {
    margin: 0 0 12px;
    color: var(--ink);
    line-height: 1.55;
}

.role-admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 18px;
}

.field-error {
    color: var(--danger);
    font-weight: 800;
}

.muted {
    color: var(--muted);
}

.detail {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.detail > div {
    min-width: 0;
    padding: 12px;
    border: 1px solid #e1e8e5;
    border-radius: var(--radius-sm);
    background: var(--surface-2);
}

.detail span {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.detail strong {
    display: block;
    overflow-wrap: anywhere;
    color: var(--ink);
    font-weight: 750;
    white-space: pre-wrap;
}

.qr-card {
    text-align: center;
    border: 1px dashed #8da0a6 !important;
    background: #f8faf7 !important;
}

.qr-card img {
    display: block;
    width: 154px;
    height: 154px;
    margin: 10px auto;
    border: 8px solid white;
    border-radius: var(--radius-sm);
}

.qr-card small {
    display: block;
    margin: 6px 0 10px;
    color: var(--muted);
}

.tree {
    list-style: none;
    margin: 0;
    padding-left: 18px;
    position: relative;
}

.tree.depth-0 {
    padding-left: 0;
}

.tree li {
    position: relative;
    margin: 0;
    padding-left: 18px;
}

.tree li::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 14px;
    width: 12px;
    border-top: 1px solid #8fa0a4;
}

.tree li::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 0;
    bottom: -1px;
    border-left: 1px solid #8fa0a4;
}

.tree li:last-child::after {
    height: 14px;
    bottom: auto;
}

.tree.depth-0 > li {
    padding-left: 0;
}

.tree.depth-0 > li::before,
.tree.depth-0 > li::after {
    display: none;
}

.tree-branch {
    margin: 0;
}

.tree-branch > summary {
    list-style: none;
}

.tree-branch > summary::-webkit-details-marker {
    display: none;
}

.tree-row {
    display: grid;
    grid-template-columns: 16px 18px minmax(330px, 1.25fr) 80px 132px 168px minmax(130px, 1fr);
    gap: 7px;
    align-items: center;
    min-height: 27px;
    padding: 2px 8px 2px 0;
    border: 1px solid transparent;
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
}

.tree-node {
    border-left: 0;
    background: transparent;
}

.tree-row:hover {
    border-color: #d9e2e0;
    background: #f8faf7;
}

.tree-row a {
    cursor: pointer;
}

.tree-toggle {
    display: inline-grid;
    place-items: center;
    width: 11px;
    height: 11px;
    border: 1px solid #7f9296;
    border-radius: 2px;
    background: #ffffff;
    color: #24373b;
    font-family: Consolas, "Liberation Mono", monospace;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
}

.tree-toggle::before {
    content: "+";
    display: inline-block;
}

.tree-branch[open] > .tree-node .tree-toggle::before {
    content: "-";
}

.tree-spacer {
    width: 11px;
    height: 11px;
}

.tree-folder-icon,
.tree-file-icon {
    position: relative;
    display: inline-block;
    width: 16px;
    height: 13px;
}

.tree-folder-icon::before {
    content: "";
    position: absolute;
    left: 1px;
    top: 1px;
    width: 8px;
    height: 4px;
    border: 1px solid var(--tree-accent-dark, #b98a18);
    border-bottom: 0;
    border-radius: 2px 2px 0 0;
    background: var(--tree-folder-tab, #ffd96a);
}

.tree-folder-icon::after {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 15px;
    height: 9px;
    border: 1px solid var(--tree-accent-dark, #b98a18);
    border-radius: 2px;
    background: var(--tree-folder, #f6c847);
}

.tree-file-icon::before {
    content: "";
    position: absolute;
    left: 3px;
    top: 0;
    width: 10px;
    height: 13px;
    border: 1px solid #8aa0a6;
    border-radius: 2px;
    background: #ffffff;
}

.tree-file-icon::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 4px;
    width: 6px;
    height: 1px;
    background: #8aa0a6;
    box-shadow: 0 3px 0 #8aa0a6, 0 6px 0 #8aa0a6;
}

.tree-title {
    color: var(--ink);
    font-weight: 750;
}

.tree-machine-label {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.tree-machine-main {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 7px;
}

.tree-machine-main .tree-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tree-machine-serial {
    flex: 0 0 auto;
    padding: 1px 6px;
    border: 1px solid rgba(132, 75, 49, .28);
    border-radius: 999px;
    background: rgba(251, 241, 236, .72);
    color: #6c3f2a;
    font-family: Consolas, "Liberation Mono", monospace;
    font-size: 11px;
    font-weight: 900;
}

.tree-machine-description {
    min-width: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tree-meta {
    min-width: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tree-code {
    color: #17212b;
    font-family: Consolas, "Liberation Mono", monospace;
    font-weight: 800;
}

.level-planta {
    --tree-accent: #246a73;
    --tree-accent-dark: #1e5660;
    --tree-accent-soft: #edf7f6;
    --tree-accent-hover: #e7f2f1;
    --tree-accent-border: #bad8d5;
    --tree-folder: #4f9aa0;
    --tree-folder-tab: #86c6c8;
}

.level-linea {
    --tree-accent: #3b6ea8;
    --tree-accent-dark: #315b8d;
    --tree-accent-soft: #eef4fb;
    --tree-accent-hover: #e6eff9;
    --tree-accent-border: #bed0e7;
    --tree-folder: #6694c8;
    --tree-folder-tab: #9dbce0;
}

.level-zona {
    --tree-accent: #6f7f3c;
    --tree-accent-dark: #5c6b31;
    --tree-accent-soft: #f3f6e8;
    --tree-accent-hover: #edf2dc;
    --tree-accent-border: #d3ddb2;
    --tree-folder: #9cad5f;
    --tree-folder-tab: #c2cd8b;
}

.level-maquina {
    --tree-accent: #a45f3d;
    --tree-accent-dark: #844b31;
    --tree-accent-soft: #fbf1ec;
    --tree-accent-hover: #f7e8df;
    --tree-accent-border: #e2c1ae;
    --tree-folder: #c9825f;
    --tree-folder-tab: #dda98f;
}

.level-pieza {
    color: var(--coral);
}

.tree-part-label {
    min-width: 0;
    display: grid;
    gap: 1px;
}

.tree-part-label .tree-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tree-part-model {
    min-width: 0;
    overflow: hidden;
    color: #5d6c72;
    font-size: 11px;
    font-weight: 750;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tree-parts {
    margin: 0;
}

.tree-part {
    cursor: default;
}

.empty-part {
    color: var(--muted);
    font-style: italic;
}

.suggestions {
    display: grid;
    gap: 10px;
}

.suggestion {
    display: grid;
    grid-template-columns: 130px 1fr 88px;
    gap: 12px;
    align-items: center;
    padding: 13px;
    border: 1px solid var(--line);
    border-left: 5px solid var(--brand);
    border-radius: var(--radius);
    background: var(--surface);
}

.suggestion span {
    color: var(--muted);
    font-weight: 850;
}

.suggestion strong {
    color: var(--ink);
}

.suggestion.priority-urgente,
.suggestion.priority-alta {
    border-left-color: var(--coral);
}

.suggestion.priority-media {
    border-left-color: var(--amber);
}

.profile-panel {
    display: grid;
    gap: 22px;
}

.profile-head {
    align-items: center;
    display: flex;
    gap: 18px;
}

.profile-avatar {
    aspect-ratio: 1;
    border: 1px solid var(--line);
    border-radius: 50%;
    box-shadow: var(--shadow-soft);
    height: 86px;
    object-fit: cover;
    width: 86px;
}

.profile-avatar-empty {
    align-items: center;
    background: linear-gradient(135deg, var(--teal), var(--blue));
    color: #fff;
    display: flex;
    font-size: 24px;
    font-weight: 900;
    justify-content: center;
}

.review-photo {
    align-items: start;
    display: grid;
    gap: 16px;
    grid-template-columns: 180px minmax(0, 1fr);
}

.review-photo img {
    aspect-ratio: 1;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    object-fit: cover;
    width: 100%;
}

.status-pill {
    background: #eef8f6;
    border: 1px solid #bde5dd;
    border-radius: 999px;
    color: #245f55;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    padding: 5px 10px;
    text-transform: uppercase;
}

.mobile-shell {
    display: grid;
    gap: 18px;
    margin: 0 auto;
    max-width: 760px;
}

.mobile-hero,
.mobile-machine {
    background: linear-gradient(135deg, #18333a 0%, #2f7d75 55%, #477fc8 100%);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    color: #fff;
    overflow: hidden;
    padding: 22px;
}

.mobile-kicker {
    display: block;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.mobile-hero h2,
.mobile-machine h2 {
    color: inherit;
    font-size: 30px;
    margin: 0 0 8px;
}

.mobile-hero p,
.mobile-machine p {
    color: rgba(255,255,255,.86);
    margin: 0;
}

.scanner-card {
    background: #101820;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
}

.scanner-card video {
    aspect-ratio: 4 / 3;
    background: #0b1117;
    display: block;
    object-fit: cover;
    width: 100%;
}

.scan-frame {
    border: 3px solid rgba(255,255,255,.82);
    border-radius: 18px;
    box-shadow: 0 0 0 999px rgba(0,0,0,.22);
    height: 42%;
    left: 50%;
    position: absolute;
    top: 34%;
    transform: translate(-50%, -50%);
    width: 72%;
}

.scanner-actions {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr 1fr;
    padding: 14px;
}

.scanner-card .muted {
    color: rgba(255,255,255,.72);
    margin: 0;
    padding: 0 14px 14px;
}

.mobile-code-form {
    display: grid;
    gap: 14px;
}

.mobile-machine {
    align-items: center;
    display: grid;
    gap: 16px;
    grid-template-columns: 118px minmax(0, 1fr);
}

.mobile-machine img,
.mobile-machine-empty {
    aspect-ratio: 1;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 14px;
    object-fit: cover;
    width: 100%;
}

.mobile-machine-empty {
    align-items: center;
    background: rgba(255,255,255,.14);
    color: rgba(255,255,255,.82);
    display: flex;
    font-weight: 900;
    justify-content: center;
}

.mobile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.mobile-tags span {
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 850;
    padding: 5px 10px;
    text-transform: uppercase;
}

.mobile-actions-panel h2,
.mobile-part-list {
    margin-top: 0;
}

.mobile-part-list {
    display: grid;
    gap: 10px;
}

.mobile-part {
    background: #f8fbfa;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    display: grid;
    gap: 4px;
    padding: 12px;
}

.mobile-part span,
.mobile-part small {
    color: var(--muted);
}

.mobile-doc-list {
    display: grid;
    gap: 10px;
}

.mobile-doc-list h3,
.context-grid h3 {
    font-size: 15px;
    margin: 0 0 8px;
}

.mobile-doc,
.doc-item,
.history-link {
    background: #f8fbfa;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--ink);
    display: grid;
    gap: 3px;
    padding: 12px;
    text-decoration: none;
}

.mobile-doc:hover,
.doc-item:hover,
.history-link:hover {
    border-color: #a9c7c1;
    text-decoration: none;
}

.mobile-doc span,
.doc-item span,
.history-link {
    color: var(--muted);
    font-size: 13px;
}

.doc-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.context-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.context-details {
    margin-top: 18px;
}

.context-details summary,
.mobile-shell summary {
    cursor: pointer;
    font-weight: 900;
    margin-bottom: 12px;
}

.compact-form {
    margin-bottom: 18px;
}

.mobile-app-body {
    min-height: 100vh;
    margin: 0;
    background:
        linear-gradient(180deg, rgba(245, 249, 247, .96), rgba(236, 242, 239, .98)),
        var(--bg);
    color: var(--ink);
    padding: env(safe-area-inset-top) 0 calc(78px + env(safe-area-inset-bottom));
}

.mobile-app-top {
    position: sticky;
    z-index: 20;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(30, 54, 58, .12);
    background: rgba(250, 252, 250, .92);
    backdrop-filter: blur(14px);
}

.mobile-app-brand {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    text-decoration: none;
}

.mobile-app-brand .brand-mark {
    width: 42px;
    height: 42px;
}

.mobile-app-brand strong,
.mobile-app-brand small,
.mobile-app-user span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-app-brand strong {
    font-size: 16px;
}

.mobile-app-brand small,
.mobile-app-user span {
    color: var(--muted);
    font-size: 12px;
}

.mobile-app-user {
    min-width: 82px;
    text-align: right;
}

.mobile-app-user a {
    color: #0f716c;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}

.mobile-app-main {
    width: min(100%, 620px);
    margin: 0 auto;
}

.mobile-native-shell {
    display: grid;
    gap: 14px;
    padding: 14px;
}

.mobile-native-hero,
.mobile-machine-hero,
.mobile-order-hero,
.mobile-page-title,
.mobile-message-card {
    border: 1px solid rgba(30, 54, 58, .12);
    border-radius: 22px;
    box-shadow: 0 16px 36px rgba(28, 49, 50, .12);
}

.mobile-native-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 20px;
    background: linear-gradient(135deg, #153840 0%, #26786f 54%, #5d83c4 100%);
    color: #fff;
}

.mobile-native-kicker,
.mobile-page-title span,
.mobile-section-head span,
.mobile-message-card span,
.mobile-order-hero > span,
.mobile-machine-hero > div > span {
    display: block;
    color: inherit;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.mobile-native-hero h1,
.mobile-machine-hero h1,
.mobile-order-hero h1,
.mobile-page-title h1 {
    margin: 5px 0 7px;
    font-size: 30px;
    line-height: 1.02;
}

.mobile-native-hero p,
.mobile-machine-hero p,
.mobile-order-hero p,
.mobile-page-title p,
.mobile-message-card p {
    margin: 0;
    color: inherit;
    opacity: .82;
}

.mobile-native-profile {
    flex: 0 0 auto;
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}

.mobile-page-title,
.mobile-message-card {
    padding: 18px;
    background: #ffffff;
}

.mobile-page-title span,
.mobile-message-card span {
    color: #2a7770;
}

.mobile-scan-panel,
.mobile-form-card,
.mobile-list-section {
    padding: 14px;
    border: 1px solid rgba(30, 54, 58, .12);
    border-radius: 20px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 12px 30px rgba(28, 49, 50, .08);
}

.mobile-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.mobile-section-head h2 {
    margin: 2px 0 0;
    font-size: 19px;
}

.mobile-section-head span {
    color: #65747a;
}

.mobile-section-head a {
    color: #0f716c;
    font-weight: 900;
    text-decoration: none;
}

.mobile-scanner {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: #0d171b;
}

.mobile-scanner video {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #0d171b;
}

.mobile-scanner.compact video {
    aspect-ratio: 16 / 10;
}

.mobile-scan-frame {
    position: absolute;
    left: 50%;
    top: 48%;
    width: 72%;
    height: 42%;
    border: 3px solid rgba(255, 255, 255, .9);
    border-radius: 20px;
    box-shadow: 0 0 0 999px rgba(4, 10, 12, .22);
    transform: translate(-50%, -50%);
}

.mobile-action-grid,
.mobile-action-row,
.mobile-card-grid {
    display: grid;
    gap: 10px;
}

.mobile-action-grid.two,
.mobile-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mobile-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(142px, 1fr));
}

.mobile-action-row {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.mobile-action,
.mobile-submit,
.mobile-search-form button,
.mobile-filter-bar button,
.mobile-small-action {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 12px 14px;
    border: 1px solid #b9c8c9;
    border-radius: 15px;
    background: #ffffff;
    color: #17212b;
    font-weight: 950;
    text-align: center;
    text-decoration: none;
}

.mobile-action.primary,
.mobile-submit,
.mobile-search-form button,
.mobile-filter-bar button {
    border-color: #0f8f8e;
    background: linear-gradient(135deg, #0f9a9a, #467ac1);
    color: #fff;
}

.mobile-status,
.mobile-helper,
.mobile-empty {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.mobile-search-form,
.mobile-filter-bar,
.mobile-form-card form {
    display: grid;
    gap: 10px;
}

.mobile-search-form {
    grid-template-columns: minmax(0, 1fr) auto;
    margin-top: 12px;
}

.mobile-message-form {
    grid-template-columns: 1fr;
}

.mobile-message-form textarea,
.mobile-message-form select,
.mobile-message-form input {
    width: 100%;
    min-height: 48px;
    border: 1px solid #bfd0cf;
    border-radius: 14px;
    background: #fff;
    font: inherit;
    padding: 12px;
}

.mobile-filter-bar {
    grid-template-columns: minmax(0, 1fr) minmax(110px, .5fr) auto;
    padding: 10px;
    border: 1px solid rgba(30, 54, 58, .12);
    border-radius: 18px;
    background: #fff;
}

.mobile-filter-bar input,
.mobile-filter-bar select,
.mobile-search-form input,
.mobile-form-card input,
.mobile-form-card select,
.mobile-form-card textarea {
    width: 100%;
    min-height: 48px;
    border: 1px solid #bfd0cf;
    border-radius: 14px;
    background: #fff;
    font: inherit;
}

.mobile-form-card label {
    display: grid;
    gap: 6px;
    color: #24323a;
    font-weight: 900;
}

.mobile-segmented {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr 1fr;
}

.mobile-segmented label {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #bfd0cf;
    border-radius: 14px;
    background: #f8fbfa;
}

.mobile-metric-card,
.mobile-work-card,
.mobile-stock-card,
.mobile-doc-card,
.mobile-part-card,
.mobile-inventory-card {
    display: grid;
    gap: 6px;
    padding: 14px;
    border: 1px solid rgba(30, 54, 58, .12);
    border-radius: 18px;
    background: #ffffff;
    color: var(--ink);
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(28, 49, 50, .07);
}

.mobile-metric-card {
    min-height: 122px;
    align-content: space-between;
}

.mobile-metric-card span,
.mobile-work-card span,
.mobile-stock-card span,
.mobile-doc-card span,
.mobile-part-card span,
.mobile-part-card small,
.mobile-inventory-card span,
.mobile-inventory-card small {
    color: var(--muted);
    font-size: 12px;
}

.mobile-metric-card strong {
    font-size: 36px;
    line-height: 1;
}

.mobile-metric-card small,
.mobile-work-card small,
.mobile-part-card em,
.mobile-inventory-card small {
    color: #65747a;
    font-style: normal;
}

.accent-work {
    border-top: 5px solid #467ac1;
}

.accent-request {
    border-top: 5px solid #0f9a9a;
}

.accent-stock {
    border-top: 5px solid #bf7a1f;
}

.mobile-card-list {
    display: grid;
    gap: 10px;
}

.mobile-card-list.compact {
    gap: 8px;
}

.mobile-work-card {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.mobile-work-card strong,
.mobile-stock-card strong,
.mobile-doc-card strong,
.mobile-part-card strong,
.mobile-inventory-card strong {
    display: block;
    overflow-wrap: anywhere;
}

.mobile-work-card em {
    padding: 5px 8px;
    border-radius: 999px;
    background: #eef5f3;
    color: #315c58;
    font-size: 11px;
    font-style: normal;
    font-weight: 950;
    text-transform: uppercase;
}

.priority-urgente {
    border-left: 5px solid #b74343;
}

.priority-alta {
    border-left: 5px solid #bf7a1f;
}

.priority-media {
    border-left: 5px solid #467ac1;
}

.priority-baja {
    border-left: 5px solid #6f7f3c;
}

.mobile-machine-hero {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: linear-gradient(135deg, #173a42, #216f68);
    color: #fff;
}

.mobile-machine-hero img,
.mobile-machine-placeholder {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, .25);
    object-fit: cover;
}

.mobile-machine-placeholder {
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .14);
    color: rgba(255, 255, 255, .86);
    font-weight: 950;
}

.mobile-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 10px;
}

.mobile-pill-row b {
    padding: 5px 9px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    color: inherit;
    font-size: 11px;
    text-transform: uppercase;
}

.mobile-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.mobile-toolbar a {
    color: #0f716c;
    font-weight: 950;
    text-decoration: none;
}

.mobile-success,
.mobile-alert {
    padding: 12px 14px;
    border-radius: 16px;
    font-weight: 850;
}

.mobile-success {
    border: 1px solid #b8dfce;
    background: #edf9f2;
    color: #236045;
}

.mobile-alert {
    border: 1px solid #efc0bf;
    background: #fff1f0;
    color: #8d3431;
}

.mobile-order-hero {
    padding: 18px;
    background: #ffffff;
}

.mobile-order-hero .mobile-pill-row b {
    border-color: #cbd8d7;
    background: #f1f6f5;
    color: #284146;
}

.mobile-message-card.compact {
    box-shadow: none;
}

.mobile-inventory-card {
    grid-template-columns: minmax(0, 1fr) auto;
}

.mobile-inventory-card.is-low {
    border-left: 5px solid #bf7a1f;
}

.mobile-stock-numbers {
    text-align: right;
}

.mobile-stock-numbers b {
    display: block;
    font-size: 26px;
}

.mobile-inventory-meta {
    grid-column: 1 / -1;
    display: grid;
    gap: 2px;
}

.mobile-small-action {
    grid-column: 1 / -1;
    min-height: 40px;
    font-size: 13px;
}

.mobile-bottom-nav {
    position: fixed;
    z-index: 30;
    left: 50%;
    bottom: 0;
    width: min(100%, 620px);
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 4px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(30, 54, 58, .13);
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 -12px 34px rgba(28, 49, 50, .12);
    transform: translateX(-50%);
    backdrop-filter: blur(14px);
}

.mobile-bottom-nav a {
    min-width: 0;
    display: grid;
    place-items: center;
    gap: 2px;
    padding: 6px 4px;
    border-radius: 14px;
    color: #536166;
    font-size: 11px;
    font-weight: 900;
    text-decoration: none;
}

.mobile-bottom-nav a span {
    display: grid;
    min-width: 28px;
    min-height: 24px;
    place-items: center;
    border-radius: 999px;
    background: #eef4f3;
    color: #284146;
    font-size: 10px;
    letter-spacing: .04em;
}

.mobile-bottom-nav a.active {
    color: #0f716c;
}

.mobile-bottom-nav a.active span {
    background: #d9f0ec;
    color: #0f716c;
}

/* Mobile is a dedicated field workflow, not a squeezed desktop layout. */
.mobile-app-body {
    font-size: 15px;
    -webkit-tap-highlight-color: rgba(15, 113, 108, .14);
}

.mobile-app-main {
    max-width: 460px;
}

.mobile-app-top {
    padding: 7px 10px;
}

.mobile-app-brand {
    gap: 8px;
}

.mobile-app-brand .brand-mark {
    width: 34px;
    height: 34px;
}

.mobile-app-brand strong {
    font-size: 14px;
}

.mobile-app-brand small,
.mobile-app-user span {
    font-size: 11px;
}

.mobile-native-shell {
    gap: 10px;
    padding: 10px;
}

.mobile-native-hero,
.mobile-machine-hero,
.mobile-order-hero,
.mobile-page-title,
.mobile-message-card,
.mobile-scan-panel,
.mobile-form-card,
.mobile-list-section {
    border-radius: 16px;
}

.mobile-native-hero,
.mobile-page-title,
.mobile-order-hero {
    padding: 14px;
}

.mobile-native-hero h1,
.mobile-machine-hero h1,
.mobile-order-hero h1,
.mobile-page-title h1 {
    font-size: 22px;
    line-height: 1.08;
}

.mobile-native-hero p,
.mobile-machine-hero p,
.mobile-order-hero p,
.mobile-page-title p,
.mobile-message-card p {
    font-size: 13px;
    line-height: 1.35;
}

.mobile-page-title p,
.mobile-native-hero p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.mobile-native-profile,
.mobile-toolbar a,
.mobile-section-head a {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
}

.mobile-scan-panel,
.mobile-form-card,
.mobile-list-section {
    padding: 11px;
}

.mobile-section-head {
    margin-bottom: 8px;
}

.mobile-section-head h2 {
    font-size: 16px;
}

.mobile-native-kicker,
.mobile-page-title span,
.mobile-section-head span,
.mobile-message-card span,
.mobile-order-hero > span,
.mobile-machine-hero > div > span {
    font-size: 10px;
    letter-spacing: .04em;
}

.mobile-scanner video {
    aspect-ratio: 16 / 10;
}

.mobile-action-grid,
.mobile-action-row,
.mobile-card-grid,
.mobile-card-list,
.mobile-search-form,
.mobile-filter-bar,
.mobile-form-card form {
    gap: 8px;
}

.mobile-action,
.mobile-submit,
.mobile-search-form button,
.mobile-filter-bar button,
.mobile-small-action {
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 13px;
    font-size: 13px;
}

.mobile-filter-bar {
    grid-template-columns: 1fr;
    padding: 8px;
    border-radius: 15px;
}

.mobile-search-form {
    grid-template-columns: 1fr;
}

.mobile-filter-bar input,
.mobile-filter-bar select,
.mobile-search-form input,
.mobile-form-card input,
.mobile-form-card select,
.mobile-form-card textarea,
.mobile-message-form textarea,
.mobile-message-form select,
.mobile-message-form input {
    min-height: 42px;
    border-radius: 12px;
    font-size: 14px;
    padding: 9px 10px;
}

.mobile-form-card textarea,
.mobile-message-form textarea {
    line-height: 1.35;
    resize: vertical;
}

.mobile-form-card label {
    gap: 4px;
    font-size: 12px;
}

.mobile-metric-card,
.mobile-work-card,
.mobile-stock-card,
.mobile-doc-card,
.mobile-part-card,
.mobile-inventory-card {
    gap: 4px;
    padding: 11px;
    border-radius: 14px;
}

.mobile-metric-card {
    min-height: 86px;
}

.mobile-metric-card strong {
    font-size: 28px;
}

.mobile-work-card strong,
.mobile-stock-card strong,
.mobile-doc-card strong,
.mobile-part-card strong,
.mobile-inventory-card strong {
    font-size: 14px;
    line-height: 1.22;
}

.mobile-work-card span,
.mobile-stock-card span,
.mobile-doc-card span,
.mobile-part-card span,
.mobile-part-card small,
.mobile-inventory-card span,
.mobile-inventory-card small,
.mobile-metric-card span,
.mobile-metric-card small {
    font-size: 11px;
    line-height: 1.28;
}

.mobile-work-card em {
    width: fit-content;
    padding: 4px 7px;
    font-size: 10px;
}

.mobile-asset-summary {
    grid-template-columns: 74px minmax(0, 1fr);
    padding: 11px;
}

.mobile-machine-hero img,
.mobile-machine-placeholder {
    border-radius: 13px;
}

.mobile-pill-row {
    gap: 5px;
    margin-top: 7px;
}

.mobile-pill-row b {
    padding: 4px 7px;
    font-size: 10px;
}

.mobile-incident-flow {
    display: grid;
    gap: 8px;
}

.mobile-step-card,
.mobile-details-card {
    padding: 10px;
    border: 1px solid rgba(30, 54, 58, .12);
    border-radius: 14px;
    background: #fbfdfc;
}

.mobile-step-card {
    display: grid;
    gap: 8px;
}

.mobile-step-card > span,
.mobile-step-card summary span {
    width: 24px;
    height: 24px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: #dff1ee;
    color: #0f716c;
    font-size: 12px;
    font-weight: 950;
}

.mobile-two-fields {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr 1fr;
}

.mobile-segmented {
    gap: 6px;
}

.mobile-segmented label {
    min-height: 40px;
    border-radius: 12px;
    font-size: 13px;
}

.mobile-optional-card {
    display: block;
}

.mobile-optional-card summary,
.mobile-details-card summary {
    cursor: pointer;
    font-size: 13px;
    font-weight: 950;
}

.mobile-optional-card[open],
.mobile-details-card[open] {
    display: grid;
    gap: 8px;
}

.mobile-optional-card[open] summary,
.mobile-details-card[open] summary {
    margin-bottom: 8px;
}

.mobile-details-card p {
    margin: 0;
    color: #526269;
    font-size: 13px;
    line-height: 1.4;
}

.mobile-quick-tabs {
    position: sticky;
    top: 56px;
    z-index: 18;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 6px;
    padding: 6px;
    border: 1px solid rgba(30, 54, 58, .10);
    border-radius: 15px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 8px 24px rgba(28, 49, 50, .08);
    backdrop-filter: blur(12px);
}

.mobile-quick-tabs a {
    min-height: 34px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: #eef5f3;
    color: #315c58;
    font-size: 12px;
    font-weight: 950;
    text-decoration: none;
}

.mobile-message-card.compact {
    padding: 10px;
}

.mobile-stock-numbers b {
    font-size: 22px;
}

.mobile-bottom-nav {
    max-width: 460px;
    padding-top: 6px;
}

.mobile-bottom-nav a {
    padding: 5px 3px;
    font-size: 10px;
}

.mobile-bottom-nav a span {
    min-width: 26px;
    min-height: 22px;
    font-size: 9px;
}

@media (max-width: 520px) {
    .mobile-native-shell {
        padding: 10px;
    }

    .mobile-native-hero h1,
    .mobile-machine-hero h1,
    .mobile-order-hero h1,
    .mobile-page-title h1 {
        font-size: 22px;
    }

    .mobile-search-form,
    .mobile-filter-bar {
        grid-template-columns: 1fr;
    }

    .mobile-machine-hero {
        grid-template-columns: 74px minmax(0, 1fr);
    }

    .mobile-inventory-card,
    .mobile-work-card {
        grid-template-columns: 1fr;
    }

    .mobile-stock-numbers {
        display: flex;
        align-items: baseline;
        gap: 10px;
        text-align: left;
    }
}

@media (max-width: 380px) {
    .mobile-two-fields,
    .mobile-segmented,
    .mobile-action-grid.two,
    .mobile-card-grid {
        grid-template-columns: 1fr;
    }

    .mobile-app-user span {
        display: none;
    }
}

.alert.success {
    background: #e9f8f2;
    border-color: #a8ddc8;
    color: #166342;
}

.plant-address-assistant {
    align-items: start;
    background: linear-gradient(135deg, rgba(236, 253, 245, .92), rgba(239, 246, 255, .92));
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(280px, 1.2fr);
    gap: 12px;
    padding: 18px;
}

.plant-address-assistant h2 {
    margin: 0 0 4px;
}

.address-preview {
    background: rgba(255,255,255,.84);
    border: 1px dashed rgba(56, 95, 88, .35);
    border-radius: 8px;
    color: var(--muted);
    font-weight: 800;
    line-height: 1.45;
    min-height: 58px;
    padding: 14px 16px;
}

.address-preview.is-complete {
    border-color: rgba(32, 141, 109, .5);
    color: #165b48;
}

.plant-address-field input.is-invalid,
.plant-address-field select.is-invalid,
.plant-address-field textarea.is-invalid {
    border-color: #c94f4f;
    box-shadow: 0 0 0 3px rgba(201, 79, 79, .14);
}

.plant-address-field input:valid,
.plant-address-field select:valid,
.plant-address-field textarea:valid {
    border-color: rgba(32, 141, 109, .46);
}

.readonly-code-panel {
    background: linear-gradient(135deg, rgba(240, 249, 255, .92), rgba(236, 253, 245, .92));
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 6px;
    padding: 14px 16px;
}

.readonly-code-panel span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.readonly-code-panel strong {
    color: var(--ink);
    font-size: 22px;
    letter-spacing: 0;
}

.readonly-code-panel small {
    color: var(--muted);
    font-weight: 700;
}

.api-panel,
.api-manual {
    display: grid;
    gap: 18px;
}

.api-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.api-grid > div {
    background: rgba(255,255,255,.78);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 6px;
    padding: 14px;
}

.api-grid span,
.api-panel .detail span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.api-panel code,
.api-manual code,
.api-manual pre {
    font-family: Consolas, "Liberation Mono", monospace;
}

.api-manual pre,
.token-once {
    background: #101820;
    border-radius: 8px;
    color: #e9fff6;
    display: block;
    line-height: 1.5;
    overflow-x: auto;
    padding: 14px;
    white-space: pre-wrap;
    word-break: break-word;
}

.api-manual h3 {
    margin: 10px 0 0;
}

.api-manual ul,
.api-manual ol {
    margin-top: 0;
}

@media (max-width: 860px) {
    .plant-address-assistant {
        grid-template-columns: 1fr;
    }
}

@media print {
    body {
        background: white;
    }

    body.label-printing * {
        visibility: hidden !important;
    }

    body.label-printing .qr-card,
    body.label-printing .qr-card * {
        visibility: visible !important;
    }

    body.label-printing .qr-card {
        align-items: center;
        background: #fff !important;
        border: 1px solid #000 !important;
        box-shadow: none !important;
        color: #000 !important;
        display: flex !important;
        flex-direction: column;
        gap: 2.5mm;
        left: 0;
        min-height: 55mm;
        justify-content: flex-start;
        padding: 4mm 5mm !important;
        position: fixed;
        top: 0;
        width: 70mm;
    }

    body.label-printing .qr-card > span {
        display: none !important;
    }

    body.label-printing .qr-card strong {
        display: block !important;
        font-size: 13pt !important;
        line-height: 1.1 !important;
        max-width: 100% !important;
        overflow-wrap: normal !important;
        text-align: center !important;
        white-space: nowrap !important;
        word-break: keep-all !important;
    }

    body.label-printing .qr-card img {
        display: block !important;
        height: 36mm !important;
        margin: 0 auto !important;
        width: 36mm !important;
    }

    body.label-printing .qr-card small {
        display: block !important;
        font-size: 10pt !important;
        line-height: 1.2 !important;
        max-width: 100% !important;
        text-align: center !important;
        white-space: nowrap !important;
        word-break: keep-all !important;
    }

    body.label-printing .qr-card .button {
        display: none !important;
    }

    .sidebar,
    .topbar,
    .toolbar,
    .media-panel,
    body:not(.label-printing) .panel:not(:first-of-type),
    body:not(.label-printing) .detail > div:not(.qr-card) {
        display: none !important;
    }

    .main {
        margin: 0;
        padding: 0;
    }

    .panel {
        border: 0;
        box-shadow: none;
    }

    .qr-card {
        width: 70mm;
        border: 1px solid #000 !important;
    }
}

@media (max-width: 1200px) {
    .kpi-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hierarchy-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1000px) {
    body {
        background-size: 34px 34px, 34px 34px, auto;
    }

    .sidebar {
        position: static;
        width: auto;
        max-height: none;
    }

    .main {
        margin-left: 0;
        padding: 16px;
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .form-grid,
    .detail,
    .context-grid {
        grid-template-columns: 1fr;
    }

    .tree-row,
    .suggestion {
        grid-template-columns: 16px 18px minmax(160px, 1fr);
    }

    .tree-meta {
        display: none;
    }

    .tree {
        padding-left: 14px;
    }
}

@media (max-width: 620px) {
    .main {
        padding: 12px;
    }

    .panel,
    .topbar,
    .login-box {
        padding: 14px;
    }

    .kpi-grid,
    .hierarchy-grid {
        grid-template-columns: 1fr;
    }

    .search,
    .toolbar,
    .form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .search input,
    .button {
        width: 100%;
    }

    th,
    td {
        padding: 10px;
    }
}

.label-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.zebra-panel {
    width: min(100%, 720px);
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(31, 43, 55, 0.14);
}

.zebra-grid {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(100px, 140px) minmax(110px, 140px);
    gap: 10px;
    margin-bottom: 12px;
}

.zebra-grid label {
    gap: 6px;
    text-align: left;
}

.zebra-grid input,
.zebra-grid select {
    width: 100%;
}

@media (max-width: 720px) {
    .zebra-grid {
        grid-template-columns: 1fr;
    }
}

@media print {
    body.label-printing .zebra-panel,
    body.label-printing .label-actions {
        display: none !important;
    }
}

.project-command .stats-grid { margin-bottom: 18px; }
.project-gantt { border: 1px solid rgba(25, 58, 72, .14); border-radius: 8px; overflow: hidden; background: #fff; margin: 18px 0; }
.gantt-scale { display: flex; justify-content: space-between; padding: 10px 14px; color: #65758a; font-size: .82rem; background: linear-gradient(90deg, rgba(11, 137, 143, .08), rgba(72, 119, 221, .08)); border-bottom: 1px solid rgba(25, 58, 72, .12); }
.gantt-row { display: grid; grid-template-columns: minmax(220px, 320px) 1fr; min-height: 52px; border-bottom: 1px solid rgba(25, 58, 72, .08); }
.gantt-row:last-child { border-bottom: 0; }
.gantt-name { padding: 9px 12px; border-right: 1px solid rgba(25, 58, 72, .1); }
.gantt-name strong { display: block; color: #142333; font-size: .9rem; }
.gantt-name small { display: block; margin-top: 3px; color: #66758a; }
.gantt-track { position: relative; min-height: 52px; background-image: linear-gradient(90deg, rgba(20, 35, 51, .06) 1px, transparent 1px); background-size: 8.333% 100%; }
.gantt-bar { position: absolute; top: 14px; height: 22px; min-width: 8px; border-radius: 999px; background: #0f9f8f; box-shadow: 0 8px 18px rgba(15, 159, 143, .18); overflow: hidden; }
.gantt-bar em { position: absolute; inset: 0; display: grid; place-items: center; color: white; font-style: normal; font-size: .72rem; font-weight: 800; }
.gantt-bar.status-terminada { background: #27845f; }
.gantt-bar.status-en_curso { background: #2474d8; }
.gantt-bar.status-bloqueada { background: #c0392b; }
.gantt-bar.status-pendiente, .gantt-bar.status-lista { background: #9a7b22; }
.gantt-bar.type-hito { width: 18px !important; transform: rotate(45deg); border-radius: 4px; }
.gantt-bar.type-hito em { transform: rotate(-45deg); font-size: 0; }
@media (max-width: 780px) {
  .gantt-row { grid-template-columns: 1fr; }
  .gantt-name { border-right: 0; border-bottom: 1px solid rgba(25, 58, 72, .08); }
  .gantt-track { min-height: 44px; }
}

/* Android-like mobile app shell */
.android-app-body {
    min-height: 100svh;
    margin: 0;
    padding: calc(env(safe-area-inset-top) + 64px) 0 calc(86px + env(safe-area-inset-bottom));
    background:
        linear-gradient(180deg, #f7fbfa 0%, #eef6f4 100%);
    color: #162326;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    -webkit-tap-highlight-color: rgba(15, 127, 119, .14);
}

.android-top-appbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    gap: 10px;
    height: calc(56px + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) 12px 0;
    background: rgba(247, 251, 250, .96);
    border-bottom: 1px solid rgba(22, 45, 48, .08);
    box-shadow: 0 2px 14px rgba(20, 40, 44, .08);
    backdrop-filter: blur(16px);
}

.android-icon-button {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #243236;
    cursor: pointer;
}

.android-menu-button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.android-menu-button span {
    width: 22px;
    height: 2px;
    border-radius: 99px;
    background: #243236;
}

.android-app-title {
    display: grid;
    flex: 1;
    min-width: 0;
    gap: 1px;
    color: #162326;
    text-decoration: none;
}

.android-app-title strong {
    overflow: hidden;
    font-size: 18px;
    font-weight: 950;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.android-app-title small {
    overflow: hidden;
    color: #68777b;
    font-size: 12px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.android-avatar {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #d8ece8;
    color: #0f625c;
    font-weight: 950;
    text-decoration: none;
}

.android-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(11, 19, 20, .34);
}

.android-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    width: min(328px, 86vw);
    padding: calc(env(safe-area-inset-top) + 18px) 16px 18px;
    overflow: auto;
    background: #fff;
    border-radius: 0 26px 26px 0;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .24);
    transform: translateX(-105%);
    transition: transform .22s ease;
}

.android-drawer-open {
    overflow: hidden;
}

.android-drawer-open .android-drawer {
    transform: translateX(0);
}

.android-drawer-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    padding: 4px 6px 18px;
    border-bottom: 1px solid #e2ebea;
}

.android-drawer-head .brand-mark {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
}

.android-drawer-head div {
    min-width: 0;
}

.android-drawer-head strong,
.android-drawer-head small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.android-drawer-head strong {
    color: #162326;
    font-size: 17px;
    font-weight: 950;
}

.android-drawer-head small {
    color: #667579;
    font-size: 12px;
}

.android-drawer-nav {
    display: grid;
    gap: 4px;
}

.android-drawer-nav a {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 48px;
    padding: 0 12px;
    border-radius: 24px;
    color: #243236;
    font-weight: 850;
    text-decoration: none;
}

.android-drawer-nav a span {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 12px;
    background: #eef5f3;
    color: #38635f;
    font-size: 11px;
    font-weight: 950;
}

.android-drawer-nav a.active {
    background: #dff3ee;
    color: #0f625c;
}

.android-drawer-nav a.active span {
    background: #0f7f77;
    color: #fff;
}

.android-app-main {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 0 10px;
}

.android-app-body .mobile-native-shell {
    gap: 12px;
    padding: 0;
}

.android-app-body .mobile-native-profile {
    display: none;
}

.android-app-body .mobile-native-hero,
.android-app-body .mobile-page-title,
.android-app-body .mobile-machine-hero,
.android-app-body .mobile-order-hero {
    border: 0;
    border-radius: 28px;
    box-shadow: none;
}

.android-app-body .mobile-native-hero {
    min-height: 126px;
    padding: 20px;
    background: linear-gradient(135deg, #e8f6f2 0%, #dceafa 100%);
    color: #162326;
}

.android-app-body .mobile-page-title,
.android-app-body .mobile-order-hero,
.android-app-body .mobile-machine-hero {
    padding: 18px;
    background: #fff;
}

.android-app-body .mobile-native-kicker,
.android-app-body .mobile-page-title span,
.android-app-body .mobile-section-head span,
.android-app-body .mobile-message-card span {
    color: #647478;
    font-size: 12px;
    letter-spacing: 0;
    text-transform: none;
}

.android-app-body .mobile-native-hero h1,
.android-app-body .mobile-page-title h1,
.android-app-body .mobile-order-hero h1,
.android-app-body .mobile-machine-hero h1 {
    margin-top: 4px;
    font-size: 24px;
    line-height: 1.1;
    letter-spacing: 0;
}

.android-app-body .mobile-native-hero p,
.android-app-body .mobile-page-title p,
.android-app-body .mobile-order-hero p,
.android-app-body .mobile-machine-hero p,
.android-app-body .mobile-message-card p {
    color: #5f7075;
    font-size: 13px;
    line-height: 1.35;
}

.android-app-body .mobile-scan-panel,
.android-app-body .mobile-form-card,
.android-app-body .mobile-list-section,
.android-app-body .mobile-metric-card,
.android-app-body .mobile-work-card,
.android-app-body .mobile-stock-card,
.android-app-body .mobile-doc-card,
.android-app-body .mobile-part-card,
.android-app-body .mobile-inventory-card,
.android-app-body .mobile-step-card,
.android-app-body .mobile-details-card,
.android-app-body .mobile-message-card {
    border: 0;
    border-radius: 24px;
    background: #fff;
    box-shadow: none;
}

.android-app-body .mobile-scan-panel,
.android-app-body .mobile-form-card,
.android-app-body .mobile-list-section {
    padding: 14px;
}

.android-app-body .mobile-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.android-app-body .mobile-metric-card {
    min-height: 116px;
    padding: 14px;
}

.android-app-body .mobile-metric-card strong {
    font-size: 34px;
}

.android-app-body .mobile-card-list {
    gap: 8px;
}

.android-app-body .mobile-work-card,
.android-app-body .mobile-inventory-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
}

.android-app-body .mobile-work-card em {
    width: fit-content;
}

.android-app-body .mobile-work-card strong,
.android-app-body .mobile-stock-card strong,
.android-app-body .mobile-doc-card strong,
.android-app-body .mobile-part-card strong,
.android-app-body .mobile-inventory-card strong {
    font-size: 14px;
    line-height: 1.25;
}

.android-app-body .mobile-scanner {
    min-height: 238px;
    border: 0;
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(15, 127, 119, .08), rgba(70, 122, 193, .08)),
        #f3f8f7;
}

.android-app-body .mobile-scanner.compact {
    min-height: 184px;
}

.android-app-body .mobile-scan-frame {
    width: 68%;
    max-width: 260px;
    aspect-ratio: 1;
    border: 3px solid rgba(15, 127, 119, .86);
    border-radius: 24px;
    box-shadow: 0 0 0 999px rgba(247, 251, 250, .38);
}

.android-app-body .mobile-action,
.android-app-body .mobile-submit,
.android-app-body .mobile-search-form button,
.android-app-body .mobile-filter-bar button,
.android-app-body .mobile-small-action,
.android-app-body .mobile-toolbar a {
    min-height: 48px;
    border: 0;
    border-radius: 24px;
    box-shadow: none;
    font-size: 14px;
}

.android-app-body .mobile-action.primary,
.android-app-body .mobile-submit,
.android-app-body .mobile-search-form button,
.android-app-body .mobile-filter-bar button {
    background: #0f7f77;
    color: #fff;
}

.android-app-body .mobile-action,
.android-app-body .mobile-small-action,
.android-app-body .mobile-toolbar a {
    background: #e8f1ef;
    color: #1f3d3a;
}

.android-app-body .mobile-action-grid.two,
.android-app-body .mobile-action-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.android-app-body .mobile-search-form,
.android-app-body .mobile-filter-bar,
.android-app-body .mobile-form-card form {
    gap: 10px;
}

.android-app-body .mobile-filter-bar {
    grid-template-columns: 1fr;
    padding: 10px;
    border: 0;
    border-radius: 24px;
    background: #fff;
}

.android-app-body .mobile-search-form input,
.android-app-body .mobile-search-form select,
.android-app-body .mobile-search-form textarea,
.android-app-body .mobile-filter-bar input,
.android-app-body .mobile-filter-bar select,
.android-app-body .mobile-form-card input,
.android-app-body .mobile-form-card select,
.android-app-body .mobile-form-card textarea,
.android-app-body .mobile-message-form textarea,
.android-app-body .mobile-message-form select {
    min-height: 52px;
    border: 1px solid #d7e4e1;
    border-radius: 16px;
    background: #fbfefd;
    color: #162326;
    font-size: 16px;
    box-shadow: none;
}

.android-app-body .mobile-form-card textarea,
.android-app-body .mobile-message-form textarea {
    min-height: 92px;
}

.android-app-body .mobile-form-card label,
.android-app-body .mobile-step-card label {
    gap: 6px;
    color: #5f7075;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: none;
}

.android-app-body .mobile-two-fields {
    grid-template-columns: 1fr;
}

.android-app-body .mobile-toolbar {
    position: sticky;
    top: calc(56px + env(safe-area-inset-top));
    z-index: 20;
    padding: 4px 0;
    background: linear-gradient(180deg, rgba(247, 251, 250, .96), rgba(247, 251, 250, .84));
    backdrop-filter: blur(12px);
}

.android-bottom-nav {
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 8px 14px calc(10px + env(safe-area-inset-bottom));
    border: 0;
    border-radius: 28px 28px 0 0;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 -8px 28px rgba(20, 40, 44, .12);
}

.android-bottom-nav a {
    min-height: 56px;
    padding: 5px 2px;
    border-radius: 20px;
    color: #5f7075;
    font-size: 11px;
    font-weight: 850;
}

.android-bottom-nav a span {
    min-width: 48px;
    min-height: 24px;
    border-radius: 14px;
    background: transparent;
    color: inherit;
}

.android-bottom-nav a.active {
    color: #0f625c;
}

.android-bottom-nav a.active span {
    background: #d6efe9;
    color: #0f625c;
}

@media (max-width: 380px) {
    .android-app-main {
        padding: 0 8px;
    }

    .android-app-body .mobile-card-grid,
    .android-app-body .mobile-action-grid.two,
    .android-app-body .mobile-action-row {
        grid-template-columns: 1fr;
    }

    .android-app-body .mobile-native-hero h1,
    .android-app-body .mobile-page-title h1,
    .android-app-body .mobile-order-hero h1,
    .android-app-body .mobile-machine-hero h1 {
        font-size: 22px;
    }
}

/* Android v2: stronger native-feeling mobile surface */
body.android-app-body {
    padding-top: calc(env(safe-area-inset-top) + 62px) !important;
    padding-bottom: calc(102px + env(safe-area-inset-bottom)) !important;
    background:
        radial-gradient(circle at 50% -120px, rgba(15, 127, 119, .18), transparent 290px),
        linear-gradient(180deg, #f8fbff 0%, #edf5f3 100%) !important;
}

body.android-app-body .android-top-appbar {
    height: calc(58px + env(safe-area-inset-top)) !important;
    background: #fefbff !important;
    border-bottom: 0 !important;
    box-shadow: 0 4px 22px rgba(22, 35, 38, .10) !important;
}

body.android-app-body .android-menu-button {
    background: #eef4f2 !important;
}

body.android-app-body .android-menu-button span {
    height: 2.5px !important;
    background: #173331 !important;
}

body.android-app-body .android-app-title strong {
    font-size: 19px !important;
}

body.android-app-body .android-app-title small {
    color: #6c797d !important;
}

body.android-app-body .android-avatar {
    background: linear-gradient(135deg, #0f7f77, #4f7fe8) !important;
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(15, 127, 119, .22) !important;
}

body.android-app-body .android-app-main {
    max-width: 480px !important;
    padding: 0 12px !important;
}

body.android-app-body .mobile-native-shell {
    gap: 14px !important;
}

body.android-app-body .mobile-native-shell > .mobile-native-hero {
    display: none !important;
}

body.android-app-body .mobile-scan-panel {
    margin-top: 4px !important;
    padding: 18px !important;
    border-radius: 30px !important;
    background:
        linear-gradient(135deg, rgba(15, 127, 119, .12), rgba(79, 127, 232, .10)),
        #ffffff !important;
}

body.android-app-body .mobile-section-head {
    align-items: center !important;
}

body.android-app-body .mobile-section-head h2 {
    font-size: 20px !important;
    line-height: 1.15 !important;
}

body.android-app-body .mobile-scanner {
    min-height: 250px !important;
    border-radius: 32px !important;
    background:
        linear-gradient(135deg, rgba(13, 91, 85, .10), rgba(74, 111, 207, .12)),
        #f8fbff !important;
}

body.android-app-body .mobile-scanner.compact {
    min-height: 190px !important;
}

body.android-app-body .mobile-scan-frame {
    width: min(70%, 248px) !important;
    border-color: #0f7f77 !important;
    border-radius: 28px !important;
    box-shadow:
        0 0 0 999px rgba(248, 251, 255, .48),
        inset 0 0 0 8px rgba(15, 127, 119, .08) !important;
}

body.android-app-body .mobile-card-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
}

body.android-app-body .mobile-metric-card {
    min-height: 108px !important;
    padding: 16px !important;
    border-radius: 28px !important;
    background: #ffffff !important;
}

body.android-app-body .mobile-metric-card.accent-work {
    background: linear-gradient(135deg, #eaf3ff, #ffffff) !important;
}

body.android-app-body .mobile-metric-card.accent-request {
    background: linear-gradient(135deg, #e9f8f1, #ffffff) !important;
}

body.android-app-body .mobile-metric-card.accent-stock {
    background: linear-gradient(135deg, #fff4d9, #ffffff) !important;
}

body.android-app-body .mobile-metric-card strong {
    font-size: 32px !important;
    line-height: 1 !important;
}

body.android-app-body .mobile-page-title,
body.android-app-body .mobile-order-hero,
body.android-app-body .mobile-machine-hero,
body.android-app-body .mobile-list-section,
body.android-app-body .mobile-form-card,
body.android-app-body .mobile-work-card,
body.android-app-body .mobile-inventory-card,
body.android-app-body .mobile-part-card,
body.android-app-body .mobile-doc-card,
body.android-app-body .mobile-stock-card,
body.android-app-body .mobile-message-card,
body.android-app-body .mobile-step-card,
body.android-app-body .mobile-details-card {
    border: 0 !important;
    border-radius: 28px !important;
    background: #ffffff !important;
    box-shadow: 0 1px 0 rgba(17, 38, 42, .04) !important;
}

body.android-app-body .mobile-page-title {
    padding: 18px !important;
}

body.android-app-body .mobile-action,
body.android-app-body .mobile-submit,
body.android-app-body .mobile-search-form button,
body.android-app-body .mobile-filter-bar button,
body.android-app-body .mobile-small-action,
body.android-app-body .mobile-toolbar a {
    min-height: 50px !important;
    border-radius: 25px !important;
    font-weight: 900 !important;
}

body.android-app-body .mobile-action.primary,
body.android-app-body .mobile-submit,
body.android-app-body .mobile-search-form button,
body.android-app-body .mobile-filter-bar button {
    background: #0b7d75 !important;
    color: #fff !important;
}

body.android-app-body .mobile-action:not(.primary),
body.android-app-body .mobile-small-action,
body.android-app-body .mobile-toolbar a {
    background: #e8f1ef !important;
    color: #173331 !important;
}

body.android-app-body .mobile-search-form,
body.android-app-body .mobile-filter-bar {
    border-radius: 28px !important;
    background: #ffffff !important;
}

body.android-app-body .mobile-search-form input,
body.android-app-body .mobile-search-form select,
body.android-app-body .mobile-search-form textarea,
body.android-app-body .mobile-filter-bar input,
body.android-app-body .mobile-filter-bar select,
body.android-app-body .mobile-form-card input,
body.android-app-body .mobile-form-card select,
body.android-app-body .mobile-form-card textarea,
body.android-app-body .mobile-message-form textarea,
body.android-app-body .mobile-message-form select {
    min-height: 54px !important;
    border-color: #d9e5e3 !important;
    border-radius: 18px !important;
    background: #fdfefe !important;
    font-size: 16px !important;
}

body.android-app-body .mobile-bottom-nav.android-bottom-nav {
    display: grid !important;
    grid-auto-flow: column !important;
    grid-auto-columns: 1fr !important;
    max-width: 480px !important;
    padding: 8px 16px calc(12px + env(safe-area-inset-bottom)) !important;
    border-radius: 32px 32px 0 0 !important;
    background: #fefbff !important;
    box-shadow: 0 -10px 30px rgba(17, 38, 42, .14) !important;
}

body.android-app-body .android-bottom-nav a {
    min-height: 58px !important;
    color: #6a777a !important;
}

body.android-app-body .android-bottom-nav a.active {
    color: #0b625d !important;
}

body.android-app-body .android-bottom-nav a.active span {
    background: #d5efe9 !important;
    color: #0b625d !important;
}

.android-fab {
    position: fixed;
    right: calc(18px + env(safe-area-inset-right));
    bottom: calc(76px + env(safe-area-inset-bottom));
    z-index: 70;
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 22px;
    background: linear-gradient(135deg, #0b7d75, #4f7fe8);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 16px 34px rgba(15, 127, 119, .32);
}

.android-fab span {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 2px solid rgba(255, 255, 255, .82);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 950;
}

body.android-app-body .android-drawer {
    background: #fefbff !important;
}

body.android-app-body .android-drawer-nav a {
    min-height: 52px !important;
    border-radius: 26px !important;
}

body.android-app-body .android-drawer-nav a.active {
    background: #d5efe9 !important;
}

/* Android v3: clean white production surface */
body.android-app-body {
    background: #ffffff !important;
}

body.android-app-body .android-top-appbar,
body.android-app-body .mobile-bottom-nav.android-bottom-nav,
body.android-app-body .android-drawer {
    background: #ffffff !important;
}

body.android-app-body .mobile-scan-panel,
body.android-app-body .mobile-page-title,
body.android-app-body .mobile-order-hero,
body.android-app-body .mobile-machine-hero,
body.android-app-body .mobile-list-section,
body.android-app-body .mobile-form-card,
body.android-app-body .mobile-work-card,
body.android-app-body .mobile-inventory-card,
body.android-app-body .mobile-part-card,
body.android-app-body .mobile-doc-card,
body.android-app-body .mobile-stock-card,
body.android-app-body .mobile-message-card,
body.android-app-body .mobile-step-card,
body.android-app-body .mobile-details-card,
body.android-app-body .mobile-metric-card {
    background: #ffffff !important;
    border: 1px solid #e8eeee !important;
    box-shadow: none !important;
}

body.android-app-body .mobile-scanner,
body.android-app-body .mobile-scanner.compact {
    background: #f7faf9 !important;
    border: 1px solid #e3ecea !important;
}

body.android-app-body .mobile-metric-card.accent-work,
body.android-app-body .mobile-metric-card.accent-request,
body.android-app-body .mobile-metric-card.accent-stock {
    background: #ffffff !important;
}

/* Android v4: white native app, not responsive desktop */
body.android-native-v4 {
    background: #ffffff !important;
    color: #172326 !important;
}

body.android-native-v4 .android-top-appbar {
    height: calc(60px + env(safe-area-inset-top)) !important;
    background: #ffffff !important;
    border-bottom: 1px solid #edf2f1 !important;
    box-shadow: 0 2px 12px rgba(15, 35, 38, .06) !important;
}

body.android-native-v4 .android-menu-button {
    background: #f2f6f5 !important;
}

body.android-native-v4 .android-avatar {
    background: #0b7d75 !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

body.android-native-v4 .android-app-main {
    max-width: 480px !important;
    padding: 0 14px !important;
}

.android-home-screen {
    display: grid;
    gap: 14px;
}

.android-home-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 2px 0;
}

.android-home-status span,
.android-card-title span,
.android-section-row span {
    display: block;
    color: #69777a;
    font-size: 12px;
    font-weight: 850;
}

.android-home-status h1 {
    margin: 2px 0 0;
    color: #172326;
    font-size: 26px;
    line-height: 1.08;
}

.android-home-status a {
    display: inline-grid;
    place-items: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 21px;
    background: #f2f6f5;
    color: #173331;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.android-scan-card,
.android-list-panel {
    border: 1px solid #e8eeee;
    border-radius: 30px;
    background: #ffffff;
}

.android-scan-card {
    display: grid;
    gap: 14px;
    padding: 16px;
}

.android-card-title,
.android-section-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.android-card-title h2,
.android-section-row h2 {
    margin: 2px 0 0;
    color: #172326;
    font-size: 20px;
    line-height: 1.12;
}

.android-card-title b {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 16px;
    background: #0b7d75;
    color: #ffffff;
    font-size: 13px;
}

.android-scanner-stage {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 248px;
    overflow: hidden;
    border: 1px solid #e2ecea;
    border-radius: 28px;
    background: #f8fbfa;
}

.android-scanner-stage video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.android-scan-target {
    position: relative;
    width: min(68%, 240px);
    aspect-ratio: 1;
}

.android-scan-target span {
    position: absolute;
    width: 38px;
    height: 38px;
    border-color: #0b7d75;
}

.android-scan-target span:nth-child(1) {
    top: 0;
    left: 0;
    border-top: 4px solid #0b7d75;
    border-left: 4px solid #0b7d75;
    border-radius: 18px 0 0 0;
}

.android-scan-target span:nth-child(2) {
    top: 0;
    right: 0;
    border-top: 4px solid #0b7d75;
    border-right: 4px solid #0b7d75;
    border-radius: 0 18px 0 0;
}

.android-scan-target span:nth-child(3) {
    right: 0;
    bottom: 0;
    border-right: 4px solid #0b7d75;
    border-bottom: 4px solid #0b7d75;
    border-radius: 0 0 18px 0;
}

.android-scan-target span:nth-child(4) {
    bottom: 0;
    left: 0;
    border-bottom: 4px solid #0b7d75;
    border-left: 4px solid #0b7d75;
    border-radius: 0 0 0 18px;
}

.android-scan-actions,
.android-code-search {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.android-code-search {
    grid-template-columns: minmax(0, 1fr) auto;
}

.android-primary-action,
.android-secondary-action,
.android-code-search button {
    min-height: 52px;
    border: 0;
    border-radius: 26px;
    font-size: 14px;
    font-weight: 950;
}

.android-primary-action,
.android-code-search button {
    background: #0b7d75;
    color: #ffffff;
}

.android-secondary-action {
    background: #edf4f2;
    color: #173331;
}

.android-code-search input {
    min-width: 0;
    min-height: 52px;
    padding: 0 16px;
    border: 1px solid #dce8e6;
    border-radius: 26px;
    background: #ffffff;
    color: #172326;
    font-size: 16px;
}

.android-status-text,
.android-helper,
.android-empty {
    margin: 0;
    color: #69777a;
    font-size: 13px;
    line-height: 1.35;
}

.android-quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.android-action-tile {
    display: grid;
    gap: 7px;
    min-height: 124px;
    padding: 14px;
    border: 1px solid #e8eeee;
    border-radius: 28px;
    background: #ffffff;
    color: #172326;
    text-decoration: none;
}

.android-action-tile span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 32px;
    border-radius: 16px;
    background: #edf4f2;
    color: #0b625d;
    font-size: 12px;
    font-weight: 950;
}

.android-action-tile.primary span {
    background: #0b7d75;
    color: #ffffff;
}

.android-action-tile strong {
    align-self: end;
    font-size: 15px;
    line-height: 1.15;
}

.android-action-tile small {
    color: #69777a;
    font-size: 12px;
    line-height: 1.25;
}

.android-list-panel {
    display: grid;
    gap: 12px;
    padding: 14px;
}

.android-section-row a {
    color: #0b625d;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.android-list-stack {
    display: grid;
    gap: 8px;
}

.android-work-row,
.android-stock-row {
    display: grid;
    gap: 6px;
    padding: 13px;
    border-radius: 22px;
    background: #f8fbfa;
    color: #172326;
    text-decoration: none;
}

.android-work-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.android-work-row span,
.android-stock-row span {
    color: #69777a;
    font-size: 12px;
}

.android-work-row strong,
.android-stock-row strong {
    display: block;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.android-work-row small {
    display: block;
    overflow: hidden;
    color: #69777a;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.android-work-row em {
    align-self: start;
    padding: 5px 8px;
    border-radius: 14px;
    background: #edf4f2;
    color: #0b625d;
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
}

body.android-native-v4 .mobile-bottom-nav.android-bottom-nav {
    background: #ffffff !important;
    border-top: 1px solid #edf2f1 !important;
    box-shadow: 0 -4px 18px rgba(15, 35, 38, .08) !important;
}

body.android-native-v4 .android-fab {
    width: 62px;
    height: 62px;
    border-radius: 20px;
    background: #0b7d75;
    box-shadow: 0 12px 28px rgba(11, 125, 117, .28);
}

@media (max-width: 370px) {
    .android-quick-actions,
    .android-scan-actions,
    .android-code-search {
        grid-template-columns: 1fr;
    }

    .android-work-row {
        grid-template-columns: 1fr;
    }
}

/* Android v7: pure white background and white surfaces */
body.android-native-v4,
body.android-native-v4 .android-top-appbar,
body.android-native-v4 .android-drawer,
body.android-native-v4 .mobile-bottom-nav.android-bottom-nav,
body.android-native-v4 .android-scan-card,
body.android-native-v4 .android-list-panel,
body.android-native-v4 .android-action-tile,
body.android-native-v4 .android-scanner-stage,
body.android-native-v4 .android-work-row,
body.android-native-v4 .android-stock-row,
body.android-native-v4 .mobile-scan-panel,
body.android-native-v4 .mobile-page-title,
body.android-native-v4 .mobile-order-hero,
body.android-native-v4 .mobile-machine-hero,
body.android-native-v4 .mobile-list-section,
body.android-native-v4 .mobile-form-card,
body.android-native-v4 .mobile-work-card,
body.android-native-v4 .mobile-inventory-card,
body.android-native-v4 .mobile-part-card,
body.android-native-v4 .mobile-doc-card,
body.android-native-v4 .mobile-stock-card,
body.android-native-v4 .mobile-message-card,
body.android-native-v4 .mobile-step-card,
body.android-native-v4 .mobile-details-card,
body.android-native-v4 .mobile-metric-card {
    background: #ffffff !important;
    box-shadow: none !important;
}

body.android-native-v4 .android-menu-button,
body.android-native-v4 .android-home-status a,
body.android-native-v4 .android-secondary-action,
body.android-native-v4 .android-action-tile span,
body.android-native-v4 .android-work-row em,
body.android-native-v4 .mobile-action:not(.primary),
body.android-native-v4 .mobile-small-action,
body.android-native-v4 .mobile-toolbar a {
    background: #ffffff !important;
    border: 1px solid #e4ecea !important;
}

body.android-native-v4 .android-scan-target span {
    background: transparent !important;
}
