﻿:root {
    /* Light Theme Tokens */
    --font-sans: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
    
    --bg-app: #eef2f7;
    --bg-card: rgba(255, 255, 255, 0.96);
    --border-color: rgba(203, 213, 225, 0.95);
    --surface-muted: #f8fafc;
    
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-inverse: #ffffff;
    
    --primary: hsl(224, 76%, 48%);
    --primary-hover: hsl(224, 76%, 40%);
    --primary-light: rgba(79, 70, 229, 0.1);
    
    --secondary: hsl(174, 60%, 45%);
    --success: hsl(142, 72%, 29%);
    --success-light: rgba(16, 185, 129, 0.1);
    --warning: hsl(38, 92%, 50%);
    --warning-light: rgba(245, 158, 11, 0.1);
    --danger: hsl(346, 84%, 61%);
    --danger-light: rgba(244, 63, 94, 0.1);
    --info: hsl(199, 89%, 48%);
    --info-light: rgba(14, 165, 233, 0.1);
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 92px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    
    --backdrop-blur: blur(12px);
}

[data-theme="dark"] {
    /* Dark Theme Tokens */
    --bg-app: #090d16;
    --bg-card: rgba(17, 24, 39, 0.88);
    --border-color: rgba(51, 65, 85, 0.92);
    --surface-muted: rgba(15, 23, 42, 0.72);
    
    --text-main: #f3f4f6;
    --text-muted: #cbd5e1;
    --text-inverse: #090d16;
    
    --primary: hsl(224, 85%, 60%);
    --primary-hover: hsl(224, 85%, 68%);
    --primary-light: rgba(99, 102, 241, 0.15);
    
    --success: hsl(142, 72%, 40%);
    --success-light: rgba(16, 185, 129, 0.15);
    --warning: hsl(38, 92%, 60%);
    --warning-light: rgba(245, 158, 11, 0.15);
    --danger: hsl(346, 84%, 68%);
    --danger-light: rgba(244, 63, 94, 0.15);
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
}

/* Local Font Awesome v4 asset + v6 class compatibility */
.fa-solid,
.fa-regular,
.fa-brands {
    display: inline-block;
    font: normal normal normal 14px/1 FontAwesome;
    font-size: inherit;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    vertical-align: middle;
}

.fa-solid::before,
.fa-regular::before,
.fa-brands::before {
    display: inline-block;
}

.fa-xmark::before { content: "\f00d"; }
.fa-trash::before { content: "\f1f8"; }
.fa-pen::before { content: "\f040"; }
.fa-pen-to-square::before,
.fa-user-pen::before { content: "\f044"; }
.fa-user-xmark::before,
.fa-user-minus::before { content: "\f235"; }
.fa-user-shield::before { content: "\f2c1"; }
.fa-comments::before { content: "\f086"; }
.fa-user-gear::before { content: "\f085"; }
.fa-people-group::before,
.fa-users-between-lines::before { content: "\f0c0"; }
.fa-users-viewfinder::before { content: "\f0c0"; }
.fa-people-arrows::before { content: "\f0ec"; }
.fa-screwdriver-wrench::before { content: "\f0ad"; }
.fa-shield-halved::before { content: "\f132"; }
.fa-gauge-high::before { content: "\f0e4"; }
.fa-list-check::before { content: "\f046"; }
.fa-clipboard-list::before,
.fa-clipboard-check::before { content: "\f0ea"; }
.fa-broom::before { content: "\f12d"; }
.fa-broom-ball::before { content: "\f0d0"; }
.fa-square-poll-horizontal::before { content: "\f181"; }
.fa-chart-simple::before,
.fa-chart-line::before { content: "\f201"; }
.fa-chart-column::before { content: "\f080"; }
.fa-chart-network::before,
.fa-circle-nodes::before,
.fa-diagram-project::before,
.fa-network-wired::before { content: "\f0e8"; }
.fa-chart-pie::before { content: "\f200"; }
.fa-magnifying-glass-chart::before { content: "\f080"; }
.fa-cloud-bolt::before { content: "\f0e7"; }
.fa-file-circle-plus::before { content: "\f0fe"; }
.fa-file-invoice::before,
.fa-file-lines::before { content: "\f0f6"; }
.fa-magnifying-glass::before { content: "\f002"; }
.fa-filter::before { content: "\f0b0"; }
.fa-arrows-rotate::before { content: "\f021"; }
.fa-clock-rotate-left::before { content: "\f1da"; }
.fa-arrow-right-to-bracket::before,
.fa-right-to-bracket::before { content: "\f090"; }
.fa-arrow-up-right-from-square::before { content: "\f08e"; }
.fa-circle-info::before { content: "\f05a"; }
.fa-circle-check::before { content: "\f058"; }
.fa-vial-circle-check::before { content: "\f0c3"; }
.fa-circle-question::before { content: "\f059"; }
.fa-display::before { content: "\f108"; }
.fa-layer-group::before { content: "\f24d"; }
.fa-arrows-split-up-and-left::before { content: "\f126"; }
.fa-code-branch::before,
.fa-timeline::before { content: "\f126"; }
.fa-up-right-and-down-left-from-center::before { content: "\f065"; }
.fa-right-from-bracket::before { content: "\f08b"; }
.fa-moon::before { content: "\f186"; }
.fa-sun::before { content: "\f185"; }
.fa-triangle-exclamation::before { content: "\f071"; }
.fa-eye::before { content: "\f06e"; }
.fa-lock::before { content: "\f023"; }
.fa-arrow-left::before { content: "\f060"; }
.fa-house::before { content: "\f015"; }
.fa-building-user::before { content: "\f0f7"; }
.fa-trash-can-arrow-up::before { content: "\f1f8"; }
.fa-paper-plane::before { content: "\f1d8"; }
.fa-floppy-disk::before,
.fa-save::before { content: "\f0c7"; }

/* Base resets & typography */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-app);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-hover);
}

.text-muted,
.text-secondary,
small.text-muted,
.small.text-muted {
    color: var(--text-muted) !important;
}

.btn i,
.nav-item a i,
.tab-btn i {
    min-width: 1rem;
    text-align: center;
}

/* Page Layout */
#app-container {
    --sidebar-current-width: var(--sidebar-width);
    display: flex;
    width: 100vw;
    min-height: 100vh;
}

#app-container.sidebar-collapsed {
    --sidebar-current-width: var(--sidebar-collapsed-width);
}

/* Sidebar Navigation */
#sidebar {
    width: var(--sidebar-current-width);
    background: var(--bg-card);
    border-right: 1px solid var(--border-color);
    backdrop-filter: var(--backdrop-blur);
    padding: 1.2rem 1rem;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
    transition: width 0.24s ease, padding 0.24s ease, background 0.3s ease, border 0.3s ease;
}

#sidebar .logo-area {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding-bottom: 1.35rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.15rem;
    min-width: 0;
}

#sidebar .logo-text {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
}

.sidebar-toggle-btn {
    flex: 0 0 34px;
    margin-left: auto;
    width: 34px;
    height: 34px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--surface-muted);
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.sidebar-toggle-btn:hover {
    color: var(--primary);
    border-color: rgba(37, 99, 235, 0.28);
    background: var(--primary-light);
}

.nav-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
}

.nav-item a {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem 0.65rem;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: all 0.2s ease;
    justify-content: flex-start;
    white-space: nowrap;
}

.nav-item a:hover, .nav-item.active a {
    color: var(--primary);
    background: var(--primary-light);
    transform: translateX(4px);
}

.nav-item a i {
    font-size: 1.2rem;
    width: 1.3rem;
    min-width: 1.3rem;
    text-align: center;
}

.nav-item .nav-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#sidebar .user-profile {
    margin-top: 0;
    margin-bottom: 1rem;
    padding: 1rem 0.95rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--text-main);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.96) 100%);
    box-shadow: 0 10px 24px -18px rgba(15, 23, 42, 0.45);
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    width: 100%;
    overflow: hidden;
}

.sidebar-app-version {
    width: 100%;
    margin-top: -0.15rem;
    padding: 0 0.2rem;
    font-size: 0.76rem;
    line-height: 1.3;
    color: var(--text-muted);
    text-align: center;
    letter-spacing: 0.02em;
}

.sidebar-bottom-tools {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-simulation-card {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    width: 100%;
    padding: 0.9rem 0.95rem;
    border: 1px solid rgba(245, 158, 11, 0.32);
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, rgba(255, 247, 237, 0.98) 0%, rgba(255, 251, 235, 0.96) 100%);
    box-shadow: 0 12px 24px -20px rgba(245, 158, 11, 0.55);
}

.sidebar-simulation-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.sidebar-simulation-title {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #b45309;
}

.sidebar-simulation-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.6rem;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.14);
    color: #b45309;
    font-size: 0.72rem;
    font-weight: 700;
}

