/* Liaison Office Admin Portal - M365-Inspired Styles */

:root {
    --primary: #0078d4;
    --primary-hover: #106ebe;
    --primary-light: #deecf9;
    --danger: #d13438;
    --danger-hover: #a4262c;
    --success: #107c10;
    --warning: #ffb900;
    --neutral-dark: #201f1e;
    --neutral-primary: #323130;
    --neutral-secondary: #605e5c;
    --neutral-tertiary: #a19f9d;
    --neutral-light: #edebe9;
    --neutral-lighter: #f3f2f1;
    --neutral-white: #ffffff;
    --header-bg: #0078d4;
    --sidebar-bg: #faf9f8;
    --sidebar-hover: #f3f2f1;
    --sidebar-active: #e1dfdd;
    --sidebar-border: #edebe9;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.1);
    --shadow-md: 0 2px 4px rgba(0,0,0,0.14), 0 0 2px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.14);
    --header-height: 48px;
    --sidebar-width: 250px;
    --font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius-sm: 2px;
    --radius-md: 4px;
    --radius-lg: 8px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    font-size: 14px;
    color: var(--neutral-primary);
    background: var(--neutral-lighter);
    line-height: 1.5;
}

.hidden { display: none !important; }

/* Login */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0078d4 0%, #005a9e 100%);
    padding: 20px;
}

.login-box {
    background: var(--neutral-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 0;
    width: 100%;
    max-width: 400px;
    text-align: center;
    overflow: hidden;
}

.login-header {
    background: linear-gradient(135deg, #0078d4 0%, #005a9e 100%);
    padding: 32px 40px;
    margin-bottom: 0;
}

.login-logo { height: 48px; }

.login-body {
    padding: 32px 40px 40px 40px;
}
.login-header .login-mascot { height: 80px; opacity: 0.95; }
.login-body h1 { margin: 0 0 4px 0; font-size: 28px; font-weight: 600; color: var(--neutral-dark); }
.login-body .subtitle { margin: 0 0 24px 0; color: var(--neutral-secondary); font-size: 16px; }

.form-group { margin-bottom: 16px; text-align: left; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; color: var(--neutral-primary); }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    font-family: inherit;
    border: 1px solid var(--neutral-tertiary);
    border-radius: var(--radius-sm);
    background: var(--neutral-white);
    transition: border-color 0.15s ease;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}
.form-group input::placeholder { color: var(--neutral-tertiary); }

/* Password Input with Toggle */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper input {
    flex: 1;
    padding-right: 44px;
}

.password-toggle {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    color: var(--neutral-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
}

.password-toggle:hover {
    color: var(--neutral-dark);
    background: var(--neutral-lighter);
}

.password-toggle svg {
    width: 20px;
    height: 20px;
}

.password-toggle .eye-closed {
    display: none;
}

.password-toggle.showing .eye-open {
    display: none;
}

.password-toggle.showing .eye-closed {
    display: block;
}

.error { color: var(--danger); font-size: 12px; margin-top: 8px; }

.login-divider {
    display: flex;
    align-items: center;
    margin: 16px 0;
    color: var(--neutral-secondary);
    font-size: 13px;
}
.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--neutral-light);
}
.login-divider span {
    padding: 0 12px;
}
.back-link {
    text-align: center;
    margin-top: 12px;
    font-size: 13px;
}
.back-link a {
    color: var(--primary);
    text-decoration: none;
}
.back-link a:hover {
    text-decoration: underline;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.1s ease;
    white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--primary); color: var(--neutral-white); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: var(--neutral-white); color: var(--neutral-primary); border-color: var(--neutral-tertiary); }
.btn-secondary:hover { background: var(--neutral-lighter); }
.btn-danger { background: var(--danger); color: var(--neutral-white); }
.btn-danger:hover { background: var(--danger-hover); }
.btn-full { width: 100%; justify-content: center; }
.btn-sm { padding: 4px 12px; font-size: 12px; }

/* App Layout */
.app-container {
    display: grid;
    grid-template-areas: "header header" "sidebar main";
    grid-template-columns: var(--sidebar-width) 1fr;
    grid-template-rows: var(--header-height) 1fr;
    min-height: 100vh;
}

