﻿


.Grvns_panel {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    color: #2d3748;
}

.Grvns_header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.action-btn {
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-full);
    background: white;
    border: 1px solid var(--gray-light);
    color: var(--gray-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .Grvns_header::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
        animation: float 20s ease-in-out infinite;
    }

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(180deg);
    }
}

.Grvns_container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.Grvns_header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.Grvns_header h1 {
    font-size: 2.2rem;
    margin-bottom: 5px;
}

.Grvns_header p {
    opacity: 0.9;
    font-size: 1.1rem;
}

.Grvns_stats-bar {
    display: flex;
    gap: 30px;
    align-items: center;
}

.Grvns_stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.15);
    padding: 15px 20px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.Grvns_stat-number {
    font-size: 1.8rem;
    font-weight: bold;
    display: block;
}

.Grvns_stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.Grvns_main-content {
    padding: 40px 0;
}

.Grvns_controls-bar {
    background: white;
    border-radius: 16px;
    padding: 20px 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.Grvns_search-box {
    flex: 1;
    max-width: 400px;
    position: relative;
}

.Grvns_search-input {
    width: 100%;
    padding: 12px 20px 12px 50px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

    .Grvns_search-input:focus {
        outline: none;
        border-color: #667eea;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }

.Grvns_search-icon {
    position: absolute;
    left: 345px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
}

.Grvns_filter-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.Grvns_filter-select {
    padding: 10px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .Grvns_filter-select:focus {
        outline: none;
        border-color: #667eea;
    }

.Grvns_grievances-grid {
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
}

.Grvns_grievance-card {
    background: white;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .Grvns_grievance-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    }

.Grvns_card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 10px;
}

.Grvns_ticket-id {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.Grvns_status-badge {
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.Grvns_status-Applied {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #b45309;
    border: 1px solid #f59e0b;
}

.Grvns_status-In-Progress {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    color: #7c3aed;
    border: 1px solid #8b5cf6;
}

.Grvns_status-Forward {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    color: #0369a1;
    border: 1px solid #0ea5e9;
}

.Grvns_status-Resolved {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #166534;
    border: 1px solid #22c55e;
}

.Grvns_status-Closed {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    color: #374151;
    border: 1px solid #9ca3af;
}


.Grvns_grievance-type {
    display: inline-block;
    background: #f8fafc;
    color: #4a5568;
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 0.75rem;
    margin-bottom: 10px;
    border: 1px solid #e2e8f0;
}

.Grvns_subject {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2d3748;
    line-height: 1.3;
}

.Grvns_description {
    color: #4a5568;
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.85rem;
}

.Grvns_contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
    padding: 10px;
    background: #f8fafc;
    border-radius: 8px;
}

.Grvns_contact-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
}

.Grvns_contact-icon {
    color: #667eea;
    font-size: 1rem;
}

.Grvns_attachment-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #667eea;
    text-decoration: none;
    font-size: 0.8rem;
    padding: 6px 10px;
    background: #f0f4ff;
    border-radius: 6px;
    transition: all 0.3s ease;
    margin-bottom: 12px;
}

    .Grvns_attachment-link:hover {
        background: #e0e7ff;
        transform: translateX(3px);
    }

.Grvns_card-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}

.Grvns_action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
}

.Grvns_btn-delete {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

    .Grvns_btn-delete:hover {
        background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    }

.Grvns_btn-view {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

    .Grvns_btn-view:hover {
        background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
        transform: translateY(-2px);
    }

@media (max-width: 768px) {
    .Grvns_grievances-grid {
        grid-template-columns: 1fr;
    }

    .Grvns_header-content {
        text-align: center;
    }

    .Grvns_stats-bar {
        justify-content: center;
        flex-wrap: wrap;
    }

    .Grvns_controls-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .Grvns_search-box {
        max-width: none;
    }

    .Grvns_contact-info {
        grid-template-columns: 1fr;
    }

    .Grvns_card-actions {
        justify-content: center;
    }

    .Grvns_header h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 600px) {
    .Grvns_grievances-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .Grvns_grievance-card {
        padding: 15px;
    }
}
/*
CSS form Close Panel*/
.ticket-close-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ticket-close-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 480px;
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

    .ticket-close-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    }

    .ticket-close-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15), 0 2px 6px rgba(0, 0, 0, 0.1);
    }

.ticket-close-header {
    text-align: center;
    margin-bottom: 32px;
}

