:root {
    --bg-dark: #05070e;
    --bg-elevated: #0b0f1c;
    --bg-card: rgba(15, 20, 34, 0.72);
    --bg-card-hover: rgba(22, 29, 48, 0.84);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(255, 255, 255, 0.16);
    --primary: #8b5cf6;
    --primary-color: #8b5cf6;
    --primary-light: #a78bfa;
    --primary-glow: rgba(139, 92, 246, 0.35);
    --indigo: #6366f1;
    --cyan: #06b6d4;
    --cyan-glow: rgba(6, 182, 212, 0.3);
    --success-color: #10b981;
    --danger-color: #f43f5e;
    --warning-color: #f59e0b;
    --text-main: #f8fafc;
    --text-primary: #f8fafc;
    --text-muted: #94a3b8;
    --text-secondary: #94a3b8;
    --sidebar-w: 260px;
    --sidebar-rail-w: 76px;
    --glass-blur: 20px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --shadow-luxury: 0 20px 50px -12px rgba(0, 0, 0, 0.65), inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
    --shadow-card-hover: 0 24px 48px -12px rgba(139, 92, 246, 0.18), inset 0 1px 0 0 rgba(255, 255, 255, 0.18);
}

select option {
    background: #0d121f;
    color: var(--text-primary);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Pretendard Variable', 'Pretendard', 'Outfit', 'Space Grotesk', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.5;
    letter-spacing: -0.01em;
}

/* Global Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(5, 7, 14, 0.4);
}

::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.22);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.55);
}

/* Ambient Luxury Aurora & Architectural Grid Background */
.glass-bg {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -15%, rgba(99, 102, 241, 0.18), transparent 70%),
        radial-gradient(ellipse 60% 50% at 90% 100%, rgba(6, 182, 212, 0.12), transparent 70%),
        radial-gradient(circle at 50% 50%, #090d1a 0%, #05070e 100%);
    z-index: -3;
}

.glass-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(circle at 50% 35%, black 30%, transparent 85%);
    -webkit-mask-image: radial-gradient(circle at 50% 35%, black 30%, transparent 85%);
    pointer-events: none;
}

.ambient-glow {
    position: fixed;
    width: 640px;
    height: 640px;
    border-radius: 50%;
    filter: blur(135px);
    opacity: 0.14;
    z-index: -2;
    pointer-events: none;
}

.glow-1 {
    background: linear-gradient(135deg, var(--primary), var(--indigo));
    top: -220px;
    left: -120px;
    animation: floatGlow 22s ease-in-out infinite alternate;
}

.glow-2 {
    background: linear-gradient(135deg, var(--cyan), var(--primary));
    bottom: -220px;
    right: -120px;
    animation: floatGlow 28s ease-in-out infinite alternate-reverse;
}

@keyframes floatGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(45px, 65px) scale(1.08); }
}

/* Main Container Layout */
.container {
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
}

/* Luxury Glass Sidebar */
.sidebar {
    width: var(--sidebar-w);
    background: linear-gradient(180deg, rgba(11, 15, 27, 0.88) 0%, rgba(7, 10, 19, 0.94) 100%);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-right: 1px solid var(--border-color);
    box-shadow: 4px 0 32px rgba(0, 0, 0, 0.45);
    padding: 1.75rem 1.15rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    height: 100dvh;
    z-index: 100;
    overflow-y: auto;
    overflow-x: hidden;
    transition: width 0.28s cubic-bezier(0.22, 1, 0.36, 1), padding 0.28s ease, box-shadow 0.28s ease;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.35rem 0.6rem 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.logo-icon {
    font-size: 1.65rem;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.22), rgba(6, 182, 212, 0.18));
    border: 1px solid rgba(139, 92, 246, 0.35);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.25);
    flex-shrink: 0;
}

.logo-text {
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 55%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex-grow: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.8rem 1rem;
    border-radius: 13px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.94rem;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    position: relative;
    white-space: nowrap;
}

.nav-item .nav-icon {
    font-size: 1.18rem;
    width: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.22s ease;
}

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

.nav-item:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.045);
    border-color: rgba(255, 255, 255, 0.08);
    transform: translateX(2px);
}

