/* FortiGate Inventory - Utility CSS Classes
   Classes pequenas para acelerar ajustes de interface sem CSS inline.
   Use com moderação e prefira componentes do Design System quando existir. */

/* Display */
.flex { display: flex !important; }
.flex-center { display: flex !important; align-items: center !important; justify-content: center !important; }
.flex-between { display: flex !important; align-items: center !important; justify-content: space-between !important; }
.flex-col { display: flex !important; flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.items-start { align-items: flex-start !important; }
.items-center { align-items: center !important; }
.items-end { align-items: flex-end !important; }
.justify-start { justify-content: flex-start !important; }
.justify-center { justify-content: center !important; }
.justify-end { justify-content: flex-end !important; }
.justify-between { justify-content: space-between !important; }
.grid { display: grid !important; }
.inline-block { display: inline-block !important; }
.block { display: block !important; }
.inline { display: inline !important; }
.hidden { display: none !important; }
.visible { display: block !important; }
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-grid { display: grid !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }

/* Spacing - Margin */
.m-0 { margin: 0 !important; }
.m-1 { margin: var(--fi-space-1, .25rem) !important; }
.m-2 { margin: var(--fi-space-2, .5rem) !important; }
.m-3 { margin: var(--fi-space-3, .75rem) !important; }
.m-4 { margin: var(--fi-space-4, 1rem) !important; }
.m-6 { margin: var(--fi-space-6, 1.5rem) !important; }
.m-8 { margin: var(--fi-space-8, 2rem) !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.my-2 { margin-top: var(--fi-space-2, .5rem) !important; margin-bottom: var(--fi-space-2, .5rem) !important; }
.mt-2 { margin-top: var(--fi-space-2, .5rem) !important; }
.mt-3 { margin-top: var(--fi-space-3, .75rem) !important; }
.mt-4 { margin-top: var(--fi-space-4, 1rem) !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: var(--fi-space-2, .5rem) !important; }
.mb-3 { margin-bottom: var(--fi-space-3, .75rem) !important; }
.mb-4 { margin-bottom: var(--fi-space-4, 1rem) !important; }

/* Spacing - Padding */
.p-0 { padding: 0 !important; }
.p-1 { padding: var(--fi-space-1, .25rem) !important; }
.p-2 { padding: var(--fi-space-2, .5rem) !important; }
.p-3 { padding: var(--fi-space-3, .75rem) !important; }
.p-4 { padding: var(--fi-space-4, 1rem) !important; }
.p-6 { padding: var(--fi-space-6, 1.5rem) !important; }
.px-2 { padding-left: var(--fi-space-2, .5rem) !important; padding-right: var(--fi-space-2, .5rem) !important; }
.px-3 { padding-left: var(--fi-space-3, .75rem) !important; padding-right: var(--fi-space-3, .75rem) !important; }
.py-2 { padding-top: var(--fi-space-2, .5rem) !important; padding-bottom: var(--fi-space-2, .5rem) !important; }
.py-3 { padding-top: var(--fi-space-3, .75rem) !important; padding-bottom: var(--fi-space-3, .75rem) !important; }

/* Gap */
.gap-1 { gap: var(--fi-space-1, .25rem) !important; }
.gap-2 { gap: var(--fi-space-2, .5rem) !important; }
.gap-3 { gap: var(--fi-space-3, .75rem) !important; }
.gap-4 { gap: var(--fi-space-4, 1rem) !important; }
.gap-6 { gap: var(--fi-space-6, 1.5rem) !important; }

/* Sizing */
.w-100 { width: 100% !important; }
.w-75 { width: 75% !important; }
.w-50 { width: 50% !important; }
.w-auto { width: auto !important; }
.h-100 { height: 100% !important; }
.h-auto { height: auto !important; }
.min-h-screen { min-height: 100vh !important; }
.min-w-0 { min-width: 0 !important; }

/* Text */
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }
.font-bold { font-weight: 700 !important; }
.font-semibold { font-weight: 600 !important; }
.font-normal { font-weight: 400 !important; }
.text-xs { font-size: .75rem !important; }
.text-sm { font-size: .875rem !important; }
.text-base { font-size: 1rem !important; }
.text-lg { font-size: 1.125rem !important; }
.text-xl { font-size: 1.25rem !important; }
.text-muted { color: var(--fi-text-muted, #64748b) !important; }
.text-primary { color: var(--fi-primary, #0f5fd9) !important; }
.text-success { color: var(--fi-success, #10b981) !important; }
.text-warning { color: var(--fi-warning, #f59e0b) !important; }
.text-danger { color: var(--fi-danger, #ef4444) !important; }
.text-info { color: var(--fi-info, #06b6d4) !important; }
.uppercase { text-transform: uppercase !important; }
.capitalize { text-transform: capitalize !important; }
.lowercase { text-transform: lowercase !important; }
.text-break { overflow-wrap: anywhere !important; word-break: break-word !important; }

/* Border */
.rounded { border-radius: var(--fi-radius-md, .625rem) !important; }
.rounded-lg { border-radius: var(--fi-radius-lg, .875rem) !important; }
.rounded-xl { border-radius: var(--fi-radius-xl, 1.125rem) !important; }
.rounded-full { border-radius: var(--fi-radius-pill, 999px) !important; }
.border { border: 1px solid var(--fi-border, rgba(148, 163, 184, .28)) !important; }
.border-top { border-top: 1px solid var(--fi-border, rgba(148, 163, 184, .28)) !important; }
.border-bottom { border-bottom: 1px solid var(--fi-border, rgba(148, 163, 184, .28)) !important; }
.border-0 { border: 0 !important; }

/* Shadows */
.shadow { box-shadow: var(--fi-shadow-sm, 0 4px 16px rgba(15, 23, 42, .06)) !important; }
.shadow-lg { box-shadow: var(--fi-shadow-lg, 0 18px 50px rgba(15, 23, 42, .12)) !important; }
.shadow-none { box-shadow: none !important; }

/* Cursor */
.cursor-pointer { cursor: pointer !important; }
.cursor-default { cursor: default !important; }
.cursor-not-allowed { cursor: not-allowed !important; }

/* Opacity */
.opacity-50 { opacity: .5 !important; }
.opacity-75 { opacity: .75 !important; }
.opacity-100 { opacity: 1 !important; }

/* Responsive Display */
@media (max-width: 767.98px) {
  .hidden-mobile { display: none !important; }
  .visible-mobile { display: block !important; }
}

@media (min-width: 768px) and (max-width: 1023.98px) {
  .hidden-tablet { display: none !important; }
  .visible-tablet { display: block !important; }
}

@media (min-width: 1024px) {
  .hidden-desktop { display: none !important; }
  .visible-desktop { display: block !important; }
}

/* =========================================================
   Utility Classes Expansion - desenvolvimento rápido seguro
   ========================================================= */

/* Flexbox avançado */
.flex-row { flex-direction: row !important; }
.flex-row-reverse { flex-direction: row-reverse !important; }
.flex-col-reverse { flex-direction: column-reverse !important; }
.flex-nowrap { flex-wrap: nowrap !important; }
.flex-1 { flex: 1 1 0% !important; }
.flex-auto { flex: 1 1 auto !important; }
.flex-none { flex: none !important; }
.grow { flex-grow: 1 !important; }
.grow-0 { flex-grow: 0 !important; }
.shrink { flex-shrink: 1 !important; }
.shrink-0 { flex-shrink: 0 !important; }
.order-first { order: -9999 !important; }
.order-last { order: 9999 !important; }
.order-none { order: 0 !important; }
.self-start { align-self: flex-start !important; }
.self-center { align-self: center !important; }
.self-end { align-self: flex-end !important; }
.self-stretch { align-self: stretch !important; }
.content-center { align-content: center !important; }
.content-between { align-content: space-between !important; }

/* Grid */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; }
.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-auto-fit { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important; }
.grid-auto-fill { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important; }
.ds-col-span-1 { grid-column: span 1 / span 1 !important; }
.ds-col-span-2 { grid-column: span 2 / span 2 !important; }
.ds-col-span-full { grid-column: 1 / -1 !important; }

/* Gap extra */
.gap-0 { gap: 0 !important; }
.gap-5 { gap: 1.25rem !important; }
.gap-8 { gap: 2rem !important; }
.gap-x-2 { column-gap: .5rem !important; }
.gap-x-3 { column-gap: .75rem !important; }
.gap-x-4 { column-gap: 1rem !important; }
.gap-y-2 { row-gap: .5rem !important; }
.gap-y-3 { row-gap: .75rem !important; }
.gap-y-4 { row-gap: 1rem !important; }

/* Margin extra */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: .25rem !important; }
.mt-6 { margin-top: 1.5rem !important; }
.mt-8 { margin-top: 2rem !important; }
.mr-0 { margin-right: 0 !important; }
.mr-1 { margin-right: .25rem !important; }
.mr-2 { margin-right: .5rem !important; }
.mr-3 { margin-right: .75rem !important; }
.mr-4 { margin-right: 1rem !important; }
.mb-1 { margin-bottom: .25rem !important; }
.mb-6 { margin-bottom: 1.5rem !important; }
.mb-8 { margin-bottom: 2rem !important; }
.ml-0 { margin-left: 0 !important; }
.ml-1 { margin-left: .25rem !important; }
.ml-2 { margin-left: .5rem !important; }
.ml-3 { margin-left: .75rem !important; }
.ml-4 { margin-left: 1rem !important; }
.mx-0 { margin-left: 0 !important; margin-right: 0 !important; }
.mx-2 { margin-left: .5rem !important; margin-right: .5rem !important; }
.mx-3 { margin-left: .75rem !important; margin-right: .75rem !important; }
.mx-4 { margin-left: 1rem !important; margin-right: 1rem !important; }
.my-0 { margin-top: 0 !important; margin-bottom: 0 !important; }
.my-3 { margin-top: .75rem !important; margin-bottom: .75rem !important; }
.my-4 { margin-top: 1rem !important; margin-bottom: 1rem !important; }

/* Padding extra */
.pt-0 { padding-top: 0 !important; }
.pt-1 { padding-top: .25rem !important; }
.pt-2 { padding-top: .5rem !important; }
.pt-3 { padding-top: .75rem !important; }
.pt-4 { padding-top: 1rem !important; }
.pr-0 { padding-right: 0 !important; }
.pr-1 { padding-right: .25rem !important; }
.pr-2 { padding-right: .5rem !important; }
.pr-3 { padding-right: .75rem !important; }
.pr-4 { padding-right: 1rem !important; }
.pb-0 { padding-bottom: 0 !important; }
.pb-1 { padding-bottom: .25rem !important; }
.pb-2 { padding-bottom: .5rem !important; }
.pb-3 { padding-bottom: .75rem !important; }
.pb-4 { padding-bottom: 1rem !important; }
.pl-0 { padding-left: 0 !important; }
.pl-1 { padding-left: .25rem !important; }
.pl-2 { padding-left: .5rem !important; }
.pl-3 { padding-left: .75rem !important; }
.pl-4 { padding-left: 1rem !important; }
.px-0 { padding-left: 0 !important; padding-right: 0 !important; }
.px-4 { padding-left: 1rem !important; padding-right: 1rem !important; }
.px-6 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.py-0 { padding-top: 0 !important; padding-bottom: 0 !important; }
.py-4 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-6 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }

/* Sizing extra */
.w-25 { width: 25% !important; }
.w-screen { width: 100vw !important; }
.w-col-40 { width: 40px !important; }
.w-col-42 { width: 42px !important; }
.w-col-80 { width: 80px !important; }
.w-col-85 { width: 85px !important; }
.w-col-90 { width: 90px !important; }
.w-col-95 { width: 95px !important; }
.w-col-100 { width: 100px !important; }
.w-col-105 { width: 105px !important; }
.w-col-110 { width: 110px !important; }
.w-col-115 { width: 115px !important; }
.w-col-120 { width: 120px !important; }
.w-col-125 { width: 125px !important; }
.w-col-130 { width: 130px !important; }
.w-col-140 { width: 140px !important; }
.w-col-145 { width: 145px !important; }
.w-col-150 { width: 150px !important; }
.w-col-160 { width: 160px !important; }
.w-col-170 { width: 170px !important; }
.w-col-180 { width: 180px !important; }
.w-col-210 { width: 210px !important; }
.w-col-220 { width: 220px !important; }
.w-col-260 { width: 260px !important; }
.w-control-340 { max-width: 340px !important; }
.max-w-sm { max-width: 24rem !important; }
.max-w-md { max-width: 28rem !important; }
.max-w-lg { max-width: 32rem !important; }
.max-w-xl { max-width: 36rem !important; }
.max-w-2xl { max-width: 42rem !important; }
.max-w-full { max-width: 100% !important; }
.min-w-full { min-width: 100% !important; }
.h-25 { height: 25% !important; }
.h-50 { height: 50% !important; }
.h-screen { height: 100vh !important; }
.max-h-screen { max-height: 100vh !important; }

/* Position */
.static { position: static !important; }
.relative { position: relative !important; }
.absolute { position: absolute !important; }
.fixed { position: fixed !important; }
.sticky { position: sticky !important; }
.inset-0 { inset: 0 !important; }
.top-0 { top: 0 !important; }
.right-0 { right: 0 !important; }
.bottom-0 { bottom: 0 !important; }
.left-0 { left: 0 !important; }
.z-0 { z-index: 0 !important; }
.z-10 { z-index: 10 !important; }
.z-20 { z-index: 20 !important; }
.z-50 { z-index: 50 !important; }
.z-toast { z-index: 2147483000 !important; }

/* Overflow e visibilidade */
.overflow-hidden { overflow: hidden !important; }
.overflow-auto { overflow: auto !important; }
.overflow-visible { overflow: visible !important; }
.overflow-x-auto { overflow-x: auto !important; }
.overflow-y-auto { overflow-y: auto !important; }
.truncate { overflow: hidden !important; text-overflow: ellipsis !important; white-space: nowrap !important; }
.whitespace-nowrap { white-space: nowrap !important; }
.whitespace-normal { white-space: normal !important; }

/* Background e cores semânticas */
.bg-transparent { background: transparent !important; }
.bg-surface { background: var(--fi-surface, #fff) !important; }
.bg-muted { background: var(--fi-surface-muted, #f8fafc) !important; }
.bg-primary { background: var(--fi-primary, #0f5fd9) !important; color: #fff !important; }
.bg-success { background: var(--fi-success, #10b981) !important; color: #fff !important; }
.bg-warning { background: var(--fi-warning, #f59e0b) !important; color: #111827 !important; }
.bg-danger { background: var(--fi-danger, #ef4444) !important; color: #fff !important; }
.bg-info { background: var(--fi-info, #06b6d4) !important; color: #fff !important; }

/* Texto extra */
.text-2xl { font-size: 1.5rem !important; line-height: 2rem !important; }
.text-3xl { font-size: 1.875rem !important; line-height: 2.25rem !important; }
.leading-none { line-height: 1 !important; }
.leading-tight { line-height: 1.25 !important; }
.leading-normal { line-height: 1.5 !important; }
.tracking-wide { letter-spacing: .025em !important; }
.no-underline { text-decoration: none !important; }
.underline { text-decoration: underline !important; }

/* Border extra */
.rounded-sm { border-radius: .375rem !important; }
.rounded-md { border-radius: .625rem !important; }
.border-left { border-left: 1px solid var(--fi-border, rgba(148, 163, 184, .28)) !important; }
.border-right { border-right: 1px solid var(--fi-border, rgba(148, 163, 184, .28)) !important; }
.border-primary { border-color: var(--fi-primary, #0f5fd9) !important; }
.border-success { border-color: var(--fi-success, #10b981) !important; }
.border-warning { border-color: var(--fi-warning, #f59e0b) !important; }
.border-danger { border-color: var(--fi-danger, #ef4444) !important; }

/* Interação */
.pointer-events-none { pointer-events: none !important; }
.pointer-events-auto { pointer-events: auto !important; }
.select-none { user-select: none !important; }
.select-text { user-select: text !important; }
.transition { transition: all 180ms cubic-bezier(.4, 0, .2, 1) !important; }
.hover-lift:hover { transform: translateY(-1px) !important; }
.focus-ring:focus-visible { outline: 3px solid rgba(15, 95, 217, .32) !important; outline-offset: 2px !important; }

/* Component helpers */
.progress-compact { height: 18px !important; }
.progress-bar-dynamic { width: var(--fi-progress-value, 0%) !important; }

/* Objetos e mídia */
.object-cover { object-fit: cover !important; }
.object-contain { object-fit: contain !important; }
.aspect-square { aspect-ratio: 1 / 1 !important; }
.aspect-video { aspect-ratio: 16 / 9 !important; }

@media (max-width: 768px) {
  .mobile-flex-col { flex-direction: column !important; }
  .mobile-w-100 { width: 100% !important; }
  .mobile-hidden { display: none !important; }
  .mobile-text-center { text-align: center !important; }
}
