:root {
    --me-bg: #f4f7fb;
    --me-bg-soft: #f8fafc;
    --me-panel: #ffffff;
    --me-text: #172033;
    --me-muted: #64748b;
    --me-border: rgba(148, 163, 184, .28);
    --me-primary: #14213d;
    --me-primary-soft: rgba(20, 33, 61, .08);
    --me-success-bg: #ecfdf5;
    --me-success-text: #047857;
    --me-danger-bg: #fff1f2;
    --me-danger-border: #fecaca;
    --me-danger-text: #991b1b;
    --me-shadow: 0 18px 44px rgba(15, 23, 42, .08);
}

.me-demo-page {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(420px, 0.9fr);
    gap: 2rem;
    min-height: 100vh;
    padding: 2rem;
    background:
        radial-gradient(circle at left bottom, rgba(56, 112, 255, 0.18), transparent 24rem),
        radial-gradient(circle at center top, rgba(108, 155, 255, 0.12), transparent 26rem),
        #f7faff;
}

.me-demo-story,
.me-demo-form-column {
    min-width: 0;
}

.me-demo-brand img {
    width: 12rem;
    height: auto;
}

.me-demo-copy h1 {
    margin: 1.25rem 0 0.5rem;
    color: #0f1f5c;
    font-size: clamp(2.4rem, 4vw, 4.2rem);
    line-height: 1.05;
}

.me-demo-copy h2 {
    margin: 0 0 1rem;
    color: #4167d9;
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    font-weight: 500;
}

.me-demo-copy p {
    max-width: 46rem;
    color: #51618c;
    font-size: 1.08rem;
    line-height: 1.8;
}

.me-demo-inline-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.me-demo-inline-pills span,
.me-demo-tag-cloud span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(50, 92, 204, 0.12);
    box-shadow: 0 12px 28px rgba(25, 58, 137, 0.06);
    color: #2241a6;
    padding: 0.72rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.me-demo-benefits {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.me-demo-benefit-card,
.me-demo-side-card,
.me-demo-form-card,
.me-demo-steps {
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(36, 79, 196, 0.08);
    box-shadow: 0 18px 48px rgba(18, 43, 107, 0.08);
}

.me-demo-benefit-card {
    padding: 1.4rem;
}

.me-demo-benefit-card strong,
.me-demo-steps h3,
.me-demo-side-card h3 {
    display: block;
    color: #0f1f5c;
    margin-bottom: 0.45rem;
    font-size: 1.08rem;
}

.me-demo-benefit-card p,
.me-demo-side-card p,
.me-demo-side-card li,
.me-demo-admin-kv,
.me-demo-admin-detail p {
    color: #5d6a8f;
    line-height: 1.65;
}

.me-demo-laptop-visual {
    position: relative;
    margin: 1rem 0 1.5rem;
}

.me-demo-laptop-shell {
    display: grid;
    grid-template-columns: 5rem 1fr;
    min-height: 18rem;
    overflow: hidden;
    border-radius: 1.75rem;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(33, 76, 191, 0.1);
    box-shadow: 0 28px 60px rgba(22, 53, 128, 0.12);
}

.me-demo-laptop-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem 0.6rem;
    background: linear-gradient(180deg, #1760ff, #1239c4);
    color: #fff;
}

.me-demo-laptop-side span {
    font-size: 1.8rem;
    font-weight: 800;
}

.me-demo-laptop-side i {
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.42);
}

.me-demo-laptop-main {
    padding: 1rem 1.25rem;
}

.me-demo-laptop-top {
    color: #1f3574;
    font-weight: 700;
    margin-bottom: 0.85rem;
}

.me-demo-laptop-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.me-demo-laptop-grid article {
    border-radius: 1.1rem;
    background: #f9fbff;
    border: 1px solid rgba(28, 77, 203, 0.1);
    padding: 1rem;
}

.me-demo-laptop-grid span {
    display: block;
    color: #3956a2;
    font-size: 0.9rem;
}

.me-demo-laptop-grid strong {
    display: block;
    margin-top: 0.35rem;
    color: #162f70;
    font-size: 1.3rem;
}

.me-demo-steps {
    padding: 1.35rem 1.5rem;
}

.me-demo-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.me-demo-steps-grid article {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.me-demo-steps-grid strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: #eaf1ff;
    color: #1952db;
    flex: 0 0 auto;
}

.me-demo-form-column {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 16rem;
    gap: 1rem;
}

.me-demo-form-card {
    padding: 1.5rem;
}

.me-demo-form-header {
    margin-bottom: 1rem;
    text-align: center;
}

.me-demo-form-header h2 {
    margin: 0 0 0.35rem;
    color: #0f1f5c;
    font-size: 2rem;
}

.me-demo-form-header p {
    margin: 0;
    color: #7280a5;
}

.me-demo-form-section-title {
    margin: 1rem 0 0.65rem;
    color: #2150d6;
    font-weight: 700;
}

.me-demo-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.me-demo-field-span,
.me-demo-textarea {
    grid-column: 1 / -1;
}

.me-demo-module-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.me-demo-module-option {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 0.8rem;
    border-radius: 1rem;
    border: 1px solid rgba(36, 77, 197, 0.14);
    background: #fff;
}

.me-demo-check-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 0.5rem 0;
}

.me-demo-action-stack {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.me-demo-sidebar {
    display: grid;
    gap: 1rem;
}

.me-demo-side-card {
    padding: 1.2rem;
}

.me-demo-side-card.is-primary {
    background: linear-gradient(180deg, #175dff, #123fc8);
    color: #fff;
}

.me-demo-side-card.is-primary h3,
.me-demo-side-card.is-primary li {
    color: #fff;
}

.me-demo-side-card ul,
.me-demo-side-card ol {
    margin: 0.5rem 0 0;
    padding-left: 1.15rem;
}

.me-demo-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.me-demo-side-card a {
    display: block;
    margin-top: 0.45rem;
    color: #1954dd;
    font-weight: 600;
    text-decoration: none;
}

.me-demo-admin-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 1rem;
}

.me-demo-admin-table,
.me-demo-admin-detail {
    padding: 1rem;
    border-radius: 1.25rem;
    background: #fff;
    border: 1px solid rgba(36, 79, 196, 0.08);
}

.me-demo-admin-detail-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.me-demo-admin-detail-header h3 {
    margin: 0;
    color: #132764;
}

.me-demo-admin-detail-header p {
    margin: 0.3rem 0 0;
}

.me-demo-admin-kv {
    display: grid;
    gap: 0.45rem;
    margin: 1rem 0;
}

.me-demo-admin-tags {
    margin-bottom: 1rem;
}

.me-demo-admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

@media (max-width: 1320px) {
    .me-demo-page,
    .me-demo-form-column,
    .me-demo-admin-layout {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 920px) {
    .me-demo-page {
        padding: 1rem;
    }

    .me-demo-benefits,
    .me-demo-form-grid,
    .me-demo-module-grid,
    .me-demo-steps-grid,
    .me-demo-sidebar {
        grid-template-columns: 1fr;
    }

    .me-demo-inline-pills {
        flex-direction: column;
    }
}

.me-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 292px 1fr;
    background: radial-gradient(circle at top right, rgba(37, 99, 235, .11), transparent 30%), var(--me-bg);
    color: var(--me-text);
}

.me-sidebar {
    min-width: 0;
    background: linear-gradient(180deg, #14213d 0%, #0b1324 100%);
    color: white;
    padding: 22px 18px;
    box-shadow: 12px 0 36px rgba(15, 23, 42, .14);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.me-brand {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 18px;
    flex: 0 0 auto;
}

.me-brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .13);
    font-weight: 800;
    letter-spacing: .04em;
}

.me-brand-title {
    font-size: 18px;
    font-weight: 800;
}

.me-brand-subtitle,
.me-page-kicker,
.me-nav-group-title,
.me-context-label {
    font-size: 12px;
    opacity: .72;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.me-sidebar-context {
    display: grid;
    gap: 10px;
    margin: 0 0 18px;
    padding: 14px;
    flex: 0 0 auto;
    border-radius: 18px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .10);
}

.me-context-value {
    font-weight: 800;
    margin-top: 3px;
}

.me-nav {
    display: grid;
    gap: 22px;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
    padding-bottom: 18px;
    scrollbar-width: thin;
}

.me-nav::-webkit-scrollbar {
    width: 8px;
}

.me-nav::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
}

.me-nav-group {
    display: grid;
    gap: 8px;
}

.me-nav-group-title {
    padding: 0 12px;
    color: rgba(255,255,255,.74);
}

.me-nav-link,
.me-nav-disabled {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 10px;
    align-items: center;
    color: rgba(255,255,255,.82);
    text-decoration: none;
    padding: 12px 14px;
    border-radius: 16px;
    transition: background .16s ease, color .16s ease, transform .16s ease;
}

.me-nav-link:hover,
.me-nav-link.active {
    background: rgba(255,255,255,.12);
    color: white;
    transform: translateY(-1px);
}

.me-nav-disabled {
    opacity: .46;
    cursor: not-allowed;
}

.me-nav-icon {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, .10);
    font-weight: 800;
}

.me-nav-title {
    font-weight: 800;
}

.me-nav-description {
    font-size: 12px;
    color: rgba(255,255,255,.62);
    margin-top: 2px;
}

.me-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.me-topbar {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 28px;
    background: rgba(255,255,255,.86);
    border-bottom: 1px solid var(--me-border);
    backdrop-filter: blur(10px);
}

.me-topbar-title {
    font-size: 21px;
    font-weight: 850;
}

.me-topbar-subtitle {
    color: var(--me-muted);
    margin-top: 3px;
}

.me-topbar-context {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.me-context-chip,
.me-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 12px;
    background: var(--me-primary-soft);
    color: var(--me-primary);
    font-weight: 800;
    font-size: 13px;
}

.me-mobile-toggle {
    display: none;
    border: 1px solid var(--me-border);
    background: white;
    color: var(--me-primary);
    border-radius: 14px;
    padding: 10px 12px;
    font-weight: 800;
    cursor: pointer;
}

.me-content {
    padding: 28px;
}

.me-page-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.me-page-header h1 {
    margin: 6px 0 6px;
    font-size: 30px;
    line-height: 1.15;
}

.me-page-header p {
    margin: 0;
    color: var(--me-muted);
    max-width: 820px;
}

.me-page-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.me-card,
.me-panel {
    background: var(--me-panel);
    border: 1px solid var(--me-border);
    border-radius: 24px;
    box-shadow: var(--me-shadow);
    padding: 24px;
}

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

.me-info-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    border: 1px solid var(--me-border);
    border-radius: 22px;
    background: rgba(255,255,255,.78);
    padding: 18px;
}

.me-info-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: var(--me-primary-soft);
    color: var(--me-primary);
    font-weight: 900;
}

.me-info-title {
    font-weight: 850;
    margin-bottom: 4px;
}

.me-info-text,
.me-muted {
    color: var(--me-muted);
}

.me-button,
.me-button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    border-radius: 14px;
    padding: 9px 14px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
}

.me-button {
    background: var(--me-primary);
    color: white;
}

.me-button-secondary {
    background: white;
    color: var(--me-primary);
    border-color: var(--me-border);
}

.me-button:disabled,
.me-button-secondary:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.me-pill-success {
    background: var(--me-success-bg);
    color: var(--me-success-text);
}

.me-error {
    border: 1px solid var(--me-danger-border);
    background: var(--me-danger-bg);
    color: var(--me-danger-text);
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 18px;
}

.me-error-details {
    margin: 12px 0 0;
    max-height: 220px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
    border-radius: 14px;
    border: 1px solid rgba(153, 27, 27, .18);
    background: rgba(255, 255, 255, .72);
    padding: 12px;
    color: #7f1d1d;
    font-size: 12px;
}

.me-error-help {
    margin-top: 10px;
    color: #9f1239;
    font-size: 13px;
}

.me-definition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.me-definition-grid > div {
    border: 1px solid var(--me-border);
    border-radius: 18px;
    padding: 14px;
    background: var(--me-bg-soft);
}

.me-definition-grid dt {
    color: var(--me-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 6px;
}

.me-definition-grid dd {
    margin: 0;
    font-weight: 850;
}

@media (max-width: 980px) {
    .me-shell {
        grid-template-columns: 1fr;
    }

    .me-sidebar {
        display: none;
        position: static;
        height: auto;
        box-shadow: none;
        overflow: visible;
    }

    .me-sidebar-open .me-sidebar {
        display: block;
    }

    .me-mobile-toggle {
        display: inline-flex;
    }

    .me-topbar {
        align-items: flex-start;
    }

    .me-page-header {
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .me-content,
    .me-topbar {
        padding: 18px;
    }

    .me-page-header h1 {
        font-size: 25px;
    }
}

.me-section-gap {
    margin-top: 18px;
}

.me-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    align-items: end;
}

.me-field {
    display: grid;
    gap: 7px;
    color: var(--me-muted);
    font-size: 13px;
    font-weight: 800;
}

.me-field input,
.me-field select,
.me-field textarea {
    width: 100%;
    min-height: 40px;
    border: 1px solid var(--me-border);
    border-radius: 14px;
    padding: 9px 12px;
    color: var(--me-text);
    background: white;
    font: inherit;
    outline: none;
}

.me-field textarea {
    resize: vertical;
}

.me-field input:focus,
.me-field select:focus,
.me-field textarea:focus {
    border-color: rgba(20, 33, 61, .45);
    box-shadow: 0 0 0 4px rgba(20, 33, 61, .08);
}

.me-check-field {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--me-text);
    font-weight: 800;
}

.me-check-field input {
    width: 18px;
    height: 18px;
}

.me-toolbar-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
}

.me-grid-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 18px;
    align-items: start;
}

.me-table-wrap {
    overflow: auto;
}

.me-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.me-table th,
.me-table td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--me-border);
    text-align: left;
    vertical-align: top;
}

.me-table th {
    color: var(--me-muted);
    font-size: 12px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.me-row-selected {
    background: var(--me-primary-soft);
}

.me-table-actions {
    white-space: nowrap;
}

.me-table-actions .me-button-secondary {
    min-height: 34px;
    padding: 7px 10px;
    margin-right: 6px;
}

.me-pager {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
}

.me-form-stack {
    display: grid;
    gap: 14px;
}

@media (max-width: 1180px) {
    .me-grid-layout {
        grid-template-columns: 1fr;
    }
}

.me-topbar-link {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, .35);
    color: #334155;
    text-decoration: none;
    background: rgba(255, 255, 255, .75);
    font-size: 13px;
    font-weight: 700;
}

.me-topbar-link:hover {
    color: #0f172a;
    background: #ffffff;
}

.me-login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, .16), transparent 34%),
        radial-gradient(circle at bottom right, rgba(20, 184, 166, .14), transparent 30%),
        #f4f7fb;
}

.me-login-card {
    width: min(480px, 100%);
    padding: 30px;
    border-radius: 30px;
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(148, 163, 184, .28);
    box-shadow: 0 24px 70px rgba(15, 23, 42, .13);
    backdrop-filter: blur(18px);
}

.me-login-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.me-login-mark {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: #14213d;
    color: #ffffff;
    font-weight: 900;
    letter-spacing: .05em;
}

.me-login-title {
    font-size: 22px;
    font-weight: 900;
    color: #0f172a;
}

.me-login-subtitle {
    font-size: 13px;
    color: #64748b;
    margin-top: 2px;
}

.me-login-heading {
    margin-bottom: 24px;
}

.me-login-heading h1 {
    margin: 4px 0 8px;
    font-size: 30px;
    line-height: 1.12;
    color: #0f172a;
}

.me-login-heading p {
    margin: 0;
    color: #64748b;
    line-height: 1.55;
}

.me-login-form {
    display: grid;
    gap: 16px;
}

.me-field {
    display: grid;
    gap: 7px;
    color: #334155;
    font-size: 13px;
    font-weight: 800;
}

.me-field input {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, .48);
    background: rgba(248, 250, 252, .9);
    color: #0f172a;
    outline: none;
}

.me-field input:focus {
    border-color: rgba(37, 99, 235, .74);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .10);
    background: #ffffff;
}

.me-login-button {
    width: 100%;
    justify-content: center;
    min-height: 46px;
    margin-top: 4px;
}

.me-login-error {
    padding: 12px 14px;
    margin-bottom: 18px;
    border-radius: 16px;
    border: 1px solid #fecaca;
    background: #fff1f2;
    color: #9f1239;
    font-weight: 700;
    line-height: 1.45;
}

.me-login-note {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid rgba(148, 163, 184, .22);
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

/* Paket 11 fix4: skupljanje levog menija za rad sa embedded legacy ekranima. */
.me-brand-text {
    min-width: 0;
}

.me-sidebar-collapse {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 12px;
    background: rgba(255, 255, 255, .10);
    color: rgba(255, 255, 255, .92);
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}

.me-sidebar-collapse:hover {
    background: rgba(255, 255, 255, .18);
    color: #fff;
}

.me-sidebar-collapsed {
    grid-template-columns: 88px 1fr;
}

.me-sidebar-collapsed .me-sidebar {
    padding: 18px 12px;
}

.me-sidebar-collapsed .me-brand {
    justify-content: center;
    gap: 8px;
    margin-bottom: 18px;
}

.me-sidebar-collapsed .me-brand-text,
.me-sidebar-collapsed .me-sidebar-context,
.me-sidebar-collapsed .me-nav-group-title,
.me-sidebar-collapsed .me-nav-title,
.me-sidebar-collapsed .me-nav-description {
    display: none !important;
}

.me-sidebar-collapsed .me-nav {
    gap: 12px;
}

.me-sidebar-collapsed .me-nav-group {
    gap: 8px;
}

.me-sidebar-collapsed .me-nav-link,
.me-sidebar-collapsed .me-nav-disabled {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 10px 8px;
}

.me-sidebar-collapsed .me-nav-icon {
    width: 38px;
    height: 38px;
}

@media (max-width: 980px) {
    .me-sidebar-collapsed {
        grid-template-columns: 1fr;
    }

    .me-sidebar-collapsed .me-brand-text,
    .me-sidebar-collapsed .me-sidebar-context,
    .me-sidebar-collapsed .me-nav-group-title,
    .me-sidebar-collapsed .me-nav-title,
    .me-sidebar-collapsed .me-nav-description {
        display: block !important;
    }

    .me-sidebar-collapsed .me-nav-link,
    .me-sidebar-collapsed .me-nav-disabled {
        grid-template-columns: 32px 1fr;
        justify-items: initial;
        padding: 12px 14px;
    }
}


/* Paket 11 fix5: dugme za skupljanje menija ostaje stalno vidljivo, a skroluje se samo lista menija. */
.me-sidebar-collapse {
    flex: 0 0 auto;
}

.me-sidebar-collapsed .me-nav {
    padding-right: 0;
}

.me-sidebar-collapsed .me-brand {
    position: relative;
}

.me-sidebar-collapsed .me-sidebar-collapse {
    position: absolute;
    top: 5px;
    right: -4px;
    width: 28px;
    height: 28px;
    font-size: 16px;
}

.me-sidebar-collapsed .me-brand-mark {
    width: 42px;
    height: 42px;
}

/* Paket 11 fix6: stabilnije skupljanje menija i fiksiran header levog panela. */
.me-sidebar {
    padding: 0;
}

.me-sidebar-header {
    flex: 0 0 auto;
    position: sticky;
    top: 0;
    z-index: 30;
    padding: 22px 18px 14px;
    background: linear-gradient(180deg, #14213d 0%, #101b33 100%);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.me-sidebar-header .me-brand {
    margin-bottom: 18px;
}

.me-sidebar-header .me-sidebar-context {
    margin-bottom: 0;
}

.me-sidebar-collapse {
    flex: 0 0 auto;
    position: relative;
    z-index: 40;
    pointer-events: auto;
}

.me-nav {
    padding: 16px 14px 18px 18px;
}

.me-shell.me-sidebar-collapsed,
.me-shell[data-sidebar-collapsed="True"] {
    grid-template-columns: 88px 1fr;
}

.me-shell.me-sidebar-collapsed .me-sidebar,
.me-shell[data-sidebar-collapsed="True"] .me-sidebar {
    padding: 0;
}

.me-shell.me-sidebar-collapsed .me-sidebar-header,
.me-shell[data-sidebar-collapsed="True"] .me-sidebar-header {
    padding: 18px 12px 14px;
}

.me-shell.me-sidebar-collapsed .me-brand,
.me-shell[data-sidebar-collapsed="True"] .me-brand {
    justify-content: center;
    gap: 8px;
    margin-bottom: 0;
}

.me-shell.me-sidebar-collapsed .me-brand-mark,
.me-shell[data-sidebar-collapsed="True"] .me-brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 14px;
}

.me-shell.me-sidebar-collapsed .me-sidebar-collapse,
.me-shell[data-sidebar-collapsed="True"] .me-sidebar-collapse {
    position: absolute;
    right: -10px;
    top: 21px;
    width: 30px;
    height: 30px;
    background: #ffffff;
    color: #14213d;
    border-color: rgba(15, 23, 42, .18);
    box-shadow: 0 8px 22px rgba(15, 23, 42, .20);
}

.me-shell.me-sidebar-collapsed .me-brand-text,
.me-shell.me-sidebar-collapsed .me-sidebar-context,
.me-shell.me-sidebar-collapsed .me-nav-group-title,
.me-shell.me-sidebar-collapsed .me-nav-title,
.me-shell.me-sidebar-collapsed .me-nav-description,
.me-shell[data-sidebar-collapsed="True"] .me-brand-text,
.me-shell[data-sidebar-collapsed="True"] .me-sidebar-context,
.me-shell[data-sidebar-collapsed="True"] .me-nav-group-title,
.me-shell[data-sidebar-collapsed="True"] .me-nav-title,
.me-shell[data-sidebar-collapsed="True"] .me-nav-description {
    display: none !important;
}

.me-shell.me-sidebar-collapsed .me-nav,
.me-shell[data-sidebar-collapsed="True"] .me-nav {
    padding: 18px 10px;
    gap: 12px;
}

.me-shell.me-sidebar-collapsed .me-nav-group,
.me-shell[data-sidebar-collapsed="True"] .me-nav-group {
    gap: 8px;
}

.me-shell.me-sidebar-collapsed .me-nav-link,
.me-shell.me-sidebar-collapsed .me-nav-disabled,
.me-shell[data-sidebar-collapsed="True"] .me-nav-link,
.me-shell[data-sidebar-collapsed="True"] .me-nav-disabled {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 10px 8px;
}

.me-shell.me-sidebar-collapsed .me-nav-icon,
.me-shell[data-sidebar-collapsed="True"] .me-nav-icon {
    width: 38px;
    height: 38px;
}

@media (max-width: 980px) {
    .me-shell.me-sidebar-collapsed,
    .me-shell[data-sidebar-collapsed="True"] {
        grid-template-columns: 1fr;
    }

    .me-shell.me-sidebar-collapsed .me-brand-text,
    .me-shell.me-sidebar-collapsed .me-sidebar-context,
    .me-shell.me-sidebar-collapsed .me-nav-group-title,
    .me-shell.me-sidebar-collapsed .me-nav-title,
    .me-shell.me-sidebar-collapsed .me-nav-description,
    .me-shell[data-sidebar-collapsed="True"] .me-brand-text,
    .me-shell[data-sidebar-collapsed="True"] .me-sidebar-context,
    .me-shell[data-sidebar-collapsed="True"] .me-nav-group-title,
    .me-shell[data-sidebar-collapsed="True"] .me-nav-title,
    .me-shell[data-sidebar-collapsed="True"] .me-nav-description {
        display: block !important;
    }

    .me-shell.me-sidebar-collapsed .me-nav-link,
    .me-shell.me-sidebar-collapsed .me-nav-disabled,
    .me-shell[data-sidebar-collapsed="True"] .me-nav-link,
    .me-shell[data-sidebar-collapsed="True"] .me-nav-disabled {
        grid-template-columns: 32px 1fr;
        justify-items: initial;
        padding: 12px 14px;
    }

    .me-shell.me-sidebar-collapsed .me-sidebar-collapse,
    .me-shell[data-sidebar-collapsed="True"] .me-sidebar-collapse {
        position: static;
        right: auto;
        top: auto;
    }
}
/* Paket 12: konačni stabilizacioni sloj za skupljeni meni.
   Koristi i class i data atribut, da vizuelno stanje ostane tačno i kada se učita iz localStorage-a. */
.me-shell {
    transition: grid-template-columns .16s ease;
}

.me-shell.me-sidebar-collapsed,
.me-shell[data-sidebar-collapsed="true"] {
    grid-template-columns: 88px minmax(0, 1fr);
}

.me-shell.me-sidebar-collapsed .me-brand-text,
.me-shell.me-sidebar-collapsed .me-sidebar-context,
.me-shell.me-sidebar-collapsed .me-nav-group-title,
.me-shell.me-sidebar-collapsed .me-nav-title,
.me-shell.me-sidebar-collapsed .me-nav-description,
.me-shell[data-sidebar-collapsed="true"] .me-brand-text,
.me-shell[data-sidebar-collapsed="true"] .me-sidebar-context,
.me-shell[data-sidebar-collapsed="true"] .me-nav-group-title,
.me-shell[data-sidebar-collapsed="true"] .me-nav-title,
.me-shell[data-sidebar-collapsed="true"] .me-nav-description {
    display: none !important;
}

.me-shell.me-sidebar-collapsed .me-sidebar-collapse,
.me-shell[data-sidebar-collapsed="true"] .me-sidebar-collapse {
    position: absolute;
    right: -10px;
    top: 21px;
    width: 30px;
    height: 30px;
    background: #ffffff;
    color: #14213d;
    border-color: rgba(15, 23, 42, .18);
    box-shadow: 0 8px 22px rgba(15, 23, 42, .20);
}

.me-shell.me-sidebar-collapsed .me-nav-link,
.me-shell.me-sidebar-collapsed .me-nav-disabled,
.me-shell[data-sidebar-collapsed="true"] .me-nav-link,
.me-shell[data-sidebar-collapsed="true"] .me-nav-disabled {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 10px 8px;
}

.me-shell.me-sidebar-collapsed .me-nav,
.me-shell[data-sidebar-collapsed="true"] .me-nav {
    padding: 18px 10px;
}

@media (max-width: 980px) {
    .me-shell.me-sidebar-collapsed,
    .me-shell[data-sidebar-collapsed="true"] {
        grid-template-columns: 1fr;
    }

    .me-shell.me-sidebar-collapsed .me-brand-text,
    .me-shell.me-sidebar-collapsed .me-sidebar-context,
    .me-shell.me-sidebar-collapsed .me-nav-group-title,
    .me-shell.me-sidebar-collapsed .me-nav-title,
    .me-shell.me-sidebar-collapsed .me-nav-description,
    .me-shell[data-sidebar-collapsed="true"] .me-brand-text,
    .me-shell[data-sidebar-collapsed="true"] .me-sidebar-context,
    .me-shell[data-sidebar-collapsed="true"] .me-nav-group-title,
    .me-shell[data-sidebar-collapsed="true"] .me-nav-title,
    .me-shell[data-sidebar-collapsed="true"] .me-nav-description {
        display: block !important;
    }

    .me-shell.me-sidebar-collapsed .me-sidebar-collapse,
    .me-shell[data-sidebar-collapsed="true"] .me-sidebar-collapse {
        position: static;
        right: auto;
        top: auto;
    }
}

/* Paket 13: stabilan collapse menija sa JS fallback-om i jasnim data-state selektorima. */
.me-shell[data-sidebar-state="collapsed"],
.me-shell[data-sidebar-collapsed="true"],
.me-shell.me-nav-collapsed,
.me-shell.me-sidebar-collapsed {
    grid-template-columns: 88px minmax(0, 1fr) !important;
}

.me-shell[data-sidebar-state="expanded"] {
    grid-template-columns: 292px minmax(0, 1fr) !important;
}

.me-sidebar-collapse,
.me-sidebar-top-toggle {
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.me-sidebar-top-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--me-border);
    background: #ffffff;
    color: var(--me-primary);
    border-radius: 14px;
    padding: 9px 12px;
    font-weight: 850;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .06);
}