.nav-item:hover .nav-icon {
    transform: scale(1.08);
}

.nav-item.active {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.28) 0%, rgba(99, 102, 241, 0.14) 55%, rgba(6, 182, 212, 0.08) 100%);
    border-color: rgba(139, 92, 246, 0.42);
    box-shadow: 0 8px 24px -6px rgba(139, 92, 246, 0.28), inset 0 1px 0 0 rgba(255, 255, 255, 0.15);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: -1px;
    top: 22%;
    bottom: 22%;
    width: 3.5px;
    border-radius: 0 4px 4px 0;
    background: linear-gradient(180deg, var(--cyan), var(--primary));
    box-shadow: 0 0 10px var(--primary);
}

.nav-item.nav-logout {
    margin-top: auto;
    color: #fda4af;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 13px;
}

.nav-item.nav-logout:hover {
    background: rgba(244, 63, 94, 0.12);
    border-color: rgba(244, 63, 94, 0.3);
    color: #ffe4e6;
}

/* Main Content Area - Fluid & Adaptive */
.main-content {
    margin-left: var(--sidebar-w);
    flex: 1;
    min-width: 0;
    width: calc(100% - var(--sidebar-w));
    max-width: 1680px;
    padding: clamp(1.25rem, 2.5vw, 2.5rem) clamp(1.25rem, 3vw, 3rem);
    transition: margin-left 0.28s cubic-bezier(0.22, 1, 0.36, 1), width 0.28s ease;
}

/* Executive Top Header */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.1rem 1.5rem;
    background: linear-gradient(145deg, rgba(17, 23, 39, 0.72), rgba(11, 15, 27, 0.8));
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid var(--border-color);
    border-top-color: var(--border-highlight);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-luxury);
}

.welcome h1 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.25;
}

.welcome h1 .header-main-title,
.welcome h1 {
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 60%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.user-session-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    font-weight: 500;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    -webkit-background-clip: initial;
    -webkit-text-fill-color: var(--text-secondary);
    color: var(--text-secondary);
    letter-spacing: 0;
}

.user-session-badge strong {
    -webkit-text-fill-color: #c4b5fd;
    color: #c4b5fd;
    font-weight: 700;
}

.user-session-badge em {
    font-style: normal;
    opacity: 0.8;
    font-size: 0.78rem;
}

.status-dot-online {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    display: inline-block;
    animation: pulseDot 2.2s infinite ease-in-out;
}

@keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.25); opacity: 0.65; }
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}

.live-clock, .system-time {
    font-family: 'JetBrains Mono', 'Space Grotesk', monospace;
    font-variant-numeric: tabular-nums;
    font-size: 0.92rem;
    font-weight: 600;
    color: #e2e8f0;
    background: rgba(10, 14, 24, 0.7);
    padding: 0.45rem 0.95rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    letter-spacing: 0.05em;
    white-space: nowrap;
}

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

.stat-card {
    background: linear-gradient(155deg, rgba(22, 29, 49, 0.65) 0%, rgba(12, 16, 28, 0.78) 100%);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--border-color);
    border-top-color: rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    padding: 1.4rem 1.5rem;
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 28px -10px rgba(0, 0, 0, 0.5);
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--cyan), transparent);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(139, 92, 246, 0.35);
    box-shadow: var(--shadow-card-hover);
}

