* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    background: #F5F5F5;
    min-height: 100vh;
    color: #374151;
    overflow-x: hidden;
}

.fullscreen-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #F84F00;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 16px;
    cursor: pointer;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    user-select: none;
}

.fullscreen-button:hover {
    background: #e44400;
    transform: translateY(-2px);
}

.fullscreen-button:active {
    transform: translateY(0);
}

.fullscreen-button svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.fullscreen-button span {
    font-weight: 500;
}

body.fullscreen-mode .fullscreen-button {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

:fullscreen .fullscreen-button,
:-webkit-full-screen .fullscreen-button,
:-moz-full-screen .fullscreen-button,
:-ms-fullscreen .fullscreen-button {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

body.fullscreen-mode {
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body.fullscreen-mode .container {
    max-width: 1400px;
    width: 100%;
    height: 100vh;
    margin: 0 auto;
    padding: 20px;
    overflow: auto;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    color: #374151;
    padding: 24px 0;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 4px;
}

.logo {
    height: 40px;
    width: auto;
    margin-right: 10px;
}

.divider {
    color: #4B4B4B;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.dashboard-text {
    color: #4B4B4B;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-transform: lowercase;
}

.filters-section,
.filters-maon {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.project-selector,
.date-selector,
.assignee-selector,
.type-selector,
.performance-selector {
    display: flex;
    align-items: center;
}

.project-selector,
.project-select-custom {
    flex: 0 0 auto;
}

.project-selector {
    gap: 8px;
    flex-wrap: nowrap;
    max-width: 100%;
}

.project-select-custom {
    position: relative;
    width: fit-content;
    max-width: calc(100vw - 96px);
    cursor: pointer;
    z-index: 10;
}

.project-timeline-link {
    width: auto;
    min-width: 36px;
    height: 36px;
    flex: 0 0 auto;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid #E1E1E1;
    border-radius: 5px;
    background: #FFFFFF;
    color: #4B4B4B;
    text-decoration: none;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: normal;
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.project-timeline-link-text {
    white-space: nowrap;
}

.project-timeline-link:hover {
    color: #F84F00;
    border-color: #F84F00;
    transform: translateY(-1px);
}

.project-timeline-link:focus-visible {
    outline: 2px solid rgba(248, 79, 0, 0.22);
    outline-offset: 2px;
}

.project-timeline-link svg {
    width: 18px;
    height: 18px;
}

.project-timeline-link[hidden] {
    display: none !important;
}

.type-select-custom {
    position: relative;
    max-width: 140px;
    cursor: pointer;
    z-index: 10;
}

.performance-select-custom {
    position: relative;
    width: fit-content;
    min-width: 150px;
    max-width: 200px;
    cursor: pointer;
    z-index: 10;
}

.assignee-select-custom {
    position: relative;
    width: fit-content;
    min-width: 120px;
    max-width: 250px;
    cursor: pointer;
    z-index: 10;
}

.date-select-custom {
    position: relative;
    cursor: pointer;
    width: fit-content;
    min-width: 150px;
    max-width: 300px;
}

.select-header {
    padding: 8px 16px;
    padding-right: 50px;
    border-radius: 5px;
    border: 1px solid #E1E1E1;
    background: #FFFFFF !important;
    color: #4B4B4B;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    white-space: nowrap;
}

.select-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-select-custom .select-header {
    white-space: nowrap;
}

.project-select-custom .select-text {
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    padding-right: 4px;
}

.select-arrow {
    position: absolute;
    right: 12px;
    width: 11px;
    height: 7px;
    transition: transform 0.3s ease;
}

.select-arrow[src*="calendarDateIcon.svg"] {
    width: auto;
    height: auto;
    cursor: pointer;
}

.date-range-picker {
    padding: 12px;
    border-bottom: 1px solid #E1E1E1;
}

.date-input-group {
    margin-bottom: 12px;
}

.date-input-group label {
    display: block;
    color: #4B4B4B;
    font-size: 12px;
    margin-bottom: 4px;
    font-weight: 500;
}

.date-picker-input {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #E1E1E1;
    border-radius: 4px;
    font-size: 14px;
    color: #4B4B4B;
}

.date-picker-input:focus {
    outline: none;
    border-color: #F84F00;
    box-shadow: 0 0 0 2px rgba(248, 79, 0, 0.1);
}

.apply-date-btn {
    width: 100%;
    padding: 8px 12px;
    background: #F84F00;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.apply-date-btn:hover {
    background: #e44400;
}

.custom-date-modal {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: none;
    align-items: center;
    justify-content: center;
}

.custom-date-modal.open {
    display: flex;
}

.custom-date-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}

.custom-date-dialog {
    position: relative;
    width: min(420px, calc(100vw - 32px));
    background: #FFFFFF;
    border-radius: 10px;
    border: 1px solid #E1E1E1;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15);
    padding: 18px;
}

.custom-date-title {
    color: #4B4B4B;
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
}

.custom-date-body {
    margin-top: 14px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.custom-date-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.custom-date-field label {
    color: #4B4B4B;
    font-family: 'Lato', sans-serif;
    font-size: 12px;
    font-weight: 500;
}

.custom-date-field input {
    border: 1px solid #E1E1E1;
    border-radius: 6px;
    background: #FFF;
    padding: 9px 10px;
    color: #4B4B4B;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
}

.custom-date-field input:focus {
    outline: none;
    border-color: #F84F00;
    box-shadow: 0 0 0 2px rgba(248, 79, 0, 0.12);
}

.custom-date-error {
    grid-column: 1 / -1;
    min-height: 18px;
    color: #D63333;
    font-family: 'Lato', sans-serif;
    font-size: 12px;
    font-weight: 400;
}

.custom-date-actions {
    margin-top: 14px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.custom-date-btn {
    border-radius: 6px;
    border: 1px solid #E1E1E1;
    padding: 8px 14px;
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

.custom-date-btn-secondary {
    background: #FFFFFF;
    color: #4B4B4B;
}

.custom-date-btn-secondary:hover {
    background: #F7F7F7;
}

.custom-date-btn-primary {
    background: #F84F00;
    border-color: #F84F00;
    color: #FFFFFF;
}

.custom-date-btn-primary:hover {
    background: #E44400;
    border-color: #E44400;
}


.project-select-custom.expanded .select-arrow,
.assignee-select-custom.expanded .select-arrow,
.type-select-custom.expanded .select-arrow,
.performance-select-custom.expanded .select-arrow {
    transform: rotate(180deg);
}

.type-select-custom.expanded > .select-options {
    max-height: 200px !important;
    opacity: 1 !important;
    visibility: visible !important;
    overflow-y: auto !important;
    display: block !important;
}

#assignee-select-options,
#type-select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #FFF;
    border: 1px solid #E1E1E1;
    border-top: none;
    border-radius: 0 0 5px 5px;
    z-index: 1000;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.assignee-select-custom.expanded #assignee-select-options,
.type-select-custom.expanded #type-select-options {
    max-height: 200px !important;
    opacity: 1 !important;
    visibility: visible !important;
    overflow-y: auto !important;
}

.date-select-custom.expanded .select-arrow {
    transform: none;
}

.date-select-custom .select-header {
    padding-left: 16px;
}

.select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #FFF;
    border: 1px solid #E1E1E1;
    border-top: none;
    border-radius: 0 0 5px 5px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
}

.project-select-custom.expanded .select-options,
.date-select-custom.expanded .select-options,
.assignee-select-custom.expanded .select-options,
.type-select-custom.expanded .select-options,
.performance-select-custom.expanded .select-options {
    max-height: 200px !important;
    opacity: 1 !important;
    visibility: visible !important;
    overflow-y: auto;
    display: block !important;
}

.project-select-custom:not(.expanded) .select-header,
.date-select-custom:not(.expanded) .select-header,
.assignee-select-custom:not(.expanded) .select-header,
.type-select-custom:not(.expanded) .select-header,
.performance-select-custom:not(.expanded) .select-header {
    background: #FFFFFF !important;
}

.project-select-custom.expanded .select-header,
.date-select-custom.expanded .select-header,
.assignee-select-custom.expanded .select-header,
.type-select-custom.expanded .select-header,
.performance-select-custom.expanded .select-header {
    background: transparent;
    border-radius: 5px 5px 0 0;
}

.select-option {
    padding: 8px 16px;
    color: #4B4B4B;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.project-select-custom .select-option {
    white-space: nowrap;
}

.select-option:hover {
    background-color: #FFDBCB;
}

.select-option.selected {
    background-color: #FFF0EA;
    color: #374151;
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.header .subtitle {
    font-size: 1.2em;
    opacity: 0.9;
}

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

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.stat-card[data-stat-id="summary"] {
    position: relative;
}

.stat-card.is-clickable {
    cursor: pointer;
}

.stat-card.is-clickable:hover {
    transform: translateY(-1px);
}

.stats-grid > .stat-card:first-child {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
}

.stats-grid > .stat-card:first-child .stat-label {
    align-self: flex-start;
}

.stat-value {
    font-size: 1.8em;
    font-weight: bold;
    color: #374151;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9em;
    color: #374151;
    letter-spacing: 1px;
}

.stat-label-title {
    color: var(--Neutral-600, #4B4B4B);
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    display: flex;
    align-items: center;
}

.stat-label-count {
    color: var(--Neutral-700, #000);
    font-family: 'Lato', sans-serif;
    font-size: 42px;
    font-style: normal;
    font-weight: 900;
    line-height: normal;
    letter-spacing: -0.5px;
}

.subcards-container {
    display: flex;
    gap: 11px;
    width: 100%;
    height: 125px;
}

.subcard {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-radius: 10px;
    border: 1px solid var(--Neutral-200, #EEE);
    background: var(--Neutral-50, #FFF);
    padding: 16px;
}

.subcard.is-clickable {
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.subcard.is-clickable:hover {
    border-color: #F8A67E;
    box-shadow: 0 10px 24px rgba(248, 79, 0, 0.08);
    transform: translateY(-1px);
}

.subcard-label {
    color: var(--Neutral-600, #4B4B4B);
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.subcard-value-container {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    width: 100%;
}

.subcard-value {
    color: var(--Neutral-700, #000);
    font-family: 'Lato', sans-serif;
    font-size: 42px;
    font-style: normal;
    font-weight: 900;
    line-height: normal;
}

.subcard-percentage {
    border-radius: 5px;
    padding: 4px 8px;
    font-family: 'Lato', sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin-bottom: 12px;
}

.subcard-percentage-open {
    background: var(--Alert-100, #FFEDEE);
    color: var(--Alert-600, #C00);
}

.subcard-percentage-completed {
    background: var(--Pay-100, #E9FFE1);
    color: var(--Pay-600, #58C72D);
}

.percentage-arrow {
    width: 7px;
    height: 6px;
    flex-shrink: 0;
    margin-left: 8px;
    vertical-align: middle;
}

.stats-grid .stat-card.chart-container {
    text-align: left;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.stats-grid .chart-title {
    margin-bottom: 20px;
    flex-shrink: 0;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.chart-header .chart-title {
    margin-bottom: 0;
}

.chart-header-actions {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-left: auto;
}

.workflow-chart-header {
    justify-content: flex-start;
    align-items: flex-start;
}

.workflow-chart-header .chart-header-actions {
    align-items: flex-start;
}

.priority-legend {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.priority-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--Neutral-600, #4B4B4B);
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    transform-origin: right center;
    transition: transform 0.18s ease, font-weight 0.18s ease;
}

.priority-legend-item.is-clickable {
    cursor: pointer;
}

.priority-legend-item.is-highlighted {
    transform: none;
    font-weight: 400;
}

.priority-color-indicator {
    width: 24px;
    height: 11px;
    flex-shrink: 0;
    border-radius: 10px;
    transition: transform 0.18s ease;
}

.priority-legend-item.is-highlighted .priority-color-indicator {
    transform: none;
}

.stats-grid .stat-card.chart-container canvas {
    flex: 1;
    max-height: calc(265px - 24px - 24px - 20px - 1em);
    width: 100% !important;
    height: auto !important;
}

.chart-container-priority {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

#priorityChart {
    width: 100% !important;
    height: auto !important;
    max-width: none;
    max-height: 200px;
    cursor: default;
}

#typeChart {
    width: 100% !important;
    height: auto !important;
    max-width: 250px;
    max-height: 250px;
    margin: 0 auto;
    display: block;
}

.priority-center-text {
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 10;
    text-align: center;
}

.type-center-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10;
    text-align: center;
}

.maturity-card-body {
    width: 100%;
    min-height: 170px;
    display: flex;
    align-items: center;
}

.maturity-bar-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.maturity-bar-row {
    display: grid;
    grid-template-columns: minmax(0, 60%) auto;
    align-items: center;
    gap: 14px;
    justify-content: center;
}

.maturity-bar-track {
    position: relative;
    height: 18px;
    border-radius: 999px;
    overflow: hidden;
    background: #F6E9E2;
    width: 100%;
}

.maturity-bar-fill {
    height: 100%;
    border-radius: 999px;
}

.maturity-bar-count {
    color: var(--Yetz-600, #F84F00);
    font-family: 'Lato', sans-serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 900;
    line-height: 1.1;
    text-align: right;
    white-space: nowrap;
    min-width: 7ch;
}

.priority-center-percentage {
    color: var(--Yetz-600, #F84F00);
    font-family: 'Lato', sans-serif;
    font-size: 42px;
    font-style: normal;
    font-weight: 900;
    line-height: normal;
}

.priority-center-status {
    color: var(--Neutral-600, #4B4B4B);
    text-align: center;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin-top: 4px;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 30px;
}

.chart-container {
    background: #FFFFFF;
    border-radius: 10px;
    padding: 24px;
}

.status-chart-container {
    display: flex;
    flex-direction: column;
}

.status-flow-container {
    margin-top: 20px;
}

.status-bars {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: auto;
    padding-top: 20px;
}

.status-bar-row {
    display: grid;
    grid-template-columns: minmax(120px, 150px) minmax(0, 1fr) 96px;
    align-items: center;
    gap: 14px;
    cursor: pointer;
}

.status-bar-row.is-active .status-bar-label,
.status-bar-row.is-active .status-bar-meta {
    color: #F84F00;
}

.status-bar-row.is-active .status-bar-track {
    box-shadow: 0 0 0 2px rgba(248, 79, 0, 0.18);
}

.status-bar-label {
    color: var(--Neutral-600, #4B4B4B);
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.2;
}

.status-bar-track {
    position: relative;
    width: 100%;
    height: 20px;
    border-radius: 999px;
    overflow: hidden;
    background: #F8EEEA;
}

.status-bar-fill {
    height: 100%;
    border-radius: 999px;
}

.status-bar-meta {
    color: var(--Neutral-600, #4B4B4B);
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    font-style: normal;
    font-weight: 700;
    line-height: 1;
    text-align: right;
    white-space: nowrap;
    width: 96px;
}

.status-chart-summary {
    margin-top: 26px;
    text-align: center;
}

.status-summary-total {
    color: #7A7A7A;
    text-align: center;
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    font-style: normal;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 10px;
}

.status-issues-popup {
    position: fixed;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    width: min(360px, calc(100vw - 24px));
    max-height: min(320px, calc(100vh - 24px));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid #E8DCD5;
    border-radius: 12px;
    background: #FFFFFF;
    box-shadow: 0 16px 40px rgba(75, 75, 75, 0.16);
    padding: 14px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(248, 79, 0, 0.58) transparent;
    scrollbar-gutter: stable;
}

.status-issues-popup::-webkit-scrollbar {
    width: 8px;
}

.status-issues-popup::-webkit-scrollbar-track {
    background: transparent;
    margin: 8px 0;
}

.status-issues-popup::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #F8B08C 0%, #F84F00 100%);
    border-radius: 999px;
    border: 2px solid #FFFFFF;
}

.status-issues-popup::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #F89A6E 0%, #E44400 100%);
}

.status-issues-popup-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1190;
    background: rgba(17, 24, 39, 0.34);
}

.status-issues-popup-backdrop[hidden] {
    display: none !important;
}

.status-issues-popup-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.status-issues-popup-title-group {
    min-width: 0;
}

.status-issues-popup-close {
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #E8DCD5;
    border-radius: 999px;
    background: #FFFFFF;
    color: #4B4B4B;
    font-family: 'Lato', sans-serif;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.status-issues-popup-close:hover {
    color: #F84F00;
    border-color: #F8A67E;
}

.status-issues-popup-title {
    color: #4B4B4B;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
}

.status-issues-popup-count {
    color: #7A7A7A;
    font-family: 'Lato', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.2;
    margin-top: 4px;
}

.status-issues-popup-empty {
    color: #7A7A7A;
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    line-height: 1.4;
    margin-top: 12px;
}

.status-issues-popup-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
    overflow: visible;
    padding-right: 4px;
}

.status-issues-popup-option-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
    overflow: visible;
    padding-right: 4px;
}

.status-issues-popup-accordion-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
    overflow: visible;
    padding-right: 4px;
}

.status-issues-popup-accordion {
    border: 1px solid #E8DCD5;
    border-radius: 10px;
    background: #FFF8F4;
    overflow: hidden;
}

.status-issues-popup-accordion-trigger {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
    padding: 12px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.status-issues-popup-accordion-trigger:hover {
    background: #FFF3EC;
}

.status-issues-popup-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.status-issues-popup-accordion-title {
    color: #4B4B4B;
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}

.status-issues-popup-accordion-count {
    color: #F84F00;
    font-family: 'Lato', sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.status-issues-popup-accordion-description {
    color: #7A7A7A;
    font-family: 'Lato', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.35;
}

.status-issues-popup-accordion-chevron {
    align-self: flex-end;
    color: #A16A45;
    font-size: 13px;
    line-height: 1;
    transition: transform 0.2s ease;
}

.status-issues-popup-accordion.is-expanded .status-issues-popup-accordion-chevron {
    transform: rotate(180deg);
}

.status-issues-popup-accordion-panel {
    padding: 0 12px 12px;
    border-top: 1px solid #F2E6DF;
    background: #FFFFFF;
}

.status-issues-popup-option-list--nested {
    margin-top: 10px;
    max-height: none;
    overflow: visible;
    padding-right: 0;
}

.status-issues-popup-option--nested {
    background: #FFFFFF;
}

.status-issues-popup-empty--nested {
    margin-top: 10px;
}

.status-issues-popup-option {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
    padding: 12px;
    border: 1px solid #E8DCD5;
    border-radius: 10px;
    background: #FFF8F4;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.status-issues-popup-option:hover {
    border-color: #F8A67E;
    background: #FFF3EC;
}

.status-issues-popup-option-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.status-issues-popup-option-title {
    color: #4B4B4B;
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}

.status-issues-popup-option-count {
    color: #F84F00;
    font-family: 'Lato', sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.status-issues-popup-option-description {
    color: #7A7A7A;
    font-family: 'Lato', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.35;
}

.status-issues-popup-link {
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 10px;
    background: #FFF8F4;
    border: 1px solid transparent;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.status-issues-popup-link:hover {
    border-color: #F8A67E;
    background: #FFF3EC;
}

.status-issues-popup-link--fallback {
    display: inline-flex;
    margin-top: 12px;
    color: #F84F00;
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}

.status-issues-popup-link.is-disabled {
    cursor: default;
    pointer-events: none;
    opacity: 0.7;
}

.status-issues-popup-key {
    color: #F84F00;
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}

.status-issues-popup-summary {
    color: #4B4B4B;
    font-family: 'Lato', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.35;
}

body.status-sheet-open {
    overflow: hidden;
}

.status-issues-popup.is-mobile-sheet {
    left: 12px !important;
    right: 12px !important;
    top: auto !important;
    bottom: 12px;
    width: auto;
    max-width: none;
    max-height: min(78vh, 640px);
    border-radius: 18px;
    padding: 16px;
}

.status-issues-popup.is-mobile-sheet .status-issues-popup-list {
    max-height: none;
}

.status-issues-popup.is-mobile-sheet .status-issues-popup-option-list--nested,
.status-issues-popup.is-mobile-sheet .status-issues-popup-accordion-list {
    max-height: none;
}

.line-chart-wrapper {
    position: relative;
    width: 100%;
    min-height: 260px;
}

.timeline-chart-container {
    height: 480px;
    margin-top: 16px;
}

.cfd-chart-container {
    height: auto;
    overflow: hidden;
}

.timeline-chart-wrapper {
    height: 400px;
}

.cfd-chart-wrapper {
    height: 320px;
}

#timelineChart,
#cfdChart,
#cumulativeCfdChart {
    width: 100% !important;
    height: 100% !important;
}

.chart-title {
    color: #4B4B4B;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    display: flex;
    align-items: center;
    margin-bottom: 22px;
}

.workflow-container .chart-title {
    justify-content: space-between;
}

.chart-title span {
    display: flex;
    align-items: center;
}

.chart-audit-button {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    border: 1px solid #E7DDD6;
    border-radius: 999px;
    background: #FFF;
    color: #8E8E8E;
    font-family: 'Lato', sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.chart-audit-button:hover {
    color: #F84F00;
    border-color: rgba(248, 79, 0, 0.35);
    box-shadow: 0 8px 18px rgba(248, 79, 0, 0.12);
    transform: translateY(-1px);
}

.chart-audit-button:focus-visible {
    outline: 2px solid rgba(248, 79, 0, 0.18);
    outline-offset: 2px;
}

.chart-audit-button--floating {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
}

.audit-modal {
    position: fixed;
    inset: 0;
    z-index: 2200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.audit-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.audit-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.38);
    backdrop-filter: blur(2px);
}

.audit-modal-dialog {
    position: relative;
    width: min(760px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow: hidden;
    padding: 18px;
    border-radius: 16px;
    border: 1px solid #F1E4DB;
    background: #FFF;
    box-shadow: 0 28px 60px rgba(17, 24, 39, 0.18);
}

.audit-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.audit-modal-title-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.audit-modal-kicker {
    color: #F84F00;
    font-family: 'Lato', sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.audit-modal-title {
    color: #111827;
    font-family: 'Lato', sans-serif;
    font-size: 21px;
    font-weight: 900;
    line-height: 1.15;
}

.audit-modal-subtitle {
    color: #6B7280;
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.35;
}

.audit-modal-close {
    border: 1px solid #E7DDD6;
    border-radius: 999px;
    background: #FFF;
    color: #4B4B4B;
    font-family: 'Lato', sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: normal;
    padding: 8px 12px;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.audit-modal-close:hover {
    color: #F84F00;
    border-color: rgba(248, 79, 0, 0.35);
    transform: translateY(-1px);
}

.audit-modal-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: auto;
    padding-right: 2px;
}

.audit-modal-intro {
    color: #4B5563;
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.45;
    margin: 0;
}

.audit-modal-attention {
    border: 1px solid rgba(248, 79, 0, 0.18);
    border-radius: 12px;
    background: linear-gradient(180deg, #FFF7F2 0%, #FFF 100%);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.audit-modal-attention-title {
    color: #C2410C;
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    font-weight: 900;
    line-height: normal;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.audit-modal-attention-description {
    color: #7C2D12;
    font-family: 'Lato', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.45;
}

.audit-modal-block {
    border: 1px solid #F1E4DB;
    border-radius: 12px;
    background: linear-gradient(180deg, #FFF 0%, #FFF9F5 100%);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.audit-modal-block-title {
    color: #111827;
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    font-weight: 800;
    line-height: normal;
}

.audit-modal-block-description {
    color: #4B5563;
    font-family: 'Lato', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.45;
}

.audit-modal-code {
    margin: 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: #FFF;
    border: 1px solid #EFE5DE;
    color: #111827;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
    overflow: auto;
}

.audit-modal-jql-link {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(248, 79, 0, 0.22);
    background: #FFF4EE;
    color: #F84F00;
    text-decoration: none;
    font-family: 'Lato', sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: normal;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.audit-modal-jql-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(248, 79, 0, 0.08);
    border-color: rgba(248, 79, 0, 0.35);
}

.audit-modal-issues-count {
    color: #4B5563;
    font-family: 'Lato', sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: normal;
}

.audit-modal-block-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.audit-modal-export-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(248, 79, 0, 0.22);
    background: #FFF4EE;
    color: #F84F00;
    text-decoration: none;
    font-family: 'Lato', sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: normal;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.audit-modal-export-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(248, 79, 0, 0.08);
    border-color: rgba(248, 79, 0, 0.35);
}

.audit-modal-issue-groups {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.audit-modal-issue-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.audit-modal-issue-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.audit-modal-issue-group-title {
    color: #1F2937;
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    font-weight: 800;
    line-height: normal;
}

.audit-modal-issue-group-count {
    color: #6B7280;
    font-family: 'Lato', sans-serif;
    font-size: 10px;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.audit-modal-issues-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.audit-modal-issue {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #F3E8E0;
    background: #FFF;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.audit-modal-issue:hover {
    border-color: rgba(248, 79, 0, 0.35);
    box-shadow: 0 10px 24px rgba(248, 79, 0, 0.08);
    transform: translateY(-1px);
}

.audit-modal-issue-key {
    color: #F84F00;
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    font-weight: 800;
    line-height: normal;
}

.audit-modal-issue-summary {
    color: #4B4B4B;
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
}

.audit-modal-empty {
    color: #6B7280;
    font-family: 'Lato', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.45;
    padding: 4px 0;
}

#cycle-time-info {
    color: var(--Neutral-700, #000);
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    border-radius: 5px;
    background: var(--Neutral-200, #EEE);
    padding: 8px 12px;
}

.workflow-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 14px;
}

.charts-grid .workflow-container {
    margin-bottom: 0;
}

.workflow-legend {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.workflow-chart-header .workflow-legend {
    margin-left: 0;
    align-items: flex-end;
}

#workflow-legend {
    margin-left: 0;
    align-items: flex-end;
}

.workflow-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--Neutral-600, #4B4B4B);
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.workflow-color-indicator {
    width: 24px;
    height: 11px;
    flex-shrink: 0;
    border-radius: 10px;
}

.workflow-flow {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 70px;
    border-radius: 12px;
    overflow: visible;
}

.workflow-item {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #374151;
    position: relative;
    border-right: 1px solid rgba(255, 255, 255, 0.4);
    min-height: 100%;
}

.workflow-item:first-child {
    border-radius: 10px 0 0 10px;
}

.workflow-item:last-child {
    border-radius: 0 10px 10px 0;
}

.workflow-item:last-child {
    border-right: none;
}

.workflow-item.is-active {
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.82), 0 0 0 2px rgba(248, 79, 0, 0.18);
}

.workflow-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    padding-top: 14px;
    padding-left: 12px;
    width: 100%;
    height: 70px;
}

.workflow-status {
    font-size: 0.85em;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.2;
}

.workflow-time {
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin-bottom: 2px;
}

.workflow-percentage {
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.workflow-flow-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 20px;
    overflow-x: hidden;
    width: 100%;
}

.workflow-flow-container::-webkit-scrollbar {
    height: 8px;
}

.workflow-flow-container::-webkit-scrollbar-track {
    background: transparent;
}

.workflow-flow-container::-webkit-scrollbar-thumb {
    background-color: #F84F00;
    border-radius: 4px;
}

.workflow-flow-container::-webkit-scrollbar-thumb:hover {
    background-color: #e44400;
}

.workflow-flow-container {
    scrollbar-width: thin;
    scrollbar-color: #F84F00 transparent;
}

.workflow-center-text {
    position: static;
    transform: none;
    margin-top: 20px;
    pointer-events: none;
    z-index: 10;
    text-align: center;
    align-self: center;
    width: 100%;
}

.workflow-cycle-extremes {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    max-width: 320px;
}

.workflow-cycle-extreme {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--Neutral-700, #000);
    font-family: 'Lato', sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    padding: 7px 12px;
    border-radius: 5px;
    border: 0;
    background: var(--Neutral-200, #EEE);
    text-align: left;
    text-decoration: none;
    box-sizing: border-box;
    transition: background-color 0.18s ease, box-shadow 0.18s ease;
}

.workflow-cycle-extreme:hover {
    background: var(--Neutral-200, #EEE);
    box-shadow: none;
}

.workflow-cycle-extreme-name {
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    font-style: inherit;
    font-weight: inherit;
    line-height: inherit;
    min-width: 0;
    flex: 1 1 auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.workflow-cycle-extreme-time {
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    font-style: inherit;
    font-weight: inherit;
    line-height: inherit;
    flex: 0 0 auto;
    white-space: nowrap;
}

.workflow-labels {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 40px;
    margin-bottom: 10px;
}

.workflow-label {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: var(--Neutral-600, #4B4B4B);
    font-family: 'Lato', sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 13px;
    text-align: left;
    padding: 0;
    overflow: hidden;
    word-wrap: break-word;
    white-space: normal;
    text-overflow: ellipsis;
    max-height: calc(13px * 3);
}

.workflow-label {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    align-self: center;
}

.workflow-total {
    background-color: #E5F2FF;
    color: #374151;
    padding: 15px 20px;
    text-align: center;
    font-size: 1.2em;
    font-weight: bold;
    border-radius: 0 0 12px 12px;
    margin-top: 0;
    margin-bottom: 15px;
    width: 100%;
}

.loading {
    text-align: center;
    color: #374151;
    font-size: 1.5em;
    margin-top: 50px;
}

.error {
    background: rgba(220, 53, 69, 0.9);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin: 20px;
}

.metadata {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    color: #374151;
}

.refresh-btn {
    background: #374151;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1em;
    margin: 10px;
    transition: transform 0.3s ease;
}

.refresh-btn:hover {
    transform: scale(1.05);
    background: #1f2937;
}

.chart-icon {
    margin-right: 8px;
    font-size: 1.2em;
}

.assignee-list {
    display: flex;
    flex-direction: column;
    padding: 10px 0;
}

.assignee-item {
    display: flex;
    align-items: center;
    gap: 21px;
    padding: 8px 0;
}

.assignee-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.assignee-avatar.no-avatar {
    font-family: 'Lato', sans-serif;
    background: #F84F00;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.assignee-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.assignee-name {
    font-family: 'Lato', sans-serif;
    color: #4B4B4B;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.assignee-progress {
    display: flex;
    align-items: center;
    flex: 1;
}

.progress-bar {
    flex: 1;
    height: 10px;
    background: #FFDBCB;
    border-radius: 4px 0 4px 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #F84F00;
    border-radius: 4px 0 4px 0;
    transition: width 0.3s ease;
}

.assignee-count {
    font-family: 'Lato', sans-serif;
    color: #4B4B4B;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.select-option-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 8px;
    object-fit: cover;
    background-color: #f0f0f0;
    border: 1px solid #e0e0e0;
    flex-shrink: 0;
}

.select-option-avatar.unassigned {
    background-color: #6c757d;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}


@media (max-width: 768px) {
    .container,
    body.fullscreen-mode .container {
        padding: 14px;
    }

    .header {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 12px 0 18px;
    }

    .logo-section {
        width: 100%;
    }

    .logo {
        height: 34px;
        margin-right: 8px;
    }

    .filters-maon {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .project-selector {
        width: 100%;
        max-width: 100%;
        align-items: stretch;
        gap: 10px;
    }

    .project-select-custom {
        flex: 1 1 auto;
        width: auto !important;
        min-width: 0;
        max-width: 100%;
    }

    .project-select-custom .select-header,
    .date-select-custom .select-header {
        width: 100%;
    }

    .project-select-custom .select-text,
    .date-select-custom .select-text {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .date-selector,
    .date-select-custom {
        width: 100%;
        max-width: none;
        min-width: 0;
    }

    .date-select-custom {
        width: 100%;
    }

    .select-options,
    #assignee-select-options,
    #type-select-options {
        min-width: 100%;
        max-width: 100%;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

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

    .stat-card,
    .chart-container,
    .workflow-container {
        padding: 18px;
    }

    .subcards-container {
        gap: 12px;
        height: auto;
    }

    .subcard {
        min-height: 112px;
    }

    .stat-label-count {
        font-size: 36px;
    }

    .subcard-value {
        font-size: 38px;
    }

    .chart-header,
    .workflow-chart-header {
        flex-wrap: wrap;
        gap: 12px;
        align-items: flex-start;
    }

    .chart-header-actions {
        width: 100%;
        justify-content: space-between;
        align-items: center;
        margin-left: 0;
    }

    .chart-title {
        margin-bottom: 0;
        flex-wrap: wrap;
        line-height: 1.3;
    }

    .priority-legend,
    .workflow-legend,
    .cfd-legend {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px 12px;
    }

    .workflow-chart-header .workflow-legend,
    #workflow-legend {
        margin-left: 0;
        align-items: flex-start;
    }

    .workflow-cycle-extremes {
        max-width: 100%;
        width: 100%;
    }

    .audit-modal {
        padding: 12px;
    }

    .audit-modal-dialog {
        width: min(100%, calc(100vw - 16px));
        max-height: calc(100vh - 24px);
        padding: 14px;
    }

    .audit-modal-header {
        flex-direction: column;
    }

    .audit-modal-close {
        align-self: flex-end;
    }

    #cycle-time-info {
        max-width: 100%;
        white-space: normal;
    }

    .chart-container-priority {
        min-height: 220px;
    }

    #priorityChart {
        max-height: 180px;
    }

    .priority-center-text {
        width: calc(100% - 40px);
    }

    .maturity-card-body {
        min-height: 140px;
    }

    .maturity-bar-row {
        grid-template-columns: 1fr auto;
        gap: 8px 12px;
    }

    .maturity-bar-label {
        grid-column: 1;
        grid-row: 1;
    }

    .maturity-bar-count {
        grid-column: 2;
        grid-row: 1;
        font-size: 20px;
    }

    .maturity-bar-track {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
    }

    .priority-center-percentage {
        font-size: 34px;
    }

    .priority-center-status {
        font-size: 13px;
    }

    .status-bar-row {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "label meta"
            "track track";
        gap: 8px 12px;
    }

    .status-bar-label {
        grid-area: label;
    }

    .status-bar-meta {
        grid-area: meta;
        width: auto;
        font-size: 12px;
        text-align: right;
    }

    .status-bar-track {
        grid-area: track;
    }

    .status-chart-summary {
        margin-top: 22px;
    }

    .workflow-flow {
        height: 64px;
    }

    .workflow-flow-container {
        padding: 0 0 6px;
        margin-top: 16px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .workflow-flow-container::-webkit-scrollbar {
        height: 6px;
    }

    .workflow-time {
        font-size: 15px;
    }

    .workflow-percentage {
        font-size: 11px;
    }

    .workflow-content {
        height: 64px;
        padding-top: 12px;
        padding-left: 10px;
    }

    .workflow-center-text {
        margin-top: 16px;
    }

    .cfd-chart-container {
        overflow: visible;
    }

    .cfd-chart-container .chart-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .cfd-chart-wrapper {
        height: 280px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .cfd-chart-wrapper.mobile-scroll canvas {
        display: block;
        min-width: var(--mobile-chart-min-width, 100%);
        width: var(--mobile-chart-min-width, 100%) !important;
    }

    .custom-date-dialog {
        width: min(420px, calc(100vw - 24px));
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .container,
    body.fullscreen-mode .container {
        padding: 12px;
    }

    .header {
        gap: 12px;
        padding: 8px 0 16px;
    }

    .logo {
        height: 30px;
    }

    .project-timeline-link {
        padding: 0 10px;
        gap: 6px;
        font-size: 13px;
    }

    .select-header {
        padding: 10px 14px;
        padding-right: 42px;
    }

    .stats-grid,
    .charts-grid {
        gap: 10px;
    }

    .stat-card,
    .chart-container,
    .workflow-container {
        padding: 16px;
    }

    .subcards-container {
        flex-direction: column;
    }

    .subcard {
        min-height: 96px;
    }

    .stat-label-count {
        font-size: 32px;
    }

    .subcard-value {
        font-size: 34px;
    }

    .priority-center-percentage {
        font-size: 28px;
    }

    .priority-center-status {
        font-size: 12px;
    }

    .priority-legend-item,
    .workflow-legend-item {
        font-size: 12px;
        gap: 6px;
    }

    .chart-audit-button {
        width: 24px;
        height: 24px;
        flex-basis: 24px;
    }

    .chart-audit-button--floating {
        top: 12px;
        right: 12px;
    }

    .priority-color-indicator,
    .workflow-color-indicator {
        width: 20px;
        height: 10px;
    }
    .maturity-card-body {
        min-height: 120px;
    }

    .status-bar-row {
        gap: 6px 10px;
    }
    .custom-date-body {
        grid-template-columns: 1fr;
    }

    .custom-date-actions {
        flex-direction: column-reverse;
    }

    .custom-date-btn {
        width: 100%;
    }

    .audit-modal-dialog {
        padding: 12px;
        border-radius: 14px;
    }

    .audit-modal-title {
        font-size: 18px;
    }

    .audit-modal-code {
        font-size: 10px;
    }

    .cfd-chart-wrapper {
        height: 240px;
    }

    .status-issues-popup.is-mobile-sheet {
        left: 8px !important;
        right: 8px !important;
        bottom: 8px;
    }
}

.skeleton-container {
    max-width: 1400px;
    margin: 0 auto;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.skeleton-line {
    background: linear-gradient(
        90deg,
        #f0f0f0 25%,
        #e0e0e0 50%,
        #f0f0f0 75%
    );
    background-size: 1000px 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    height: 20px;
}

.skeleton-circle {
    background: linear-gradient(
        90deg,
        #f0f0f0 25%,
        #e0e0e0 50%,
        #f0f0f0 75%
    );
    background-size: 1000px 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 50%;
}

.skeleton-rect {
    background: linear-gradient(
        90deg,
        #f0f0f0 25%,
        #e0e0e0 50%,
        #f0f0f0 75%
    );
    background-size: 1000px 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

.skeleton-stat-value {
    width: 120px;
    height: 60px;
    margin-bottom: 10px;
    background: linear-gradient(
        90deg,
        #f0f0f0 25%,
        #e0e0e0 50%,
        #f0f0f0 75%
    );
    background-size: 1000px 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

.skeleton-stat-label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.skeleton-workflow {
    display: flex;
    height: 70px;
    gap: 2px;
    border-radius: 12px;
    overflow: hidden;
}

.skeleton-workflow-item {
    background: linear-gradient(
        90deg,
        #f0f0f0 25%,
        #e0e0e0 50%,
        #f0f0f0 75%
    );
    background-size: 1000px 100%;
    animation: shimmer 1.5s infinite;
    height: 100%;
}

.skeleton-assignee-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.skeleton-assignee-item {
    display: flex;
    align-items: center;
    gap: 21px;
}

.skeleton-assignee-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skeleton.stat-card,
.skeleton.chart-container,
.skeleton.workflow-container {
    background: #FFFFFF;
    border-radius: 10px;
    padding: 24px;
}

.skeleton.subcard {
    background: #FFFFFF;
    border: 1px solid #EEE;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* No data message styles */
.no-data-message {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 40px;
    background: #FFFFFF;
    border-radius: 10px;
    margin: 20px auto;
    max-width: 600px;
}

.no-data-content {
    text-align: center;
    max-width: 400px;
}

.no-data-content svg {
    margin-bottom: 24px;
    opacity: 0.5;
}

.no-data-content h2 {
    color: #374151;
    font-family: 'Lato', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.no-data-content p {
    color: #6B7280;
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
}

.audit-modal-table-wrapper {
    overflow-x: auto;
}

.audit-modal-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
}

.audit-modal-table.audit-modal-table--compact {
    min-width: 0;
}

.audit-modal-table th,
.audit-modal-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #F3E8E0;
    text-align: left;
    vertical-align: top;
    font-family: 'Lato', sans-serif;
    font-size: 12px;
    color: #4B4B4B;
}

.audit-modal-table th {
    font-size: 11px;
    font-weight: 800;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.audit-modal-table tfoot td {
    font-weight: 800;
    color: #1F2937;
    border-bottom: none;
    border-top: 2px solid #F3E8E0;
}

.audit-modal-table-issue {
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-decoration: none;
}

.audit-modal-table-issue-key {
    color: #F84F00;
    font-size: 13px;
    font-weight: 800;
    line-height: normal;
}

.audit-modal-table-issue-summary {
    color: #4B4B4B;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
}
