/* ===============================
   GLOBAL RESET
================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: "Inter", "Segoe UI", sans-serif;
    background: #e6e6e6;
    color: #2c2c2c;
}

/* ===============================
   APP LAYOUT
================================ */
.app-container {
    display: flex;
    min-height: 100vh;
    padding: 16px;
}

/* ===============================
   SIDEBAR CONTAINER
================================ */
.sidebar {
    width: 280px;
    background: #f2f2f2;
    border-radius: 24px;
    padding: 20px 0;
}

/* ===============================
   BRAND
================================ */
.sidebar-header {
    padding: 0 24px 24px;
    font-size: 18px;
    font-weight: 600;
}

/* ===============================
   MENU BASE
================================ */
.sidebar-menu {
    padding: 0 12px;
}

.menu-item {
    margin-bottom: 6px;
}

/* ===============================
   MAIN ITEMS
================================ */
.menu-item > a,
.menu-item > span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 14px;
    text-decoration: none;
    color: #4a4a4a;
    cursor: pointer;
    font-weight: 500;
}

.menu-item > a:hover,
.menu-item > span:hover {
    background: #e8e8e8;
}

/* ===============================
   SUBMENU CARD
================================ */
.submenu {
    position: relative;
    margin-left: 22px;
    margin-top: 6px;
    padding: 10px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    display: none;
}

/* TREE CONNECTOR */
.submenu::before {
    content: "";
    position: absolute;
    left: -18px;
    top: 18px;
    width: 18px;
    height: calc(100% - 36px);
    border-left: 2px solid #d6d6d6;
    border-bottom-left-radius: 12px;
}

/* ===============================
   SUBMENU ITEMS
================================ */
.submenu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 12px;
    text-decoration: none;
    color: #9a9a9a;
    font-size: 14px;
    margin-bottom: 4px;
}

.submenu a:hover {
    background: #f3f3f3;
}

/* ACTIVE SUB ITEM */
.submenu a.active {
    background: #ffffff;
    color: #000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    font-weight: 500;
}

/* ===============================
   BADGES
================================ */
.badge {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 600;
}

.badge.orange {
    background: #ffccaa;
    color: #000;
}

.badge.green {
    background: #bdf0d0;
    color: #000;
}

/* ===============================
   MAIN CONTENT
================================ */
.main-content {
    flex: 1;
    background: #ffffff;
    margin-left: 20px;
    border-radius: 24px;
    padding: 28px;
}

/* ===============================
   TYPOGRAPHY
================================ */
h1 {
    font-size: 24px;
    margin-bottom: 10px;
}
/* ===============================
   TABLE UI (MSO LIST)
================================ */
.card {
    background: #fff;
    border-radius: 18px;
    padding: 20px;
}

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

.table th {
    text-align: left;
    padding: 12px;
    background: #f5f5f5;
    font-weight: 600;
}

.table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.input {
    width: 320px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #ddd;
}

.btn {
    padding: 8px 14px;
    border-radius: 10px;
    background: #e5e7eb;
    text-decoration: none;
    color: #111;
    font-size: 14px;
}

.btn.primary {
    background: #111;
    color: #fff;
}

.link {
    color: #2563eb;
    cursor: pointer;
    text-decoration: none;
}

.link.danger {
    color: #dc2626;
}

.badge {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.badge.green {
    background: #bbf7d0;
}

.badge.orange {
    background: #fed7aa;
}
/* ================================
   LIST PAGE (REFERENCE STYLE)
================================ */
.list-page {
    background: #fff;
    border-radius: 22px;
    padding: 24px;
}

/* HEADER */
.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.list-header h1 {
    font-size: 22px;
    font-weight: 600;
}

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

.btn {
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
}

.btn.light {
    background: #e5e7eb;
    color: #111;
}

.btn.dark {
    background: #111;
    color: #fff;
}

/* SEARCH */
.list-search {
    margin-bottom: 16px;
}

.list-search input {
    width: 320px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    font-size: 14px;
}

/* TABLE */
.table-wrapper {
    border-radius: 14px;
    overflow: hidden;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table thead {
    background: #f5f5f5;
}

.data-table th,
.data-table td {
    padding: 12px 14px;
    text-align: left;
}

.data-table tbody tr {
    border-bottom: 1px solid #eee;
}

.data-table th {
    font-weight: 600;
}

.right {
    text-align: right;
}

/* STATUS */
.status {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
}

.status.active {
    background: #bbf7d0;
}

.status.unknown {
    background: #fed7aa;
}

/* LINKS */
.link {
    color: #2563eb;
    cursor: pointer;
    text-decoration: none;
}

.link.danger {
    color: #dc2626;
}
/* ======================================
   MSO ADD / EDIT FORM — FINAL FIX
====================================== */

/* Ensure form is inside card properly */
.list-page form {
    margin-top: 10px;
}

/* Two-column grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    max-width: 900px;
}

/* Label + input block */
.form-group {
    display: flex;
    flex-direction: column;
}

/* Labels */
.form-group label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #111827;
}

/* Inputs */
.form-group input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #fff;
    font-size: 14px;
}

