html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}
/* ---------- ARMS ---------- */

.top-row {
    background: #0B5ED7;
    color: white;
    height: 60px;
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
}

.sidebar {
    background: #1E293B;
}

.sidebar .nav-link {
    color: #E2E8F0;
    border-radius: 8px;
    margin: 4px 8px;
}

.sidebar .nav-link:hover {
    background: #334155;
    color: white;
}

.sidebar .active {
    background: #0B5ED7;
    color: white !important;
}

.card {
    border-radius: 12px;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

table {
    border-radius: 10px;
    overflow: hidden;
}

.btn-primary {
    border-radius: 8px;
}

.btn-warning {
    border-radius: 8px;
}

.btn-danger {
    border-radius: 8px;
}
.arms-header {
    justify-content: space-between;
}

.arms-user {
    font-size: 14px;
    font-weight: normal;
    opacity: .95;
}
.login-box {
    width: 360px;
    margin: 100px auto;
    padding: 30px;
    border-radius: 14px;
    background: white;
    box-shadow: 0 4px 18px rgba(0,0,0,.2);
}
/* =========================
   ARMS PROFESSIONAL UI
   ========================= */

:root {
    --arms-primary: #1f4e79;
    --arms-primary-dark: #163a59;
    --arms-accent: #0ea5e9;

    --arms-bg: #f4f7fb;
    --arms-surface: #ffffff;
    --arms-sidebar: #0f172a;
    --arms-sidebar-hover: #1e293b;

    --arms-text: #172033;
    --arms-muted: #64748b;
    --arms-border: #dbe3ee;

    --arms-success: #16a34a;
    --arms-warning: #f59e0b;
    --arms-danger: #dc2626;

    --arms-radius: 14px;
    --arms-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

html,
body {
    margin: 0;
    min-height: 100%;
    background: var(--arms-bg);
    color: var(--arms-text);
}

.arms-app {
    min-height: 100vh;
    display: flex;
    background: var(--arms-bg);
}

.arms-sidebar {
    width: 270px;
    min-width: 270px;
    min-height: 100vh;
    background: var(--arms-sidebar);
    color: white;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
}

.arms-main {
    flex: 1;
    min-width: 0;
}

.arms-topbar {
    min-height: 76px;
    padding: 14px 28px;
    background: var(--arms-surface);
    border-bottom: 1px solid var(--arms-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: sticky;
    top: 0;
    z-index: 20;
}

.arms-topbar-title {
    display: flex;
    flex-direction: column;
}

.arms-page-brand {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--arms-primary-dark);
    letter-spacing: 0.02em;
}

.arms-page-description {
    color: var(--arms-muted);
    font-size: 0.85rem;
}

.arms-topbar-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.arms-version {
    color: var(--arms-muted);
    font-size: 0.8rem;
}

.arms-user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        var(--arms-primary),
        var(--arms-accent)
    );
    color: white;
    display: grid;
    place-items: center;
    font-weight: 800;
}

.arms-user-details {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.arms-user-details strong {
    font-size: 0.92rem;
}

.arms-user-details span {
    color: var(--arms-muted);
    font-size: 0.78rem;
}

.arms-logout-button {
    border: 1px solid var(--arms-border);
    border-radius: 10px;
    padding: 8px 12px;
    color: var(--arms-text);
    text-decoration: none;
    background: white;
    transition: 0.2s ease;
}

.arms-logout-button:hover {
    color: white;
    background: var(--arms-danger);
    border-color: var(--arms-danger);
}

.arms-content {
    padding: 28px;
}

.arms-sidebar-header {
    padding: 22px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.arms-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
}

.arms-logo:hover {
    color: white;
}

.arms-logo-mark {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 1.35rem;
    font-weight: 900;
    background: linear-gradient(
        135deg,
        var(--arms-primary),
        var(--arms-accent)
    );
}

.arms-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.arms-logo-text strong {
    font-size: 1.15rem;
    letter-spacing: 0.08em;
}

.arms-logo-text small {
    color: #94a3b8;
    font-size: 0.72rem;
}

.arms-navigation {
    flex: 1;
    padding: 18px 12px;
}

.arms-nav-section {
    margin-bottom: 22px;
}

.arms-nav-section-title {
    color: #64748b;
    text-transform: uppercase;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    padding: 0 12px 8px;
}

.arms-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 10px 12px;
    margin-bottom: 5px;
    border-radius: 10px;
    text-decoration: none;
    color: #cbd5e1;
    transition: 0.18s ease;
}

