﻿/* Kuestencode Shared UI Styles */

/* Print Styles */
@media print {
    .mud-appbar,
    .mud-drawer,
    .no-print {
        display: none !important;
    }

    .mud-main-content {
        padding: 0 !important;
        margin: 0 !important;
    }

    .mud-container {
        max-width: 100% !important;
        padding: 0 !important;
    }
}

/* Custom utility classes */
.cursor-pointer {
    cursor: pointer;
}

.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.w-100 {
    width: 100%;
}

.h-100 {
    height: 100%;
}

/* Status badges */
.status-badge {
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.status-badge--draft {
    background-color: #E5E7EB;
    color: #6B7280;
}

.status-badge--sent {
    background-color: #DBEAFE;
    color: #1E40AF;
}

.status-badge--paid {
    background-color: #D1FAE5;
    color: #065F46;
}

.status-badge--overdue {
    background-color: #FEE2E2;
    color: #B91C1C;
}

.status-badge--cancelled {
    background-color: #F3F4F6;
    color: #9CA3AF;
}

/* Card hover effect */
.card-hover {
    transition: box-shadow 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.card-hover:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Loading overlay */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* Table enhancements */
.table-clickable tbody tr {
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
}

.table-clickable tbody tr:hover {
    background-color: rgba(15, 42, 61, 0.04);
}

/* Form sections */
.form-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #E5E7EB;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1A1A1A;
    margin-bottom: 16px;
}

/* Alert customizations */
.alert-dismissible {
    position: relative;
    padding-right: 48px;
}

/* Animation utilities */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.slide-up {
    animation: slideUp 0.3s ease-out;
}

/* Keep tab badges fully visible on filter tabs */
.filter-tabs,
.filter-tabs.mud-tabs,
.filter-tabs .mud-tabs-tabbar,
.filter-tabs .mud-tabs-toolbar,
.filter-tabs .mud-tabs-toolbar-wrapper,
.filter-tabs .mud-tabs-slider,
.filter-tabs .mud-tab,
.filter-tabs .mud-badge-root,
.filter-tabs .mud-badge-wrapper,
.filter-tabs .mud-badge {
    overflow: visible !important;
}

/* Reserve vertical space for top-right tab badges so circles are not clipped */
.filter-tabs .mud-tabs-toolbar {
    padding-top: 6px;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-overview-link {
    font-size: 1.35rem;
    font-weight: 600;
}

.nav-group--no-icon > .mud-nav-link .mud-nav-link-text {
    padding-left: 32px;
}