.stat-card:hover::after {
    opacity: 1;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.card-icon {
    font-size: 1.15rem;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.card-tag {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.card-value {
    font-size: clamp(1.55rem, 2.2vw, 2.1rem);
    font-weight: 800;
    margin-bottom: 0.85rem;
    font-family: 'Space Grotesk', 'JetBrains Mono', sans-serif;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.progress-bar {
    width: 100%;
    height: 7px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
}

.progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), var(--cyan));
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.45);
    transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Luxury Info & App Cards */
.info-card, .interactive-app {
    background: linear-gradient(160deg, rgba(16, 22, 37, 0.76) 0%, rgba(10, 14, 25, 0.86) 100%);
    backdrop-filter: blur(var(--glass-blur)) saturate(160%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
    border: 1px solid var(--border-color);
    border-top-color: var(--border-highlight);
    border-radius: var(--radius-lg);
    padding: clamp(1.25rem, 2.2vw, 2rem);
    margin-bottom: 1.75rem;
    box-shadow: var(--shadow-luxury);
}

.info-card h2, .interactive-app h2 {
    font-size: clamp(1.12rem, 1.5vw, 1.32rem);
    font-weight: 700;
    margin-bottom: 1.15rem;
    letter-spacing: -0.02em;
    color: #f8fafc;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
}

.details-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

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

.details-item .value {
    font-size: 1.02rem;
    font-weight: 700;
    font-family: 'Space Grotesk', 'JetBrains Mono', sans-serif;
    color: var(--text-primary);
}

/* App component & Button styling */
.app-desc {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 1.35rem;
    line-height: 1.55;
}

.app-controls {
    display: flex;
    gap: 0.85rem;
    margin-bottom: 1.35rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.65rem 1.25rem;
    border-radius: 11px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--indigo) 100%);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 6px 18px -4px var(--primary-glow), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -4px rgba(139, 92, 246, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.28);
    filter: brightness(1.06);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

/* Data Tables & Scroll Wrappers */
.table-scroll-wrapper,
.user-list-wrapper,
.portfolio-table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
}

table {
    font-variant-numeric: tabular-nums;
}

table th {
    white-space: nowrap;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #cbd5e1;
    background: rgba(15, 21, 36, 0.85);
}

table td {
    white-space: nowrap;
}

table tbody tr {
    transition: background-color 0.18s ease;
}

table tbody tr:hover {
    background-color: rgba(139, 92, 246, 0.06) !important;
}

/* Sticky First Column on Data Tables when horizontally scrolling */
.sticky-col-table th:first-child,
.sticky-col-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 3;
}

.sticky-col-table thead th:first-child {
    background: #101626;
    z-index: 4;
}

.sticky-col-table tbody td:first-child {
    background: rgba(12, 17, 29, 0.94);
    backdrop-filter: blur(8px);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

/* Terminal & Logs Output */
.log-terminal {
    background: #05070d;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;
    padding: 1.15rem;
    font-family: 'JetBrains Mono', 'Space Grotesk', monospace;
    font-size: 0.84rem;
    max-height: 280px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    box-shadow: inset 0 4px 16px rgba(0, 0, 0, 0.6);
}

.log-placeholder {
    color: #64748b;
    font-style: italic;
}

.log-line {
    color: #34d399;
    animation: fadeIn 0.25s ease-out;
    word-break: break-all;
}

.log-line.error {
    color: #fb7185;
}

.log-line.warn {
    color: #fbbf24;
}

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

/* Content Section Toggle */
.content-section {
    display: none;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    animation: sectionFade 0.25s ease-out;
}

.content-section.active {
    display: block;
}

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

/* Terminal Container Styling */
#terminal-container {
    background: #080b12;
    border-radius: 14px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.75);
    height: clamp(320px, calc(100vh - 260px), 720px);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    position: relative;
}

#terminal-container .xterm,
#terminal-container .xterm-viewport,
#terminal-container .xterm-screen {
    max-width: 100% !important;
}

.terminal-card {
    margin-top: 0.5rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

/* Login Screen Overlay */
.login-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 50% 30%, rgba(17, 24, 39, 0.88), rgba(5, 7, 14, 0.96));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.25rem;
    z-index: 10000;
    transition: opacity 0.3s ease;
}

.login-card {
    background: linear-gradient(160deg, rgba(22, 29, 48, 0.78), rgba(12, 16, 28, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top-color: rgba(255, 255, 255, 0.22);
    border-radius: 22px;
    padding: clamp(1.75rem, 4vw, 3rem);
    width: 100%;
    max-width: 430px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.75), 0 0 40px rgba(139, 92, 246, 0.12);
    display: flex;
    flex-direction: column;
}

.login-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.login-logo-icon {
    font-size: 2.2rem;
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(6, 182, 212, 0.2));
    border: 1px solid rgba(139, 92, 246, 0.4);
    box-shadow: 0 0 28px rgba(139, 92, 246, 0.3);
}

.login-header h2 {
    font-size: 1.65rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
    letter-spacing: -0.02em;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #cbd5e1;
}

