/* =========================================================
   COLOR PALETTE - NAVY BLUE THEME
========================================================= */
:root {
  --primary-color: #1e3a8a;
  --primary-dark: #1e40af;
  --primary-light: #3b82f6;
  --secondary-color: #0f172a;
  --secondary-dark: #0c0e1a;
  --accent-color: #60a5fa;
  --dark-bg: #0f172a;
  --light-bg: #f0f4f8;
  --text-dark: #1e293b;
  --text-light: #f1f5f9;
  --border-color: #cbd5e1;
}

/* =========================================================
   GLOBAL RESET & BODY
========================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
  min-height: 100vh;
  font-family: 'Segoe UI', Segoe, Tahoma, Arial, sans-serif;
  color: var(--text-dark);
  font-size: 13px;
}

/* =========================================================
   NAVBAR ENHANCEMENTS
========================================================= */
.navbar {
  background: linear-gradient(90deg, var(--dark-bg) 0%, #1e293b 100%) !important;
  border-bottom: 3px solid var(--primary-color);
  padding: 1rem 0;
}

.navbar-brand {
  font-size: 1.0rem;
  color: #fff !important;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.navbar-brand:hover {
  transform: scale(1.05);
  color: var(--accent-color) !important;
}

.navbar-brand i {
  margin-right: 0.5rem;
  color: var(--accent-color);
}

.nav-link {
  color: #cbd5e1 !important;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 1rem !important;
  font-size: 15px;
}

.nav-link:hover {
  color: var(--accent-color) !important;
  transform: translateY(-2px);
}

.nav-link.active {
  color: var(--accent-color) !important;
  border-bottom: 2px solid var(--accent-color);
}

.dropdown-menu {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 0.5rem 0;
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.15);
}

.dropdown-item {
  color: var(--text-dark);
  transition: background-color 0.2s ease, color 0.2s ease;
  font-weight: 500;
  padding: 0.75rem 1.25rem;
  border: none;
}

.dropdown-item:hover {
  background-color: var(--primary-color);
  color: white;
}

.dropdown-item.active {
  background-color: var(--primary-color);
  color: white;
}

.dropdown-divider {
  border-color: #e2e8f0;
  margin: 0.5rem 0;
}

.navbar-dark .navbar-nav .dropdown-menu {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.15);
  padding: 0.5rem 0;
}