.sidebar-simulation-body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.sidebar-simulation-name {
    font-size: 0.92rem;
    line-height: 1.35;
    color: #7c2d12;
}

.sidebar-simulation-summary {
    font-size: 0.78rem;
    line-height: 1.4;
    color: #9a3412;
}

.sidebar-simulation-form {
    margin-top: 0.1rem;
}

[data-theme="dark"] .sidebar-simulation-card {
    border-color: rgba(251, 191, 36, 0.28);
    background: linear-gradient(180deg, rgba(69, 26, 3, 0.8) 0%, rgba(67, 20, 7, 0.74) 100%);
    box-shadow: 0 14px 24px -20px rgba(245, 158, 11, 0.4);
}

[data-theme="dark"] .sidebar-simulation-title,
[data-theme="dark"] .sidebar-simulation-badge,
[data-theme="dark"] .sidebar-simulation-summary {
    color: #fde68a;
}

[data-theme="dark"] .sidebar-simulation-name {
    color: #fff7ed;
}

.sidebar-theme-switch {
    display: flex;
    justify-content: flex-start;
    padding-right: 0.1rem;
}

.sidebar-theme-toggle {
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-muted);
    box-shadow: 0 8px 18px -14px rgba(15, 23, 42, 0.35);
}

#sidebar a.user-profile:hover {
    background: linear-gradient(180deg, rgba(243, 244, 255, 0.98) 0%, rgba(237, 242, 255, 0.96) 100%);
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 14px 28px -18px rgba(37, 99, 235, 0.4);
    transform: translateY(-2px);
    color: var(--text-main);
}

[data-theme="dark"] #sidebar .user-profile {
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.96) 0%, rgba(15, 23, 42, 0.92) 100%);
    box-shadow: 0 12px 26px -18px rgba(0, 0, 0, 0.55);
}

[data-theme="dark"] #sidebar a.user-profile:hover {
    background: linear-gradient(180deg, rgba(23, 33, 52, 0.98) 0%, rgba(19, 29, 47, 0.96) 100%);
    border-color: rgba(96, 165, 250, 0.38);
    box-shadow: 0 14px 30px -18px rgba(37, 99, 235, 0.45);
}

[data-theme="dark"] .sidebar-theme-toggle {
    background: rgba(17, 24, 39, 0.96);
    border-color: var(--border-color);
    box-shadow: 0 10px 22px -16px rgba(0, 0, 0, 0.55);
}

.user-avatar {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 8px 18px -10px rgba(37, 99, 235, 0.5);
    margin-top: 0.1rem;
}

.user-info {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    gap: 0.2rem;
}

.user-name {
    font-weight: 700;
    font-size: 0.98rem;
    line-height: 1.28;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.user-role {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 100%;
}

.role-editor-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.role-mode-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
}

.permission-matrix {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--surface-soft);
    overflow: hidden;
}

.permission-matrix-header {
    padding: 1rem 1.1rem 0.8rem;
    border-bottom: 1px solid var(--border-color);
    background: rgba(148, 163, 184, 0.06);
}

.permission-matrix-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.permission-matrix-wrapper {
    max-height: 72vh;
    overflow: auto;
    scrollbar-gutter: stable;
    padding: 0;
}

.permission-matrix-list {
    display: flex;
    flex-direction: column;
}

.permission-matrix-row {
    display: grid;
    grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
    align-items: start;
    border-top: 1px solid var(--border-color);
}

.permission-matrix-row:first-child {
    border-top: 0;
}

.permission-matrix-module {
    padding: 1rem 1rem 1rem 1.1rem;
    background: rgba(148, 163, 184, 0.05);
    border-right: 1px solid var(--border-color);
    height: 100%;
}

.permission-matrix-module-title {
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.35;
    margin-bottom: 0.35rem;
}

.permission-matrix-module-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.permission-matrix-permissions {
    padding: 0.95rem 1rem;
}

.permission-cell-stack {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    min-width: 0;
    width: 100%;
}

.permission-cell-empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100%;
    min-height: 2.1rem;
    color: var(--text-muted);
    font-weight: 600;
}

.permission-toggle-card {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.7rem 0.75rem;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--surface-card);
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    overflow-wrap: anywhere;
}

.permission-toggle-card:hover {
    border-color: rgba(37, 99, 235, 0.32);
    box-shadow: 0 8px 18px -16px rgba(37, 99, 235, 0.45);
    transform: translateY(-1px);
}

.permission-toggle-head {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
}

.permission-toggle-head .form-check-input {
    margin-top: 0.15rem;
    flex: 0 0 auto;
}

.permission-toggle-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.35;
}

.permission-toggle-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.role-admin-check {
    padding: 0.85rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--surface-card);
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0;
}

.role-admin-check .form-check-input {
    margin: 0;
    float: none;
    flex: 0 0 auto;
}

.role-admin-check .form-check-label {
    margin: 0;
    line-height: 1.35;
}

.maintenance-toggle {
    position: relative;
    width: 62px;
    height: 34px;
    padding: 0;
    border: 0;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.maintenance-toggle-track {
    width: 62px;
    height: 34px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.35);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
    display: block;
}

.maintenance-toggle-thumb {
    position: absolute;
    left: 5px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s ease;
}

.maintenance-toggle.is-active .maintenance-toggle-track {
    background: rgba(245, 158, 11, 0.28);
    border-color: rgba(245, 158, 11, 0.45);
}

.maintenance-toggle.is-active .maintenance-toggle-thumb {
    transform: translateX(27px);
    background: #fff7ed;
}

.login-maintenance-alert {
    background: rgba(245, 158, 11, 0.16);
    color: #fde68a;
}

[data-theme="light"] .login-maintenance-alert,
:root .login-maintenance-alert {
    background: rgba(245, 158, 11, 0.14);
    color: #92400e;
}

/* Main Content Area */
#main-content {
    margin-left: var(--sidebar-current-width);
    flex-grow: 1;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

#main-content > * {
    width: 100%;
    max-width: 1740px;
    margin-left: 0;
    margin-right: auto;
}

/* Header Area */
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.content-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
}

.demand-details-header-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
    width: 100%;
}

.demand-details-switcher {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-wrap: nowrap;
    margin: 0;
}

.demand-details-switcher-select {
    min-width: 360px;
    max-width: 520px;
}

.demand-details-switcher-button,
.demand-details-back-link {
    white-space: nowrap;
}

#app-container.sidebar-collapsed #sidebar {
    padding-left: 0.8rem;
    padding-right: 0.8rem;
}

#app-container.sidebar-collapsed #sidebar .logo-area {
    justify-content: center;
}

#app-container.sidebar-collapsed #sidebar .logo-text,
#app-container.sidebar-collapsed #sidebar .nav-label,
#app-container.sidebar-collapsed #sidebar .user-info {
    display: none;
}

#app-container.sidebar-collapsed #sidebar .nav-item a {
    justify-content: center;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

#app-container.sidebar-collapsed #sidebar .nav-item a:hover,
#app-container.sidebar-collapsed #sidebar .nav-item.active a {
    transform: none;
}

#app-container.sidebar-collapsed #sidebar .sidebar-bottom-tools {
    align-items: center;
}

#app-container.sidebar-collapsed #sidebar .sidebar-simulation-card {
    align-items: center;
    padding: 0.7rem;
}

#app-container.sidebar-collapsed #sidebar .sidebar-simulation-header,
#app-container.sidebar-collapsed #sidebar .sidebar-simulation-body {
    display: none;
}

#app-container.sidebar-collapsed #sidebar .sidebar-theme-switch {
    justify-content: center;
    width: 100%;
}

#app-container.sidebar-collapsed #sidebar .user-profile {
    justify-content: center;
    padding: 0.75rem;
}

#app-container.sidebar-collapsed #sidebar .sidebar-app-version {
    display: none;
}

#app-container.sidebar-collapsed #sidebar .user-avatar {
    margin-top: 0;
}

/* Cards (Glassmorphism) */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    backdrop-filter: var(--backdrop-blur);
    box-shadow: 0 6px 16px -14px rgba(15, 23, 42, 0.22);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.glass-card:hover {
    box-shadow: 0 8px 18px -14px rgba(15, 23, 42, 0.24);
}

[data-theme="dark"] .glass-card {
    box-shadow: 0 8px 18px -14px rgba(0, 0, 0, 0.5);
}

.glass-card .border.rounded,
.glass-card .border,
.glass-card .input-group-text,
.glass-card .form-check-input,
.glass-card .accordion-item,
.glass-card .list-group-item {
    border-color: var(--border-color) !important;
}

.panel-surface {
    background: var(--surface-muted);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.selection-panel {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.9) 0%, rgba(241, 245, 249, 0.72) 100%);
}

[data-theme="dark"] .selection-panel {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.34) 0%, rgba(15, 23, 42, 0.44) 100%);
}

.selection-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.selection-panel-select {
    min-height: 12rem;
}