.ticket-close-title {
    font-size: 28px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ticket-close-subtitle {
    color: #718096;
    font-size: 16px;
    font-weight: 400;
}

.ticket-form-group {
    margin-bottom: 24px;
}

.ticket-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4a5568;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ticket-required-asterisk {
    color: #e53e3e;
    margin-left: 4px;
    font-weight: 700;
}

.ticket-form-textarea {
    width: 100%;
    min-height: 120px;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
    background: #ffffff;
    transition: all 0.3s ease;
    color: #2d3748;
}

    .ticket-form-textarea:focus {
        outline: none;
        border-color: #667eea;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        transform: translateY(-2px);
    }

    .ticket-form-textarea::placeholder {
        color: #a0aec0;
        font-style: italic;
    }

.ticket-button-group {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.ticket-btn {
    flex: 1;
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

    .ticket-btn::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: width 0.6s, height 0.6s;
    }

    .ticket-btn:active::before {
        width: 300px;
        height: 300px;
    }

.ticket-btn-cancel {
    background: #f7fafc;
    color: #718096;
    border: 2px solid #e2e8f0;
}

    .ticket-btn-cancel:hover {
        background: #edf2f7;
        color: #4a5568;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    }

.ticket-btn-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: 2px solid transparent;
}

    .ticket-btn-submit:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
        filter: brightness(1.1);
    }

.ticket-btn:active {
    transform: translateY(0);
}

/* Responsive design */
@media (max-width: 480px) {
    .ticket-close-card {
        padding: 24px;
        margin: 10px;
    }

    .ticket-close-title {
        font-size: 24px;
    }

    .ticket-button-group {
        flex-direction: column;
    }
}

/* Animation for form elements */
.ticket-close-card * {
    animation: ticketSlideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
}

.ticket-close-header {
    animation-delay: 0.1s;
}

.ticket-form-group {
    animation-delay: 0.2s;
}

.ticket-button-group {
    animation-delay: 0.3s;
}

@keyframes ticketSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/*
CSS form full Action History*/

/* Modal Container */
.Grvns_modal-overlay {
    width: 90%;
}
.Grvns_modal-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    max-width: 900px;
    width: 90%;
    max-height: 500px;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.Grvns_modal-overlay.show .Grvns_modal-container {
    transform: scale(1);
}

/* Modal Header */
.Grvns_modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 24px 32px 28px 32px;
    position: relative;
}

.Grvns_modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Subject Styling */
.Grvns_modal-subject {
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 8px;
    opacity: 0.95;
    padding-right: 50px; /* Space for close button */
    word-wrap: break-word;
    hyphens: auto;
}

.Grvns_modal-subtitle {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 0;
    font-weight: 400;
}

.Grvns_modal-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: background-color 0.3s ease;
    z-index: 1;
}

    .Grvns_modal-close:hover {
        background: rgba(255, 255, 255, 0.3);
    }

/* Modal Body */
/* Fix for modal body scrolling */
.Grvns_modal-body {
    padding: 32px;
    max-height: calc(500px - 160px); /* Adjusted for header with subject */
    overflow-y: auto;
    overflow-x: hidden;
}

/* Ensure timeline container doesn't interfere with scrolling */
.Grvns_timeline {
    position: relative;
    padding-left: 40px;
    min-height: fit-content;
}


    .Grvns_timeline::before {
        content: '';
        position: absolute;
        left: 15px;
        top: 0;
        height: 100%;
        width: 2px;
        background: linear-gradient(to bottom, #e3f2fd, #bbdefb);
    }

/* History Card */
.Grvns_history-card {
    position: relative;
    background: white;
    border: 1px solid #e8f2ff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    margin-left: 20px;
}

    .Grvns_history-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
        border-color: #bbdefb;
    }

    .Grvns_history-card::before {
        content: '';
        position: absolute;
        left: -28px;
        top: 24px;
        width: 12px;
        height: 12px;
        background: #2196f3;
        border-radius: 50%;
        border: 3px solid white;
        box-shadow: 0 0 0 2px #e3f2fd;
    }

    .Grvns_history-card:first-child::before {
        background: #4caf50;
        box-shadow: 0 0 0 2px #e8f5e8;
    }

    .Grvns_history-card:last-child::before {
        background: #ff9800;
        box-shadow: 0 0 0 2px #fff3e0;
    }