.me-sidebar-top-toggle:hover {
    background: var(--me-primary-soft);
}

.me-sidebar-top-toggle .me-sidebar-collapse-icon {
    font-size: 18px;
    font-weight: 950;
    line-height: 1;
}

.me-shell[data-sidebar-state="collapsed"] .me-sidebar,
.me-shell[data-sidebar-collapsed="true"] .me-sidebar,
.me-shell.me-nav-collapsed .me-sidebar,
.me-shell.me-sidebar-collapsed .me-sidebar {
    padding: 0 !important;
}

.me-shell[data-sidebar-state="collapsed"] .me-sidebar-header,
.me-shell[data-sidebar-collapsed="true"] .me-sidebar-header,
.me-shell.me-nav-collapsed .me-sidebar-header,
.me-shell.me-sidebar-collapsed .me-sidebar-header {
    padding: 18px 12px 14px !important;
}

.me-shell[data-sidebar-state="collapsed"] .me-brand,
.me-shell[data-sidebar-collapsed="true"] .me-brand,
.me-shell.me-nav-collapsed .me-brand,
.me-shell.me-sidebar-collapsed .me-brand {
    justify-content: center !important;
    gap: 0 !important;
    margin-bottom: 0 !important;
    position: relative !important;
}

.me-shell[data-sidebar-state="collapsed"] .me-brand-text,
.me-shell[data-sidebar-state="collapsed"] .me-sidebar-context,
.me-shell[data-sidebar-state="collapsed"] .me-nav-group-title,
.me-shell[data-sidebar-state="collapsed"] .me-nav-title,
.me-shell[data-sidebar-state="collapsed"] .me-nav-description,
.me-shell[data-sidebar-collapsed="true"] .me-brand-text,
.me-shell[data-sidebar-collapsed="true"] .me-sidebar-context,
.me-shell[data-sidebar-collapsed="true"] .me-nav-group-title,
.me-shell[data-sidebar-collapsed="true"] .me-nav-title,
.me-shell[data-sidebar-collapsed="true"] .me-nav-description,
.me-shell.me-nav-collapsed .me-brand-text,
.me-shell.me-nav-collapsed .me-sidebar-context,
.me-shell.me-nav-collapsed .me-nav-group-title,
.me-shell.me-nav-collapsed .me-nav-title,
.me-shell.me-nav-collapsed .me-nav-description,
.me-shell.me-sidebar-collapsed .me-brand-text,
.me-shell.me-sidebar-collapsed .me-sidebar-context,
.me-shell.me-sidebar-collapsed .me-nav-group-title,
.me-shell.me-sidebar-collapsed .me-nav-title,
.me-shell.me-sidebar-collapsed .me-nav-description {
    display: none !important;
}

.me-shell[data-sidebar-state="collapsed"] .me-nav,
.me-shell[data-sidebar-collapsed="true"] .me-nav,
.me-shell.me-nav-collapsed .me-nav,
.me-shell.me-sidebar-collapsed .me-nav {
    padding: 18px 10px !important;
    gap: 12px !important;
}

.me-shell[data-sidebar-state="collapsed"] .me-nav-link,
.me-shell[data-sidebar-state="collapsed"] .me-nav-disabled,
.me-shell[data-sidebar-collapsed="true"] .me-nav-link,
.me-shell[data-sidebar-collapsed="true"] .me-nav-disabled,
.me-shell.me-nav-collapsed .me-nav-link,
.me-shell.me-nav-collapsed .me-nav-disabled,
.me-shell.me-sidebar-collapsed .me-nav-link,
.me-shell.me-sidebar-collapsed .me-nav-disabled {
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    padding: 10px 8px !important;
}

.me-shell[data-sidebar-state="collapsed"] .me-nav-icon,
.me-shell[data-sidebar-collapsed="true"] .me-nav-icon,
.me-shell.me-nav-collapsed .me-nav-icon,
.me-shell.me-sidebar-collapsed .me-nav-icon {
    width: 38px !important;
    height: 38px !important;
}

.me-shell[data-sidebar-state="collapsed"] .me-sidebar-collapse,
.me-shell[data-sidebar-collapsed="true"] .me-sidebar-collapse,
.me-shell.me-nav-collapsed .me-sidebar-collapse,
.me-shell.me-sidebar-collapsed .me-sidebar-collapse {
    position: absolute !important;
    right: -8px !important;
    top: 21px !important;
    width: 30px !important;
    height: 30px !important;
    z-index: 80 !important;
    background: #ffffff !important;
    color: #14213d !important;
    border-color: rgba(15, 23, 42, .18) !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .20) !important;
}

@media (max-width: 980px) {
    .me-sidebar-top-toggle {
        display: none !important;
    }

    .me-shell[data-sidebar-state="collapsed"],
    .me-shell[data-sidebar-collapsed="true"],
    .me-shell.me-nav-collapsed,
    .me-shell.me-sidebar-collapsed {
        grid-template-columns: 1fr !important;
    }

    .me-shell[data-sidebar-state="collapsed"] .me-brand-text,
    .me-shell[data-sidebar-state="collapsed"] .me-sidebar-context,
    .me-shell[data-sidebar-state="collapsed"] .me-nav-group-title,
    .me-shell[data-sidebar-state="collapsed"] .me-nav-title,
    .me-shell[data-sidebar-state="collapsed"] .me-nav-description,
    .me-shell[data-sidebar-collapsed="true"] .me-brand-text,
    .me-shell[data-sidebar-collapsed="true"] .me-sidebar-context,
    .me-shell[data-sidebar-collapsed="true"] .me-nav-group-title,
    .me-shell[data-sidebar-collapsed="true"] .me-nav-title,
    .me-shell[data-sidebar-collapsed="true"] .me-nav-description,
    .me-shell.me-nav-collapsed .me-brand-text,
    .me-shell.me-nav-collapsed .me-sidebar-context,
    .me-shell.me-nav-collapsed .me-nav-group-title,
    .me-shell.me-nav-collapsed .me-nav-title,
    .me-shell.me-nav-collapsed .me-nav-description,
    .me-shell.me-sidebar-collapsed .me-brand-text,
    .me-shell.me-sidebar-collapsed .me-sidebar-context,
    .me-shell.me-sidebar-collapsed .me-nav-group-title,
    .me-shell.me-sidebar-collapsed .me-nav-title,
    .me-shell.me-sidebar-collapsed .me-nav-description {
        display: block !important;
    }
}

.me-button-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    border-radius: 14px;
    padding: 9px 14px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid var(--me-danger-border);
    background: var(--me-danger-bg);
    color: var(--me-danger-text);
}

.me-button-danger:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.me-table-actions .me-button-danger {
    min-height: 34px;
    padding: 7px 10px;
    margin-right: 6px;
}

.me-permission-note {
    border: 1px solid var(--me-border);
    background: rgba(255, 255, 255, .76);
    color: var(--me-muted);
    border-radius: 16px;
    padding: 12px 14px;
    font-size: 13px;
}

.me-permission-note strong {
    color: var(--me-text);
}

.me-status-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 78px;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.me-status-success {
    color: #166534;
    background: #dcfce7;
    border: 1px solid #bbf7d0;
}

.me-status-danger {
    color: #991b1b;
    background: #fee2e2;
    border: 1px solid #fecaca;
}

/* Paket 1: SuperAdmin održavanje baza. */
.me-maintenance-toolbar {
    align-items: stretch;
}

.me-maintenance-status {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    border-radius: 18px;
    padding: 14px 16px;
    border: 1px solid var(--me-border);
    background: var(--me-bg-soft);
}

.me-maintenance-ok {
    border-color: rgba(4, 120, 87, .22);
    background: var(--me-success-bg);
    color: var(--me-success-text);
}

.me-maintenance-fail,
.me-row-error {
    background: var(--me-danger-bg);
}

.me-maintenance-fail {
    border-color: var(--me-danger-border);
    color: var(--me-danger-text);
}

.me-maintenance-details {
    margin-top: 8px;
}

.me-maintenance-details summary {
    cursor: pointer;
    color: var(--me-danger-text);
    font-weight: 800;
}

.me-maintenance-details pre {
    max-height: 260px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
    border-radius: 14px;
    border: 1px solid rgba(153, 27, 27, .18);
    background: rgba(255, 255, 255, .75);
    padding: 12px;
    font-size: 12px;
}

/* Paket 1 hotfix2: jasnije poruke izvršavanja maintenance operacija. */
.me-maintenance-live {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    border-radius: 18px;
    padding: 14px 16px;
    margin-bottom: 16px;
    border: 1px solid var(--me-border);
    background: var(--me-bg-soft);
    box-shadow: var(--me-shadow);
}

.me-maintenance-live-info {
    border-color: rgba(20, 33, 61, .16);
    background: var(--me-primary-soft);
}

.me-maintenance-live-success {
    border-color: rgba(4, 120, 87, .22);
    background: var(--me-success-bg);
    color: var(--me-success-text);
}

.me-maintenance-live-error {
    border-color: var(--me-danger-border);
    background: var(--me-danger-bg);
    color: var(--me-danger-text);
}

.me-maintenance-running {
    border-color: rgba(20, 33, 61, .22);
    background: var(--me-primary-soft);
}

.me-maintenance-message-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.me-maintenance-message-header h2 {
    margin: 0;
}

.me-button-link {
    border: 0;
    background: transparent;
    color: var(--me-primary);
    font-weight: 800;
    cursor: pointer;
    padding: 6px 8px;
}

.me-button-link:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.me-maintenance-message-list {
    display: grid;
    gap: 10px;
}

.me-maintenance-message {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid var(--me-border);
    background: var(--me-bg-soft);
}

.me-maintenance-message-time {
    color: var(--me-muted);
    font-size: .84rem;
    white-space: nowrap;
}

.me-maintenance-message-info {
    border-color: rgba(20, 33, 61, .14);
}

.me-maintenance-message-success {
    border-color: rgba(4, 120, 87, .22);
    background: var(--me-success-bg);
}

.me-maintenance-message-error {
    border-color: var(--me-danger-border);
    background: var(--me-danger-bg);
}

.me-maintenance-message-details {
    margin-top: 4px;
    color: var(--me-muted);
    font-size: .9rem;
}

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

/* Paket 1 hotfix3: vidljiv tok dugih maintenance operacija i dijagnostika API odgovora. */
.me-maintenance-running-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.me-maintenance-spinner {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 3px solid rgba(20, 33, 61, .18);
    border-top-color: var(--me-primary);
    animation: me-maintenance-spin .85s linear infinite;
}

.me-maintenance-progress {
    position: relative;
    width: 100%;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(20, 33, 61, .10);
}

.me-maintenance-progress span {
    position: absolute;
    inset: 0 auto 0 0;
    width: 42%;
    border-radius: inherit;
    background: var(--me-primary);
    animation: me-maintenance-progress 1.35s ease-in-out infinite;
}

.me-maintenance-diagnostics {
    display: grid;
    gap: 10px;
    color: var(--me-muted);
    font-size: .93rem;
}

@keyframes me-maintenance-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes me-maintenance-progress {
    0% {
        transform: translateX(-105%);
    }

    50% {
        transform: translateX(75%);
    }

    100% {
        transform: translateX(245%);
    }
}

/* Paket Login/Home: moderan MiniErp shell, login i početni ekran. */
:root {
    --me-bg: #f7faff;
    --me-bg-soft: #f4f8ff;
    --me-panel: #ffffff;
    --me-text: #0f1f3d;
    --me-muted: #667085;
    --me-border: rgba(20, 52, 106, .12);
    --me-primary: #0a3d91;
    --me-primary-2: #1f66e5;
    --me-accent: #0bb7a9;
    --me-primary-soft: rgba(31, 102, 229, .09);
    --me-shadow: 0 16px 44px rgba(15, 43, 87, .08);
}

.me-shell {
    grid-template-columns: 268px minmax(0, 1fr);
    background: radial-gradient(circle at top right, rgba(31, 102, 229, .08), transparent 34%), #f7faff;
}

.me-sidebar {
    background: rgba(255, 255, 255, .94) !important;
    color: var(--me-text) !important;
    border-right: 1px solid rgba(20, 52, 106, .09);
    box-shadow: 12px 0 34px rgba(20, 52, 106, .05);
}

.me-sidebar-header {
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(250,253,255,.94)) !important;
    border-bottom: 1px solid rgba(20, 52, 106, .08) !important;
}

.me-brand-mark {
    overflow: hidden;
    background: #edf5ff !important;
    color: var(--me-primary) !important;
}

.me-brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.me-brand-title span {
    color: var(--me-primary-2);
}

.me-brand-subtitle,
.me-nav-group-title,
.me-context-label {
    color: var(--me-muted) !important;
    opacity: 1 !important;
}

.me-sidebar-context {
    background: #f5f8ff !important;
    border-color: rgba(20, 52, 106, .08) !important;
}

.me-context-value {
    color: var(--me-text) !important;
}

.me-nav-link,
.me-nav-disabled {
    color: #263758 !important;
}

.me-nav-link:hover,
.me-nav-link.active {
    background: linear-gradient(135deg, rgba(31, 102, 229, .11), rgba(11, 183, 169, .09)) !important;
    color: var(--me-primary) !important;
    transform: none;
}

.me-nav-icon {
    background: #eef5ff !important;
    color: var(--me-primary) !important;
}

.me-nav-description {
    color: #7a8aa5 !important;
}

.me-sidebar-footer {
    padding: 14px 18px 18px;
    border-top: 1px solid rgba(20, 52, 106, .08);
}

.me-sidebar-footer a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 1px solid rgba(20, 52, 106, .10);
    border-radius: 16px;
    background: #fff;
    color: var(--me-primary);
    text-decoration: none;
    font-weight: 850;
}

.me-topbar {
    min-height: 76px;
    background: rgba(255, 255, 255, .88) !important;
    border-bottom: 1px solid rgba(20, 52, 106, .09);
}

.me-topbar-left,
.me-topbar-context,
.me-global-search {
    display: flex;
    align-items: center;
    gap: 12px;
}

.me-global-search {
    flex: 1 1 420px;
    max-width: 520px;
    min-height: 42px;
    border: 1px solid rgba(20, 52, 106, .12);
    border-radius: 16px;
    background: #fff;
    padding: 0 12px;
    color: var(--me-muted);
}

.me-global-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--me-muted);
}

.me-global-search kbd {
    min-width: 52px;
    border: 1px solid rgba(20, 52, 106, .10);
    border-radius: 9px;
    background: #f7faff;
    color: #8a98ad;
    font-size: 12px;
    padding: 3px 6px;
    text-align: center;
}

.me-quick-action {
    border: 1px solid rgba(31, 102, 229, .14);
    background: #fff;
    color: var(--me-primary-2);
    border-radius: 14px;
    min-height: 38px;
    padding: 0 14px;
    font-weight: 850;
}

.me-content {
    padding: 24px;
}

.me-login-shell {
    display: block;
    padding: 0;
    background: #f7faff;
}

.me-login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(420px, .9fr);
    gap: 30px;
    padding: 34px;
    background: radial-gradient(circle at 10% 8%, rgba(31, 102, 229, .12), transparent 28%), radial-gradient(circle at 86% 75%, rgba(11, 183, 169, .10), transparent 34%), #f7faff;
}

.me-login-hero-panel,
.me-login-page .me-login-card {
    border: 1px solid rgba(20, 52, 106, .10);
    background: rgba(255,255,255,.86);
    border-radius: 34px;
    box-shadow: 0 24px 70px rgba(15, 43, 87, .10);
    backdrop-filter: blur(12px);
}

.me-login-hero-panel {
    position: relative;
    overflow: hidden;
    padding: 42px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 22px;
}

.me-login-hero-panel::after {
    content: "";
    position: absolute;
    inset: auto -8% -28% 12%;
    height: 55%;
    border-radius: 999px;
    background: rgba(31, 102, 229, .07);
    pointer-events: none;
}

.me-login-hero-logo {
    width: min(420px, 68%);
    height: auto;
    display: block;
    margin-bottom: 22px;
}

.me-login-kicker,
.me-kicker {
    margin: 0 0 8px;
    color: var(--me-primary-2);
    font-size: 12px;
    letter-spacing: .11em;
    text-transform: uppercase;
    font-weight: 900;
}

.me-login-hero-copy h1,
.me-login-heading h2,
.me-home-welcome h1 {
    margin: 0;
    color: #071936;
    letter-spacing: -.03em;
}

.me-login-hero-copy h1 {
    max-width: 720px;
    font-size: clamp(34px, 4vw, 58px);
    line-height: 1.02;
}

.me-login-hero-copy p {
    max-width: 660px;
    margin: 14px 0 0;
    color: var(--me-muted);
    font-size: 18px;
    line-height: 1.55;
}

.me-login-module-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    gap: 12px;
    position: relative;
    z-index: 2;
}

.me-login-module-grid span {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 10px 14px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(20, 52, 106, .09);
    color: #243653;
    font-weight: 850;
}

.me-login-module-grid strong {
    color: var(--me-accent);
}

.me-login-visual-card {
    position: relative;
    z-index: 2;
    border-radius: 26px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(20, 52, 106, .09);
    box-shadow: 0 18px 46px rgba(15, 43, 87, .10);
}

.me-login-visual-card img {
    width: 100%;
    display: block;
}

.me-login-benefit {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 620px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255,255,255,.88);
    border: 1px solid rgba(20, 52, 106, .08);
    color: #334155;
    font-weight: 750;
}

.me-login-page .me-login-card {
    width: 100%;
    align-self: center;
    padding: 42px;
}

.me-login-card-brand {
    text-align: center;
    margin-bottom: 28px;
}

.me-login-card-brand img {
    width: min(310px, 80%);
    height: auto;
}

.me-login-heading {
    text-align: center;
    margin-bottom: 22px;
}

.me-login-heading h2 {
    font-size: 28px;
}

.me-login-heading p {
    margin: 8px auto 0;
    color: var(--me-muted);
    line-height: 1.55;
}

.me-login-field {
    display: grid;
    gap: 8px;
    color: #334155;
    font-size: 13px;
    font-weight: 850;
}

.me-input-with-icon {
    display: grid;
    grid-template-columns: 38px 1fr auto;
    align-items: center;
    min-height: 50px;
    border: 1px solid rgba(20, 52, 106, .14);
    border-radius: 17px;
    background: #fff;
    overflow: hidden;
}

.me-input-with-icon:focus-within {
    border-color: rgba(31, 102, 229, .55);
    box-shadow: 0 0 0 4px rgba(31, 102, 229, .09);
}

.me-input-with-icon input {
    min-height: 48px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #0f172a;
    padding: 0 10px 0 0;
}

.me-input-icon {
    display: grid;
    place-items: center;
    opacity: .62;
}

.me-password-toggle {
    border: 0;
    background: transparent;
    color: var(--me-primary-2);
    font-weight: 850;
    padding: 0 14px;
    cursor: pointer;
}

.me-login-options,
.me-login-secondary-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.me-login-remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    font-weight: 750;
}

.me-login-button {
    min-height: 52px;
    border: 0;
    background: linear-gradient(135deg, #174ee9, #08b7a7);
    box-shadow: 0 18px 32px rgba(31, 102, 229, .22);
}

.me-login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0 14px;
    color: #94a3b8;
}

.me-login-divider::before,
.me-login-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: rgba(148, 163, 184, .24);
}

.me-login-secondary-actions .me-button-secondary {
    flex: 1 1 160px;
    min-height: 46px;
}

.me-login-info,
.me-login-validation {
    border-radius: 16px;
    padding: 12px 14px;
    margin-bottom: 16px;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid rgba(29, 78, 216, .18);
    font-weight: 700;
}

.me-login-note {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.me-login-note span {
    color: var(--me-accent);
    font-weight: 900;
}

.me-home-page {
    display: grid;
    gap: 18px;
}

.me-home-welcome {
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    min-height: 160px;
    padding: 26px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(238,246,255,.88));
    border: 1px solid var(--me-border);
    box-shadow: var(--me-shadow);
}

.me-home-welcome-content {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.me-home-logo-badge {
    width: 86px;
    height: 86px;
    border-radius: 28px;
    display: grid;
    place-items: center;
    background: #fff;
    border: 1px solid rgba(20, 52, 106, .08);
    box-shadow: 0 14px 34px rgba(15, 43, 87, .08);
}

.me-home-logo-badge img,
.me-home-welcome-art img {
    width: 78%;
    height: 78%;
    object-fit: contain;
}

.me-home-welcome h1 {
    font-size: 30px;
    line-height: 1.1;
}

.me-home-welcome p:not(.me-kicker) {
    margin: 8px 0 0;
    color: var(--me-muted);
}

.me-home-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.me-home-meta-row span {
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(20, 52, 106, .08);
    padding: 7px 11px;
    color: #43536e;
    font-weight: 750;
    font-size: 13px;
}

.me-home-welcome-art {
    min-width: 260px;
    height: 116px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    background: radial-gradient(circle at 42% 44%, rgba(11,183,169,.18), transparent 40%), linear-gradient(135deg, rgba(31,102,229,.10), rgba(11,183,169,.06));
}

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

.me-kpi-card {
    display: grid;
    grid-template-columns: 54px 1fr 68px;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid var(--me-border);
    box-shadow: 0 10px 28px rgba(15, 43, 87, .055);
}

.me-kpi-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: var(--me-primary-soft);
    font-size: 24px;
}

.me-kpi-title,
.me-kpi-subtitle {
    color: var(--me-muted);
    font-size: 13px;
}

.me-kpi-value {
    margin-top: 3px;
    color: #0f1f3d;
    font-size: 22px;
    font-weight: 950;
}

.me-mini-chart {
    display: flex;
    align-items: end;
    gap: 4px;
    height: 46px;
}

.me-mini-chart span {
    width: 10px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--me-primary-2), var(--me-accent));
}

.me-mini-chart span:nth-child(1) { height: 34%; }
.me-mini-chart span:nth-child(2) { height: 56%; }
.me-mini-chart span:nth-child(3) { height: 44%; }
.me-mini-chart span:nth-child(4) { height: 84%; }

.me-section-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.me-section-title-row h2 {
    margin: 0;
    font-size: 20px;
    color: #0f1f3d;
}

.me-section-title-compact {
    margin-bottom: 12px;
}

.me-section-title-row a {
    color: var(--me-primary-2);
    text-decoration: none;
    font-weight: 850;
}

.me-home-module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
}

.me-home-module-card {
    min-height: 150px;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 8px;
    padding: 18px 14px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid rgba(20, 52, 106, .09);
    text-decoration: none;
    color: #10213f;
    box-shadow: 0 10px 24px rgba(15, 43, 87, .045);
    transition: transform .15s ease, box-shadow .15s ease;
}

.me-home-module-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(15, 43, 87, .08);
}

.me-home-module-card img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.me-home-module-card span {
    font-weight: 950;
}

.me-home-module-card small {
    color: var(--me-muted);
    text-align: center;
    line-height: 1.35;
}

.me-home-module-disabled {
    opacity: .58;
    cursor: not-allowed;
}

.me-home-work-grid {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(240px, 1fr) minmax(220px, .9fr) minmax(360px, 1.4fr) minmax(250px, .9fr);
    gap: 14px;
    align-items: stretch;
}

.me-home-list-row,
.me-home-task-row,
.me-home-doc-list div,
.me-home-shortcuts a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    border-bottom: 1px solid rgba(20, 52, 106, .07);
}

.me-home-list-row:last-child,
.me-home-task-row:last-child,
.me-home-doc-list div:last-child {
    border-bottom: 0;
}

.me-home-list-row div,
.me-home-shortcuts div {
    min-width: 0;
    flex: 1;
}