.navbar-dark .navbar-nav .dropdown-menu .dropdown-item {
  color: var(--text-dark);
  padding: 0.75rem 1.25rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.navbar-dark .navbar-nav .dropdown-menu .dropdown-item:hover {
  background-color: var(--primary-color);
  color: white;
}

.navbar-dark .navbar-nav .dropdown-menu .dropdown-item.active {
  background-color: var(--primary-color);
  color: white;
}

.nav-item.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu.show {
  display: block;
}

.btn-group .btn-outline-light {
  border-color: var(--accent-color);
  color: #cbd5e1;
  transition: all 0.3s ease;
}

.btn-group .btn-outline-light:hover,
.btn-group .btn-outline-light.active {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: white;
  font-weight: 600;
}

/* =========================================================
   MAIN CONTENT AREA
========================================================= */
.list-details {
  padding: 2rem;
  background: white;
  /* margin: 2rem; */
  border-radius: 0.75rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.list-details h2 {
  color: var(--text-dark);
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 3px solid var(--primary-color);
  display: inline-block;
  font-size: 18px;
}

.list-details h3 {
  color: var(--text-dark);
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

/* =========================================================
   ALERTS & NOTICES
========================================================= */
.notice {
  color: #155724;
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  padding: 0.75rem 1.25rem;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
}

.alert {
  color: #721c24;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  padding: 0.75rem 1.25rem;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
}

/* =========================================================
   BUTTONS
========================================================= */
.btn {
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.875rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  border: none;
  box-shadow: 0 4px 10px rgba(30, 58, 138, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(30, 58, 138, 0.4);
}

.btn-danger {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  border: none;
  box-shadow: 0 4px 10px rgba(30, 58, 138, 0.3);
}

.btn-danger:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(30, 58, 138, 0.4);
}

.btn-success {
  background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
  border: none;
  color: white;
  box-shadow: 0 4px 10px rgba(8, 145, 178, 0.3);
}

.btn-success:hover {
  background: linear-gradient(135deg, #0e7490 0%, #0891b2 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(8, 145, 178, 0.4);
}

.btn-warning {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  border: none;
  color: white;
  box-shadow: 0 4px 10px rgba(124, 58, 237, 0.3);
}

.btn-warning:hover {
  background: linear-gradient(135deg, #6d28d9 0%, #7c3aed 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(124, 58, 237, 0.4);
}

.btn-info {
  background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
  border: none;
  color: white;
}

.btn-info:hover {
  background: linear-gradient(135deg, #0e7490 0%, #0891b2 100%);
  transform: translateY(-2px);
}

.btn-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.btn-search {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: #ffffff;
  border: none;
  border-radius: 0.4rem;
  padding: 0.5rem 1rem;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(30, 58, 138, 0.2);
}

.btn-search:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(30, 58, 138, 0.3);
}

.btn-search:active {
  transform: translateY(0);
}

.btn-clear {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  color: white;
  border: none;
  border-radius: 0.4rem;
  padding: 0.5rem 1rem;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(124, 58, 237, 0.2);
}

.btn-clear:hover {
  background: linear-gradient(135deg, #6d28d9 0%, #7c3aed 100%);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(124, 58, 237, 0.3);
}

.btn-clear:active {
  transform: translateY(0);
}

/* =========================================================
   SEARCH & FILTER SECTION
========================================================= */
.search-card {
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 4px rgba(30, 58, 138, 0.08);
  margin-bottom: 1.5rem;
  overflow: hidden;
  border-top: 3px solid var(--primary-color);
}

.search-card-header {
  background: linear-gradient(135deg, #f8fafc 0%, #f0f4f8 100%);
  padding: 0.6rem 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.search-card-header h5 {
  color: var(--text-dark);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.search-form {
  padding: 0.8rem 1rem;
}

.search-form-row {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
  align-items: flex-end;
}

.search-form-group {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 140px;
}

.search-label {
  font-weight: 600;
  margin-bottom: 0.2rem;
  color: var(--text-dark);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.search-label i {
  color: var(--primary-color);
  font-size: 12px;
}

.search-input {
  border: 1px solid #e2e8f0;
  border-radius: 0.25rem;
  padding: 0.7rem 0.5rem;
  font-size: 10px;
  transition: all 0.3s ease;
  background-color: white;
  width: 100%;
  height: 47px;
}

.search-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.1rem rgba(30, 58, 138, 0.1);
  outline: none;
}

.search-form-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-start;
  flex-wrap: wrap;
  align-items: center;
}

.search-form-actions-inline {
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
  flex-wrap: wrap;
}

.search-form-actions-inline .btn {
  padding: 0.4rem 0.8rem;
  font-size: 10px;
  white-space: nowrap;
}

.search-assets {
  margin: 1.5rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: flex-start;
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: 0.75rem;
  border-left: 4px solid var(--primary-color);
}

.search-assets .form-control,
.search-assets .form-select,
.search-assets .btn {
  flex: 1;
  min-width: 150px;
}

.form-control,
.form-select {
  border: 2px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.25);
  outline: none;
}

/* =========================================================
   FORM STYLES
========================================================= */
.form-container {
  max-width: 900px;
  margin: 2rem auto;
  background: linear-gradient(135deg, #f8fafc 0%, #f0f4f8 100%);
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-top: 4px solid var(--primary-color);
}

.form-row {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.form-column {
  flex: 1;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: block;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  border: 2px solid var(--border-color);
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  background-color: white;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.25);
}

.form-control.is-invalid {
  border-color: #dc3545;
}

.form-control.is-invalid:focus {
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.text-danger {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  font-weight: 500;
}

.text-center {
  text-align: center;
  margin: 0 auto;
}

.text-right {
  text-align: right;
}

/* =========================================================
   TABLES
========================================================= */
.table-responsive {
  border-radius: 0.75rem;
  overflow-x: auto;
  overflow-y: visible;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
  -webkit-overflow-scrolling: touch;
}

.table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 0;
  background-color: #fff;
  table-layout: auto;
}

.table th,
.table td {
  text-align: left;
  padding: 0.65rem 0.85rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--border-color);
  font-size: 13px;
}

.table thead th {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 11px;
  border: none;
}

.table tbody tr {
  transition: all 0.3s ease;
}

.table tbody tr:hover {
  background-color: #f8fafc;
  box-shadow: inset 0 0 10px rgba(30, 58, 138, 0.1);
}

.table tbody tr:nth-child(even) {
  background-color: #f9fafb;
}

.table-bordered {
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  overflow: hidden;
}

.table-bordered th,
.table-bordered td {
  border: 1px solid var(--border-color);
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: #f9fafb;
}

.table-hover tbody tr:hover {
  background-color: #f1f5f9;
}

.table td:last-child {
  /* text-align: center; */
  white-space: nowrap;
}

/* =========================================================
   ACTION ICONS
========================================================= */
.action-icons {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
}

.action-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 0.4rem;
  transition: all 0.3s ease;
  color: var(--primary-color);
  text-decoration: none;
  border: 1px solid transparent;
  padding: 0;
}

.action-icons a:hover {
  background-color: #f0f4f8;
  border-color: var(--primary-color);
  transform: scale(1.05);
}

.action-icons a.text-danger {
  color: #dc3545;
}

.action-icons a.text-danger:hover {
  background-color: #ffe5e5;
  border-color: #dc3545;
}

.action-icons a svg {
  width: 14px;
  height: 14px;
}

/* =========================================================
   HELPER CLASSES
========================================================= */
.ml-15 {
  margin-left: 15px;
}

.mt-10 {
  margin-top: 10px;
}

.mb-3 {
  margin-bottom: 1rem;
}

.pull-right {
  float: right;
  margin-left: 1rem;
}

.excel_btn,
.clear-btn {
  text-decoration: none !important;
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
  color: white;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(8, 145, 178, 0.3);
}

.excel_btn:hover,
.clear-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(8, 145, 178, 0.4);
}

li {
  text-decoration: none;
}

td a {
  text-decoration: none !important;
}

/* =========================================================
   RESPONSIVE DESIGN
========================================================= */
@media (max-width: 768px) {
  .list-details {
    padding: 1rem;
    margin: 1rem;
  }

  .search-assets {
    flex-direction: column;
    width: 100%;
  }

  .search-assets .form-control,
  .search-assets .form-select,
  .search-assets .btn {
    width: 100%;
  }

  .form-row {
    flex-direction: column;
    gap: 1rem;
  }

  .table th,
  .table td {
    padding: 0.75rem;
    font-size: 0.9rem;
  }

  .action-icons a {
    width: 28px;
    height: 28px;
  }

  .action-icons a svg {
    width: 14px;
    height: 14px;
  }

  .navbar-brand {
    font-size: 1.25rem;
  }

  .nav-link {
    padding: 0.5rem 0.75rem !important;
  }
}

@media (max-width: 480px) {
  .list-details {
    padding: 0.75rem;
    margin: 0.5rem;
  }

  .search-assets {
    gap: 0.5rem;
    padding: 1rem;
  }

  .search-assets .btn {
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
  }

  .table th,
  .table td {
    padding: 0.5rem;
    font-size: 0.8rem;
  }

  .form-container {
    padding: 1rem;
    margin: 1rem 0.5rem;
  }

  .form-row {
    gap: 0.5rem;
  }

  .btn {
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
  }

  .navbar-brand {
    font-size: 1rem;
  }

  .nav-link {
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem !important;
  }
}

/* =========================================================
   FIELD ERROR STYLING
========================================================= */
.field-error {
  color: #dc3545;
  font-weight: 500;
  margin-top: 0.25rem;
  font-size: 0.875rem;
}

/* =========================================================
   CUSTOM SCROLLBAR
========================================================= */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* =========================================================
   ANIMATIONS
========================================================= */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.list-details,
.form-container,
.table-responsive {
  animation: fadeIn 0.3s ease-in-out;
}
/* Base table styling */
table.table-bordered {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    /* equal column width */
}

/* Header cells */
table.table-bordered th {
    padding: 8px;
    text-align: left;
    border: 1px solid #ccc;
    background-color: #f8f9fa;
    white-space: normal !important;
    overflow: visible !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Body cells */
table.table-bordered td {
    padding: 6px;
    border: 1px solid #ccc;
    white-space: nowrap;
    /* show ellipsis normally */
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: top;
    position: relative;

    /* 💡 Enable breaking extremely long words */
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Expand on hover */
table.table-bordered td:hover {
    white-space: normal;
    /* allow wrapping */
    overflow: auto;
    /* show full text */
    background: #ffffe0;
    z-index: 1;
    max-height: 200px;
}

/* Responsive wrapper */
.table-responsive {
    overflow-x: auto;
}

table.table-bordered tr:hover {
    background-color: #fff8d6 !important;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *



 */