.arms-nav-link:hover {
    background: var(--arms-sidebar-hover);
    color: white;
}

.arms-nav-link.active {
    background: linear-gradient(
        90deg,
        var(--arms-primary),
        #2563eb
    );
    color: white;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
}

.arms-nav-icon {
    width: 24px;
    display: inline-grid;
    place-items: center;
    font-size: 1rem;
    font-weight: 800;
}

.arms-sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.arms-sidebar-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
    font-size: 0.78rem;
}

.arms-status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--arms-success);
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.14);
}

/* Shared surfaces */

.card,
.arms-card {
    background: var(--arms-surface);
    border: 1px solid var(--arms-border);
    border-radius: var(--arms-radius);
    box-shadow: var(--arms-shadow);
}

table {
    background: white;
}

.table > :not(caption) > * > * {
    padding: 0.85rem 0.9rem;
    border-bottom-color: var(--arms-border);
}

.btn {
    border-radius: 9px;
    font-weight: 600;
}

.form-control,
.form-select {
    border-radius: 9px;
    border-color: var(--arms-border);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--arms-accent);
    box-shadow: 0 0 0 0.2rem rgba(14, 165, 233, 0.13);
}

/* Responsive layout is maintained in css/arms-mobile.css. */

/* =========================
   ARMS DASHBOARD 2.0
   ========================= */

.arms-dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.arms-dashboard-header h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 800;
    color: var(--arms-text);
}

.arms-dashboard-header p {
    margin: 6px 0 0;
    color: var(--arms-muted);
}

.arms-dashboard-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.arms-dashboard-loading {
    padding: 40px;
    text-align: center;
    color: var(--arms-muted);
}

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

.arms-stat-card {
    min-height: 150px;
    padding: 22px;
    border: 1px solid var(--arms-border);
    border-radius: 18px;
    background: var(--arms-surface);
    box-shadow: var(--arms-shadow);
    display: flex;
    align-items: center;
    gap: 18px;
    position: relative;
    overflow: hidden;
}

.arms-stat-card::after {
    content: "";
    position: absolute;
    inset: auto -35px -35px auto;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    opacity: 0.08;
    background: currentColor;
}

.arms-stat-icon {
    width: 54px;
    height: 54px;
    min-width: 54px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: white;
    font-size: 1.4rem;
    font-weight: 900;
}

.arms-stat-card > div:last-child {
    display: flex;
    flex-direction: column;
}

.arms-stat-label {
    color: var(--arms-muted);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.arms-stat-value {
    margin: 2px 0;
    font-size: 2.5rem;
    line-height: 1;
    color: var(--arms-text);
}

.arms-stat-card small {
    color: var(--arms-muted);
}

.arms-stat-danger {
    color: var(--arms-danger);
}

.arms-stat-danger .arms-stat-icon {
    background: var(--arms-danger);
}

.arms-stat-warning {
    color: var(--arms-warning);
}

.arms-stat-warning .arms-stat-icon {
    background: var(--arms-warning);
}

.arms-stat-info {
    color: var(--arms-accent);
}

.arms-stat-info .arms-stat-icon {
    background: var(--arms-accent);
}

.arms-stat-success {
    color: var(--arms-success);
}

.arms-stat-success .arms-stat-icon {
    background: var(--arms-success);
}

.arms-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
    gap: 20px;
    align-items: start;
}

.arms-dashboard-panel {
    background: var(--arms-surface);
    border: 1px solid var(--arms-border);
    border-radius: 18px;
    box-shadow: var(--arms-shadow);
    overflow: hidden;
}

.arms-latest-panel,
.arms-plant-status-panel {
    grid-column: 1 / -1;
}

.arms-panel-header {
    min-height: 78px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--arms-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.arms-panel-header h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--arms-text);
}