.form-group input,
input[type="text"],
input[type="password"],
input[type="number"],
select {
    background: rgba(9, 13, 22, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 0.7rem 0.95rem;
    color: var(--text-primary);
    font-size: 0.92rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-group input:focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
select:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.btn-block {
    width: 100%;
    padding: 0.85rem;
    font-size: 0.98rem;
    font-weight: 700;
    margin-top: 0.5rem;
}

.login-error {
    color: #fb7185;
    font-size: 0.88rem;
    margin-bottom: 0.75rem;
    min-height: 1.2rem;
    text-align: center;
}

/* Settings / Management Views Styling */
.mgmt-form {
    background: rgba(10, 14, 24, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.35rem;
    margin-bottom: 1.75rem;
}

.mgmt-form h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #f1f5f9;
}

.mgmt-form-row {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
    align-items: center;
}

.mgmt-form-row input, .mgmt-form-row select {
    flex: 1;
    min-width: 150px;
}

.mgmt-error {
    color: #fb7185;
    font-size: 0.88rem;
    margin-top: 0.5rem;
}

.mgmt-success {
    color: #34d399;
    font-size: 0.88rem;
    margin-top: 0.5rem;
}

.user-list-wrapper {
    margin-top: 1.5rem;
    background: rgba(10, 14, 24, 0.35);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
}

.user-list-wrapper h3 {
    margin-bottom: 0.85rem;
    font-size: 1.02rem;
}

.user-table {
    width: 100%;
    border-collapse: collapse;
}

.user-table th, .user-table td {
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.88rem;
}

.profile-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 1.25rem;
}

.profile-card, .activity-card {
    background: rgba(13, 18, 30, 0.55);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
}

.profile-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.15rem;
    background: rgba(8, 12, 20, 0.55);
    padding: 1.15rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-top: 1rem;
}

.activity-logs-list {
    max-height: 440px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding-right: 0.35rem;
}

.activity-item {
    background: rgba(11, 16, 28, 0.65);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    transition: border-color 0.2s ease;
}

.activity-item:hover {
    border-color: rgba(139, 92, 246, 0.3);
}

.activity-action {
    font-weight: 500;
    font-size: 0.9rem;
}

.activity-time {
    font-size: 0.78rem;
    opacity: 0.6;
    font-family: 'JetBrains Mono', monospace;
}

/* Premium Editor Toolbar Styles */
.editor-toolbar {
    background: rgba(13, 18, 30, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.55rem 0.85rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.toolbar-group {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 0.18rem;
    gap: 0.15rem;
}

.toolbar-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary) !important;
    padding: 0.3rem 0.55rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    transition: all 0.18s ease;
    outline: none;
    height: 28px;
}

.toolbar-btn:hover {
    background: rgba(139, 92, 246, 0.16) !important;
    border-color: rgba(139, 92, 246, 0.35) !important;
    color: var(--text-primary) !important;
}

/* News Card Hover Effects */
.news-card-link:hover .news-card {
    transform: translateY(-3px);
    border-color: rgba(139, 92, 246, 0.45) !important;
    background: rgba(22, 29, 49, 0.75) !important;
    box-shadow: 0 12px 28px -8px rgba(139, 92, 246, 0.22) !important;
}