.selection-panel-note {
    display: block;
    line-height: 1.45;
}

.compact-check {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.compact-check .form-check-input {
    margin-top: 0;
}

.compact-check .form-check-label {
    margin-bottom: 0;
}

.page-panel-sm {
    max-width: 760px;
}

.page-panel-md {
    max-width: 980px;
}

.form-layout {
    width: 100%;
    max-width: 1120px;
}

.form-layout-sm {
    width: 100%;
    max-width: 760px;
}

.form-row-limit {
    width: 100%;
    max-width: 1120px;
}

/* Data tables */
.glass-card .table {
    --bs-table-color: var(--text-main);
    --bs-table-bg: transparent;
    --bs-table-border-color: var(--border-color);
    --bs-table-striped-bg: rgba(148, 163, 184, 0.04);
    --bs-table-striped-color: var(--text-main);
    --bs-table-hover-bg: rgba(99, 102, 241, 0.08);
    --bs-table-hover-color: var(--text-main);
    color: var(--text-main);
    margin-bottom: 0;
}

.glass-card .table > :not(caption) > * > * {
    background-color: transparent;
    color: inherit;
    border-bottom-color: var(--border-color);
    box-shadow: none;
}

.glass-card .table thead th {
    color: var(--text-muted);
    font-weight: 600;
    background: rgba(148, 163, 184, 0.06);
}

.glass-card .table tbody tr {
    transition: background-color 0.2s ease;
}

.glass-card .table-hover > tbody > tr:hover > * {
    background-color: rgba(99, 102, 241, 0.08);
}

.workitems-fixed-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
}

.workitems-fixed-table > :not(caption) > * > * {
    vertical-align: top;
    word-break: break-word;
}

[data-theme="dark"] .glass-card .table thead th {
    background: rgba(30, 41, 59, 0.45);
    color: #cbd5e1;
}

[data-theme="dark"] .glass-card .table-hover > tbody > tr:hover > * {
    background-color: rgba(59, 130, 246, 0.12);
}

[data-theme="dark"] .glass-card .border.rounded,
[data-theme="dark"] .glass-card .border {
    background: rgba(15, 23, 42, 0.22);
}

[data-theme="dark"] .glass-card .h4,
[data-theme="dark"] .glass-card .h5,
[data-theme="dark"] .glass-card .h6,
[data-theme="dark"] .glass-card .font-weight-bold,
[data-theme="dark"] .glass-card .font-weight-medium {
    color: var(--text-main);
}

