﻿
/* Modern Container Styles */
.persons-grid-container {
    padding: 24px;
    background-color: #f8f9fa;
    min-height: 100vh;
}

/* Header Styles */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    padding: 20px 0;
    border-bottom: 2px solid #e9ecef;
}

.header-content {
    flex: 1;
}

.page-title {
    font-size: 2rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

    .page-title i {
        color: #3498db;
        font-size: 1.8rem;
    }

.page-description {
    color: #6c757d;
    font-size: 1rem;
    margin: 0;
    line-height: 1.5;
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Modern Button Styles */
.btn-modern {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

    .btn-modern:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.15);
        text-decoration: none;
    }

.btn-primary.btn-modern {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* Info Card Styles */
.info-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}

.info-icon {
    font-size: 2rem;
    opacity: 0.9;
}

.info-content {
    flex: 1;
    line-height: 1.5;
}

    .info-content .text-muted {
        color: rgba(255, 255, 255, 0.8);
    }

/* Grid Container */
.grid-container {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Grid Toolbar */
.grid-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 16px;
    width: 100%;
}

.toolbar-left,
.toolbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.export-options {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 16px;
    border-left: 1px solid #e9ecef;
}

.checkbox-label {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0;
    cursor: pointer;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.btn-action {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-edit {
    background-color: #28a745;
    border-color: #28a745;
}

    .btn-edit:hover {
        background-color: #218838;
        transform: translateY(-1px);
    }

.btn-view {
    background-color: #17a2b8;
    border-color: #17a2b8;
}

    .btn-view:hover {
        background-color: #138496;
        transform: translateY(-1px);
    }

/* Status Badges */
.status-badge {
    display: flex;
    justify-content: center;
}

.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.badge-inactive {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Filter Menu Styles */
.filter-menu {
    padding: 16px;
    min-width: 200px;
}

.filter-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #495057;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #e9ecef;
}

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

.filter-label {
    font-size: 0.875rem;
    color: #495057;
    margin: 0;
    cursor: pointer;
    flex: 1;
}

/* Group Footer */
.group-footer {
    background-color: #f8f9fa;
    padding: 8px 12px;
    border-radius: 4px;
    color: #495057;
}

/* Modern Grid Overrides */
.modern-grid {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Row Highlighting - Updated */
.highlightCellBackGround {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%) !important;
    color: #856404 !important;
    font-weight: 500 !important;
}

.negativeValuesRowFormatting {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%) !important;
    color: #721c24 !important;
    font-weight: 500 !important;
}

.positiveValuesRowFormatting {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%) !important;
    color: #155724 !important;
    font-weight: 500 !important;
}

/* Export Buttons */
.btn-export,
.btn-reset {
    border-radius: 6px;
    padding: 8px 16px;
    font-weight: 500;
    transition: all 0.2s ease;
}

    .btn-export:hover,
    .btn-reset:hover {
        transform: translateY(-1px);
    }

/* Responsive Design */
@media (max-width: 768px) {
    .persons-grid-container {
        padding: 16px;
    }

    .page-header {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }

    .grid-toolbar {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }

    .toolbar-left,
    .toolbar-right {
        justify-content: center;
    }

    .action-buttons {
        flex-direction: column;
        gap: 4px;
    }

    .btn-action {
        width: 100%;
        justify-content: center;
    }
}


.upload-area {
    transition: all 0.3s ease;
    cursor: pointer;
}

    .upload-area:hover {
        background-color: #f8f9fa !important;
        border-color: #0d6efd !important;
    }

.card {
    border-radius: 0.5rem;
}

.card-header {
    border-radius: 0.5rem 0.5rem 0 0 !important;
}

.text-nowrap {
    white-space: nowrap;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Main Container */
.role-management-container {
    padding: 2rem;
    margin: 0 auto;
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

/* Header Section */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #007acc;
}

.header-content .page-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.75rem;
}

.title-icon {
    color: #007acc;
    font-size: 1.5rem;
}

.page-description {
    color: #6c757d;
    margin: 0;
    font-size: 1rem;
}

.header-stats {
    display: flex;
    gap: 1rem;
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    min-width: 100px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Main Content */
.main-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.grid-container {
    padding: 1.5rem;
}

/* Grid Toolbar */
.grid-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    margin: -1.5rem -1.5rem 1.5rem -1.5rem;
}

.toolbar-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #495057;
}

