/* Consolidated styles used by React-in-template screens */
/* ========================================
   CONSOLIDATED TEMPLATE STYLES
======================================== */
:root {
    --surface-1: rgba(15, 23, 42, 0.72);
    --surface-2: rgba(255, 255, 255, 0.08);
    --surface-3: rgba(255, 255, 255, 0.05);
    --stroke: rgba(255, 255, 255, 0.12);
    --stroke-soft: rgba(255, 255, 255, 0.08);
    --shadow-soft: 0 16px 36px rgba(0, 0, 0, 0.2);
    --shadow-lift: 0 22px 44px rgba(0, 0, 0, 0.24);
    --app-radius: 16px;
    --app-radius-lg: 20px;
}

body {
    color: #f8fafc;
    overflow-x: hidden;

}

.page-wrap,
.dashboard-wrap,
.settings-wrap,
.issues-wrap,
.dash-wrap,
.sub-page,
.license-page,
.users-page,
.profile-wrap {
    width: min(100%, 1400px);
    margin-inline: auto;
    padding: 24px;
}

.sub-page {
    max-width: 1300px;
}

.license-page {
    max-width: 1200px;
}

.profile-wrap {
    max-width: 1100px;
}

.glass,
.glass-card,
.glass-box,
.table-box,
.table-card,
.table-wrap {
    background: var(--surface-2);
    border: 1px solid var(--stroke);
    border-radius: var(--app-radius-lg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow-soft);
}

.table-wrap,
.glass-box {
    padding: 18px;
}

.table-menu,
.excel-filter {
    position: relative;
}

.table-menu-panel,
.excel-filter-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 40;
    min-width: 220px;
    max-width: 320px;
    max-height: 320px;
    overflow: auto;
    padding: 10px;
    color: #f8fafc;
    background: rgba(15, 23, 42, .98);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, .35);
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, .55) rgba(15, 23, 42, .72);
}

.excel-filter-panel {
    right: auto;
    left: 0;
}

.table-menu-option {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 32px;
    margin: 0;
    padding: 6px 4px;
    color: #f8fafc;
    font-size: .88rem;
    cursor: pointer;
}

.table-menu-option input {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
}

.table-menu-option span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.excel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    min-width: 0;
}

.excel-head-label {
    display: block;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.issue-table-scroll {
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    display: block;
    overflow-x: auto;
    overflow-y: visible;
    padding: 0 0 8px !important;
    scroll-snap-type: none !important;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, .55) rgba(8, 48, 55, .56);
}

.issue-table-scroll::-webkit-scrollbar,
.table-menu-panel::-webkit-scrollbar,
.excel-filter-panel::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.issue-table-scroll::-webkit-scrollbar-track,
.table-menu-panel::-webkit-scrollbar-track,
.excel-filter-panel::-webkit-scrollbar-track {
    background: rgba(8, 48, 55, .54);
    border-radius: 999px;
}

.issue-table-scroll::-webkit-scrollbar-thumb,
.table-menu-panel::-webkit-scrollbar-thumb,
.excel-filter-panel::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(148, 163, 184, .72), rgba(94, 234, 212, .46));
    border: 2px solid rgba(8, 48, 55, .54);
    border-radius: 999px;
}

.issue-table-scroll::-webkit-scrollbar-thumb:hover,
.table-menu-panel::-webkit-scrollbar-thumb:hover,
.excel-filter-panel::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(203, 213, 225, .88), rgba(94, 234, 212, .68));
}

.issue-table-scroll::-webkit-scrollbar-corner,
.table-menu-panel::-webkit-scrollbar-corner,
.excel-filter-panel::-webkit-scrollbar-corner {
    background: transparent;
}

.issue-data-table {
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    max-width: 100%;
}

.issue-data-table thead,
.issue-data-table tbody {
    display: block;
    width: 100%;
}

.issue-data-table tbody {
    display: grid;
    gap: 8px;
    padding-top: 8px;
}

.issue-data-table .issue-grid-row {
    display: grid;
    align-items: stretch;
    width: max-content;
    min-width: 100%;
}

.issue-data-table .issue-col-id {
    width: 105px;
}

.issue-data-table .issue-col-title {
    width: 210px;
}

.issue-data-table .issue-col-status {
    width: 105px;
}

.issue-data-table .issue-col-age {
    width: 100px;
}

.issue-data-table .issue-col-priority {
    width: 90px;
}

.issue-data-table .issue-col-person {
    width: 125px;
}