/* Dashboard Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.metric-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.metric-data h3 {
    font-size: 2rem;
    font-weight: 700;
}

.metric-data p {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
}

.metric-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.compact-hero {
    padding: 1.1rem 1.35rem;
    min-height: auto;
}

.compact-hero h2 {
    font-size: 1.4rem;
    font-weight: 700;
}

.compact-hero p {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.92rem;
}

.compact-hero-icon {
    width: 54px;
    height: 54px;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 1.4rem;
}

.dashboard-block {
    padding: 1.25rem 1.35rem;
}

.dashboard-block-header,
.dashboard-subsection-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.dashboard-block-header h5,
.dashboard-subsection-header h6 {
    font-weight: 700;
}

.dashboard-header-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    width: min(100%, 240px);
    margin-left: auto;
    flex: 0 0 auto;
}

.dashboard-header-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    width: 100%;
    white-space: nowrap;
}

.compact-metrics {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.85rem;
}

.compact-metric {
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.75rem 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

[data-theme="dark"] .compact-metric {
    background: rgba(15, 23, 42, 0.35);
}

.compact-metric-label {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.compact-metric strong {
    color: var(--text-main);
    font-size: 1.55rem;
    line-height: 1.1;
}

.compact-metric,
.compact-metric-label,
.compact-metric strong {
    min-width: 0;
}

.compact-metric-accent {
    border-color: rgba(59, 130, 246, 0.25);
    background: rgba(59, 130, 246, 0.08);
}

[data-theme="dark"] .compact-metric-accent {
    background: rgba(59, 130, 246, 0.12);
}

.dashboard-subsection + .dashboard-subsection {
    margin-top: 1rem;
}

.dashboard-subsection {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.dashboard-table {
    color: var(--text-main);
}

@media (max-width: 1399.98px) {
    .compact-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .compact-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 479.98px) {
    .compact-metrics {
        grid-template-columns: 1fr;
    }
}

.dashboard-table thead th {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 700;
    border-bottom: 2px solid var(--border-color);
    background: transparent;
}

.dashboard-table td {
    vertical-align: middle;
}

.dashboard-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    border-radius: 4px;
    box-shadow: none;
    min-width: 7rem;
    white-space: nowrap;
}

.dashboard-action-btn i {
    margin-right: 0 !important;
}

.dashboard-action-label {
    display: inline;
    line-height: 1;
}

.dashboard-row-actions {
    align-items: center;
    flex-wrap: nowrap;
}

.dashboard-inline-filter-form {
    display: grid;
    grid-template-columns: minmax(190px, 260px) auto;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    min-width: 0;
    width: min(100%, 390px);
}

.dashboard-inline-filter-select {
    min-width: 0;
    width: 100%;
}

.dashboard-inline-filter-btn {
    min-width: 110px;
    white-space: nowrap;
    justify-self: end;
}

@media (max-width: 1439.98px) {
    .dashboard-col-application-applicant,
    .dashboard-col-demand-source {
        display: none;
    }

    .dashboard-action-btn {
        min-width: 2.45rem;
        width: 2.45rem;
        height: 2.45rem;
        padding-left: 0.45rem !important;
        padding-right: 0.45rem !important;
    }

    .dashboard-action-label {
        display: none;
    }
}

@media (max-width: 1279.98px) {
    .dashboard-col-application-record,
    .dashboard-col-demand-created,
    .dashboard-col-pending-demand {
        display: none;
    }

    .dashboard-inline-filter-form {
        margin-left: 0;
        width: min(100%, 390px);
    }
}

@media (max-width: 575.98px) {
    .dashboard-inline-filter-form {
        width: 100%;
        grid-template-columns: 1fr;
    }

    .dashboard-inline-filter-select {
        width: 100%;
    }

    .dashboard-inline-filter-btn {
        width: 100%;
        justify-self: stretch;
    }
}

@media (max-width: 1099.98px) {
    .dashboard-col-application-type,
    .dashboard-col-demand-type {
        display: none;
    }

    .compact-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.dashboard-activity-feed {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.dashboard-activity-feed-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    padding: 0.78rem 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.dashboard-activity-feed-head {
    display: flex;
    justify-content: space-between;
    gap: 0.65rem;
    align-items: center;
    flex-wrap: wrap;
}

.dashboard-activity-feed-body {
    color: var(--text-main);
    font-size: 0.94rem;
    line-height: 1.55;
}

.dashboard-activity-feed-link {
    color: var(--text-main);
    font-weight: 700;
    text-decoration: none;
}

a.dashboard-activity-feed-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

.dashboard-activity-item-type {
    display: inline-flex;
    align-items: center;
    font-size: 0.74rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.22rem 0.55rem;
    background: rgba(59, 130, 246, 0.08);
    color: var(--primary);
}

.dashboard-activity-feed-item.is-comment .dashboard-activity-item-type {
    background: rgba(14, 165, 233, 0.1);
    color: #0284c7;
}

.dashboard-activity-feed-item.is-status .dashboard-activity-item-type {
    background: rgba(249, 115, 22, 0.12);
    color: #ea580c;
}

.dashboard-activity-feed-item.is-approval .dashboard-activity-item-type {
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
}

.dashboard-activity-feed-item.is-file .dashboard-activity-item-type {
    background: rgba(168, 85, 247, 0.12);
    color: #7e22ce;
}

.dashboard-activity-item-meta {
    color: var(--text-muted);
    font-size: 0.76rem;
}

.active-demand-hero {
    padding: 1.15rem 1.35rem;
    border: 1px solid rgba(59, 130, 246, 0.18);
    background:
        linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(255, 255, 255, 0.88)),
        var(--surface-card);
}

[data-theme="dark"] .active-demand-hero {
    background:
        linear-gradient(135deg, rgba(59, 130, 246, 0.14), rgba(15, 23, 42, 0.92)),
        var(--surface-card);
    border-color: rgba(96, 165, 250, 0.22);
}

.active-demand-hero-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.active-demand-hero-icon {
    width: 3rem;
    height: 3rem;
    flex: 0 0 3rem;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.12);
    color: var(--primary);
    font-size: 1.15rem;
}

.active-demand-hero-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.active-demand-hero-label {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.active-demand-hero-title {
    color: var(--text-main);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
}

.active-demand-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.page-filter-toolbar {
    padding: 1rem 1.15rem;
}

.page-filter-grid {
    display: grid;
    grid-template-columns: minmax(280px, 1.7fr) minmax(220px, 1fr) auto;
    gap: 1rem;
    align-items: end;
}

.page-filter-grid-kanban {
    grid-template-columns: minmax(320px, 1.6fr) minmax(220px, 1fr) minmax(180px, 0.85fr) auto;
}

.page-filter-grid-reports {
    grid-template-columns: minmax(220px, 1fr) minmax(320px, 1.5fr) minmax(180px, 0.85fr) auto;
}

.page-filter-grid-applications {
    grid-template-columns: minmax(260px, 1.55fr) minmax(170px, 0.8fr) minmax(170px, 0.8fr) auto;
}

.page-filter-field {
    min-width: 0;
}

.page-filter-field-wide {
    min-width: 0;
}

.page-filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: flex-start;
}

.page-filter-actions-double {
    min-width: 280px;
}

.demand-application-header-btn {
    min-width: 13.5rem;
    justify-content: center;
}

.metrics-grid-demand-applications {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.demand-application-table-wrap {
    overflow-x: auto;
}

.demand-application-table {
    min-width: 0;
}

.demand-application-col-no {
    width: 9.5rem;
}

.demand-application-col-type {
    width: 11rem;
}

.demand-application-col-applicant {
    width: 12.5rem;
}

.demand-application-col-date {
    width: 9.5rem;
    white-space: nowrap;
}

.demand-application-col-status {
    width: 10rem;
}

.demand-application-col-actions {
    width: 14rem;
}

.demand-application-row-actions {
    flex-wrap: nowrap;
}

.demand-application-action-btn {
    min-width: 6.35rem;
}

.workitem-table-toolbar {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    gap: 1rem;
}

.workitem-table-filter {
    min-width: 0;
    width: min(220px, 100%);
}

.dashboard-calendar-header {
    align-items: flex-end;
    gap: 0.9rem;
}

.dashboard-calendar-header p {
    max-width: 48rem;
}

.dashboard-calendar-toolbar {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
    flex-shrink: 0;
    margin-left: auto;
}

.dashboard-calendar-navigation {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}

.dashboard-calendar-nav {
    width: 2.3rem;
    min-width: 2.3rem;
    height: 2.3rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.dashboard-calendar-collapse {
    width: 7.6rem;
    min-width: 7.6rem;
    height: 2.3rem;
    padding-inline: 0.85rem;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
    justify-content: center;
}

.dashboard-calendar-collapse i {
    transition: transform 0.2s ease;
}

.dashboard-collapsible-panel.is-collapsed .dashboard-collapsible-body {
    display: none;
}

.dashboard-calendar-panel.is-collapsed .dashboard-calendar-body {
    display: none;
}

.dashboard-calendar-filter-form {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.45rem;
}

.dashboard-calendar-month-select {
    min-width: 14rem;
}

.dashboard-calendar-apply {
    min-width: 6rem;
    height: 2.3rem;
    padding-inline: 0.9rem;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.dashboard-calendar-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.dashboard-calendar-summary-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.32rem 0.62rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.08);
    color: var(--text-main);
    border: 1px solid rgba(59, 130, 246, 0.16);
    font-size: 0.76rem;
    font-weight: 600;
}

.dashboard-calendar-summary-chip.is-danger {
    background: rgba(220, 38, 38, 0.08);
    border-color: rgba(220, 38, 38, 0.18);
    color: #b91c1c;
}

.dashboard-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.5rem;
}

.dashboard-calendar-weekday {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0 0.2rem;
}

.dashboard-calendar-day {
    min-height: 124px;
    padding: 0.55rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.52);
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

[data-theme="dark"] .dashboard-calendar-day {
    background: rgba(15, 23, 42, 0.32);
}

.dashboard-calendar-day.is-outside {
    opacity: 0.58;
}

.dashboard-calendar-day.is-today {
    border-color: rgba(59, 130, 246, 0.38);
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.1);
}

.dashboard-calendar-day-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.dashboard-calendar-day-number {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
}

.dashboard-calendar-day-count {
    min-width: 1.45rem;
    height: 1.45rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.14);
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
}

.dashboard-calendar-day-items {
    display: flex;
    flex-direction: column;
    gap: 0.32rem;
    overflow-y: auto;
    min-height: 0;
    max-height: 112px;
    padding-right: 0.1rem;
}

.dashboard-calendar-item {
    display: block;
    padding: 0.42rem 0.5rem;
    border-radius: 0.68rem;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(255, 255, 255, 0.72);
    color: inherit;
    text-decoration: none;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    min-width: 0;
}

[data-theme="dark"] .dashboard-calendar-item {
    background: rgba(15, 23, 42, 0.58);
}

a.dashboard-calendar-item:hover {
    transform: translateY(-1px);
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: 0 8px 20px -18px rgba(59, 130, 246, 0.5);
    color: inherit;
}

.dashboard-calendar-item.is-overdue {
    border-color: rgba(220, 38, 38, 0.26);
    background: rgba(254, 242, 242, 0.8);
}

[data-theme="dark"] .dashboard-calendar-item.is-overdue {
    background: rgba(69, 10, 10, 0.3);
}

.dashboard-calendar-item-inline {
    display: flex;
    align-items: center;
    gap: 0.42rem;
    min-width: 0;
}

.dashboard-calendar-item-code {
    flex: 0 0 auto;
    font-size: 0.67rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 0.01em;
}

.dashboard-calendar-item-title {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.73rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-calendar-item-status-dot {
    flex: 0 0 auto;
    width: 0.56rem;
    height: 0.56rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.45);
}

.dashboard-calendar-item-status-dot.badge-status-yapilacak { background: #2563eb; }
.dashboard-calendar-item-status-dot.badge-status-yapiliyor { background: #ea580c; }
.dashboard-calendar-item-status-dot.badge-status-test { background: #9333ea; }
.dashboard-calendar-item-status-dot.badge-status-tamamlandi { background: var(--success); }
.dashboard-calendar-item-status-dot.badge-status-onayda { background: var(--warning); }
.dashboard-calendar-item-status-dot.badge-status-iptaledildi { background: var(--danger); }
.dashboard-calendar-item-status-dot.badge-status-reddedildi { background: var(--danger); }
.dashboard-calendar-item-status-dot.badge-status-degerlendirmede { background: var(--primary); }
.dashboard-calendar-item-status-dot.badge-status-yeni { background: var(--info); }

.dashboard-calendar-item-meta {
    display: none;
}

[data-theme="dark"] .dashboard-calendar-item-code {
    color: #93c5fd;
}

.dashboard-calendar-item-demand {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
}

@media (max-width: 991.98px) {
    .dashboard-block-header,
    .dashboard-subsection-header {
        flex-direction: column;
        align-items: stretch;
    }

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

    .page-filter-actions,
    .page-filter-actions-double {
        min-width: 0;
    }

    .page-filter-grid-kanban,
    .page-filter-grid-reports {
        grid-template-columns: 1fr;
    }

    .page-filter-grid-applications {
        grid-template-columns: 1fr;
    }

    .dashboard-calendar-toolbar,
    .dashboard-calendar-filter-form {
        width: 100%;
        justify-content: stretch;
        flex-wrap: wrap;
    }

    .dashboard-calendar-navigation {
        width: 100%;
        flex-wrap: wrap;
    }

    .dashboard-calendar-month-select {
        min-width: 0;
        width: 100%;
    }

    .dashboard-calendar-apply {
        width: 100%;
    }

    .dashboard-calendar-collapse {
        width: 100%;
        justify-content: center;
    }

    .dashboard-header-actions {
        width: 100%;
        margin-left: 0;
    }

    .dashboard-calendar-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-calendar-weekday {
        display: none;
    }

    .workitem-table-toolbar {
        justify-content: stretch;
    }

    .workitem-table-filter {
        width: 100%;
    }

    .active-demand-hero-content {
        flex-direction: column;
    }
}

/* Kanban Board Styling */
.kanban-shell {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.kanban-stage-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.9rem;
    align-items: stretch;
}

.kanban-stage-card {
    --kanban-stage-accent: var(--primary);
    --kanban-stage-accent-rgb: 37, 99, 235;
    width: 100%;
    min-height: 108px;
    padding: 1rem;
    border: 1px solid rgba(var(--kanban-stage-accent-rgb), 0.24);
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, rgba(var(--kanban-stage-accent-rgb), 0.08) 0%, var(--bg-card) 72%);
    box-shadow: 0 10px 22px -24px rgba(var(--kanban-stage-accent-rgb), 0.22);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.75rem;
    text-align: left;
    position: relative;
    overflow: hidden;
    transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.kanban-stage-card:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--kanban-stage-accent-rgb), 0.4);
    box-shadow: 0 14px 28px -24px rgba(var(--kanban-stage-accent-rgb), 0.28);
}