.arms-panel-header p {
    margin: 4px 0 0;
    color: var(--arms-muted);
    font-size: 0.84rem;
}

.arms-panel-header a {
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
}

.arms-empty-state {
    padding: 32px 22px;
    text-align: center;
    color: var(--arms-muted);
}

.arms-ticket-link {
    font-weight: 800;
    text-decoration: none;
}

.arms-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    white-space: nowrap;
}

.arms-badge-danger {
    background: rgba(220, 38, 38, 0.1);
    color: #b91c1c;
}

.arms-badge-warning {
    background: rgba(245, 158, 11, 0.14);
    color: #b45309;
}

.arms-badge-info {
    background: rgba(14, 165, 233, 0.12);
    color: #0369a1;
}

.arms-badge-success {
    background: rgba(22, 163, 74, 0.12);
    color: #15803d;
}

.arms-badge-muted {
    background: rgba(100, 116, 139, 0.12);
    color: #475569;
}

.arms-ranking-list,
.arms-section-list {
    padding: 12px 22px 22px;
}

.arms-ranking-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
}

.arms-ranking-position {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: #eef4fb;
    color: var(--arms-primary);
    font-size: 0.8rem;
    font-weight: 900;
}

.arms-ranking-content {
    flex: 1;
}

.arms-ranking-title {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.arms-ranking-title span {
    font-weight: 700;
}

.arms-ranking-title strong {
    color: var(--arms-primary);
}

.arms-ranking-bar {
    height: 7px;
    overflow: hidden;
    background: #edf2f7;
    border-radius: 999px;
}

.arms-ranking-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--arms-primary), var(--arms-accent));
}

.arms-section-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--arms-border);
}

.arms-section-item:last-child {
    border-bottom: 0;
}

.arms-section-item > div:first-child {
    display: flex;
    flex-direction: column;
}

.arms-section-item span {
    color: var(--arms-muted);
    font-size: 0.8rem;
}

.arms-section-count {
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: #eef4fb;
    color: var(--arms-primary);
    font-size: 1.1rem;
    font-weight: 900;
}

.arms-machine-section {
    padding: 18px 22px 0;
}

.arms-machine-section:last-child {
    padding-bottom: 22px;
}

.arms-machine-section h3 {
    margin: 0 0 12px;
    color: var(--arms-muted);
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.arms-machine-status-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.arms-machine-status-card {
    min-height: 82px;
    padding: 14px 16px;
    border: 1px solid var(--arms-border);
    border-radius: 14px;
    text-decoration: none;
    color: var(--arms-text);
    background: white;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: 0.18s ease;
}

.arms-machine-status-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.09);
    color: var(--arms-text);
}

.arms-machine-status-dot {
    width: 12px;
    height: 12px;
    min-width: 12px;
    border-radius: 50%;
}

.arms-machine-status-card > div {
    display: flex;
    flex-direction: column;
}

.arms-machine-status-card strong {
    font-size: 0.9rem;
}

.arms-machine-status-card span:last-child {
    color: var(--arms-muted);
    font-size: 0.75rem;
}

.arms-machine-running .arms-machine-status-dot {
    background: var(--arms-success);
    box-shadow: 0 0 0 5px rgba(22, 163, 74, 0.12);
}

.arms-machine-attention .arms-machine-status-dot {
    background: var(--arms-warning);
    box-shadow: 0 0 0 5px rgba(245, 158, 11, 0.14);
}

.arms-machine-maintenance .arms-machine-status-dot {
    background: var(--arms-accent);
    box-shadow: 0 0 0 5px rgba(14, 165, 233, 0.12);
}

.arms-machine-stopped .arms-machine-status-dot {
    background: var(--arms-danger);
    box-shadow: 0 0 0 5px rgba(220, 38, 38, 0.12);
}

.arms-machine-inactive {
    opacity: 0.58;
}

.arms-machine-inactive .arms-machine-status-dot {
    background: #94a3b8;
}

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

    .arms-machine-status-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .arms-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .arms-latest-panel,
    .arms-plant-status-panel {
        grid-column: auto;
    }

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