.issue-data-table .issue-col-date {
    width: 130px;
}

.issue-data-table .issue-col-standard {
    width: 140px;
}

.issue-data-table .issue-col-long {
    width: 220px;
}

.issue-data-table .issue-col-custom {
    width: 160px;
}

.issue-data-table th,
.issue-data-table td {
    width: auto !important;
    min-width: 0;
    min-height: 48px;
    padding: 12px 14px;
    vertical-align: middle;
    white-space: nowrap;
    overflow-wrap: normal !important;
    word-break: normal !important;
    text-align: left;
}

.issue-data-table th {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: rgba(226, 232, 240, .88);
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: none;
    background: rgba(255, 255, 255, .07);
    border-top: 1px solid rgba(255, 255, 255, .12);
    border-bottom: 1px solid rgba(94, 234, 212, .18);
}

.issue-data-table td {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: rgba(248, 250, 252, .94);
    font-size: .91rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    background: rgba(7, 49, 57, .42);
    border-top: 1px solid rgba(255, 255, 255, .08);
    border-bottom: 1px solid rgba(94, 234, 212, .13);
}

.issue-data-table th > *,
.issue-data-table td > * {
    min-width: 0;
}

.table-cell-ellipsis,
.table-cell-clamp,
.app-table-preview {
    display: block;
    max-width: 100%;
    overflow: hidden;
    line-height: 1.35;
}

.table-cell-ellipsis,
.app-table-preview {
    white-space: nowrap;
    text-overflow: ellipsis;
}

.table-cell-clamp {
    white-space: normal;
    overflow-wrap: anywhere;
}

.table-cell-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    max-height: 2.7em;
}

.app-table-preview {
    width: 100%;
    min-width: 0;
    cursor: help;
}