/* Focus */
.form-group input:focus {
    outline: none;
    border-color: #111;
}

/* Action buttons row */
.form-actions {
    grid-column: span 2;
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

/* Buttons consistency */
.form-actions .btn {
    padding: 10px 18px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 500;
}
.link.disabled {
    color: #9ca3af;
    cursor: not-allowed;
    text-decoration: none;
}
/* =====================================
   LIST PAGE WIDTH LOCK (GLOBAL)
===================================== */
.list-page {
    background: #fff;
    border-radius: 22px;
    padding: 24px;
    max-width: 100%;
}
/* Action column */
.data-table td.right {
    white-space: nowrap;
}

/* Prevent page stretching */
.main-content {
    overflow-x: hidden;
}
.list-header {
    flex-wrap: wrap;
    gap: 12px;
}

.list-search input {
    max-width: 360px;
}
/* =====================================
   FIXED LIST WITH GLOBAL ACTION BAR
===================================== */

.fixed-list {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 120px);
}

/* TOOLBAR */
.list-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e5e7eb;
}

.toolbar-left {
    display: flex;
    gap: 10px;
}

.toolbar-right input {
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    width: 320px;
}

/* TABLE SCROLL */
.table-scroll {
    overflow: auto;
    flex: 1;
    margin-top: 14px;
}

/* TABLE WIDTH */
.data-table {
    min-width: 1600px;
}

/* CHECKBOX */
.row-check {
    width: 16px;
    height: 16px;
}

/* DANGER BUTTON */
.btn.danger {
    color: #b91c1c;
}
/* =====================================
   TOOLBAR WITH TITLE + ACTIONS + SEARCH
===================================== */

.list-toolbar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e5e7eb;
}

.toolbar-title h1 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

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

.toolbar-search input {
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    width: 320px;
}
/* =====================================
   TOOLBAR VISUAL SEPARATION (ROUNDED)
===================================== */

.list-toolbar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;

    /* NEW VISUAL STYLE */
    background: #f9fafb;           /* soft contrast */
    padding: 16px 18px;
    border-radius: 18px;           /* rounded, not square */
    border: 1px solid #e5e7eb;     /* very subtle edge */

    /* spacing from table */
    margin-bottom: 14px;
}

/* Heading refinement */
.toolbar-title h1 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: #111827;
}
/* =====================================
   UNIFIED FORM FIELD STYLE
===================================== */

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: #fff;
    font-size: 14px;
    font-family: inherit;
    color: #111827;
}

/* Remove native select styling differences */
.form-group select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #6b7280 50%),
        linear-gradient(135deg, #6b7280 50%, transparent 50%);
    background-position:
        calc(100% - 18px) calc(50% - 3px),
        calc(100% - 12px) calc(50% - 3px);
    background-size: 6px 6px;
    background-repeat: no-repeat;
}

/* Readonly fields (system-generated) */
.form-group input[readonly] {
    background: #f9fafb;
    color: #6b7280;
    cursor: not-allowed;
}

/* Textarea */
.form-group textarea {
    resize: vertical;
}
/* ================================
   CHANNEL SELECTION TREE
================================ */

.channel-box {
    grid-column: span 2;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 16px;
}

.channel-box h3 {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 600;
}

.channel-tree {
    max-height: 300px;
    overflow: auto;
}

.broadcaster-group {
    margin-bottom: 12px;
}

.broadcaster-title {
    font-weight: 600;
    margin-bottom: 6px;
}

.channel-item {
    padding-left: 16px;
    font-size: 13px;
    color: #374151;
}
/* ================================
   BROADCASTER & CHANNEL UI
================================ */

.broadcaster-block {
    margin-bottom: 14px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.broadcaster-header {
    background: #eef2ff;
    padding: 12px 14px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.select-all-btn {
    background: #fff;
    border: 1px solid #c7d2fe;
    border-radius: 10px;
    padding: 4px 10px;
    font-size: 12px;
    cursor: pointer;
}

.channel-grid {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
    padding: 12px;
    background: #f9fafb;
}

.channel-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 13px;
    display: flex;
    gap: 8px;
    align-items: center;
}
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
}
.modal.hidden { display: none; }