.news-card {
    transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

/* Language Selector Styles */
.lang-selector-wrapper {
    display: flex;
    align-items: center;
}

.lang-select {
    background: rgba(10, 14, 24, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.44rem 0.8rem;
    color: var(--text-main);
    outline: none;
    font-size: 0.85rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.22s ease;
}

.lang-select:hover {
    border-color: rgba(139, 92, 246, 0.45);
    background: rgba(18, 24, 40, 0.88);
}

/* Adaptive Modals - Universal Centering & Viewport Fit */
#f2b-modal-overlay,
#user-pw-modal-overlay,
#group-edit-modal-overlay,
#docker-opt-modal-overlay {
    align-items: center !important;
    justify-content: center !important;
    padding: 1rem !important;
    overflow-y: auto !important;
    z-index: 10050 !important;
}

#f2b-modal-container,
#user-pw-modal-overlay > div,
#group-edit-modal-overlay > div,
#docker-opt-modal-overlay > div {
    max-height: 90dvh !important;
    overflow-y: auto !important;
    border-radius: 18px !important;
    background: linear-gradient(165deg, #13192b 0%, #0b0f1b 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8) !important;
}

/* ==========================================================================
   ADAPTIVE RESPONSIVE DESIGN (PC / Tablet / Mobile Portrait & Landscape)
   ========================================================================== */

/* 1. Compact Desktop View (901px ~ 1100px with fine pointer): Expandable Icon Rail */
@media (min-width: 901px) and (max-width: 1100px) and (hover: hover) {
    .sidebar {
        width: var(--sidebar-rail-w);
        padding: 1.5rem 0.65rem;
        align-items: center;
    }

    .sidebar .logo {
        justify-content: center;
        padding-left: 0;
        padding-right: 0;
    }

    .sidebar .logo-text,
    .sidebar .nav-item .nav-label {
        opacity: 0;
        width: 0;
        overflow: hidden;
        display: none;
    }

    .sidebar .nav-item {
        justify-content: center;
        padding: 0.8rem;
        width: 48px;
        height: 48px;
    }

    /* Smooth Floating Drawer Expansion on Hover */
    .sidebar:hover {
        width: 240px;
        align-items: stretch;
        padding: 1.5rem 1rem;
        box-shadow: 16px 0 48px rgba(0, 0, 0, 0.75);
    }

    .sidebar:hover .logo {
        justify-content: flex-start;
        padding-left: 0.5rem;
    }

    .sidebar:hover .logo-text,
    .sidebar:hover .nav-item .nav-label {
        display: inline;
        opacity: 1;
        width: auto;
    }

    .sidebar:hover .nav-item {
        justify-content: flex-start;
        width: 100%;
        height: auto;
        padding: 0.8rem 1rem;
    }

    .main-content {
        margin-left: var(--sidebar-rail-w);
        width: calc(100% - var(--sidebar-rail-w));
        padding: 1.5rem 1.75rem;
    }

    .f2b-grid {
        grid-template-columns: 1fr !important;
    }
}

/* 2. Mobile & Touch Devices App-Shell View (<= 900px or coarse touch devices) */
@media (max-width: 900px), (hover: none) and (pointer: coarse) {
    html, body {
        width: 100% !important;
        max-width: 100% !important;
        height: 100vh !important;
        height: 100dvh !important;
        height: var(--app-height, 100dvh) !important;
        max-height: var(--app-height, 100dvh) !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        overscroll-behavior: none !important;
    }

    .ambient-glow {
        display: none !important;
    }

    .container {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 100vh !important;
        height: 100dvh !important;
        height: var(--app-height, 100dvh) !important;
        max-height: var(--app-height, 100dvh) !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        position: relative !important;
    }

    .main-content {
        order: 1 !important;
        flex: 1 1 0% !important;
        min-height: 0 !important;
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        max-height: calc(var(--app-height, 100dvh) - 62px - env(safe-area-inset-bottom, 0px)) !important;
        margin: 0 !important;
        padding: 0.75rem 0.8rem 1.35rem 0.8rem !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior-y: contain !important;
    }

    .sidebar {
        order: 2 !important;
        flex: 0 0 calc(62px + env(safe-area-inset-bottom, 0px)) !important;
        position: relative !important;
        top: auto !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        height: calc(62px + env(safe-area-inset-bottom, 0px)) !important;
        min-height: calc(62px + env(safe-area-inset-bottom, 0px)) !important;
        max-height: calc(62px + env(safe-area-inset-bottom, 0px)) !important;
        padding: 0.2rem 0.35rem env(safe-area-inset-bottom, 0px) !important;
        margin: 0 !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        z-index: 900 !important;
        background: rgba(8, 12, 22, 0.98) !important;
        backdrop-filter: blur(22px) saturate(180%) !important;
        -webkit-backdrop-filter: blur(22px) saturate(180%) !important;
        border-right: none !important;
        border-top: 1px solid rgba(255, 255, 255, 0.14) !important;
        box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.65) !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
    }

    .logo {
        display: none !important;
    }

    .nav-menu {
        flex-direction: row !important;
        width: 100% !important;
        height: 100% !important;
        justify-content: space-around !important;
        align-items: center !important;
        gap: 0.1rem !important;
        margin: 0 !important;
        padding: 0 !important;
        flex-wrap: nowrap !important;
    }

    .nav-item,
    .nav-item.nav-logout {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0.25rem 0.15rem !important;
        gap: 3px !important;
        font-size: 0.65rem !important;
        flex: 1 1 0 !important;
        min-width: 44px !important;
        height: 50px !important;
        border-radius: 10px !important;
        background: transparent !important;
        border: 1px solid transparent !important;
        margin-top: 0 !important;
        transform: none !important;
    }

    .nav-item::before {
        display: none !important;
    }

    .nav-item.active {
        color: #c4b5fd !important;
        background: rgba(139, 92, 246, 0.18) !important;
        border-color: rgba(139, 92, 246, 0.35) !important;
        box-shadow: none !important;
    }

    .nav-item .nav-icon {
        font-size: 1.12rem !important;
        width: auto !important;
        margin: 0 !important;
    }

    .nav-item .nav-label {
        display: block !important;
        font-size: 0.62rem !important;
        line-height: 1.1 !important;
        max-width: 100% !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .terminal-card {
        padding: 0.85rem !important;
        margin-top: 0 !important;
        margin-bottom: 0.5rem !important;
    }

    .terminal-card h2 {
        font-size: 1.02rem !important;
        margin-bottom: 0.25rem !important;
    }

    .terminal-card .app-desc {
        font-size: 0.78rem !important;
        margin-bottom: 0.6rem !important;
        line-height: 1.35 !important;
    }

    #terminal-container {
        height: calc(var(--app-height, 100dvh) - 245px) !important;
        min-height: 200px !important;
        max-height: 520px !important;
        padding: 0.55rem !important;
    }

    .top-header {
        padding: 0.65rem 0.85rem !important;
        margin-bottom: 0.8rem !important;
        gap: 0.45rem !important;
    }

    .welcome {
        width: 100%;
    }

    .welcome h1 {
        font-size: 1.08rem !important;
        justify-content: space-between;
        width: 100%;
        gap: 0.4rem !important;
    }

    .user-session-badge {
        font-size: 0.72rem !important;
        padding: 0.2rem 0.55rem !important;
        width: 100%;
        justify-content: flex-start;
    }

    .header-controls {
        width: 100% !important;
        justify-content: space-between !important;
        margin-left: 0 !important;
    }

    .lang-select,
    .live-clock,
    .system-time {
        padding: 0.32rem 0.65rem !important;
        font-size: 0.8rem !important;
    }

    #portfolio-advisory-container,
    #f2b-config-form,
    #portfolio-view .info-card > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    /* Compact 2-Column Resource Cards on Mobile */
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.75rem !important;
    }

    .local-resources .stats-grid .stat-card:last-child {
        grid-column: 1 / -1;
    }

    .stat-card {
        padding: 1rem 1.1rem !important;
        border-radius: 14px !important;
    }

    .card-header {
        margin-bottom: 0.55rem !important;
    }

    .card-value {
        font-size: 1.35rem !important;
        margin-bottom: 0.55rem !important;
    }

    .info-card, .interactive-app {
        padding: 1.1rem 1rem !important;
        border-radius: 16px !important;
        margin-bottom: 1.15rem !important;
    }

    #docker-opt-card {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    #db-inline-status {
        width: 100%;
        justify-content: flex-start;
    }

    /* Fail2Ban & Docs & Profile Layout Collapses */
    .f2b-grid {
        grid-template-columns: 1fr !important;
        min-height: auto !important;
        height: auto !important;
    }

    .f2b-grid > div:last-child {
        height: 400px !important;
    }

    .docs-explorer-layout {
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .docs-explorer-sidebar {
        width: 100% !important;
        min-width: 100% !important;
        max-height: 190px !important;
    }

    .docs-workspace-panel {
        width: 100% !important;
        min-width: 100% !important;
    }

    #doc-reader-view,
    #doc-editor-textarea {
        max-height: 55dvh !important;
        padding: 1rem !important;
    }

    .profile-layout,
    .profile-details-grid {
        grid-template-columns: 1fr !important;
        gap: 0.85rem !important;
    }

    .mgmt-form-row {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.65rem !important;
    }

    .mgmt-form-row input,
    .mgmt-form-row select,
    .mgmt-form-row button {
        width: 100% !important;
    }

    table th, table td {
        padding: 0.65rem 0.75rem !important;
        font-size: 0.82rem !important;
    }
}