.me-home-list-row strong,
.me-home-shortcuts strong {
    display: block;
    color: #172033;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.me-home-list-row small,
.me-home-shortcuts small {
    display: block;
    color: var(--me-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.me-home-list-row time {
    color: #94a3b8;
    font-size: 12px;
    white-space: nowrap;
}

.me-home-list-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--me-primary-soft);
}

.me-home-task-row input {
    width: 16px;
    height: 16px;
}

.me-home-task-row span {
    flex: 1;
    color: #263758;
}

.me-home-task-row em {
    font-style: normal;
    color: #ef4444;
    font-size: 12px;
    font-weight: 850;
}

.me-home-doc-list strong {
    margin-left: auto;
    font-size: 17px;
}

.me-home-count-ok { color: #059669; }
.me-home-count-info { color: #2563eb; }
.me-home-count-warn { color: #d97706; }
.me-home-count-danger { color: #dc2626; }

.me-home-chart-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.me-home-chart-metrics div {
    padding: 10px;
    border-radius: 14px;
    background: #f8fbff;
}

.me-home-chart-metrics span,
.me-home-chart-metrics small {
    display: block;
    color: var(--me-muted);
    font-size: 12px;
}

.me-home-chart-metrics strong {
    display: block;
    margin: 4px 0;
    color: #0f1f3d;
}

.me-home-chart-metrics small {
    color: #059669;
    font-weight: 850;
}

.me-home-bars {
    display: flex;
    align-items: end;
    gap: 8px;
    height: 160px;
    padding: 12px 8px 0;
    border-radius: 16px;
    background: linear-gradient(180deg, #fbfdff, #f4f8ff);
}

.me-home-bars span {
    flex: 1;
    min-width: 8px;
    border-radius: 999px 999px 0 0;
    background: linear-gradient(180deg, var(--me-primary-2), var(--me-accent));
}

.me-home-shortcuts {
    display: grid;
    align-content: start;
}

.me-home-shortcuts a {
    color: #172033;
    text-decoration: none;
}

.me-home-shortcuts em {
    margin-left: auto;
    color: var(--me-primary-2);
    font-style: normal;
    font-size: 24px;
}

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

    .me-home-chart-card,
    .me-home-shortcuts {
        grid-column: span 1;
    }
}

@media (max-width: 1100px) {
    .me-login-page {
        grid-template-columns: 1fr;
    }

    .me-login-page .me-login-card {
        align-self: stretch;
    }

    .me-global-search {
        display: none;
    }
}

@media (max-width: 760px) {
    .me-login-page,
    .me-login-hero-panel,
    .me-login-page .me-login-card {
        padding: 18px;
        border-radius: 24px;
    }

    .me-login-module-grid,
    .me-kpi-grid,
    .me-home-work-grid,
    .me-home-chart-metrics {
        grid-template-columns: 1fr;
    }

    .me-home-welcome,
    .me-home-welcome-content,
    .me-section-title-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .me-home-welcome-art {
        display: none;
    }
}

/* Paket 14: redizajnirana gornja sistemska traka sa diskretnim ERP alatkama. */
.me-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    min-height: 0;
    padding: 12px 22px;
    gap: 12px;
    flex-wrap: wrap;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .04);
}

.me-topbar-primary,
.me-topbar-right,
.me-topbar-brandline,
.me-topbar-tools,
.me-profile-button,
.me-workspace-switcher {
    display: flex;
    align-items: center;
}

.me-topbar-primary {
    flex: 1 1 640px;
    gap: 14px;
    min-width: 0;
    flex-wrap: wrap;
}

.me-topbar-brandline {
    gap: 10px;
    flex: 0 0 auto;
}

.me-topbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 4px 6px 4px 2px;
    color: var(--me-text);
    text-decoration: none;
}

.me-topbar-brand:hover {
    color: #0f172a;
}

.me-topbar-brand-icon,
.me-tool-icon-shell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(37, 99, 235, .10), rgba(20, 184, 166, .10));
    border: 1px solid rgba(37, 99, 235, .08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
    flex: 0 0 auto;
}

.me-topbar-brand-icon {
    width: 42px;
    height: 42px;
}

.me-tool-icon-shell-large {
    width: 40px;
    height: 40px;
}

.me-topbar-brand-icon img,
.me-tool-icon-shell img {
    max-width: 20px;
    max-height: 20px;
}

.me-topbar-brand-icon img {
    max-width: 26px;
    max-height: 26px;
}

.me-topbar-brand-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.me-topbar-brand-title {
    font-size: 18px;
    font-weight: 900;
    line-height: 1.05;
}

.me-topbar-brand-subtitle,
.me-workspace-label,
.me-profile-role {
    font-size: 11px;
    color: var(--me-muted);
    letter-spacing: .05em;
    text-transform: uppercase;
}

.me-global-search {
    flex: 1 1 360px;
    min-width: 260px;
    max-width: none;
    min-height: 44px;
    border-radius: 18px;
    padding: 0 12px 0 10px;
}

.me-global-search-icon {
    width: 22px;
    text-align: center;
    font-size: 18px;
    color: #8fa0b8;
}

.me-global-search input {
    font-size: 14px;
    color: var(--me-text);
}

.me-global-search input::placeholder {
    color: #94a3b8;
}

.me-topbar-right {
    margin-left: auto;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.me-workspace-switcher,
.me-profile-button,
.me-tool-button {
    position: relative;
    border: 1px solid rgba(20, 52, 106, .12);
    background: rgba(255, 255, 255, .92);
    color: var(--me-text);
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .04);
}

.me-workspace-switcher,
.me-profile-button {
    min-height: 46px;
    padding: 6px 10px 6px 8px;
    gap: 10px;
}

.me-workspace-switcher {
    min-width: 220px;
    justify-content: flex-start;
}

.me-workspace-switcher:hover,
.me-profile-button:hover,
.me-tool-button:hover {
    background: #ffffff;
    border-color: rgba(37, 99, 235, .20);
}

.me-workspace-switcher-text,
.me-profile-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.me-workspace-switcher-text strong,
.me-profile-name {
    font-size: 14px;
    font-weight: 850;
    line-height: 1.15;
    color: var(--me-text);
    white-space: nowrap;
}

.me-topbar-chevron {
    color: #8b9ab1;
    font-size: 12px;
    line-height: 1;
}

.me-topbar-tools {
    gap: 8px;
}

.me-tool-button {
    width: 46px;
    height: 46px;
    justify-content: center;
    padding: 0;
}

.me-tool-button-wide {
    width: auto;
    padding: 0 12px 0 8px;
    gap: 8px;
}

.me-tool-short-text {
    font-size: 12px;
    font-weight: 900;
    color: var(--me-primary);
    letter-spacing: .04em;
}

.me-tool-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    box-shadow: 0 5px 14px rgba(239, 68, 68, .28);
}

.me-tool-badge-soft {
    background: #2563eb;
    box-shadow: 0 5px 14px rgba(37, 99, 235, .25);
}

.me-profile-button {
    padding-right: 12px;
}

.me-profile-avatar {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #14213d 0%, #2563eb 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .04em;
    flex: 0 0 auto;
}

.me-profile-role {
    letter-spacing: .03em;
}

@media (max-width: 1380px) {
    .me-profile-meta {
        display: none;
    }

    .me-profile-button {
        padding-right: 10px;
    }
}

@media (max-width: 1240px) {
    .me-topbar {
        align-items: flex-start;
    }

    .me-topbar-right {
        width: 100%;
        margin-left: 0;
        justify-content: space-between;
    }
}

@media (max-width: 980px) {
    .me-topbar-primary,
    .me-topbar-right {
        width: 100%;
    }

    .me-global-search {
        display: flex;
        min-width: 0;
        width: 100%;
        order: 3;
    }
}

@media (max-width: 760px) {
    .me-topbar {
        padding: 12px 16px;
    }

    .me-topbar-brand-subtitle,
    .me-workspace-label {
        display: none;
    }

    .me-workspace-switcher {
        min-width: 0;
        flex: 1 1 auto;
    }
}

@media (max-width: 560px) {
    .me-topbar-tools {
        flex-wrap: wrap;
    }

    .me-tool-button-wide .me-tool-short-text,
    .me-workspace-switcher-text,
    .me-profile-meta {
        display: none;
    }

    .me-workspace-switcher,
    .me-profile-button {
        min-width: 46px;
        justify-content: center;
        padding: 0;
        width: 46px;
        height: 46px;
    }

    .me-topbar-right {
        justify-content: flex-start;
    }
}

/* Paket 15: razrada top bar flyout panela za firmu/godinu, teme i profil. */
.me-shell.me-accent-blue {
    --me-primary: #14213d;
    --me-primary-2: #2563eb;
}

.me-shell.me-accent-teal {
    --me-primary: #0f766e;
    --me-primary-2: #14b8a6;
}

.me-shell.me-accent-violet {
    --me-primary: #4c1d95;
    --me-primary-2: #7c3aed;
}

.me-shell.me-density-compact .me-topbar {
    padding-top: 8px;
    padding-bottom: 8px;
}

.me-shell.me-density-compact .me-content {
    padding-top: 18px;
}

.me-shell.me-density-compact .me-card,
.me-shell.me-density-compact .me-panel,
.me-shell.me-density-compact .me-home-card,
.me-shell.me-density-compact .me-home-welcome {
    border-radius: 18px;
    padding: 18px;
}

.me-shell.me-theme-dark {
    --me-bg: #0f172a;
    --me-bg-soft: #111c33;
    --me-panel: #142033;
    --me-text: #e5edf8;
    --me-muted: #94a3b8;
    --me-border: rgba(148, 163, 184, .22);
    background: radial-gradient(circle at top right, rgba(37, 99, 235, .18), transparent 32%), #0f172a;
}

.me-shell.me-theme-dark .me-main,
.me-shell.me-theme-dark .me-content {
    background: transparent;
}

.me-shell.me-theme-dark .me-topbar,
.me-shell.me-theme-dark .me-topbar-flyout,
.me-shell.me-theme-dark .me-workspace-switcher,
.me-shell.me-theme-dark .me-profile-button,
.me-shell.me-theme-dark .me-tool-button,
.me-shell.me-theme-dark .me-global-search,
.me-shell.me-theme-dark .me-card,
.me-shell.me-theme-dark .me-panel,
.me-shell.me-theme-dark .me-home-card,
.me-shell.me-theme-dark .me-home-welcome,
.me-shell.me-theme-dark .me-home-module-card,
.me-shell.me-theme-dark .me-home-list-card,
.me-shell.me-theme-dark .me-current-context-card,
.me-shell.me-theme-dark .me-theme-card,
.me-shell.me-theme-dark .me-profile-details,
.me-shell.me-theme-dark .me-profile-actions button,
.me-shell.me-theme-dark .me-workspace-option,
.me-shell.me-theme-dark .me-year-option,
.me-shell.me-theme-dark .me-accent-option {
    background: rgba(20, 32, 51, .96) !important;
    color: var(--me-text);
    border-color: rgba(148, 163, 184, .22);
}

.me-shell.me-theme-dark input,
.me-shell.me-theme-dark .me-topbar-brand-title,
.me-shell.me-theme-dark .me-workspace-switcher-text strong,
.me-shell.me-theme-dark .me-profile-name,
.me-shell.me-theme-dark .me-profile-summary h3,
.me-shell.me-theme-dark .me-profile-details strong,
.me-shell.me-theme-dark .me-workspace-option strong,
.me-shell.me-theme-dark .me-theme-card strong {
    color: var(--me-text) !important;
}

.me-shell.me-theme-contrast {
    --me-bg: #ffffff;
    --me-bg-soft: #ffffff;
    --me-panel: #ffffff;
    --me-text: #020617;
    --me-muted: #334155;
    --me-border: rgba(15, 23, 42, .34);
}

.me-shell.me-theme-contrast .me-topbar,
.me-shell.me-theme-contrast .me-card,
.me-shell.me-theme-contrast .me-panel,
.me-shell.me-theme-contrast .me-home-card,
.me-shell.me-theme-contrast .me-home-welcome,
.me-shell.me-theme-contrast .me-topbar-flyout {
    border-width: 2px;
    box-shadow: none;
}

.me-topbar-popover-host {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.me-workspace-switcher.is-active,
.me-profile-button.is-active,
.me-tool-button.is-active {
    border-color: rgba(37, 99, 235, .34);
    box-shadow: 0 12px 30px rgba(37, 99, 235, .12);
}

.me-topbar-flyout {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(420px, calc(100vw - 32px));
    z-index: 200;
    border: 1px solid rgba(20, 52, 106, .12);
    border-radius: 24px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 24px 70px rgba(15, 23, 42, .18);
    padding: 18px;
    color: var(--me-text);
}

.me-theme-flyout {
    width: min(460px, calc(100vw - 32px));
}

.me-profile-flyout {
    width: min(360px, calc(100vw - 32px));
}

.me-topbar-flyout::before {
    content: "";
    position: absolute;
    top: -7px;
    right: 26px;
    width: 14px;
    height: 14px;
    transform: rotate(45deg);
    background: inherit;
    border-left: 1px solid rgba(20, 52, 106, .12);
    border-top: 1px solid rgba(20, 52, 106, .12);
}

.me-flyout-header,
.me-flyout-actions,
.me-profile-summary {
    display: flex;
    align-items: center;
}

.me-flyout-header {
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.me-flyout-header h3,
.me-profile-summary h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.15;
    color: var(--me-text);
}

.me-flyout-kicker {
    margin: 0 0 4px;
    color: var(--me-muted);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.me-flyout-close {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(20, 52, 106, .10);
    border-radius: 12px;
    background: #f8fafc;
    color: #64748b;
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
}

.me-current-context-card {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding: 14px;
    border: 1px solid rgba(37, 99, 235, .12);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(37, 99, 235, .08), rgba(20, 184, 166, .07));
}

.me-current-context-icon,
.me-workspace-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #fff;
    color: var(--me-primary);
    font-weight: 900;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, .10);
    flex: 0 0 auto;
}

.me-current-context-card span,
.me-current-context-card strong {
    display: block;
}

.me-current-context-card span {
    color: var(--me-muted);
    font-size: 12px;
    font-weight: 700;
}

.me-current-context-card strong {
    margin-top: 3px;
    font-size: 15px;
}

