* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f7fa;
    color: #172033;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    padding: 0 32px;
    background: #102a43;
}

header > a {
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
}

nav {
    display: flex;
    gap: 24px;
}

nav a {
    color: #d9e2ec;
    text-decoration: none;
    font-size: 15px;
}

nav a:hover {
    color: #ffffff;
}

main {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 32px;
}

h1 {
    margin-top: 0;
    font-size: 36px;
}
.page-header {
    margin-bottom: 36px;
}

.eyebrow {
    margin: 0 0 8px;
    color: #5f6f82;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.page-header h1 {
    margin-bottom: 10px;
}

.page-description {
    margin: 0;
    color: #5f6f82;
    font-size: 17px;
    line-height: 1.6;
}

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

.dashboard-card {
    min-height: 170px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #d9e2ec;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(16, 42, 67, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(16, 42, 67, 0.10);
}

.dashboard-card h2 {
    margin: 0 0 12px;
    color: #102a43;
    font-size: 20px;
}

.dashboard-card p {
    margin: 0;
    color: #627d98;
    line-height: 1.55;
}

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

@media (max-width: 600px) {
    header {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        padding: 16px 20px;
    }

    main {
        padding: 32px 20px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}
.dashboard-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}
.employees-section {
    margin-top: 32px;
}

.employees-table-wrapper {
    width: 100%;
    overflow-x: auto;
    background: #ffffff;
    border: 1px solid #dbe3ec;
    border-radius: 14px;
}

.employees-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 850px;
}

.employees-table th {
    padding: 16px 18px;
    text-align: left;
    font-size: 13px;
    font-weight: 700;
    color: #526273;
    background: #f7f9fc;
    border-bottom: 1px solid #dbe3ec;
}

.employees-table td {
    padding: 18px;
    font-size: 15px;
    color: #17263a;
    border-bottom: 1px solid #edf1f5;
    vertical-align: middle;
}

.employees-table tbody tr:last-child td {
    border-bottom: none;
}

.employees-table tbody tr:hover {
    background: #f8fafc;
}

.employee-name {
    font-weight: 700;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #e8f5ee;
    color: #24734b;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.muted-value {
    color: #8a98a8;
}

.empty-state {
    padding: 32px;
    background: #ffffff;
    border: 1px solid #dbe3ec;
    border-radius: 14px;
}

.empty-state h2 {
    margin: 0 0 8px;
    font-size: 20px;
}

.empty-state p {
    margin: 0;
    color: #66768a;
}
.employee-name-link {
    color: #17263a;
    text-decoration: none;
    font-weight: 700;
}

.employee-name-link:hover {
    color: #245b82;
    text-decoration: underline;
}

.employee-detail-header {
    margin-bottom: 32px;
}

.back-link {
    display: inline-block;
    margin-bottom: 24px;
    color: #526273;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.back-link:hover {
    color: #17263a;
}

.employee-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.employee-profile-card {
    background: #ffffff;
    border: 1px solid #dbe3ec;
    border-radius: 14px;
    padding: 28px;
}

.employee-profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 40px;
}

.employee-profile-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.employee-profile-label {
    color: #718096;
    font-size: 13px;
    font-weight: 600;
}

.employee-profile-field strong {
    color: #17263a;
    font-size: 16px;
    font-weight: 600;
}

@media (max-width: 700px) {
    .employee-title-row {
        flex-direction: column;
    }

    .employee-profile-grid {
        grid-template-columns: 1fr;
    }
}
.employee-title-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.employee-edit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #17263a;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.employee-edit-button:hover {
    background: #f7f9fc;
    border-color: #aab8c7;
}

.employee-section-title {
    margin: 0 0 24px;
    font-size: 18px;
    color: #17263a;
}

.employee-contact-card {
    margin-top: 20px;
}

.employee-contact-link {
    color: #245b82;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
}

.employee-contact-link:hover {
    text-decoration: underline;
}

@media (max-width: 700px) {
    .employee-title-actions {
        align-items: flex-start;
        flex-direction: column;
    }
}
.employee-access-groups {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.employee-access-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: #eef3f8;
    color: #34495e;
    font-size: 13px;
    font-weight: 700;
}
.header-user {
    color: #9fb1c5;
    font-size: 14px;
    font-weight: 600;
}

