/* ==========================================================================
   SINFONIA EVALUATE - CLASSIC MODERN THEME (INTERNAL PAGES)
   ========================================================================== */

* {
  font-family: 'Prompt', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  box-sizing: border-box;
}

body {
  background: #f1f3f9 !important;
  color: #1e293b !important;
}

/* ==========================================================================
   1. HIERARCHICAL SUB-MENU STYLING (CLEAN & INDENTED)
   ========================================================================== */
#sidebar {
  padding: 16px 10px !important;
  background: #ffffff !important;
  width: 230px !important;
  border-right: 1.5px solid #e2e8f0 !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03) !important;
  overflow-y: auto !important;
}

/* User Profile Badge */
#companytitle {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  padding: 8px 10px !important;
  margin: 6px 0 12px 0 !important;
  text-align: center !important;
  line-height: 1.3 !important;
}

#companytitle font[color="red"] {
  display: none !important;
}

#companytitle b:first-of-type,
#companytitle div:first-of-type {
  font-size: 13px !important;
  color: #0f172a !important;
  font-weight: 700 !important;
}

#companytitle span {
  display: inline-block !important;
  font-size: 11px !important;
  color: #475569 !important;
  background: #e2e8f0 !important;
  border: 1px solid #cbd5e1 !important;
  padding: 1px 8px !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
}

/* Category Group Header (Collapsible Parent) */
.sidebar-group-header,
#pluDis {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #64748b !important;
  text-transform: uppercase !important;
  letter-spacing: 0.6px !important;
  padding: 6px 6px !important;
  cursor: pointer !important;
  border-radius: 6px !important;
  margin-top: 6px !important;
  margin-bottom: 2px !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  user-select: none !important;
  transition: all 0.15s ease !important;
}

.sidebar-group-header:hover,
#pluDis:hover {
  color: #0f172a !important;
  background-color: #f8fafc !important;
}

.sidebar-group-arrow {
  width: 15px !important;
  height: 15px !important;
  fill: #94a3b8 !important;
  transition: transform 0.2s ease !important;
  flex-shrink: 0 !important;
}

.sidebar-group-header.collapsed .sidebar-group-arrow {
  transform: rotate(-90deg) !important;
}

/* Sub-Menu List Container with Tree-line */
.sidebar-submenu-list,
#TransactionDiv,
#ReportDiv {
  border-left: 2px solid #e2e8f0 !important;
  margin-left: 12px !important;
  padding-left: 6px !important;
  margin-top: 2px !important;
  margin-bottom: 6px !important;
}

/* Sub-Menu Item (Indented with bullet) */
.sidebar-sub-item,
.sidebar-nav-item,
#plu {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #475569 !important;
  padding: 6px 8px !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  margin: 2px 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  text-decoration: none !important;
  line-height: 1.4 !important;
}

.sub-bullet {
  font-size: 14px !important;
  color: #cbd5e1 !important;
  line-height: 1 !important;
  transition: color 0.15s !important;
}

.sidebar-sub-item:hover,
.sidebar-nav-item:hover,
#plu:hover {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
}

.sidebar-sub-item:hover .sub-bullet,
.sidebar-nav-item:hover .sub-bullet {
  color: #6366f1 !important;
}

/* Active Sub-Menu Item */
.sidebar-sub-item.active,
.sidebar-nav-item.active {
  background-color: #ede9fe !important;
  color: #4f46e5 !important;
  font-weight: 600 !important;
}

.sidebar-sub-item.active .sub-bullet,
.sidebar-nav-item.active .sub-bullet {
  color: #4f46e5 !important;
}

/* Logout Button */
.sidebar-logout-btn {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #dc2626 !important;
  padding: 7px 10px !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  transition: all 0.15s ease !important;
}

.sidebar-logout-btn:hover {
  background-color: #fef2f2 !important;
  color: #b91c1c !important;
}

/* ==========================================================================
   2. TOP BAR & NAVIGATION
   ========================================================================== */
#showmenu {
  background: #ffffff !important;
  padding: 10px 18px !important;
  border-radius: 10px !important;
  margin: 10px auto 14px auto !important;
  border: 1.5px solid #e2e8f0 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02) !important;
}