@media (max-width: 600px) {
    .arms-dashboard-header {
        align-items: stretch;
        flex-direction: column;
    }

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

    .arms-machine-status-grid {
        grid-template-columns: 1fr;
    }

    .arms-stat-card {
        min-height: 126px;
    }
}


/* ARMS - Scrollable ticket timeline */






/* Ticket timeline - forced scrolling */








/* Ticket Details - görgethető jobb oldali idővonal */

/* Ticket Details - Timeline height alignment */
.ticket-timeline-card {
    min-height: 0;
}

.ticket-timeline-card .timeline-scroll {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
}

.timeline-scroll::-webkit-scrollbar {
    width: 8px;
}

.timeline-scroll::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 8px;
}

.timeline-scroll::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 8px;
}

/* ARMS required-field flash */
.arms-required-flash {
    border: 3px solid #dc2626 !important;
    box-shadow:
        0 0 0 5px rgba(220, 38, 38, 0.22),
        0 0 18px rgba(220, 38, 38, 0.38) !important;
    animation: arms-required-shake 0.8s ease-in-out;
}

@keyframes arms-required-shake {
    0%, 100% {
        transform: translateX(0);
    }

    15%, 45%, 75% {
        transform: translateX(-7px);
    }

    30%, 60%, 90% {
        transform: translateX(7px);
    }
}

/* Dashboard machine ticket status */
.arms-machine-status-content {
    width: 100%;
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.arms-machine-ticket-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.arms-machine-ticket-status {
    flex: 0 0 auto;
    min-width: 132px;
    padding: 9px 14px;
    font-size: 0.95rem;
    font-weight: 900;
    text-align: center;
    justify-content: center;
}

/* ARMS language selector */
.arms-language-switcher {
    display: inline-flex;
    align-items: center;
    padding: 3px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    background: #f8fafc;
}

.arms-language-button {
    min-width: 38px;
    padding: 5px 9px;
    border-radius: 7px;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    text-decoration: none;
}

.arms-language-button:hover {
    color: #0f172a;
    background: #e2e8f0;
}

.arms-language-button.active {
    color: #ffffff;
    background: #2563eb;
}

/* Mobile application shell is maintained in css/arms-mobile.css. */

/* =========================================================
   ARMS branding
   ========================================================= */

.arms-sidebar-logo {
    display: block;
    width: 100%;
    max-width: 225px;
    height: auto;
}

.arms-topbar-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.arms-header-mark {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
}

.arms-header-brand-text {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.arms-content {
    position: relative;
    isolation: isolate;
}

.arms-content::before {
    position: fixed;
    right: 3vw;
    bottom: 2vh;
    z-index: -1;
    width: min(55vw, 720px);
    aspect-ratio: 1;
    background:
        url("/images/arms-mark.svg")
        center / contain no-repeat;
    content: "";
    opacity: 0.025;
    pointer-events: none;
    transform: rotate(-8deg);
}

@media (max-width: 991.98px) {
    .arms-sidebar-logo {
        max-width: 205px;
    }

    .arms-header-mark {
        width: 34px;
        height: 34px;
    }

    .arms-content::before {
        right: -18vw;
        bottom: 5vh;
        width: 90vw;
        opacity: 0.02;
    }
}

@media (max-width: 575.98px) {
    .arms-page-description {
        display: none;
    }

    .arms-header-mark {
        width: 32px;
        height: 32px;
    }
}

/* =========================================================
   ARMS modern header
   ========================================================= */

.arms-topbar {
    min-height: 76px;
    padding: 10px 22px;
    border-bottom: 1px solid #dbe5f0;
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.98),
            rgba(244, 248, 252, 0.98)
        );
    box-shadow: 0 3px 16px rgba(15, 23, 42, 0.06);
}

.arms-topbar-title {
    display: flex;
    align-items: center;
    gap: 13px;
}

.arms-header-mark {
    width: 43px;
    height: 43px;
    flex: 0 0 auto;
    filter:
        drop-shadow(
            0 5px 8px rgba(0, 136, 255, 0.18)
        );
}

.arms-header-brand-text {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    line-height: 1.15;
}