/* 3. Extra Small Mobile Portrait (max-width: 390px) */
@media (max-width: 390px) {
    .stats-grid {
        grid-template-columns: 1fr !important;
    }

    .nav-item .nav-label {
        font-size: 0.56rem !important;
    }
}

/* 4. Mobile & Tablet Landscape Mode (가로 모드 능동형 최적화: min-width: 580px & max-height: 500px) */
@media (min-width: 580px) and (max-height: 500px) and (orientation: landscape) {
    .main-content {
        max-height: calc(var(--app-height, 100dvh) - 48px - env(safe-area-inset-bottom, 0px)) !important;
        padding: 0.55rem 0.9rem 1rem 0.9rem !important;
    }

    .sidebar {
        flex: 0 0 calc(48px + env(safe-area-inset-bottom, 0px)) !important;
        height: calc(48px + env(safe-area-inset-bottom, 0px)) !important;
        min-height: calc(48px + env(safe-area-inset-bottom, 0px)) !important;
        max-height: calc(48px + env(safe-area-inset-bottom, 0px)) !important;
    }

    .nav-item,
    .nav-item.nav-logout {
        flex-direction: row !important;
        gap: 0.35rem !important;
        height: 40px !important;
        padding: 0.2rem 0.4rem !important;
    }

    .top-header {
        flex-direction: row !important;
        align-items: center !important;
        padding: 0.45rem 0.9rem !important;
        margin-bottom: 0.6rem !important;
    }

    .welcome {
        width: auto !important;
    }

    .welcome h1 {
        font-size: 1rem !important;
    }

    .user-session-badge {
        width: auto !important;
    }

    .header-controls {
        width: auto !important;
    }

    .stats-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 0.65rem !important;
    }

    .local-resources .stats-grid .stat-card:last-child {
        grid-column: auto !important;
    }

    .stat-card {
        padding: 0.7rem 0.95rem !important;
    }

    .card-value {
        font-size: 1.2rem !important;
        margin-bottom: 0.35rem !important;
    }

    #terminal-container {
        height: calc(var(--app-height, 100dvh) - 180px) !important;
        min-height: 160px !important;
    }

    .docs-explorer-layout {
        flex-direction: row !important;
    }

    .docs-explorer-sidebar {
        width: 200px !important;
        min-width: 180px !important;
        max-height: calc(var(--app-height, 100dvh) - 160px) !important;
    }

    #doc-reader-view,
    #doc-editor-textarea {
        max-height: calc(var(--app-height, 100dvh) - 180px) !important;
        min-height: 160px !important;
    }

    .f2b-logs-panel {
        height: calc(var(--app-height, 100dvh) - 170px) !important;
        min-height: 190px !important;
    }
}