.kanban-stage-card.is-active {
    border-color: rgba(var(--kanban-stage-accent-rgb), 0.58);
    box-shadow: 0 14px 28px -24px rgba(var(--kanban-stage-accent-rgb), 0.38), 0 0 0 2px rgba(var(--kanban-stage-accent-rgb), 0.14);
}

.kanban-stage-card.is-drop-target {
    border-color: rgba(34, 197, 94, 0.72);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.14), 0 18px 34px -24px rgba(34, 197, 94, 0.45);
    transform: translateY(-2px);
    z-index: 3;
}

.kanban-stage-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.kanban-stage-label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
}

.kanban-stage-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    min-height: 2rem;
    padding: 0.1rem 0.6rem;
    border-radius: 999px;
    background: rgba(var(--kanban-stage-accent-rgb), 0.12);
    border: 1px solid rgba(var(--kanban-stage-accent-rgb), 0.16);
    color: rgb(var(--kanban-stage-accent-rgb));
    font-size: 0.82rem;
    font-weight: 700;
    flex-shrink: 0;
}

.kanban-stage-note {
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--text-muted);
}

.kanban-stage-detail-panel {
    --kanban-detail-accent-rgb: 37, 99, 235;
    padding: 1.1rem 1.15rem;
    border: 2px solid rgba(var(--kanban-detail-accent-rgb), 0.34);
    box-shadow: 0 14px 28px -26px rgba(var(--kanban-detail-accent-rgb), 0.22);
}

.kanban-stage-detail-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(var(--kanban-detail-accent-rgb), 0.22);
}

.kanban-stage-detail-eyebrow {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.kanban-stage-detail-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
}

.kanban-stage-detail-summary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-muted);
}

.kanban-stage-detail-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    min-height: 2rem;
    padding: 0.1rem 0.6rem;
    border-radius: 999px;
    background: rgba(var(--kanban-detail-accent-rgb), 0.12);
    color: rgb(var(--kanban-detail-accent-rgb));
    font-weight: 700;
}

.kanban-stage-detail-summary-text {
    font-size: 0.9rem;
    font-weight: 500;
}

.kanban-stage-panels {
    min-width: 0;
}

.kanban-stage-panel[hidden] {
    display: none !important;
}

.kanban-stage-panel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 320px));
    gap: 0.9rem;
    justify-content: flex-start;
    align-items: start;
}

.kanban-stage-empty {
    grid-column: 1 / -1;
    padding: 1rem 1.1rem;
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--surface-muted);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.kanban-stage-card[data-status="1"] {
    --kanban-stage-accent: #2563eb;
    --kanban-stage-accent-rgb: 37, 99, 235;
}

.kanban-stage-card[data-status="2"] {
    --kanban-stage-accent: #ea580c;
    --kanban-stage-accent-rgb: 234, 88, 12;
}

.kanban-stage-card[data-status="3"] {
    --kanban-stage-accent: #ca8a04;
    --kanban-stage-accent-rgb: 202, 138, 4;
}

.kanban-stage-card[data-status="4"] {
    --kanban-stage-accent: #16a34a;
    --kanban-stage-accent-rgb: 22, 163, 74;
}

.kanban-stage-card[data-status="5"] {
    --kanban-stage-accent: #64748b;
    --kanban-stage-accent-rgb: 100, 116, 139;
}

.kanban-stage-detail-panel[data-active-status="1"] {
    --kanban-detail-accent-rgb: 37, 99, 235;
}

.kanban-stage-detail-panel[data-active-status="2"] {
    --kanban-detail-accent-rgb: 234, 88, 12;
}

.kanban-stage-detail-panel[data-active-status="3"] {
    --kanban-detail-accent-rgb: 202, 138, 4;
}

.kanban-stage-detail-panel[data-active-status="4"] {
    --kanban-detail-accent-rgb: 22, 163, 74;
}

.kanban-stage-detail-panel[data-active-status="5"] {
    --kanban-detail-accent-rgb: 100, 116, 139;
}

[data-theme="dark"] .kanban-stage-card {
    background: linear-gradient(180deg, rgba(var(--kanban-stage-accent-rgb), 0.12) 0%, rgba(17, 24, 39, 0.92) 74%);
    border-color: rgba(var(--kanban-stage-accent-rgb), 0.32);
    box-shadow: 0 12px 24px -24px rgba(var(--kanban-stage-accent-rgb), 0.3);
}

[data-theme="dark"] .kanban-stage-card.is-active {
    border-color: rgba(var(--kanban-stage-accent-rgb), 0.58);
    box-shadow: 0 16px 28px -24px rgba(var(--kanban-stage-accent-rgb), 0.36), 0 0 0 2px rgba(var(--kanban-stage-accent-rgb), 0.16);
}

[data-theme="dark"] .kanban-stage-card.is-drop-target {
    border-color: rgba(74, 222, 128, 0.68);
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.14), 0 20px 36px -26px rgba(74, 222, 128, 0.4);
}

[data-theme="dark"] .kanban-stage-count {
    background: rgba(var(--kanban-stage-accent-rgb), 0.18);
    border-color: rgba(var(--kanban-stage-accent-rgb), 0.24);
    color: rgb(var(--kanban-stage-accent-rgb));
}

[data-theme="dark"] .kanban-stage-detail-panel {
    border-color: rgba(var(--kanban-detail-accent-rgb), 0.42);
    box-shadow: 0 18px 32px -28px rgba(var(--kanban-detail-accent-rgb), 0.26);
}

[data-theme="dark"] .kanban-stage-empty {
    background: rgba(15, 23, 42, 0.72);
}

.kanban-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
    cursor: grab;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transform-origin: center center;
    position: relative;
}

.kanban-card-overdue {
    border-color: rgba(220, 38, 38, 0.4);
    box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.08), 0 12px 24px -18px rgba(220, 38, 38, 0.35);
}

.kanban-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.kanban-card.is-dragging {
    opacity: 0.42;
    transform: none;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.45);
}

.kanban-card.is-drop-committing {
    pointer-events: none;
}

.kanban-card-drag-preview {
    position: fixed;
    z-index: 9999;
    margin: 0;
    opacity: 0.98;
    transform: rotate(0.35deg);
    pointer-events: none;
    box-shadow: 0 24px 42px -28px rgba(15, 23, 42, 0.42);
    border-width: 2px;
}

.kanban-card-overdue:hover {
    border-color: rgba(220, 38, 38, 0.55);
    box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.12), 0 14px 28px -18px rgba(220, 38, 38, 0.4);
}

.kanban-card-highlight {
    border-color: rgba(59, 130, 246, 0.48);
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.12), 0 16px 30px -22px rgba(59, 130, 246, 0.42);
}

.kanban-card-highlight-active {
    animation: kanban-highlight-pulse 1.8s ease-in-out 1;
}

@keyframes kanban-highlight-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.24);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0.06);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

.kanban-card-tag {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    width: fit-content;
}

.kanban-card-title {
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.4;
}

.kanban-card-deadline {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.3rem;
    width: fit-content;
    padding: 0.28rem 0.58rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.12);
    color: var(--text-muted);
    font-size: 0.74rem;
    font-weight: 600;
    line-height: 1.2;
}

.kanban-card-deadline-label {
    opacity: 0.88;
}

.kanban-card-deadline-overdue {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

.kanban-card-toggle {
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--surface-muted);
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.kanban-card-toggle:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--primary-light);
}

.kanban-card-description {
    display: none;
    padding: 0.7rem 0.8rem;
    border-radius: var(--radius-sm);
    background: var(--surface-muted);
    border: 1px dashed var(--border-color);
    line-height: 1.5;
}

.kanban-card-description.is-open {
    display: block;
}

.kanban-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    border-top: 1px dashed var(--border-color);
    padding-top: 0.5rem;
}

.workitem-comments-modal {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1080;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    isolation: isolate;
}

.workitem-comments-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.workitem-comments-dialog {
    position: relative;
    z-index: 1;
    width: min(880px, calc(100vw - 3rem));
    max-height: min(calc(100vh - 3rem), 920px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem;
}

.workitem-comments-dialog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.9rem;
}

.workitem-comments-heading {
    min-width: 0;
}

.workitem-comments-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.workitem-comments-summary-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    background: var(--surface-muted);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
}

.workitem-comments-close {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.workitem-comments-close:hover {
    color: var(--danger);
    border-color: var(--danger);
}

.workitem-comments-readonly-note {
    padding: 0.75rem 0.9rem;
    border-radius: var(--radius-sm);
    background: var(--surface-muted);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.88rem;
}

.workitem-comments-form-container {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: rgba(148, 163, 184, 0.06);
    padding: 1rem;
}

.workitem-comment-attachment-panel {
    border-top: 1px dashed var(--border-color);
    padding-top: 0.9rem;
}

.workitem-comment-selected-files {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.8rem;
}

.workitem-selected-file-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.42rem 0.65rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--surface-card);
    color: var(--text-main);
    font-size: 0.78rem;
}