/* Header */
.top-header {
    grid-area: header;
    background: var(--header-bg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-left { display: flex; align-items: center; gap: 12px; }
.menu-toggle {
    background: transparent;
    border: none;
    color: var(--neutral-white);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}
.menu-toggle:hover { background: rgba(255,255,255,0.1); }
.header-logo { height: 28px; }
.header-title { color: var(--neutral-white); font-size: 16px; font-weight: 600; }
.header-right { display: flex; align-items: center; }

/* User Menu */
.user-menu { position: relative; }
.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: var(--neutral-white);
    cursor: pointer;
    padding: 6px 8px;
    border-radius: var(--radius-sm);
}
.user-menu-btn:hover { background: rgba(255,255,255,0.1); }
.user-avatar, .user-avatar-lg {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    font-weight: 600;
    font-size: 12px;
}
.user-avatar { width: 32px; height: 32px; }
.user-avatar-lg { width: 48px; height: 48px; background: var(--primary); color: var(--neutral-white); }
.user-name-display { font-size: 14px; }
.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background: var(--neutral-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 280px;
    overflow: hidden;
    z-index: 200;
}
.dropdown-header { display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--neutral-lighter); }
.dropdown-user-info { display: flex; flex-direction: column; }
.dropdown-user-name { font-weight: 600; color: var(--neutral-dark); }
.dropdown-user-email { font-size: 12px; color: var(--neutral-secondary); }
.dropdown-divider { height: 1px; background: var(--neutral-light); }
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    background: none;
    border: none;
    font-size: 14px;
    font-family: inherit;
    color: var(--neutral-primary);
    cursor: pointer;
    text-align: left;
}
.dropdown-item:hover { background: var(--neutral-lighter); }
.dropdown-item.text-danger { color: var(--danger); }
.dropdown-item svg { color: var(--neutral-secondary); }
.dropdown-item.text-danger svg { color: var(--danger); }

/* Sidebar */
.sidebar {
    grid-area: sidebar;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--sidebar-border);
    overflow-y: auto;
    padding: 8px 0;
}
.nav-menu { list-style: none; margin: 0; padding: 0; }
.nav-item, .nav-section { margin: 2px 4px; }
.nav-link, .nav-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.1s ease;
    color: var(--neutral-primary);
}
.nav-link:hover, .nav-section-header:hover { background: var(--sidebar-hover); }
.nav-item.active .nav-link { background: var(--sidebar-active); font-weight: 600; }
.nav-icon { width: 20px; height: 20px; flex-shrink: 0; color: var(--neutral-secondary); }
.nav-item.active .nav-icon { color: var(--primary); }
.nav-text { flex: 1; font-size: 14px; }
.nav-chevron { width: 12px; height: 12px; color: var(--neutral-tertiary); transition: transform 0.2s ease; }
.nav-section.expanded .nav-chevron { transform: rotate(90deg); }
.nav-submenu { list-style: none; margin: 0; padding: 0; display: none; padding-left: 32px; }
.nav-section.expanded .nav-submenu { display: block; }
.nav-subitem {
    padding: 8px 12px;
    font-size: 14px;
    color: var(--neutral-secondary);
    cursor: pointer;
    border-radius: var(--radius-sm);
    margin: 2px 4px 2px 0;
}
.nav-subitem:hover { background: var(--sidebar-hover); color: var(--neutral-primary); }
.nav-subitem.active { background: var(--sidebar-active); color: var(--neutral-primary); font-weight: 600; }
.nav-subitem.divider { height: 1px; background: var(--sidebar-border); margin: 8px 4px; padding: 0; cursor: default; }
.nav-subitem.divider:hover { background: var(--sidebar-border); }

/* Main Content */
.main-content {
    grid-area: main;
    padding: 0 24px 24px 24px;
    overflow-y: auto;
    background: var(--neutral-white);
}

/* Breadcrumb */
.breadcrumb { display: flex; align-items: center; gap: 8px; padding: 16px 0; font-size: 12px; color: var(--neutral-secondary); }
.breadcrumb-item { color: var(--neutral-secondary); text-decoration: none; }
a.breadcrumb-item { cursor: pointer; }
a.breadcrumb-item:hover { color: var(--primary); text-decoration: underline; }
.breadcrumb-separator { color: var(--neutral-tertiary); }
.breadcrumb-item.active { color: var(--neutral-primary); font-weight: 600; cursor: default; }
.breadcrumb-item.current { color: var(--neutral-primary); font-weight: 600; }

/* Page Layout */
.page { display: none; }
.page.active { display: block; }
.page-title-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.page-title-row h1 { margin: 0; font-size: 28px; font-weight: 600; color: var(--neutral-dark); }

