/* Pixsite Dashboard – isolated from theme (!important) */

html.itsl-dashboard-body,
body.itsl-dashboard-body {
    margin: 0 !important;
    padding: 0 !important;
    background: #111318 !important;
    color: #ffffff !important;
    font-family: 'Kalameh', Tahoma, Arial, sans-serif !important;
    min-height: 100vh !important;
    overflow-x: hidden !important;
}

body.itsl-dashboard-body .site,
body.itsl-dashboard-body #page,
body.itsl-dashboard-body #content,
body.itsl-dashboard-body .content-area,
body.itsl-dashboard-body .site-content,
body.itsl-dashboard-body .entry-content,
body.itsl-dashboard-body article {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

.itsl-dash {
    display: flex !important;
    min-height: 100vh !important;
    direction: rtl !important;
    font-family: 'Kalameh', Tahoma, Arial, sans-serif !important;
    background: #0d0f14 !important;
    color: #ffffff !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    border: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.itsl-dash *,
.itsl-dash *::before,
.itsl-dash *::after {
    box-sizing: border-box !important;
}

.itsl-dash-sidebar {
    width: 260px !important;
    flex-shrink: 0 !important;
    background: #0d0f14 !important;
    border-left: 1px solid rgba(255,255,255,0.06) !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 1.25rem 0 !important;
    margin: 0 !important;
}

.itsl-dash-brand {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    padding: 0 1.25rem 1.25rem !important;
    border-bottom: 1px solid rgba(255,255,255,0.06) !important;
    margin: 0 0 0.75rem 0 !important;
}

.itsl-dash-logo {
    width: 40px !important;
    height: 40px !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, #8BB82A, #A6D936) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 800 !important;
    font-size: 1.1rem !important;
    color: #111318 !important;
    flex-shrink: 0 !important;
}

.itsl-dash-brand strong {
    display: block !important;
    font-size: 0.95rem !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    margin: 0 !important;
    padding: 0 !important;
}
.itsl-dash-brand small {
    color: #64748b !important;
    font-size: 0.75rem !important;
    display: block !important;
}

.itsl-dash-nav {
    flex: 1 !important;
    padding: 0.5rem 0.75rem !important;
    margin: 0 !important;
    list-style: none !important;
}

.itsl-dash-nav-item {
    display: flex !important;
    align-items: center !important;
    gap: 0.65rem !important;
    padding: 0.75rem 0.95rem !important;
    border-radius: 10px !important;
    color: rgba(255,255,255,0.75) !important;
    text-decoration: none !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    margin-bottom: 0.3rem !important;
    transition: background 0.2s, color 0.2s !important;
    background: transparent !important;
    border: none !important;
    line-height: 1.4 !important;
}

.itsl-dash-nav-item:hover {
    background: rgba(255,255,255,0.06) !important;
    color: #ffffff !important;
}

.itsl-dash-nav-item.active {
    background: rgba(166, 217, 54, 0.18) !important;
    color: #ffffff !important;
}

.itsl-dash-nav-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 22px !important;
    height: 22px !important;
    flex-shrink: 0 !important;
    color: #ffffff !important;
}

.itsl-dash-nav-icon svg {
    width: 20px !important;
    height: 20px !important;
    stroke: #ffffff !important;
    fill: none !important;
    display: block !important;
}

.itsl-dash-nav-item.active .itsl-dash-nav-icon svg {
    stroke: #C5E86A !important;
}

.itsl-dash-user {
    padding: 1rem 1.25rem 0 !important;
    border-top: 1px solid rgba(255,255,255,0.06) !important;
    font-size: 0.85rem !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    color: #94a3b8 !important;
    margin: 0 !important;
}
.itsl-dash-user a {
    color: #C5E86A !important;
    text-decoration: none !important;
    font-size: 0.8rem !important;
}

.itsl-dash-main {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
    background: #0d0f14 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.itsl-dash-header {
    padding: 1.25rem 1.75rem !important;
    border-bottom: 1px solid rgba(255,255,255,0.06) !important;
    background: #0d0f14 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1rem !important;
    flex-wrap: wrap !important;
}
.itsl-dash-header h1 {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    line-height: 1.3 !important;
    border: none !important;
    background: none !important;
}
.itsl-dash-header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.itsl-dash-body {
    padding: 1.5rem 1.75rem !important;
    flex: 1 !important;
    background: #0d0f14 !important;
    margin: 0 !important;
}

.itsl-dash-cards {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1rem !important;
    margin-bottom: 1.5rem !important;
}

.itsl-dash-stat {
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 14px !important;
    padding: 1.25rem !important;
    text-align: center !important;
    margin: 0 !important;
}

.itsl-dash-stat-num {
    display: block !important;
    font-size: 1.8rem !important;
    font-weight: 800 !important;
    background: linear-gradient(135deg, #C5E86A, #C5E86A) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    margin: 0 !important;
    padding: 0 !important;
}

.itsl-dash-stat-label {
    font-size: 0.85rem !important;
    color: #94a3b8 !important;
    margin-top: 0.3rem !important;
    display: block !important;
}

.itsl-dash-panel {
    background: rgba(255,255,255,0.03) !important;
    border: 1px solid rgba(255,255,255,0.07) !important;
    border-radius: 14px !important;
    padding: 1.35rem 1.5rem !important;
    margin: 0 0 1rem 0 !important;
}

.itsl-dash-panel h3 {
    margin: 0 0 1rem 0 !important;
    padding: 0 !important;
    font-size: 1.05rem !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border: none !important;
    background: none !important;
}

.itsl-dash-panel-head {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 1rem !important;
}
.itsl-dash-panel-head h3 { margin: 0 !important; }

.itsl-dash-quick {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.6rem !important;
    margin-bottom: 1rem !important;
}

.itsl-dash-hint {
    font-size: 0.85rem !important;
    color: #64748b !important;
    margin: 0.75rem 0 0 0 !important;
    padding: 0 !important;
}
.itsl-dash-hint code {
    background: rgba(255,255,255,0.06) !important;
    padding: 0.15rem 0.4rem !important;
    border-radius: 4px !important;
    font-size: 0.8rem !important;
    color: #94a3b8 !important;
}

.itsl-dash-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    padding: 0.6rem 1.2rem !important;
    background: linear-gradient(135deg, #8BB82A, #A6D936) !important;
    color: #000000 !important;
    border: none !important;
    border-radius: 10px !important;
    font-family: 'Kalameh', Tahoma, Arial, sans-serif !important;
    font-weight: 600 !important;
    font-size: 0.88rem !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
    line-height: 1.4 !important;
    box-shadow: none !important;
}
.itsl-dash-btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 18px rgba(139,184,42,0.4) !important;
    color: #000000 !important;
    background: linear-gradient(135deg, #8BB82A, #A6D936) !important;
}

.itsl-dash-btn-outline {
    background: transparent !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    color: #e2e8f0 !important;
}
.itsl-dash-btn-outline:hover {
    border-color: #A6D936 !important;
    color: #ffffff !important;
    box-shadow: none !important;
    background: rgba(166,217,54,0.1) !important;
}

.itsl-dash-btn-sm {
    display: inline-flex !important;
    padding: 0.35rem 0.75rem !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    background: rgba(255,255,255,0.05) !important;
    color: #cbd5e1 !important;
    cursor: pointer !important;
    font-family: 'Kalameh', Tahoma, Arial, sans-serif !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
}
.itsl-dash-btn-sm:hover {
    background: rgba(166,217,54,0.15) !important;
    color: #C5E86A !important;
}

.itsl-dash-danger {
    color: #f87171 !important;
    border-color: rgba(248,113,113,0.3) !important;
}
.itsl-dash-danger:hover {
    background: rgba(248,113,113,0.12) !important;
    color: #f87171 !important;
}

.itsl-dash-table {
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: 0.9rem !important;
    margin: 0 !important;
    background: transparent !important;
}
.itsl-dash-table th {
    text-align: right !important;
    padding: 0.65rem 0.75rem !important;
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
    color: #94a3b8 !important;
    font-weight: 600 !important;
    font-size: 0.8rem !important;
    background: transparent !important;
}
.itsl-dash-table td {
    padding: 0.75rem !important;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
    vertical-align: middle !important;
    color: #e2e8f0 !important;
    background: transparent !important;
}

.itsl-dash-input {
    width: 100% !important;
    padding: 0.55rem 0.75rem !important;
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    font-family: 'Kalameh', Tahoma, Arial, sans-serif !important;
    font-size: 0.9rem !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    box-shadow: none !important;
}
.itsl-dash-input:focus {
    outline: none !important;
    border-color: #A6D936 !important;
    box-shadow: 0 0 0 3px rgba(166,217,54,0.15) !important;
}
select.itsl-dash-input,
.itsl-dash select.itsl-dash-input,
.itsl-dash-form select {
    background: #0d0f14 !important;
    background-color: #0a0a0a !important;
    color: #ffffff !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    color-scheme: dark !important;
}
select.itsl-dash-input option,
.itsl-dash-form select option {
    background: #0d0f14 !important;
    color: #ffffff !important;
}

.itsl-dash-form label {
    display: block !important;
    margin: 0.9rem 0 0.35rem 0 !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: #94a3b8 !important;
}

.itsl-dash-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1rem !important;
}

.itsl-dash-check {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin-top: 1rem !important;
    color: #e2e8f0 !important;
    cursor: pointer !important;
    font-weight: 500 !important;
}

.itsl-dash-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.35rem !important;
    align-items: center !important;
}