.arms-page-brand {
    color: #0b2e50;
    font-size: 1.22rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.arms-page-description {
    margin-top: 4px;
    color: #64748b;
    font-size: 0.77rem;
    font-weight: 600;
    letter-spacing: 0.025em;
}

.arms-topbar-user {
    align-items: center;
    gap: 12px;
}

.arms-account-actions {
    display: flex;
    min-width: 138px;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.arms-logout-button {
    min-width: 108px;
    text-align: center;
}

.arms-header-system-status {
    display: flex;
    min-width: 138px;
    padding-top: 5px;
    border-top: 1px solid #dbe5f0;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.arms-header-system-line {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 700;
}

.arms-header-plan {
    color: #94a3b8;
    font-size: 0.68rem;
    font-weight: 600;
}

.arms-header-system-status .arms-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow:
        0 0 0 3px rgba(34, 197, 94, 0.13),
        0 0 8px rgba(34, 197, 94, 0.45);
}

@media (max-width: 991.98px) {
    .arms-topbar {
        min-height: 64px;
        padding: 8px 12px;
    }

    .arms-header-mark {
        width: 36px;
        height: 36px;
    }

    .arms-account-actions {
        min-width: auto;
    }

    .arms-header-system-status {
        display: none;
    }

    .arms-logout-button {
        min-width: auto;
    }
}

@media (max-width: 575.98px) {
    .arms-header-brand-text {
        display: none;
    }
}

/* =========================================================
   Fixed desktop sidebar
   ========================================================= */

@media (min-width: 992px) {
    .arms-app {
        min-height: 100vh;
    }

    .arms-sidebar {
        position: fixed !important;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 1040;
        width: 280px;
        height: 100vh !important;
        overflow: hidden !important;
    }

    .arms-main {
        width: calc(100% - 280px);
        min-height: 100vh;
        margin-left: 280px;
    }

    .arms-navigation {
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .arms-topbar {
        position: sticky;
        top: 0;
        z-index: 1030;
    }
}

/* =========================================================
   ARMS header scope layout
   ========================================================= */

.arms-topbar {
    display: flex;
    min-height: 78px;
    padding: 10px 22px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.arms-header-context {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 13px;
}

.arms-header-context-mark {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    filter: drop-shadow(0 5px 8px rgba(14, 165, 233, 0.2));
}

.arms-header-context-text {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.arms-header-context-label {
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.arms-header-context-path {
    max-width: 620px;
    overflow: hidden;
    color: #0f2942;
    font-size: 1rem;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.arms-header-right {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
}

.arms-header-controls {
    display: flex;
    align-items: center;
    gap: 14px;
}

.arms-header-version {
    padding-right: 14px;
    border-right: 1px solid #dbe5f0;
    color: #7b8da3;
    font-size: 0.72rem;
    font-weight: 700;
}

.arms-header-user {
    display: flex;
    min-width: 150px;
    align-items: center;
    gap: 10px;
}

.arms-account-actions {
    display: flex;
    min-width: 132px;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
}

.arms-logout-button {
    width: 100%;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.arms-header-system-status {
    width: 100%;
    min-width: 0;
    padding-top: 5px;
    align-items: flex-end;
}

@media (max-width: 1100px) {
    .arms-header-context-path {
        max-width: 340px;
    }

    .arms-header-version {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .arms-topbar {
        min-height: 64px;
        padding: 8px 12px;
        gap: 10px;
    }

    .arms-header-context-mark {
        width: 34px;
        height: 34px;
    }

    .arms-header-context-label,
    .arms-user-details,
    .arms-header-system-status {
        display: none !important;
    }

    .arms-header-context-path {
        max-width: 36vw;
        font-size: 0.86rem;
    }

    .arms-header-user {
        min-width: auto;
    }

    .arms-header-controls {
        gap: 7px;
    }

    .arms-account-actions {
        min-width: auto;
    }
}

@media (max-width: 575.98px) {
    .arms-header-context-mark,
    .arms-language-switcher {
        display: none;
    }

    .arms-header-context-path {
        max-width: 38vw;
        font-size: 0.78rem;
    }
}