.toolbar-icon {
    color: #007acc;
}

/* Loading State */
.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Cell Styling */
.user-cell, .email-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-icon, .email-icon {
    color: #6c757d;
    font-size: 0.875rem;
}

.username {
    font-weight: 500;
    color: #495057;
}

.email {
    color: #6c757d;
}

/* Status Badges */
.status-cell, .role-cell {
    display: flex;
    align-items: center;
}

.status-badge, .role-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: capitalize;
}

    .status-badge.authorized {
        background: #d4edda;
        color: #155724;
        border: 1px solid #c3e6cb;
    }

    .status-badge.denied {
        background: #f8d7da;
        color: #721c24;
        border: 1px solid #f5c6cb;
    }

    .role-badge.assigned {
        background: #cce7ff;
        color: #004085;
        border: 1px solid #b3d7ff;
    }

    .role-badge.unassigned {
        background: #fff3cd;
        color: #856404;
        border: 1px solid #ffeaa7;
    }

.status-icon, .role-icon {
    font-size: 0.75rem;
}

/* Editor Styling */
.checkbox-editor {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .checkbox-editor label {
        margin: 0;
        font-size: 0.875rem;
        color: #495057;
    }

.role-dropdown {
    min-width: 180px;
}

/* Action Buttons */
.action-btn {
    margin: 0 0.125rem;
    font-size: 0.875rem;
}

/* Unauthorized Page */
.unauthorized-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.unauthorized-content {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 500px;
}

.unauthorized-icon {
    font-size: 4rem;
    color: #dc3545;
    margin-bottom: 1.5rem;
}

.unauthorized-title {
    color: #495057;
    margin-bottom: 1rem;
}

.unauthorized-message {
    color: #6c757d;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Alert Messages */
.alert {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1000;
    min-width: 300px;
    max-width: 500px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease-out;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-icon {
    font-size: 1rem;
}

.btn-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    margin-left: auto;
    opacity: 0.7;
}

    .btn-close:hover {
        opacity: 1;
    }

/* Grid Enhancements */
.k-grid {
    border: none;
    box-shadow: none;
}

.k-grid-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 2px solid #dee2e6;
}

    .k-grid-header th {
        font-weight: 600;
        color: #495057;
        border-color: #dee2e6;
    }

.k-grid-content tr:hover {
    background-color: rgba(0, 122, 204, 0.05);
}

.k-pager {
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

/* Animations */
@@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .role-management-container {
        padding: 1rem;
    }

    .page-header {
        flex-direction: column;
        gap: 1.5rem;
    }

    .header-stats {
        justify-content: center;
        width: 100%;
    }

    .grid-toolbar {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .toolbar-actions {
        display: flex;
        justify-content: center;
    }

    .alert {
        position: relative;
        top: auto;
        right: auto;
        margin: 1rem 0;
        width: 100%;
    }
}


/* Main Container */
.role-management-container {
    padding: 2rem;
    margin: 0 auto;
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

/* Header Section */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #007acc;
}

.header-content .page-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.75rem;
}

.title-icon {
    color: #007acc;
    font-size: 1.5rem;
}

.page-description {
    color: #6c757d;
    margin: 0;
    font-size: 1rem;
}

.header-stats {
    display: flex;
    gap: 1rem;
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    min-width: 100px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Main Content */
.main-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.grid-container {
    padding: 1.5rem;
}

/* Grid Toolbar */
.grid-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    margin: -1.5rem -1.5rem 1.5rem -1.5rem;
}

.toolbar-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #495057;
}