.workitem-comments-list-wrapper {
    border-top: 1px solid var(--border-color);
    padding-top: 0.75rem;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.workitem-comments-list {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.workitem-comment-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--surface-muted);
    padding: 0.9rem 1rem;
}

.workitem-comment-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.6rem;
}

.workitem-comment-author {
    font-weight: 700;
    color: var(--text-main);
}

.workitem-comment-body {
    color: var(--text-main);
    line-height: 1.65;
    white-space: normal;
    word-break: break-word;
}

.workitem-comment-attachments {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 0.8rem;
}

.workitem-comment-attachment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--surface-card);
}

.workitem-comment-attachment-main {
    min-width: 0;
}

.workitem-comment-attachment-name {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--text-main);
    font-weight: 600;
    word-break: break-word;
}

.workitem-comment-attachment-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.workitem-comment-attachment-actions {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.workitem-comments-empty {
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    color: var(--text-muted);
    text-align: center;
    background: var(--surface-muted);
}

body.modal-open {
    overflow: hidden;
}

.workitem-attachment-preview-modal {
    position: fixed;
    inset: 0;
    z-index: 1090;
    display: grid;
    place-items: center;
    padding: 1.5rem;
}

.workitem-attachment-preview-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
}

.workitem-attachment-preview-dialog {
    position: relative;
    z-index: 1;
    width: min(92vw, 1080px);
    max-height: min(calc(100vh - 3rem), 92vh);
    padding: 1rem;
}

.workitem-attachment-preview-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 240px;
}

.workitem-attachment-preview-body img {
    max-width: 100%;
    max-height: calc(92vh - 6rem);
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.workitem-highlight-row > td {
    background-color: rgba(99, 102, 241, 0.1) !important;
}

.workitem-highlight-flash > td {
    animation: workitem-highlight-flash 2.4s ease;
}

@keyframes workitem-highlight-flash {
    0% {
        background-color: rgba(99, 102, 241, 0.24);
    }
    55% {
        background-color: rgba(99, 102, 241, 0.16);
    }
    100% {
        background-color: rgba(99, 102, 241, 0.1);
    }
}

.workitem-description-card {
    position: relative;
    display: block;
    width: 100%;
    padding: 0.75rem 0.85rem;
    padding-right: 3.65rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.92) 0%, rgba(241, 245, 249, 0.86) 100%);
}

[data-theme="dark"] .workitem-description-card {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.42) 0%, rgba(15, 23, 42, 0.54) 100%);
}

.workitem-description-preview {
    line-height: 1.6;
    word-break: break-word;
    width: 100%;
    min-width: 0;
    padding-right: 0.2rem;
}

.workitem-description-toggle {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    padding: 0;
    border: 1px solid rgba(99, 102, 241, 0.16);
    border-radius: 0.7rem;
    background: rgba(99, 102, 241, 0.06);
    color: var(--primary);
    cursor: pointer;
    box-shadow: 0 6px 14px -10px rgba(37, 99, 235, 0.45);
    transition: all 0.2s ease;
}

.workitem-description-toggle:hover {
    color: var(--primary-hover);
    border-color: rgba(99, 102, 241, 0.32);
    background: rgba(99, 102, 241, 0.12);
    transform: translateY(-1px);
}

.workitem-description-toggle-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
}

[data-theme="dark"] .workitem-description-toggle {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(96, 165, 250, 0.18);
}

.workitem-description-toggle.is-open {
    background: rgba(99, 102, 241, 0.16);
}

.workitem-description-panel {
    width: 100%;
    margin-top: 0.65rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--border-color);
    color: var(--text-muted);
    line-height: 1.65;
    white-space: normal;
    word-break: break-word;
    box-sizing: border-box;
}

.workitem-description-card.is-expanded .workitem-description-panel {
    display: block;
}

.history-timeline {
    position: relative;
    padding-left: 1.55rem;
    margin-left: 0.65rem;
    border-left: 2px solid var(--border-color);
}

.history-item {
    position: relative;
    margin-bottom: 1rem;
}

.history-item-user .history-entry {
    max-width: 680px;
}

.history-item-system .history-entry {
    max-width: 720px;
}

.history-entry {
    max-width: 680px;
}

.history-marker {
    position: absolute;
    left: -1.75rem;
    top: 0.15rem;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: var(--bg-app);
    border: 3px solid var(--primary);
    z-index: 1;
}

.history-marker-user {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.08);
}

.history-marker-system {
    border-color: #94a3b8;
    box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.12);
}

.history-meta-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

.history-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    color: var(--text-muted);
}

.history-user-name {
    font-weight: 700;
    color: var(--text-main);
}

.history-role-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    background: rgba(100, 116, 139, 0.18);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
}

.history-date {
    color: var(--text-muted);
}

.history-status-flow {
    color: var(--text-muted);
}

.history-status-chip {
    background: var(--surface-muted);
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.history-note-card {
    margin-top: 0.35rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    column-gap: 0.7rem;
    width: min(100%, 680px);
    padding: 0.7rem 0.85rem;
    border-radius: var(--radius-sm);
    background: var(--surface-muted);
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.history-note-text {
    min-width: 0;
    line-height: 1.55;
    white-space: pre-line;
    word-break: break-word;
}

.history-note-card-user {
    border-left: 3px solid rgba(59, 130, 246, 0.65);
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.05), rgba(59, 130, 246, 0.02));
}

.history-note-card-system {
    border-left: 3px solid rgba(148, 163, 184, 0.8);
    background: linear-gradient(180deg, rgba(148, 163, 184, 0.08), rgba(148, 163, 184, 0.03));
}

[data-theme="dark"] .history-note-card-user {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.12), rgba(59, 130, 246, 0.04));
}

[data-theme="dark"] .history-note-card-system {
    background: linear-gradient(180deg, rgba(100, 116, 139, 0.18), rgba(100, 116, 139, 0.08));
}

.history-note-actions {
    display: flex;
    justify-content: flex-end;
    align-self: start;
    margin-top: 0.05rem;
}

.history-delete-form {
    display: inline-flex;
}

.history-delete-btn {
    min-width: 2rem;
}

@media (max-width: 767.98px) {
    .workitem-description-card {
        padding-right: 3.35rem;
    }

    .history-meta-row {
        flex-direction: column;
        align-items: stretch;
    }

    .history-note-card {
        max-width: none;
    }

    .history-entry {
        max-width: none;
    }
}

/* Status Badges */
.badge-status {
    padding: 0.25rem 0.6rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.badge-status-yeni { background-color: var(--info-light); color: var(--info); }
.badge-status-degerlendirmede { background-color: var(--primary-light); color: var(--primary); }
.badge-status-onayda { background-color: var(--warning-light); color: var(--warning); }
.badge-status-yapilacak { background-color: rgba(59, 130, 246, 0.14); color: #2563eb; }
.badge-status-yapiliyor { background-color: rgba(249, 115, 22, 0.14); color: #ea580c; }
.badge-status-test { background-color: rgba(147, 51, 234, 0.1); color: #9333ea; }
.badge-status-tamamlandi { background-color: var(--success-light); color: var(--success); }
.badge-status-reddedildi { background-color: var(--danger-light); color: var(--danger); }
.badge-status-iptaledildi { background-color: var(--danger-light); color: var(--danger); }

.phase-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
}

.phase-badge-compact {
    font-size: 0.7rem;
    padding: 0.22rem 0.55rem;
}

.workitem-deadline-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.24rem 0.56rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.12);
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.15;
}

.workitem-deadline-badge-overdue {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

[data-theme="dark"] .phase-badge {
    background: rgba(96, 165, 250, 0.14);
    color: #93c5fd;
}

[data-theme="dark"] .kanban-card-deadline {
    background: rgba(148, 163, 184, 0.14);
    color: #cbd5e1;
}

[data-theme="dark"] .kanban-column.is-drop-target {
    border-color: rgba(74, 222, 128, 0.5);
    box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.14), 0 18px 36px -28px rgba(74, 222, 128, 0.3);
}

[data-theme="dark"] .kanban-column.is-drop-target .kanban-column-header {
    border-bottom-color: rgba(74, 222, 128, 0.28);
}

[data-theme="dark"] .kanban-cards-area.is-drop-target-area {
    background: rgba(34, 197, 94, 0.09);
    box-shadow: inset 0 0 0 2px rgba(74, 222, 128, 0.16);
}

[data-theme="dark"] .kanban-card-drag-preview {
    box-shadow: 0 24px 44px -28px rgba(2, 6, 23, 0.62);
}

[data-theme="dark"] .kanban-card-deadline-overdue,
[data-theme="dark"] .workitem-deadline-badge-overdue {
    background: rgba(248, 113, 113, 0.16);
    color: #fca5a5;
}

[data-theme="dark"] .workitem-deadline-badge {
    background: rgba(148, 163, 184, 0.14);
    color: #cbd5e1;
}

/* Buttons & Inputs */
.btn-premium {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: white !important;
    border: none;
    font-weight: 600;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
    transition: all 0.2s ease;
}

.btn-premium:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(79, 70, 229, 0.4);
}

