/*Write your custom css in this file.*/

table.dataTable tbody td.dt-empty,
table.dataTable tbody td.dataTables_empty {
    padding: 0 !important;
    background: #fff !important;
}

.dataTable:not(.js-selection-mode) tbody tr:hover td.dt-empty,
.dataTable:not(.js-selection-mode) tbody tr:hover td.dataTables_empty {
    background: #fff !important;
}

.app-table-empty-state {
    min-height: 150px;
    padding: 32px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #6f7782;
    text-align: center;
}

.app-table-empty-state-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e6eaef;
    border-radius: 50%;
    color: #8b95a1;
    background: #f8fafc;
}

.app-table-empty-state-text {
    font-weight: 600;
    line-height: 1.35;
}

.permission-list .permission-help-text {
    max-width: 760px;
    margin: 2px 0 8px 24px;
    color: #6f7782;
    font-size: 12px;
    line-height: 1.45;
}

.permission-list .specific_dropdown + .permission-help-text,
.permission-list .permission-help-text + .specific_dropdown {
    margin-top: 8px;
}

.session-summary-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e6eaef;
    border-radius: 8px;
    color: #44546a;
    background: #f8fafc;
}

.session-summary-value {
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}

.impersonation-nav-alert {
    margin: 10px 8px 0 0;
    padding: 7px 10px !important;
    min-height: 34px;
    display: inline-flex !important;
    align-items: center;
    border: 1px solid #f1c27d;
    border-radius: 8px;
    color: #704800 !important;
    background: #fff8e7;
    line-height: 1.2;
}

.impersonation-stop-link {
    font-weight: 700;
    color: #704800;
    text-decoration: underline;
}

.executive-metric-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.executive-metric {
    display: flex;
    gap: 10px;
    min-height: 118px;
    padding: 14px;
    border: 1px solid #e6ebf1;
    border-left-width: 4px;
    border-radius: 8px;
    color: #2c3e50;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.executive-metric:hover {
    color: #17202a;
    border-color: #cfd8e3;
    box-shadow: 0 6px 18px rgba(44, 62, 80, 0.08);
    transform: translateY(-1px);
}

.executive-metric-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    border-radius: 8px;
    background: #f5f7fa;
}

.executive-metric-content {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.executive-metric-label,
.executive-metric-meta {
    color: #6c7a89;
    font-size: 12px;
    line-height: 1.35;
}

.executive-metric-value {
    margin: 8px 0 4px;
    color: #1f2d3d;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.executive-metric-green {
    border-left-color: #35a66f;
}

.executive-metric-red {
    border-left-color: #d9534f;
}

.executive-metric-blue {
    border-left-color: #3f7fbf;
}

.executive-metric-amber {
    border-left-color: #d99a2b;
}

.executive-metric-teal {
    border-left-color: #1f9d9a;
}

.executive-metric-violet {
    border-left-color: #7b61a8;
}

.role-priority-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
}

.role-priority-card {
    display: flex;
    gap: 10px;
    min-height: 96px;
    padding: 14px;
    border: 1px solid #e6ebf1;
    border-left-width: 4px;
    border-radius: 8px;
    color: #2c3e50;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.role-priority-card:hover {
    color: #17202a;
    border-color: #cfd8e3;
    box-shadow: 0 6px 18px rgba(44, 62, 80, 0.08);
    transform: translateY(-1px);
}

.role-priority-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    border-radius: 8px;
    background: #f5f7fa;
}

.role-priority-content {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.role-priority-label,
.role-priority-meta {
    color: #6c7a89;
    font-size: 12px;
    line-height: 1.35;
}

.role-priority-value {
    margin: 7px 0 3px;
    color: #1f2d3d;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.role-priority-red {
    border-left-color: #d9534f;
}

.role-priority-amber {
    border-left-color: #d99a2b;
}

.role-priority-blue {
    border-left-color: #3f7fbf;
}

.role-priority-teal {
    border-left-color: #1f9d9a;
}

.role-priority-violet {
    border-left-color: #7b61a8;
}

.role-priority-green {
    border-left-color: #35a66f;
}

.kanban-preferences {
    border-bottom: 1px solid #edf1f5;
}

.kanban-preferences .btn.active {
    border-color: #2c7be5;
    color: #2c7be5;
    background: #eef5ff;
}

.kanban-density-compact .kanban-col .kanban-item-list .kanban-item {
    padding: 9px 10px;
}

.kanban-density-compact .kanban-col .kanban-item-list .kanban-item .meta,
.kanban-density-compact .kanban-col .kanban-item-list .kanban-item .font-12 {
    font-size: 11px;
}

.kanban-density-compact .kanban-col-title {
    padding-top: 8px;
    padding-bottom: 8px;
}

@media (max-width: 767px) {
    .title-button-group {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        justify-content: flex-start;
    }

    .title-button-group .btn {
        margin-left: 0 !important;
    }

    .btn i[data-feather],
    .btn svg,
    .dropdown-item i[data-feather],
    .dropdown-item svg {
        flex: 0 0 auto;
        vertical-align: text-bottom;
    }

    .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        max-width: 100%;
        white-space: normal;
    }

    .dt-container .filter-section-container {
        padding: 10px;
    }

    .dt-container .filter-section-left,
    .dt-container .filter-section-right,
    .dt-container .filter-section-flex-row {
        width: 100%;
    }

    .dt-container .filter-section-right {
        text-align: left;
    }

    .dt-container .filter-section-left .filter-item-box,
    .dt-container .filter-section-right .filter-item-box {
        display: block;
        margin: 6px 0;
    }

    .dt-container .dt-search,
    .dt-container .dt-search input {
        width: 100% !important;
    }

    .dt-container .datatable-tools {
        margin-top: 10px !important;
    }

    .dt-container .datatable-tools .dt-length,
    .dt-container .dt-info {
        float: none !important;
        margin-left: 0 !important;
        text-align: center;
    }

    .dt-container .datatable-tools .pagination {
        justify-content: center !important;
        white-space: normal;
        row-gap: 4px;
    }

    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control,
    table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control {
        min-width: 40px;
    }

    table.dataTable > tbody > tr.child ul.dtr-details {
        display: grid;
        gap: 8px;
        width: 100%;
        padding: 10px 12px;
        border: 1px solid #e6ebf1;
        border-radius: 8px;
        background: #fbfcfd;
    }

    table.dataTable > tbody > tr.child ul.dtr-details > li {
        display: grid;
        grid-template-columns: minmax(96px, 38%) minmax(0, 1fr);
        gap: 10px;
        padding: 0;
        border-bottom: 0;
        word-break: break-word;
    }

    table.dataTable > tbody > tr.child span.dtr-title {
        min-width: 0;
        color: #6c7a89;
        font-weight: 600;
    }

    table.dataTable > tbody > tr.child span.dtr-data {
        min-width: 0;
    }

    .permission-list .permission-help-text {
        margin-left: 0;
    }

    .impersonation-nav-alert {
        max-width: 58vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .executive-metric-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .executive-metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