.itsl-logo-preview {
    margin-bottom: 6px !important;
    min-height: 36px !important;
    display: flex !important;
    align-items: center !important;
}
.itsl-logo-preview img {
    max-width: 72px !important;
    max-height: 36px !important;
    object-fit: contain !important;
    background: #111 !important;
    padding: 4px !important;
    border-radius: 4px !important;
}

.itsl-dash-thumb {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    flex-wrap: wrap !important;
}
.itsl-thumb-preview {
    width: 120px !important;
    aspect-ratio: 4/3 !important;
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.itsl-thumb-preview img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.itsl-muted {
    color: #64748b !important;
    font-size: 0.85rem !important;
}

.itsl-dash-notice {
    position: sticky;
    top: 0;
    z-index: 20;
    margin: 0 0 1rem !important;
    padding: 0.85rem 1.15rem !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 0.92rem !important;
    border: 1px solid transparent;
}
.itsl-dash-notice-success {
    background: rgba(16,185,129,.15) !important;
    border-color: rgba(52,211,153,.45) !important;
    color: #6ee7b7 !important;
}
.itsl-dash-notice-error {
    background: rgba(239,68,68,.15) !important;
    border-color: rgba(248,113,113,.45) !important;
    color: #fca5a5 !important;
}

.itsl-dash-login {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: 100vh !important;
    padding: 3rem 1rem !important;
    direction: rtl !important;
    font-family: 'Kalameh', Tahoma, Arial, sans-serif !important;
    background: #111318 !important;
    margin: 0 !important;
}
.itsl-dash-login-card {
    background: #0f0f1e !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 16px !important;
    padding: 2rem !important;
    max-width: 400px !important;
    width: 100% !important;
    color: #ffffff !important;
    margin: 0 !important;
}
.itsl-dash-login-card h2 {
    margin: 0 0 0.5rem 0 !important;
    color: #ffffff !important;
    font-size: 1.35rem !important;
}
.itsl-dash-login-card p {
    color: #94a3b8 !important;
    margin-bottom: 1.25rem !important;
}
.itsl-dash-login-card input[type=text],
.itsl-dash-login-card input[type=password] {
    width: 100% !important;
    padding: 0.6rem 0.8rem !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    background: rgba(255,255,255,0.05) !important;
    color: #fff !important;
    margin-bottom: 0.75rem !important;
    box-sizing: border-box !important;
    font-family: inherit !important;
}
.itsl-dash-login-card input[type=submit] {
    width: 100% !important;
    padding: 0.7rem !important;
    border: none !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, #8BB82A, #A6D936) !important;
    color: #000000 !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    font-family: inherit !important;
}

@media (max-width: 900px) {
    .itsl-dash {
        flex-direction: column !important;
    }
    .itsl-dash-sidebar {
        width: 100% !important;
        border-left: none !important;
        border-bottom: 1px solid rgba(255,255,255,0.06) !important;
    }
    .itsl-dash-nav {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 0.35rem !important;
    }
    .itsl-dash-nav-item {
        margin-bottom: 0 !important;
    }
    .itsl-dash-cards {
        grid-template-columns: 1fr !important;
    }
    .itsl-dash-row {
        grid-template-columns: 1fr !important;
    }
    /* tables → cards on mobile */
    .itsl-dash-table-wrap {
        overflow: visible !important;
    }
    .itsl-dash-table {
        display: block !important;
        width: 100% !important;
        border: none !important;
        background: transparent !important;
    }
    .itsl-dash-table thead {
        display: none !important;
    }
    .itsl-dash-table tbody {
        display: grid !important;
        gap: 0.75rem !important;
    }
    .itsl-dash-table tr {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0.85rem 1rem !important;
        border-radius: 14px !important;
        border: 1px solid rgba(255,255,255,0.1) !important;
        background: rgba(15,23,42,0.55) !important;
        box-shadow: 0 4px 16px rgba(0,0,0,0.15) !important;
    }
    .itsl-dash-table td {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 0.75rem !important;
        width: 100% !important;
        padding: 0.45rem 0 !important;
        border: none !important;
        border-bottom: 1px solid rgba(255,255,255,0.06) !important;
        text-align: left !important;
        white-space: normal !important;
        font-size: 0.88rem !important;
        color: #e2e8f0 !important;
    }
    .itsl-dash-table td:last-child {
        border-bottom: none !important;
        padding-top: 0.65rem !important;
        justify-content: flex-start !important;
        flex-wrap: wrap !important;
        gap: 0.4rem !important;
    }
    .itsl-dash-table td::before {
        content: attr(data-label) !important;
        flex: 0 0 auto !important;
        max-width: 42% !important;
        color: #94a3b8 !important;
        font-size: 0.78rem !important;
        font-weight: 600 !important;
        text-align: right !important;
    }
    .itsl-dash-table td:last-child::before {
        display: none !important;
    }
}

/* Desktop table polish */
.itsl-dash-table-wrap {
    overflow-x: auto;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(15,23,42,0.35);
}
.itsl-dash-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.itsl-dash-table th {
    text-align: right;
    padding: 0.75rem 1rem;
    color: #C5E86A;
    font-weight: 700;
    font-size: 0.8rem;
    background: rgba(30,58,138,0.25);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    white-space: nowrap;
}
.itsl-dash-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    color: #e2e8f0;
    vertical-align: middle;
}
.itsl-dash-table tbody tr:hover {
    background: rgba(166,217,54,0.06);
}
.itsl-dash-table tbody tr:last-child td {
    border-bottom: none;
}


