/**
 * App Name        : Assetrack - Where assets meet accountability
 * App Version     : 1.0 Initial Release
 * Author          : Tejas Dongre
 * Purpose         : Responsive layout and RTL support
 * Copyright Year  : 2025
 * Email           : hello@assetrack.cloud
 * Made in         : Bharat 🇮🇳
 */

/* Responsive Layout */
.container-fluid,
.container-lg,
.container-md,
.container-sm,
.container-xl,
.container-xxl {
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 768px) {
  .container-sm {
    max-width: 540px;
  }
}

@media (min-width: 992px) {
  .container-md {
    max-width: 720px;
  }
}

@media (min-width: 1200px) {
  .container-lg {
    max-width: 960px;
  }
}

@media (min-width: 1400px) {
  .container-xl {
    max-width: 1140px;
  }
}

/* RTL Support */
[dir="rtl"] body {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .text-start {
  text-align: right !important;
}

[dir="rtl"] .text-end {
  text-align: left !important;
}

[dir="rtl"] .float-start {
  float: right !important;
}

[dir="rtl"] .float-end {
  float: left !important;
}

[dir="rtl"] .me-1,
[dir="rtl"] .me-2,
[dir="rtl"] .me-3,
[dir="rtl"] .me-4,
[dir="rtl"] .me-5 {
  margin-left: 0.25rem !important;
  margin-right: auto !important;
}

[dir="rtl"] .ms-1,
[dir="rtl"] .ms-2,
[dir="rtl"] .ms-3,
[dir="rtl"] .ms-4,
[dir="rtl"] .ms-5 {
  margin-right: 0.25rem !important;
}

[dir="rtl"] .pe-2,
[dir="rtl"] .pe-3 {
  padding-left: 1rem !important;
  padding-right: 0 !important;
}

[dir="rtl"] .ps-2,
[dir="rtl"] .ps-3 {
  padding-right: 1rem !important;
  padding-left: 0 !important;
}

[dir="rtl"] .dropdown-menu {
  left: auto;
  right: 0;
}

[dir="rtl"] .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Print Styles */
@media print {
  body * {
    visibility: hidden;
  }

  .printable, .printable * {
    visibility: visible;
  }

  .printable {
    position: absolute;
    left: 0;
    top: 0;
  }

  .no-print {
    display: none !important;
  }

  .table thead {
    background-color: #e9ecef !important;
  }

  a::after {
    content: " (" attr(href) ")";
  }
}