.logout-form {
    margin: 0;
}

.logout-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: #d9e2ec;
    font: inherit;
    font-size: 15px;
    cursor: pointer;
}

.logout-button:hover {
    color: #ffffff;
}
.access-form {
    max-width: 1200px;
}

.access-card {
    padding: 28px;
    border: 1px solid #d7e0ea;
    border-radius: 14px;
    background: #ffffff;
}

.access-card h2 {
    margin: 0 0 22px;
    font-size: 22px;
}

.access-options {
    display: grid;
    gap: 12px;
}

.access-option {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid #dce4ec;
    border-radius: 10px;
    cursor: pointer;
}

.access-option:hover {
    background: #f7f9fc;
}

.access-option input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

.access-option-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.access-option-copy strong {
    font-size: 15px;
}

.access-option-copy span {
    color: #718096;
    font-size: 14px;
}

.access-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
}

.access-save-button {
    padding: 10px 18px;
    border: 0;
    border-radius: 8px;
    background: #102f4a;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
}

.access-save-button:hover {
    background: #174263;
}

.access-cancel-link {
    color: #53677c;
    text-decoration: none;
}

.access-cancel-link:hover {
    text-decoration: underline;
}
.access-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 24px;
}

.access-preview-header h2 {
    margin: 0 0 6px;
}

.access-preview-header p {
    margin: 0;
    color: #718096;
}

.access-preview-badge {
    flex-shrink: 0;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef3f8;
    color: #53677c;
    font-size: 12px;
    font-weight: 600;
}

.access-tree,
.access-tree-children {
    margin: 0;
    padding: 0;
    list-style: none;
}

.access-tree-children {
    margin-left: 24px;
    padding-left: 18px;
    border-left: 1px solid #dce4ec;
}

.access-tree-item {
    margin: 8px 0;
}

.access-tree-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
}

.access-tree-row:hover {
    background: #f7f9fc;
}

.access-tree-marker {
    width: 18px;
    flex-shrink: 0;
    color: #53677c;
    font-weight: 700;
}

.access-tree-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.access-tree-copy strong {
    color: #17263a;
}

.access-tree-code {
    color: #8996a6;
    font-size: 11px;
}

.access-tree-item-module > .access-tree-row {
    background: #f4f7fa;
}

.access-tree-item-module > .access-tree-row .access-tree-copy strong {
    font-size: 16px;
}

.access-current-card {
    margin-top: 18px;
}

.access-current-description {
    margin: 0 0 16px;
    color: #718096;
}
.access-tree-checkbox-row {
    cursor: pointer;
}

.access-tree-checkbox {
    width: 17px;
    height: 17px;
    margin: 1px 2px 0 0;
    flex-shrink: 0;
}

.access-tree-checkbox-row:has(.access-tree-checkbox:checked) {
    background: #eef5fb;
}

.access-tree-checkbox-row:has(.access-tree-checkbox:checked)
.access-tree-copy strong {
    color: #102f4a;
}
/* TELEI Office data scope */
.access-scope-card {
    margin-top: 20px;
}

.scope-tree,
.scope-tree-children {
    margin: 0;
    padding: 0;
    list-style: none;
}

.scope-tree-children {
    margin-left: 24px;
    padding-left: 18px;
    border-left: 1px solid #dce4ec;
}

.scope-tree-item {
    margin: 8px 0;
}

.scope-tree-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
}

.scope-tree-root-row {
    background: #f4f7fa;
}

.scope-tree-checkbox-row {
    cursor: pointer;
}

.scope-tree-checkbox-row:hover {
    background: #f7f9fc;
}

.scope-tree-checkbox {
    width: 17px;
    height: 17px;
    margin: 1px 2px 0 0;
    flex-shrink: 0;
}

.scope-tree-checkbox-row:has(.scope-tree-checkbox:checked) {
    background: #eef5fb;
}

.scope-tree-marker {
    width: 18px;
    flex-shrink: 0;
    color: #53677c;
    font-weight: 700;
}

.scope-tree-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.scope-tree-copy strong {
    color: #17263a;
}

.scope-tree-code {
    color: #8996a6;
    font-size: 11px;
}

.scope-tree-empty {
    margin: 8px 0 12px 42px;
    color: #8996a6;
    font-size: 13px;
}