.app-table-preview-multiline {
    display: -webkit-box;
    white-space: normal;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.app-table-preview:focus-visible {
    outline: 2px solid rgba(94, 234, 212, .68);
    outline-offset: 2px;
    border-radius: 5px;
}

.issue-data-table td {
    white-space: nowrap;
}

.issue-data-table td:not(.issue-col-status):not(.issue-col-priority) {
    overflow: hidden;
}

.issue-data-table td:not(.issue-col-status):not(.issue-col-priority) {
    text-overflow: ellipsis;
}

.issue-data-table thead th:first-child,
.issue-data-table tbody td:first-child {
    border-left: 1px solid rgba(255, 255, 255, .10);
    border-radius: 10px 0 0 10px;
}

.issue-data-table thead th:last-child,
.issue-data-table tbody td:last-child {
    border-right: 1px solid rgba(255, 255, 255, .10);
    border-radius: 0 10px 10px 0;
}

.issue-data-table tbody .issue-grid-row {
    cursor: pointer;
    transition: transform .16s ease, filter .16s ease;
}

.issue-data-table tbody .issue-grid-row:hover td {
    background: rgba(10, 73, 82, .58);
    border-color: rgba(94, 234, 212, .22);
}

.issue-data-table tbody .issue-grid-row:hover {
    transform: translateY(-1px);
}

.issue-data-table .badge {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-issues-table {
    table-layout: fixed;
    width: max-content;
    min-width: 840px;
    max-width: none;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.dashboard-issues-scroll {
    overflow-x: auto;
    overflow-y: visible;
}

.dashboard-issues-table th,
.dashboard-issues-table td {
    padding: 10px 12px;
    vertical-align: middle;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: normal !important;
    word-break: normal !important;
}

.dashboard-issues-table .excel-head-label {
    width: 100%;
}

.dashboard-cell-ellipsis,
.dashboard-cell-clamp,
.dashboard-issues-table .app-table-preview {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    line-height: 1.35;
}

.dashboard-cell-ellipsis,
.dashboard-issues-table .app-table-preview {
    white-space: nowrap;
    text-overflow: ellipsis;
}

.dashboard-cell-clamp {
    white-space: normal;
    overflow-wrap: anywhere;
}

.dashboard-cell-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    max-height: 2.7em;
}

.dashboard-issues-table th {
    color: rgba(226, 232, 240, .86);
    font-size: .82rem;
    font-weight: 800;
    background: rgba(255, 255, 255, .07);
    border-top: 1px solid rgba(255, 255, 255, .11);
    border-bottom: 1px solid rgba(94, 234, 212, .18);
}

.dashboard-issues-table td {
    color: rgba(248, 250, 252, .94);
    font-size: .9rem;
    font-weight: 600;
    background: rgba(7, 49, 57, .38);
    border-top: 1px solid rgba(255, 255, 255, .07);
    border-bottom: 1px solid rgba(94, 234, 212, .12);
}

.dashboard-issues-table th:first-child,
.dashboard-issues-table td:first-child {
    border-left: 1px solid rgba(255, 255, 255, .10);
    border-radius: 9px 0 0 9px;
}

.dashboard-issues-table th:last-child,
.dashboard-issues-table td:last-child {
    border-right: 1px solid rgba(255, 255, 255, .10);
    border-radius: 0 9px 9px 0;
}

.dashboard-issues-table tbody tr:hover td {
    background: rgba(10, 73, 82, .56);
}

.dashboard-issues-table .dash-col-id {
    width: 112px;
}

.dashboard-issues-table .dash-col-title {
    width: 240px;
}

.dashboard-issues-table .dash-col-status {
    width: 118px;
}

.dashboard-issues-table .dash-col-age {
    width: 120px;
}

.dashboard-issues-table .dash-col-priority {
    width: 98px;
}

.dashboard-issues-table .dash-col-person {
    width: 150px;
}

.dashboard-issues-table .dash-col-date {
    width: 130px;
}

.dashboard-issues-table .dash-col-standard {
    width: 145px;
}

.dashboard-issues-table .dash-col-long {
    width: 190px;
}

.dashboard-issues-table .dash-col-custom {
    width: 150px;
}

.dashboard-issues-table .badge {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.excel-filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: rgba(248, 250, 252, .76);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 6px;
    background: rgba(255, 255, 255, .06);
    cursor: pointer;
}

.excel-filter-btn.active {
    color: #fff;
    background: rgba(14, 165, 233, .38);
    border-color: rgba(125, 211, 252, .55);
}

.excel-filter-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #fff;
    font-size: .82rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.excel-filter-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: rgba(248, 250, 252, .82);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 6px;
    background: rgba(255, 255, 255, .06);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.excel-filter-close:hover {
    color: #fff;
    background: rgba(239, 68, 68, .28);
    border-color: rgba(252, 165, 165, .45);
}

.excel-filter-search {
    width: 100%;
    min-height: 34px;
    margin-bottom: 8px;
    padding: 7px 10px;
    color: #f8fafc;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    outline: none;
}

.excel-filter-search::placeholder {
    color: rgba(248, 250, 252, .58);
}

.excel-filter-search:focus {
    border-color: rgba(125, 211, 252, .65);
    box-shadow: 0 0 0 2px rgba(14, 165, 233, .18);
}

.export-column-panel {
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 10px;
    background: rgba(2, 16, 29, .28);
}

.export-column-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px;
    max-height: 220px;
    overflow: auto;
    padding-right: 4px;
}

.export-column-option {
    min-height: 38px;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 8px;
    background: rgba(255, 255, 255, .04);
}

.table-column-setting-group {
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 10px;
    background: rgba(255, 255, 255, .04);
}

.hero,
.hero-card,
.page-head,
.header-box {
    padding: 24px;
}

.hero-card {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.28), rgba(20, 184, 166, 0.14));
}

.hero-title,
.feature-title,
.section-title,
.role-name,
.page-title {
    color: #fff;
    font-weight: 800;
}

.hero-title {
    font-size: 2rem;
}

.hero h2 {
    margin: 0;
}

.hero p,
.hero-sub,
.page-sub,
.small-muted,
.stat-label,
.feature-text {
    color: rgba(248, 250, 252, 0.72);
}

.header-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

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

.license-page .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 18px;
}