/* Toolbar */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar-left, .toolbar-right { display: flex; align-items: center; gap: 8px; }
.search-box {
    display: flex;
    align-items: center;
    background: var(--neutral-lighter);
    border: 1px solid var(--neutral-light);
    border-radius: var(--radius-sm);
    padding: 0 12px;
}
.search-box svg { width: 16px; height: 16px; color: var(--neutral-tertiary); }
.search-box input { border: none; background: transparent; padding: 8px 10px; font-size: 14px; font-family: inherit; width: 200px; }
.search-box input:focus { outline: none; }
.search-box input::placeholder { color: var(--neutral-tertiary); }

/* Stats Grid */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card {
    background: var(--neutral-white);
    border: 1px solid var(--neutral-light);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    position: relative;
    transition: all 0.2s ease;
}
.stat-card-clickable {
    cursor: pointer;
}
.stat-card-clickable:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 120, 212, 0.15);
    transform: translateY(-2px);
}
.stat-card-clickable:active {
    transform: translateY(0);
}
.stat-action {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.2s ease;
    color: var(--primary);
}
.stat-action svg { width: 16px; height: 16px; }
.stat-card-clickable:hover .stat-action {
    opacity: 1;
}
.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.stat-icon svg { width: 24px; height: 24px; color: var(--neutral-white); }
.stat-icon.tenants { background: #0078d4; }
.stat-icon.clients { background: #0078d4; }
.stat-icon.subscriptions { background: #107c10; }
.stat-icon.resellers { background: #8764b8; }
.stat-icon.commissions { background: #8764b8; }
.stat-icon.revenue { background: #ca5010; }
.stat-icon.transactions { background: #ca5010; }
.stat-content { flex: 1; }
.stat-label { display: block; font-size: 12px; color: var(--neutral-secondary); margin-bottom: 4px; }
.stat-number { display: block; font-size: 28px; font-weight: 600; color: var(--neutral-dark); line-height: 1.2; }
.stat-details { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; font-size: 12px; color: var(--neutral-secondary); }
.stat-details strong { color: var(--neutral-primary); }

/* Panel */
.panel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 16px; }
.panel { background: var(--neutral-white); border: 1px solid var(--neutral-light); border-radius: var(--radius-md); overflow: hidden; }
.panel-header { 
    padding: 16px 20px; 
    border-bottom: 1px solid var(--neutral-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.panel-header h3 { margin: 0; font-size: 16px; font-weight: 600; color: var(--neutral-dark); }
.panel-header-link {
    font-size: 13px;
    color: var(--primary);
    text-decoration: none;
}
.panel-header-link:hover {
    text-decoration: underline;
}
.panel-body { padding: 0; }
.panel-body-scroll {
    max-height: 320px;
    overflow-y: auto;
}

/* Data Table */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--neutral-light); }
.data-table th { 
    background: var(--neutral-lighter); 
    font-weight: 600; 
    font-size: 12px; 
    color: var(--neutral-secondary); 
    text-transform: uppercase; 
    letter-spacing: 0.5px;
    height: 44px;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 1;
}
.data-table tr:hover td { background: var(--neutral-lighter); }
.data-table td { font-size: 14px; color: var(--neutral-primary); }
.data-table.compact th, .data-table.compact td { padding: 8px 12px; font-size: 12px; }
.col-actions { width: 44px; text-align: center !important; padding: 8px 4px !important; }

/* Fixed column widths for consistent table layouts */
.table-fixed { table-layout: fixed; }

/* User table columns */
.table-fixed .col-name { width: 200px; }
.table-fixed .col-email { width: 280px; }
.table-fixed .col-role { width: 100px; }
.table-fixed .col-status { width: auto; }

/* Reseller table columns */
.table-fixed .col-company { width: 220px; }
.table-fixed .col-varid { width: 100px; }
.table-fixed .col-commission { width: 100px; }
.table-fixed .col-platforms { width: 120px; }

/* Subscriber table columns */
.table-fixed .col-subscriber { width: 220px; }
.table-fixed .col-product { width: 150px; }
.table-fixed .col-billing { width: 100px; }
.table-fixed .col-expires { width: 120px; }

/* Truncate long text in fixed columns */
.table-fixed td {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Row Link Styling - First column clickable */
.row-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}
.row-link:hover {
    text-decoration: underline;
    color: var(--primary-hover);
}

/* Row Actions */
.row-actions-btn {
    background: transparent;
    border: none;
    padding: 4px 8px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    color: var(--neutral-secondary);
}
.row-actions-btn:hover { background: var(--neutral-light); color: var(--neutral-primary); }
.row-actions-btn svg { width: 16px; height: 16px; }

/* Badge */
.badge { display: inline-block; padding: 2px 8px; font-size: 12px; font-weight: 600; border-radius: 12px; }
.badge-success { background: #dff6dd; color: #107c10; }
.badge-warning { background: #fff4ce; color: #797673; }
.badge-danger { background: #fde7e9; color: #a4262c; }
.badge-info { background: var(--primary-light); color: var(--primary); }

/* Empty State */
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 20px; text-align: center; }
.empty-mascot { width: 120px; height: auto; margin-bottom: 16px; opacity: 0.8; }
.empty-state h3 { margin: 0 0 8px 0; font-size: 16px; color: var(--neutral-primary); }
.empty-state p { margin: 0 0 16px 0; color: var(--neutral-secondary); }

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 60px 20px;
    z-index: 1000;
    overflow-y: auto;
}
.modal {
    background: var(--neutral-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 500px;
    animation: modalIn 0.2s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--neutral-light); }
.modal-header h2 { margin: 0; font-size: 20px; font-weight: 600; }
.modal-close { background: none; border: none; font-size: 24px; color: var(--neutral-secondary); cursor: pointer; padding: 4px; line-height: 1; }
.modal-close:hover { color: var(--neutral-primary); }
.modal-body { padding: 24px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 16px 24px; border-top: 1px solid var(--neutral-light); background: var(--neutral-lighter); }

/* Context Menu */
.context-menu {
    position: fixed;
    background: var(--neutral-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 180px;
    padding: 4px 0;
    z-index: 1000;
}
.context-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 14px;
    color: var(--neutral-primary);
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}
.context-menu-item:hover { background: var(--neutral-lighter); }
.context-menu-item.danger { color: var(--danger); }
.context-menu-item svg { width: 16px; height: 16px; color: var(--neutral-secondary); }
.context-menu-item.danger svg { color: var(--danger); }
.context-menu-divider { height: 1px; background: var(--neutral-light); margin: 4px 0; }

/* Toast */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 2000; display: flex; flex-direction: column; gap: 8px; }
.toast {
    background: var(--neutral-dark);
    color: var(--neutral-white);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    animation: toastIn 0.3s ease;
}
@keyframes toastIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
.toast.warning { background: #986f0b; }

/* Form Row */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Responsive */
@media (max-width: 768px) {
    .app-container { grid-template-columns: 1fr; grid-template-areas: "header" "main"; }
    .sidebar { position: fixed; left: -100%; top: var(--header-height); bottom: 0; width: 280px; z-index: 99; transition: left 0.3s ease; }
    .sidebar.open { left: 0; }
    .main-content { padding: 0 16px 16px 16px; }
    .stats-grid { grid-template-columns: 1fr; }
    .panel-grid { grid-template-columns: 1fr; }
    .toolbar { flex-direction: column; align-items: stretch; }
    .toolbar-left, .toolbar-right { width: 100%; }
    .search-box { width: 100%; }
    .search-box input { width: 100%; }
    .user-name-display { display: none; }
    .form-row { grid-template-columns: 1fr; }
}

.text-muted { color: var(--neutral-secondary) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 22px;
    cursor: pointer;
}
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.toggle-slider {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--neutral-tertiary);
    border-radius: 22px;
    transition: 0.3s;
}
.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: var(--shadow-sm);
}
.toggle-switch input:checked + .toggle-slider {
    background-color: var(--primary);
}
.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(22px);
}
.toggle-switch input:disabled + .toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Readonly Fields */
.field-readonly {
    background-color: var(--neutral-lighter) !important;
    color: var(--neutral-secondary) !important;
    cursor: not-allowed !important;
    border-color: var(--neutral-light) !important;
}
.system-field {
    font-size: 10px;
    color: var(--neutral-tertiary);
    font-weight: normal;
    margin-left: 4px;
}

/* Input with Addon (money fields) */
.input-with-addon {
    display: flex;
    align-items: stretch;
}
.input-with-addon input {
    flex: 1;
    border-radius: 0;
    text-align: right;
}
.input-addon {
    padding: 8px 10px;
    background: var(--neutral-lighter);
    border: 1px solid var(--neutral-light);
    color: var(--neutral-secondary);
    font-size: 13px;
    display: flex;
    align-items: center;
}
.input-addon:first-child {
    border-right: none;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}
.input-addon:last-child {
    border-left: none;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Address Block */
.address-block {
    background: var(--neutral-lighter);
    border: 1px solid var(--neutral-light);
    border-radius: var(--radius-md);
    padding: 16px;
    margin: 12px 0;
}
.address-block h4 {
    margin: 0 0 12px 0;
    color: var(--neutral-primary);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Card Sections */
.card-section {
    border-top: 1px solid var(--neutral-light);
    margin-top: 20px;
    padding-top: 16px;
}
.card-section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--neutral-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.card-section-title svg {
    width: 16px;
    height: 16px;
    fill: var(--neutral-secondary);
}

/* Same as Corporate Checkbox */
.same-as-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0;
    padding: 8px 12px;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    cursor: pointer;
}
.same-as-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}
.same-as-checkbox span {
    font-size: 13px;
    color: var(--primary);
}

/* Tabs in Modal */
.modal-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--neutral-light);
    margin: -20px -20px 20px -20px;
    padding: 0 20px;
}
.modal-tab {
    padding: 12px 20px;
    cursor: pointer;
    font-size: 13px;
    color: var(--neutral-secondary);
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}
.modal-tab:hover {
    color: var(--primary);
}
.modal-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 500;
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}

/* Larger Modal for Complex Forms */
.modal-content.modal-large {
    max-width: 700px;
}
.modal-content.modal-xlarge {
    max-width: 900px;
}

/* Form Grid for side-by-side fields */
.form-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* Contact Info Block */
.contact-block {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}
@media (max-width: 768px) {
    .contact-block { grid-template-columns: 1fr; }
    .form-grid-3 { grid-template-columns: 1fr; }
}

/* ===================== */
/* SLIDE-OUT DETAIL PANEL (M365 Style) */
/* ===================== */
.detail-panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.detail-panel-overlay.open {
    opacity: 1;
    visibility: visible;
}

.detail-panel {
    position: fixed;
    top: 0;
    right: -550px;
    width: 550px;
    max-width: 100vw;
    height: 100vh;
    background: var(--neutral-white);
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
}
.detail-panel.open {
    right: 0;
}
.detail-panel.panel-wide {
    width: 700px;
    right: -700px;
}
.detail-panel.panel-wide.open {
    right: 0;
}

/* Panel Header */
.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--neutral-light);
    background: var(--neutral-white);
}
.panel-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}
.panel-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
}
.panel-title-group h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--neutral-dark);
}
.panel-subtitle {
    margin: 2px 0 0 0;
    font-size: 12px;
    color: var(--neutral-secondary);
}
.panel-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.panel-close-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--neutral-secondary);
    border-radius: var(--radius-sm);
}
.panel-close-btn:hover {
    background: var(--neutral-lighter);
    color: var(--neutral-dark);
}