.btn.btn-sm.p-1 {
    min-width: 2rem;
    min-height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.table-action-buttons {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
    white-space: nowrap;
    flex-wrap: wrap;
}

.demand-list-action-buttons {
    min-width: 270px;
    justify-content: flex-end;
}

.demand-list-action-btn {
    width: 118px;
    min-width: 118px;
    justify-content: center;
    text-align: center;
}

.form-premium-control {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: var(--radius-sm);
    padding: 0.6rem 1rem;
    width: 100%;
    transition: all 0.2s ease;
}

textarea.form-premium-control {
    min-height: 120px;
    resize: vertical;
}

select.form-premium-control,
select.form-select {
    padding-right: 2.25rem;
}

.form-premium-control:not([readonly]),
.form-control:not([readonly]),
.form-select {
    background-color: #ffffff;
}

[data-theme="dark"] .form-premium-control:not([readonly]),
[data-theme="dark"] .form-control:not([readonly]),
[data-theme="dark"] .form-select {
    background-color: rgba(15, 23, 42, 0.92);
}

.form-premium-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.password-field-shell {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
}

.password-field-shell .form-premium-control {
    flex: 1 1 auto;
    min-width: 0;
}

.password-toggle-btn {
    flex: 0 0 auto;
    min-width: 4.5rem;
    white-space: nowrap;
    align-self: stretch;
}

@media (max-width: 575.98px) {
    .password-field-shell {
        flex-direction: column;
    }

    .password-toggle-btn {
        width: 100%;
    }
}

.form-select,
.form-control {
    background-color: var(--bg-card);
    color: var(--text-main);
    border-color: var(--border-color);
}

.form-select:focus,
.form-control:focus {
    background-color: var(--bg-card);
    color: var(--text-main);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.input-group-text {
    border-color: var(--border-color);
}

.search-field-shell {
    display: flex;
    align-items: center;
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-field-shell:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.search-field-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.9rem;
    color: var(--text-muted);
    flex: 0 0 2.9rem;
}

.search-field-input {
    border: none;
    box-shadow: none !important;
    background: transparent !important;
    padding-left: 0;
}

.search-field-input:focus {
    border: none;
    box-shadow: none !important;
}

[data-theme="dark"] .bg-light {
    background-color: rgba(15, 23, 42, 0.55) !important;
    color: var(--text-main) !important;
}

.bg-light {
    background-color: rgba(255, 255, 255, 0.7) !important;
}

[data-theme="dark"] .bg-light {
    background-color: rgba(15, 23, 42, 0.55) !important;
}

[data-theme="dark"] .border,
[data-theme="dark"] hr {
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .input-group-text {
    background-color: rgba(15, 23, 42, 0.55);
    color: var(--text-muted);
}

/* Login Page Layout */
.login-wrapper {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 10% 20%, rgba(26, 36, 56, 1) 0%, rgba(10, 14, 23, 1) 100%);
    color: white;
}

.login-card {
    width: 100%;
    max-width: 440px;
    background: rgba(17, 24, 39, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Tabs UI for Detail Page */
.demand-detail-tabs {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0.65rem;
    margin-bottom: 1.35rem;
    padding: 0 0.15rem;
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(59, 130, 246, 0.35) transparent;
}

.demand-detail-tabs::-webkit-scrollbar {
    height: 6px;
}

.demand-detail-tabs::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.28);
    border-radius: 999px;
}

.demand-detail-tabs .tab-btn {
    display: inline-flex;
    flex: 0 0 156px;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 74px;
    padding: 0.85rem 0.95rem 0.78rem;
    border: 1px solid var(--border-color);
    border-bottom: 3px solid transparent;
    border-radius: 18px 18px 0 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(244, 248, 255, 0.92));
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: normal;
    line-height: 1.2;
    text-align: center;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.demand-detail-tabs .tab-btn:hover {
    transform: translateY(-1px);
    color: var(--primary);
    border-color: rgba(37, 99, 235, 0.25);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.1);
}

.demand-detail-tabs .tab-btn.active {
    color: var(--primary);
    border-color: rgba(37, 99, 235, 0.25);
    border-bottom-color: var(--primary);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.95));
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.12);
}

.demand-detail-tabs .tab-btn .tab-btn-icon {
    flex: 0 0 auto;
    font-size: 1.15rem;
    line-height: 1;
}

.demand-detail-tabs .tab-btn .tab-btn-label {
    display: block;
}

.demand-detail-tabs .tab-btn .tab-btn-count {
    display: block;
    font-size: 0.88em;
    font-weight: 700;
}

@media (max-width: 1399.98px) {
    .demand-detail-tabs {
        gap: 0.55rem;
    }

    .demand-detail-tabs .tab-btn {
        flex-basis: 146px;
        min-height: 70px;
        padding: 0.8rem 0.8rem 0.72rem;
    }
}

@media (max-width: 991.98px) {
    .demand-detail-tabs .tab-btn {
        flex-basis: 132px;
        min-height: 68px;
        padding: 0.72rem 0.72rem 0.68rem;
    }

    .demand-detail-tabs .tab-btn .tab-btn-label {
        font-size: 0.92rem;
    }
}

@media (max-width: 767.98px) {
    .demand-detail-tabs {
        gap: 0.45rem;
        margin-bottom: 1rem;
    }

    .demand-detail-tabs .tab-btn {
        flex-basis: 62px;
        min-width: 62px;
        min-height: 60px;
        padding: 0.65rem 0.35rem;
        border-radius: 16px 16px 0 0;
    }

    .demand-detail-tabs .tab-btn .tab-btn-label {
        display: none;
    }

    .demand-detail-tabs .tab-btn .tab-btn-icon {
        font-size: 1.2rem;
    }
}

.tab-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-panel.active {
    display: block;
}

.admin-nav-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.6rem 1rem;
    line-height: 1.2;
    white-space: nowrap;
    border-width: 1px;
    border-style: solid;
    flex: 0 0 auto;
}

.admin-nav-tab.btn-premium {
    border-color: transparent;
}

.admin-nav-tab i {
    flex-shrink: 0;
}

.admin-picker-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    max-height: 280px;
    overflow-y: auto;
    padding: 0.35rem;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.55);
}

.admin-picker-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    text-align: left;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--card-bg);
    color: var(--text-main);
    transition: all 0.2s ease;
}

.admin-picker-item:hover {
    border-color: rgba(37, 99, 235, 0.35);
    background: rgba(37, 99, 235, 0.08);
}

.admin-picker-item.active {
    border-color: rgba(37, 99, 235, 0.45);
    background: rgba(37, 99, 235, 0.12);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.12);
}

.admin-picker-item-title {
    font-weight: 700;
    line-height: 1.35;
}

.admin-picker-item-subtitle {
    font-size: 0.88rem;
    color: var(--text-soft);
    line-height: 1.4;
}

[data-theme="dark"] .admin-picker-list {
    background: rgba(15, 23, 42, 0.65);
}

[data-theme="dark"] .admin-picker-item {
    background: rgba(15, 23, 42, 0.88);
    border-color: rgba(148, 163, 184, 0.18);
}

[data-theme="dark"] .admin-picker-item:hover {
    background: rgba(37, 99, 235, 0.18);
    border-color: rgba(96, 165, 250, 0.35);
}

[data-theme="dark"] .admin-picker-item.active {
    background: rgba(37, 99, 235, 0.22);
    border-color: rgba(96, 165, 250, 0.45);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.38);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    width: 38px;
    height: 38px;
}

.theme-toggle-btn:hover {
    background: var(--border-color);
    color: var(--text-main);
}