/* Card Header */
.Grvns_history-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.Grvns_history-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: capitalize;
}

    .Grvns_history-status.status-Applied {
        background: #fff8e1;
        color: #ef6c00;
    }

    .Grvns_history-status.status-In-Progress {
        background: #f3e5f5;
        color: #8e24aa;
    }

    .Grvns_history-status.status-Forward {
        background: #e1f5fe;
        color: #0277bd;
    }

    .Grvns_history-status.status-Resolved {
        background: #e8f5e8;
        color: #388e3c;
    }

    .Grvns_history-status.status-Closed {
        background: #f5f5f5;
        color: #616161;
    }


.Grvns_history-date {
    color: #666;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Card Content */
.Grvns_history-description {
    color: #333;
    line-height: 1.6;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.Grvns_history-document {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1976d2;
    text-decoration: none;
    padding: 10px 16px;
    background: #f5f9ff;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid #e3f2fd;
}

    .Grvns_history-document:hover {
        background: #e3f2fd;
        text-decoration: none;
        color: #1565c0;
        transform: translateY(-1px);
    }

/* Empty State */
.Grvns_empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.Grvns_empty-state-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    opacity: 0.3;
}

.Grvns_empty-state-text {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.Grvns_empty-state-subtext {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* For very long subjects, add max height with scroll if needed */
@media (max-height: 600px) {
    .Grvns_modal-subject {
        max-height: 60px;
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
    }

        .Grvns_modal-subject::-webkit-scrollbar {
            width: 4px;
        }

        .Grvns_modal-subject::-webkit-scrollbar-track {
            background: transparent;
        }

        .Grvns_modal-subject::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.3);
            border-radius: 2px;
        }
}

/* Responsive Design */
@media (max-width: 768px) {
    .Grvns_modal-container {
        width: 95%;
        margin: 10px;
    }

    .Grvns_modal-header {
        padding: 20px 24px 24px 24px;
    }

    .Grvns_modal-title {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }

    .Grvns_modal-subject {
        font-size: 1rem;
        padding-right: 45px;
        margin-bottom: 6px;
    }

    .Grvns_modal-subtitle {
        font-size: 0.8rem;
    }

    .Grvns_modal-close {
        width: 32px;
        height: 32px;
        top: 16px;
        right: 20px;
        font-size: 16px;
    }

    .Grvns_modal-body {
        padding: 24px 20px;
        max-height: calc(500px - 120px);
    }

    .Grvns_timeline {
        padding-left: 30px;
    }

    .Grvns_history-card {
        margin-left: 15px;
        padding: 20px;
    }

    .Grvns_history-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .Grvns_modal-container {
        width: 98%;
        margin: 5px;
    }

    .Grvns_modal-header {
        padding: 18px 20px 22px 20px;
    }

    .Grvns_modal-title {
        font-size: 1.2rem;
        gap: 8px;
    }

    .Grvns_modal-subject {
        font-size: 0.95rem;
        padding-right: 40px;
    }

    .Grvns_modal-subtitle {
        font-size: 0.75rem;
    }

    .Grvns_modal-body {
        padding: 20px 16px;
    }

    .Grvns_timeline {
        padding-left: 25px;
    }

    .Grvns_history-card {
        margin-left: 10px;
        padding: 16px;
    }

    .Grvns_history-status {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .Grvns_history-date {
        font-size: 0.8rem;
    }

    .Grvns_history-description {
        font-size: 0.9rem;
    }
}

/* Scrollbar Styling */
.Grvns_modal-body::-webkit-scrollbar {
    width: 6px;
}

.Grvns_modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.Grvns_modal-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

    .Grvns_modal-body::-webkit-scrollbar-thumb:hover {
        background: #a8a8a8;
    }

/* Animation for smooth modal appearance */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.Grvns_modal-overlay.show .Grvns_modal-container {
    animation: modalFadeIn 0.3s ease-out;
}

/* Focus states for accessibility */
.Grvns_modal-close:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.Grvns_history-document:focus {
    outline: 2px solid #1976d2;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .Grvns_modal-overlay {
        position: static;
        background: none;
        backdrop-filter: none;
    }

    .Grvns_modal-container {
        box-shadow: none;
        max-width: none;
        width: 100%;
        max-height: none;
    }

    .Grvns_modal-close {
        display: none;
    }

    .Grvns_history-card {
        break-inside: avoid;
    }
}



