@import url("chips.css?v=6");

/* Shared visual treatment for operational pages: SIM Cards, Billing, Orders and User Logs. */
.ops-page {
    --ops-blue: #2f80ff;
    --ops-green: #19a974;
    --ops-amber: #f59e0b;
    --ops-red: #e30613;
    --ops-text: #10253f;
    --ops-muted: #6f8095;
    --ops-line: #e2eaf3;
    --ops-soft: #f7faff;
    display: grid;
    gap: 16px;
    min-width: 0;
}

.ops-page .ops-heading {
    position: static;
    display: flex;
    width: 100%;
    min-width: 0;
    justify-content: space-between;
    gap: 20px;
    margin: 0;
    padding: 0;
    align-items: center;
    background: transparent;
    box-shadow: none;
}

.ops-page .page-heading__copy {
    min-width: 0;
    flex: 1 1 auto;
}

.ops-page .page-actions {
    display: flex;
    min-width: 0;
    flex: 0 1 auto;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.ops-page .page-title {
    margin: 0 !important;
    color: var(--ops-text) !important;
    font-size: 28px !important;
    font-weight: 800 !important;
    line-height: 1.05 !important;
}

.ops-page .page-subtitle {
    display: block;
    margin-top: 7px !important;
    color: var(--ops-muted) !important;
    font-size: 13px !important;
}

.ops-page .refresh-action,
.ops-page .ops-icon-action {
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    background: transparent !important;
    color: #53657b !important;
}

.ops-page .refresh-action:hover,
.ops-page .ops-icon-action:hover {
    background: rgba(47, 128, 255, 0.09) !important;
    color: var(--ops-blue) !important;
}

.ops-primary-action {
    min-height: 40px;
    border-radius: 999px !important;
    box-shadow: 0 10px 22px rgba(47, 128, 255, 0.2) !important;
    font-weight: 800 !important;
}

.ops-metric-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
}

.ops-metric {
    display: flex;
    min-width: 0;
    min-height: 74px;
    align-items: center;
    gap: 13px;
    padding: 14px 16px;
    border: 1px solid var(--ops-line);
    border-top: 3px solid var(--ops-blue);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 35, 58, 0.055);
}

.ops-metric > span {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 12px;
    background: rgba(47, 128, 255, 0.09);
    color: var(--ops-blue);
}

.ops-metric small {
    display: block;
    overflow: hidden;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ops-metric strong {
    display: block;
    overflow: hidden;
    margin-top: 2px;
    color: var(--ops-text);
    font-size: 1.14rem;
    font-weight: 850;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ops-metric--green {
    border-top-color: var(--ops-green);
}

.ops-metric--green > span {
    background: rgba(25, 169, 116, 0.1);
    color: var(--ops-green);
}

.ops-metric--amber {
    border-top-color: var(--ops-amber);
}

.ops-metric--amber > span {
    background: rgba(245, 158, 11, 0.12);
    color: var(--ops-amber);
}

.ops-metric--red {
    border-top-color: var(--ops-red);
}

.ops-metric--red > span {
    background: rgba(227, 6, 19, 0.08);
    color: var(--ops-red);
}

.content-scroll .ops-panel {
    overflow: hidden;
    border: 1px solid var(--ops-line);
    border-radius: 16px;
    background: #fff !important;
    box-shadow: 0 10px 30px rgba(15, 35, 58, 0.045);
}

.ops-loading {
    border-radius: 0;
}

.ops-toolbar {
    display: grid !important;
    grid-template-columns: minmax(260px, 0.45fr) minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding: 18px 20px;
    border-bottom: 1px solid #edf2f7;
    background: #fff;
}

.ops-search {
    width: 100%;
}

.ops-filters {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
}

.ops-filters .filter-select,
.ops-filters .filter-input {
    width: min(180px, 100%);
}

.sim-cards-page .ops-toolbar {
    grid-template-columns: minmax(300px, 0.36fr) minmax(0, 1fr) auto;
}

.sim-cards-page .ops-filters--primary {
    justify-content: flex-start;
}

.ops-advanced-filters {
    min-width: 220px;
    justify-self: end;
}

.ops-advanced-filters summary {
    display: inline-flex;
    height: 40px;
    align-items: center;
    gap: 8px;
    padding: 0 13px;
    border: 1px solid #d8e3ef;
    border-radius: 999px;
    color: #51647c;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 800;
    list-style: none;
}

.ops-advanced-filters summary::-webkit-details-marker {
    display: none;
}

.ops-advanced-filters[open] {
    grid-column: 1 / -1;
    justify-self: stretch;
}

.ops-advanced-filters[open] summary {
    margin-bottom: 12px;
    border-color: rgba(47, 128, 255, 0.45);
    color: var(--ops-blue);
    background: rgba(47, 128, 255, 0.06);
}

.ops-filters--advanced {
    justify-content: flex-start;
    padding: 12px;
    border: 1px solid #e7edf5;
    border-radius: 14px;
    background: #fbfdff;
}

/* ---------- modern filter bar (same concept as Chips page) ---------- */
.billing-toolbar {
    grid-template-columns: 1fr !important;
}

.flt-row {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
}

.flt-row .filter-select {
    width: 200px !important;
    min-width: 160px;
    max-width: 240px;
    flex: 0 0 auto;
}

.flt-apply {
    height: 40px;
    border-radius: 11px !important;
    text-transform: none !important;
    font-weight: 700 !important;
    box-shadow: none !important;
}

.flt-divider {
    width: 1px;
    height: 28px;
    background: #e4ebf5;
    margin: 0 2px;
}

.flt-text-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 210px;
    height: 40px;
    border: 1px solid #e4ebf5;
    border-radius: 12px;
    background: #fff;
    transition: border-color .14s ease, box-shadow .14s ease;
}

.flt-text-wrap:focus-within {
    border-color: var(--ops-blue, #2f80ff);
    box-shadow: 0 0 0 3px rgba(47, 128, 255, .12);
}

.flt-text-input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 0 14px;
    font-size: 13px;
    color: #18324d;
}

.flt-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 12px 20px 0;
}