/* WB Ads mockup */
.wb-ads-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.wb-ads-demo-badge {
    flex-shrink: 0;
    padding: 8px 12px;
    border-radius: 999px;
    background: #f3e8ff;
    color: #7e22ce;
    font-size: 12px;
    font-weight: 700;
}

.wb-ads-toolbar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.wb-ads-toolbar-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 16px 18px;
    border: 1px solid #dbe3ec;
    border-radius: 12px;
    background: #ffffff;
}

.wb-ads-toolbar-item span {
    color: #718096;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.wb-ads-toolbar-item strong {
    color: #17263a;
    font-size: 15px;
}

.wb-ads-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.wb-ads-kpi-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 126px;
    padding: 20px;
    border: 1px solid #dbe3ec;
    border-radius: 14px;
    background: #ffffff;
}

.wb-ads-kpi-card span,
.wb-ads-kpi-card small {
    color: #718096;
}

.wb-ads-kpi-card span {
    font-size: 13px;
    font-weight: 700;
}

.wb-ads-kpi-card strong {
    color: #102a43;
    font-size: 25px;
}

.wb-ads-kpi-card small {
    margin-top: auto;
    font-size: 12px;
}

.wb-ads-kpi-drr {
    border-top: 3px solid #cb11ab;
}

.wb-ads-summary-card {
    margin-bottom: 20px;
    padding: 24px;
    border: 1px solid #dbe3ec;
    border-radius: 14px;
    background: #ffffff;
}

.wb-ads-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.wb-ads-section-heading h2 {
    margin: 0;
    color: #17263a;
}

.wb-ads-section-heading > span {
    color: #718096;
    font-size: 13px;
}

.wb-ads-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.wb-ads-summary-table,
.wb-ads-detail-table {
    width: 100%;
    border-collapse: collapse;
}

.wb-ads-summary-table {
    min-width: 760px;
}

.wb-ads-summary-table th,
.wb-ads-summary-table td,
.wb-ads-detail-table th,
.wb-ads-detail-table td {
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    text-align: right;
    white-space: nowrap;
}

.wb-ads-summary-table th:first-child,
.wb-ads-summary-table td:first-child,
.wb-ads-summary-table th:nth-child(2),
.wb-ads-summary-table td:nth-child(2),
.wb-ads-detail-table th:first-child,
.wb-ads-detail-table td:first-child {
    text-align: left;
}

.wb-ads-summary-table th {
    background: #f7f9fc;
    color: #526273;
    font-size: 12px;
}

.wb-ads-summary-table td {
    color: #17263a;
    font-size: 14px;
}

.wb-ads-glue-list {
    display: grid;
    gap: 14px;
}

.wb-ads-glue-card {
    overflow: hidden;
    border: 1px solid #dbe3ec;
    border-radius: 14px;
    background: #ffffff;
}

.wb-ads-glue-card > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 20px;
    cursor: pointer;
    list-style: none;
    background: #f8fbff;
}

.wb-ads-glue-card > summary::-webkit-details-marker {
    display: none;
}

.wb-ads-glue-name {
    display: block;
    color: #102a43;
    font-size: 17px;
    font-weight: 700;
}

.wb-ads-glue-manager {
    display: block;
    margin-top: 4px;
    color: #718096;
    font-size: 12px;
}

.wb-ads-glue-summary-metrics {
    display: flex;
    gap: 16px;
    color: #34495e;
    font-size: 13px;
    font-weight: 700;
}

.wb-ads-detail-wrap {
    padding: 0 18px 18px;
}

.wb-ads-detail-table {
    min-width: 900px;
}

.wb-ads-detail-table thead th {
    background: #1c4587;
    color: #ffffff;
    font-size: 12px;
    text-align: center;
}

.wb-ads-detail-table thead tr:nth-child(2) th {
    background: #3d85c6;
}

.wb-ads-advert-id {
    font-weight: 600;
}

.wb-ads-detail-table tbody td {
    color: #17263a;
    font-size: 13px;
}

.wb-order-cell {
    background: #f2f8ef;
}

.wb-drr-cell {
    background: #fff3f3;
    font-weight: 700;
}

.wb-ads-week-total td {
    background: #1c4587 !important;
    color: #ffffff !important;
    font-weight: 700;
}

