/* Hide sidebar when loaded in iframe from app.html */
aside.fixed {
    display: none !important;
}

.ml-64 {
    margin-left: 0 !important;
    width: 100% !important;
}

:root {
    --brand: #2563eb;
    --brand-50: #eff6ff;
    --bg: #f8fafc;
    --ink: #0b2239;
}

body {
    background: var(--bg);
    color: var(--ink);
}

header.navbar {
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
}

.container-narrow {
    max-width: 1120px;
}

.grade-chip {
    display: inline-block;
    padding: .25rem .5rem;
    border-radius: 999px;
    background: #eef2ff;
    margin: .125rem;
    font-size: .85rem;
}

.signature-pad {
    border: 1px dashed #94a3b8;
    border-radius: .5rem;
    background: #fff;
}

.sticky-actions {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding: .75rem;
    border-top: 1px solid #eaecef;
    z-index: 10;
}

.brand-block {
    background: #fff8ea;
    border: 1px solid #f3e7cd;
    border-left: 6px solid #c2892d;
    border-radius: .5rem;
}

@media print {
    .no-print {
        display: none !important;
    }

    body {
        background: #fff;
    }

    .print-card {
        box-shadow: none !important;
    }
}

.grade-col {
    display: none;
}

body.show-grade .grade-col,
body.mode-pedido .grade-col {
    display: table-cell !important;
}

.bg-brand-50 {
    background-color: var(--brand-50) !important;
}

.bg-brand-600 {
    background-color: #2563eb !important;
}

.text-brand-700 {
    color: #1d4ed8 !important;
}

.col-w-55 {
    width: 55px;
}

.col-w-120 {
    width: 120px;
}

.col-min-200 {
    min-width: 200px;
}

.col-w-140 {
    width: 140px;
}

.col-w-160 {
    width: 160px;
}

.col-min-170 {
    min-width: 170px;
}

.col-w-110 {
    width: 110px;
}

.col-w-130 {
    width: 130px;
}

.col-w-50 {
    width: 50px;
}

.col-w-150 {
    width: 150px;
}

.col-w-100 {
    width: 100px;
}

.is-hidden {
    display: none;
}

.max-w-210mm {
    max-width: 210mm;
}

.max-h-72 {
    max-height: 72px;
}

.border-top-0 {
    border-top: 0 !important;
}

.input-muted {
    background-color: #e9ecef;
}

.w-40pct {
    width: 40%;
}

.h-60 {
    height: 60px;
}

.relative-block {
    position: relative;
}

.signature-image {
    max-height: 60px;
    max-width: 100%;
    margin: 0 auto;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: block;
}

.btn-close-compact {
    font-size: 0.7rem;
    padding: 0.25rem;
}

.search-item {
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.search-item:hover {
    background: var(--brand-50);
    border-color: #bfdbfe;
    transform: translateX(4px);
}

.search-item .title {
    font-weight: 600;
    color: var(--ink);
    display: block;
    font-size: 0.95rem;
}

.search-item .subtitle {
    font-size: 0.8rem;
    color: #64748b;
    display: block;
}

#searchDropdown::-webkit-scrollbar {
    width: 6px;
}

#searchDropdown::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: translateY(-50%) rotate(0deg);
    }

    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

.hidden {
    display: none !important;
}