.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

/* Custom styles for clinic billing */
.service-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    cursor: pointer;
    border: 1px solid rgba(0,0,0,0.08);
}

    .service-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    }

.quantity-field {
    max-width: 80px;
}

.bill-table .mud-table-cell {
    border-bottom: 1px solid rgba(0,0,0,0.08);
    padding: 12px 16px;
}

.summary-table .mud-table-cell {
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 8px 0;
}

.mud-card {
    border-radius: 8px;
    transition: box-shadow 0.3s ease;
}

    .mud-card:hover {
        box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    }

@media (max-width: 960px) {
    .mud-container {
        padding: 8px !important;
    }

    .service-card {
        margin-bottom: 12px;
    }

    .quantity-field {
        max-width: 60px;
    }
}

/* Profile picture styling */
.mud-avatar img {
    border: 2px solid rgba(25, 118, 210, 0.2);
    transition: border-color 0.3s ease;
}

.mud-avatar:hover img {
    border-color: rgba(25, 118, 210, 0.5);
}

/* Appointment scheduling styles */
.time-slot-button {
    min-height: 40px;
    font-size: 0.75rem;
}

.appointments-table .mud-table-cell {
    padding: 12px 8px;
    vertical-align: middle;
}

.appointments-table .mud-avatar {
    width: 32px;
    height: 32px;
}

.appointments-table .mud-chip {
    font-size: 0.7rem;
    height: 20px;
}

/* Calendar View Styles */
.calendar-container {
    width: 100%;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 8px;
    overflow: hidden;
}

.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background-color: #1976D2;
    color: white;
}