.wb-ads-empty {
    margin-top: 20px;
}

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

@media (max-width: 700px) {
    .wb-ads-header,
    .wb-ads-section-heading,
    .wb-ads-glue-card > summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .wb-ads-toolbar,
    .wb-ads-kpi-grid {
        grid-template-columns: 1fr;
    }

    .wb-ads-glue-summary-metrics {
        flex-wrap: wrap;
    }
}

/* TELEI master-data */
.mdm-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.mdm-warning-card,
.mdm-form-card,
.mdm-table-card {
    margin-top: 18px;
    padding: 22px;
    border: 1px solid #d7e0ea;
    border-radius: 14px;
    background: #ffffff;
}

.mdm-warning-card {
    border-color: #f0c7c7;
    background: #fff8f8;
}

.mdm-warning-card p,
.mdm-help-text,
.mdm-muted {
    color: #718096;
}

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

.mdm-kpi-card {
    padding: 18px;
    border: 1px solid #d7e0ea;
    border-radius: 12px;
    background: #ffffff;
}

.mdm-kpi-card span {
    display: block;
    margin-bottom: 8px;
    color: #718096;
    font-size: 13px;
}

.mdm-kpi-card strong {
    font-size: 26px;
    color: #102f4a;
}

.mdm-filter-bar,
.mdm-inline-form,
.mdm-table-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.mdm-filter-bar {
    margin-top: 18px;
}

.mdm-filter-bar input[type="search"] {
    min-width: 300px;
    flex: 1;
}

.mdm-filter-bar input,
.mdm-filter-bar select,
.mdm-inline-form input,
.mdm-inline-form select,
.mdm-table input[type="text"],
.mdm-table select {
    min-height: 38px;
    padding: 7px 9px;
    border: 1px solid #cfd9e4;
    border-radius: 8px;
    background: #ffffff;
}

.mdm-primary-button,
.mdm-secondary-button,
.mdm-small-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    font-weight: 700;
}

.mdm-primary-button {
    min-height: 38px;
    padding: 0 15px;
    border: 1px solid #102f4a;
    background: #102f4a;
    color: #ffffff;
}

.mdm-secondary-button {
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid #cfd9e4;
    background: #ffffff;
    color: #34495e;
}

.mdm-small-button {
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid #cfd9e4;
    background: #ffffff;
    color: #102f4a;
}

.mdm-table-toolbar {
    justify-content: space-between;
    margin-bottom: 14px;
}

.mdm-table-wrap {
    overflow-x: auto;
}

.mdm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.mdm-table th,
.mdm-table td {
    padding: 9px 10px;
    border: 1px solid #dbe3ec;
    vertical-align: middle;
    text-align: left;
}

.mdm-table th {
    background: #f4f7fa;
    color: #53677c;
    font-size: 12px;
}

.mdm-table select {
    min-width: 190px;
}

.mdm-row-needs-action td {
    background: #fffdf5;
}

.mdm-checkbox-cell {
    text-align: center !important;
}

.mdm-checkbox-cell input,
.mdm-checkbox-label input {
    width: 18px;
    height: 18px;
}

.mdm-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

@media (max-width: 800px) {
    .mdm-page-header {
        flex-direction: column;
    }

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

    .mdm-filter-bar input[type="search"] {
        min-width: 100%;
    }
}

.flash-messages {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.flash-message {
    padding: 10px 14px;
    border: 1px solid #d7e0ea;
    border-radius: 9px;
    background: #f7f9fc;
    color: #34495e;
}

.flash-message-success {
    border-color: #b9dfc8;
    background: #f1fbf5;
}

.flash-message-error {
    border-color: #efc1c1;
    background: #fff5f5;
}

/* Employees v2 */
.employee-list-header,
.employee-form-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.employee-primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 18px;
    border: 0;
    border-radius: 9px;
    background: #102f4a;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.employee-primary-button:hover {
    background: #174263;
    color: #ffffff;
}

.employee-form {
    display: grid;
    gap: 18px;
}

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

.employee-form-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.employee-form-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.employee-form-field label {
    color: #53677c;
    font-size: 13px;
    font-weight: 700;
}