/* Panel Toolbar */
.panel-toolbar {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 20px;
    border-bottom: 1px solid var(--neutral-light);
    background: var(--neutral-lighter);
}
.panel-toolbar-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: none;
    border: none;
    font-size: 13px;
    color: var(--neutral-primary);
    cursor: pointer;
    border-radius: var(--radius-sm);
}
.panel-toolbar-btn:hover {
    background: var(--neutral-light);
}
.panel-toolbar-btn svg {
    width: 16px;
    height: 16px;
}
.panel-toolbar-btn.danger { color: var(--danger); }
.panel-toolbar-btn.danger:hover { background: #fde7e9; }

/* Panel Tabs */
.panel-tabs {
    display: flex;
    gap: 0;
    padding: 0 20px;
    border-bottom: 1px solid var(--neutral-light);
    background: var(--neutral-white);
}
.panel-tab {
    padding: 12px 16px;
    cursor: pointer;
    font-size: 13px;
    color: var(--neutral-secondary);
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
}
.panel-tab:hover {
    color: var(--neutral-primary);
}
.panel-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 500;
}

/* Panel Content */
.panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}
.panel-tab-content {
    display: none;
}
.panel-tab-content.active {
    display: block;
}

/* Panel Footer */
.panel-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 20px;
    border-top: 1px solid var(--neutral-light);
    background: var(--neutral-lighter);
}