/* View count badge */
.itsl-views-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #C5E86A;
    background: rgba(166, 217, 54, 0.12);
    border: 1px solid rgba(166, 217, 54, 0.25);
    padding: 0.25rem 0.65rem;
    border-radius: 8px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}


/* ===== Card list (tickets / invoices / contracts) ===== */
.itsl-card-list {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
  gap: 0.85rem !important;
  width: 100% !important;
}
.itsl-card-item {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.65rem !important;
  padding: 1rem 1.1rem !important;
  border-radius: 16px !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  background: linear-gradient(160deg, rgba(30,41,59,0.9), rgba(15,23,42,0.75)) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18) !important;
  transition: border-color .15s ease, transform .15s ease !important;
}
.itsl-card-item:hover {
  border-color: rgba(147,197,253,0.35) !important;
  transform: translateY(-2px);
}
.itsl-card-item-top {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 0.75rem !important;
}
.itsl-card-item-title {
  margin: 0 !important;
  font-size: 0.98rem !important;
  font-weight: 800 !important;
  color: #f8fafc !important;
  line-height: 1.45 !important;
  word-break: break-word !important;
}
.itsl-card-item-title a {
  color: inherit !important;
  text-decoration: none !important;
}
.itsl-card-item-title a:hover { color: #C5E86A !important; }
.itsl-card-item-meta {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.4rem 0.75rem !important;
  font-size: 0.8rem !important;
  color: #94a3b8 !important;
  align-items: center !important;
}
.itsl-card-item-meta span b { color: #cbd5e1; font-weight: 600; }
.itsl-card-item-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.4rem !important;
  margin-top: auto !important;
  padding-top: 0.35rem !important;
  border-top: 1px solid rgba(255,255,255,0.06) !important;
}
.itsl-card-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem 1rem;
  border-radius: 16px;
  border: 1px dashed rgba(255,255,255,0.12);
  color: #64748b;
}
.itsl-badge {
  display: inline-block !important;
  padding: 3px 10px !important;
  border-radius: 999px !important;
  font-size: 0.75rem !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
}
.itsl-badge-pending, .itsl-badge-open, .itsl-badge-expired, .itsl-badge-new { background: #fef3c7 !important; color: #92400e !important; }
.itsl-badge-paid, .itsl-badge-signed, .itsl-badge-active, .itsl-badge-staff_reply { background: #d1fae5 !important; color: #065f46 !important; }
.itsl-badge-cancelled, .itsl-badge-closed, .itsl-badge-ended { background: #e2e8f0 !important; color: #475569 !important; }
.itsl-badge-customer_reply { background: #D4ED9A !important; color: #1e40af !important; }

@media (max-width: 640px) {
  .itsl-card-list {
    grid-template-columns: 1fr !important;
  }
}

/* Responsive table → cards on mobile */
.itsl-rt-wrap{width:100%;overflow-x:auto}
.itsl-rt{width:100%;border-collapse:collapse;min-width:640px}
.itsl-rt th{
  text-align:right;padding:.65rem .75rem;border-bottom:1px solid rgba(148,163,184,.2);
  color:#94a3b8;font-size:.78rem;font-weight:700;white-space:nowrap
}
.itsl-rt td{
  padding:.75rem .75rem;border-bottom:1px solid rgba(148,163,184,.1);
  color:#e2e8f0;font-size:.9rem;vertical-align:middle
}
.itsl-rt tbody tr:hover{background:rgba(166,217,54,.06)}
.itsl-rt-actions{white-space:nowrap}
.itsl-rt-actions form{display:inline}
.itsl-rt-actions .itsl-dash-btn-sm{margin:0 2px 2px 0}
@media (max-width:768px){
  .itsl-rt{min-width:0;border:0}
  .itsl-rt thead{display:none}
  .itsl-rt tr{
    display:block;margin-bottom:.75rem;padding:.9rem 1rem;
    background:rgba(15,23,42,.5);border:1px solid rgba(148,163,184,.14);
    border-radius:14px
  }
  .itsl-rt td{
    display:flex;justify-content:space-between;align-items:flex-start;gap:.75rem;
    border:0;padding:.4rem 0;text-align:left
  }
  .itsl-rt td::before{
    content:attr(data-label);color:#94a3b8;font-size:.75rem;font-weight:700;
    flex-shrink:0;text-align:right
  }
  .itsl-rt td.itsl-rt-actions{
    flex-wrap:wrap;justify-content:flex-start;padding-top:.65rem;margin-top:.35rem;
    border-top:1px solid rgba(148,163,184,.12)
  }
  .itsl-rt td.itsl-rt-actions::before{display:none}
}

/* Header icon actions */
.itsl-hdr{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}
.itsl-hdr-actions{display:flex;align-items:center;gap:.35rem;margin-right:auto}
.itsl-hdr-icon{
  position:relative;display:inline-flex;align-items:center;justify-content:center;
  width:40px;height:40px;border-radius:12px;border:1px solid rgba(148,163,184,.18);
  background:rgba(255,255,255,.04);color:#cbd5e1;cursor:pointer;
  text-decoration:none;transition:.15s ease;padding:0;appearance:none;
}
.itsl-hdr-icon:hover{border-color:rgba(197, 232, 106,.45);color:#C5E86A;background:rgba(166,217,54,.12)}
.itsl-hdr-icon-danger:hover{border-color:rgba(248,113,113,.45);color:#f87171;background:rgba(248,113,113,.1)}
.itsl-hdr-dot{
  position:absolute;top:8px;left:8px;width:7px;height:7px;border-radius:50%;
  background:#A6D936;box-shadow:0 0 0 2px rgba(15,23,42,.9)
}
.itsl-hdr-dot-muted{background:#64748b;opacity:.5}
@media(max-width:640px){
  .itsl-hdr-icon{width:36px;height:36px;border-radius:10px}
  .itsl-hdr-icon svg{width:18px;height:18px}
}

/* Notifications */
.itsl-notif{position:relative}
.itsl-notif-badge{
  position:absolute;top:2px;left:2px;min-width:16px;height:16px;padding:0 4px;
  border-radius:999px;background:#ef4444;color:#fff;font-size:10px;font-weight:800;
  display:inline-flex;align-items:center;justify-content:center;line-height:1;
  box-shadow:0 0 0 2px rgba(15,23,42,.9)
}
.itsl-notif-drop{
  position:absolute;top:calc(100% + 8px);left:0;width:340px;max-width:92vw;z-index:100;
  background:#0a0a0a;border:1px solid rgba(148,163,184,.2);border-radius:14px;
  box-shadow:0 20px 50px rgba(0,0,0,.45);overflow:hidden
}
.itsl-notif-drop-head{
  display:flex;align-items:center;justify-content:space-between;padding:.75rem 1rem;
  border-bottom:1px solid rgba(148,163,184,.12)
}
.itsl-notif-drop-head strong{color:#ffffff;font-size:.9rem}
.itsl-notif-markall{
  background:none;border:0;color:#C5E86A;font-size:.78rem;font-weight:700;cursor:pointer;padding:0
}
.itsl-notif-drop-list{max-height:320px;overflow-y:auto}
.itsl-notif-empty{padding:1.5rem 1rem;text-align:center;color:#64748b;font-size:.88rem}
.itsl-notif-item,.itsl-notif-row{
  display:flex;gap:.7rem;align-items:flex-start;padding:.75rem 1rem;
  text-decoration:none;color:inherit;border-bottom:1px solid rgba(148,163,184,.08);
  transition:.12s ease
}
.itsl-notif-item:hover,.itsl-notif-row:hover{background:rgba(166,217,54,.08)}
.itsl-notif-item.is-unread,.itsl-notif-row.is-unread{background:rgba(166,217,54,.06)}
.itsl-notif-ico{
  width:34px;height:34px;border-radius:10px;display:flex;align-items:center;justify-content:center;
  background:rgba(166,217,54,.12);color:#C5E86A;flex-shrink:0
}
.itsl-notif-body{display:flex;flex-direction:column;gap:.15rem;min-width:0;flex:1}
.itsl-notif-title{font-size:.88rem;font-weight:700;color:#e2e8f0}
.itsl-notif-text{font-size:.8rem;color:#94a3b8;line-height:1.5}
.itsl-notif-time{font-size:.72rem;color:#64748b}
.itsl-notif-footer{
  display:block;text-align:center;padding:.7rem;font-size:.82rem;font-weight:700;
  color:#C5E86A;text-decoration:none;border-top:1px solid rgba(148,163,184,.12)
}
.itsl-notif-footer:hover{background:rgba(166,217,54,.08)}
.itsl-notif-list{display:flex;flex-direction:column;gap:.35rem}
.itsl-notif-row{
  border:1px solid rgba(148,163,184,.12);border-radius:12px;margin-bottom:.35rem
}
.itsl-notif-dot{
  width:8px;height:8px;border-radius:50%;background:#A6D936;flex-shrink:0;margin-top:6px
}

/* Fix notif bell button inherits hdr-icon */
button.itsl-hdr-icon,
button.itsl-notif-toggle{
  position:relative;display:inline-flex;align-items:center;justify-content:center;
  width:40px;height:40px;border-radius:12px;border:1px solid rgba(148,163,184,.18);
  background:rgba(255,255,255,.04);color:#cbd5e1;cursor:pointer;
  text-decoration:none;transition:.15s ease;padding:0;appearance:none;
  font:inherit;line-height:1;margin:0;box-shadow:none;
}
button.itsl-hdr-icon:hover,
button.itsl-notif-toggle:hover{
  border-color:rgba(197, 232, 106,.45);color:#C5E86A;background:rgba(166,217,54,.12)
}
.itsl-hdr-actions .itsl-notif{display:inline-flex;align-items:center}
.itsl-hdr-actions .itsl-notif-drop{left:auto;right:0}
[dir="rtl"] .itsl-hdr-actions .itsl-notif-drop{right:auto;left:0}

/* Sidebar menu badges */
.itsl-dash-nav-item{
  position:relative;
}
.itsl-nav-badge{
  margin-inline-start:auto;
  min-width:20px;height:20px;padding:0 6px;
  border-radius:999px;background:#ef4444;color:#fff;
  font-size:11px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;
  line-height:1;
}
.itsl-dash-nav-item.active .itsl-nav-badge{background:#fff;color:#8BB82A}
.itsl-hdr-icon{position:relative}
.itsl-hdr-badge{
  position:absolute;top:2px;left:2px;min-width:16px;height:16px;padding:0 4px;
  border-radius:999px;background:#ef4444;color:#fff;font-size:10px;font-weight:800;
  display:inline-flex;align-items:center;justify-content:center;line-height:1;
  box-shadow:0 0 0 2px rgba(15,23,42,.9)
}