.employee-form-field input,
.employee-form-field select {
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid #cad6e2;
    border-radius: 8px;
    background: #ffffff;
    color: #10243a;
    font: inherit;
    box-sizing: border-box;
}

.employee-form-field input:focus,
.employee-form-field select:focus {
    outline: 2px solid rgba(35, 94, 150, 0.16);
    border-color: #4b7eaa;
}

.employee-form-help,
.employee-account-note {
    margin: 2px 0 0;
    color: #718096;
    font-size: 13px;
    line-height: 1.45;
}

.employee-field-errors,
.employee-form-errors {
    color: #a53b3b;
    font-size: 13px;
}

.employee-field-errors ul,
.employee-form-errors ul {
    margin: 0;
    padding-left: 18px;
}

.employee-marketplace-block ul {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.employee-marketplace-block label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.employee-marketplace-block input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.employee-form-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 24px;
}

@media (max-width: 760px) {
    .employee-list-header,
    .employee-form-header {
        flex-direction: column;
    }

    .employee-form-grid,
    .employee-form-grid-3 {
        grid-template-columns: 1fr;
    }
}


/* TELEI master-data bulk assignment */
.mdm-bulk-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
    padding: 12px;
    border: 1px solid #d7e0ea;
    border-radius: 10px;
    background: #f8fbff;
}

.mdm-bulk-bar select {
    min-height: 38px;
    min-width: 190px;
    padding: 7px 9px;
    border: 1px solid #cfd9e4;
    border-radius: 8px;
    background: #ffffff;
}

.mdm-bulk-replace {
    padding: 6px 9px;
    border-radius: 8px;
    background: #fffaf0;
}

.mdm-bulk-help {
    margin: 0 0 14px;
}

@media (max-width: 800px) {
    .mdm-bulk-bar {
        align-items: stretch;
    }

    .mdm-bulk-bar select,
    .mdm-bulk-bar .mdm-primary-button,
    .mdm-bulk-replace {
        width: 100%;
    }
}


/* TELEI master-data visual polish V6 */
.mdm-table input[type="checkbox"],
.mdm-bulk-bar input[type="checkbox"] {
    accent-color: #102f4a;
    cursor: pointer;
}

.mdm-glues-table .mdm-glue-name-cell {
    width: 31%;
    min-width: 300px;
}

.mdm-glues-table .mdm-glue-name-input {
    width: 100%;
    min-width: 285px;
    box-sizing: border-box;
}

.mdm-glues-table .mdm-product-count {
    min-width: 90px;
    text-align: center !important;
    white-space: nowrap;
}

/* TELEI WB Ads real-data bridge V1 */
.wb-ads-header-badges {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.wb-ads-access-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 10px;
    border: 1px solid #d7e0ea;
    border-radius: 999px;
    background: #ffffff;
    color: #526273;
    font-size: 12px;
    font-weight: 700;
}

.wb-ads-data-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0;
    padding: 12px 14px;
    border: 1px solid #ead8a4;
    border-radius: 10px;
    background: #fffaf0;
    color: #6b5b2a;
    font-size: 13px;
}

.wb-ads-data-note strong {
    color: #4f421d;
}

.wb-ads-filter-card {
    margin: 16px 0 20px;
    padding: 16px;
    border: 1px solid #dbe3ec;
    border-radius: 14px;
    background: #ffffff;
}

.wb-ads-filter-form {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.wb-ads-filter-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.wb-ads-filter-field label {
    color: #718096;
    font-size: 12px;
    font-weight: 700;
}

.wb-ads-filter-field select,
.wb-ads-filter-field input {
    min-height: 38px;
    padding: 7px 10px;
    border: 1px solid #cfd9e4;
    border-radius: 8px;
    background: #ffffff;
    color: #17263a;
}

.wb-ads-filter-search {
    flex: 1 1 320px;
}

.wb-ads-filter-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wb-ads-primary-button,
.wb-ads-secondary-button {
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid #102f4a;
    border-radius: 8px;
    background: #102f4a;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
}

.wb-ads-secondary-button {
    min-height: 32px;
    padding: 6px 9px;
    border-color: #cfd9e4;
    background: #ffffff;
    color: #102f4a;
}

.wb-ads-reset-link {
    color: #526273;
    font-weight: 700;
}

.wb-ads-period-note {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
    color: #718096;
    font-size: 12px;
}

.wb-ads-period-note strong {
    color: #34495e;
}

.wb-ads-section-meta {
    color: #718096;
    font-size: 13px;
}

.wb-ads-detail-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin: 24px 0 12px;
}