#showmenu a {
  color: #64748b !important;
  text-decoration: none !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}

#showmenu a:hover {
  color: #4f46e5 !important;
}

#showmenu img {
  cursor: pointer !important;
}

/* ==========================================================================
   3. MAIN CONTENT CARDS & PANELS
   ========================================================================== */
.TK-Block {
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.03) !important;
  background-color: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 22px 26px !important;
  margin-bottom: 20px !important;
}

/* Title separator */
.TK-Block font[style*="font-size:25px"],
.TK-Block font[style*="font-size: 25px"] {
  color: #0f172a !important;
  font-weight: 700 !important;
  font-size: 20px !important;
  display: inline-block !important;
  border-left: 4px solid #6366f1 !important;
  padding-left: 10px !important;
  margin-bottom: 4px !important;
}

/* Separator Line */
tr[style*="border-top:2px solid #AAA"],
tr[style*="border-top: 2px solid #AAA"],
hr {
  border-top: 1.5px solid #f1f5f9 !important;
  border-bottom: none !important;
}

/* ==========================================================================
   4. FORM CONTROLS & BUTTONS
   ========================================================================== */
input[type="text"],
input[type="password"],
input[type="search"],
select,
.bootstrap-select > .btn {
  height: 36px !important;
  border-radius: 6px !important;
  border: 1.5px solid #cbd5e1 !important;
  padding: 5px 10px !important;
  color: #0f172a !important;
  background: #ffffff !important;
  font-size: 13px !important;
  outline: none !important;
  transition: all 0.15s ease !important;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
select:focus,
.bootstrap-select > .btn:focus {
  border-color: #6366f1 !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15) !important;
}

/* General Button Styles */
input[type="button"],
button.btn {
  height: 36px !important;
  border-radius: 6px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid transparent !important;
}

/* Primary Action Buttons (Modern Indigo-Purple Gradient) */
#search,
#curve,
#submit {
  background: #6366f1 !important;
  border: 1px solid #4f46e5 !important;
  color: #ffffff !important;
  box-shadow: 0 1px 3px rgba(99, 102, 241, 0.25) !important;
}

#search:hover,
#curve:hover,
#submit:hover {
  background: #4f46e5 !important;
  box-shadow: 0 3px 8px rgba(99, 102, 241, 0.35) !important;
}

/* Clear Button (Clean Neutral Solid) */
#clear {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #334155 !important;
}

#clear:hover {
  background: #f1f5f9 !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
}

/* Excel Export Buttons (Fresh Emerald Green) */
#exportexcel,
#exportexcelall,
#exportexcelallmax,
input[id*="exportexcel"] {
  background: #10b981 !important;
  border: 1px solid #059669 !important;
  color: #ffffff !important;
  box-shadow: 0 1px 3px rgba(16, 185, 129, 0.2) !important;
}

#exportexcel:hover,
#exportexcelall:hover,
#exportexcelallmax:hover,
input[id*="exportexcel"]:hover {
  background: #059669 !important;
  box-shadow: 0 3px 8px rgba(16, 185, 129, 0.3) !important;
}

/* ==========================================================================
   5. TABLE STYLING
   ========================================================================== */
#TableList,
#TableList2,
table.display,
table.dataTable {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border-radius: 8px !important;
  overflow: visible !important;
  border: 1.5px solid #e2e8f0 !important;
  width: 100% !important;
  margin-top: 12px !important;
}

#TableList thead th:first-child,
#TableListHead th:first-child,
table.display thead th:first-child {
  border-top-left-radius: 7px !important;
}

#TableList thead th:last-child,
#TableListHead th:last-child,
table.display thead th:last-child {
  border-top-right-radius: 7px !important;
}

/* Table Header (Crisp Indigo-Purple with Bold White Text) */
#TableList thead tr,
#TableListHead tr,
#TableList2 thead tr,
table.display thead tr,
tr[style*="background-color:lightgreen"],
tr[style*="background-color: lightgreen"] {
  background: #5b21b6 !important;
  color: #ffffff !important;
}