.ops-toolbar + .flt-chips,
.flt-chips--inside {
    padding: 12px 20px;
    border-bottom: 1px solid #edf2f7;
    background: #fff;
}

.flt-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 8px 6px 13px;
    border-radius: 999px;
    background: #eef5ff;
    border: 1px solid #cfe0f6;
    color: #1f6fe5;
    font-size: 13px;
    font-weight: 650;
}

.flt-chip .mud-icon-root {
    font-size: 15px;
}

.flt-chip button {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #1f6fe5;
    cursor: pointer;
    transition: .14s ease;
}

.flt-chip button:hover {
    background: rgba(47, 128, 255, .18);
}

.flt-chip button .mud-icon-root {
    font-size: 13px;
}

.flt-chips-clear {
    border: 0;
    background: transparent;
    color: #64748b;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 8px;
    transition: .14s ease;
}

.flt-chips-clear:hover {
    color: #e30613;
    background: rgba(226, 75, 74, .08);
}

.ops-table {
    color: #18324d;
    font-size: 0.78rem;
}

.ops-table .mud-table-container {
    overflow-x: auto;
}

.ops-table table {
    border-collapse: separate;
    border-spacing: 0;
}

.ops-table thead th {
    height: 48px;
    border-bottom: 1px solid #dde7f2 !important;
    background: #f8fbff !important;
    color: #4b5f76 !important;
    font-size: 0.72rem !important;
    font-weight: 850 !important;
    white-space: nowrap;
}

.ops-table tbody td {
    min-height: 58px;
    border-bottom: 1px solid #edf2f7 !important;
    background: #fff;
    vertical-align: middle;
}

.ops-table tbody tr:hover td {
    background: #fbfdff !important;
}

.ops-primary {
    color: #10253f;
    font-weight: 850;
}

.ops-muted {
    color: #8796a8;
}

.ops-money {
    color: #10253f;
    font-weight: 900;
    white-space: nowrap;
}

.ops-date {
    display: inline-block;
    color: #24415f;
    font-variant-numeric: tabular-nums;
    line-height: 1.25;
    white-space: nowrap;
}

.ops-wrap {
    display: -webkit-box;
    max-width: 46ch;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-height: 1.35;
}

.ops-chip {
    display: inline-flex;
    max-width: 100%;
    min-height: 26px;
    align-items: center;
    padding: 0 9px;
    border-radius: 999px;
    background: #eef5ff;
    color: var(--ops-blue);
    font-size: 0.72rem;
    font-weight: 850;
    white-space: nowrap;
}

.ops-chip--gold {
    background: #fff7e6;
    color: #9a6500;
}

.ops-chip--blue {
    background: #eef5ff;
    color: #1f6fe5;
}

.ops-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 850;
    white-space: nowrap;
}

.ops-status--success {
    background: rgba(25, 169, 116, 0.1);
    color: #0e8f62;
}