.toolbar-icon {
    color: #007acc;
}

/* Loading State */
.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Cell Styling */
.user-cell, .email-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-icon, .email-icon {
    color: #6c757d;
    font-size: 0.875rem;
}

.username {
    font-weight: 500;
    color: #495057;
}

.email {
    color: #6c757d;
}

/* Status Badges */
.status-cell, .role-cell {
    display: flex;
    align-items: center;
}

.status-badge, .role-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: capitalize;
}

    .status-badge.authorized {
        background: #d4edda;
        color: #155724;
        border: 1px solid #c3e6cb;
    }

    .status-badge.denied {
        background: #f8d7da;
        color: #721c24;
        border: 1px solid #f5c6cb;
    }

    .role-badge.assigned {
        background: #cce7ff;
        color: #004085;
        border: 1px solid #b3d7ff;
    }

    .role-badge.unassigned {
        background: #fff3cd;
        color: #856404;
        border: 1px solid #ffeaa7;
    }

.status-icon, .role-icon {
    font-size: 0.75rem;
}

/* Editor Styling */
.checkbox-editor {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .checkbox-editor label {
        margin: 0;
        font-size: 0.875rem;
        color: #495057;
    }

.role-dropdown {
    min-width: 180px;
}

/* Action Buttons */
.action-btn {
    margin: 0 0.125rem;
    font-size: 0.875rem;
}

/* Row Styling */
.negativeValuesRowFormatting {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%) !important;
    color: white !important;
}

    .negativeValuesRowFormatting td {
        border-color: rgba(255, 255, 255, 0.2) !important;
    }

.positiveValuesRowFormatting {
    background: linear-gradient(135deg, #51cf66 0%, #40c057 100%) !important;
    color: white !important;
}

    .positiveValuesRowFormatting td {
        border-color: rgba(255, 255, 255, 0.2) !important;
    }

/* Unauthorized Page */
.unauthorized-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.unauthorized-content {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 500px;
}

.unauthorized-icon {
    font-size: 4rem;
    color: #dc3545;
    margin-bottom: 1.5rem;
}

.unauthorized-title {
    color: #495057;
    margin-bottom: 1rem;
}

.unauthorized-message {
    color: #6c757d;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Alert Messages */
.alert {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1000;
    min-width: 300px;
    max-width: 500px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease-out;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-icon {
    font-size: 1rem;
}

.btn-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    margin-left: auto;
    opacity: 0.7;
}

    .btn-close:hover {
        opacity: 1;
    }

/* Grid Enhancements */
.k-grid {
    border: none;
    box-shadow: none;
}

.k-grid-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 2px solid #dee2e6;
}

    .k-grid-header th {
        font-weight: 600;
        color: #495057;
        border-color: #dee2e6;
    }

.k-grid-content tr:hover {
    background-color: rgba(0, 122, 204, 0.05);
}

.k-pager {
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

/* Animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .role-management-container {
        padding: 1rem;
    }

    .page-header {
        flex-direction: column;
        gap: 1.5rem;
    }

    .header-stats {
        justify-content: center;
        width: 100%;
    }

    .grid-toolbar {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .toolbar-actions {
        display: flex;
        justify-content: center;
    }

    .alert {
        position: relative;
        top: auto;
        right: auto;
        margin: 1rem 0;
        width: 100%;
    }
}


/* Enhanced Navbar Styling */
.navbar {
    transition: all 0.3s ease;
    border-bottom: 3px solid rgba(255, 255, 255, 0.1);
}

.navbar-brand {
    font-size: 1.4rem;
    transition: transform 0.2s ease;
}

    .navbar-brand:hover {
        transform: scale(1.05);
    }

    .navbar-brand img {
        transition: transform 0.2s ease;
    }

    .navbar-brand:hover img {
        transform: rotate(5deg);
    }

/* Navigation Links */
.nav-link {
    position: relative;
    border-radius: 0.375rem;
    margin: 0 0.25rem;
    padding: 0.5rem 0.75rem !important;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.9) !important;
}

    .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: white !important;
        transform: translateY(-1px);
    }

    .nav-link.active {
        background-color: rgba(255, 255, 255, 0.2);
        color: white !important;
        font-weight: 600;
    }