.modal-card {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    width: 420px;
}

.status.active {
    background: #dcfce7;
    color: #166534;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
}
.status.inactive {
    background: #fee2e2;
    color: #991b1b;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
}
.rounded-header {
    background: linear-gradient(135deg,#f1f5f9,#e2e8f0);
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 14px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 16px;
}

.muted {
    color:#6b7280;
    font-size:13px;
}
.duration-box {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.duration-pill {
    background:#f1f5f9;
    padding:10px 14px;
    border-radius:12px;
    cursor:pointer;
    font-size:14px;
}

.duration-pill input {
    margin-right:6px;
}

.summary-grid {
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:16px;
}

.summary-card {
    background:#f8fafc;
    padding:16px;
    border-radius:12px;
}

.summary-card label {
    font-size:12px;
    color:#6b7280;
}
/* ===========================
   FORM LAYOUT (GLOBAL)
=========================== */

.form-page {
    max-width: 1100px;
    margin: 0 auto;
}

.form-header {
    background: #ffffff;
    padding: 16px 20px;
    border-radius: 14px;
    margin-bottom: 18px;
    box-shadow: 0 1px 2px rgba(0,0,0,.06);
}

.form-header h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.form-card {
    background: #ffffff;
    padding: 24px;
    border-radius: 18px;
    box-shadow: 0 2px 6px rgba(0,0,0,.06);
}

.form-section {
    margin-bottom: 26px;
}

.form-section h3 {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 600;
    color: #374151;
}

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

.form-grid label {
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
    color: #4b5563;
}

.form-grid input,
.form-grid select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    outline: none;
}

.form-grid input:focus,
.form-grid select:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99,102,241,.15);
}

/* STATUS SELECT */
.form-section select {
    max-width: 260px;
}

/* ACTION BUTTONS */
.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 10px;
}

.form-actions .btn {
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 14px;
    cursor: pointer;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}
/* ================================
   STANDARD FORM LAYOUT (GLOBAL)
================================ */

.form-page {
    padding: 24px;
}

.form-header {
    background: #f6f7f9;
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 24px;
}

.form-header h1 {
    margin: 0;
    font-size: 20px;
}

.form-header p {
    margin: 4px 0 0;
    color: #666;
}

.form-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 13px;
    margin-bottom: 6px;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #000;
}