/* Additional Component Refinements */
.portfolio-sum-row td {
    background: rgba(139, 92, 246, 0.1) !important;
    border-top: 1px solid rgba(139, 92, 246, 0.35) !important;
    color: #ffffff !important;
}

.doc-list-item {
    transition: all 0.2s ease !important;
}

.doc-list-item:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    color: var(--text-primary) !important;
}

.doc-list-item.active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.24), rgba(6, 182, 212, 0.1)) !important;
    border-color: rgba(139, 92, 246, 0.45) !important;
    box-shadow: 0 4px 16px -4px rgba(139, 92, 246, 0.28) !important;
}

#advisory-calendar-popover {
    max-width: calc(100vw - 2rem);
}

/* ==========================================================================
   PORTFOLIO EXPANDABLE DROPDOWN & NO-HORIZONTAL-SCROLL ADAPTIVE TABLE
   ========================================================================== */
.portfolio-mobile-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: #c4b5fd;
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.12), rgba(6, 182, 212, 0.05));
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 10px;
    padding: 0.55rem 0.9rem;
    margin-bottom: 0.9rem;
}

.port-currency-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.port-currency-info {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.port-yield-cell {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.25;
}

.mobile-sub-meta {
    display: none;
    font-size: 0.72rem;
    font-weight: 500;
    opacity: 0.72;
    font-family: 'JetBrains Mono', monospace;
    margin-top: 0.15rem;
}

.port-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--primary-light);
    font-size: 0.78rem;
    transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s ease;
    flex-shrink: 0;
}