/* Panel Form Sections */
.panel-section {
    margin-bottom: 24px;
}
.panel-section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--neutral-primary);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--neutral-light);
}
.panel-field-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--neutral-lighter);
}
.panel-field-row:last-child {
    border-bottom: none;
}
.panel-field-label {
    font-size: 13px;
    color: var(--neutral-secondary);
    min-width: 140px;
}
.panel-field-value {
    font-size: 13px;
    color: var(--neutral-primary);
    text-align: right;
    flex: 1;
}
.panel-field-value a {
    color: var(--primary);
    text-decoration: none;
}
.panel-field-value a:hover {
    text-decoration: underline;
}

/* ===================== */
/* WIZARD (Multi-step Add) */
/* ===================== */

/* Wizard Overlay - fullscreen backdrop */
/* =====================
   WIZARD SLIDE-OUT PANEL (M365 Style)
   ===================== */
.wizard-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.wizard-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 800px;
    background: var(--neutral-white);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    animation: wizardSlideIn 0.25s ease;
}

@keyframes wizardSlideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.wizard-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--neutral-light);
}

.wizard-panel-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: var(--neutral-primary);
}

.wizard-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    color: var(--neutral-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wizard-close:hover {
    background: var(--neutral-light);
    color: var(--neutral-primary);
}

.wizard-close svg {
    width: 20px;
    height: 20px;
}

.wizard-panel-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.wizard-panel-sidebar {
    width: 200px;
    padding: 24px;
    flex-shrink: 0;
    border-right: 1px solid var(--neutral-light);
    background: var(--neutral-white);
}

.wizard-steps {
    display: flex;
    flex-direction: column;
}

.wizard-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    position: relative;
}