.form-group.checkbox {
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.req {
    color: red;
}

.btn {
    padding: 10px 18px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.btn.dark {
    background: #000;
    color: #fff;
}

.btn.light {
    background: #e5e7eb;
    color: #000;
}

.form-error {
    margin-top: 16px;
    color: red;
}
.detail-page {
    display: flex;
    height: calc(100vh - 60px);
}

.detail-sidebar {
    width: 260px;
    background: #111827;
    color: #fff;
    display: flex;
    flex-direction: column;
}

.detail-header {
    padding: 16px;
    font-weight: bold;
    border-bottom: 1px solid #333;
}

.detail-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.detail-menu li {
    padding: 12px 16px;
    cursor: pointer;
    border-left: 4px solid transparent;
}

.detail-menu li.active,
.detail-menu li:hover {
    background: #1f2937;
    border-left-color: #3b82f6;
}

.detail-danger {
    margin-top: auto;
    padding: 16px;
}

.detail-back {
    padding: 12px;
    text-align: center;
}

.detail-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.stat-card {
    background: #fff;
    padding: 20px;
    border-radius: 6px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
/* ======================================================
   SUBSCRIBER DETAIL LAYOUT
====================================================== */

.detail-layout {
    display: flex;
    gap: 20px;
    padding: 20px;
}

/* LEFT SUB SIDEBAR */
.detail-sidebar {
    width: 240px;
    min-width: 240px;
    background: #ffffff;
    color: #111827;
    border-radius: 14px;
    padding: 16px;
    height: fit-content;
    border: 1px solid #e5e7eb;
}

.detail-sidebar h3 {
    margin: 0 0 12px;
    font-size: 18px;
}

.detail-sidebar a {
    display: block;
    padding: 8px 10px;
    margin-bottom: 6px;
    color: #374151;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
}

.detail-sidebar a.active,
.detail-sidebar a:hover {
    background: #f1f5f9;
    color: #111827;
}

.detail-sidebar .btn {
    width: 100%;
    margin-top: 10px;
}

.detail-sidebar .btn.full {
    width: 100%;
}

.detail-sidebar .btn.danger {
    background: #dc2626;
    color: #fff;
}

.detail-sidebar .back-link {
    display: block;
    margin-top: 14px;
    color: #93c5fd;
    text-decoration: none;
    font-size: 13px;
}

/* RIGHT CONTENT */
.detail-content {
    flex: 1;
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    min-height: 400px;
}

/* ======================================================
   OVERVIEW CARDS
====================================================== */

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

.card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #e5e7eb;
}

.card h4 {
    margin: 0 0 10px;
    font-size: 15px;
    color: #111827;
}

.card p {
    margin: 6px 0;
    font-size: 14px;
    color: #374151;
}

/* STATUS TAGS */
.status {
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.status.active {
    background: #dcfce7;
    color: #166534;
}

.status.grace {
    background: #fef9c3;
    color: #854d0e;
}

.status.expired,
.status.blocked {
    background: #fee2e2;
    color: #991ů;
}
.mini-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.mini-table th,
.mini-table td {
    border-bottom: 1px solid #eee;
    padding: 6px;
    text-align: left;
}
/* ===============================
   SUBSCRIBER DETAIL LAYOUT
================================ */

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.card {
    background: #fff;
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.card h3 {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 600;
}

/* Label : Value rows */
.kv {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
}

.kv span {
    color: #666;
}

.kv strong {
    font-weight: 600;
}

/* Status badge */
.badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-success { background: #e7f6ec; color: #0f7a3a; }
.badge-danger  { background: #fde8e8; color: #b42318; }
.badge-warning { background: #fff4e5; color: #b45309; }

/* KPI cards */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.kpi {
    text-align: center;
    padding: 18px;
}

.kpi h4 {
    margin: 0;
    font-size: 14px;
    color: #555;
}

.kpi .num {
    margin-top: 8px;
    font-size: 28px;
    font-weight: 700;
}

/* Buttons */
.btn-row {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.btn-primary {
    background: #000;
    color: #fff;
    padding: 8px 14px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
}

.btn-secondary {
    background: #f1f1f1;
    padding: 8px 14px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
}
/* ===============================
   FORCE SUBSCRIBER DETAIL UI
================================ */

.page-wrapper * {
    box-sizing: border-box;
}

/* GRID FIX */
.detail-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 24px !important;
    margin-bottom: 24px !important;
}

/* CARD FIX */
.card {
    background: #ffffff !important;
    border-radius: 16px !important;
    padding: 20px 22px !important;
    box-shadow: 0 8px 22px rgba(0,0,0,0.08) !important;
    border: 1px solid #e5e7eb !important;
}

/* CARD TITLE */
.card h3 {
    margin-bottom: 14px !important;
    font-size: 17px !important;
    font-weight: 700 !important;
}

/* LABEL : VALUE FIX */
.kv {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 6px 0 !important;
    font-size: 14px !important;
}

.kv span {
    color: #6b7280 !important;
}

.kv strong {
    font-weight: 600 !important;
    color: #111827 !important;
}

/* BADGES */
.badge {
    padding: 4px 12px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
}

.badge-success {
    background: #e7f6ec !important;
    color: #047857 !important;
}

/* KPI GRID */
.kpi-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
    margin-top: 10px !important;
}

.kpi {
    text-align: center !important;
}

.kpi h4 {
    font-size: 14px !important;
    color: #6b7280 !important;
}

.kpi .num {
    font-size: 30px !important;
    font-weight: 800 !important;
    margin-top: 6px !important;
}

/* BUTTONS */
.btn-row {
    display: flex !important;
    gap: 12px !important;
    margin-top: 14px !important;
}

.btn-primary {
    background: #000 !important;
    color: #fff !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 12px !important;
    cursor: pointer !important;
}

.btn-secondary {
    background: #f3f4f6 !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 12px !important;
    cursor: pointer !important;
}
/* ================================
   MSO PACKAGES TABLE FIX
================================ */

/* Make table stable */
.table,
table {
    width: 100%;
    border-collapse: collapse;
}

/* Fix actions column width */
.table td:last-child,
.table th:last-child {
    width: 280px;
    min-width: 260px;
}

/* Actions container */
.actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

/* Action buttons */
.actions .btn {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 8px;
    white-space: nowrap;
}

/* Black buttons (Channels / Edit LCN) */
.actions .btn-dark,
.actions .btn-black {
    background: #000;
    color: #fff;
}

/* Grey buttons (Durations) */
.actions .btn-light {
    background: #e5e7eb;
    color: #111;
}

/* Prevent overlap */
.actions button {
    flex-shrink: 0;
}