.ops-status--danger {
    background: rgba(227, 6, 19, 0.08);
    color: #d31320;
}

.content-scroll .report-actions {
    align-items: center;
    gap: 2px;
}

.billing-table .mud-table-row,
.orders-table .mud-table-row {
    cursor: default;
}

.billing-table .clickable-row {
    cursor: pointer;
}

.billing-table .clickable-row:hover td {
    background: #f8fbff !important;
}

.orders-table .mud-table-toolbar {
    height: auto;
    min-height: 0;
    padding: 0;
}

.orders-table .ops-toolbar {
    width: 100%;
    grid-template-columns: minmax(280px, 440px);
    padding: 18px 20px;
}

.user-logs-table td:nth-child(5),
.orders-table td:nth-child(5),
.orders-table td:nth-child(6) {
    min-width: 220px;
}

.ops-dialog-title {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ops-dialog-title > span {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 50%;
    background: #f1f5f9;
    color: #52667e;
}

.ops-dialog-title .mud-typography-h6 {
    color: var(--ops-text);
    font-weight: 850;
}

.ops-dialog-title .mud-typography-body2 {
    color: var(--ops-muted);
}

.mud-dialog:has(.ops-dialog-title) {
    border-radius: 18px !important;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(15, 35, 58, 0.24) !important;
}

.mud-dialog:has(.ops-dialog-title) .mud-dialog-title {
    padding: 22px 26px 14px !important;
}

.mud-dialog:has(.ops-dialog-title) .mud-dialog-content {
    padding: 10px 26px 18px !important;
}

.mud-dialog:has(.ops-dialog-title) .mud-dialog-actions {
    padding: 0 26px 22px !important;
    border-top: 0 !important;
}

.mud-dialog:has(.sim-card-dialog-title) {
    max-height: min(92vh, 900px) !important;
}

.mud-dialog:has(.sim-card-dialog-title) .mud-dialog-content {
    overflow: auto;
}

.sim-card-dialog-title .mud-typography-body2 {
    max-width: min(760px, 70vw);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sim-card-dialog-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 14px;
    padding: 14px;
    border: 1px solid #e5edf5;
    border-radius: 14px;
    background: #fbfdff;
}

.sim-card-dialog-toolbar .search-field {
    flex: 1 1 260px;
    min-width: 220px;
}

.sim-card-dialog-toolbar .filter-select,
.sim-card-dialog-toolbar .page-size-select {
    width: min(170px, 100%);
}

.sim-card-dialog-toolbar .mud-button-root {
    height: 38px;
    border-radius: 12px;
    font-weight: 800;
}

.sim-card-dialog-table {
    border: 1px solid #e3edf7;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}

.sim-card-dialog-table .mud-table-container {
    max-height: min(50vh, 480px);
    overflow: auto;
}

.sim-card-dialog-table thead th {
    height: 42px;
}

.sim-card-dialog-table tbody td {
    min-height: 52px;
}

.sim-card-dialog-table .mono {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.sim-card-usage-dialog .usage-chart {
    margin: 4px 0 14px;
    padding: 12px;
    border: 1px solid #e5edf5;
    border-radius: 14px;
    background: linear-gradient(180deg, #fbfdff, #fff);
}

.sim-card-events-table table,
.sim-card-logs-table table {
    min-width: 980px;
}

.severity-dot {
    display: inline-flex;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2f80ff;
}

.severity-dot--warning {
    background: #f59e0b;
}

.severity-dot--critical {
    background: #e30613;
}

.sim-card-dialog .empty-state {
    display: grid;
    min-height: 180px;
    place-items: center;
    color: #8190a6;
    font-size: 0.9rem;
}

.sim-card-dialog .dialog-footer {
    display: flex;
    justify-content: flex-end;
    padding-top: 14px;
}

.sim-card-dialog-tabs .mud-tabs-toolbar {
    min-height: 44px;
    margin-bottom: 12px;
    border-bottom: 1px solid #e5edf5;
}

.sim-card-sms-composer {
    align-items: flex-end;
}

.sms-command-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 10px;
    padding: 14px;
    border: 1px solid #e5edf5;
    border-radius: 14px;
    background: #fbfdff;
}

.sms-command-grid .mud-button-root {
    min-height: 38px;
    justify-content: flex-start;
    border-radius: 12px;
    font-weight: 750;
}

.sms-tabs-panel {
    padding-top: 4px;
}

.sim-card-dialog-toolbar--add {
    margin-top: 14px;
    margin-bottom: 0;
}

.sim-card-blacklist-table .mud-table-container {
    max-height: min(42vh, 380px);
}

.sim-map-shell {
    overflow: hidden;
    border: 1px solid #e3edf7;
    border-radius: 16px;
    background: #eef3f8;
}

.sim-map-dialog {
    min-height: min(58vh, 520px);
}

.map-meta {
    display: inline-flex;
    margin-top: 10px;
    color: #64748b;
    font-variant-numeric: tabular-nums;
}

.billing-detail-table .mud-table-container,
.order-plans-table .mud-table-container {
    max-height: min(58vh, 520px);
}

.billing-detail-table table,
.order-plans-table table {
    min-width: 820px;
}

.order-plans-table .mud-numeric-field {
    margin-left: auto;
}

.sim-cards-page .summary-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 0;
}

.sim-cards-page .summary-pill {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border: 1px solid var(--ops-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 35, 58, 0.045);
}

.sim-cards-page .summary-pill strong {
    display: block;
    color: var(--ops-text);
    font-size: 1.05rem;
    font-weight: 850;
    line-height: 1;
}

.sim-cards-page .summary-pill small {
    display: block;
    margin-top: 2px;
    color: var(--ops-muted);
    font-size: 0.72rem;
    font-weight: 800;
}

.sim-cards-page .summary-dot {
    width: 10px;
    height: 10px;
    flex: 0 0 auto;
}

.sim-cards-page .sim-workspace {
    position: relative;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(310px, 360px) !important;
    gap: 0;
    min-width: 0;
    background: #fff;
}

.sim-cards-page .sim-list-pane {
    min-width: 0;
    border-right: 1px solid #e4edf6;
}

.sim-cards-page .sim-detail-panel {
    min-width: 0;
    background: linear-gradient(180deg, #fbfdff, #fff);
}

.sim-cards-page .page-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.sim-table .mud-table-container {
    max-height: calc(100vh - 360px);
    min-height: 360px;
}

.sim-table--essential .mud-table-container {
    max-height: none !important;
    min-height: 0 !important;
    overflow-x: hidden !important;
}

.sim-cards-page .sim-table--essential table {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed;
}

.sim-cards-page .sim-table--essential th,
.sim-cards-page .sim-table--essential td {
    overflow: hidden;
    text-overflow: ellipsis;
}

.sim-cards-page .sim-table--essential th:nth-child(1),
.sim-cards-page .sim-table--essential td:nth-child(1) {
    width: 23% !important;
}

.sim-cards-page .sim-table--essential th:nth-child(2),
.sim-cards-page .sim-table--essential td:nth-child(2) {
    width: 20% !important;
}

.sim-cards-page .sim-table--essential th:nth-child(3),
.sim-cards-page .sim-table--essential td:nth-child(3) {
    width: 11% !important;
}

.sim-cards-page .sim-table--essential th:nth-child(4),
.sim-cards-page .sim-table--essential td:nth-child(4) {
    width: 9% !important;
}

.sim-cards-page .sim-table--essential th:nth-child(5),
.sim-cards-page .sim-table--essential td:nth-child(5) {
    width: 13% !important;
}

.sim-cards-page .sim-table--essential th:nth-child(6),
.sim-cards-page .sim-table--essential td:nth-child(6),
.sim-cards-page .sim-table--essential th:nth-child(7),
.sim-cards-page .sim-table--essential td:nth-child(7) {
    width: 10% !important;
}

.sim-cards-page .sim-table--essential th:nth-child(8),
.sim-cards-page .sim-table--essential td:nth-child(8) {
    width: 44px !important;
}

.sim-table .name-link {
    display: inline-flex;
    max-width: 220px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ops-text);
    cursor: pointer;
    text-align: left;
}

.sim-table .name-link:hover {
    color: var(--ops-blue);
}

.sim-table .name-cell,
.sim-table .mono,
.sim-table .operator-cell {
    display: inline-block;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

.sim-table .name-cell {
    white-space: normal;
}

.sim-table .mono,
.sim-table .operator-cell {
    white-space: nowrap;
}

@media (max-width: 1180px) {
    .ops-toolbar,
    .sim-cards-page .ops-toolbar {
        grid-template-columns: 1fr;
    }

    .ops-filters {
        justify-content: flex-start;
    }

    .ops-advanced-filters {
        justify-self: start;
    }
}

@media (max-width: 1500px) {
    .sim-cards-page .sim-workspace {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .sim-cards-page .sim-list-pane {
        border-right: 0;
        border-bottom: 1px solid #e4edf6;
    }

    .sim-cards-page .sim-table--essential th:nth-child(1),
    .sim-cards-page .sim-table--essential td:nth-child(1) {
        width: 25% !important;
    }

    .sim-cards-page .sim-table--essential th:nth-child(2),
    .sim-cards-page .sim-table--essential td:nth-child(2) {
        width: 23% !important;
    }

    .sim-cards-page .sim-table--essential th:nth-child(3),
    .sim-cards-page .sim-table--essential td:nth-child(3) {
        width: 13% !important;
    }

    .sim-cards-page .sim-table--essential th:nth-child(4),
    .sim-cards-page .sim-table--essential td:nth-child(4) {
        width: 11% !important;
    }

    .sim-cards-page .sim-table--essential th:nth-child(5),
    .sim-cards-page .sim-table--essential td:nth-child(5) {
        width: 15% !important;
    }

    .sim-cards-page .sim-table--essential th:nth-child(6),
    .sim-cards-page .sim-table--essential td:nth-child(6) {
        width: 10% !important;
    }

    .sim-cards-page .sim-table--essential th:nth-child(7),
    .sim-cards-page .sim-table--essential td:nth-child(7) {
        display: none;
    }

    .sim-cards-page .sim-table--essential th:nth-child(8),
    .sim-cards-page .sim-table--essential td:nth-child(8) {
        width: 44px !important;
    }
}

@media (max-width: 760px) {
    .ops-metric-strip {
        grid-template-columns: 1fr;
    }

    .sim-cards-page .summary-strip {
        grid-template-columns: 1fr 1fr;
    }

    .ops-page .ops-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .ops-page .page-actions {
        justify-content: flex-start;
    }

    .ops-filters .filter-select,
    .ops-filters .filter-input {
        width: 100%;
    }
}

/* Chips page: designer-approved layout overrides */
.sim-cards-page {
    --chips-blue: #2f80ff;
    --chips-green: #16a364;
    --chips-orange: #f58220;
    --chips-red: #e30613;
}

.sim-cards-page .summary-strip {
    grid-template-columns: repeat(4, minmax(170px, 1fr)) !important;
    gap: 14px !important;
}

.sim-cards-page .summary-pill {
    min-height: 66px !important;
    gap: 14px !important;
    padding: 12px 18px !important;
    border-radius: 14px !important;
    background: #fff !important;
}

.sim-cards-page .summary-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    background: #eef5ff;
    color: var(--chips-blue);
}

.sim-cards-page .summary-pill--active .summary-icon {
    background: #e6f8ef;
    color: var(--chips-green);
}

.sim-cards-page .summary-pill--suspended .summary-icon {
    background: #fff2df;
    color: var(--chips-orange);
}

.sim-cards-page .summary-pill--offline .summary-icon {
    background: #fff0f2;
    color: var(--chips-red);
}

.sim-cards-page .summary-pill small {
    margin: 0 0 5px !important;
    color: #667992 !important;
    font-size: 0.72rem !important;
}

.sim-cards-page .summary-pill strong {
    font-size: 1.18rem !important;
    font-weight: 850 !important;
}

.sim-cards-page .table-panel {
    overflow: hidden !important;
    border: 1px solid #dfe9f4 !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: 0 16px 44px rgba(15, 35, 58, 0.055) !important;
}

.sim-cards-page .toolbar {
    grid-template-columns: minmax(270px, 0.45fr) minmax(0, 1fr) auto !important;
    align-items: center !important;
    padding: 16px 14px !important;
}

.sim-cards-page .ops-search .mud-input-root,
.sim-cards-page .filter-select .mud-input-root,
.sim-cards-page .filter-input .mud-input-root {
    min-height: 40px;
    border-radius: 12px !important;
}

.sim-cards-page .ops-advanced-filters summary {
    height: 40px;
    border-color: rgba(47, 128, 255, 0.42) !important;
    border-radius: 12px !important;
    color: #126dff !important;
    background: transparent !important;
    font-weight: 850 !important;
}

.sim-cards-page .sim-workspace {
    grid-template-columns: minmax(650px, 1fr) minmax(380px, 480px) !important;
    height: calc(100vh - 310px);
    min-height: 560px;
    max-height: 760px;
    background: #fff !important;
}

.sim-cards-page .sim-list-pane {
    border-right: 1px solid #dfe8f3 !important;
    border-bottom: 0 !important;
    overflow: hidden;
}

.sim-cards-page .sim-table {
    height: 100% !important;
    max-height: 100% !important;
    overflow: hidden !important;
}

.sim-cards-page .sim-detail-panel {
    background: #fff !important;
    overflow: auto;
}

.sim-cards-page .sim-table .mud-table-container {
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

.sim-cards-page .sim-table--essential table {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed !important;
}

.sim-cards-page .sim-table--essential thead th {
    height: 44px !important;
    padding: 0 18px !important;
    border-bottom: 1px solid #dfe8f3 !important;
    background: #f8fbff !important;
    color: #4f6077 !important;
    font-size: 0.72rem !important;
    font-weight: 850 !important;
}

.sim-cards-page .sim-table--essential tbody td {
    height: 48px !important;
    min-height: 48px !important;
    padding: 8px 18px !important;
    color: #17304a !important;
    font-size: 0.76rem !important;
}

.sim-cards-page .sim-table--essential th:nth-child(1),
.sim-cards-page .sim-table--essential td:nth-child(1) {
    width: 18% !important;
}

.sim-cards-page .sim-table--essential th:nth-child(2),
.sim-cards-page .sim-table--essential td:nth-child(2) {
    width: 20% !important;
}

.sim-cards-page .sim-table--essential th:nth-child(3),
.sim-cards-page .sim-table--essential td:nth-child(3) {
    width: 12% !important;
}

.sim-cards-page .sim-table--essential th:nth-child(4),
.sim-cards-page .sim-table--essential td:nth-child(4) {
    width: 10% !important;
}

.sim-cards-page .sim-table--essential th:nth-child(5),
.sim-cards-page .sim-table--essential td:nth-child(5) {
    width: 12% !important;
}

.sim-cards-page .sim-table--essential th:nth-child(6),
.sim-cards-page .sim-table--essential td:nth-child(6),
.sim-cards-page .sim-table--essential th:nth-child(7),
.sim-cards-page .sim-table--essential td:nth-child(7) {
    width: 9% !important;
}

.sim-cards-page .sim-table--essential th:nth-child(8),
.sim-cards-page .sim-table--essential td:nth-child(8) {
    width: 64px !important;
    text-align: center !important;
}

.sim-cards-page .sim-table--essential tbody tr.sim-row--selected td {
    background: #eef5ff !important;
}

.sim-cards-page .sim-table--essential tbody tr.sim-row--selected td:first-child {
    box-shadow: inset 3px 0 0 var(--chips-blue);
}

.sim-cards-page .sim-name-stack strong {
    color: #10253f !important;
    font-size: 0.76rem !important;
    line-height: 1.25;
}

.sim-cards-page .sim-name-stack span {
    display: none !important;
}

.sim-cards-page .status-badge,
.sim-cards-page .connectivity {
    padding: 4px 9px !important;
    border-radius: 7px !important;
    font-size: 0.68rem !important;
}

.sim-cards-page .connectivity {
    gap: 0 !important;
    background: #f0f4f8;
}

.sim-cards-page .connectivity i {
    display: none !important;
}

.sim-cards-page .connectivity--online {
    background: #dcf8e8 !important;
    color: #0b9254 !important;
}

.sim-cards-page .connectivity--offline {
    background: #ffe6e8 !important;
    color: var(--chips-red) !important;
}

.sim-cards-page .connectivity--attached {
    background: #e7f1ff !important;
    color: #126dff !important;
}

.sim-cards-page .connectivity--blocked {
    background: #ffe6e8 !important;
    color: #d31320 !important;
}

.sim-cards-page .ops-chip--blue {
    background: transparent !important;
    color: #2e4965 !important;
    font-weight: 700 !important;
}

.sim-cards-page .usage-value,
.sim-cards-page .ops-money {
    color: #10253f !important;
    font-size: 0.76rem !important;
    font-weight: 800 !important;
}

.sim-cards-page .sim-actions-column .mud-icon-button {
    width: 30px !important;
    height: 30px !important;
    border: 1px solid #dbe7f4 !important;
    border-radius: 8px !important;
    color: #18324d !important;
    background: #fff !important;
}

.sim-cards-page .sim-detail-header {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 18px 18px 10px !important;
}

.sim-cards-page .sim-detail-header h6 {
    color: #10253f !important;
    font-size: 1rem !important;
    font-weight: 850 !important;
}

.sim-cards-page .sim-detail-header-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.sim-cards-page .sim-detail-actions {
    align-items: flex-start !important;
}

.sim-cards-page .sim-detail-tabs .mud-tabs-toolbar {
    min-height: 44px;
    border-bottom: 1px solid #dfe8f3;
}

.sim-cards-page .sim-detail-tabs .mud-tab {
    min-height: 44px;
    min-width: 72px;
    color: #425a76;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: none;
}

.sim-cards-page .sim-detail-scroll {
    gap: 10px !important;
    padding: 14px 16px 18px !important;
}

.sim-cards-page .sim-detail-section {
    border-radius: 10px !important;
    box-shadow: none !important;
}

.sim-cards-page .sim-detail-section h4 {
    padding: 11px 13px 4px !important;
    font-size: 0.8rem !important;
}

.sim-cards-page .sim-detail-section dl div {
    grid-template-columns: minmax(88px, 0.42fr) minmax(0, 1fr) !important;
    padding: 6px 0 !important;
}

.sim-cards-page .sim-metrics-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.58fr) minmax(0, 0.42fr);
    border-top: 1px solid #eef3f8;
}

.sim-cards-page .sim-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-right: 1px solid #eef3f8;
}

.sim-cards-page .sim-metrics-grid > div {
    min-height: 58px;
    padding: 10px 12px;
    border-right: 1px solid #eef3f8;
    border-bottom: 1px solid #eef3f8;
}

.sim-cards-page .sim-metrics-grid > div:nth-child(3n),
.sim-cards-page .sim-metrics-grid > div:last-child {
    border-right: 0;
}

.sim-cards-page .sim-metrics-grid small,
.sim-cards-page .sim-metrics-chart small {
    display: block;
    margin-bottom: 6px;
    color: #6f8095;
    font-size: 0.66rem;
    font-weight: 800;
}

.sim-cards-page .sim-metrics-grid strong {
    color: #10253f;
    font-size: 0.82rem;
}

.sim-cards-page .sim-metric-wide {
    grid-column: span 3;
}

.sim-cards-page .sim-metrics-chart {
    min-width: 0;
    padding: 10px 12px;
}

.sim-card-action-popover .mud-list {
    min-width: 226px;
    padding: 8px;
    border: 1px solid #dfe8f3;
    border-radius: 12px;
    box-shadow: 0 18px 50px rgba(15, 35, 58, 0.18);
}

.sim-card-action-popover .mud-list-item {
    min-height: 34px;
    border-radius: 8px;
    color: #24415f;
    font-size: 0.78rem;
}

.sim-card-action-popover .mud-list-item:hover {
    background: #eef5ff;
}

.sim-card-action-popover .sim-action-danger,
.sim-card-action-popover .sim-action-danger .mud-icon-root {
    color: var(--chips-red) !important;
}

@media (max-width: 1280px) {
    .sim-cards-page .sim-workspace {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .sim-cards-page .sim-list-pane {
        border-right: 0 !important;
        border-bottom: 1px solid #dfe8f3 !important;
    }
}

@media (max-width: 760px) {
    .sim-cards-page .summary-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .sim-cards-page .sim-metrics-layout {
        grid-template-columns: 1fr;
    }

    .sim-cards-page .sim-metrics-grid {
        border-right: 0;
    }
}

/* Chips designer composition: left report surface + independent right detail panel */
.sim-cards-page {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(400px, 430px) !important;
    grid-template-areas:
        "heading heading"
        "summary detail"
        "toolbar detail"
        "list detail" !important;
    gap: 14px !important;
    align-items: start !important;
}

.sim-cards-page .ops-heading {
    grid-area: heading;
}

.sim-cards-page .summary-strip {
    grid-area: summary;
}

.sim-cards-page .table-panel,
.sim-cards-page .sim-workspace {
    display: contents !important;
}

.sim-cards-page .toolbar {
    grid-area: toolbar;
    display: grid !important;
    grid-template-columns: minmax(220px, 250px) minmax(0, 1fr) auto !important;
    gap: 10px !important;
    align-items: center !important;
    border: 1px solid #dfe9f4 !important;
    border-bottom: 0 !important;
    border-radius: 16px 16px 0 0 !important;
    background: #fff !important;
}

.sim-cards-page .ops-filters--primary {
    flex-wrap: nowrap !important;
    gap: 8px !important;
}

.sim-cards-page .filter-select {
    width: 104px !important;
    flex: 0 0 104px !important;
}

.sim-cards-page .ops-search {
    width: 100% !important;
}

.sim-cards-page .ops-advanced-filters {
    position: relative !important;
    width: 90px !important;
    min-width: 90px !important;
    justify-self: end !important;
}

.sim-cards-page .ops-advanced-filters summary {
    width: 90px !important;
    justify-content: center;
    padding-inline: 10px !important;
}

.sim-cards-page .ops-advanced-filters:not([open]) .ops-filters--advanced {
    display: none !important;
}

.sim-cards-page .ops-advanced-filters[open] {
    width: 100% !important;
    min-width: 100% !important;
}

.sim-cards-page .sim-list-pane {
    grid-area: list;
    height: calc(100vh - 378px);
    min-height: 500px;
    max-height: 720px;
    border: 1px solid #dfe9f4 !important;
    border-top: 0 !important;
    border-radius: 0 0 16px 16px !important;
    background: #fff;
    box-shadow: 0 16px 44px rgba(15, 35, 58, 0.055);
}

.sim-cards-page .sim-detail-panel {
    grid-area: detail;
    height: calc(100vh - 126px);
    min-height: 700px;
    max-height: 880px;
    border: 1px solid #dfe9f4;
    border-radius: 16px;
    box-shadow: 0 16px 44px rgba(15, 35, 58, 0.055);
}

.sim-cards-page .sim-table,
.sim-cards-page .sim-table .mud-table-container {
    height: 100% !important;
}

.sim-cards-page .sim-table--essential th:nth-child(1),
.sim-cards-page .sim-table--essential td:nth-child(1) {
    width: 19% !important;
}

.sim-cards-page .sim-table--essential th:nth-child(2),
.sim-cards-page .sim-table--essential td:nth-child(2) {
    width: 20% !important;
}

.sim-cards-page .sim-table--essential th:nth-child(3),
.sim-cards-page .sim-table--essential td:nth-child(3) {
    width: 12% !important;
}

.sim-cards-page .sim-table--essential th:nth-child(4),
.sim-cards-page .sim-table--essential td:nth-child(4) {
    width: 10% !important;
}

.sim-cards-page .sim-table--essential th:nth-child(5),
.sim-cards-page .sim-table--essential td:nth-child(5) {
    width: 12% !important;
}

.sim-cards-page .sim-table--essential th:nth-child(6),
.sim-cards-page .sim-table--essential td:nth-child(6),
.sim-cards-page .sim-table--essential th:nth-child(7),
.sim-cards-page .sim-table--essential td:nth-child(7) {
    width: 9% !important;
}

.sim-cards-page .sim-table--essential th:nth-child(8),
.sim-cards-page .sim-table--essential td:nth-child(8) {
    width: 9% !important;
}

.sim-cards-page .sim-table--essential thead th,
.sim-cards-page .sim-table--essential tbody td {
    padding-inline: 12px !important;
}

.sim-cards-page .sim-table--essential thead th.sim-actions-column,
.sim-cards-page .sim-table--essential tbody td.sim-actions-column {
    min-width: 68px !important;
    text-align: center !important;
}

.sim-cards-page .sim-table--essential th:nth-child(6),
.sim-cards-page .sim-table--essential td:nth-child(6),
.sim-cards-page .sim-table--essential th:nth-child(7),
.sim-cards-page .sim-table--essential td:nth-child(7),
.sim-cards-page .sim-table--essential th:nth-child(8),
.sim-cards-page .sim-table--essential td:nth-child(8) {
    padding-inline: 8px !important;
}

.sim-cards-page .sim-table--essential td:nth-child(7) {
    font-size: 0.74rem !important;
}

.sim-cards-page .sim-detail-tabs .mud-tab {
    min-width: 68px !important;
    padding: 0 8px !important;
    font-size: 0.68rem !important;
}

.sim-cards-page .sim-detail-tabs .mud-tabs-scroll-button {
    display: none !important;
}

.sim-cards-page .sim-detail-header > div:first-child {
    min-width: 0;
    flex: 1 1 auto;
}

.sim-cards-page .sim-detail-actions {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 4px !important;
    flex: 0 0 auto;
    margin-left: auto;
}

.sim-cards-page .sim-detail-actions .mud-icon-button,
.sim-cards-page .sim-actions-column .mud-icon-button {
    width: 32px !important;
    height: 32px !important;
    padding: 4px !important;
}

@media (max-width: 1280px) {
    .sim-cards-page {
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-areas:
            "heading"
            "summary"
            "toolbar"
            "list"
            "detail" !important;
    }

    .sim-cards-page .sim-detail-panel {
        height: auto;
        min-height: 0;
        max-height: none;
    }
}