.wizard-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 9px;
    top: 32px;
    bottom: -8px;
    width: 2px;
    background: var(--neutral-light);
}

.wizard-step.completed::after {
    background: var(--primary);
}

.wizard-step-number {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--neutral-light);
    background: var(--neutral-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
    color: var(--neutral-secondary);
    position: relative;
    z-index: 1;
}

.wizard-step.active .wizard-step-number {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

.wizard-step.completed .wizard-step-number {
    border-color: var(--primary);
    background: var(--neutral-white);
    color: transparent;
}

.wizard-step.completed .wizard-step-number::after {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    position: absolute;
}

.wizard-step-label {
    font-size: 14px;
    color: var(--neutral-secondary);
    padding-top: 1px;
    line-height: 1.3;
}

.wizard-step.active .wizard-step-label {
    color: var(--neutral-primary);
    font-weight: 600;
}

.wizard-step.completed .wizard-step-label {
    color: var(--neutral-primary);
}

.wizard-panel-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--neutral-white);
}

.wizard-panel-content-header {
    padding: 24px 32px 16px;
}

.wizard-panel-content-header h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--neutral-primary);
}

.wizard-panel-content-header p {
    margin: 0;
    color: var(--neutral-secondary);
    font-size: 14px;
}

.wizard-panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 0 32px 24px;
}

.wizard-panel-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-top: 1px solid var(--neutral-light);
    background: var(--neutral-white);
}

.wizard-footer-left {
    display: flex;
    gap: 8px;
}

.wizard-footer-left .btn-secondary {
    background: transparent;
    border: none;
    color: var(--neutral-secondary);
}

.wizard-footer-left .btn-secondary:hover {
    color: var(--neutral-primary);
    background: var(--neutral-light);
}

.btn-link {
    background: none;
    border: none;
    color: var(--neutral-secondary);
    cursor: pointer;
    padding: 8px 16px;
    font-size: 14px;
}

.btn-link:hover {
    color: var(--neutral-primary);
}

/* Wizard page transitions */
.wizard-page {
    display: none;
}

.wizard-page.active {
    display: block;
}

/* Responsive wizard */
@media (max-width: 768px) {
    .wizard-panel {
        max-width: 100%;
    }
    .wizard-panel-sidebar {
        width: 160px;
        padding: 16px;
    }
    .wizard-panel-content {
        padding: 0 20px 20px;
    }
    .wizard-panel-content-header {
        padding: 20px 20px 12px;
    }
}
.form-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-3col {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}
@media (max-width: 600px) {
    .form-2col, .form-3col { grid-template-columns: 1fr; }
    .detail-panel { width: 100%; right: -100%; }
}

/* ===================== */
/* SETTINGS PAGE - Tabbed Layout */
/* ===================== */
.settings-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--neutral-light);
    background: var(--neutral-white);
    padding: 0 24px;
    margin: 0 -24px;
}

.settings-tab {
    padding: 12px 20px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 14px;
    font-weight: 500;
    color: var(--neutral-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
    margin-bottom: -1px;
}

.settings-tab:hover {
    color: var(--primary);
    background: var(--neutral-lighter);
}

.settings-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.settings-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-top: 24px;
}

.settings-pane {
    display: none;
    flex: 1;
    flex-direction: column;
}

.settings-pane.active {
    display: flex;
}

.settings-pane-header {
    margin-bottom: 24px;
}

.settings-pane-header h3 {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 600;
}

.settings-pane-header p {
    margin: 0;
    color: var(--neutral-secondary);
    font-size: 14px;
}