#TableList thead th,
#TableListHead th,
#TableList2 thead th,
table.display thead th,
tr[style*="background-color:lightgreen"] th,
tr[style*="background-color: lightgreen"] th {
  background: #5b21b6 !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  padding: 8px 10px !important;
  border: none !important;
  letter-spacing: 0.2px !important;
  white-space: nowrap !important;
  vertical-align: middle !important;
  line-height: 1.3 !important;
}

/* Table Rows */
#TableList tbody tr,
#TableListDetail tr,
#TableList2 tbody tr {
  transition: background-color 0.15s ease !important;
  border-bottom: 1px solid #f1f5f9 !important;
}

#TableList tbody td,
#TableListDetail td,
#TableList2 tbody td {
  padding: 9px 8px !important;
  font-size: 13px !important;
  color: #1e293b !important;
  border-top: 1px solid #f1f5f9 !important;
}

/* Row Hover */
#TableList tbody tr:hover,
#TableListDetail tr:hover,
#TableList2 tbody tr:hover {
  background-color: #f8fafc !important;
}

/* Accepted Row */
tr[style*="background-color:#c3fad2"],
tr[style*="background-color: #c3fad2"] {
  background-color: #f0fdf4 !important;
}

tr[style*="background-color:#c3fad2"]:hover {
  background-color: #dcfce7 !important;
}

/* No duties assigned Badge */
font[style*="background-color:#ffe6fa"],
font[style*="background-color: #ffe6fa"] {
  background-color: #fff1f2 !important;
  color: #e11d48 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  padding: 3px 10px !important;
  border-radius: 16px !important;
  border: 1px solid #fecdd3 !important;
  display: inline-block !important;
}

tr[style*="background-color:#ffe6fa"],
tr[style*="background-color: #ffe6fa"] {
  background-color: #fff1f2 !important;
}

/* Action Dropdown Button (...) */
.dropdown-container {
  position: relative !important;
  display: inline-block !important;
}

.dropdown-toggle.click-dropdown {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 30px !important;
  height: 26px !important;
  background: #f1f5f9 !important;
  color: #475569 !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 5px !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.dropdown-toggle.click-dropdown:hover {
  background: #6366f1 !important;
  color: #ffffff !important;
  border-color: #4f46e5 !important;
}

/* Dropdown Menu Popup */
.dropdown-container .dropdown-menu,
.dropdown-menu {
  position: absolute !important;
  right: 0 !important;
  left: auto !important;
  top: 100% !important;
  min-width: 120px !important;
  z-index: 99999 !important;
  border-radius: 8px !important;
  border: 1.5px solid #e2e8f0 !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
  padding: 4px 0 !important;
  background: #ffffff !important;
  margin-top: 4px !important;
}

.dropdown-container .dropdown-menu.dropup-menu,
.dropdown-menu.dropup-menu {
  top: auto !important;
  bottom: 100% !important;
  margin-top: 0 !important;
  margin-bottom: 4px !important;
}

.dropdown-menu div {
  padding: 8px 14px !important;
  font-size: 13px !important;
  color: #1e293b !important;
  cursor: pointer !important;
  text-align: left !important;
  white-space: nowrap !important;
  transition: background 0.15s !important;
}

.dropdown-menu div:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

/* ==========================================================================
   6. MODALS
   ========================================================================== */
.modal-content {
  border-radius: 12px !important;
  border: 1.5px solid #e2e8f0 !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15) !important;
  background: #ffffff !important;
  overflow: hidden !important;
  text-align: left !important;
}

.modal-header {
  text-align: left !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

.modal-header .modal-title {
  text-align: left !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  color: #0f172a !important;
  margin: 0 !important;
}

.modal-body {
  text-align: left !important;
  padding: 20px 24px !important;
}

.modal-body label,
.modal label {
  text-align: left !important;
  display: block !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  color: #475569 !important;
  margin-bottom: 4px !important;
}

.modal-body input,
.modal-body select,
.modal-body textarea {
  text-align: left !important;
}

.modal-header {
  background: #f8fafc !important;
  border-bottom: 1.5px solid #f1f5f9 !important;
  padding: 14px 18px !important;
}