.wb-ads-detail-heading h2 {
    margin: 0;
}

.wb-ads-detail-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.wb-ads-detail-action-hide {
    display: none;
}

.wb-ads-glue-card[open] .wb-ads-detail-action-show {
    display: none;
}

.wb-ads-glue-card[open] .wb-ads-detail-action-hide {
    display: inline;
}

.wb-ads-kpi-grid-v2 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 700px) {
    .wb-ads-data-note,
    .wb-ads-detail-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .wb-ads-kpi-grid-v2 {
        grid-template-columns: 1fr;
    }
}

/* TELEI WB Ads full V3 — compact report + Orders + DRR */
.wb-ads-kpi-grid-full {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-bottom: 10px;
}

.wb-ads-data-note-compact {
    margin: 12px 0;
    padding: 9px 12px;
}

.wb-ads-detail-heading {
    margin-top: 16px;
}

.wb-ads-glue-list {
    gap: 10px;
}

.wb-ads-glue-card > summary {
    padding: 14px 16px;
}

.wb-ads-glue-summary-metrics {
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.wb-ads-detail-action {
    color: #245a86;
    font-weight: 700;
}

.wb-ads-detail-wrap {
    padding: 0 12px 12px;
}

.wb-ads-kpi-pending,
.wb-ads-muted-metric,
.wb-ads-cell-pending {
    color: #7c8996;
}

.wb-ads-kpi-pending {
    font-size: 18px !important;
}

.wb-ads-detail-table-full {
    min-width: max-content;
}

.wb-ads-detail-table-full th.wb-ads-sticky-date,
.wb-ads-detail-table-full td.wb-ads-sticky-date {
    position: sticky;
    left: 0;
    z-index: 4;
    min-width: 108px;
}

.wb-ads-detail-table-full thead th.wb-ads-sticky-date {
    z-index: 8;
    background: #1c4587;
}

.wb-ads-detail-table-full tbody td.wb-ads-sticky-date {
    background: #ffffff;
}

.wb-ads-detail-table-full th.wb-ads-sticky-spend,
.wb-ads-detail-table-full td.wb-ads-sticky-spend {
    position: sticky;
    right: 202px;
    z-index: 4;
    min-width: 110px;
}

.wb-ads-detail-table-full th.wb-ads-sticky-ordered,
.wb-ads-detail-table-full td.wb-ads-sticky-ordered {
    position: sticky;
    right: 82px;
    z-index: 5;
    min-width: 120px;
}

.wb-ads-detail-table-full th.wb-ads-sticky-drr,
.wb-ads-detail-table-full td.wb-ads-sticky-drr {
    position: sticky;
    right: 0;
    z-index: 6;
    min-width: 82px;
}

.wb-ads-detail-table-full thead th.wb-ads-sticky-spend,
.wb-ads-detail-table-full thead th.wb-ads-sticky-ordered,
.wb-ads-detail-table-full thead th.wb-ads-sticky-drr {
    z-index: 8;
    background: #1c4587;
}

.wb-ads-detail-table-full tbody td.wb-ads-sticky-spend,
.wb-ads-detail-table-full tbody td.wb-ads-sticky-ordered,
.wb-ads-detail-table-full tbody td.wb-ads-sticky-drr {
    background: #f7f9fc;
}

.wb-ads-detail-table-full .wb-ads-week-total td.wb-ads-sticky-date,
.wb-ads-detail-table-full .wb-ads-week-total td.wb-ads-sticky-spend,
.wb-ads-detail-table-full .wb-ads-week-total td.wb-ads-sticky-ordered,
.wb-ads-detail-table-full .wb-ads-week-total td.wb-ads-sticky-drr {
    background: #1c4587 !important;
}

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

@media (max-width: 700px) {
    .wb-ads-kpi-grid-full {
        grid-template-columns: 1fr;
    }

    .wb-ads-data-note,
    .wb-ads-detail-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .wb-ads-glue-summary-metrics {
        width: 100%;
        justify-content: space-between;
    }
}