.settings-form {
    flex: 1;
    max-width: 700px;
}

.settings-actions {
    display: flex;
    gap: 12px;
    padding-top: 24px;
    margin-top: auto;
}

/* Settings Toggle Rows */
.settings-toggle-group {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.settings-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--neutral-light);
    cursor: pointer;
}

.settings-toggle:last-child {
    border-bottom: none;
}

.settings-toggle-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.settings-toggle-text strong {
    font-size: 14px;
    font-weight: 500;
    color: var(--neutral-primary);
}

.settings-toggle-text span {
    font-size: 13px;
    color: var(--neutral-secondary);
}

/* Info Grid for System Settings */
.info-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.info-row {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid var(--neutral-light);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    width: 160px;
    font-size: 13px;
    color: var(--neutral-secondary);
    flex-shrink: 0;
}

.info-value {
    font-size: 14px;
    color: var(--neutral-primary);
}

/* Nag/Alert Banners */
.nag-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    margin-bottom: 20px;
    background: #fff4ce;
    border: 1px solid #d29d00;
    border-radius: var(--radius-md);
    color: #6b5900;
}

.nag-banner.nag-error {
    background: #fde7e9;
    border-color: #d13438;
    color: #a4262c;
}

.nag-banner.nag-info {
    background: #e6f3ff;
    border-color: #0078d4;
    color: #004578;
}

.nag-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.nag-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.nag-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nag-content strong {
    font-weight: 600;
}

.nag-content span {
    font-size: 13px;
    opacity: 0.9;
}

.nag-banner .btn-sm {
    padding: 6px 16px;
    font-size: 13px;
    flex-shrink: 0;
}

.field-hint {
    display: block;
    font-size: 12px;
    color: var(--neutral-secondary);
    margin-top: 4px;
}

/* Radio Card Group */
.radio-group-horizontal {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.radio-card {
    flex: 1;
    display: block;
    cursor: pointer;
}

.radio-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.radio-card-content {
    display: block;
    padding: 16px;
    border: 2px solid var(--neutral-light);
    border-radius: var(--radius-md);
    text-align: center;
    transition: all 0.15s ease;
}

.radio-card-content strong {
    display: block;
    font-size: 13px;
}

.radio-card input:checked + .radio-card-content {
    border-color: var(--primary);
    background: var(--primary-light);
}

.radio-card:hover .radio-card-content {
    border-color: var(--primary);
}

/* Toggle Switch */
.toggle-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.toggle-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--neutral-white);
    border: 1px solid var(--neutral-light);
    border-radius: var(--radius-md);
}

.toggle-info {
    flex: 1;
}

.toggle-info strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.toggle-info span {
    font-size: 13px;
    color: var(--neutral-secondary);
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
    margin-left: 16px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--neutral-tertiary);
    transition: 0.2s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.2s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--primary);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

@media (max-width: 600px) {
    .settings-tabs {
        overflow-x: auto;
        padding: 0 16px;
        margin: 0 -16px;
    }
    .settings-tab {
        white-space: nowrap;
        padding: 10px 16px;
    }
    .radio-group-horizontal {
        flex-direction: column;
    }
    .toggle-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .toggle-switch {
        margin-left: 0;
    }
}

/* Stat Detail Popup */
.stat-detail-grid {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 24px;
    margin-bottom: 20px;
}
.stat-detail-chart {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.stat-bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 120px;
    padding: 10px 0;
}
.stat-bar {
    width: 32px;
    min-height: 4px;
    border-radius: 4px 4px 0 0;
    transition: height 0.3s ease;
}
.stat-bar-labels {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 11px;
    color: var(--neutral-secondary);
    margin-top: 12px;
}
.stat-bar-labels span {
    display: flex;
    align-items: center;
    gap: 6px;
}
.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.dot-success { background: var(--success); }
.dot-warning { background: var(--warning); }
.dot-danger { background: var(--danger); }
.stat-detail-breakdown {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.stat-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}
.stat-detail-row span {
    color: var(--neutral-secondary);
}
.stat-detail-row strong {
    color: var(--neutral-primary);
}
.stat-detail-row hr {
    width: 100%;
    border: none;
    border-top: 1px solid var(--neutral-light);
    margin: 4px 0;
}
.stat-detail-breakdown hr {
    margin: 8px 0;
}
.stat-revenue-display {
    text-align: center;
    padding: 20px;
}
.stat-revenue-amount {
    font-size: 28px;
    font-weight: 700;
    color: var(--success);
}
.stat-revenue-label {
    font-size: 12px;
    color: var(--neutral-secondary);
    margin-top: 4px;
}
.stat-detail-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 16px;
    border-top: 1px solid var(--neutral-light);
    margin-top: 16px;
}
.text-success { color: var(--success) !important; }
.text-warning { color: var(--warning) !important; }
.text-danger { color: var(--danger) !important; }