.port-chevron.open {
    transform: rotate(180deg);
    background: rgba(139, 92, 246, 0.25);
    border-color: rgba(139, 92, 246, 0.45);
    color: #ffffff;
}

.portfolio-main-row.expanded {
    background: rgba(139, 92, 246, 0.08) !important;
}

.portfolio-detail-row {
    display: none;
}

.portfolio-detail-row.show {
    display: table-row;
}

.portfolio-detail-cell {
    padding: 0 0.85rem 0.95rem 0.85rem !important;
    border-bottom: 1px solid var(--border-color);
    background: rgba(10, 14, 24, 0.65);
    white-space: normal !important;
}

.portfolio-dropdown-card {
    background: linear-gradient(145deg, rgba(18, 25, 43, 0.92), rgba(11, 15, 27, 0.96));
    border: 1px solid rgba(139, 92, 246, 0.28);
    border-radius: 12px;
    padding: 1rem 1.15rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 24px rgba(0, 0, 0, 0.45);
    animation: fadeIn 0.22s ease-out;
}

.portfolio-dropdown-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem 1rem;
}

.port-detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 0.55rem 0.75rem;
}

.port-detail-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
}

.port-detail-val {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
    word-break: break-all;
}

.port-dropdown-advisory {
    margin-top: 0.85rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.port-dropdown-advisory-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #c4b5fd;
    margin-bottom: 0.3rem;
}

.port-dropdown-advisory-desc {
    font-size: 0.83rem;
    line-height: 1.5;
    color: #cbd5e1;
    word-break: keep-all;
}

/* Narrow Screen / Mobile & Tablet (<= 980px): Zero Horizontal Scroll + Summary & Dropdown */
@media (max-width: 980px) {
    .portfolio-table-container {
        overflow-x: hidden !important;
    }

    .portfolio-adaptive-table {
        table-layout: fixed;
        width: 100% !important;
    }

    .portfolio-adaptive-table .col-detail {
        display: none !important;
    }

    .portfolio-adaptive-table th.col-primary,
    .portfolio-adaptive-table td.col-primary {
        padding: 0.75rem 0.5rem !important;
        white-space: normal !important;
    }

    .portfolio-adaptive-table th.col-primary:nth-child(1),
    .portfolio-adaptive-table td.col-primary:nth-child(1) {
        width: 31%;
    }

    .portfolio-adaptive-table th.col-primary:nth-child(7),
    .portfolio-adaptive-table td.col-primary:nth-child(7) {
        width: 27%;
    }

    .portfolio-adaptive-table th.col-primary:nth-child(9),
    .portfolio-adaptive-table td.col-primary:nth-child(9) {
        width: 22%;
    }

    .portfolio-adaptive-table th.col-primary:nth-child(11),
    .portfolio-adaptive-table td.col-primary:nth-child(11) {
        width: 20%;
    }

    .mobile-sub-meta {
        display: block;
    }

    .portfolio-dropdown-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.55rem;
    }

    .portfolio-detail-cell {
        padding: 0 0.5rem 0.75rem 0.5rem !important;
    }

    .portfolio-dropdown-card {
        padding: 0.85rem;
    }
}

@media (max-width: 420px) {
    .portfolio-adaptive-table th.col-primary,
    .portfolio-adaptive-table td.col-primary {
        padding: 0.65rem 0.35rem !important;
        font-size: 0.78rem !important;
    }

    .portfolio-adaptive-table .badge {
        padding: 0.2rem 0.35rem !important;
        font-size: 0.7rem !important;
    }

    .port-chevron {
        width: 17px;
        height: 17px;
        font-size: 0.7rem;
    }
}