/* Dropdown Menus */
.dropdown-menu {
    border-radius: 0.5rem;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    backdrop-filter: blur(10px);
    animation: fadeInDown 0.3s ease;
}

.dropdown-item {
    padding: 0.6rem 1.25rem;
    border-radius: 0.375rem;
    margin: 0 0.5rem;
    transition: all 0.2s ease;
    color: #495057;
}

    .dropdown-item:hover {
        background-color: #e9ecef;
        color: #212529;
        transform: translateX(5px);
    }

    .dropdown-item.active {
        background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
        color: white;
        font-weight: 500;
    }

    .dropdown-item i {
        width: 20px;
        text-align: center;
    }

/* Submenu Styling */
.dropdown-submenu {
    position: relative;
}

    .dropdown-submenu .dropdown-menu {
        position: absolute;
        top: 0;
        left: 100%;
        margin-top: 0;
        margin-left: 0.5rem;
        display: none;
    }

    .dropdown-submenu:hover > .dropdown-menu {
        display: block;
        animation: slideInRight 0.3s ease;
    }

/* Navigation Separator */
.nav-separator {
    width: 1px;
    height: 30px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.3), transparent);
    margin: 0 0.75rem;
    align-self: center;
}

/* User Avatar */
.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

    .user-avatar:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: scale(1.1);
    }

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -10px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translate3d(20px, 0, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Mobile Responsive */
@media (max-width: 991.98px) {
    .navbar-nav {
        background: rgba(0, 0, 0, 0.1);
        border-radius: 0.5rem;
        padding: 1rem;
        margin-top: 1rem;
    }

    .nav-separator {
        width: 100%;
        height: 1px;
        background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
        margin: 0.5rem 0;
    }

    .dropdown-menu {
        position: static !important;
        float: none;
        box-shadow: none;
        border: none;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: none;
    }

    .dropdown-submenu .dropdown-menu {
        position: static !important;
        margin-left: 1rem;
        display: block !important;
    }
}

/* Loading state for better UX */
.navbar:not(.loaded) {
    opacity: 1;
}

.navbar.loaded {
    opacity: 1;
}

/* Enhanced focus states for accessibility */
.nav-link:focus,
.dropdown-item:focus {
    outline: 2px solid #ffc107;
    outline-offset: 2px;
}

/* Hover effects for better interactivity */
.dropdown-toggle::after {
    transition: transform 0.2s ease;
}

.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}


.highlightCellBackGround {
    background-color: lightyellow;
}

.consists-header {
    background: linear-gradient(90deg, #2596be 0%, #63e6be 100%);
    color: #fff;
}

.negativeValuesRowFormatting {
    color: white;
    font-weight: 500;
    background: linear-gradient(180deg,rgba(255, 255, 255, 1) 0%, rgba(155, 42, 42, 1) 7%, rgba(199, 87, 89, 1) 96%, rgba(255, 255, 255, 1) 100%);
}

.positiveValuesRowFormatting {
    color: white;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.01);
    background: linear-gradient(180deg,rgba(255, 255, 255, 1) 0%, rgba(51, 42, 155, 1) 7%, rgba(87, 150, 199, 1) 96%, rgba(255, 255, 255, 1) 100%);
}

.highlightCellBackGround {
    background-color: lightyellow;
}