/* Wizard Summary */
.wizard-summary {
    padding: 8px 0;
}
.wizard-summary p {
    margin-bottom: 16px;
    color: var(--neutral-secondary);
}
.summary-box {
    background: var(--neutral-lighter);
    border-radius: 8px;
    padding: 16px;
}
.summary-box .panel-field {
    padding: 8px 0;
    border-bottom: 1px solid var(--neutral-light);
}
.summary-box .panel-field:last-child {
    border-bottom: none;
}

/* Add New Option in Dropdown */
.add-new-option {
    color: var(--primary);
    font-weight: 600;
    border-bottom: 1px solid var(--neutral-light);
}
select option.add-new-option:hover {
    background-color: var(--primary-light);
}

/* Compact data tables in panels */
.data-table.compact {
    font-size: 13px;
}
.data-table.compact th,
.data-table.compact td {
    padding: 8px 12px;
}

/* Text muted helper */
.text-muted {
    color: var(--neutral-secondary);
    font-size: 13px;
}

/* Toggle/Checkbox Labels */
.toggle-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: normal;
}
.toggle-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Settings container */
.settings-container {
    padding: 0;
}

/* Field readonly style */
.field-readonly {
    background-color: var(--neutral-lighter);
    color: var(--neutral-secondary);
    cursor: not-allowed;
}

/* Text success color */
.text-success {
    color: var(--success);
    font-weight: 600;
}

/* Text warning color */
.text-warning {
    color: var(--warning);
}

/* =============================================
   Partner Portal Slide-out Panel
   ============================================= */
.panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.panel-overlay.open {
    opacity: 1;
    visibility: visible;
}

.slide-panel {
    position: fixed;
    top: 0;
    right: -650px;
    width: 650px;
    max-width: 100vw;
    height: 100vh;
    background: var(--neutral-white);
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
}

.panel-overlay.open .slide-panel {
    right: 0;
}

.slide-panel .panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--neutral-light);
    background: var(--neutral-white);
    flex-shrink: 0;
}

.slide-panel .panel-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.slide-panel .panel-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
}

.slide-panel .panel-title-group h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--neutral-dark);
}

.slide-panel .panel-subtitle {
    margin: 2px 0 0 0;
    font-size: 13px;
    color: var(--neutral-secondary);
}

.slide-panel .panel-close {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--neutral-secondary);
    border-radius: var(--radius-sm);
}

.slide-panel .panel-close:hover {
    background: var(--neutral-lighter);
    color: var(--neutral-dark);
}

.slide-panel .panel-close svg {
    width: 20px;
    height: 20px;
}

.slide-panel .panel-toolbar {
    display: flex;
    gap: 8px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--neutral-light);
    background: var(--neutral-lighter);
}

.slide-panel .panel-toolbar:empty {
    display: none;
}

.slide-panel .panel-tabs {
    display: flex;
    gap: 0;
    padding: 0 20px;
    border-bottom: 1px solid var(--neutral-light);
    background: var(--neutral-white);
}

.slide-panel .panel-tab {
    padding: 12px 16px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    color: var(--neutral-secondary);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.slide-panel .panel-tab:hover {
    color: var(--primary);
}

.slide-panel .panel-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 500;
}

.slide-panel .panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.slide-panel .panel-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid var(--neutral-light);
    background: var(--neutral-lighter);
}

.slide-panel .panel-section {
    margin-bottom: 24px;
}

.slide-panel .panel-section h4 {
    margin: 0 0 16px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--neutral-dark);
}

.slide-panel .panel-fields {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.slide-panel .panel-field {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px solid var(--neutral-lighter);
}

.slide-panel .panel-field:last-child {
    border-bottom: none;
}

.slide-panel .panel-field.wide {
    flex-direction: column;
    gap: 4px;
}

.slide-panel .panel-field-label {
    font-size: 13px;
    color: var(--neutral-secondary);
    flex-shrink: 0;
    min-width: 120px;
}

.slide-panel .panel-field-value {
    font-size: 14px;
    color: var(--neutral-dark);
    text-align: right;
    word-break: break-word;
}

.slide-panel .panel-field.wide .panel-field-value {
    text-align: left;
}
