/**
 * KOMPAS — Invoice Module CSS
 * Tailwind-like utility classes for invoicing pages
 * Design: Clean, modern, white cards, TK red accent (#EB002F)
 * v1.0 — 2026-03-22
 */

/* ═══════════════════════════════════════════════
   LAYOUT & FLEXBOX
   ═══════════════════════════════════════════════ */
.flex { display: flex !important; }
.inline-flex { display: inline-flex !important; }
.inline-block { display: inline-block !important; }
.inline { display: inline !important; }
.block { display: block !important; }
.hidden { display: none !important; }
.grid { display: grid !important; }

.flex-1 { flex: 1 1 0% !important; }
.flex-shrink-0 { flex-shrink: 0 !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-col { flex-direction: column !important; }

.items-center { align-items: center !important; }
.items-start { align-items: flex-start !important; }
.items-end { align-items: flex-end !important; }
.justify-between { justify-content: space-between !important; }
.justify-center { justify-content: center !important; }
.justify-end { justify-content: flex-end !important; }

.w-full { width: 100% !important; }
.w-3 { width: 0.75rem !important; }
.w-3\.5 { width: 0.875rem !important; }
.w-4 { width: 1rem !important; }
.w-5 { width: 1.25rem !important; }
.w-6 { width: 1.5rem !important; }
.w-8 { width: 2rem !important; }
.w-10 { width: 2.5rem !important; }
.w-12 { width: 3rem !important; }
.w-16 { width: 4rem !important; }
.w-20 { width: 5rem !important; }
.w-24 { width: 6rem !important; }
.w-28 { width: 7rem !important; }
.w-48 { width: 12rem !important; }
.w-64 { width: 16rem !important; }
.w-72 { width: 18rem !important; }

.h-3 { height: 0.75rem !important; }
.h-4 { height: 1rem !important; }
.h-5 { height: 1.25rem !important; }
.h-6 { height: 1.5rem !important; }
.h-8 { height: 2rem !important; }
.h-10 { height: 2.5rem !important; }
.h-12 { height: 3rem !important; }

.min-w-0 { min-width: 0 !important; }
.max-w-md { max-width: 28rem !important; }
.max-w-3xl { max-width: 48rem !important; }

.overflow-hidden { overflow: hidden !important; }
.overflow-x-auto { overflow-x: auto !important; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Grid */
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
.grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)) !important; }
.col-span-1 { grid-column: span 1 / span 1 !important; }
.col-span-2 { grid-column: span 2 / span 2 !important; }
.col-span-5 { grid-column: span 5 / span 5 !important; }

/* ═══════════════════════════════════════════════
   SPACING
   ═══════════════════════════════════════════════ */
/* Gap */
.gap-1 { gap: 0.25rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 0.75rem !important; }
.gap-4 { gap: 1rem !important; }
.gap-6 { gap: 1.5rem !important; }

/* Padding */
.p-0 { padding: 0 !important; }
.p-1 { padding: 0.25rem !important; }
.p-1\.5 { padding: 0.375rem !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 0.75rem !important; }
.p-4 { padding: 1rem !important; }
.p-5 { padding: 1.25rem !important; }
.p-6 { padding: 1.5rem !important; }
.p-8 { padding: 2rem !important; }
.p-12 { padding: 3rem !important; }

.px-1 { padding-left: 0.25rem !important; padding-right: 0.25rem !important; }
.px-1\.5 { padding-left: 0.375rem !important; padding-right: 0.375rem !important; }
.px-2 { padding-left: 0.5rem !important; padding-right: 0.5rem !important; }
.px-2\.5 { padding-left: 0.625rem !important; padding-right: 0.625rem !important; }
.px-3 { padding-left: 0.75rem !important; padding-right: 0.75rem !important; }
.px-4 { padding-left: 1rem !important; padding-right: 1rem !important; }
.px-5 { padding-left: 1.25rem !important; padding-right: 1.25rem !important; }
.px-6 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }

