/* Admin Layout Base Styles */
body.layout-body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f4f6f9;
  display: flex;
  height: 100vh;
  overflow: hidden;
}

body.iframe-body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: transparent;
  padding: 20px;
}

h1.page-title {
  margin-top: 0;
  font-size: 24px;
  color: #333;
  margin-bottom: 20px;
}

/* Sidebar Styles */
.sidebar {
  width: 250px;
  background-color: #343a40;
  color: #fff;
  display: flex;
  flex-direction: column;
  transition: all 0.3s;
}
.sidebar-header {
  padding: 20px;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  background-color: #212529;
  border-bottom: 1px solid #4b545c;
}
.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
  overflow-y: auto;
}
.sidebar-menu li {
  border-bottom: 1px solid #4b545c;
}
.sidebar-menu a {
  display: block;
  padding: 15px 20px;
  color: #c2c7d0;
  text-decoration: none;
  transition:
    background-color 0.2s,
    color 0.2s;
}
.sidebar-menu a:hover,
.sidebar-menu a.active {
  background-color: #495057;
  color: #fff;
  border-left: 4px solid #007bff;
  padding-left: 16px;
}

/* Topbar and Content Styles */
.main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.topbar {
  height: 60px;
  background-color: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 10;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 15px;
}
.logout-btn {
  background-color: transparent;
  border: 1px solid #dc3545;
  color: #dc3545;
  padding: 6px 15px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}
.logout-btn:hover {
  background-color: #dc3545;
  color: #fff;
}

/* IFrame Content Area */
.content-area {
  flex: 1;
  padding: 0;
  overflow: hidden;
  background-color: #f4f6f9;
}
#contentFrame {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Dashboard Card Styles */
.card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  padding: 20px;
  margin-bottom: 20px;
}
.card-header {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #333;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

/* Consumers / Tables Styles */
.data-table {
  border-collapse: collapse;
  width: 100%;
  margin-top: 20px;
  background-color: #fff;
}
.data-table th,
.data-table td {
  border: 1px solid #ddd;
  padding: 12px 8px;
  text-align: left;
}
.data-table th {
  background-color: #f2f2f2;
  font-weight: 600;
}
.consumer-row {
  cursor: pointer;
  transition: background-color 0.2s;
}
.consumer-row:hover {
  background-color: #f9f9f9;
}

.vendors-row {
  cursor: pointer;
  transition: background-color 0.2s;
  background-color: #333333;
  color: #fefefe;
}
.vendors-row:hover {
  background-color: #777777;
}

.orders-row {
  display: none;
  background-color: #fdfdfd;
}
.orders-table {
  width: 100%;
  font-size: 0.9em;
  margin: 10px 0;
  border: 1px solid #aaa;
  border-collapse: collapse;
  background-color: #fff;
}
.orders-table th,
.orders-table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}
.orders-table th {
  background-color: #e0e0e0;
}

.badges {
  font-size: 0.8em;
  background-color: #007bff;
  color: white;
  padding: 2px 6px;
  border-radius: 10px;
  margin-left: 5px;
}

.badge-ok {
  background-color: #28a745 !important;
}
.badge-awaiting {
  background-color: #ffc107 !important;
  color: #212529 !important;
}
.badge-disabled {
  background-color: #6c757d !important;
}
.badge-deprecated {
  background-color: #dc3545 !important;
}