@media (max-width: 1439.98px) {
    #main-content {
        padding: 1.4rem;
        gap: 1.3rem;
    }

    .glass-card {
        padding: 1.15rem;
    }

    .content-header {
        gap: 0.9rem;
    }

    .content-header h1 {
        font-size: 1.95rem;
    }

    .demand-details-header-tools {
        gap: 0.65rem;
    }

    .demand-details-switcher {
        gap: 0.55rem;
    }

    .demand-details-switcher-select {
        min-width: 280px;
        max-width: 460px;
    }

    .active-demand-hero {
        padding: 1rem 1.1rem;
    }

    .active-demand-hero-content {
        gap: 0.85rem;
    }

    .active-demand-hero-icon {
        width: 2.75rem;
        height: 2.75rem;
        flex-basis: 2.75rem;
        font-size: 1.05rem;
    }

    .active-demand-hero-title {
        font-size: 1rem;
    }

    .active-demand-hero-meta {
        gap: 0.7rem;
        font-size: 0.86rem;
    }

    .page-filter-toolbar {
        padding: 0.9rem 1rem;
    }

    .page-filter-grid {
        grid-template-columns: minmax(220px, 1.45fr) minmax(180px, 0.95fr) auto;
        gap: 0.8rem;
    }

    .page-filter-grid-kanban {
        grid-template-columns: minmax(260px, 1.55fr) minmax(180px, 1fr) minmax(140px, 0.75fr) auto;
    }

    .page-filter-grid-reports {
        grid-template-columns: minmax(180px, 0.95fr) minmax(260px, 1.35fr) minmax(140px, 0.7fr) auto;
    }

    .page-filter-grid-applications {
        grid-template-columns: minmax(220px, 1.45fr) minmax(160px, 0.85fr) minmax(160px, 0.85fr) auto;
    }

    .page-filter-actions {
        gap: 0.6rem;
    }

    .tabs-container {
        gap: 0.55rem;
        margin-bottom: 1.15rem;
    }

    .tab-btn {
        padding: 0.68rem 0.95rem;
        font-size: 0.92rem;
    }

    .glass-card .table thead th,
    .glass-card .table tbody td {
        padding-top: 0.72rem;
        padding-bottom: 0.72rem;
    }

    .kanban-container {
        gap: 0.95rem;
        padding-bottom: 0.85rem;
    }

    .kanban-column {
        flex-basis: 292px;
        max-width: 292px;
        padding: 0.85rem;
    }

    .kanban-column-header {
        margin-bottom: 0.75rem;
    }

    .kanban-cards-area {
        gap: 0.6rem;
    }

    .kanban-card {
        padding: 0.85rem;
        gap: 0.6rem;
    }

    .kanban-card-title {
        font-size: 0.87rem;
    }

    .kanban-card-description {
        padding: 0.6rem 0.72rem;
        font-size: 0.82rem;
    }

    .kanban-card-footer {
        font-size: 0.72rem;
    }
}

@media (max-width: 1199.98px) {
    :root {
        --sidebar-width: 224px;
    }

    .metrics-grid-demand-applications {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .demand-application-col-applicant {
        display: none;
    }

    .demand-application-col-actions {
        width: 8.75rem;
    }

    .demand-application-action-btn {
        min-width: 2.55rem;
        width: 2.55rem;
        height: 2.55rem;
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    .demand-application-action-btn .dashboard-action-label {
        display: none;
    }

    #main-content {
        padding: 1.5rem;
    }
}

@media (max-width: 991.98px) {
    #app-container {
        flex-direction: column;
        width: 100%;
        --sidebar-current-width: var(--sidebar-width);
    }

    #sidebar {
        position: static;
        width: 100%;
        height: auto;
        padding: 1rem;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    #sidebar .logo-area {
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }

    .sidebar-toggle-btn {
        display: none;
    }

    .nav-menu {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .nav-item {
        flex: 1 1 calc(50% - 0.5rem);
        min-width: 180px;
    }

    .nav-item.mt-4 {
        margin-top: 0 !important;
    }

    #sidebar .user-profile {
        margin-bottom: 0;
        padding: 0.85rem 0.9rem;
    }

    .sidebar-bottom-tools {
        margin-top: 1rem;
    }

    .sidebar-theme-switch {
        justify-content: flex-start;
    }

    #main-content {
        margin-left: 0;
        padding: 1.25rem;
        min-height: auto;
        gap: 1.25rem;
    }

    #main-content > * {
        max-width: none;
    }

    .content-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .content-header-actions {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .content-header-actions form {
        flex-wrap: wrap;
    }

    .demand-details-switcher {
        flex-wrap: wrap;
    }

    .demand-details-switcher-select {
        min-width: 300px;
        max-width: 100%;
    }

    .glass-card {
        padding: 1.15rem;
    }

    .kanban-column {
        flex-basis: 280px;
        max-width: 280px;
        max-height: none;
    }
}

@media (max-width: 767.98px) {
    body {
        font-size: 0.95rem;
    }

    .nav-item {
        flex: 1 1 100%;
        min-width: 0;
    }

    .content-header h1 {
        font-size: 1.5rem;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .tab-btn {
        padding: 0.75rem 0.9rem;
        font-size: 0.92rem;
    }

    .kanban-column {
        flex: 0 0 calc(100vw - 2.75rem);
        max-width: calc(100vw - 2.75rem);
    }

    .kanban-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }

    .glass-card .table {
        font-size: 0.92rem;
    }

    .glass-card .table thead th,
    .glass-card .table tbody td {
        white-space: normal;
    }

    .login-card {
        margin: 1rem;
        padding: 1.75rem;
    }

    .workitem-comments-modal {
        padding: 0.75rem;
    }

    .workitem-comments-dialog {
        max-height: 92vh;
        padding: 1rem;
    }

    .workitem-comment-meta {
        flex-direction: column;
    }
}

@media (max-width: 575.98px) {
    #main-content {
        padding: 1rem 0.75rem 1.5rem;
    }

    .glass-card {
        padding: 1rem;
    }

    .content-header-actions {
        flex-direction: column;
        align-items: stretch !important;
    }

    .content-header-actions > *:not(.theme-toggle-btn) {
        width: 100%;
    }

    .content-header-actions form.d-flex {
        flex-direction: column;
        align-items: stretch !important;
    }

    .content-header-actions form.d-flex > * {
        width: 100% !important;
        min-width: 0 !important;
    }

    .content-header-actions .btn:not(.theme-toggle-btn),
    .content-header-actions select,
    .content-header-actions .form-select {
        width: 100%;
    }

    .demand-details-header-tools,
    .demand-details-switcher {
        flex-direction: column;
        align-items: stretch;
    }

    .demand-details-switcher-select {
        min-width: 0;
        max-width: 100%;
    }

    .theme-toggle-btn {
        align-self: flex-end;
    }

    .tabs-container {
        gap: 0.25rem;
        margin-bottom: 1rem;
    }

    .table-action-buttons {
        justify-content: flex-start;
    }
}

@media (max-width: 1439.98px) {
    .kanban-stage-strip {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .kanban-stage-card {
        min-height: 102px;
        padding: 0.9rem;
    }

    .kanban-stage-note {
        font-size: 0.8rem;
    }

    .kanban-stage-panel-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 300px));
        gap: 0.8rem;
    }
}

@media (max-width: 991.98px) {
    #app-container {
        flex-direction: row;
        width: 100%;
    }

    #sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: var(--sidebar-current-width);
        height: 100vh;
        padding: 1rem 0.75rem;
        border-right: 1px solid var(--border-color);
        border-bottom: none;
    }

    #sidebar .logo-area {
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }

    .sidebar-toggle-btn {
        display: inline-flex;
    }

    .nav-menu {
        flex-direction: column;
        flex-wrap: nowrap;
    }

    .nav-item {
        flex: none;
        min-width: 0;
    }

    .nav-item.mt-4 {
        margin-top: 1rem !important;
    }

    #sidebar .user-profile {
        margin-bottom: 0.75rem;
        padding: 0.9rem 0.85rem;
    }

    .sidebar-bottom-tools {
        margin-top: auto;
    }

    .sidebar-theme-switch {
        justify-content: flex-start;
    }

    #main-content {
        margin-left: var(--sidebar-current-width);
        padding: 1.2rem;
        min-height: 100vh;
        gap: 1.15rem;
    }

    #main-content > * {
        max-width: none;
    }

    .content-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.9rem;
    }

    .content-header-actions {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .content-header-actions form {
        flex-wrap: wrap;
    }

    .demand-details-switcher {
        flex-wrap: wrap;
    }

    .demand-details-switcher-select {
        min-width: 280px;
        max-width: 100%;
    }

    .glass-card {
        padding: 1rem;
    }

    .kanban-stage-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .kanban-stage-detail-panel {
        padding: 1rem;
    }

    .kanban-stage-panel-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 767.98px) {
    .metrics-grid-demand-applications {
        grid-template-columns: 1fr;
    }

    .demand-application-col-type,
    .demand-application-col-date {
        display: none;
    }

    #sidebar {
        padding: 0.9rem 0.65rem;
    }

    #sidebar .logo-area {
        gap: 0.55rem;
    }

    #sidebar .logo-text {
        font-size: 1.1rem;
    }

    .nav-item {
        flex: none;
        min-width: 0;
    }

    .nav-item a {
        padding: 0.65rem 0.55rem;
        gap: 0.6rem;
    }

    .nav-item a i {
        width: 1.2rem;
        min-width: 1.2rem;
    }

    .content-header h1 {
        font-size: 1.5rem;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .tab-btn {
        padding: 0.75rem 0.9rem;
        font-size: 0.92rem;
    }

    .kanban-stage-strip {
        grid-template-columns: 1fr;
    }

    .kanban-stage-card {
        min-height: 94px;
    }

    .kanban-stage-detail-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .kanban-stage-panel-grid {
        grid-template-columns: 1fr;
    }
}