.calendar-day-header {
    padding: 12px 8px;
    text-align: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.calendar-body {
    display: flex;
    flex-direction: column;
}

.calendar-week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

    .calendar-week:last-child {
        border-bottom: none;
    }

.calendar-day {
    min-height: 120px;
    padding: 8px;
    border-right: 1px solid rgba(0,0,0,0.08);
    cursor: pointer;
    transition: background-color 0.2s ease;
    position: relative;
}

    .calendar-day:last-child {
        border-right: none;
    }

    .calendar-day:hover {
        background-color: rgba(25, 118, 210, 0.04);
    }

    .calendar-day.selected {
        background-color: rgba(25, 118, 210, 0.1);
        border: 2px solid #1976D2;
    }

    .calendar-day.today {
        background-color: rgba(25, 118, 210, 0.08);
    }

    .calendar-day.other-month {
        background-color: #f5f5f5;
        color: #999;
    }

.day-number {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 4px;
}

.today .day-number {
    color: #1976D2;
    font-weight: 700;
}

.day-appointments {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.appointment-item {
    background-color: #e3f2fd;
    border-left: 3px solid #1976D2;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .appointment-item:hover {
        background-color: #bbdefb;
        transform: translateX(2px);
    }

    .appointment-item.appointment-scheduled {
        background-color: #e3f2fd;
        border-left-color: #2196F3;
    }

    .appointment-item.appointment-confirmed {
        background-color: #e8f5e8;
        border-left-color: #4CAF50;
    }

    .appointment-item.appointment-in-progress {
        background-color: #fff3e0;
        border-left-color: #FF9800;
    }

    .appointment-item.appointment-completed {
        background-color: #e8f5e8;
        border-left-color: #4CAF50;
    }

    .appointment-item.appointment-cancelled {
        background-color: #ffebee;
        border-left-color: #F44336;
    }

    .appointment-item.appointment-no-show {
        background-color: #fce4ec;
        border-left-color: #E91E63;
    }

.appointment-time {
    font-weight: 600;
    color: #333;
}

.appointment-patient {
    color: #666;
    font-size: 0.7rem;
}

.appointment-more {
    font-size: 0.7rem;
    color: #666;
    font-style: italic;
    padding: 2px 6px;
}

.appointment-detail-card {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .appointment-detail-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

/* Responsive Calendar */
@media (max-width: 768px) {
    .calendar-day {
        min-height: 80px;
        padding: 4px;
    }

    .calendar-day-header {
        padding: 8px 4px;
        font-size: 0.75rem;
    }

    .day-number {
        font-size: 0.75rem;
    }

    .appointment-item {
        font-size: 0.7rem;
        padding: 1px 4px;
    }

    .appointment-time {
        font-size: 0.65rem;
    }

    .appointment-patient {
        font-size: 0.6rem;
    }
}

/* Day View Styles */
.day-view-container {
    display: flex;
    min-height: 600px;
}

.time-slots-column {
    width: 80px;
    border-right: 1px solid rgba(0,0,0,0.08);
    background-color: #f8f9fa;
}

.time-slot-header {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    font-size: 0.75rem;
    color: #666;
    font-weight: 500;
}

.day-column {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.day-header {
    padding: 16px;
    border-bottom: 2px solid #1976D2;
    background-color: rgba(25, 118, 210, 0.04);
    text-align: center;
}

.day-appointments-container {
    flex: 1;
}

.hour-slot {
    height: 60px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    position: relative;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

    .hour-slot:hover {
        background-color: rgba(25, 118, 210, 0.02);
    }

.day-appointment-item {
    position: absolute;
    left: 4px;
    right: 4px;
    top: 2px;
    bottom: 2px;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
}

    .day-appointment-item:hover {
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    }

.appointment-time-range {
    font-weight: 600;
    font-size: 0.7rem;
    margin-bottom: 2px;
}

.appointment-patient-name {
    font-weight: 500;
    margin-bottom: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.appointment-doctor-name {
    font-size: 0.65rem;
    opacity: 0.8;
    margin-bottom: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.appointment-type {
    font-size: 0.6rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Week View Styles */
.week-view-container {
    display: flex;
    min-height: 600px;
}

.week-header-spacer {
    height: 60px;
    border-bottom: 2px solid #1976D2;
}

.week-day-column {
    flex: 1;
    border-right: 1px solid rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
}

    .week-day-column:last-child {
        border-right: none;
    }

.week-day-header {
    height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-bottom: 2px solid #1976D2;
    background-color: rgba(25, 118, 210, 0.04);
    transition: all 0.2s ease;
}

    .week-day-header.today {
        background-color: rgba(25, 118, 210, 0.1);
        border-bottom-color: #1976D2;
    }

.week-day-appointments {
    flex: 1;
}

.week-appointment-item {
    margin: 1px;
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 0.65rem;
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
}

    .week-appointment-item:hover {
        transform: translateY(-1px);
        box-shadow: 0 1px 4px rgba(0,0,0,0.15);
    }

.appointment-time-small {
    font-weight: 600;
    font-size: 0.6rem;
    margin-bottom: 1px;
}

.appointment-patient-small {
    font-size: 0.6rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive Calendar Views */
@media (max-width: 768px) {
    .day-view-container,
    .week-view-container {
        min-height: 400px;
    }

    .time-slots-column {
        width: 60px;
    }

    .time-slot-header {
        height: 40px;
        font-size: 0.65rem;
    }

    .hour-slot {
        height: 40px;
    }

    .day-appointment-item,
    .week-appointment-item {
        font-size: 0.6rem;
        padding: 2px 4px;
    }

    .week-day-header {
        height: 40px;
        padding: 4px;
    }

    .appointment-patient-name,
    .appointment-doctor-name {
        font-size: 0.6rem;
    }
}

@media (max-width: 960px) {
    .time-slot-button {
        font-size: 0.7rem;
        min-height: 36px;
    }

    .appointments-table .mud-table-cell {
        padding: 8px 4px;
        font-size: 0.8rem;
    }
}

/* Consultation specific styles */
.consultation-tabs .mud-tabs-panels {
    min-height: 500px;
}

.consultation-tabs .mud-tab-panel {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.waiting-patients-table .mud-table-row:hover {
    background-color: rgba(25, 118, 210, 0.04);
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

.investigation-list .investigation-item {
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 4px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

    .investigation-list .investigation-item:hover {
        background-color: rgba(25, 118, 210, 0.04);
        border-color: rgba(25, 118, 210, 0.2);
    }

.investigation-list {
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 8px;
    padding: 8px;
    background: rgba(0,0,0,0.01);
}

    .investigation-list::-webkit-scrollbar {
        width: 6px;
    }

    .investigation-list::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 3px;
    }

    .investigation-list::-webkit-scrollbar-thumb {
        background: #c1c1c1;
        border-radius: 3px;
    }

        .investigation-list::-webkit-scrollbar-thumb:hover {
            background: #a8a8a8;
        }

/* Enhanced card styling */
.mud-card {
    transition: all 0.3s ease;
}

    .mud-card:hover {
        transform: translateY(-2px);
    }

/* Stepper styling */
.mud-stepper {
    background: transparent;
}

    .mud-stepper .mud-stepper-step {
        transition: all 0.3s ease;
    }

/* Responsive improvements */
@media (max-width: 960px) {
    .consultation-tabs .mud-tab-panel {
        min-height: 400px;
        padding: 16px !important;
    }

    .waiting-patients-table .mud-table-cell {
        padding: 8px 4px;
        font-size: 0.85rem;
    }

    .investigation-list {
        max-height: 300px;
    }
}

/* Print styles */
@media print {
    .mud-appbar, .mud-drawer, .mud-fab {
        display: none !important;
    }

    .mud-main-content {
        margin: 0 !important;
        padding: 0 !important;
    }

    .mud-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }

    .receipt-print,
    .receipt-print * {
        color: #000 !important;
        -webkit-text-fill-color: #000 !important;
        background: #fff !important;
        text-shadow: none !important;
        box-shadow: none !important;
        filter: none !important;
        opacity: 1 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .receipt-print hr,
    .receipt-print th,
    .receipt-print td {
        border-color: #000 !important;
    }
}

/* Subscription management styles */
.plan-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

    .plan-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }

.notification-unread {
    background-color: rgba(25, 118, 210, 0.04);
    border-left: 4px solid #1976D2;
}

.subscription-stats-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: transform 0.2s ease;
}

    .subscription-stats-card:hover {
        transform: translateY(-2px);
    }

    .subscription-stats-card .mud-typography {
        color: white !important;
    }

.subscription-expired-warning {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.subscription-expiring-warning {
    background: linear-gradient(135deg, #ffa726, #ff9800);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Payment form styling */
.payment-form .mud-input-control {
    margin-bottom: 1rem;
}

.payment-summary {
    background: rgba(25, 118, 210, 0.04);
    border: 1px solid rgba(25, 118, 210, 0.2);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

/* Subscription status indicators */
.status-active {
    background-color: #4caf50 !important;
    color: white !important;
}

.status-expired {
    background-color: #f44336 !important;
    color: white !important;
}

.status-cancelled {
    background-color: #ff9800 !important;
    color: white !important;
}

.status-suspended {
    background-color: #9e9e9e !important;
    color: white !important;
}

.status-trial {
    background-color: #2196f3 !important;
    color: white !important;
}

/* Admin subscription management */
.subscription-management-table .mud-table-cell {
    padding: 12px 8px;
    vertical-align: middle;
}

.subscription-management-table .mud-avatar {
    width: 32px;
    height: 32px;
}

.subscription-management-table .mud-chip {
    font-size: 0.7rem;
    height: 20px;
}

/* Responsive subscription layout */
@media (max-width: 960px) {
    .plan-card {
        margin-bottom: 16px;
    }

    .subscription-stats-card {
        margin-bottom: 12px;
        padding: 1rem;
    }

    .subscription-management-table .mud-table-cell {
        padding: 8px 4px;
        font-size: 0.8rem;
    }
}

/* Authentication pages styling */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #1976D2, #00796B);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* Admin dashboard styling */
.admin-stats-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

    .admin-stats-card .mud-typography {
        color: white !important;
    }

.admin-stats-icon {
    font-size: 3rem;
    opacity: 0.8;
}

.user-activation-dialog .mud-dialog-content {
    padding: 2rem;
}

.user-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .user-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

/* Status indicators */
.status-pending {
    background-color: #ff9800 !important;
    color: white !important;
}

.status-active {
    background-color: #4caf50 !important;
    color: white !important;
}

.status-inactive {
    background-color: #9e9e9e !important;
    color: white !important;
}

.status-rejected {
    background-color: #f44336 !important;
    color: white !important;
}

/* Role indicators */
.role-admin {
    background-color: #ff5722 !important;
    color: white !important;
}

.role-doctor {
    background-color: #2196f3 !important;
    color: white !important;
}

.role-nurse {
    background-color: #00bcd4 !important;
    color: white !important;
}

.role-receptionist {
    background-color: #9c27b0 !important;
    color: white !important;
}

/* Healthcare unit cards */
.healthcare-unit-card {
    border-left: 4px solid #1976D2;
    transition: all 0.3s ease;
}

    .healthcare-unit-card:hover {
        border-left-color: #00796B;
        transform: translateX(4px);
    }

/* Registration form enhancements */
.registration-form .mud-input-control {
    margin-bottom: 1rem;
}

.profile-image-preview {
    border: 3px solid #e0e0e0;
    border-radius: 50%;
    transition: border-color 0.3s ease;
}

    .profile-image-preview:hover {
        border-color: #1976D2;
    }

/* Patient Dashboard Styles */
.patient-header-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

    .patient-header-card .mud-typography {
        color: white !important;
    }

.stats-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

    .stats-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

.dashboard-tabs .mud-tabs-panels {
    min-height: 400px;
}

.appointments-history-table .mud-table-cell {
    padding: 12px 8px;
    vertical-align: middle;
}

.medical-record-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

    .medical-record-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

.latest-vitals-card {
    background: rgba(25, 118, 210, 0.04);
    border: 1px solid rgba(25, 118, 210, 0.2);
}

.vital-sign-item {
    text-align: center;
    padding: 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.8);
}

/* Responsive adjustments for patient dashboard */
@media (max-width: 960px) {
    .patient-header-card .mud-grid {
        text-align: center;
    }

    .stats-card {
        margin-bottom: 12px;
    }

    .appointments-history-table .mud-table-cell {
        padding: 8px 4px;
        font-size: 0.8rem;
    }

    .vital-sign-item {
        margin-bottom: 8px;
    }
}
/* Patient List Styles */
.patient-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    border: 1px solid rgba(0,0,0,0.08);
}

    .patient-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    }

.patient-table .mud-table-row {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

    .patient-table .mud-table-row:hover {
        background-color: rgba(25, 118, 210, 0.04);
    }

.patient-table .mud-table-cell {
    padding: 12px 16px;
    vertical-align: middle;
}

.patient-search-card {
    background: rgba(25, 118, 210, 0.02);
    border: 1px solid rgba(25, 118, 210, 0.1);
}

/* Patient statistics cards */
.patient-stats-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    transition: transform 0.2s ease;
}

    .patient-stats-card:hover {
        transform: translateY(-2px);
    }

    .patient-stats-card .mud-typography {
        color: white !important;
    }

/* View mode toggle */
.view-toggle-group {
    background: rgba(25, 118, 210, 0.04);
    border-radius: 8px;
    padding: 4px;
}

/* Responsive patient list */
@media (max-width: 960px) {
    .patient-card {
        margin-bottom: 12px;
    }

    .patient-table .mud-table-cell {
        padding: 8px 4px;
        font-size: 0.85rem;
    }

    .patient-stats-card {
        margin-bottom: 12px;
        padding: 1rem;
    }
}

/* Patient card profile images */
.patient-card .mud-avatar img {
    border: 2px solid rgba(25, 118, 210, 0.2);
    transition: border-color 0.3s ease;
}

.patient-card:hover .mud-avatar img {
    border-color: rgba(25, 118, 210, 0.5);
}

/* Loading and empty states */
.patient-list-loading {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.patient-list-empty {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Waiting List Styles */
.appointment-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    border: 1px solid rgba(0,0,0,0.08);
}

    .appointment-card:hover {
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .appointment-card.checked-in {
        background-color: rgba(76, 175, 80, 0.04);
        border-left: 4px solid #4CAF50;
    }

.waiting-list-table .mud-table-row {
    transition: background-color 0.2s ease;
}

    .waiting-list-table .mud-table-row:hover {
        background-color: rgba(25, 118, 210, 0.04);
    }

.waiting-list-table .mud-table-cell {
    padding: 12px 8px;
    vertical-align: middle;
}

.token-chip {
    font-weight: bold;
    min-width: 50px;
}

/* Status indicators for waiting list */
.status-checked-in {
    background-color: #2196f3 !important;
    color: white !important;
}

.status-waiting-for-nurse {
    background-color: #ff9800 !important;
    color: white !important;
}

.status-with-nurse {
    background-color: #ff9800 !important;
    color: white !important;
}

.status-ready-for-doctor {
    background-color: #1976d2 !important;
    color: white !important;
}

.status-with-doctor {
    background-color: #9c27b0 !important;
    color: white !important;
}

.status-completed {
    background-color: #4caf50 !important;
    color: white !important;
}

.status-no-show {
    background-color: #f44336 !important;
    color: white !important;
}

.status-cancelled {
    background-color: #9e9e9e !important;
    color: white !important;
}

/* Waiting list statistics cards */
.waiting-stats-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    transition: transform 0.2s ease;
}

    .waiting-stats-card:hover {
        transform: translateY(-2px);
    }

    .waiting-stats-card .mud-typography {
        color: white !important;
    }

/* Urgent patient indicators */
.urgent-patient {
    border-left: 4px solid #f44336;
    background-color: rgba(244, 67, 54, 0.04);
}

.overdue-patient {
    background-color: rgba(255, 152, 0, 0.04);
    border-left: 4px solid #ff9800;
}

/* Check-in button states */
.check-in-button {
    transition: all 0.2s ease;
}

    .check-in-button:hover {
        transform: scale(1.05);
    }

    .check-in-button:disabled {
        opacity: 0.6;
    }

/* Responsive waiting list */
@media (max-width: 960px) {
    .appointment-card {
        margin-bottom: 8px;
    }

    .waiting-list-table .mud-table-cell {
        padding: 8px 4px;
        font-size: 0.85rem;
    }

    .token-chip {
        min-width: 40px;
        font-size: 0.75rem;
    }
}

/* Patient details dialog */
.patient-details-dialog .mud-dialog-content {
    padding: 1.5rem;
}

.patient-details-card {
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 8px;
}

/* Animation for status changes */
@keyframes statusChange {
    0% {
        background-color: rgba(25, 118, 210, 0.1);
    }

    50% {
        background-color: rgba(25, 118, 210, 0.2);
    }

    100% {
        background-color: transparent;
    }
}

.status-changed {
    animation: statusChange 1s ease-in-out;
}


/*Pharmacy POS*/
.pos-container {
    display: flex;
    height: calc(100vh - 80px);
    gap: 16px;
    padding: 16px;
}

.pos-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pos-right {
    width: 400px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    overflow-y: auto;
    flex: 1;
}

.product-card {
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    background: white;
}

    .product-card:hover {
        border-color: #1976d2;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        transform: translateY(-2px);
    }

    .product-card.low-stock {
        background-color: #fff3e0;
    }

.product-name {
    font-size: 0.875rem;
    font-weight: bold;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-price {
    color: #2e7d32;
    font-size: 1rem;
    font-weight: bold;
}

.product-stock {
    font-size: 0.75rem;
    color: #666;
    margin-top: 4px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f5f5f5;
    border-radius: 4px;
    margin-bottom: 8px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-weight: bold;
    font-size: 0.9rem;
}

.cart-item-price {
    color: #1976d2;
    font-size: 0.85rem;
}

.cart-item-controls {
    display: flex;
    gap: 4px;
    align-items: center;
}

.cart-summary-pos {
    background: linear-gradient(135deg, #1976D2 0%, #1565C0 100%);
    color: white;
    padding: 16px;
    border-radius: 8px;
    margin-top: auto;
}

.summary-row-pos {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.summary-total-pos {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: bold;
    border-top: 2px solid rgba(255,255,255,0.3);
    padding-top: 8px;
}

.search-section {
    display: flex;
    gap: 8px;
}