.neutralValuesRowFormatting {
    color: black !important;
    font-weight: 500 !important;
    background: linear-gradient(180deg,rgba(255, 255, 255, 1) 0%, rgba(226, 237, 9, 1) 7%, rgba(193, 199, 87, 1) 96%, rgba(255, 255, 255, 1) 100%);
}

.unauthorized-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.unauthorized-content {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 500px;
}

.unauthorized-icon {
    font-size: 4rem;
    color: #dc3545;
    margin-bottom: 1.5rem;
}

.unauthorized-title {
    color: #495057;
    margin-bottom: 1rem;
    font-weight: 600;
}

.unauthorized-message {
    color: #6c757d;
    line-height: 1.6;
}

.btn {
    border-radius: 6px;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

    .btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    }

.btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

.order-preview {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

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

.detail-label {
    font-weight: 500;
    color: #6c757d;
    font-size: 0.875rem;
    margin-bottom: 0;
}

.detail-value {
    color: #495057;
    font-size: 0.95rem;
}

.content-preview {
    background: #ffffff;
    padding: 0.75rem;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    font-family: inherit;
    line-height: 1.5;
    white-space: pre-wrap;
}

.info-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    height: 100%;
}

    .info-section h6 {
        font-weight: 600;
        color: #0d6efd;
    }

.info-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-label {
    font-weight: 500;
    color: #495057;
    font-size: 0.875rem;
    margin-bottom: 0;
}

.info-value {
    display: flex;
    align-items: center;
}

.form-control-readonly {
    background-color: #f8f9fa !important;
    border: 1px solid #e9ecef;
    color: #495057;
    cursor: default;
}

.content-area {
    min-height: 200px;
    resize: none;
    font-family: inherit;
    line-height: 1.5;
}

.content-display {
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    padding: 0;
}

.status-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.related-orders-section {
    background: #ffffff;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

/* Telerik component overrides for readonly state */
.k-readonly {
    background-color: #f8f9fa !important;
    color: #495057 !important;
}

.k-multiselect.k-readonly {
    background-color: #f8f9fa !important;
    border-color: #e9ecef !important;
}

    .k-multiselect.k-readonly .k-chip {
        background-color: #e9ecef !important;
        color: #495057 !important;
        border-color: #dee2e6 !important;
    }

.text-primary {
    color: #2596be !important;
}

.card-header.bg-light {
    background-color: #f8f9fa !important;
    border-bottom: 1px solid #dee2e6;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.owners-grid .k-table-thead th {
    background: #2596be;
    color: #fff;
    font-weight: 600;
}

.owners-grid .k-table-tbody .k-table-row:nth-child(even) {
    background-color: #f8f9fa;
}

.owners-grid .k-table-tbody .k-table-row:hover {
    background-color: #e3f2fd !important;
}

.owners-grid .k-table-tbody .k-table-row td {
    vertical-align: middle;
}

.dno-reason-container {
    animation: pulse 2s infinite;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
    }

    50% {
        box-shadow: 0 4px 16px rgba(255, 193, 7, 0.6);
    }

    100% {
        box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
    }
}

#rv1 {
    position: relative;
    width: 1200px;
    height: 1080px;
}

#wrd1 {
    position: relative;
    width: 1300px;
    height: 880px;
    padding-right: 50px;
}

/* remove the default padding, so the template container expands to cover the whole appointment */
.k-scheduler .k-event {
    padding: 0px;
}
/* set some padding to the template containers, expand them and add any other desired customizations.
    Styles from the model will be obtained from the ItemTemplate context and set inline.
    based on the specific appointment*/
.custom-appointment {
    width: 100%;
    height: 100%;
    padding: 5px;
}

/* Status Badges */
.rrm3-status-badge {
    display: flex;
    justify-content: center;
}

.rrm3-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.rrm3-badge-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.rrm3-badge-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.rrm3-badge-info {
    background-color: lightblue;
    color: darkblue;
    border: 1px solid #8ccdeb;
}
