.food-selection-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f5f5f5;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.food-selection-container h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.food-selection-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.food-selection-row label {
    flex: 0 0 100px;
    font-weight: bold;
    color: #555;
}

.food-selection-row select {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.food-selection-container button[type="submit"] {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.food-selection-container button[type="submit"]:hover {
    background-color: #45a049;
}

.success-message {
    background-color: #dff0d8;
    color: #3c763d;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 4px;
}
.kadec-admin {
    font-family: 'Vazir', sans-serif;
}

.kadec-admin__title {
    font-size: 24px;
    margin-bottom: 20px;
}

.kadec-admin__section {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.kadec-admin__subtitle {
    font-size: 18px;
    margin-bottom: 15px;
}

.kadec-admin__form {

}

        #employee-search {
            border-radius: 12px !important;
            border: 1px solid rgb(36, 64, 130);
            background: #f8f9fa;
        }
        .kadec-delivery-page {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
            direction: rtl;
            text-align: right;
        }
        
        .delivery-header {
            background: var(--primary-color);
            color: white;
            padding: 10px;
            border-radius: 15px;
            margin-bottom: 15px;
            text-align: center;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .delivery-header h1 {
            margin: 0 0 10px 0;
            font-size: 30px;
            font-weight: bold;
        }
        
        .delivery-header .date-info {
            font-size: 1.2em;
            opacity: 0.9;
        }
        
        .search-filters {
            background: white;
            padding: 25px;
            border-radius: 15px;
            margin-bottom: 15px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.1);
        }
        
        .search-filters h3 {
            margin-top: 0;
            color: #333;
        }
        
        .filter-row {
            display: flex;
            gap: 20px;
            flex-wrap: wrap;
            margin-top: 10px;
            justify-content: space-between;
        }
        
        .filter-group {
            flex: 1;
            min-width: 250px;
        }
        
        .filter-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: bold;
            color: #555;
        }
        
        .filter-group input,
        .filter-group select {
            width: 100%;
            padding: 12px;
            border: 2px solid #ddd;
            border-radius: 8px;
            font-size: 16px;
            transition: border-color 0.3s;
        }
        
        .filter-group input:focus,
        .filter-group select:focus {
            outline: none;
            border-color: #244082;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        }
        
        .search-button {
            background: #244082;
            color: white;
            border: none;
            padding: 8px 30px;
            border-radius: 38px;
            font-size: 16px;
            cursor: pointer;
            transition: background 0.3s;
        }
        
        .search-button:hover {
            background: #244082;
        }
        
        .quick-filters {
            display: flex;
            align-items: center;
            gap: 3px;
            flex-wrap: wrap;
            justify-content: space-between;
        }
        
        .quick-filters label {
            font-weight: bold;
            color: #555;
            margin-left: 10px;
        }
        
        .filter-btn {
            background: #fff;
            border: 2px solid #244082;
            color: #244082;
            padding: 8px 16px;
            border-radius: 35px;
            cursor: pointer;
            font-size: 14px;
            transition: all 0.3s;
        }
        
        .filter-btn:hover {
            background: #edf2f7;
            border-color: #cbd5e0;
        }
        
        .filter-btn.active {
            background: #244082;
            color: white;
            border: 2px solid #fff;
        }
        
        .employees-list {
            background: white;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 5px 20px rgba(0,0,0,0.1);
        }
        
        .employees-table {
            width: 100%;
            border-collapse: collapse;
        }
        
        .employees-table th {
            background: #244082;
            color: white;
            padding: 15px;
            text-align: center;
            font-weight: bold;
        }
        
        .employees-table td {
            padding: 15px;
            text-align: center;
            border-bottom: 1px solid #eee;
        }
        
        .employees-table tr:hover {
            background: #f8f9ff;
        }
        
        .delivery-button {
            background: #48bb78;
            color: white;
            border: none;
            padding: 8px 20px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
            transition: background 0.3s;
            font-weight: 800;
        }
        
        .delivery-button:hover {
            background: #38a169;
        }
        
        .delivery-button:disabled {
            background: #cbd5e0;
            cursor: not-allowed;
        }
        
        .delivered-status {
            background: #e6fffa;
            color: #234e52;
            padding: 8px 15px;
            border-radius: 6px;
            font-weight: bold;
        }
        
        .delivery-stats {
            display: flex;
            padding: 15px;
            gap: 20px;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }
        
        .stat-card {
            background: white;
            padding: 10px;
            border-radius: 10px;
            text-align: center;
            flex: 1;
            min-width: 150px;
            box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
        }
        
        
        .stat-number {
            display: block;
            font-size: 2em;
            font-weight: bold;
            color: #333;
            margin-bottom: 5px;
        }
        
        .stat-label {
            display: block;
            color: #666;
            font-size: 0.9em;
        }
        
        .delivered-row {
            background-color: #e7fbee !important;
        }
        
        .pending-row {
            background-color: #fff !important;
        }
        
        .no-food-row {
            background-color: #ffffff !important;
        }
        
        .food-name {
            color: #2d3748;
            font-weight: 500;
        }
        
        .no-food {
            color: #a0aec0;
            font-weight: 500;
        }
        
        .delivered-status {
            background: #c6f6d5;
            color: #22543d;
            padding: 8px 15px;
            border-radius: 6px;
            font-weight: bold;
            font-size: 0.9em;
        }
        
        .pending-status {
            background: #fed7d7;
            color: #c53030;
            padding: 3px 8px;
            border-radius: 6px;
            font-weight: bold;
            font-size: 0.9em;
            margin-right: 5px;
            font-weight: 400;
        }
        
        .no-food-status {
            color: #a0aec0;
            font-weight: 500;
        }
        
        .delivered-by {
            font-size: 0.8em;
            color: #666;
            font-style: italic;
        }
        
        .no-results {
            text-align: center;
            padding: 50px;
            color: #666;
            font-size: 18px;
        }
        
        .loading {
            text-align: center;
            padding: 30px;
            color: #667eea;
        }
        
        .search-info {
            padding: 15px;
            border-radius: 8px;
            color: #4a5568;
            font-weight: 500;
        }
        
        .kadec-notification {
            position: fixed;
            top: 20px;
            right: 20px;
            padding: 15px 25px;
            border-radius: 8px;
            color: white;
            font-weight: bold;
            z-index: 10000;
            transform: translateX(400px);
            transition: transform 0.3s ease;
            box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        }
        
        .kadec-notification.show {
            transform: translateX(0);
        }
        
        .notification-success {
            background: #48bb78;
        }
        
        .notification-error {
            background: #f56565;
        }
        
        .delivery-loading {
            position: relative;
            opacity: 0.7;
        }
        
        .delivery-loading::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(255, 255, 255, 0.8);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10;
        }
        
        .delivery-loading::before {
            content: '⏳ در حال ثبت تحویل...';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: #667eea;
            color: white;
            padding: 10px 20px;
            border-radius: 25px;
            font-weight: bold;
            z-index: 11;
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
        }
        
        .delivery-indicator {
            margin-right: 10px;
            font-size: 1.2em;
            animation: bounce 2s infinite;
        }
        
        @keyframes bounce {
            0%, 20%, 50%, 80%, 100% {
                transform: translateY(0);
            }
            40% {
                transform: translateY(-10px);
            }
            60% {
                transform: translateY(-5px);
            }
        }
        
        .delivery-btn {
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }
        
        .delivery-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
        }
        
        .delivery-btn:disabled {
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }
        
        .delivered-status {
            display: inline-flex;
            align-items: center;
            gap: 5px;
        }
       
        @keyframes checkmark {
            0% {
                transform: scale(0);
            }
            50% {
                transform: scale(1.2);
            }
            100% {
                transform: scale(1);
            }
        }
        
        .employee-row.just-delivered {
            background: linear-gradient(90deg, #f0fff4, #e6fffa);
            border-right: 4px solid #38a169;
            animation: deliverySuccess 3s ease-out;
        }
        
        @keyframes deliverySuccess {
            0% {
                background: #68d391;
                transform: scale(1.02);
            }
            100% {
                background: linear-gradient(90deg, #f0fff4, #e6fffa);
                transform: scale(1);
            }
        }
        
        @media (max-width: 768px) {
            .kadec-delivery-page {
                padding: 10px;
            }

            .quick-filters{
                gap: 0;
            }

            .search-button {
                width: 100%;
            }
            
            .filter-row {
                flex-direction: column;
                gap: 15px;
            }
            
            .filter-group {
                min-width: auto;
            }
            
            .delivery-header h1 {
                font-size: 1.8em;
                text-align: center;
                margin-bottom: 20px;
            }
            
            .delivery-stats {
                flex-direction: column;
                gap: 10px;
                padding: 10px;
            }
            
            .stat-card {
                min-width: auto;
                padding: 15px;
                display: flex;
                justify-content: space-between;
                align-items: center;
                text-align: left;
            }
            
            .stat-number {
                font-size: 1.5em;
                margin-bottom: 0;
            }
            
            .stat-label {
                font-size: 1em;
            }
            
            .floor-filter-container {
                border-right: none;
                border-bottom: 2px solid #e2e8f0;
                padding-right: 0;
                padding-bottom: 15px;
                margin-right: 0;
                margin-bottom: 15px;
            }
            
            #floor-buttons-container {
                max-width: 100%;
                justify-content: center;
            }
            
            .floor-btn {
                padding: 8px 15px;
                font-size: 14px;
            }
            
            .filter-btn {
                padding: 6px 7px;
                font-size: 16px;
            }
            
            .employees-list {
                border-radius: 10px;
                -webkit-overflow-scrolling: touch;
            }
            
            .employees-table {
                display: block;
                width: 100%;
                overflow-x: auto;
                white-space: nowrap;
            }
            
            .employees-table thead {
                display: none;
            }
            
            .employees-table tbody {
                display: block;
            }
            
            .employees-table tr {
                display: block;
                background: white;
                border: 1px solid #e2e8f0;
                border-radius: 10px;
                margin-bottom: 15px;
                padding: 15px;
                box-shadow: 0 2px 8px rgba(0,0,0,0.1);
                white-space: normal;
            }
            
            .employees-table td {
                display: block;
                text-align: right;
                padding: 8px 0;
                border-bottom: 1px solid #f1f5f9;
                position: relative;
                padding-right: 120px;
            }
            
            .employees-table td:last-child {
                border-bottom: none;
                text-align: center;
                padding-right: 0;
            }
            
          
            .employees-table td:nth-child(1):before {
                content: "نام:";
            }
            
            .employees-table td:nth-child(2):before {
                content: "واحد:";
            }
            
            .employees-table td:nth-child(3):before {
                content: "غذای انتخابی:";
            }
            
            .employees-table td:nth-child(4):before {
                content: "وضعیت تحویل:";
            }
            
            .employees-table td:nth-child(5):before {
                content: "";
            }
            
            .delivery-button {
                width: 100%;
                padding: 12px 20px;
                font-size: 16px;
                border-radius: 8px;
            }
            
            .delivered-status {
                width: 100%;
                text-align: center;
                padding: 5px;
                border-radius: 8px;
                font-size: 14px;
            }
            
            .kadec-notification {
                top: 10px;
                right: 10px;
                left: 10px;
                transform: translateY(-100px);
                font-size: 14px;
                padding: 12px 20px;
            }
            
            .kadec-notification.show {
                transform: translateY(0);
            }
            
            .dept-mini-stats {
                grid-template-columns: 1fr;
                gap: 10px;
                padding: 10px;
            }
            
            .dept-card {
                padding: 15px;
            }
            
            .dept-card h4 {
                font-size: 1.1em;
                margin-bottom: 10px;
            }
            
            .dept-stats {
                flex-wrap: wrap;
                gap: 8px;
            }
            
            .dept-stat {
                min-width: 70px;
                padding: 8px;
                font-size: 12px;
            }
            
            .no-results {
                padding: 30px 15px;
                font-size: 16px;
            }
            
            .search-info {
                padding: 12px;
                font-size: 14px;
                text-align: center;
            }
            
            .delivered-row {
                border-right: 4px solid #48bb78;
            }
            
            .pending-row {
                border-right: 4px solid #4299e1;
            }
            
            .no-food-row {
                border-right: 4px solid #ed8936;
            }
            
            input, select, textarea {
                font-size: 16px !important;
            }
            
            select {
                -webkit-appearance: none;
                -moz-appearance: none;
                appearance: none;
                background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
                background-repeat: no-repeat;
                background-position: left 12px center;
                background-size: 16px;
                padding-left: 40px;
            }
            
            .delivery-button,
            .filter-btn,
            .floor-btn {
                min-height: 46px;
                min-width: 78px;
            }
        }
        
        @media (max-width: 480px) {
            .kadec-delivery-page {
                padding: 5px;
            }
            
            .delivery-header h1 {
                font-size: 1.5em;
            }
            
            .stat-card {
                padding: 12px;
            }
            
            .stat-number {
                font-size: 1.3em;
            }
            
            .employees-table tr {
                padding: 12px;
                margin-bottom: 10px;
            }
            
            .employees-table td {
                padding: 6px 0;
                padding-right: 100px;
                font-size: 14px;
            }
            
            .employees-table td:before {
                width: 90px;
                font-size: 12px;
            }
            
            .delivery-button {
                padding: 10px 15px;
                font-size: 14px;
            }
            
            .floor-btn {
                padding: 6px 12px;
                font-size: 12px;
            }
            
            .filter-btn {
                padding: 8px 10px;
                font-size: 14px;
            }
        }
        
        .touch-device .delivery-button,
        .touch-device .filter-btn,
        .touch-device .floor-btn {
            -webkit-tap-highlight-color: transparent;
            touch-action: manipulation;
        }
        
        .touch-active {
            transform: scale(0.95);
            opacity: 0.8;
        }
        
        @media (max-width: 768px) and (orientation: landscape) {
            .delivery-header {
                padding: 20px;
            }
            
            .delivery-header h1 {
                font-size: 1.8em;
            }
            
            .delivery-stats {
                flex-direction: row;
                flex-wrap: wrap;
            }
            
            .stat-card {
                flex: 1;
                min-width: 150px;
            }
        }
        
        .floor-filter-container {
            border-right: 2px solid #e2e8f0;
            padding-right: 15px;
            margin-right: 15px;
        }
        
        .floor-filter-container label {
            font-weight: bold;
            color: #555;
        }
        
        .floor-btn {
            background: #f7fafc;
            border: 2px solid #e2e8f0;
            color: #4a5568;
            padding: 6px 12px;
            border-radius: 20px;
            cursor: pointer;
            font-size: 13px;
            margin: 2px;
            transition: all 0.3s;
            display: inline-block;
        }
        
        .floor-btn:hover {
            background: #edf2f7;
            border-color: #cbd5e0;
            transform: translateY(-1px);
        }
        
        .floor-btn.active {
            background: #667eea;
            color: white;
            border-color: #667eea;
        }
        
        .floor-btn:disabled {
            background: #f1f5f9;
            color: #94a3b8;
            cursor: not-allowed;
            transform: none;
        }
        
        #floor-buttons-container {
            max-width: 400px;
            display: inline-flex;
            flex-wrap: wrap;
            gap: 5px;
        }
        
        .floor-results {
            background: white;
            border-radius: 15px;
            padding: 20px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.1);
        }
        
        .floor-results h3 {
            color: #244082;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid #e2e8f0;
        }
        
        .unit-section {
            margin-bottom: 30px;
            border: 1px solid #e2e8f0;
            border-radius: 10px;
            overflow: hidden;
        }
        
        .unit-title {
            background: #f7fafc;
            color: #244082;
            padding: 15px 20px;
            margin: 0;
            font-size: 1.1em;
            font-weight: bold;
            border-bottom: 1px solid #e2e8f0;
        }
        
        .employees-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 15px;
            padding: 20px;
        }
        
        .employee-card {
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            padding: 15px;
            background: white;
            transition: all 0.3s ease;
        }
        
        .employee-card:hover {
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            transform: translateY(-2px);
        }
        
        .employee-card.delivered {
            border-left: 4px solid #48bb78;
            background: #f0fff4;
        }
        
        .employee-card.pending {
            border-left: 4px solid #ed8936;
            background: #fffaf0;
        }
        
        .employee-card.no-food {
            border-left: 4px solid #a0aec0;
            background: #f7fafc;
        }
        
        .employee-name {
            font-weight: bold;
            font-size: 1.1em;
            color: #2d3748;
            margin-bottom: 8px;
        }
        
        .employee-details {
            display: flex;
            flex-direction: column;
            gap: 5px;
        }
        
        .employee-id {
            font-size: 0.9em;
            color: #666;
        }
        
        .food-name {
            color: #244082;
            font-weight: 500;
        }
        
        .delivery-status.delivered {
            color: #48bb78;
            font-weight: bold;
        }
        
        .delivery-status.pending {
            color: #ed8936;
            font-weight: bold;
        }
        
        .no-food-text {
            color: #a0aec0;
            font-style: italic;
        }
        
        .delivered-by {
            font-size: 0.8em;
            color: #666;
            font-style: italic;
        }
        
        .delivery-btn {
            background: #48bb78;
            color: white;
            border: none;
            padding: 8px 12px;
            border-radius: 5px;
            cursor: pointer;
            font-size: 0.9em;
            margin-top: 5px;
            transition: background 0.3s;
        }
        
        .delivery-btn:hover {
            background: #38a169;
        }
        
        .delivery-btn:disabled {
            background: #a0aec0;
            cursor: not-allowed;
        }
        
        @media (max-width: 768px) {
            .floor-filter-container {
                display: block;
                border-right: none;
                border-top: 2px solid #e2e8f0;
                padding-top: 15px;
                margin-top: 15px;
                margin-right: 0;
                padding-right: 0;
            }
            
            #floor-buttons-container {
                max-width: 100%;
                margin-top: 10px;
            }
            
            .floor-btn {
                font-size: 12px;
                padding: 5px 10px;
            }
            
            .employees-grid {
                grid-template-columns: 1fr;
                padding: 15px;
            }
        }