.py-0\.5 { padding-top: 0.125rem !important; padding-bottom: 0.125rem !important; }
.py-1 { padding-top: 0.25rem !important; padding-bottom: 0.25rem !important; }
.py-1\.5 { padding-top: 0.375rem !important; padding-bottom: 0.375rem !important; }
.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.py-2\.5 { padding-top: 0.625rem !important; padding-bottom: 0.625rem !important; }
.py-3 { padding-top: 0.75rem !important; padding-bottom: 0.75rem !important; }
.py-4 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-8 { padding-top: 2rem !important; padding-bottom: 2rem !important; }

.pt-0 { padding-top: 0 !important; }

/* Margin */
.m-0 { margin: 0 !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }

.mt-0\.5 { margin-top: 0.125rem !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 0.75rem !important; }
.mt-4 { margin-top: 1rem !important; }
.mt-6 { margin-top: 1.5rem !important; }
.mt-8 { margin-top: 2rem !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-0\.5 { margin-bottom: 0.125rem !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 0.75rem !important; }
.mb-4 { margin-bottom: 1rem !important; }
.mb-6 { margin-bottom: 1.5rem !important; }

.mr-1 { margin-right: 0.25rem !important; }
.mr-1\.5 { margin-right: 0.375rem !important; }
.mr-2 { margin-right: 0.5rem !important; }
.mr-3 { margin-right: 0.75rem !important; }

.ml-1 { margin-left: 0.25rem !important; }
.ml-1\.5 { margin-left: 0.375rem !important; }
.ml-2 { margin-left: 0.5rem !important; }
.ml-4 { margin-left: 1rem !important; }
.ml-7 { margin-left: 1.75rem !important; }
.ml-auto { margin-left: auto !important; }

.-mb-px { margin-bottom: -1px !important; }
.-left-4 { left: -1rem !important; }
.-translate-y-1\/2 { transform: translateY(-50%) !important; }

/* ═══════════════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════════════ */
.text-\[10px\] { font-size: 10px !important; }
.text-xs { font-size: 0.75rem !important; line-height: 1rem !important; }
.text-sm { font-size: 0.875rem !important; line-height: 1.25rem !important; }
.text-base { font-size: 1rem !important; line-height: 1.5rem !important; }
.text-lg { font-size: 1.125rem !important; line-height: 1.75rem !important; }
.text-xl { font-size: 1.25rem !important; line-height: 1.75rem !important; }
.text-2xl { font-size: 1.5rem !important; line-height: 2rem !important; }
.text-3xl { font-size: 1.875rem !important; line-height: 2.25rem !important; }

.font-medium { font-weight: 500 !important; }
.font-semibold { font-weight: 600 !important; }
.font-bold { font-weight: 700 !important; }
.font-mono { font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace !important; }
.font-italic { font-style: italic !important; }

.text-left { text-align: left !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }

.uppercase { text-transform: uppercase !important; }
.tracking-wide { letter-spacing: 0.025em !important; }
.tracking-wider { letter-spacing: 0.05em !important; }
.tabular-nums { font-variant-numeric: tabular-nums !important; }
.underline { text-decoration: underline !important; }
.whitespace-nowrap { white-space: nowrap !important; }
.leading-tight { line-height: 1.25 !important; }
.leading-none { line-height: 1 !important; }
.leading-relaxed { line-height: 1.625 !important; }
.list-disc { list-style-type: disc !important; }

/* ═══════════════════════════════════════════════
   TEXT COLORS
   ═══════════════════════════════════════════════ */
.text-white { color: #fff !important; }
.text-gray-300 { color: #D1D5DB !important; }
.text-gray-400 { color: #9CA3AF !important; }
.text-gray-500 { color: #6B7280 !important; }
.text-gray-600 { color: #4B5563 !important; }
.text-gray-700 { color: #374151 !important; }
.text-gray-800 { color: #1F2937 !important; }
.text-gray-900 { color: #111827 !important; }

.text-red-500 { color: #EF4444 !important; }
.text-red-600 { color: #DC2626 !important; }
.text-red-700 { color: #B91C1C !important; }
.text-red-800 { color: #991B1B !important; }

.text-orange-600 { color: #EA580C !important; }
.text-orange-700 { color: #C2410C !important; }
.text-orange-800 { color: #9A3412 !important; }

.text-yellow-700 { color: #A16207 !important; }
.text-yellow-800 { color: #854D0E !important; }

.text-green-500 { color: #22C55E !important; }
.text-green-600 { color: #16A34A !important; }
.text-green-700 { color: #15803D !important; }
.text-green-800 { color: #166534 !important; }

.text-blue-500 { color: #EB002F !important; }
.text-blue-600 { color: #C50028 !important; }
.text-blue-700 { color: #A60022 !important; }

.text-purple-700 { color: #7C3AED !important; }

/* ═══════════════════════════════════════════════
   BACKGROUND COLORS
   ═══════════════════════════════════════════════ */
.bg-white { background-color: #fff !important; }
.bg-gray-50 { background-color: #F9FAFB !important; }
.bg-gray-50\/50 { background-color: rgba(249,250,251,0.5) !important; }
.bg-gray-100 { background-color: #F3F4F6 !important; }
.bg-gray-200 { background-color: #E5E7EB !important; }
.bg-black\/50 { background-color: rgba(0,0,0,0.5) !important; }

.bg-red-50 { background-color: #FEF2F2 !important; }
.bg-red-50\/50 { background-color: rgba(254,242,242,0.5) !important; }
.bg-red-100 { background-color: #FEE2E2 !important; }
.bg-red-600 { background-color: #DC2626 !important; }
.bg-red-700 { background-color: #B91C1C !important; }

.bg-orange-50 { background-color: #FFF7ED !important; }
.bg-orange-100 { background-color: #FFEDD5 !important; }

.bg-yellow-50 { background-color: #FEFCE8 !important; }
.bg-yellow-100 { background-color: #FEF9C3 !important; }
.bg-yellow-600 { background-color: #CA8A04 !important; }
.bg-yellow-700 { background-color: #A16207 !important; }

.bg-green-50 { background-color: #F0FDF4 !important; }
.bg-green-100 { background-color: #DCFCE7 !important; }
.bg-green-600 { background-color: #16A34A !important; }
.bg-green-700 { background-color: #15803D !important; }

.bg-blue-50 { background-color: #FEF2F5 !important; }
.bg-blue-100 { background-color: #FBCCD6 !important; }
.bg-blue-500 { background-color: #EB002F !important; }
.bg-blue-600 { background-color: #C50028 !important; }

.bg-purple-50 { background-color: #FAF5FF !important; }

/* ═══════════════════════════════════════════════
   BORDERS
   ═══════════════════════════════════════════════ */
.border { border: 1px solid #E5E7EB !important; }
.border-0 { border: 0 !important; }
.border-b { border-bottom: 1px solid #E5E7EB !important; }
.border-b-2 { border-bottom: 2px solid #E5E7EB !important; }
.border-t { border-top: 1px solid #E5E7EB !important; }
.border-t-2 { border-top: 2px solid #E5E7EB !important; }
.border-l { border-left: 1px solid #E5E7EB !important; }
.border-l-4 { border-left: 4px solid #E5E7EB !important; }
.border-r { border-right: 1px solid #E5E7EB !important; }

.border-transparent { border-color: transparent !important; }
.border-white { border-color: #fff !important; }
.border-gray-100 { border-color: #F3F4F6 !important; }
.border-gray-200 { border-color: #E5E7EB !important; }
.border-gray-300 { border-color: #D1D5DB !important; }
.border-red-200 { border-color: #FECACA !important; }
.border-red-300 { border-color: #FCA5A5 !important; }
.border-red-500 { border-color: #EF4444 !important; }
.border-orange-200 { border-color: #FED7AA !important; }
.border-green-300 { border-color: #86EFAC !important; }
.border-blue-100 { border-color: #FBCCD6 !important; }
.border-blue-200 { border-color: #F799AD !important; }
.border-yellow-200 { border-color: #FDE68A !important; }

/* Border Radius */
.rounded { border-radius: 0.25rem !important; }
.rounded-md { border-radius: 0.375rem !important; }
.rounded-lg { border-radius: 0.5rem !important; }
.rounded-xl { border-radius: 0.75rem !important; }
.rounded-full { border-radius: 9999px !important; }
.rounded-t { border-top-left-radius: 0.25rem !important; border-top-right-radius: 0.25rem !important; }
.rounded-t-lg { border-top-left-radius: 0.5rem !important; border-top-right-radius: 0.5rem !important; }

/* ═══════════════════════════════════════════════
   SHADOWS
   ═══════════════════════════════════════════════ */
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05) !important; }
.shadow { box-shadow: 0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1) !important; }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1) !important; }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1) !important; }

/* ═══════════════════════════════════════════════
   POSITIONING
   ═══════════════════════════════════════════════ */
.relative { position: relative !important; }
.absolute { position: absolute !important; }
.fixed { position: fixed !important; }
.sticky { position: sticky !important; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0 !important; }
.top-0 { top: 0 !important; }
.top-1\.5 { top: 0.375rem !important; }
.top-2 { top: 0.5rem !important; }
.top-1\/2 { top: 50% !important; }
.bottom-0 { bottom: 0 !important; }
.bottom-2 { bottom: 0.5rem !important; }
.bottom-4 { bottom: 1rem !important; }
.left-0 { left: 0 !important; }
.left-2 { left: 0.5rem !important; }
.left-3 { left: 0.75rem !important; }
.right-0 { right: 0 !important; }
.right-2 { right: 0.5rem !important; }
.z-10 { z-index: 10 !important; }
.z-50 { z-index: 50 !important; }

/* ═══════════════════════════════════════════════
   TRANSITIONS
   ═══════════════════════════════════════════════ */
.transition-colors { transition-property: color, background-color, border-color; transition-duration: 150ms; transition-timing-function: ease-in-out; }
.transition-all { transition: all 150ms ease-in-out; }
.duration-200 { transition-duration: 200ms !important; }

/* ═══════════════════════════════════════════════
   HOVER STATES
   ═══════════════════════════════════════════════ */
.hover\:bg-gray-50:hover { background-color: #F9FAFB !important; }
.hover\:bg-gray-100:hover { background-color: #F3F4F6 !important; }
.hover\:bg-red-50:hover { background-color: #FEF2F2 !important; }
.hover\:bg-red-700:hover { background-color: #B91C1C !important; }
.hover\:text-gray-700:hover { color: #374151 !important; }
.hover\:text-gray-900:hover { color: #111827 !important; }
.hover\:text-red-700:hover { color: #B91C1C !important; }
.hover\:underline:hover { text-decoration: underline !important; }
.hover\:shadow-sm:hover { box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05) !important; }
.hover\:border-gray-300:hover { border-color: #D1D5DB !important; }
.hover\:border-red-300:hover { border-color: #FCA5A5 !important; }

/* ═══════════════════════════════════════════════
   FOCUS STATES
   ═══════════════════════════════════════════════ */
.focus\:ring-red-500:focus { box-shadow: 0 0 0 3px rgba(239,68,68,0.3) !important; }
.focus\:ring-gray-400:focus { box-shadow: 0 0 0 3px rgba(156,163,175,0.3) !important; }
.focus\:border-red-500:focus { border-color: #EF4444 !important; }
.focus\:border-gray-400:focus { border-color: #9CA3AF !important; }
.focus\:outline-none:focus { outline: none !important; }

/* ═══════════════════════════════════════════════
   CURSOR
   ═══════════════════════════════════════════════ */
.cursor-pointer { cursor: pointer !important; }
.cursor-move { cursor: move !important; }
.select-none { user-select: none !important; }

/* ═══════════════════════════════════════════════
   ALPINE.JS
   ═══════════════════════════════════════════════ */
[x-cloak] { display: none !important; }

/* ═══════════════════════════════════════════════
   INVOICE MODULE — CUSTOM DESIGN COMPONENTS
   ═══════════════════════════════════════════════ */

/* Top navigation pills */
.inv-topnav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 0;
}

.inv-topnav a {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #6B7280;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.15s;
}

.inv-topnav a:hover {
    background: #F3F4F6;
    color: #374151;
}

.inv-topnav a.active {
    background: #EB002F;
    color: #fff;
}

.inv-topnav a .mdi {
    margin-right: 4px;
    font-size: 16px;
}

/* Page header */
.inv-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
}

.inv-page-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.inv-page-header .subtitle {
    font-size: 14px;
    color: #6B7280;
    margin-top: 4px;
}

/* Stat cards */
.inv-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.inv-stat-card {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 16px 20px;
}

.inv-stat-card .label {
    font-size: 12px;
    font-weight: 500;
    color: #6B7280;
    margin-bottom: 4px;
}

.inv-stat-card .value {
    font-size: 22px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
}

.inv-stat-card .count {
    font-size: 12px;
    color: #9CA3AF;
    margin-top: 2px;
}

.inv-stat-card .value.green { color: #16A34A; }
.inv-stat-card .value.red { color: #DC2626; }
.inv-stat-card .value.orange { color: #EA580C; }
.inv-stat-card .value.blue { color: #C50028; }

/* Filter tabs */
.inv-filter-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
}

.inv-filter-tabs button {
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: #6B7280;
    cursor: pointer;
    transition: all 0.15s;
}

.inv-filter-tabs button:hover {
    background: #F3F4F6;
    color: #374151;
}

.inv-filter-tabs button.active {
    background: #EB002F;
    color: #fff;
    border-color: #EB002F;
}

/* Action icons row */
.inv-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-end;
}

.inv-actions a,
.inv-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: none;
    background: #F3F4F6;
    color: #6B7280;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
}

.inv-actions a:hover,
.inv-actions button:hover {
    background: #E5E7EB;
    color: #111827;
}

/* Status badges */
.inv-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid;
}

.inv-badge-draft { background: #F3F4F6; color: #6B7280; border-color: #E5E7EB; }
.inv-badge-issued { background: #FEF9C3; color: #A16207; border-color: #FDE68A; }
.inv-badge-sent { background: #FFF7ED; color: #EA580C; border-color: #FED7AA; }
.inv-badge-paid { background: #F0FDF4; color: #16A34A; border-color: #86EFAC; }
.inv-badge-cancelled { background: #FEF2F2; color: #DC2626; border-color: #FECACA; }

/* Detail tabs */
.inv-tabs {
    display: flex;
    border-bottom: 2px solid #E5E7EB;
    margin-bottom: 24px;
    gap: 0;
}

.inv-tabs a {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #6B7280;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.15s;
}

.inv-tabs a:hover {
    color: #EB002F;
}

.inv-tabs a.active {
    color: #EB002F;
    border-bottom-color: #EB002F;
}

/* Detail section cards */
.inv-section {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}

.inv-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
}

.inv-section-title .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.inv-section-title .dot.red { background: #EB002F; }
.inv-section-title .dot.blue { background: #EB002F; }
.inv-section-title .dot.green { background: #22C55E; }

/* Form styling for invoice detail */
.inv-form-group {
    margin-bottom: 14px;
}

.inv-form-group label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #6B7280;
    margin-bottom: 4px;
}

.inv-form-group input,
.inv-form-group select,
.inv-form-group textarea {
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background: #fff;
    color: #111827;
    transition: border-color 0.15s;
}

.inv-form-group input:focus,
.inv-form-group select:focus,
.inv-form-group textarea:focus {
    outline: none;
    border-color: #EB002F;
    box-shadow: 0 0 0 3px rgba(235,0,47,0.1);
}

/* Bulk create - customer groups */
.inv-customer-group {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
}

.inv-customer-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid #E5E7EB;
}

.inv-customer-group-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.inv-period-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    font-size: 12px;
    font-weight: 600;
    color: #A16207;
    background: #FEFCE8;
    border-bottom: 1px solid #FDE68A;
}

.inv-screening-row {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    border-bottom: 1px solid #F3F4F6;
    font-size: 13px;
}

.inv-screening-row:last-child {
    border-bottom: none;
}

.inv-screening-row:hover {
    background: #F9FAFB;
}

/* Price mode badges */
.inv-price-badge {
    display: inline-flex;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.inv-price-badge.pausal { background: #EFF6FF; color: #2563EB; }
.inv-price-badge.vstupne { background: #FFF7ED; color: #EA580C; }
.inv-price-badge.vstupne-bez { background: #FEFCE8; color: #A16207; }
.inv-price-badge.zadarmo { background: #F0FDF4; color: #16A34A; }

/* Invoice PDF preview */
.inv-pdf-container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    padding: 40px;
}

/* Settings page - products table */
.inv-settings-table {
    width: 100%;
    border-collapse: collapse;
}

.inv-settings-table th {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6B7280;
    padding: 10px 16px;
    text-align: left;
    border-bottom: 1px solid #E5E7EB;
}

.inv-settings-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #F3F4F6;
    font-size: 14px;
    color: #111827;
}

.inv-settings-table tr:hover td {
    background: #F9FAFB;
}

.inv-settings-table .code {
    font-family: ui-monospace, SFMono-Regular, monospace;
    font-weight: 700;
    font-size: 13px;
}

.inv-settings-table .sys-badge {
    display: inline-flex;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    background: #EFF6FF;
    color: #3B82F6;
    text-transform: uppercase;
}

/* ═══════════════════════════════════════════════
   BUTTONS — Invoice-specific
   ═══════════════════════════════════════════════ */
.inv-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    gap: 6px;
}

.inv-btn-primary {
    background: #EB002F;
    color: #fff;
    border-color: #EB002F;
}
.inv-btn-primary:hover {
    background: #A40020;
    border-color: #A40020;
    color: #fff;
}

.inv-btn-outline {
    background: #fff;
    color: #374151;
    border-color: #D1D5DB;
}
.inv-btn-outline:hover {
    background: #F3F4F6;
    color: #111827;
}

.inv-btn-success {
    background: #16A34A;
    color: #fff;
    border-color: #16A34A;
}
.inv-btn-success:hover {
    background: #15803D;
    border-color: #15803D;
    color: #fff;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */
@media (max-width: 768px) {
    .inv-stats { grid-template-columns: repeat(2, 1fr); }
    .grid-cols-2 { grid-template-columns: 1fr !important; }
}

/* ═══════════════════════════════════════════════
   SVG sizing (critical fix — prevents giant SVGs)
   ═══════════════════════════════════════════════ */
svg.w-3 { width: 0.75rem; height: 0.75rem; }
svg.w-4 { width: 1rem; height: 1rem; }
svg.w-5 { width: 1.25rem; height: 1.25rem; }
svg.w-6 { width: 1.5rem; height: 1.5rem; }
svg.w-8 { width: 2rem; height: 2rem; }

svg.h-3 { height: 0.75rem; }
svg.h-4 { height: 1rem; }
svg.h-5 { height: 1.25rem; }
svg.h-6 { height: 1.5rem; }
svg.h-8 { height: 2rem; }

/* Fill/Stroke for SVGs */
.fill-current { fill: currentColor; }
.stroke-current { stroke: currentColor; }