.me-flyout-section-title {
    margin: 14px 0 8px;
    color: var(--me-muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.me-workspace-list {
    display: grid;
    gap: 8px;
}

.me-workspace-option,
.me-theme-card,
.me-profile-actions button,
.me-year-option,
.me-accent-option {
    border: 1px solid rgba(20, 52, 106, .10);
    background: #fff;
    color: var(--me-text);
    cursor: pointer;
}

.me-workspace-option {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 58px;
    padding: 9px 10px;
    border-radius: 16px;
    text-align: left;
}

.me-workspace-option strong,
.me-workspace-option small,
.me-theme-card strong,
.me-theme-card small {
    display: block;
}

.me-workspace-option strong,
.me-theme-card strong {
    color: var(--me-text);
    font-size: 14px;
}

.me-workspace-option small,
.me-theme-card small,
.me-profile-summary p,
.me-profile-details span {
    color: var(--me-muted);
    font-size: 12px;
}

.me-workspace-option.is-selected,
.me-year-option.is-selected,
.me-theme-card.is-selected,
.me-accent-option.is-selected {
    border-color: rgba(37, 99, 235, .34);
    background: linear-gradient(135deg, rgba(37, 99, 235, .08), rgba(20, 184, 166, .06));
}

.me-year-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.me-year-option {
    min-height: 38px;
    border-radius: 14px;
    font-weight: 850;
}

.me-flyout-note {
    margin-top: 12px;
    padding: 11px 12px;
    border-radius: 14px;
    background: rgba(37, 99, 235, .07);
    color: #334155;
    font-size: 12px;
    line-height: 1.45;
}

.me-flyout-actions {
    justify-content: flex-end;
    gap: 8px;
    margin-top: 14px;
}

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

.me-theme-card {
    min-height: 132px;
    padding: 12px;
    border-radius: 18px;
    text-align: left;
}

.me-theme-preview {
    display: grid;
    grid-template-columns: 22px 1fr;
    grid-template-rows: repeat(3, 8px);
    gap: 5px;
    height: 50px;
    margin-bottom: 10px;
    padding: 9px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid rgba(20, 52, 106, .08);
}

.me-theme-preview span:first-child {
    grid-row: span 3;
    border-radius: 8px;
    background: #1d4ed8;
}

.me-theme-preview span:not(:first-child) {
    border-radius: 999px;
    background: #cbd5e1;
}

.me-theme-preview-modern span:first-child { background: linear-gradient(180deg, #2563eb, #14b8a6); }
.me-theme-preview-compact { gap: 3px; padding: 7px; }
.me-theme-preview-dark { background: #0f172a; }
.me-theme-preview-dark span:not(:first-child) { background: #475569; }
.me-theme-preview-contrast { background: #fff; border-color: #0f172a; }
.me-theme-preview-contrast span:first-child { background: #0f172a; }
.me-theme-preview-contrast span:not(:first-child) { background: #0f172a; }

.me-accent-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.me-accent-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    border-radius: 999px;
    padding: 0 12px 0 8px;
    font-weight: 850;
    font-size: 13px;
}

.me-accent-option span {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: inline-block;
}

.me-accent-preview-blue { background: linear-gradient(135deg, #14213d, #2563eb); }
.me-accent-preview-teal { background: linear-gradient(135deg, #0f766e, #14b8a6); }
.me-accent-preview-violet { background: linear-gradient(135deg, #4c1d95, #7c3aed); }

.me-profile-summary {
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(20, 52, 106, .10);
}

.me-profile-summary p {
    margin: 4px 0 0;
}

.me-profile-avatar-large {
    width: 48px;
    height: 48px;
    border-radius: 18px;
    font-size: 16px;
}

.me-profile-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
    padding: 12px;
    border: 1px solid rgba(20, 52, 106, .10);
    border-radius: 18px;
    background: #f8fafc;
}

.me-profile-details span,
.me-profile-details strong {
    display: block;
}

.me-profile-details strong {
    margin-top: 3px;
    color: var(--me-text);
    font-size: 13px;
}

.me-profile-actions {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.me-profile-actions button,
.me-profile-logout {
    min-height: 38px;
    border-radius: 14px;
    padding: 0 12px;
    text-align: left;
    font-weight: 800;
}

.me-profile-actions button {
    width: 100%;
}

.me-profile-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    color: #991b1b;
    background: #fff1f2;
    border: 1px solid #fecaca;
    text-decoration: none;
}

@media (max-width: 1240px) {
    .me-topbar-popover-host {
        position: static;
    }

    .me-topbar-flyout {
        top: 70px;
        right: 16px;
    }
}

@media (max-width: 560px) {
    .me-theme-grid,
    .me-profile-details {
        grid-template-columns: 1fr;
    }

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

/* Paket 16: funkcionalni paneli za teme, profil i promenu firma/godina. */
.me-shell.me-theme-midnight {
    --me-bg: #070b16;
    --me-bg-soft: #0b1222;
    --me-panel: #101827;
    --me-text: #e8eef8;
    --me-muted: #98a6ba;
    --me-border: rgba(148, 163, 184, .18);
    background: radial-gradient(circle at top right, rgba(20, 184, 166, .18), transparent 35%), #070b16;
}

.me-shell.me-theme-midnight .me-main,
.me-shell.me-theme-midnight .me-content {
    background: transparent;
}

.me-shell.me-theme-midnight .me-topbar,
.me-shell.me-theme-midnight .me-topbar-flyout,
.me-shell.me-theme-midnight .me-workspace-switcher,
.me-shell.me-theme-midnight .me-profile-button,
.me-shell.me-theme-midnight .me-tool-button,
.me-shell.me-theme-midnight .me-global-search,
.me-shell.me-theme-midnight .me-current-context-card,
.me-shell.me-theme-midnight .me-theme-card,
.me-shell.me-theme-midnight .me-profile-details,
.me-shell.me-theme-midnight .me-profile-panel,
.me-shell.me-theme-midnight .me-password-panel,
.me-shell.me-theme-midnight .me-profile-actions button,
.me-shell.me-theme-midnight .me-workspace-option,
.me-shell.me-theme-midnight .me-accent-option {
    background: rgba(16, 24, 39, .96) !important;
    color: var(--me-text);
    border-color: rgba(148, 163, 184, .22);
}

.me-shell.me-theme-midnight input,
.me-shell.me-theme-midnight .me-topbar-brand-title,
.me-shell.me-theme-midnight .me-workspace-switcher-text strong,
.me-shell.me-theme-midnight .me-profile-name,
.me-shell.me-theme-midnight .me-profile-summary h3,
.me-shell.me-theme-midnight .me-profile-details strong,
.me-shell.me-theme-midnight .me-profile-panel strong,
.me-shell.me-theme-midnight .me-workspace-option strong,
.me-shell.me-theme-midnight .me-theme-card strong {
    color: var(--me-text) !important;
}

.me-theme-preview-soft { background: #eef4fb; }
.me-theme-preview-midnight { background: #070b16; }
.me-theme-preview-midnight span:first-child { background: linear-gradient(180deg, #2563eb, #14b8a6); }
.me-theme-preview-midnight span:not(:first-child) { background: #334155; }

.me-flyout-note-danger,
.me-shell.me-theme-dark .me-flyout-note-danger,
.me-shell.me-theme-midnight .me-flyout-note-danger {
    background: #fff1f2 !important;
    color: #991b1b !important;
    border: 1px solid #fecaca;
}

.me-flyout-note-warning {
    background: #fffbeb !important;
    color: #92400e !important;
    border: 1px solid #fde68a;
}

.me-profile-panel,
.me-password-panel {
    display: grid;
    gap: 10px;
    margin-top: 12px;
    padding: 12px;
    border: 1px solid rgba(20, 52, 106, .10);
    border-radius: 18px;
    background: #f8fafc;
}

.me-profile-panel > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    min-height: 26px;
}

.me-profile-panel span,
.me-password-panel label {
    color: var(--me-muted);
    font-size: 12px;
    font-weight: 800;
}

.me-profile-panel strong {
    color: var(--me-text);
    font-size: 13px;
    text-align: right;
}

.me-password-panel label {
    display: grid;
    gap: 6px;
}

.me-password-panel input {
    width: 100%;
    min-height: 38px;
    border: 1px solid rgba(20, 52, 106, .14);
    border-radius: 13px;
    padding: 8px 10px;
    color: var(--me-text);
    background: #fff;
    outline: none;
}

.me-password-panel input:focus {
    border-color: rgba(37, 99, 235, .42);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .09);
}


/* Paket 17: MudBlazor top bar meniji - stabilno otvaranje popover-a bez custom flyout klik mostova. */
.me-topbar-mud-menu { display: inline-flex; }
.me-topbar-mud-menu .mud-button-root, .me-topbar-mud-menu button { text-transform: none; }
.me-topbar-mud-popover { border-radius: 24px !important; overflow: hidden !important; box-shadow: 0 24px 72px rgba(15, 23, 42, .16) !important; border: 1px solid rgba(20, 52, 106, .12) !important; background: transparent !important; }
.me-topbar-mud-popover .mud-list, .me-topbar-mud-popover .mud-menu-list { padding: 0 !important; background: transparent !important; }
.me-mud-flyout { width: 390px; max-width: calc(100vw - 28px); padding: 18px; border-radius: 24px; background: rgba(255, 255, 255, .98); color: var(--me-text); }
.me-theme-mud-popover .me-mud-flyout { width: 440px; }
.me-profile-mud-popover .me-mud-flyout { width: 430px; }
.me-mud-flyout .me-flyout-header { margin-bottom: 14px; }
.me-mud-flyout button { font-family: inherit; }
.me-shell.me-theme-soft { --me-bg: #f7f9fc; --me-bg-soft: #fbfdff; --me-panel: #ffffff; --me-text: #1f2937; --me-muted: #667085; --me-border: rgba(148, 163, 184, .22); background: radial-gradient(circle at top right, rgba(20, 184, 166, .08), transparent 32%), #f7f9fc; }
.me-shell.me-theme-soft .me-sidebar { background: linear-gradient(180deg, #173153 0%, #11233d 100%); }
.me-shell.me-theme-soft .me-topbar, .me-shell.me-theme-soft .me-card, .me-shell.me-theme-soft .me-panel, .me-shell.me-theme-soft .me-workspace-switcher, .me-shell.me-theme-soft .me-profile-button, .me-shell.me-theme-soft .me-tool-button, .me-shell.me-theme-soft .me-global-search { box-shadow: 0 8px 22px rgba(15, 23, 42, .045); }
.me-profile-actions button.is-selected { background: var(--me-primary-soft); color: var(--me-primary); border-color: rgba(37, 99, 235, .22); }
.me-profile-menu-links { display: grid; gap: 8px; margin-top: 12px; }
.me-profile-menu-links a { display: flex; align-items: center; justify-content: space-between; min-height: 38px; padding: 9px 11px; border: 1px solid rgba(20, 52, 106, .10); border-radius: 14px; background: #fff; color: var(--me-text); text-decoration: none; font-size: 13px; font-weight: 800; }
.me-profile-menu-links a:hover { border-color: rgba(37, 99, 235, .20); background: #f8fafc; }
.me-shell.me-theme-dark .me-topbar-mud-popover, .me-shell.me-theme-midnight .me-topbar-mud-popover, .me-shell.me-theme-contrast .me-topbar-mud-popover { border-color: rgba(148, 163, 184, .22) !important; }
.me-shell.me-theme-dark .me-mud-flyout, .me-shell.me-theme-midnight .me-mud-flyout, .me-shell.me-theme-contrast .me-mud-flyout { background: rgba(16, 24, 39, .98); color: var(--me-text); }
.me-shell.me-theme-dark .me-profile-menu-links a, .me-shell.me-theme-midnight .me-profile-menu-links a, .me-shell.me-theme-contrast .me-profile-menu-links a { background: rgba(16, 24, 39, .96); color: var(--me-text); border-color: rgba(148, 163, 184, .22); }
@media (max-width: 560px) { .me-mud-flyout, .me-theme-mud-popover .me-mud-flyout, .me-profile-mud-popover .me-mud-flyout { width: calc(100vw - 24px); padding: 14px; } }

.me-topbar .mud-menu,
.me-topbar .mud-button-root,
.me-topbar .mud-icon-button {
    font-family: inherit;
}

/* Paket 18: stabilan top bar panel bez MudPopover-a, bez JS bridge-a i bez event stopPropagation trikova. */
.me-topbar {
    z-index: 9000;
}

.me-global-search {
    max-width: 520px !important;
    flex: 0 1 430px !important;
}

.me-topbar-right {
    flex-wrap: nowrap;
}

.me-topbar-tools {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.me-tool-button,
.me-profile-button,
.me-workspace-switcher,
.me-sidebar-top-toggle,
.me-flyout-close,
.me-topbar-panel button {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.me-tool-button,
.me-tool-button:hover,
.me-tool-button:focus,
.me-tool-button.is-active {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    min-width: 46px;
    padding: 0;
    border-radius: 18px;
    line-height: 1;
}

.me-tool-button-wide,
.me-tool-button-wide:hover,
.me-tool-button-wide:focus {
    width: auto;
    min-width: 58px;
    padding: 0 12px 0 8px;
    gap: 8px;
}

.me-topbar-panel {
    position: fixed;
    top: 76px;
    right: 24px;
    width: min(430px, calc(100vw - 32px));
    max-height: calc(100vh - 96px);
    overflow: auto;
    z-index: 10000;
    padding: 18px;
    border: 1px solid rgba(20, 52, 106, .14);
    border-radius: 24px;
    background: rgba(255, 255, 255, .98);
    color: var(--me-text);
    box-shadow: 0 28px 86px rgba(15, 23, 42, .22);
    backdrop-filter: blur(16px);
    pointer-events: auto;
}

.me-topbar-panel,
.me-topbar-panel * {
    pointer-events: auto !important;
}

.me-theme-panel {
    width: min(470px, calc(100vw - 32px));
}

.me-profile-panel-host {
    width: min(420px, calc(100vw - 32px));
}

.me-topbar-panel .me-flyout-close {
    flex: 0 0 auto;
}

.me-topbar-panel .me-workspace-option,
.me-topbar-panel .me-theme-card,
.me-topbar-panel .me-accent-option,
.me-topbar-panel .me-profile-actions button,
.me-topbar-panel .me-profile-menu-links button {
    cursor: pointer;
    user-select: none;
}

.me-topbar-panel .me-workspace-option:disabled,
.me-topbar-panel .me-button:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.me-profile-menu-links button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 38px;
    width: 100%;
    padding: 9px 11px;
    border: 1px solid rgba(20, 52, 106, .10);
    border-radius: 14px;
    background: #fff;
    color: var(--me-text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    text-align: left;
}

.me-profile-menu-links button:hover {
    border-color: rgba(37, 99, 235, .20);
    background: #f8fafc;
}

.me-profile-menu-links button.me-profile-logout {
    justify-content: center;
    color: #991b1b;
    background: #fff1f2;
    border-color: #fecaca;
}

.me-shell.me-theme-dark .me-topbar-panel,
.me-shell.me-theme-midnight .me-topbar-panel,
.me-shell.me-theme-contrast .me-topbar-panel {
    background: rgba(16, 24, 39, .98);
    border-color: rgba(148, 163, 184, .24);
}

.me-shell.me-theme-dark .me-profile-menu-links button,
.me-shell.me-theme-midnight .me-profile-menu-links button,
.me-shell.me-theme-contrast .me-profile-menu-links button {
    background: rgba(16, 24, 39, .96);
    color: var(--me-text);
    border-color: rgba(148, 163, 184, .22);
}

@media (max-width: 1240px) {
    .me-topbar-right {
        flex-wrap: wrap;
    }

    .me-global-search {
        max-width: none !important;
        flex: 1 1 320px !important;
    }
}

@media (max-width: 760px) {
    .me-topbar-panel {
        top: 92px;
        right: 12px;
        width: calc(100vw - 24px);
        max-height: calc(100vh - 112px);
        padding: 14px;
    }
}

/* Paket 19: EkonoMix princip - bez custom flyout dugmadi u top baru.
   Top bar koristi native select, <a> navigaciju i <details> profil meni. */
.me-ek-topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.me-global-search {
    max-width: 420px !important;
    flex: 0 1 380px !important;
}

.me-ek-context-control,
.me-ek-theme-control {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 46px;
    min-width: 0;
    padding: 0 10px;
    border: 1px solid rgba(20, 52, 106, .12);
    border-radius: 18px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 8px 24px rgba(15, 23, 42, .04);
}

.me-ek-context-control {
    width: 250px;
}

.me-ek-theme-control {
    width: 190px;
}

.me-ek-language-control {
    width: 88px;
}

.me-ek-context-select,
.me-ek-theme-select {
    width: 100%;
    min-width: 0;
    height: 38px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--me-text);
    font-size: 13px;
    font-weight: 850;
    cursor: pointer;
}

.me-ek-language-select {
    min-width: 0;
    padding-right: 0;
    text-align: center;
    font-weight: 800;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.me-ek-language-select::-ms-expand {
    display: none;
}

.me-ek-context-select:disabled {
    opacity: .65;
    cursor: not-allowed;
}

.me-ek-topbar-tools {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
}

.me-ek-topbar-tools .me-tool-button,
.me-ek-topbar-tools .me-tool-button:visited {
    text-decoration: none;
    color: var(--me-text);
}

.me-ek-profile-menu {
    position: relative;
    display: inline-block;
    min-width: 0;
}

.me-ek-profile-summary {
    list-style: none;
    cursor: pointer;
}

.me-ek-profile-summary::-webkit-details-marker {
    display: none;
}

.me-ek-profile-menu[open] .me-ek-profile-summary {
    border-color: rgba(37, 99, 235, .25);
    background: #ffffff;
}

.me-ek-profile-summary:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .30);
    outline-offset: 3px;
    border-color: rgba(37, 99, 235, .30);
}

.me-ek-profile-dropdown {
    position: absolute;
    top: calc(100% + 9px);
    right: 0;
    width: 292px;
    z-index: 10020;
    padding: 12px;
    border: 1px solid rgba(20, 52, 106, .14);
    border-radius: 22px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 26px 74px rgba(15, 23, 42, .18);
    backdrop-filter: blur(14px);
}

.me-ek-profile-dropdown-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 8px 12px;
    border-bottom: 1px solid rgba(20, 52, 106, .10);
    margin-bottom: 8px;
}

.me-ek-profile-dropdown-head div {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.me-ek-profile-dropdown-head strong {
    color: var(--me-text);
    font-size: 14px;
    line-height: 1.2;
}

.me-ek-profile-dropdown-head span:not(.me-profile-avatar) {
    color: var(--me-muted);
    font-size: 12px;
}

.me-ek-profile-dropdown a,
.me-ek-profile-dropdown a:visited {
    display: flex;
    align-items: center;
    min-height: 38px;
    padding: 9px 11px;
    border-radius: 14px;
    color: var(--me-text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 850;
}

.me-ek-profile-dropdown a:hover {
    background: var(--me-primary-soft);
    color: var(--me-primary);
}

.me-ek-profile-dropdown a:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .25);
    outline-offset: 2px;
    background: var(--me-primary-soft);
    color: var(--me-primary);
}

.me-ek-profile-dropdown .me-ek-profile-logout {
    color: #b91c1c;
}

.me-profile-avatar-xl {
    width: 64px;
    height: 64px;
    border-radius: 22px;
    font-size: 20px;
}

.me-profile-page-card,
.me-narrow-card {
    max-width: 980px;
}

.me-profile-page-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.me-profile-page-head h2 {
    margin: 0 0 4px;
}

.me-profile-page-head p {
    margin: 0;
    color: var(--me-muted);
}

.me-shell.me-theme-dark .me-ek-context-control,
.me-shell.me-theme-dark .me-ek-theme-control,
.me-shell.me-theme-dark .me-ek-profile-dropdown,
.me-shell.me-theme-midnight .me-ek-context-control,
.me-shell.me-theme-midnight .me-ek-theme-control,
.me-shell.me-theme-midnight .me-ek-profile-dropdown,
.me-shell.me-theme-contrast .me-ek-context-control,
.me-shell.me-theme-contrast .me-ek-theme-control,
.me-shell.me-theme-contrast .me-ek-profile-dropdown {
    background: rgba(16, 24, 39, .98);
    color: var(--me-text);
    border-color: rgba(148, 163, 184, .22);
}

.me-shell.me-theme-dark .me-ek-context-select,
.me-shell.me-theme-dark .me-ek-theme-select,
.me-shell.me-theme-midnight .me-ek-context-select,
.me-shell.me-theme-midnight .me-ek-theme-select,
.me-shell.me-theme-contrast .me-ek-context-select,
.me-shell.me-theme-contrast .me-ek-theme-select {
    color: var(--me-text);
}

@media (max-width: 1320px) {
    .me-ek-theme-control {
        width: 160px;
    }

    .me-ek-context-control {
        width: 220px;
    }
}

@media (max-width: 1180px) {
    .me-ek-topbar-right {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

@media (max-width: 720px) {
    .me-global-search {
        max-width: none !important;
        flex: 1 1 100% !important;
    }

    .me-ek-context-control,
    .me-ek-theme-control {
        width: 100%;
    }

    .me-ek-profile-dropdown {
        right: auto;
        left: 0;
        width: min(292px, calc(100vw - 32px));
    }
}

/* Paket context-theme-professional: globalne teme po EkonoMix obrascu + stabilan izbor firme/godine preko posebne stranice. */
body.me-body-theme-modern,
body.me-body-theme-soft,
body.me-body-theme-compact {
    background: #f4f7fb;
    color: #172033;
}

body.me-body-theme-dark,
body.me-body-theme-midnight,
body.me-body-theme-contrast {
    background: #0f172a;
    color: #e5e7eb;
}

body.me-body-theme-soft {
    --me-bg: #f7f9fc;
    --me-bg-soft: #fbfdff;
    --me-panel: #ffffff;
    --me-text: #162033;
    --me-muted: #718096;
    --me-border: rgba(120, 138, 160, .24);
    --me-primary: #1f4a8a;
    --me-primary-soft: rgba(31, 74, 138, .08);
}

body.me-body-theme-compact {
    --me-bg: #f3f6fa;
    --me-bg-soft: #f8fafc;
    --me-panel: #ffffff;
    --me-text: #142033;
    --me-muted: #64748b;
    --me-border: rgba(100, 116, 139, .25);
    --me-primary: #1d4ed8;
    --me-primary-soft: rgba(29, 78, 216, .08);
}

body.me-body-theme-dark {
    --me-bg: #111827;
    --me-bg-soft: #182132;
    --me-panel: #1f2937;
    --me-text: #e5e7eb;
    --me-muted: #aab4c3;
    --me-border: rgba(148, 163, 184, .22);
    --me-primary: #60a5fa;
    --me-primary-soft: rgba(96, 165, 250, .14);
    --me-shadow: 0 18px 44px rgba(0, 0, 0, .28);
}

body.me-body-theme-midnight {
    --me-bg: #07111f;
    --me-bg-soft: #0b1628;
    --me-panel: #101c31;
    --me-text: #edf5ff;
    --me-muted: #9fb0c6;
    --me-border: rgba(96, 165, 250, .20);
    --me-primary: #38bdf8;
    --me-primary-soft: rgba(56, 189, 248, .15);
    --me-shadow: 0 22px 55px rgba(0, 0, 0, .34);
}

body.me-body-theme-contrast {
    --me-bg: #ffffff;
    --me-bg-soft: #ffffff;
    --me-panel: #ffffff;
    --me-text: #020617;
    --me-muted: #1e293b;
    --me-border: rgba(2, 6, 23, .45);
    --me-primary: #0036d9;
    --me-primary-soft: rgba(0, 54, 217, .12);
    --me-shadow: 0 0 0 1px rgba(2, 6, 23, .16);
}

body.me-body-theme-dark .me-shell,
body.me-body-theme-midnight .me-shell,
.me-shell.me-theme-dark,
.me-shell.me-theme-midnight {
    background: radial-gradient(circle at top right, rgba(37, 99, 235, .18), transparent 34%), var(--me-bg) !important;
    color: var(--me-text) !important;
}

body.me-body-theme-dark .me-topbar,
body.me-body-theme-dark .me-card,
body.me-body-theme-dark .me-panel,
body.me-body-theme-dark .me-home-welcome,
body.me-body-theme-dark .me-home-card,
body.me-body-theme-dark .me-home-module-card,
body.me-body-theme-dark .me-home-list-card,
body.me-body-theme-dark .me-ek-context-control,
body.me-body-theme-dark .me-ek-theme-control,
body.me-body-theme-dark .me-ek-profile-dropdown,
body.me-body-theme-dark .me-profile-button,
body.me-body-theme-dark .me-tool-button,
body.me-body-theme-midnight .me-topbar,
body.me-body-theme-midnight .me-card,
body.me-body-theme-midnight .me-panel,
body.me-body-theme-midnight .me-home-welcome,
body.me-body-theme-midnight .me-home-card,
body.me-body-theme-midnight .me-home-module-card,
body.me-body-theme-midnight .me-home-list-card,
body.me-body-theme-midnight .me-ek-context-control,
body.me-body-theme-midnight .me-ek-theme-control,
body.me-body-theme-midnight .me-ek-profile-dropdown,
body.me-body-theme-midnight .me-profile-button,
body.me-body-theme-midnight .me-tool-button {
    background: var(--me-panel) !important;
    color: var(--me-text) !important;
    border-color: var(--me-border) !important;
}

body.me-body-theme-dark input,
body.me-body-theme-dark select,
body.me-body-theme-midnight input,
body.me-body-theme-midnight select {
    background: var(--me-bg-soft) !important;
    color: var(--me-text) !important;
    border-color: var(--me-border) !important;
}

body.me-body-theme-dark .me-muted,
body.me-body-theme-dark .me-topbar-brand-subtitle,
body.me-body-theme-dark .me-profile-role,
body.me-body-theme-midnight .me-muted,
body.me-body-theme-midnight .me-topbar-brand-subtitle,
body.me-body-theme-midnight .me-profile-role {
    color: var(--me-muted) !important;
}

body.me-body-theme-contrast .me-topbar,
body.me-body-theme-contrast .me-card,
body.me-body-theme-contrast .me-panel,
body.me-body-theme-contrast .me-ek-context-control,
body.me-body-theme-contrast .me-ek-theme-control,
body.me-body-theme-contrast .me-ek-profile-dropdown,
body.me-body-theme-contrast .me-profile-button,
body.me-body-theme-contrast .me-tool-button {
    border: 2px solid var(--me-border) !important;
    box-shadow: none !important;
}

body.me-body-theme-compact .me-topbar {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

body.me-body-theme-compact .me-content {
    padding: 18px !important;
}

body.me-body-theme-compact .me-card,
body.me-body-theme-compact .me-panel {
    padding: 16px !important;
    border-radius: 18px !important;
}

.me-ek-context-link {
    text-decoration: none;
}

.me-ek-context-current {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.12;
}

.me-ek-context-current span {
    font-size: 10px;
    color: var(--me-muted);
    letter-spacing: .06em;
    text-transform: uppercase;
}

.me-ek-context-current strong {
    font-size: 13px;
    color: var(--me-text);
    white-space: nowrap;
}

.me-select-organisation-page {
    max-width: 980px;
}

.me-select-organisation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
}

.me-context-card {
    width: 100%;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--me-border);
    background: var(--me-panel);
    color: var(--me-text);
    border-radius: 18px;
    padding: 14px;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .05);
}

.me-context-card:hover,
.me-context-card.is-selected {
    border-color: rgba(37, 99, 235, .42);
    box-shadow: 0 14px 32px rgba(37, 99, 235, .10);
    transform: translateY(-1px);
}

.me-context-card-code {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--me-primary-soft);
    color: var(--me-primary);
    font-weight: 900;
    letter-spacing: .04em;
}

.me-context-card-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.me-context-card-main strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.me-context-card-main small {
    color: var(--me-muted);
    margin-top: 3px;
}

.me-context-card-year {
    border-radius: 999px;
    padding: 5px 9px;
    background: var(--me-primary-soft);
    color: var(--me-primary);
    font-size: 12px;
    font-weight: 900;
}

/* Paket 20260423: AkvaFaktur tema refresh + potpuna sinhronizacija menija sa shell temom. */
body.me-body-theme-modern {
    --me-bg: #f4f7f8;
    --me-bg-soft: #fbfcfd;
    --me-panel: rgba(255, 255, 255, .88);
    --me-text: #34322d;
    --me-muted: #7b7a75;
    --me-border: rgba(52, 50, 45, .10);
    --me-primary: #0081f2;
    --me-primary-soft: rgba(0, 129, 242, .12);
    --me-shadow: 0 20px 44px rgba(28, 42, 58, .08);
    --me-shell-glow: radial-gradient(circle at top right, rgba(0, 129, 242, .14), transparent 34%);
    --me-topbar-bg: rgba(255, 255, 255, .78);
    --me-control-bg: rgba(255, 255, 255, .82);
    --me-control-hover-bg: rgba(255, 255, 255, .96);
    --me-input-bg: rgba(255, 255, 255, .92);
    --me-sidebar-bg: linear-gradient(180deg, #1c232b 0%, #161d24 52%, #11161c 100%);
    --me-sidebar-bg-strong: linear-gradient(180deg, rgba(255, 255, 255, .05) 0%, rgba(255, 255, 255, .01) 100%);
    --me-sidebar-border: rgba(255, 255, 255, .10);
    --me-sidebar-text: #f8fafc;
    --me-sidebar-muted: rgba(248, 250, 252, .62);
    --me-sidebar-surface: rgba(255, 255, 255, .08);
    --me-sidebar-hover: rgba(0, 129, 242, .20);
    --me-sidebar-icon-bg: rgba(255, 255, 255, .10);
    background: #f4f7f8;
    color: var(--me-text);
}

body.me-body-theme-soft {
    --me-bg: #f7f2ea;
    --me-bg-soft: #fcf9f4;
    --me-panel: rgba(255, 252, 246, .9);
    --me-text: #3d352d;
    --me-muted: #8b7f73;
    --me-border: rgba(98, 78, 60, .12);
    --me-primary: #0081f2;
    --me-primary-soft: rgba(0, 129, 242, .10);
    --me-shadow: 0 22px 46px rgba(82, 63, 47, .10);
    --me-shell-glow: radial-gradient(circle at top right, rgba(239, 162, 1, .15), transparent 34%);
    --me-topbar-bg: rgba(255, 250, 244, .78);
    --me-control-bg: rgba(255, 252, 247, .84);
    --me-control-hover-bg: rgba(255, 255, 252, .98);
    --me-input-bg: rgba(255, 250, 244, .92);
    --me-sidebar-bg: linear-gradient(180deg, #4b3a2b 0%, #34271d 100%);
    --me-sidebar-bg-strong: linear-gradient(180deg, rgba(255, 255, 255, .05) 0%, rgba(255, 255, 255, .02) 100%);
    --me-sidebar-border: rgba(255, 248, 240, .10);
    --me-sidebar-text: #fff9f1;
    --me-sidebar-muted: rgba(255, 249, 241, .64);
    --me-sidebar-surface: rgba(255, 255, 255, .08);
    --me-sidebar-hover: rgba(239, 162, 1, .22);
    --me-sidebar-icon-bg: rgba(255, 255, 255, .10);
    background: #f7f2ea;
    color: var(--me-text);
}

body.me-body-theme-compact {
    --me-bg: #eef4f8;
    --me-bg-soft: #f7fafc;
    --me-panel: rgba(255, 255, 255, .9);
    --me-text: #293744;
    --me-muted: #6e7d89;
    --me-border: rgba(41, 55, 68, .10);
    --me-primary: #0081f2;
    --me-primary-soft: rgba(0, 129, 242, .11);
    --me-shadow: 0 18px 38px rgba(27, 39, 51, .08);
    --me-shell-glow: radial-gradient(circle at top right, rgba(0, 129, 242, .12), transparent 32%);
    --me-topbar-bg: rgba(255, 255, 255, .80);
    --me-control-bg: rgba(255, 255, 255, .86);
    --me-control-hover-bg: rgba(255, 255, 255, .98);
    --me-input-bg: rgba(255, 255, 255, .92);
    --me-sidebar-bg: linear-gradient(180deg, #133b5c 0%, #0d2c44 48%, #0a2132 100%);
    --me-sidebar-bg-strong: linear-gradient(180deg, rgba(255, 255, 255, .06) 0%, rgba(255, 255, 255, .02) 100%);
    --me-sidebar-border: rgba(255, 255, 255, .10);
    --me-sidebar-text: #f3fbff;
    --me-sidebar-muted: rgba(243, 251, 255, .62);
    --me-sidebar-surface: rgba(255, 255, 255, .08);
    --me-sidebar-hover: rgba(0, 129, 242, .24);
    --me-sidebar-icon-bg: rgba(255, 255, 255, .10);
    background: #eef4f8;
    color: var(--me-text);
}

body.me-body-theme-dark {
    --me-bg: #181c20;
    --me-bg-soft: #20262d;
    --me-panel: rgba(31, 37, 44, .92);
    --me-text: #f5f7fa;
    --me-muted: #b2bcc8;
    --me-border: rgba(248, 250, 252, .10);
    --me-primary: #35b8ff;
    --me-primary-soft: rgba(53, 184, 255, .14);
    --me-shadow: 0 24px 58px rgba(0, 0, 0, .34);
    --me-shell-glow: radial-gradient(circle at top right, rgba(53, 184, 255, .16), transparent 34%);
    --me-topbar-bg: rgba(24, 28, 32, .74);
    --me-control-bg: rgba(33, 39, 46, .9);
    --me-control-hover-bg: rgba(39, 46, 54, .98);
    --me-input-bg: rgba(28, 35, 42, .9);
    --me-sidebar-bg: linear-gradient(180deg, #11161c 0%, #0b1015 100%);
    --me-sidebar-bg-strong: linear-gradient(180deg, rgba(255, 255, 255, .03) 0%, rgba(255, 255, 255, .01) 100%);
    --me-sidebar-border: rgba(255, 255, 255, .08);
    --me-sidebar-text: #f7fafc;
    --me-sidebar-muted: rgba(247, 250, 252, .58);
    --me-sidebar-surface: rgba(255, 255, 255, .06);
    --me-sidebar-hover: rgba(53, 184, 255, .18);
    --me-sidebar-icon-bg: rgba(255, 255, 255, .08);
    background: #181c20;
    color: var(--me-text);
}

body.me-body-theme-midnight {
    --me-bg: #06131d;
    --me-bg-soft: #0b1c29;
    --me-panel: rgba(10, 24, 36, .92);
    --me-text: #ecf9ff;
    --me-muted: #9fbbc9;
    --me-border: rgba(120, 202, 255, .16);
    --me-primary: #47d7c5;
    --me-primary-soft: rgba(71, 215, 197, .16);
    --me-shadow: 0 28px 64px rgba(0, 0, 0, .38);
    --me-shell-glow: radial-gradient(circle at top right, rgba(71, 215, 197, .18), transparent 36%);
    --me-topbar-bg: rgba(6, 19, 29, .72);
    --me-control-bg: rgba(11, 28, 41, .92);
    --me-control-hover-bg: rgba(16, 37, 52, .98);
    --me-input-bg: rgba(11, 28, 41, .92);
    --me-sidebar-bg: linear-gradient(180deg, #041019 0%, #051723 54%, #082434 100%);
    --me-sidebar-bg-strong: linear-gradient(180deg, rgba(71, 215, 197, .06) 0%, rgba(71, 215, 197, .02) 100%);
    --me-sidebar-border: rgba(120, 202, 255, .12);
    --me-sidebar-text: #ecfeff;
    --me-sidebar-muted: rgba(236, 254, 255, .60);
    --me-sidebar-surface: rgba(71, 215, 197, .08);
    --me-sidebar-hover: rgba(71, 215, 197, .16);
    --me-sidebar-icon-bg: rgba(71, 215, 197, .10);
    background: #06131d;
    color: var(--me-text);
}

body.me-body-theme-contrast {
    --me-bg: #ffffff;
    --me-bg-soft: #ffffff;
    --me-panel: #ffffff;
    --me-text: #0f172a;
    --me-muted: #334155;
    --me-border: rgba(15, 23, 42, .56);
    --me-primary: #005bd3;
    --me-primary-soft: rgba(0, 91, 211, .12);
    --me-shadow: none;
    --me-shell-glow: none;
    --me-topbar-bg: #ffffff;
    --me-control-bg: #ffffff;
    --me-control-hover-bg: #f8fafc;
    --me-input-bg: #ffffff;
    --me-sidebar-bg: linear-gradient(180deg, #0f172a 0%, #0f172a 100%);
    --me-sidebar-bg-strong: linear-gradient(180deg, rgba(255, 255, 255, .04) 0%, rgba(255, 255, 255, .04) 100%);
    --me-sidebar-border: rgba(255, 255, 255, .28);
    --me-sidebar-text: #ffffff;
    --me-sidebar-muted: rgba(255, 255, 255, .78);
    --me-sidebar-surface: rgba(255, 255, 255, .10);
    --me-sidebar-hover: rgba(255, 255, 255, .14);
    --me-sidebar-icon-bg: rgba(255, 255, 255, .10);
    background: #ffffff;
    color: var(--me-text);
}

body.me-body-theme-modern .me-shell,
body.me-body-theme-soft .me-shell,
body.me-body-theme-compact .me-shell,
body.me-body-theme-dark .me-shell,
body.me-body-theme-midnight .me-shell,
body.me-body-theme-contrast .me-shell {
    background: var(--me-shell-glow), var(--me-bg) !important;
    color: var(--me-text) !important;
}

body.me-body-theme-modern .me-topbar,
body.me-body-theme-soft .me-topbar,
body.me-body-theme-compact .me-topbar,
body.me-body-theme-dark .me-topbar,
body.me-body-theme-midnight .me-topbar,
body.me-body-theme-contrast .me-topbar {
    background: var(--me-topbar-bg) !important;
    border-bottom-color: var(--me-border) !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .04);
    backdrop-filter: blur(16px);
}

body.me-body-theme-modern .me-global-search,
body.me-body-theme-soft .me-global-search,
body.me-body-theme-compact .me-global-search,
body.me-body-theme-dark .me-global-search,
body.me-body-theme-midnight .me-global-search,
body.me-body-theme-contrast .me-global-search,
body.me-body-theme-modern .me-profile-button,
body.me-body-theme-soft .me-profile-button,
body.me-body-theme-compact .me-profile-button,
body.me-body-theme-dark .me-profile-button,
body.me-body-theme-midnight .me-profile-button,
body.me-body-theme-contrast .me-profile-button,
body.me-body-theme-modern .me-tool-button,
body.me-body-theme-soft .me-tool-button,
body.me-body-theme-compact .me-tool-button,
body.me-body-theme-dark .me-tool-button,
body.me-body-theme-midnight .me-tool-button,
body.me-body-theme-contrast .me-tool-button,
body.me-body-theme-modern .me-ek-context-control,
body.me-body-theme-soft .me-ek-context-control,
body.me-body-theme-compact .me-ek-context-control,
body.me-body-theme-dark .me-ek-context-control,
body.me-body-theme-midnight .me-ek-context-control,
body.me-body-theme-contrast .me-ek-context-control,
body.me-body-theme-modern .me-ek-theme-control,
body.me-body-theme-soft .me-ek-theme-control,
body.me-body-theme-compact .me-ek-theme-control,
body.me-body-theme-dark .me-ek-theme-control,
body.me-body-theme-midnight .me-ek-theme-control,
body.me-body-theme-contrast .me-ek-theme-control,
body.me-body-theme-modern .me-ek-profile-dropdown,
body.me-body-theme-soft .me-ek-profile-dropdown,
body.me-body-theme-compact .me-ek-profile-dropdown,
body.me-body-theme-dark .me-ek-profile-dropdown,
body.me-body-theme-midnight .me-ek-profile-dropdown,
body.me-body-theme-contrast .me-ek-profile-dropdown {
    background: var(--me-control-bg) !important;
    color: var(--me-text) !important;
    border-color: var(--me-border) !important;
    box-shadow: var(--me-shadow) !important;
}

body.me-body-theme-modern .me-global-search input,
body.me-body-theme-soft .me-global-search input,
body.me-body-theme-compact .me-global-search input,
body.me-body-theme-dark .me-global-search input,
body.me-body-theme-midnight .me-global-search input,
body.me-body-theme-contrast .me-global-search input,
body.me-body-theme-modern .me-ek-context-select,
body.me-body-theme-soft .me-ek-context-select,
body.me-body-theme-compact .me-ek-context-select,
body.me-body-theme-dark .me-ek-context-select,
body.me-body-theme-midnight .me-ek-context-select,
body.me-body-theme-contrast .me-ek-context-select,
body.me-body-theme-modern .me-ek-theme-select,
body.me-body-theme-soft .me-ek-theme-select,
body.me-body-theme-compact .me-ek-theme-select,
body.me-body-theme-dark .me-ek-theme-select,
body.me-body-theme-midnight .me-ek-theme-select,
body.me-body-theme-contrast .me-ek-theme-select {
    background: transparent !important;
    color: var(--me-text) !important;
}

body.me-body-theme-modern .me-sidebar,
body.me-body-theme-soft .me-sidebar,
body.me-body-theme-compact .me-sidebar,
body.me-body-theme-dark .me-sidebar,
body.me-body-theme-midnight .me-sidebar,
body.me-body-theme-contrast .me-sidebar {
    background: var(--me-sidebar-bg) !important;
    color: var(--me-sidebar-text) !important;
    box-shadow: 14px 0 38px rgba(15, 23, 42, .18);
}

body.me-body-theme-modern .me-sidebar-header,
body.me-body-theme-soft .me-sidebar-header,
body.me-body-theme-compact .me-sidebar-header,
body.me-body-theme-dark .me-sidebar-header,
body.me-body-theme-midnight .me-sidebar-header,
body.me-body-theme-contrast .me-sidebar-header {
    background: var(--me-sidebar-bg), var(--me-sidebar-bg-strong) !important;
    border-bottom-color: var(--me-sidebar-border) !important;
}

body.me-body-theme-modern .me-brand-mark,
body.me-body-theme-soft .me-brand-mark,
body.me-body-theme-compact .me-brand-mark,
body.me-body-theme-dark .me-brand-mark,
body.me-body-theme-midnight .me-brand-mark,
body.me-body-theme-contrast .me-brand-mark,
body.me-body-theme-modern .me-sidebar-context,
body.me-body-theme-soft .me-sidebar-context,
body.me-body-theme-compact .me-sidebar-context,
body.me-body-theme-dark .me-sidebar-context,
body.me-body-theme-midnight .me-sidebar-context,
body.me-body-theme-contrast .me-sidebar-context {
    background: var(--me-sidebar-surface) !important;
    border-color: var(--me-sidebar-border) !important;
}

body.me-body-theme-modern .me-brand-subtitle,
body.me-body-theme-soft .me-brand-subtitle,
body.me-body-theme-compact .me-brand-subtitle,
body.me-body-theme-dark .me-brand-subtitle,
body.me-body-theme-midnight .me-brand-subtitle,
body.me-body-theme-contrast .me-brand-subtitle,
body.me-body-theme-modern .me-nav-group-title,
body.me-body-theme-soft .me-nav-group-title,
body.me-body-theme-compact .me-nav-group-title,
body.me-body-theme-dark .me-nav-group-title,
body.me-body-theme-midnight .me-nav-group-title,
body.me-body-theme-contrast .me-nav-group-title,
body.me-body-theme-modern .me-context-label,
body.me-body-theme-soft .me-context-label,
body.me-body-theme-compact .me-context-label,
body.me-body-theme-dark .me-context-label,
body.me-body-theme-midnight .me-context-label,
body.me-body-theme-contrast .me-context-label,
body.me-body-theme-modern .me-nav-description,
body.me-body-theme-soft .me-nav-description,
body.me-body-theme-compact .me-nav-description,
body.me-body-theme-dark .me-nav-description,
body.me-body-theme-midnight .me-nav-description,
body.me-body-theme-contrast .me-nav-description {
    color: var(--me-sidebar-muted) !important;
    opacity: 1;
}

body.me-body-theme-modern .me-nav-link,
body.me-body-theme-soft .me-nav-link,
body.me-body-theme-compact .me-nav-link,
body.me-body-theme-dark .me-nav-link,
body.me-body-theme-midnight .me-nav-link,
body.me-body-theme-contrast .me-nav-link,
body.me-body-theme-modern .me-nav-disabled,
body.me-body-theme-soft .me-nav-disabled,
body.me-body-theme-compact .me-nav-disabled,
body.me-body-theme-dark .me-nav-disabled,
body.me-body-theme-midnight .me-nav-disabled,
body.me-body-theme-contrast .me-nav-disabled {
    color: var(--me-sidebar-text) !important;
}

body.me-body-theme-modern .me-nav-link:hover,
body.me-body-theme-soft .me-nav-link:hover,
body.me-body-theme-compact .me-nav-link:hover,
body.me-body-theme-dark .me-nav-link:hover,
body.me-body-theme-midnight .me-nav-link:hover,
body.me-body-theme-contrast .me-nav-link:hover,
body.me-body-theme-modern .me-nav-link.active,
body.me-body-theme-soft .me-nav-link.active,
body.me-body-theme-compact .me-nav-link.active,
body.me-body-theme-dark .me-nav-link.active,
body.me-body-theme-midnight .me-nav-link.active,
body.me-body-theme-contrast .me-nav-link.active {
    background: var(--me-sidebar-hover) !important;
    color: #ffffff !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}

body.me-body-theme-modern .me-nav-icon,
body.me-body-theme-soft .me-nav-icon,
body.me-body-theme-compact .me-nav-icon,
body.me-body-theme-dark .me-nav-icon,
body.me-body-theme-midnight .me-nav-icon,
body.me-body-theme-contrast .me-nav-icon {
    background: var(--me-sidebar-icon-bg) !important;
    color: var(--me-sidebar-text) !important;
}

body.me-body-theme-modern .me-sidebar-collapse,
body.me-body-theme-soft .me-sidebar-collapse,
body.me-body-theme-compact .me-sidebar-collapse,
body.me-body-theme-dark .me-sidebar-collapse,
body.me-body-theme-midnight .me-sidebar-collapse,
body.me-body-theme-contrast .me-sidebar-collapse {
    background: var(--me-sidebar-surface) !important;
    border-color: var(--me-sidebar-border) !important;
    color: var(--me-sidebar-text) !important;
}

body.me-body-theme-modern .me-shell.me-sidebar-collapsed .me-sidebar-collapse,
body.me-body-theme-soft .me-shell.me-sidebar-collapsed .me-sidebar-collapse,
body.me-body-theme-compact .me-shell.me-sidebar-collapsed .me-sidebar-collapse,
body.me-body-theme-dark .me-shell.me-sidebar-collapsed .me-sidebar-collapse,
body.me-body-theme-midnight .me-shell.me-sidebar-collapsed .me-sidebar-collapse,
body.me-body-theme-contrast .me-shell.me-sidebar-collapsed .me-sidebar-collapse,
body.me-body-theme-modern .me-shell[data-sidebar-collapsed="true"] .me-sidebar-collapse,
body.me-body-theme-soft .me-shell[data-sidebar-collapsed="true"] .me-sidebar-collapse,
body.me-body-theme-compact .me-shell[data-sidebar-collapsed="true"] .me-sidebar-collapse,
body.me-body-theme-dark .me-shell[data-sidebar-collapsed="true"] .me-sidebar-collapse,
body.me-body-theme-midnight .me-shell[data-sidebar-collapsed="true"] .me-sidebar-collapse,
body.me-body-theme-contrast .me-shell[data-sidebar-collapsed="true"] .me-sidebar-collapse,
body.me-body-theme-modern .me-shell[data-sidebar-collapsed="True"] .me-sidebar-collapse,
body.me-body-theme-soft .me-shell[data-sidebar-collapsed="True"] .me-sidebar-collapse,
body.me-body-theme-compact .me-shell[data-sidebar-collapsed="True"] .me-sidebar-collapse,
body.me-body-theme-dark .me-shell[data-sidebar-collapsed="True"] .me-sidebar-collapse,
body.me-body-theme-midnight .me-shell[data-sidebar-collapsed="True"] .me-sidebar-collapse,
body.me-body-theme-contrast .me-shell[data-sidebar-collapsed="True"] .me-sidebar-collapse {
    background: var(--me-control-bg) !important;
    color: var(--me-primary) !important;
    border-color: var(--me-border) !important;
    box-shadow: var(--me-shadow) !important;
}

body.me-body-theme-modern .me-sidebar-footer,
body.me-body-theme-soft .me-sidebar-footer,
body.me-body-theme-compact .me-sidebar-footer,
body.me-body-theme-dark .me-sidebar-footer,
body.me-body-theme-midnight .me-sidebar-footer,
body.me-body-theme-contrast .me-sidebar-footer {
    border-top-color: var(--me-sidebar-border) !important;
}

body.me-body-theme-modern .me-sidebar-footer a,
body.me-body-theme-soft .me-sidebar-footer a,
body.me-body-theme-compact .me-sidebar-footer a,
body.me-body-theme-dark .me-sidebar-footer a,
body.me-body-theme-midnight .me-sidebar-footer a,
body.me-body-theme-contrast .me-sidebar-footer a {
    background: var(--me-sidebar-surface) !important;
    border-color: var(--me-sidebar-border) !important;
    color: var(--me-sidebar-text) !important;
}

/* Paket 16: legacy host povrsina za stare controller-style stranice unutar novog shell-a. */
.me-content-legacy {
    padding-top: 10px;
}

.me-content-container-legacy {
    padding: 0 !important;
}

.me-body-host-legacy {
    position: relative;
    padding: 12px 18px 18px;
    border-radius: 28px;
    border: 1px solid rgba(148, 163, 184, .18);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(247, 250, 252, .96)),
        radial-gradient(circle at top right, rgba(14, 165, 233, .08), transparent 34%);
    box-shadow: 0 22px 52px rgba(15, 23, 42, .09);
}

.me-shell-legacy-page .me-body-host-legacy .index-document-container {
    display: grid;
    gap: 12px;
}

.me-shell-legacy-page .me-body-host-legacy .fixed-toolbar {
    position: sticky;
    top: 0;
    width: 100%;
    height: auto;
    z-index: 12;
    margin: 0;
}

.me-shell-legacy-page .me-body-host-legacy .fixed-toolbar > .mud-paper {
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, .16);
    box-shadow: 0 18px 34px rgba(15, 23, 42, .08) !important;
    overflow: hidden;
}

.me-shell-legacy-page .me-body-host-legacy .scrollable-content {
    margin-top: 0;
    padding: 20px;
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, .14);
    box-shadow: 0 16px 34px rgba(15, 23, 42, .06) !important;
}

.me-shell-legacy-page .me-body-host-legacy .custom-title {
    margin-bottom: 20px;
    align-items: center;
}

.me-shell-legacy-page .me-body-host-legacy .custom-grid {
    margin: 0;
    width: 100%;
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(248, 250, 252, .96), rgba(241, 245, 249, .92));
    box-shadow: none;
}

.me-shell-legacy-page .me-body-host-legacy .mud-table-toolbar {
    padding-bottom: 12px;
}

.me-shell-legacy-page .me-body-host-legacy .mud-table-container {
    border-radius: 18px;
    overflow: auto;
}

.me-shell-legacy-page .me-body-host-legacy .mud-table-head .mud-table-cell {
    font-weight: 800;
    color: #0f172a;
    background: rgba(248, 250, 252, .96);
}

.me-shell-legacy-page .me-body-host-legacy .mud-table-row:hover td {
    background: rgba(37, 99, 235, .04);
}

.me-shell-legacy-page .me-body-host-legacy .mud-input-slot {
    background: rgba(255, 255, 255, .86);
}

@media (max-width: 640px) {
    .me-content-legacy {
        padding-top: 8px;
    }

    .me-body-host-legacy {
        padding: 10px 12px 12px;
        border-radius: 22px;
    }

    .me-shell-legacy-page .me-body-host-legacy .scrollable-content {
        padding: 16px;
    }
}

/* MiniErp novi meni / Pregled mock front */
.me-overview-page {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.me-overview-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 1.25rem;
    align-items: stretch;
}

.me-overview-hero h1 {
    margin: .25rem 0 .5rem;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.05;
    color: var(--me-text-strong, #0b1b5f);
}

.me-overview-hero p {
    color: var(--me-text-muted, #7180ad);
    font-size: 1.05rem;
}

.me-overview-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.75rem;
}

.me-overview-chip-row span,
.me-wip-meta span {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .65rem .9rem;
    border: 1px solid var(--me-border, #e5e9f5);
    border-radius: 999px;
    background: #fff;
    color: var(--me-text, #15245a);
}

.me-overview-side-card,
.me-overview-favorites,
.me-overview-actions,
.me-wip-card {
    border: 1px solid var(--me-border, #e5e9f5);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(16, 35, 89, .06);
}

.me-overview-side-card {
    padding: 1.25rem;
}

.me-overview-side-title {
    font-weight: 800;
    color: var(--me-text-strong, #0b1b5f);
    margin-bottom: .85rem;
}

.me-overview-side-card a,
.me-overview-favorites a,
.me-overview-actions a {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: .75rem;
    align-items: center;
    padding: .75rem .25rem;
    color: var(--me-text, #15245a);
    text-decoration: none;
    border-bottom: 1px solid var(--me-border, #edf0f8);
}

.me-overview-side-card a:last-child,
.me-overview-favorites a:last-child,
.me-overview-actions a:last-child {
    border-bottom: 0;
}

.me-overview-side-card small,
.me-overview-favorites small,
.me-overview-actions small {
    color: var(--me-text-muted, #7180ad);
}

.me-overview-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.me-overview-favorites,
.me-overview-actions {
    padding: 1rem 1.25rem;
}

.me-overview-module-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.me-overview-module-card {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    min-height: 132px;
    padding: 1.25rem;
    border: 1px solid var(--me-border, #e5e9f5);
    border-radius: 20px;
    background: #fff;
    color: var(--me-text, #15245a);
    text-decoration: none;
    box-shadow: 0 12px 32px rgba(16, 35, 89, .04);
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.me-overview-module-card:hover {
    transform: translateY(-2px);
    border-color: rgba(37, 99, 235, .35);
    box-shadow: 0 18px 44px rgba(37, 99, 235, .10);
}

.me-overview-module-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #eef4ff;
    color: #1f5eff;
    font-size: 1.75rem;
    font-weight: 900;
}

.me-overview-module-content {
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

.me-overview-module-content strong {
    color: var(--me-text-strong, #0b1b5f);
    font-size: 1.1rem;
}

.me-overview-module-content small {
    color: var(--me-text-muted, #7180ad);
}

.me-overview-module-count {
    color: #1463ff !important;
    font-weight: 800;
}

.me-wip-page {
    min-height: calc(100vh - 170px);
    display: grid;
    place-items: center;
    padding: 2rem;
}

.me-wip-card {
    width: min(760px, 100%);
    padding: 3rem;
    text-align: center;
}

.me-wip-icon {
    display: inline-grid;
    place-items: center;
    width: 88px;
    height: 88px;
    margin-bottom: 1rem;
    border-radius: 28px;
    background: #eef4ff;
    font-size: 2.4rem;
}

.me-wip-card h1 {
    margin: .25rem 0 .75rem;
    color: var(--me-text-strong, #0b1b5f);
    font-size: clamp(2rem, 4vw, 3rem);
}

.me-wip-card p {
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
    color: var(--me-text-muted, #7180ad);
}

.me-wip-progress {
    height: 10px;
    margin: 2rem auto 1.25rem;
    border-radius: 999px;
    background: #edf1fb;
    overflow: hidden;
}

.me-wip-progress span {
    display: block;
    width: 38%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #1f5eff, #49d3a2);
}

.me-wip-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .75rem;
    margin: 1.5rem 0 2rem;
}

.me-button-primary {
    border: 0;
    border-radius: 14px;
    padding: .85rem 1.25rem;
    background: #165dff;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.me-button-primary:hover {
    filter: brightness(.96);
}

@media (max-width: 1280px) {
    .me-overview-hero,
    .me-overview-two-col {
        grid-template-columns: 1fr;
    }

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

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

    .me-overview-module-card {
        grid-template-columns: 52px minmax(0, 1fr) auto;
    }

    .me-overview-module-icon {
        width: 52px;
        height: 52px;
        font-size: 1.35rem;
    }

    .me-wip-card {
        padding: 2rem 1.25rem;
    }
}


/* Patch 24-04: napredna pretraga u top baru bez Ctrl+K oznake. */
.me-global-search kbd {
    display: none !important;
}

.me-global-search-advanced {
    width: 34px;
    height: 34px;
    min-width: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid rgba(37, 99, 235, .16);
    background: rgba(37, 99, 235, .08);
    color: #1f66e5;
    text-decoration: none;
    font-size: 18px;
    line-height: 1;
    transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.me-global-search-advanced:hover {
    background: rgba(37, 99, 235, .14);
    box-shadow: 0 8px 18px rgba(37, 99, 235, .12);
    transform: translateY(-1px);
}

.me-shell.me-theme-dark .me-global-search-advanced,
.me-shell.me-theme-midnight .me-global-search-advanced {
    background: rgba(96, 165, 250, .16);
    color: #bfdbfe;
    border-color: rgba(147, 197, 253, .22);
}

/* Novi meni: SVG ikonice modula.
   Iste ikonice se koriste u normalnom i skupljenom meniju; u skupljenom stanju se prikazuju veće. */
.me-nav-icon-img {
    width: 22px;
    height: 22px;
    display: block;
    object-fit: contain;
}

.me-shell.me-sidebar-collapsed .me-nav-icon,
.me-shell[data-sidebar-collapsed="true"] .me-nav-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
}

.me-shell.me-sidebar-collapsed .me-nav-icon-img,
.me-shell[data-sidebar-collapsed="true"] .me-nav-icon-img {
    width: 30px;
    height: 30px;
}

/* Menu UX polish: veće, čitljivije ikonice i profesionalniji collapsed meni.
   Namerno je na kraju CSS fajla kao stabilizacioni sloj zbog starijih dupliranih pravila. */
.me-nav-link,
.me-nav-disabled {
    grid-template-columns: 44px minmax(0, 1fr);
    min-height: 58px;
    gap: 12px;
    padding: 10px 14px;
    position: relative;
}

.me-nav-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 15px;
    background: rgba(255, 255, 255, .13);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.me-nav-icon-img {
    width: 29px;
    height: 29px;
    display: block;
    object-fit: contain;
    transition: transform .16s ease, filter .16s ease;
}

.me-nav-link:hover .me-nav-icon,
.me-nav-link.active .me-nav-icon {
    background: rgba(255, 255, 255, .20);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), 0 10px 22px rgba(0, 0, 0, .14);
}

.me-nav-link:hover .me-nav-icon-img,
.me-nav-link.active .me-nav-icon-img {
    transform: scale(1.04);
}

.me-shell.me-sidebar-collapsed,
.me-shell[data-sidebar-collapsed="true"] {
    grid-template-columns: 96px minmax(0, 1fr);
}

.me-shell.me-sidebar-collapsed .me-nav,
.me-shell[data-sidebar-collapsed="true"] .me-nav {
    padding: 18px 12px;
    gap: 14px;
}

.me-shell.me-sidebar-collapsed .me-nav-link,
.me-shell.me-sidebar-collapsed .me-nav-disabled,
.me-shell[data-sidebar-collapsed="true"] .me-nav-link,
.me-shell[data-sidebar-collapsed="true"] .me-nav-disabled {
    grid-template-columns: 1fr;
    justify-items: center;
    min-height: 62px;
    padding: 9px 8px;
    border-radius: 18px;
}

.me-shell.me-sidebar-collapsed .me-nav-icon,
.me-shell[data-sidebar-collapsed="true"] .me-nav-icon {
    width: 54px;
    height: 54px;
    min-width: 54px;
    border-radius: 18px;
}

.me-shell.me-sidebar-collapsed .me-nav-icon-img,
.me-shell[data-sidebar-collapsed="true"] .me-nav-icon-img {
    width: 37px;
    height: 37px;
}

.me-shell.me-sidebar-collapsed .me-nav-link[data-menu-title]:hover::after,
.me-shell[data-sidebar-collapsed="true"] .me-nav-link[data-menu-title]:hover::after,
.me-shell.me-sidebar-collapsed .me-nav-disabled[data-menu-title]:hover::after,
.me-shell[data-sidebar-collapsed="true"] .me-nav-disabled[data-menu-title]:hover::after {
    content: attr(data-menu-title);
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    z-index: 2000;
    white-space: nowrap;
    padding: 8px 11px;
    border-radius: 12px;
    background: #0f172a;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .01em;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .26);
    pointer-events: none;
}

.me-shell.me-sidebar-collapsed .me-nav-link[data-menu-title]:hover::before,
.me-shell[data-sidebar-collapsed="true"] .me-nav-link[data-menu-title]:hover::before,
.me-shell.me-sidebar-collapsed .me-nav-disabled[data-menu-title]:hover::before,
.me-shell[data-sidebar-collapsed="true"] .me-nav-disabled[data-menu-title]:hover::before {
    content: "";
    position: absolute;
    left: calc(100% + 6px);
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px 6px 6px 0;
    border-style: solid;
    border-color: transparent #0f172a transparent transparent;
    z-index: 2001;
    pointer-events: none;
}

@media (max-width: 980px) {
    .me-shell.me-sidebar-collapsed,
    .me-shell[data-sidebar-collapsed="true"] {
        grid-template-columns: 1fr;
    }

    .me-shell.me-sidebar-collapsed .me-nav-link,
    .me-shell.me-sidebar-collapsed .me-nav-disabled,
    .me-shell[data-sidebar-collapsed="true"] .me-nav-link,
    .me-shell[data-sidebar-collapsed="true"] .me-nav-disabled {
        grid-template-columns: 44px minmax(0, 1fr);
        justify-items: initial;
        min-height: 58px;
        padding: 10px 14px;
    }

    .me-shell.me-sidebar-collapsed .me-nav-icon,
    .me-shell[data-sidebar-collapsed="true"] .me-nav-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
        border-radius: 15px;
    }

    .me-shell.me-sidebar-collapsed .me-nav-icon-img,
    .me-shell[data-sidebar-collapsed="true"] .me-nav-icon-img {
        width: 29px;
        height: 29px;
    }

    .me-shell.me-sidebar-collapsed .me-nav-link[data-menu-title]:hover::after,
    .me-shell[data-sidebar-collapsed="true"] .me-nav-link[data-menu-title]:hover::after,
    .me-shell.me-sidebar-collapsed .me-nav-disabled[data-menu-title]:hover::after,
    .me-shell[data-sidebar-collapsed="true"] .me-nav-disabled[data-menu-title]:hover::after,
    .me-shell.me-sidebar-collapsed .me-nav-link[data-menu-title]:hover::before,
    .me-shell[data-sidebar-collapsed="true"] .me-nav-link[data-menu-title]:hover::before,
    .me-shell.me-sidebar-collapsed .me-nav-disabled[data-menu-title]:hover::before,
    .me-shell[data-sidebar-collapsed="true"] .me-nav-disabled[data-menu-title]:hover::before {
        display: none;
    }
}

/* MiniErp 24-04-2026 - MudBlazor menu icon refactor */
.me-nav-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #4fd1ff;
    transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.me-nav-mud-icon {
    width: 25px !important;
    height: 25px !important;
    font-size: 25px !important;
    color: currentColor !important;
}

.me-nav-text-icon {
    font-size: 17px;
    line-height: 1;
    font-weight: 800;
    color: currentColor;
}

.me-nav-link:hover .me-nav-icon {
    background: rgba(37, 99, 235, 0.20);
    border-color: rgba(96, 165, 250, 0.45);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.18);
    transform: translateY(-1px);
}

.me-nav-link.active .me-nav-icon {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.34), rgba(14, 165, 233, 0.24));
    border-color: rgba(125, 211, 252, 0.65);
    color: #ffffff;
    box-shadow: 0 10px 26px rgba(37, 99, 235, 0.22);
}

.me-shell.me-sidebar-collapsed .me-nav-icon,
.me-shell[data-sidebar-collapsed="true"] .me-nav-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 16px;
}

.me-shell.me-sidebar-collapsed .me-nav-mud-icon,
.me-shell[data-sidebar-collapsed="true"] .me-nav-mud-icon {
    width: 29px !important;
    height: 29px !important;
    font-size: 29px !important;
}

.me-shell.me-sidebar-collapsed .me-nav-link,
.me-shell[data-sidebar-collapsed="true"] .me-nav-link {
    min-height: 58px;
    justify-content: center;
}

/* Paket UX shell 02: uskladjivanje sa novim referentnim ekranima. */
.me-shell {
    grid-template-columns: 236px 1fr;
    background:
        radial-gradient(circle at top right, rgba(47, 118, 255, 0.09), transparent 26%),
        linear-gradient(180deg, #fbfcff 0%, #f6f9ff 100%);
}

.me-sidebar {
    padding: 18px 12px 22px;
    background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(248,250,255,0.98) 100%);
    color: #17327b;
    border-right: 1px solid rgba(22, 39, 92, 0.08);
    box-shadow: none;
}

.me-sidebar-header {
    padding: 0 8px 8px;
}

.me-brand {
    margin-bottom: 10px;
}

.me-brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: transparent;
}

.me-brand-title {
    color: #14317c;
}

.me-brand-subtitle,
.me-nav-group-title {
    color: #7d8aa6;
    opacity: 1;
}

.me-nav {
    gap: 14px;
    padding-right: 0;
}

.me-nav-group {
    gap: 6px;
}

.me-nav-link,
.me-nav-disabled {
    grid-template-columns: 26px 1fr;
    gap: 12px;
    min-height: 44px;
    padding: 10px 12px;
    color: #35508f;
    border-radius: 14px;
}

.me-nav-link:hover,
.me-nav-link.active {
    background: linear-gradient(180deg, rgba(239,244,255,0.98), rgba(247,250,255,0.98));
    color: #1d4ed8;
    transform: none;
}

.me-nav-link.active {
    box-shadow: inset 3px 0 0 #2f76ff;
}

.me-nav-icon {
    width: 26px;
    height: 26px;
    border-radius: 10px;
    background: transparent;
    color: #4161a8;
}

.me-nav-title {
    color: #29488f;
    font-weight: 700;
}

.me-nav-description {
    display: none;
}

.me-sidebar-footer {
    margin-top: auto;
    padding: 14px 12px 8px;
    border-top: 1px solid rgba(22, 39, 92, 0.08);
    color: #8a97b3;
    font-size: 12px;
    line-height: 1.65;
}

.me-topbar {
    min-height: 72px;
    padding: 12px 20px;
    gap: 14px;
    background: rgba(255,255,255,0.92);
}

.me-topbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.me-topbar-brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: rgba(47,118,255,0.08);
}

.me-topbar-brand-icon img {
    width: 20px;
    height: 20px;
}

.me-topbar-brand-title {
    color: #17327b;
    font-weight: 800;
}

.me-topbar-brand-subtitle {
    color: #8592ad;
    font-size: 12px;
}

.me-global-search {
    min-width: min(100%, 340px);
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 16px;
    border: 1px solid rgba(22, 39, 92, 0.10);
    background: #fff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.03);
}

.me-global-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #29488f;
    font: inherit;
}

.me-global-search-icon,
.me-global-search-advanced {
    color: #2f76ff;
}

.me-topbar-right {
    gap: 10px;
}

.me-ek-context-link,
.me-ek-theme-control,
.me-tool-button,
.me-profile-button {
    min-height: 46px;
    border-radius: 16px;
    border: 1px solid rgba(22, 39, 92, 0.10);
    background: #fff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.03);
}

.me-ek-context-link {
    padding: 0 14px;
}

.me-ek-theme-control {
    padding: 0 12px;
}

.me-tool-button {
    min-width: 46px;
}

.me-tool-button-wide {
    min-width: 0;
    padding: 0 14px;
    gap: 10px;
}

.me-tool-short-text {
    color: #29488f;
    font-weight: 700;
    white-space: nowrap;
}

.me-profile-button {
    padding: 0 12px;
}

.me-profile-avatar {
    background: linear-gradient(180deg, #2f76ff, #1d4ed8);
}

.me-content {
    padding: 4px 20px 20px;
}

.me-content-host,
.me-content-container {
    padding: 0 !important;
}

.me-body-host {
    padding-top: 0;
    margin-top: 0;
}

@media (max-width: 980px) {
    .me-sidebar {
        border-right: 0;
    }

    .me-topbar {
        padding: 14px 16px;
    }

    .me-content {
        padding: 4px 16px 16px;
    }
}

.me-global-search-results {
    display: grid;
    width: min(520px, 100%);
    margin-top: 10px;
    gap: 8px;
    padding: 12px;
    border: 1px solid rgba(20, 52, 106, .12);
    border-radius: 18px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 18px 42px rgba(15, 23, 42, .12);
}

.me-global-search-result {
    display: grid;
    gap: 4px;
    width: 100%;
    padding: 10px 12px;
    text-align: left;
    border: 1px solid rgba(20, 52, 106, .08);
    border-radius: 14px;
    background: #fff;
    color: var(--me-text);
    font: inherit;
}

.me-global-search-result:hover {
    border-color: rgba(37, 99, 235, .20);
    background: #f8fbff;
}

.me-global-search-result-title {
    font-size: 13px;
    font-weight: 800;
    color: #17327b;
}

.me-global-search-result-subtitle {
    font-size: 12px;
    color: var(--me-muted);
}

/* Paket 02B: dodatne moderne teme za top bar i shell. */
body.me-body-theme-frost {
    --me-bg: #eef4fb;
    --me-bg-soft: #f6f9fd;
    --me-panel: #ffffff;
    --me-text: #18324f;
    --me-muted: #667b94;
    --me-border: rgba(128, 148, 176, .24);
    --me-primary: #2f5d93;
    --me-primary-soft: rgba(47, 93, 147, .10);
    --me-shadow: 0 16px 40px rgba(30, 49, 79, .08);
    --me-sidebar-bg: linear-gradient(180deg, #22364c 0%, #19293b 100%);
    --me-sidebar-bg-strong: #142232;
    --me-sidebar-surface: rgba(255, 255, 255, .08);
    --me-sidebar-border: rgba(191, 219, 254, .10);
    --me-sidebar-text: #dbe7f5;
    --me-sidebar-muted: #9bb0c8;
    --me-sidebar-hover: rgba(96, 165, 250, .20);
    --me-sidebar-icon-bg: rgba(255, 255, 255, .08);
    --me-control-bg: rgba(255, 255, 255, .96);
}

body.me-body-theme-slate {
    --me-bg: #101827;
    --me-bg-soft: #162032;
    --me-panel: #1b2638;
    --me-text: #edf4ff;
    --me-muted: #9fb0c7;
    --me-border: rgba(148, 163, 184, .22);
    --me-primary: #8ab4f8;
    --me-primary-soft: rgba(138, 180, 248, .14);
    --me-shadow: 0 24px 56px rgba(0, 0, 0, .32);
    --me-sidebar-bg: linear-gradient(180deg, #152033 0%, #0f1726 100%);
    --me-sidebar-bg-strong: #0b1220;
    --me-sidebar-surface: rgba(255, 255, 255, .06);
    --me-sidebar-border: rgba(148, 163, 184, .12);
    --me-sidebar-text: #dbe6f7;
    --me-sidebar-muted: #93a6c0;
    --me-sidebar-hover: rgba(96, 165, 250, .20);
    --me-sidebar-icon-bg: rgba(255, 255, 255, .06);
    --me-control-bg: rgba(27, 38, 56, .96);
}

.me-shell.me-theme-frost {
    --me-bg: #eef4fb;
    --me-bg-soft: #f6f9fd;
    --me-panel: #ffffff;
    --me-text: #18324f;
    --me-muted: #667b94;
    --me-border: rgba(128, 148, 176, .24);
    background: radial-gradient(circle at top right, rgba(96, 165, 250, .12), transparent 32%), #eef4fb;
}

.me-shell.me-theme-slate {
    --me-bg: #101827;
    --me-bg-soft: #162032;
    --me-panel: #1b2638;
    --me-text: #edf4ff;
    --me-muted: #9fb0c7;
    --me-border: rgba(148, 163, 184, .22);
    background: radial-gradient(circle at top right, rgba(96, 165, 250, .16), transparent 34%), #101827;
}

.me-shell.me-theme-frost .me-main,
.me-shell.me-theme-frost .me-content,
.me-shell.me-theme-slate .me-main,
.me-shell.me-theme-slate .me-content {
    background: transparent;
}

.me-shell.me-theme-frost .me-topbar,
.me-shell.me-theme-frost .me-card,
.me-shell.me-theme-frost .me-panel,
.me-shell.me-theme-frost .me-home-card,
.me-shell.me-theme-frost .me-home-welcome,
.me-shell.me-theme-frost .me-home-module-card,
.me-shell.me-theme-frost .me-home-list-card,
.me-shell.me-theme-frost .me-ek-context-control,
.me-shell.me-theme-frost .me-ek-theme-control,
.me-shell.me-theme-frost .me-ek-profile-dropdown,
.me-shell.me-theme-frost .me-profile-button,
.me-shell.me-theme-frost .me-tool-button,
.me-shell.me-theme-frost .me-global-search {
    background: rgba(255, 255, 255, .96) !important;
    color: var(--me-text);
    border-color: rgba(128, 148, 176, .20);
    box-shadow: 0 14px 34px rgba(24, 50, 79, .08);
}

.me-shell.me-theme-slate .me-topbar,
.me-shell.me-theme-slate .me-card,
.me-shell.me-theme-slate .me-panel,
.me-shell.me-theme-slate .me-home-card,
.me-shell.me-theme-slate .me-home-welcome,
.me-shell.me-theme-slate .me-home-module-card,
.me-shell.me-theme-slate .me-home-list-card,
.me-shell.me-theme-slate .me-ek-context-control,
.me-shell.me-theme-slate .me-ek-theme-control,
.me-shell.me-theme-slate .me-ek-profile-dropdown,
.me-shell.me-theme-slate .me-profile-button,
.me-shell.me-theme-slate .me-tool-button,
.me-shell.me-theme-slate .me-global-search {
    background: rgba(27, 38, 56, .96) !important;
    color: var(--me-text);
    border-color: rgba(148, 163, 184, .22);
}

.me-shell.me-theme-slate input,
.me-shell.me-theme-slate .me-topbar-brand-title,
.me-shell.me-theme-slate .me-profile-name,
.me-shell.me-theme-slate .me-ek-context-current strong,
.me-shell.me-theme-slate .me-home-module-card,
.me-shell.me-theme-slate .me-home-list-card,
.me-shell.me-theme-slate .me-global-search-result-title {
    color: var(--me-text) !important;
}

body.me-body-theme-frost .me-sidebar,
body.me-body-theme-slate .me-sidebar {
    background: var(--me-sidebar-bg) !important;
    color: var(--me-sidebar-text) !important;
    box-shadow: 14px 0 38px rgba(15, 23, 42, .18);
}

body.me-body-theme-frost .me-sidebar-header,
body.me-body-theme-slate .me-sidebar-header {
    background: var(--me-sidebar-bg), var(--me-sidebar-bg-strong) !important;
    border-bottom-color: var(--me-sidebar-border) !important;
}

body.me-body-theme-frost .me-nav-group-title,
body.me-body-theme-frost .me-nav-description,
body.me-body-theme-slate .me-nav-group-title,
body.me-body-theme-slate .me-nav-description {
    color: var(--me-sidebar-muted) !important;
}

body.me-body-theme-frost .me-nav-link,
body.me-body-theme-frost .me-nav-disabled,
body.me-body-theme-slate .me-nav-link,
body.me-body-theme-slate .me-nav-disabled {
    color: var(--me-sidebar-text) !important;
}

body.me-body-theme-frost .me-nav-link:hover,
body.me-body-theme-frost .me-nav-link.active,
body.me-body-theme-slate .me-nav-link:hover,
body.me-body-theme-slate .me-nav-link.active {
    background: var(--me-sidebar-hover) !important;
    color: #ffffff !important;
}

body.me-body-theme-frost .me-nav-icon,
body.me-body-theme-slate .me-nav-icon {
    background: var(--me-sidebar-icon-bg) !important;
    color: var(--me-sidebar-text) !important;
}

/* Zavrsni sloj: citljiviji meni kroz sve teme. */
.me-nav-link,
.me-nav-disabled {
    color: var(--me-sidebar-text, #dbe7f5) !important;
}

.me-nav-title {
    color: inherit !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    text-shadow: 0 1px 0 rgba(0, 0, 0, .08);
}

.me-nav-description {
    color: var(--me-sidebar-muted, rgba(255, 255, 255, .78)) !important;
    opacity: 1 !important;
}

.me-nav-link:hover,
.me-nav-link.active {
    color: #ffffff !important;
}

.me-nav-link:hover .me-nav-description,
.me-nav-link.active .me-nav-description {
    color: rgba(255, 255, 255, .88) !important;
}

body.me-body-theme-modern .me-nav-link,
body.me-body-theme-soft .me-nav-link,
body.me-body-theme-compact .me-nav-link,
body.me-body-theme-frost .me-nav-link {
    color: #edf4ff !important;
}

body.me-body-theme-modern .me-nav-description,
body.me-body-theme-soft .me-nav-description,
body.me-body-theme-compact .me-nav-description,
body.me-body-theme-frost .me-nav-description {
    color: rgba(219, 231, 245, .82) !important;
}

body.me-body-theme-modern .me-nav-title,
body.me-body-theme-soft .me-nav-title,
body.me-body-theme-compact .me-nav-title,
body.me-body-theme-dark .me-nav-title,
body.me-body-theme-midnight .me-nav-title,
body.me-body-theme-contrast .me-nav-title,
body.me-body-theme-frost .me-nav-title,
body.me-body-theme-slate .me-nav-title {
    color: #f8fbff !important;
}

body.me-body-theme-modern .me-nav-description,
body.me-body-theme-soft .me-nav-description,
body.me-body-theme-compact .me-nav-description,
body.me-body-theme-dark .me-nav-description,
body.me-body-theme-midnight .me-nav-description,
body.me-body-theme-contrast .me-nav-description,
body.me-body-theme-frost .me-nav-description,
body.me-body-theme-slate .me-nav-description {
    font-weight: 600 !important;
}

body.me-body-theme-modern .me-nav-icon,
body.me-body-theme-soft .me-nav-icon,
body.me-body-theme-compact .me-nav-icon,
body.me-body-theme-dark .me-nav-icon,
body.me-body-theme-midnight .me-nav-icon,
body.me-body-theme-contrast .me-nav-icon,
body.me-body-theme-frost .me-nav-icon,
body.me-body-theme-slate .me-nav-icon {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.me-work-context-button {
    min-width: 11rem;
    border-radius: 999px !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em;
    text-transform: none !important;
    padding-inline: 1.15rem !important;
}

.me-work-context-button .mud-button-label {
    gap: .35rem;
}

.me-work-context-button-primary {
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.22);
}

.me-work-context-button-secondary {
    background: rgba(255, 255, 255, 0.72);
}

.me-global-search {
    position: relative;
}

.me-global-search-results {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 10030;
}

.me-topbar-notification-menu {
    position: relative;
}

.me-topbar-notification-summary {
    list-style: none;
    cursor: pointer;
}

.me-topbar-notification-summary::-webkit-details-marker {
    display: none;
}

.me-topbar-notification-dropdown {
    width: 360px;
    padding-bottom: 10px;
}

.me-topbar-notification-empty {
    padding: 10px 8px 14px;
    color: var(--me-muted);
    font-size: 13px;
}

.me-topbar-notification-actions {
    display: flex;
    justify-content: flex-start;
    padding: 4px 0 10px;
}

.me-topbar-notification-item {
    display: grid;
    gap: 4px;
    width: 100%;
    margin-bottom: 8px;
    padding: 10px 11px;
    text-align: left;
    border: 1px solid rgba(20, 52, 106, .10);
    border-radius: 14px;
    background: #fff;
    color: var(--me-text);
    font: inherit;
}

.me-topbar-notification-item:hover {
    border-color: rgba(37, 99, 235, .22);
    background: #f8fbff;
}

.me-topbar-notification-item-title {
    font-size: 13px;
    font-weight: 800;
    color: #17327b;
}

.me-topbar-notification-item-message {
    font-size: 12px;
    color: var(--me-muted);
}

.me-topbar-notification-item-meta {
    font-size: 11px;
    font-weight: 700;
    color: #5f79a9;
}

.me-topbar-panel-section-label {
    margin: 8px 8px 10px;
    color: #5f79a9;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.me-topbar-reminder-dropdown {
    width: 380px;
    padding-bottom: 10px;
}

.me-topbar-reminder-item {
    display: grid;
    gap: 4px;
    width: 100%;
    margin-bottom: 8px;
    padding: 10px 11px;
    text-align: left;
    border: 1px solid rgba(20, 52, 106, .10);
    border-radius: 14px;
    background: #fff;
    color: var(--me-text);
    font: inherit;
}

.me-topbar-reminder-item:hover {
    border-color: rgba(37, 99, 235, .22);
    background: #f8fbff;
}

.me-topbar-reminder-item-overdue {
    border-color: rgba(220, 38, 38, .18);
    background: #fff8f8;
}

.me-topbar-reminder-item-title {
    font-size: 13px;
    font-weight: 800;
    color: #17327b;
}

.me-topbar-reminder-item-message {
    font-size: 12px;
    color: var(--me-muted);
}

.me-topbar-reminder-item-meta {
    font-size: 11px;
    font-weight: 700;
    color: #5f79a9;
}

.me-topbar-notes-dropdown {
    width: 360px;
    padding-bottom: 10px;
}

.me-topbar-note-item {
    display: grid;
    gap: 4px;
    width: 100%;
    margin-bottom: 8px;
    padding: 10px 11px;
    text-align: left;
    border: 1px solid rgba(20, 52, 106, .10);
    border-radius: 14px;
    background: #fff;
    color: var(--me-text);
    font: inherit;
}

.me-topbar-note-item:hover {
    border-color: rgba(37, 99, 235, .22);
    background: #f8fbff;
}

.me-topbar-note-item-pinned {
    border-color: rgba(245, 158, 11, .22);
    background: #fffaf0;
}

.me-topbar-note-item-title {
    font-size: 13px;
    font-weight: 800;
    color: #17327b;
}

.me-topbar-note-item-message {
    font-size: 12px;
    color: var(--me-muted);
}

.me-topbar-note-item-meta {
    font-size: 11px;
    font-weight: 700;
    color: #5f79a9;
}

.me-topbar-support-dropdown {
    width: 420px;
    padding-bottom: 10px;
}

.me-topbar-support-menu {
    display: none;
}

.me-topbar-support-trigger {
    position: relative;
}

.me-help-drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    justify-content: flex-end;
    background: rgba(15, 23, 42, .24);
    backdrop-filter: blur(3px);
}

.me-help-drawer {
    width: min(500px, 100vw);
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: -24px 0 64px rgba(15, 23, 42, .18);
    outline: none;
}

.me-help-drawer-header,
.me-help-drawer-footer {
    flex: 0 0 auto;
    padding: 20px 22px;
}

.me-help-drawer-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid rgba(20, 52, 106, .08);
}

.me-help-drawer-kicker {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #6c7ca0;
}

.me-help-drawer-title {
    margin-top: 4px;
    font-size: 30px;
    font-weight: 900;
    line-height: 1.05;
    color: #17327b;
}

.me-help-drawer-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 18px 22px 22px;
}

.me-help-drawer-section {
    margin-bottom: 18px;
}

.me-help-drawer-section-title {
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 800;
    color: #5f79a9;
}

.me-help-page-card,
.me-help-context-card {
    border: 1px solid rgba(37, 99, 235, .10);
    border-radius: 18px;
    background: rgba(255, 255, 255, .92);
}

.me-help-page-card {
    padding: 16px;
}

.me-help-page-card-head {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 12px;
    align-items: flex-start;
}

.me-help-page-icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(180deg, #2f7bff 0%, #245ee5 100%);
    color: #fff;
}

.me-help-page-title {
    font-size: 24px;
    font-weight: 900;
    color: #17327b;
}

.me-help-page-description {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.6;
    color: #4d5f83;
}

.me-help-page-steps-title {
    margin-top: 16px;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 800;
    color: #17327b;
}

.me-help-page-steps {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 7px;
    color: #4d5f83;
    font-size: 13px;
    line-height: 1.5;
}

.me-help-search-filters {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.me-help-search-filter {
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(20, 52, 106, .12);
    border-radius: 999px;
    background: #fff;
    color: #35529c;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
}

.me-help-search-filter.is-active {
    border-color: #2563eb;
    background: #2563eb;
    color: #fff;
}

.me-help-search-state {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 2px 4px;
    color: #4d5f83;
    font-size: 13px;
    font-weight: 700;
}

.me-help-search-results {
    display: grid;
    gap: 10px;
}

.me-help-search-results-compact {
    margin-top: -2px;
}

.me-help-search-item {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    width: 100%;
    padding: 12px 13px;
    text-align: left;
    border: 1px solid rgba(20, 52, 106, .10);
    border-radius: 16px;
    background: #fff;
    color: var(--me-text);
    font: inherit;
}

.me-help-search-item:hover {
    border-color: rgba(37, 99, 235, .22);
    background: #f8fbff;
}

.me-help-search-item-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #eef5ff;
    color: #2563eb;
}

.me-help-search-item-copy {
    display: grid;
    gap: 3px;
}

.me-help-search-item-copy strong {
    font-size: 14px;
    font-weight: 800;
    color: #17327b;
}

.me-help-search-item-copy span {
    font-size: 12px;
    line-height: 1.45;
    color: #5f79a9;
}

.me-help-search-item-open {
    font-size: 12px;
    font-weight: 800;
    color: #2563eb;
}

.me-help-search-empty {
    padding: 16px;
    border: 1px dashed rgba(37, 99, 235, .24);
    border-radius: 18px;
    background: rgba(255, 255, 255, .88);
}

.me-help-search-empty-title {
    font-size: 15px;
    font-weight: 800;
    color: #17327b;
}

.me-help-search-empty-copy {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.55;
    color: #5f79a9;
}

.me-help-search-empty-actions {
    margin-top: 12px;
}

.me-help-quick-actions,
.me-help-recent-tickets {
    display: grid;
    gap: 10px;
}

.me-help-quick-action,
.me-help-recent-ticket,
.me-help-drawer-footer-link {
    width: 100%;
    border: 1px solid rgba(20, 52, 106, .10);
    border-radius: 16px;
    background: #fff;
    color: var(--me-text);
    text-align: left;
    font: inherit;
}

.me-help-quick-action {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 20px;
    gap: 12px;
    align-items: center;
    padding: 12px 13px;
}

.me-help-quick-action:hover,
.me-help-recent-ticket:hover,
.me-help-drawer-footer-link:hover {
    border-color: rgba(37, 99, 235, .22);
    background: #f8fbff;
}

.me-help-quick-action-icon,
.me-help-drawer-footer-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #eef5ff;
    color: #2563eb;
}

.me-help-quick-action-copy,
.me-help-drawer-footer-copy {
    display: grid;
    gap: 2px;
}

.me-help-quick-action-copy strong,
.me-help-drawer-footer-copy strong {
    font-size: 14px;
    font-weight: 800;
    color: #17327b;
}

.me-help-quick-action-copy span,
.me-help-drawer-footer-copy span {
    font-size: 12px;
    color: #5f79a9;
}

.me-help-quick-action-arrow,
.me-help-drawer-footer-arrow {
    color: #5f79a9;
}

.me-help-recent-ticket {
    display: grid;
    gap: 4px;
    padding: 11px 12px;
}

.me-help-recent-ticket-title {
    font-size: 13px;
    font-weight: 800;
    color: #17327b;
}

.me-help-recent-ticket-meta {
    font-size: 12px;
    color: #5f79a9;
}

.me-help-context-card {
    padding: 14px 16px;
}

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

.me-help-context-grid div {
    display: grid;
    gap: 3px;
}

.me-help-context-grid span {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #6c7ca0;
}

.me-help-context-grid strong {
    font-size: 13px;
    color: #17327b;
}

.me-help-drawer-footer {
    border-top: 1px solid rgba(20, 52, 106, .08);
    background: rgba(248, 251, 255, .96);
}

.me-help-drawer-footer-link {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 20px;
    gap: 12px;
    align-items: center;
    padding: 14px;
}

.me-notification-drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 10045;
    display: flex;
    justify-content: flex-end;
    background: rgba(15, 23, 42, .18);
    backdrop-filter: blur(2px);
}

.me-notification-drawer {
    width: min(460px, 100vw);
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 250, 255, 0.98));
    border-left: 1px solid rgba(20, 52, 106, .10);
    box-shadow: -20px 0 60px rgba(15, 23, 42, .12);
    outline: none;
}

.me-notification-drawer-header,
.me-notification-drawer-footer {
    flex: 0 0 auto;
    padding: 18px 20px;
}

.me-notification-drawer-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid rgba(20, 52, 106, .08);
}

.me-notification-drawer-kicker {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #6f84b3;
}

.me-notification-drawer-title {
    margin-top: 4px;
    font-size: 28px;
    font-weight: 900;
    line-height: 1.05;
    color: #17327b;
}

.me-notification-drawer-summary {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #2563eb;
}

.me-notification-drawer-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 18px 20px 20px;
}

.me-notification-drawer-section + .me-notification-drawer-section {
    margin-top: 16px;
}

.me-notification-drawer-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.me-notification-filter {
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(20, 52, 106, .12);
    border-radius: 999px;
    background: rgba(255, 255, 255, .9);
    color: #5f79a9;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.me-notification-filter.is-active {
    border-color: #2563eb;
    background: #2563eb;
    color: #fff;
}

.me-notification-urgent-card {
    padding: 16px;
    border: 1px solid rgba(239, 68, 68, .16);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 245, 245, 0.96), rgba(255, 251, 251, 0.98));
}

.me-notification-urgent-title {
    font-size: 15px;
    font-weight: 900;
    color: #b42318;
}

.me-notification-urgent-copy {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.5;
    color: #8a4f4a;
}

.me-notification-urgent-list {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.me-notification-urgent-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(239, 68, 68, .12);
    border-radius: 14px;
    background: rgba(255, 255, 255, .92);
    text-align: left;
    color: #17327b;
    font: inherit;
}

.me-notification-urgent-item-copy {
    display: grid;
    gap: 3px;
}

.me-notification-urgent-item-copy strong {
    font-size: 14px;
    font-weight: 800;
}

.me-notification-urgent-item-copy span,
.me-notification-card-message,
.me-notification-card-meta {
    color: #5f79a9;
}

.me-notification-urgent-item-action {
    font-size: 12px;
    font-weight: 800;
    color: #2563eb;
}

.me-notification-empty-card {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 32px 22px;
    border: 1px dashed rgba(37, 99, 235, .22);
    border-radius: 22px;
    background: rgba(255, 255, 255, .9);
    text-align: center;
}

.me-notification-empty-icon {
    width: 72px;
    height: 72px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    color: #2563eb;
    background: rgba(37, 99, 235, .10);
    font-size: 30px;
}

.me-notification-empty-title {
    font-size: 20px;
    font-weight: 900;
    color: #17327b;
}

.me-notification-empty-copy {
    max-width: 20rem;
    font-size: 13px;
    line-height: 1.6;
    color: #5f79a9;
}

.me-notification-list {
    display: grid;
    gap: 12px;
}

.me-notification-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(20, 52, 106, .10);
    border-radius: 18px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .04);
}

.me-notification-card.is-unread {
    border-color: rgba(37, 99, 235, .18);
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(255, 255, 255, 0.98));
}

.me-notification-card-main {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: flex-start;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.me-notification-card-leading,
.me-notification-footer-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 20px;
}

.me-notification-card-leading.is-info {
    color: #2563eb;
    background: rgba(37, 99, 235, .10);
}

.me-notification-card-leading.is-reminder {
    color: #f59e0b;
    background: rgba(245, 158, 11, .12);
}

.me-notification-card-leading.is-system {
    color: #16a34a;
    background: rgba(34, 197, 94, .12);
}

.me-notification-card-leading.is-warning {
    color: #f97316;
    background: rgba(249, 115, 22, .12);
}

.me-notification-card-leading.is-task,
.me-notification-card-leading.is-approval {
    color: #7c3aed;
    background: rgba(124, 58, 237, .12);
}

.me-notification-card-copy {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.me-notification-card-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.me-notification-card-row strong {
    color: #17327b;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
}

.me-notification-card-message {
    font-size: 12px;
    line-height: 1.55;
}

.me-notification-card-meta {
    font-size: 11px;
    font-weight: 700;
}

.me-notification-priority-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

.me-notification-priority-badge.is-critical,
.me-notification-priority-badge.is-high {
    color: #b42318;
    background: rgba(254, 226, 226, .9);
}

.me-notification-priority-badge.is-medium {
    color: #b45309;
    background: rgba(254, 243, 199, .92);
}

.me-notification-priority-badge.is-low {
    color: #15803d;
    background: rgba(220, 252, 231, .92);
}

.me-notification-priority-badge.is-neutral {
    color: #64748b;
    background: rgba(226, 232, 240, .9);
}

.me-notification-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.me-notification-inline-action {
    padding: 0;
    border: 0;
    background: transparent;
    color: #2563eb;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.me-notification-inline-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(20, 52, 106, .10);
    border-radius: 12px;
    background: #fff;
    color: #5f79a9;
    font: inherit;
    cursor: pointer;
}

.me-notification-inline-icon + .me-notification-inline-icon {
    margin-left: 6px;
}

.me-notification-drawer-footer {
    display: grid;
    gap: 10px;
    border-top: 1px solid rgba(20, 52, 106, .08);
    background: rgba(248, 251, 255, .96);
}

.me-notification-footer-link {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(20, 52, 106, .10);
    border-radius: 16px;
    background: #fff;
    text-align: left;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.me-notification-footer-link:hover,
.me-notification-inline-icon:hover,
.me-notification-urgent-item:hover,
.me-notification-card:hover {
    border-color: rgba(37, 99, 235, .22);
    background: #f8fbff;
}

.me-notification-footer-icon {
    color: #2563eb;
    background: rgba(37, 99, 235, .10);
}

.me-notification-footer-copy {
    display: grid;
    gap: 3px;
}

.me-notification-footer-copy strong {
    font-size: 14px;
    font-weight: 800;
    color: #17327b;
}

.me-notification-footer-copy span {
    font-size: 12px;
    color: #5f79a9;
}

@media (max-width: 640px) {
    .me-help-drawer-header,
    .me-help-drawer-body,
    .me-help-drawer-footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .me-help-drawer-title {
        font-size: 26px;
    }

    .me-help-context-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .me-notification-drawer-header,
    .me-notification-drawer-body,
    .me-notification-drawer-footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .me-notification-drawer-title {
        font-size: 24px;
    }

    .me-notification-card-main,
    .me-notification-footer-link {
        grid-template-columns: 36px minmax(0, 1fr);
    }

    .me-notification-card-leading,
    .me-notification-footer-icon {
        width: 36px;
        height: 36px;
        border-radius: 12px;
    }
}

.me-topbar-support-form {
    display: grid;
    gap: 10px;
    padding: 4px 0 12px;
}

.me-topbar-support-select,
.me-topbar-support-input,
.me-topbar-support-textarea {
    width: 100%;
    border: 1px solid rgba(20, 52, 106, .12);
    border-radius: 14px;
    background: #fff;
    color: var(--me-text);
    font: inherit;
}

.me-topbar-support-select,
.me-topbar-support-input {
    min-height: 40px;
    padding: 0 12px;
}

.me-topbar-support-textarea {
    min-height: 92px;
    padding: 10px 12px;
    resize: vertical;
}

.me-topbar-support-actions {
    display: flex;
    justify-content: flex-start;
}

.me-topbar-support-feedback {
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 700;
}

.me-topbar-support-feedback.is-success {
    background: #eefbf3;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.me-topbar-support-feedback.is-error {
    background: #fff5f5;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.me-topbar-support-ticket-item {
    display: grid;
    gap: 4px;
    width: 100%;
    margin-bottom: 8px;
    padding: 10px 11px;
    text-align: left;
    border: 1px solid rgba(20, 52, 106, .10);
    border-radius: 14px;
    background: #fff;
    color: var(--me-text);
    font: inherit;
}

.me-topbar-support-ticket-item:hover {
    border-color: rgba(37, 99, 235, .22);
    background: #f8fbff;
}

.me-topbar-support-ticket-title {
    font-size: 13px;
    font-weight: 800;
    color: #17327b;
}

.me-topbar-support-ticket-message {
    font-size: 12px;
    color: var(--me-muted);
}

.me-topbar-support-ticket-meta {
    font-size: 11px;
    font-weight: 700;
    color: #5f79a9;
}

.me-topbar-advanced-search-menu {
    position: relative;
}

.me-topbar-advanced-search-dropdown {
    width: 400px;
    padding-bottom: 10px;
}

/* Shell refresh package - light navigation, simpler topbar, clearer grouping */
[data-minierp-shell="true"] .me-sidebar {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border-right: 1px solid rgba(21, 48, 123, 0.08);
    box-shadow: 16px 0 36px rgba(15, 30, 70, 0.04);
    color: #17327b;
}

[data-minierp-shell="true"] .me-sidebar-header,
[data-minierp-shell="true"] .me-sidebar-footer {
    border-color: rgba(21, 48, 123, 0.08);
}

[data-minierp-shell="true"] .me-brand-title,
[data-minierp-shell="true"] .me-brand-title span,
[data-minierp-shell="true"] .me-brand-subtitle {
    color: #17327b;
}

[data-minierp-shell="true"] .me-nav {
    gap: 1.1rem;
}

[data-minierp-shell="true"] .me-nav-group-title {
    margin-bottom: 0.15rem;
    padding: 0 0.75rem;
    color: #7383a3;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

[data-minierp-shell="true"] .me-nav-link,
[data-minierp-shell="true"] .me-nav-disabled {
    min-height: 2.95rem;
    padding: 0.68rem 0.82rem;
    border-radius: 14px;
}

[data-minierp-shell="true"] .me-nav-link {
    color: #35529c;
}

[data-minierp-shell="true"] .me-nav-link:hover {
    background: rgba(37, 99, 235, 0.07);
}

[data-minierp-shell="true"] .me-nav-link.active {
    background: linear-gradient(180deg, #eef5ff, #e9f2ff);
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12);
}

[data-minierp-shell="true"] .me-nav-title {
    font-weight: 700;
    color: #17327b;
}

[data-minierp-shell="true"] .me-nav-description {
    display: none;
}

[data-minierp-shell="true"] .me-nav-icon {
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb;
}

[data-minierp-shell="true"] .me-main {
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.05), transparent 25%),
        linear-gradient(180deg, #ffffff 0%, #eef5ff 100%);
}

[data-minierp-shell="true"] .me-topbar {
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(21, 48, 123, 0.08);
    backdrop-filter: blur(14px);
}

[data-minierp-shell="true"] .me-topbar-brand-title,
[data-minierp-shell="true"] .me-topbar-brand,
[data-minierp-shell="true"] .me-profile-name {
    color: #17327b;
}

[data-minierp-shell="true"] .me-global-search {
    max-width: 34rem;
    min-height: 3.2rem;
    border: 1px solid rgba(37, 99, 235, 0.14);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(15, 30, 70, 0.04);
}

[data-minierp-shell="true"] .me-global-search input {
    color: #17327b;
}

[data-minierp-shell="true"] .me-ek-context-link,
[data-minierp-shell="true"] .me-tool-button,
[data-minierp-shell="true"] .me-profile-button {
    min-height: 3rem;
    border-radius: 16px;
    border: 1px solid rgba(37, 99, 235, 0.12);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 24px rgba(15, 30, 70, 0.04);
}

[data-minierp-shell="true"] .me-topbar-tools {
    gap: 0.7rem;
}

[data-minierp-shell="true"] .me-tool-short-text,
[data-minierp-shell="true"] .me-profile-role,
[data-minierp-shell="true"] .me-ek-context-current span {
    color: #6f7f9d;
}

[data-minierp-shell="true"] .me-ek-context-current strong,
[data-minierp-shell="true"] .me-tool-button,
[data-minierp-shell="true"] .me-profile-button {
    color: #17327b;
}

[data-minierp-shell="true"] .me-content,
[data-minierp-shell="true"] .me-content-host,
[data-minierp-shell="true"] .me-content-container,
[data-minierp-shell="true"] .me-body-host {
    background: transparent;
}

[data-minierp-shell="true"] .me-body-host {
    padding-top: 0.25rem;
}

[data-minierp-shell="true"] .me-ek-profile-dropdown {
    border: 1px solid rgba(21, 48, 123, 0.09);
    box-shadow: 0 24px 48px rgba(15, 30, 70, 0.10);
}

[data-minierp-shell="true"] .me-sidebar-footer {
    color: #7f8daa;
}

@media (max-width: 1200px) {
    [data-minierp-shell="true"] .me-topbar {
        padding-right: 1rem;
        padding-left: 1rem;
    }

    [data-minierp-shell="true"] .me-topbar-tools {
        flex-wrap: wrap;
        justify-content: flex-end;
    }
}

/* Shell refresh package 2 - structured topbar and home layout */
[data-minierp-shell="true"] .me-sidebar-brandline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
}

[data-minierp-shell="true"] .me-sidebar-header {
    overflow: visible;
}

[data-minierp-shell="true"] .me-sidebar-top-toggle {
    flex: 0 0 auto;
    width: 2.3rem;
    height: 2.3rem;
    min-width: 2.3rem;
    min-height: 2.3rem;
    padding: 0;
    overflow: visible;
}

[data-minierp-shell="true"] .me-topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 1.25rem;
}

[data-minierp-shell="true"] .me-topbar-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    justify-self: start;
    width: min(100%, 34rem);
}

[data-minierp-shell="true"] .me-topbar-mobile-actions {
  display: none;
}

.me-shell.me-font-small {
  font-size: 14px;
}

.me-shell.me-font-medium {
  font-size: 16px;
}

.me-shell.me-font-large {
  font-size: 18px;
}

.me-shell.me-font-small .mud-input-slot,
.me-shell.me-font-small .mud-select-input,
.me-shell.me-font-small .mud-button-label,
.me-shell.me-font-small .mud-typography,
.me-shell.me-font-small .me-nav-title,
.me-shell.me-font-small .me-nav-description,
.me-shell.me-font-small .me-profile-role,
.me-shell.me-font-small .me-tool-short-text {
  font-size: 0.94em;
}

.me-shell.me-font-large .mud-input-slot,
.me-shell.me-font-large .mud-select-input,
.me-shell.me-font-large .mud-button-label,
.me-shell.me-font-large .mud-typography,
.me-shell.me-font-large .me-nav-title,
.me-shell.me-font-large .me-nav-description,
.me-shell.me-font-large .me-profile-role,
.me-shell.me-font-large .me-tool-short-text {
  font-size: 1.08em;
}

.me-shell.me-accessibility-contrast .me-topbar,
.me-shell.me-accessibility-contrast .me-card,
.me-shell.me-accessibility-contrast .me-panel,
.me-shell.me-accessibility-contrast .me-profile-button,
.me-shell.me-accessibility-contrast .me-tool-button,
.me-shell.me-accessibility-contrast .me-ek-context-control,
.me-shell.me-accessibility-contrast .mud-paper,
.me-shell.me-accessibility-contrast .mud-input-control {
  box-shadow: none !important;
  border-color: rgba(15, 23, 42, 0.38) !important;
}

.me-shell.me-accessibility-contrast .mud-button,
.me-shell.me-accessibility-contrast .me-nav-link,
.me-shell.me-accessibility-contrast .me-profile-button,
.me-shell.me-accessibility-contrast .me-tool-button,
.me-shell.me-accessibility-contrast .mud-switch-button,
.me-shell.me-accessibility-contrast .mud-radio-root {
  outline: 2px solid rgba(15, 23, 42, 0.14);
  outline-offset: 1px;
}

.me-shell.me-accessibility-contrast .me-nav-link.active,
.me-shell.me-accessibility-contrast .mud-button-filled-primary,
.me-shell.me-accessibility-contrast .mud-radio-root.mud-checked,
.me-shell.me-accessibility-contrast .mud-switch.mud-checked {
  outline-color: #2563eb;
}

[data-minierp-shell="true"] .me-topbar-left .me-topbar-brand {
    display: none;
}

[data-minierp-shell="true"] .me-topbar-center {
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
}

[data-minierp-shell="true"] .me-topbar-middle-right {
    display: contents;
}

[data-minierp-shell="true"] .me-topbar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.85rem;
    justify-self: end;
    min-width: 0;
}

[data-minierp-shell="true"] .me-ek-context-link {
    min-width: 18rem;
    justify-content: center;
}

[data-minierp-shell="true"] .me-topbar-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

@media (max-width: 1200px) {
    [data-minierp-shell="true"] .me-topbar {
        grid-template-columns: 1fr;
        justify-items: stretch;
    }

    [data-minierp-shell="true"] .me-topbar-center,
    [data-minierp-shell="true"] .me-topbar-right {
        justify-content: flex-start;
    }
}

/* Shell package 3 - global search command palette */
[data-minierp-shell="true"] .me-shell-search-host {
    position: relative;
    flex: 1 1 34rem;
    max-width: 46rem;
    min-width: 18rem;
}

[data-minierp-shell="true"] .me-shell-search-box {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 3.5rem;
    padding: 0.2rem 0.4rem 0.2rem 0.85rem;
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

[data-minierp-shell="true"] .me-shell-search-leading-icon {
    color: #7b8fbe;
    font-size: 1.5rem;
}

[data-minierp-shell="true"] .me-shell-search-input-wrap {
    min-width: 0;
}

[data-minierp-shell="true"] .me-shell-search-input {
    margin: 0;
}

[data-minierp-shell="true"] .me-shell-search-input .mud-input-root {
    font-size: 1rem;
    color: #17327b;
}

[data-minierp-shell="true"] .me-shell-search-input .mud-input-slot {
    font-weight: 600;
}

[data-minierp-shell="true"] .me-shell-search-advanced-button {
    border-radius: 0.95rem;
    background: rgba(37, 99, 235, 0.08);
}

[data-minierp-shell="true"] .me-shell-search-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: min(46rem, calc(100vw - 2rem));
    max-height: min(70vh, 42rem);
    overflow: auto;
    z-index: 10040;
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 1.3rem;
    background: rgba(255, 255, 255, 0.99);
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.15);
}

[data-minierp-shell="true"] .me-shell-search-state,
[data-minierp-shell="true"] .me-shell-search-empty {
    display: grid;
    gap: 8px;
    padding: 18px 20px 14px;
}

[data-minierp-shell="true"] .me-shell-search-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px 4px 18px;
}

[data-minierp-shell="true"] .me-shell-search-panel-title {
    color: #7f8fb6;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

[data-minierp-shell="true"] .me-shell-search-close-button {
    border-radius: 0.8rem;
}

[data-minierp-shell="true"] .me-shell-search-state-loading {
    grid-template-columns: auto 1fr;
    align-items: center;
}

[data-minierp-shell="true"] .me-shell-search-alert {
    margin: 16px;
}

[data-minierp-shell="true"] .me-shell-search-group + .me-shell-search-group {
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}

[data-minierp-shell="true"] .me-shell-search-group-header {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px 8px;
    color: #7f8fb6;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

[data-minierp-shell="true"] .me-shell-search-group-icon {
    color: #8fa0c7;
}

[data-minierp-shell="true"] .me-shell-search-group-items {
    display: grid;
    gap: 4px;
    padding: 0 10px 12px;
}

[data-minierp-shell="true"] .me-shell-search-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 3.4rem;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 1rem;
    background: transparent;
    color: #17327b;
    text-align: left;
    font: inherit;
    cursor: pointer;
}

[data-minierp-shell="true"] .me-shell-search-item:hover,
[data-minierp-shell="true"] .me-shell-search-item.is-selected {
    border-color: rgba(37, 99, 235, 0.14);
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.08), rgba(37, 99, 235, 0.04));
}

[data-minierp-shell="true"] .me-shell-search-item-leading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.75rem;
    color: #2f76ff;
    background: rgba(37, 99, 235, 0.08);
}

[data-minierp-shell="true"] .me-shell-search-item-content {
    display: grid;
    gap: 2px;
    min-width: 0;
}

[data-minierp-shell="true"] .me-shell-search-item-title {
    color: #17327b;
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.2;
}

[data-minierp-shell="true"] .me-shell-search-item-subtitle {
    color: #7b8cad;
    font-size: 0.84rem;
    line-height: 1.35;
}

[data-minierp-shell="true"] .me-shell-search-item-badge {
    color: #6e82b3;
    font-size: 0.92rem;
    font-weight: 700;
    white-space: nowrap;
}

[data-minierp-shell="true"] .me-shell-search-item-chevron {
    color: #7f93c1;
    display: inline-flex;
    align-items: center;
}

[data-minierp-shell="true"] .me-shell-search-divider {
    margin: 0;
}

[data-minierp-shell="true"] .me-shell-search-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
}

[data-minierp-shell="true"] .me-shell-search-hints {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    color: #7c8daf;
    font-size: 0.9rem;
}

[data-minierp-shell="true"] .me-shell-search-footer-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    background: transparent;
    color: #2f76ff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

[data-minierp-shell="true"] .me-shell-search-footer-link:hover {
    color: #1d4ed8;
}

[data-minierp-shell="true"] .me-shell.me-theme-dark .me-shell-search-box,
[data-minierp-shell="true"] .me-shell.me-theme-midnight .me-shell-search-box,
[data-minierp-shell="true"] .me-shell.me-theme-slate .me-shell-search-box,
[data-minierp-shell="true"] .me-shell.me-theme-contrast .me-shell-search-box,
[data-minierp-shell="true"] .me-shell.me-theme-dark .me-shell-search-panel,
[data-minierp-shell="true"] .me-shell.me-theme-midnight .me-shell-search-panel,
[data-minierp-shell="true"] .me-shell.me-theme-slate .me-shell-search-panel,
[data-minierp-shell="true"] .me-shell.me-theme-contrast .me-shell-search-panel {
    background: rgba(16, 24, 39, 0.98);
    border-color: rgba(148, 163, 184, 0.22);
}

[data-minierp-shell="true"] .me-shell.me-theme-dark .me-shell-search-input .mud-input-slot,
[data-minierp-shell="true"] .me-shell.me-theme-midnight .me-shell-search-input .mud-input-slot,
[data-minierp-shell="true"] .me-shell.me-theme-slate .me-shell-search-input .mud-input-slot,
[data-minierp-shell="true"] .me-shell.me-theme-contrast .me-shell-search-input .mud-input-slot,
[data-minierp-shell="true"] .me-shell.me-theme-dark .me-shell-search-item-title,
[data-minierp-shell="true"] .me-shell.me-theme-midnight .me-shell-search-item-title,
[data-minierp-shell="true"] .me-shell.me-theme-slate .me-shell-search-item-title,
[data-minierp-shell="true"] .me-shell.me-theme-contrast .me-shell-search-item-title {
    color: #e2e8f0;
}

[data-minierp-shell="true"] .me-shell.me-theme-dark .me-shell-search-item-subtitle,
[data-minierp-shell="true"] .me-shell.me-theme-midnight .me-shell-search-item-subtitle,
[data-minierp-shell="true"] .me-shell.me-theme-slate .me-shell-search-item-subtitle,
[data-minierp-shell="true"] .me-shell.me-theme-contrast .me-shell-search-item-subtitle,
[data-minierp-shell="true"] .me-shell.me-theme-dark .me-shell-search-hints,
[data-minierp-shell="true"] .me-shell.me-theme-midnight .me-shell-search-hints,
[data-minierp-shell="true"] .me-shell.me-theme-slate .me-shell-search-hints,
[data-minierp-shell="true"] .me-shell.me-theme-contrast .me-shell-search-hints,
[data-minierp-shell="true"] .me-shell.me-theme-dark .me-shell-search-group-header,
[data-minierp-shell="true"] .me-shell.me-theme-midnight .me-shell-search-group-header,
[data-minierp-shell="true"] .me-shell.me-theme-slate .me-shell-search-group-header,
[data-minierp-shell="true"] .me-shell.me-theme-contrast .me-shell-search-group-header {
    color: #94a3b8;
}

@media (max-width: 980px) {
    [data-minierp-shell="true"] .me-shell-search-host {
        max-width: none;
        min-width: 0;
    }

    [data-minierp-shell="true"] .me-shell-search-panel {
        width: min(100vw - 2rem, 44rem);
    }
}

@media (max-width: 720px) {
    [data-minierp-shell="true"] .me-shell-search-host {
        width: 100%;
    }

    [data-minierp-shell="true"] .me-shell-search-box {
        min-height: 3.15rem;
        padding-right: 0.3rem;
    }

    [data-minierp-shell="true"] .me-shell-search-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 900px) {
    [data-minierp-shell="true"] .me-topbar-mobile-actions {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-right: 0.65rem;
    }

    [data-minierp-shell="true"] .me-topbar-left {
        justify-content: stretch;
    }
}

.me-system-errors-kpis {
    margin-bottom: 1rem;
}

.me-system-errors-kpi {
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.4rem;
}

.me-system-errors-kpi-title {
    color: var(--me-text-muted, #6c7aa0);
    font-weight: 600;
    font-size: 0.9rem;
}

.me-system-errors-kpi-value {
    color: var(--me-accent-700, #214ecf);
    font-weight: 800;
    font-size: 2rem;
    line-height: 1;
}

.me-system-errors-filter-card {
    margin-bottom: 1rem;
}

.me-system-errors-sort-select {
    min-width: 220px;
}

.me-admin-state-table .mud-table-container table {
    table-layout: fixed;
}

.me-admin-state-table .mud-table-cell {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.me-stateful-table {
    table-layout: fixed;
}

.me-stateful-table th,
.me-stateful-table td {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.me-inline-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.me-table-pref-select {
    min-height: 38px;
    min-width: 170px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid var(--me-border);
    background: var(--me-panel);
    color: var(--me-text);
    font: inherit;
}

.me-inline-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--me-text);
    font-size: 13px;
    font-weight: 700;
}

.me-maintenance-status-table.me-maintenance-status-layout-compact th:nth-child(1),
.me-maintenance-status-table.me-maintenance-status-layout-compact td:nth-child(1) { width: 140px; }
.me-maintenance-status-table.me-maintenance-status-layout-compact th:nth-child(2),
.me-maintenance-status-table.me-maintenance-status-layout-compact td:nth-child(2) { width: 150px; }
.me-maintenance-status-table.me-maintenance-status-layout-compact th:nth-child(3),
.me-maintenance-status-table.me-maintenance-status-layout-compact td:nth-child(3) { width: 90px; }
.me-maintenance-status-table.me-maintenance-status-layout-compact th:nth-child(4),
.me-maintenance-status-table.me-maintenance-status-layout-compact td:nth-child(4) { width: 120px; }
.me-maintenance-status-table.me-maintenance-status-layout-compact th:nth-child(5),
.me-maintenance-status-table.me-maintenance-status-layout-compact td:nth-child(5) { width: 130px; }

.me-maintenance-status-table.me-maintenance-status-layout-balanced th:nth-child(1),
.me-maintenance-status-table.me-maintenance-status-layout-balanced td:nth-child(1) { width: 170px; }
.me-maintenance-status-table.me-maintenance-status-layout-balanced th:nth-child(2),
.me-maintenance-status-table.me-maintenance-status-layout-balanced td:nth-child(2) { width: 180px; }
.me-maintenance-status-table.me-maintenance-status-layout-balanced th:nth-child(3),
.me-maintenance-status-table.me-maintenance-status-layout-balanced td:nth-child(3) { width: 100px; }
.me-maintenance-status-table.me-maintenance-status-layout-balanced th:nth-child(4),
.me-maintenance-status-table.me-maintenance-status-layout-balanced td:nth-child(4) { width: 140px; }
.me-maintenance-status-table.me-maintenance-status-layout-balanced th:nth-child(5),
.me-maintenance-status-table.me-maintenance-status-layout-balanced td:nth-child(5) { width: 160px; }

.me-maintenance-status-table.me-maintenance-status-layout-detailed th:nth-child(1),
.me-maintenance-status-table.me-maintenance-status-layout-detailed td:nth-child(1) { width: 220px; }
.me-maintenance-status-table.me-maintenance-status-layout-detailed th:nth-child(2),
.me-maintenance-status-table.me-maintenance-status-layout-detailed td:nth-child(2) { width: 220px; }
.me-maintenance-status-table.me-maintenance-status-layout-detailed th:nth-child(3),
.me-maintenance-status-table.me-maintenance-status-layout-detailed td:nth-child(3) { width: 120px; }
.me-maintenance-status-table.me-maintenance-status-layout-detailed th:nth-child(4),
.me-maintenance-status-table.me-maintenance-status-layout-detailed td:nth-child(4) { width: 170px; }
.me-maintenance-status-table.me-maintenance-status-layout-detailed th:nth-child(5),
.me-maintenance-status-table.me-maintenance-status-layout-detailed td:nth-child(5) { width: 190px; }

.me-maintenance-result-table.me-maintenance-result-layout-compact th:nth-child(1),
.me-maintenance-result-table.me-maintenance-result-layout-compact td:nth-child(1) { width: 130px; }
.me-maintenance-result-table.me-maintenance-result-layout-compact th:nth-child(2),
.me-maintenance-result-table.me-maintenance-result-layout-compact td:nth-child(2) { width: 140px; }
.me-maintenance-result-table.me-maintenance-result-layout-compact th:nth-child(3),
.me-maintenance-result-table.me-maintenance-result-layout-compact td:nth-child(3) { width: 150px; }
.me-maintenance-result-table.me-maintenance-result-layout-compact th:nth-child(4),
.me-maintenance-result-table.me-maintenance-result-layout-compact td:nth-child(4) { width: 90px; }
.me-maintenance-result-table.me-maintenance-result-layout-compact th:nth-child(5),
.me-maintenance-result-table.me-maintenance-result-layout-compact td:nth-child(5) { width: 100px; }
.me-maintenance-result-table.me-maintenance-result-layout-compact th:nth-child(6),
.me-maintenance-result-table.me-maintenance-result-layout-compact td:nth-child(6) { width: 100px; }
.me-maintenance-result-table.me-maintenance-result-layout-compact th:nth-child(7),
.me-maintenance-result-table.me-maintenance-result-layout-compact td:nth-child(7) { width: 220px; }

.me-maintenance-result-table.me-maintenance-result-layout-balanced th:nth-child(1),
.me-maintenance-result-table.me-maintenance-result-layout-balanced td:nth-child(1) { width: 150px; }
.me-maintenance-result-table.me-maintenance-result-layout-balanced th:nth-child(2),
.me-maintenance-result-table.me-maintenance-result-layout-balanced td:nth-child(2) { width: 170px; }
.me-maintenance-result-table.me-maintenance-result-layout-balanced th:nth-child(3),
.me-maintenance-result-table.me-maintenance-result-layout-balanced td:nth-child(3) { width: 170px; }
.me-maintenance-result-table.me-maintenance-result-layout-balanced th:nth-child(4),
.me-maintenance-result-table.me-maintenance-result-layout-balanced td:nth-child(4) { width: 100px; }
.me-maintenance-result-table.me-maintenance-result-layout-balanced th:nth-child(5),
.me-maintenance-result-table.me-maintenance-result-layout-balanced td:nth-child(5) { width: 110px; }
.me-maintenance-result-table.me-maintenance-result-layout-balanced th:nth-child(6),
.me-maintenance-result-table.me-maintenance-result-layout-balanced td:nth-child(6) { width: 120px; }
.me-maintenance-result-table.me-maintenance-result-layout-balanced th:nth-child(7),
.me-maintenance-result-table.me-maintenance-result-layout-balanced td:nth-child(7) { width: 300px; }

.me-maintenance-result-table.me-maintenance-result-layout-detailed th:nth-child(1),
.me-maintenance-result-table.me-maintenance-result-layout-detailed td:nth-child(1) { width: 180px; }
.me-maintenance-result-table.me-maintenance-result-layout-detailed th:nth-child(2),
.me-maintenance-result-table.me-maintenance-result-layout-detailed td:nth-child(2) { width: 210px; }
.me-maintenance-result-table.me-maintenance-result-layout-detailed th:nth-child(3),
.me-maintenance-result-table.me-maintenance-result-layout-detailed td:nth-child(3) { width: 220px; }
.me-maintenance-result-table.me-maintenance-result-layout-detailed th:nth-child(4),
.me-maintenance-result-table.me-maintenance-result-layout-detailed td:nth-child(4) { width: 120px; }
.me-maintenance-result-table.me-maintenance-result-layout-detailed th:nth-child(5),
.me-maintenance-result-table.me-maintenance-result-layout-detailed td:nth-child(5) { width: 130px; }
.me-maintenance-result-table.me-maintenance-result-layout-detailed th:nth-child(6),
.me-maintenance-result-table.me-maintenance-result-layout-detailed td:nth-child(6) { width: 140px; }
.me-maintenance-result-table.me-maintenance-result-layout-detailed th:nth-child(7),
.me-maintenance-result-table.me-maintenance-result-layout-detailed td:nth-child(7) { width: 420px; }

.me-system-errors-preview-head {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.me-system-errors-pre {
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 0.82rem;
    line-height: 1.45;
    max-height: 420px;
    overflow: auto;
    margin: 0;
}

.me-system-errors-filter-card .mud-input-control,
.me-card .mud-input-control {
    margin-bottom: 12px;
}

.me-trace-timeline-card {
    margin-top: 16px;
}

.me-trace-step {
    display: flex;
    gap: 12px;
    padding: 12px;
    border: 1px dashed rgba(33, 99, 255, 0.2);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
    min-height: 110px;
}

.me-trace-step-index {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #2163ff;
    color: #fff;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.me-trace-step-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.me-trace-step-title {
    font-weight: 700;
    color: #15326b;
}

.me-trace-step-subtitle {
    color: #6d7ca0;
    word-break: break-word;
}

.me-user-message-demo {
    border-radius: 18px;
    padding: 20px;
    border: 1px solid rgba(33, 99, 255, 0.14);
}

.me-user-message-demo-danger {
    background: rgba(255, 244, 244, 0.9);
    border-color: rgba(235, 87, 87, 0.24);
}

.me-user-message-demo-warning {
    background: rgba(255, 249, 235, 0.92);
    border-color: rgba(255, 179, 71, 0.3);
}

.me-user-message-demo-head {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 14px;
}

.me-user-message-demo-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #15326b;
    margin-bottom: 6px;
}

.me-user-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 16px;
}

.me-profile-dropdown-compact {
    width: 332px;
}

.me-profile-dropdown-user {
    width: 100%;
}

.me-profile-dropdown-role-list,
.me-profile-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.me-profile-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(37, 99, 235, .08);
    color: var(--me-primary);
    font-size: 12px;
    font-weight: 800;
}

.me-profile-dropdown-section + .me-profile-dropdown-section-separated {
    margin-top: 6px;
    padding-top: 8px;
    border-top: 1px solid rgba(20, 52, 106, .10);
}

.me-profile-layout,
.me-settings-layout {
    display: grid;
    gap: 20px;
}

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

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

.me-profile-panel-full {
    grid-column: 1 / -1;
}

.me-panel-title {
    font-size: 14px;
    font-weight: 900;
    color: var(--me-text);
}

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

.me-profile-hero-copy h2 {
    margin: 0 0 6px;
}

.me-profile-hero-copy p {
    margin: 0;
    color: var(--me-muted);
}

.me-profile-meta-grid,
.me-inline-field-grid,
.me-option-grid,
.me-summary-grid {
    display: grid;
    gap: 16px;
}

.me-profile-meta-grid,
.me-inline-field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.me-option-grid-three,
.me-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.me-profile-meta-item {
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(37, 99, 235, .05);
}

.me-profile-meta-label {
    display: block;
    margin-bottom: 6px;
    color: var(--me-muted);
    font-size: 12px;
    font-weight: 700;
}

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

.me-profile-form-grid-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.me-toggle-stack {
    display: grid;
    gap: 12px;
}

.me-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border: 1px solid var(--me-border);
    border-radius: 18px;
    background: rgba(255, 255, 255, .72);
}

.me-toggle-row strong,
.me-summary-card strong {
    color: var(--me-text);
}

.me-toggle-row small,
.me-summary-card span,
.me-inline-callout span {
    color: var(--me-muted);
}

.me-profile-actions-card {
    margin-top: 20px;
}

.me-security-split {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1.4fr) minmax(240px, 1fr);
}

.me-security-rules-card {
    align-content: start;
    padding: 18px;
    border-radius: 20px;
    background: rgba(37, 99, 235, .05);
}

.me-security-rules {
    margin: 12px 0;
    padding-left: 18px;
    color: var(--me-text);
}

.me-security-2fa-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.me-status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.me-status-pill.is-success {
    background: rgba(22, 163, 74, .12);
    color: #15803d;
}

.me-status-pill.is-danger {
    background: rgba(220, 38, 38, .10);
    color: #b91c1c;
}

.me-status-pill.is-info {
    background: rgba(37, 99, 235, .10);
    color: #1d4ed8;
}

.me-status-pill.is-muted {
    background: rgba(100, 116, 139, .12);
    color: #64748b;
}

.me-table-wrap {
    overflow-x: auto;
}

.me-data-table {
    width: 100%;
    border-collapse: collapse;
}

.me-data-table th,
.me-data-table td {
    padding: 14px 10px;
    border-bottom: 1px solid rgba(20, 52, 106, .08);
    text-align: left;
    font-size: 13px;
}

.me-shell.me-density-compact .me-data-table th,
.me-shell.me-density-compact .me-data-table td {
    padding: 10px 8px;
    font-size: 12px;
}

.me-data-table th {
    color: var(--me-muted);
    font-weight: 800;
}

.me-table-link {
    border: 0;
    background: transparent;
    color: var(--me-primary);
    font-weight: 800;
    cursor: pointer;
}

.me-button-danger {
    color: #b91c1c !important;
    border-color: rgba(220, 38, 38, .28) !important;
}

.me-settings-layout {
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    align-items: start;
}

.me-settings-nav {
    display: grid;
    gap: 10px;
}

.me-settings-nav-item {
    display: grid;
    gap: 4px;
    width: 100%;
    padding: 16px 18px;
    border: 1px solid transparent;
    border-radius: 18px;
    background: rgba(37, 99, 235, .04);
    text-align: left;
    cursor: pointer;
}

.me-settings-nav-item.is-active {
    border-color: rgba(37, 99, 235, .28);
    background: rgba(37, 99, 235, .08);
}

.me-settings-nav-item small {
    color: var(--me-muted);
}

.me-settings-content {
    display: grid;
    gap: 20px;
}

.me-option-card {
    display: grid;
    gap: 6px;
    padding: 18px;
    border: 1px solid var(--me-border);
    border-radius: 20px;
    cursor: pointer;
}

.me-option-card input {
    margin: 0;
}

.me-option-card.is-selected {
    border-color: rgba(37, 99, 235, .28);
    background: rgba(37, 99, 235, .06);
}

.me-summary-card {
    display: grid;
    gap: 8px;
}

.me-summary-card strong {
    font-size: 32px;
}

.me-module-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.me-module-pill {
    padding: 10px 14px;
    border: 1px solid var(--me-border);
    border-radius: 16px;
    background: rgba(255, 255, 255, .72);
    font-size: 13px;
    font-weight: 700;
}

.me-inline-callout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

@media (max-width: 1180px) {
    .me-profile-layout,
    .me-settings-layout,
    .me-summary-grid,
    .me-option-grid-three {
        grid-template-columns: 1fr;
    }

    .me-profile-form-grid,
    .me-profile-form-grid-compact,
    .me-inline-field-grid,
    .me-profile-meta-grid,
    .me-security-split,
    .me-security-2fa-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .me-profile-hero,
    .me-inline-callout {
        flex-direction: column;
        align-items: flex-start;
    }

    .me-profile-dropdown-compact {
        width: min(332px, calc(100vw - 32px));
    }
}

/* Paket Login Redesign: login ekran uskladjen sa novim MiniErp hero/card dizajnom. */
.me-login-page.me-login-redesign {
    position: relative;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, .96fr) minmax(360px, .68fr);
    gap: 26px;
    width: min(1320px, calc(100% - 88px));
    margin: 0 auto;
    padding: 24px 0 18px;
    background:
        radial-gradient(circle at 0% 100%, rgba(37, 99, 235, .20), transparent 22%),
        radial-gradient(circle at 50% 12%, rgba(37, 99, 235, .08), transparent 24%),
        linear-gradient(90deg, rgba(255, 255, 255, .96) 0%, rgba(245, 249, 255, .94) 54%, rgba(255, 255, 255, .98) 54%, rgba(255, 255, 255, .98) 100%);
    align-items: center;
}

.me-login-redesign::before,
.me-login-redesign::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.me-login-redesign::before {
    inset: 0 auto auto 44%;
    width: 280px;
    height: 280px;
    border-radius: 999px;
    background: rgba(37, 99, 235, .06);
    transform: translate(-50%, -20%);
}

.me-login-redesign::after {
    inset: auto auto 0 -120px;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(37, 99, 235, .18), rgba(37, 99, 235, 0));
}

.me-login-story,
.me-login-auth-card {
    position: relative;
    z-index: 1;
}

.me-login-story {
    display: grid;
    align-content: space-between;
    gap: 18px;
    padding: 18px 10px 14px 4px;
}

.me-login-story-copy {
    display: grid;
    gap: 12px;
    max-width: 560px;
}

.me-login-story-copy h1 {
    margin: 0;
    color: #0b1c5c;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.1;
    letter-spacing: -.04em;
    font-weight: 900;
}

.me-login-story-copy p {
    margin: 0;
    max-width: 520px;
    color: #41527a;
    font-size: 15px;
    line-height: 1.56;
    font-weight: 500;
}

.me-login-story-points {
    display: grid;
    gap: 12px;
    max-width: 390px;
}

.me-login-point {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 12px;
    align-items: start;
}

.me-login-point-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(227, 236, 255, .98), rgba(240, 245, 255, .92));
    color: #2563eb;
    font-size: 19px;
    font-weight: 900;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 10px 24px rgba(37, 99, 235, .08);
}

.me-login-point-icon::before,
.me-login-dashboard-nav-icon::before,
.me-input-icon::before {
    content: "";
    display: block;
}

.me-login-point-icon-network::before {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    border: 2px solid #2563eb;
    box-shadow:
        -12px -8px 0 -8px #2563eb,
        12px -8px 0 -8px #2563eb,
        0 14px 0 -8px #2563eb;
}

.me-login-point-icon-smile::before {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    border: 2px solid #2563eb;
    background:
        radial-gradient(circle at 35% 40%, #2563eb 0 2px, transparent 3px),
        radial-gradient(circle at 65% 40%, #2563eb 0 2px, transparent 3px),
        radial-gradient(ellipse at 50% 68%, transparent 0 8px, #2563eb 8px 9px, transparent 10px);
}

.me-login-point-icon-map::before {
    width: 24px;
    height: 28px;
    border: 2px solid #2563eb;
    border-radius: 8px 8px 12px 12px;
    clip-path: polygon(50% 100%, 0 78%, 0 0, 100% 0, 100% 78%);
}

.me-login-point-copy {
    display: grid;
    gap: 4px;
}

.me-login-point-copy h3 {
    margin: 0;
    color: #0f235c;
    font-size: 14px;
    font-weight: 900;
}

.me-login-point-copy p {
    margin: 0;
    color: #546684;
    font-size: 12px;
    line-height: 1.45;
}

.me-login-story-visual {
    position: relative;
    min-height: 232px;
    display: grid;
    align-items: end;
    padding-left: 186px;
}

.me-login-story-dots {
    position: absolute;
    top: 8px;
    right: 54px;
    width: 84px;
    height: 84px;
    opacity: .28;
    background-image: radial-gradient(circle, #80a9ff 2px, transparent 2.5px);
    background-size: 20px 20px;
}

.me-login-dashboard-frame {
    position: relative;
    width: min(456px, 100%);
    padding: 10px 10px 10px 0;
}

.me-login-dashboard-frame::before {
    content: "";
    position: absolute;
    inset: 8px auto auto 12px;
    width: 152px;
    height: 152px;
    border: 1px solid rgba(37, 99, 235, .18);
    border-radius: 999px;
}

.me-login-dashboard-shell {
    display: grid;
    grid-template-columns: 50px 1fr;
    min-height: 250px;
    border-radius: 22px;
    overflow: hidden;
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(37, 99, 235, .08);
    box-shadow: 0 16px 36px rgba(19, 48, 116, .10);
    backdrop-filter: blur(10px);
}

.me-login-dashboard-nav {
    display: grid;
    align-content: start;
    gap: 8px;
    padding: 12px 0;
    background: linear-gradient(180deg, #1a5aff 0%, #0f43c7 100%);
    color: #fff;
    justify-items: center;
}

.me-login-dashboard-nav span {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(255,255,255,.12);
    font-size: 12px;
    font-weight: 900;
}

.me-login-dashboard-nav-icon::before {
    width: 18px;
    height: 18px;
}

.me-login-dashboard-nav-home::before {
    clip-path: polygon(50% 0, 100% 38%, 100% 100%, 62% 100%, 62% 64%, 38% 64%, 38% 100%, 0 100%, 0 38%);
    background: rgba(255,255,255,.94);
}

.me-login-dashboard-nav-grid::before {
    background:
        linear-gradient(rgba(255,255,255,.94), rgba(255,255,255,.94)) 0 0 / 7px 7px no-repeat,
        linear-gradient(rgba(255,255,255,.94), rgba(255,255,255,.94)) 11px 0 / 7px 7px no-repeat,
        linear-gradient(rgba(255,255,255,.94), rgba(255,255,255,.94)) 0 11px / 7px 7px no-repeat,
        linear-gradient(rgba(255,255,255,.94), rgba(255,255,255,.94)) 11px 11px / 7px 7px no-repeat;
}

.me-login-dashboard-nav-chart::before {
    background:
        linear-gradient(rgba(255,255,255,.94), rgba(255,255,255,.94)) 0 11px / 3px 7px no-repeat,
        linear-gradient(rgba(255,255,255,.94), rgba(255,255,255,.94)) 5px 7px / 3px 11px no-repeat,
        linear-gradient(rgba(255,255,255,.94), rgba(255,255,255,.94)) 10px 3px / 3px 15px no-repeat,
        linear-gradient(rgba(255,255,255,.94), rgba(255,255,255,.94)) 15px 0 / 3px 18px no-repeat;
}

.me-login-dashboard-nav-user::before {
    border-radius: 999px;
    background:
        radial-gradient(circle at 50% 32%, rgba(255,255,255,.94) 0 4px, transparent 5px),
        radial-gradient(ellipse at 50% 88%, rgba(255,255,255,.94) 0 7px, transparent 8px);
}

.me-login-dashboard-nav .is-brand {
    margin-bottom: 4px;
    background: rgba(255,255,255,.20);
    font-size: 13px;
}

.me-login-dashboard-main {
    display: grid;
    gap: 12px;
    padding: 14px;
}

.me-login-dashboard-title {
    color: #27406c;
    font-size: 13px;
    font-weight: 800;
}

.me-login-dashboard-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.me-login-dashboard-card {
    display: grid;
    gap: 6px;
    min-height: 90px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(37, 99, 235, .08);
    box-shadow: 0 10px 24px rgba(15, 43, 87, .07);
}

.me-login-dashboard-card span {
    color: #4e6488;
    font-size: 12px;
    font-weight: 700;
}

.me-login-dashboard-card strong {
    color: #0d245f;
    font-size: 22px;
    line-height: 1;
    letter-spacing: -.03em;
}

.me-login-dashboard-card small {
    color: #2563eb;
    font-size: 12px;
    font-weight: 800;
}

.me-login-mini-chart {
    align-self: end;
}

.me-login-mini-chart-line {
    display: flex;
    align-items: end;
    gap: 5px;
    height: 28px;
}

.me-login-mini-chart-line span {
    width: 18%;
    border-radius: 999px;
    background: linear-gradient(180deg, #8cb4ff, #2563eb);
}

.me-login-mini-chart-line span:nth-child(1) { height: 14px; }
.me-login-mini-chart-line span:nth-child(2) { height: 18px; }
.me-login-mini-chart-line span:nth-child(3) { height: 16px; }
.me-login-mini-chart-line span:nth-child(4) { height: 24px; }
.me-login-mini-chart-line span:nth-child(5) { height: 30px; }

.me-login-mini-chart-ring {
    width: 48px;
    height: 48px;
    justify-self: end;
    border-radius: 999px;
    background: conic-gradient(#2563eb 0 78%, #dbeafe 78% 100%);
    position: relative;
}

.me-login-mini-chart-ring::after {
    content: "";
    position: absolute;
    inset: 9px;
    border-radius: 999px;
    background: #fff;
}

.me-login-mini-chart-bars {
    display: flex;
    align-items: end;
    gap: 6px;
    height: 34px;
    justify-self: end;
}

.me-login-mini-chart-bars span {
    width: 8px;
    border-radius: 999px 999px 4px 4px;
    background: linear-gradient(180deg, #80a9ff, #2563eb);
}

.me-login-mini-chart-bars span:nth-child(1) { height: 14px; }
.me-login-mini-chart-bars span:nth-child(2) { height: 24px; }
.me-login-mini-chart-bars span:nth-child(3) { height: 20px; }
.me-login-mini-chart-bars span:nth-child(4) { height: 28px; }

.me-login-dashboard-card.is-wide {
    grid-column: span 2;
    min-height: 76px;
}

.me-login-auth-card {
    align-self: center;
    width: min(100%, 440px);
    margin: 0 0 0 auto;
    padding: 28px 26px 20px;
    border: 1px solid rgba(20, 52, 106, .10);
    border-radius: 24px;
    background: rgba(255,255,255,.92);
    box-shadow: 0 18px 44px rgba(15, 43, 87, .08);
}

.me-login-auth-card .me-login-card-brand {
    margin-bottom: 14px;
}

.me-login-auth-card .me-login-card-brand img {
    width: min(154px, 52%);
}

.me-login-auth-card .me-login-heading {
    display: grid;
    gap: 6px;
    margin-bottom: 16px;
}

.me-login-auth-card .me-login-heading h2 {
    margin: 0;
    color: #10245f;
    font-size: clamp(22px, 2vw, 30px);
    line-height: 1.12;
    letter-spacing: -.03em;
    font-weight: 900;
}

.me-login-auth-card .me-login-heading p {
    margin: 0;
    color: #6b7b95;
    font-size: 14px;
    line-height: 1.4;
}

.me-login-redesign .me-login-form {
    display: grid;
    gap: 10px;
}

.me-login-redesign .me-login-field {
    gap: 0;
}

.me-login-redesign .me-input-with-icon {
    grid-template-columns: 46px 1fr auto;
    min-height: 46px;
    border-radius: 14px;
    border: 1px solid rgba(20, 52, 106, .12);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

.me-login-redesign .me-input-with-icon input {
    min-height: 44px;
    font-size: 14px;
    color: #0f1f4d;
    padding-right: 10px;
}

.me-login-redesign .me-input-with-icon input::placeholder {
    color: #7d8ca6;
}

.me-login-redesign .me-input-icon {
    position: relative;
    font-size: 15px;
    font-weight: 900;
    color: #7a87a3;
}

.me-input-icon-user::before {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background:
        radial-gradient(circle at 50% 30%, #7a87a3 0 4px, transparent 5px),
        radial-gradient(ellipse at 50% 88%, #7a87a3 0 7px, transparent 8px);
}

.me-input-icon-lock::before {
    width: 18px;
    height: 20px;
    border: 2px solid #7a87a3;
    border-radius: 5px;
    background: linear-gradient(#7a87a3, #7a87a3) 50% 68% / 2px 5px no-repeat;
    box-shadow: inset 0 8px 0 -6px transparent;
}

.me-input-icon-lock::after {
    content: "";
    position: absolute;
    top: -2px;
    left: 50%;
    width: 12px;
    height: 10px;
    border: 2px solid #7a87a3;
    border-bottom: 0;
    border-radius: 999px 999px 0 0;
    transform: translateX(-50%);
}

.me-input-icon-eye::before {
    width: 20px;
    height: 12px;
    border: 2px solid #7a87a3;
    border-radius: 999px / 70%;
    background: radial-gradient(circle at 50% 50%, #7a87a3 0 2.5px, transparent 3px);
}

.me-input-icon-key::before {
    width: 20px;
    height: 20px;
    background:
        radial-gradient(circle at 35% 50%, transparent 0 4px, #7a87a3 4px 6px, transparent 6px),
        linear-gradient(#7a87a3, #7a87a3) 11px 9px / 8px 2px no-repeat,
        linear-gradient(#7a87a3, #7a87a3) 16px 9px / 2px 6px no-repeat;
}

.me-input-icon-shield::before {
    width: 18px;
    height: 20px;
    background: #7a87a3;
    clip-path: polygon(50% 0, 100% 18%, 92% 72%, 50% 100%, 8% 72%, 0 18%);
}

.me-login-redesign .me-password-toggle {
    padding: 0 10px;
    color: #6980b1;
    font-size: 14px;
}

.me-login-step-row,
.me-login-redesign .me-login-options,
.me-login-redesign .me-login-secondary-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.me-login-step-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #edf4ff;
    color: #1e56d8;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .02em;
}

.me-login-step-links {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.me-login-redesign .me-login-remember {
    color: #3b4d71;
    font-size: 13px;
}

.me-login-redesign .me-button-link {
    color: #2563eb;
    font-weight: 800;
    font-size: 13px;
    padding: 0;
}

.me-login-primary-button {
    min-height: 44px;
    border-radius: 14px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #1560ff 0%, #1d6cff 100%);
    box-shadow: 0 12px 24px rgba(37, 99, 235, .20);
    font-size: 14px;
}

.me-login-primary-button strong {
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.me-login-secondary-button,
.me-login-outline-button {
    width: 100%;
    min-height: 42px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 800;
}

.me-login-secondary-button {
    margin-top: 12px;
    background: #fff;
}

.me-login-outline-button {
    color: #2563eb;
    background: #fff;
    border-color: rgba(37, 99, 235, .18);
}

.me-login-redesign .me-login-divider {
    margin: 14px 0 12px;
    color: #50617f;
    font-weight: 700;
    font-size: 12px;
}

.me-login-redesign .me-login-divider::before,
.me-login-redesign .me-login-divider::after {
    background: rgba(148, 163, 184, .30);
}

.me-login-info,
.me-login-error,
.me-login-validation {
    margin-bottom: 10px;
    border-radius: 14px;
    padding: 11px 13px;
    font-weight: 700;
    font-size: 13px;
}

.me-login-error {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #be123c;
}

.me-login-footer-copy {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(148, 163, 184, .24);
    text-align: center;
    color: #76849a;
    font-size: 11px;
    font-weight: 600;
}

@media (max-width: 1320px) {
    .me-login-page.me-login-redesign {
        grid-template-columns: minmax(0, 1fr);
        width: min(980px, calc(100% - 36px));
        padding-top: 20px;
    }

    .me-login-story {
        padding: 10px 6px 2px;
    }

    .me-login-auth-card {
        width: min(100%, 440px);
        margin: 0 auto 18px;
    }
}

@media (max-width: 980px) {
    .me-login-story {
        padding: 18px 8px 2px;
    }

    .me-login-story-visual {
        padding-left: 0;
        min-height: 0;
    }

    .me-login-story-points {
        max-width: none;
    }

    .me-login-dashboard-frame {
        width: min(420px, 100%);
        margin: 0 auto;
    }
}

@media (max-width: 720px) {
    .me-login-page.me-login-redesign {
        gap: 4px;
        width: 100%;
        padding: 0;
        background:
            radial-gradient(circle at 0% 100%, rgba(37, 99, 235, .18), transparent 22%),
            #f8fbff;
    }

    .me-login-story {
        padding: 22px 16px 4px;
    }

    .me-login-story-copy h1 {
        font-size: 26px;
    }

    .me-login-story-copy p {
        font-size: 15px;
    }

    .me-login-point {
        grid-template-columns: 54px 1fr;
        gap: 12px;
    }

    .me-login-point-icon {
        width: 50px;
        height: 50px;
        border-radius: 16px;
        font-size: 22px;
    }

    .me-login-dashboard-shell {
        min-height: 260px;
        grid-template-columns: 52px 1fr;
    }

    .me-login-dashboard-cards {
        grid-template-columns: 1fr;
    }

    .me-login-dashboard-card.is-wide {
        grid-column: auto;
    }

    .me-login-auth-card {
        width: auto;
        margin: 10px 16px 20px;
        padding: 22px 16px 18px;
        border-radius: 22px;
    }

    .me-login-auth-card .me-login-heading h2 {
        font-size: 21px;
    }

    .me-login-redesign .me-input-with-icon {
        grid-template-columns: 44px 1fr auto;
        min-height: 44px;
    }

    .me-login-redesign .me-input-with-icon input {
        min-height: 42px;
        font-size: 14px;
    }
}