.stat,
.stat-card,
.stat-tile,
.stat-box,
.mini-stat {
    color: #fff;
    border-radius: var(--app-radius-lg);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

.stat,
.stat-card {
    padding: 20px;
}

.stat-card,
.stat-tile,
.stat-box,
.feature-card,
.role-card,
.template-card,
.user-card,
.issue-card,
.mobile-card,
.item-row {
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.stat-card,
.stat-tile,
.stat-box,
.feature-card,
.row-click,
.table tbody tr {
    cursor: pointer;
}

.stat-card:hover,
.stat-tile:hover,
.stat-box:hover,
.feature-card:hover,
.role-card:hover,
.template-card:hover,
.user-card:hover,
.issue-card:hover,
.mobile-card:hover,
.item-row:hover {
    transform: translateY(-3px);
    background-color: rgba(255, 255, 255, 0.09);
    box-shadow: var(--shadow-lift);
}

.stat-icon,
.feature-icon,
.tile-icon {
    font-size: 1.5rem;
}

.tile-value {
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.tile-label {
    opacity: 0.95;
}

.stat-value,
.mini-num,
.num {
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.license-page .stat h2 {
    font-size: 2.6rem;
    font-weight: 800;
}

.label,
.mini-label {
    font-weight: 600;
}

.blue,
.bg3,
.color-blue {
    background: linear-gradient(135deg, #0b7f82, #60d0c0);
}

.green,
.bg2,
.color-green {
    background: linear-gradient(135deg, #15803d, #22c55e);
}

.red,
.bg4,
.color-red {
    background: linear-gradient(135deg, #dc2626, #f97316);
}

.gold,
.bg1,
.color-gold {
    background: linear-gradient(135deg, #f59e0b, #facc15);
    color: #111827;
}

.purple {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
}

.section,
.info-box,
.user-card,
.issue-card,
.mobile-card,
.timeline-box,
.progress-box,
.quick-pill,
.template-card,
.item-row {
    background: var(--surface-3);
    border: 1px solid var(--stroke-soft);
    border-radius: var(--app-radius);
}

.section {
    margin-top: 20px;
    padding: 22px;
    color: #fff;
}

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

.info-box,
.user-card,
.issue-card,
.mobile-card,
.timeline-box {
    padding: 16px;
}

.issue-table-scroll .mobile-card,
.dashboard-mobile-issue-card {
    margin-bottom: 10px;
    padding: 12px 14px;
}

.issue-table-scroll .mobile-card .small-muted,
.dashboard-mobile-issue-card .small-muted {
    flex: 0 0 auto;
    font-size: .78rem;
}

.issue-table-scroll .mobile-card .fw-semibold,
.dashboard-mobile-issue-card .fw-semibold {
    line-height: 1.35;
    overflow-wrap: anywhere;
}

@media (max-width: 767.98px) {
    .issue-table-scroll {
        overflow: visible !important;
        padding-bottom: 0 !important;
    }

    .issue-mobile-card-list {
        display: grid !important;
        gap: 10px;
        width: 100%;
        min-width: 0;
        margin-top: 4px;
    }

    .issue-mobile-card-list .mobile-card {
        display: block !important;
        width: 100%;
        margin: 0;
    }
}

.info-title {
    color: #cbd5e1;
    font-size: 0.85rem;
}

.info-value {
    margin-top: 6px;
    color: #fff;
    font-weight: 700;
    word-break: break-word;
}

.toolbar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.empty,
.empty-box,
.loader-box {
    color: #cbd5e1;
    text-align: center;
}

.empty,
.empty-box {
    padding: 36px;
}

.loader-box {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-box,
.search-input,
.form-control,
.form-select {
    min-height: 46px;
    border-radius: 12px;
}

.search-box,
.search-input {
    border: 0;
    background: rgba(255, 255, 255, 0.96);
}

.dropzone {
    cursor: pointer;
    border-style: dashed !important;
    background: rgba(255, 255, 255, 0.04);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.dropzone:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.28) !important;
}

.sub-page .form-control,
.sub-page .form-select {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sub-page .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.sub-page .form-select option {
    color: #111827;
}

.custom-table,
.table {
    color: #fff;
}

.custom-table thead th,
.table thead th,
.shift-table thead th {
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.08);
    white-space: nowrap;
}

.custom-table td,
.custom-table th,
.table tbody td,
.shift-table tbody td {
    border-color: rgba(255, 255, 255, 0.06);
    vertical-align: middle;
}

.table tbody tr:hover,
.row-click:hover {
    background: rgba(255, 255, 255, 0.04);
}

.table-responsive {
    border-radius: var(--app-radius);
}

.plan-card {
    height: 100%;
    padding: 22px;
    border: 1px solid var(--stroke);
    border-radius: var(--app-radius-lg);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.plan-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lift);
}

.plan-feature {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-card,
.role-card,
.priority-card {
    height: 100%;
    padding: 20px;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.1);
}

.quick-pill {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    color: #fff;
    font-size: 0.85rem;
}

.quick-btn {
    min-height: 48px;
    border-radius: 12px;
    font-weight: 700;
}

.avatar,
.profile-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 800;
}

.avatar {
    width: 90px;
    height: 90px;
    margin: auto;
    color: #111827;
    font-size: 38px;
    background: linear-gradient(135deg, #facc15, #fb923c);
}

.profile-avatar {
    width: 72px;
    height: 72px;
    margin: 0 auto 14px;
    color: #fff;
    font-size: 32px;
    background: #0b7f82;
}

.info-line {
    color: #fff;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.info-line a {
    color: #facc15;
}

.modal-backdrop-custom,
.drawer-backdrop,
.modal-scrim {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.65);
}

.modal-box,
.drawer-box {
    width: 100%;
    padding: 24px;
}

.modal-box {
    max-width: 480px;
}

.drawer-box {
    max-width: 520px;
}

.modal-content,
.card {
    border-radius: var(--app-radius);
}

.subscription-reminder-dialog .modal-content {
    color: #111827;
    background: #ffffff;
}

.subscription-reminder-dialog .modal-body,
.subscription-reminder-dialog .modal-footer {
    color: #111827;
    background: #ffffff;
}

.subscription-reminder-dialog .modal-body .text-muted,
.subscription-reminder-dialog .modal-body .small {
    color: #4b5563 !important;
}

.subscription-reminder-dialog .modal-body strong {
    color: #0f172a;
}

.timeline {
    position: relative;
    margin-left: 8px;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 10px;
    width: 2px;
    background: rgba(255, 255, 255, 0.18);
}

.timeline-item {
    position: relative;
    padding-left: 38px;
    margin-bottom: 22px;
}

.timeline-dot {
    position: absolute;
    top: 10px;
    left: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
}

.template-card {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.92), rgba(30, 41, 59, 0.92));
}

.template-card:hover {
    border-color: #0dcaf0;
}

.code-box {
    color: #fff;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    background: #0b1220;
}

.preview-box {
    min-height: 220px;
}

.pagination-wrap {
    font-size: 0.72rem;
}

.notif-menu {
    width: min(390px, calc(100vw - 24px));
    padding: 0;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    box-shadow: 0 20px 50px rgba(15, 23, 42, .18);
}

.notif-menu-wide {
    width: min(390px, calc(100vw - 24px));
}

.notif-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
    padding: .9rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
}

.notif-panel-header strong {
    display: block;
    color: #0f172a;
    font-size: 1rem;
}

.notif-panel-header small {
    display: block;
    color: #64748b;
    font-size: .72rem;
}

.notif-panel-actions {
    display: flex;
    gap: .6rem;
}

.notif-action {
    padding: 0;
    border: 0;
    color: #0b7f82;
    background: transparent;
    font-size: .72rem;
    font-weight: 700;
    white-space: nowrap;
}

.notif-action:hover {
    color: #075f64;
    text-decoration: underline;
}

.notif-permission-row {
    padding: .65rem 1rem;
    border-bottom: 1px solid #dbeafe;
    background: #eff6ff;
}

.notif-permission-action {
    width: 100%;
    padding: .6rem .8rem;
    border: 1px solid var(--primary, #0b7f82);
    border-radius: .7rem;
    color: var(--primary, #0b7f82);
    background: #fff;
    font-size: .8rem;
    font-weight: 700;
}

.notif-permission-action:hover,
.notif-permission-action:focus-visible {
    color: #fff;
    background: var(--primary, #0b7f82);
}

.notif-list {
    max-height: min(430px, 65vh);
    overflow-y: auto;
    background: #fff;
}

.notif-item {
    position: relative;
    display: grid;
    grid-template-columns: 9px 1fr;
    gap: .65rem;
    padding: .85rem 1rem;
    color: inherit;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    transition: background .18s ease;
}

.notif-item:hover {
    background: #f8fafc;
}

.notif-item.is-unread {
    background: #eff6ff;
}

.notif-unread-dot {
    width: 8px;
    height: 8px;
    margin-top: .38rem;
    border-radius: 50%;
    background: transparent;
}

.notif-item.is-unread .notif-unread-dot {
    background: #0b7f82;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.notif-item-copy {
    min-width: 0;
}

.notif-item-copy strong,
.notif-item-copy span,
.notif-item-copy time {
    display: block;
}

.notif-item-copy strong {
    color: #0f172a;
    font-size: .88rem;
}

.notif-item-copy span {
    margin-top: .15rem;
    color: #475569;
    font-size: .8rem;
    line-height: 1.35;
    white-space: normal;
}

.notif-item-copy time {
    margin-top: .35rem;
    color: #94a3b8;
    font-size: .7rem;
}

.notif-item.is-read {
    opacity: .72;
}

.notif-empty {
    display: grid;
    justify-items: center;
    gap: .25rem;
    padding: 2.2rem 1rem;
    color: #64748b;
    text-align: center;
}

.notif-empty>span {
    display: grid;
    width: 42px;
    height: 42px;
    margin-bottom: .25rem;
    place-items: center;
    color: #047857;
    border-radius: 50%;
    background: #d1fae5;
    font-weight: 800;
}

@media (max-width: 991.98px) {
    .app-nav-offcanvas .notif-menu {
        overflow: hidden;
        background: #fff;
    }

    .app-nav-offcanvas .notif-panel-header {
        align-items: stretch;
        flex-direction: column;
        gap: .65rem;
        padding: .8rem;
    }

    .app-nav-offcanvas .notif-panel-actions {
        width: 100%;
        justify-content: space-between;
    }

    .app-nav-offcanvas .notif-action {
        min-height: 34px;
        padding: 0 .55rem;
        border: 1px solid #cfe8e4;
        border-radius: 8px;
        background: #f8fffd;
        text-decoration: none;
    }

    .app-nav-offcanvas .notif-list {
        max-height: min(42vh, 360px);
    }

    .app-nav-offcanvas .notif-item {
        grid-template-columns: 8px minmax(0, 1fr);
        gap: .55rem;
        padding: .8rem;
    }

    .app-nav-offcanvas .notif-item-copy strong {
        font-size: .84rem;
    }

    .app-nav-offcanvas .notif-item-copy span {
        font-size: .76rem;
    }
}

.notif-empty strong {
    color: #334155;
}

.notif-empty small {
    font-size: .78rem;
}

.is-hidden {
    display: none;
}

.w-350 {
    width: 350px;
}

.mw-320 {
    max-width: 320px;
}

.mw-980 {
    max-width: 980px;
}

.logo-preview-sm {
    max-height: 80px;
}

.progress-thin {
    height: 8px;
}

.progress-slim {
    height: 10px;
}

.progress-medium {
    height: 12px;
}

.detail-modal-backdrop {
    background: rgba(0, 0, 0, 0.55);
}

.export-modal-backdrop {
    position: fixed !important;
    inset: 0;
    z-index: 1065;
    overflow-y: auto;
    padding: 24px 12px;
}

.export-modal-backdrop .modal-dialog {
    margin-left: auto;
    margin-right: auto;
}

.chat-message-width {
    max-width: 78%;
}

.chat-message-narrow {
    max-width: 75%;
}

.chat-scroll-panel {
    max-height: 65vh;
    overflow-y: auto;
    background: linear-gradient(180deg, #07122c, #0b1735);
}

.chat-bubble {
    word-break: break-word;
}

.chat-attachment {
    max-height: 260px;
    object-fit: cover;
    cursor: pointer;
}

.log-console {
    min-height: 420px;
    max-height: 420px;
    overflow-y: auto;
    padding: 12px;
    border-radius: 12px;
    background: #0f172a;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 14px;
}

.cursor-pointer {
    cursor: pointer;
}

.dashboard-redirect-body {
    color: #fff;
    text-align: center;
    padding-top: 100px;
    font-family: Arial, sans-serif;
    background: #0f172a;
}

.animate-badge {
    animation: pulseBadge 0.6s ease;
}

@keyframes pulseBadge {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

.ims-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    min-width: 280px;
    max-width: 340px;
    padding: 14px 16px;
    color: #fff;
    cursor: pointer;
    background: #0b7f82;
    border-radius: 12px;
    opacity: 0;
    transform: translateY(-15px);
    transition: 0.4s;
}

.ims-toast.show {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .ims-toast {
        top: 15px;
        right: 15px;
        left: 15px;
        max-width: none;
    }
}

@media (max-width: 768px) {

    .page-wrap,
    .dashboard-wrap,
    .settings-wrap,
    .issues-wrap,
    .dash-wrap,
    .sub-page,
    .license-page,
    .users-page,
    .profile-wrap {
        padding: 14px;
    }

    .hero,
    .hero-card,
    .page-head,
    .header-box {
        padding: 18px;
    }

    .hero-title,
    .page-title {
        font-size: 1.45rem;
    }

    .stat-value,
    .stat-number {
        font-size: 1.45rem;
    }

    .license-page .stats-grid {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        padding-left: 30px;
    }

    .pagination-wrap button {
        width: 100px;
    }
}
