@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@400;700&family=Lexend:wght@400;700&family=Roboto:wght@400;500&display=swap');

body {
    font-family: 'Heebo', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Lexend', sans-serif;
}

.gsi-material-button {
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -webkit-appearance: none;
  background-color: WHITE;
  background-image: none;
  border: 1px solid #747775;
  -webkit-border-radius: 20px;
  border-radius: 20px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  color: #1f1f1f;
  cursor: pointer;
  font-family: 'Roboto', arial, sans-serif;
  font-size: 14px;
  height: 40px;
  letter-spacing: 0.25px;
  outline: none;
  overflow: hidden;
  padding: 0 12px;
  position: relative;
  text-align: center;
  -webkit-transition: background-color .218s, border-color .218s, box-shadow .218s;
  transition: background-color .218s, border-color .218s, box-shadow .218s;
  vertical-align: middle;
  white-space: nowrap;
  width: auto;
  max-width: 400px;
  min-width: min-content;
}

.gsi-material-button .gsi-material-button-icon {
  height: 20px;
  margin-right: 12px;
  min-width: 20px;
  width: 20px;
}

.gsi-material-button .gsi-material-button-content-wrapper {
  -webkit-align-items: center;
  align-items: center;
  display: flex;
  -webkit-flex-direction: row;
  flex-direction: row;
  -webkit-flex-wrap: nowrap;
  flex-wrap: nowrap;
  height: 100%;
  justify-content: space-between;
  position: relative;
  width: 100%;
}

.gsi-material-button .gsi-material-button-contents {
  -webkit-flex-grow: 1;
  flex-grow: 1;
  font-family: 'Roboto', arial, sans-serif;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: top;
}

.gsi-material-button .gsi-material-button-state {
  -webkit-transition: opacity .218s;
  transition: opacity .218s;
  bottom: 0;
  left: 0;
  opacity: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.gsi-material-button:disabled {
  cursor: default;
  background-color: #ffffff61;
  border-color: #1f1f1f1f;
}

.gsi-material-button:disabled .gsi-material-button-contents {
  opacity: 38%;
}

.gsi-material-button:disabled .gsi-material-button-icon {
  opacity: 38%;
}

.gsi-material-button:not(:disabled):active .gsi-material-button-state, 
.gsi-material-button:not(:disabled):focus .gsi-material-button-state {
  background-color: #303030;
  opacity: 12%;
}

.gsi-material-button:not(:disabled):hover {
  -webkit-box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
}

.gsi-material-button:not(:disabled):hover .gsi-material-button-state {
  background-color: #303030;
  opacity: 8%;
}

#menu-toggle {
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1001; /* Ensures it's above the sidebar */
    background-color: #333;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 20px;
}

/* Sidebar container */
#sidebar {
    position: fixed;
    top: 0;
    left: -250px; /* Initially hidden off-screen */
    width: 250px;
    height: 100%;
    background-color: #2c3e50;
    color: white;
    transition: left 0.3s ease-in-out;
    z-index: 1000;
}

/* The class that will be toggled by JavaScript to show the menu */
#sidebar.open {
    left: 0;
}

#sidebar .sidebar-header {
    padding: 20px;
    background-color: #1a242f;
    text-align: center;
}

#sidebar .sidebar-header h3 {
    margin: 0;
    color: #ecf0f1;
}

/* Styling for the menu items */
#sidebar ul {
    list-style-type: none;
    padding: 20px 0;
}

#sidebar ul li a {
    padding: 10px 20px;
    display: block;
    color: #ecf0f1;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: background-color 0.2s, border-left 0.2s;
}

#sidebar ul li a:hover {
    background-color: #34495e;
    border-left: 3px solid #3498db;
}

/* ========================================
   MATERIAL 3 DESIGN SYSTEM - GLOBAL STYLES
   ======================================== */

/* Report Tabs */
#report-tabs li {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0px;
    gap: 4px;
    width: 271px;
    height: 64px;
    flex: none;
    align-self: stretch;
    flex-grow: 1;
}

.tab-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 8px 16px;
    gap: 4px;
    height: 40px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    background-color: transparent;
    border: none;
}

.tab-link span {
    font-family: 'Heebo';
    font-style: normal;
    font-weight: 500;
    font-size: 12px;
    line-height: 16px;
    text-align: center;
    letter-spacing: 0.5px;
    color: #424940;
    white-space: nowrap;
}

.tab-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.tab-link.active-tab {
    background-color: #D5E8CF;
}

.tab-link.active-tab span {
    color: #3B4B38;
}

.tab-pane.hidden {
    display: none;
}

/* Page Headlines */
.page-headline {
    font-family: 'Lexend';
    font-style: normal;
    font-weight: 400;
    font-size: 57px;
    line-height: 64px;
    letter-spacing: -0.25px;
    color: #191D17;
}

/* M3 Category Score Cards */
.category-score-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px;
    gap: 0px;
    width: 187px;
    min-width: 180px;
    max-width: 330px;
    height: 240px;
    flex: none;
    flex-grow: 0;
}

.category-score-image {
    width: 187px;
    height: 180px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    align-self: stretch;
    flex-grow: 0;
}

.category-score-green {
    background: #C6F4C5;
}

.category-score-yellow {
    background: #FFF4C4;
}

.category-score-red {
    background: #FFCDD2;
}

.category-score-percentage {
    font-family: 'Heebo';
    font-style: normal;
    font-weight: 700;
    font-size: 32px;
    line-height: 40px;
}

.category-score-green-text {
    color: #1B5E20;
}

.category-score-yellow-text {
    color: #F57F17;
}

.category-score-red-text {
    color: #C62828;
}

.category-score-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px;
    width: 187px;
    height: 36px;
    flex: none;
    align-self: stretch;
    flex-grow: 0;
}

.category-score-title {
    width: 187px;
    height: 20px;
    font-family: 'Heebo';
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0.1px;
    color: #191D17;
    flex: none;
    align-self: stretch;
    flex-grow: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-score-subtitle {
    width: 187px;
    height: 16px;
    font-family: 'Heebo';
    font-style: normal;
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0.4px;
    color: #424940;
    flex: none;
    align-self: stretch;
    flex-grow: 0;
}

/* M3 AI Summary Container */
.ai-summary-container {
    position: relative;
    box-sizing: border-box;
    background: #F7FBF1;
    border: 1px solid #C2C9BD;
    border-radius: 12px;
}

.ai-summary-state-layer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 10px;
    gap: 10px;
}

/* M3 Policy Details Tables */
#policy-details-tab table {
    font-family: 'Roboto', sans-serif !important;
}

#policy-details-tab table thead th {
    font-family: 'Roboto' !important;
    font-style: normal;
    font-weight: 500 !important;
    font-size: 12px !important;
    line-height: 16px !important;
    letter-spacing: 0.5px !important;
    color: #49454F !important;
    padding: 30px 16px;
}

#policy-details-tab table tbody tr {
    min-height: 88px;
    height: 105px;
}

#policy-details-tab table tbody td {
    padding: 30px 16px;
    font-family: 'Roboto' !important;
    font-style: normal;
    font-weight: 400 !important;
    font-size: 16px !important;
    line-height: 24px !important;
    letter-spacing: 0.5px !important;
    color: #1D1B20 !important;
}

#policy-details-tab table tbody td:first-child {
    font-weight: 400 !important;
}

#policy-details-tab table tbody tr {
    border-bottom: 1px solid #CAC4D0;
}

#policy-details-tab table thead {
    background: none;
}

/* Supporting text in tables */
#policy-details-tab .text-gray-500,
#policy-details-tab .text-gray-600 {
    font-family: 'Roboto' !important;
    font-style: normal;
    font-weight: 400 !important;
    font-size: 14px !important;
    line-height: 20px !important;
    letter-spacing: 0.25px !important;
    color: #49454F !important;
}

/* Small label text (scores, counts) */
#policy-details-tab .text-xs,
#policy-details-tab table .text-right {
    font-family: 'Roboto' !important;
    font-style: normal;
    font-weight: 500 !important;
    font-size: 11px !important;
    line-height: 16px !important;
    letter-spacing: 0.5px !important;
    color: #49454F !important;
}

/* M3 Rules & Alerts Tables */
#rules-alerts-section table {
    font-family: 'Roboto', sans-serif !important;
}

#rules-alerts-section table thead th {
    font-family: 'Roboto' !important;
    font-style: normal;
    font-weight: 500 !important;
    font-size: 12px !important;
    line-height: 16px !important;
    letter-spacing: 0.5px !important;
    color: #49454F !important;
    padding: 30px 16px;
}

#rules-alerts-section table tbody tr {
    min-height: 88px;
    height: 105px;
}

#rules-alerts-section table tbody td {
    padding: 30px 16px;
    font-family: 'Roboto' !important;
    font-style: normal;
    font-weight: 400 !important;
    font-size: 16px !important;
    line-height: 24px !important;
    letter-spacing: 0.5px !important;
    color: #1D1B20 !important;
}

#rules-alerts-section table tbody tr {
    border-bottom: 1px solid #CAC4D0;
}

#rules-alerts-section table thead {
    background: none;
}

/* M3 Missing Settings Section */
#missing-settings-section {
    font-family: 'Roboto', sans-serif !important;
}

#missing-settings-section h3 {
    font-family: 'Roboto' !important;
    font-weight: 500 !important;
}

#missing-settings-section p {
    font-family: 'Roboto' !important;
}

#missing-settings-section .text-sm {
    font-family: 'Roboto' !important;
    font-size: 14px !important;
    line-height: 20px !important;
    letter-spacing: 0.25px !important;
}

/* Report Status & Utilities */
.regenerate-status.success {
    background-color: #dcfce7; /* green-100 */
    color: #166534; /* green-800 */
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    text-align: center;
    font-weight: 500;
}

.sortable {
    cursor: pointer;
    position: relative;
}

.sortable::after {
    content: ' \2195'; /* Up-down arrow */
    font-size: 1.25em;
    font-weight: 600;
    opacity: 0.4;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
}

.sortable.asc::after {
    content: ' \2191';
    opacity: 1;
}

.sortable.desc::after {
    content: ' \2193';
    opacity: 1;
}

/* Pre-Generation Survey Form */
.pre-gen-form-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .pre-gen-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.pre-gen-form-grid .pre-gen-col-span-2 {
    grid-column: span 2 / span 2;
}

.pre-gen-form-grid label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.25rem;
}

.pre-gen-form-grid input[type="text"],
.pre-gen-form-grid input[type="email"],
.pre-gen-form-grid input[type="tel"],
.pre-gen-form-grid select {
    display: block;
    width: 100%;
    border-radius: 0.375rem;
    border: 1px solid #d1d5db;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

.pre-gen-form-grid input:focus,
.pre-gen-form-grid select:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 1px #4f46e5;
}

.pre-gen-form-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: flex-end;
}

.pre-gen-submit-button {
    background-color: #39C349;
    color: white;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100%;
    font-size: 1.125rem;
}

.pre-gen-submit-button:hover {
    background-color: #2A8C34;
}

/* Status Badges */
.status-varies {
    color: #d97706;
    background-color: #fef3c7;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 500;
}

/* Summary Grid Fix */
@media (min-width: 768px) {
    .summary-grid-fix {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* M3 Changelog Sections - Following Same Design as Policy Details & Rules */
#changelog-tab .changelog-list-item {
    font-family: 'Roboto', sans-serif !important;
}

#changelog-tab .changelog-list-item:hover {
    background-color: #F5F5F5;
}

/* Changelog list item structure - matching table row height */
#changelog-tab .changelog-content-section > div > div {
    min-height: 88px;
}

/* Changelog headlines - matching table body text */
#changelog-tab .changelog-list-item div[style*="font-size: 16px"] {
    font-family: 'Roboto' !important;
    font-style: normal;
    font-weight: 400 !important;
    font-size: 16px !important;
    line-height: 24px !important;
    letter-spacing: 0.5px !important;
    color: #1D1B20 !important;
}

/* Changelog supporting text - matching table supporting text */
#changelog-tab .changelog-list-item div[style*="font-size: 14px"] {
    font-family: 'Roboto' !important;
    font-style: normal;
    font-weight: 400 !important;
    font-size: 14px !important;
    line-height: 20px !important;
    letter-spacing: 0.25px !important;
    color: #49454F !important;
}

/* Changelog small labels - matching table labels */
#changelog-tab .changelog-list-item span[style*="font-size: 11px"] {
    font-family: 'Roboto' !important;
    font-style: normal;
    font-weight: 500 !important;
    font-size: 11px !important;
    line-height: 16px !important;
    letter-spacing: 0.5px !important;
    color: #49454F !important;
}

/* Changelog dividers - matching table borders */
#changelog-tab div[style*="border: 1px solid #CAC4D0"] {
    border-bottom: 1px solid #CAC4D0;
}

/* Changelog section headers */
#changelog-tab h3 {
    font-family: 'Roboto' !important;
    font-weight: 500 !important;
    color: #1D1B20 !important;
}

/* Changelog section descriptions */
#changelog-tab p[style*="font-size: 12px"] {
    font-family: 'Roboto' !important;
    font-style: normal;
    font-weight: 400 !important;
    font-size: 12px !important;
    line-height: 16px !important;
    letter-spacing: 0.4px !important;
    color: #1D1B20 !important;
}

/* Changelog expandable details */
#changelog-tab .details-content {
    background: #F7F2FA !important;
    padding: 16px 24px !important;
}

#changelog-tab .details-content h4 {
    font-family: 'Roboto' !important;
    font-style: normal;
    font-weight: 500 !important;
    font-size: 12px !important;
    line-height: 16px !important;
    letter-spacing: 0.5px !important;
    color: #49454F !important;
    text-transform: uppercase;
}

#changelog-tab .details-content p,
#changelog-tab .details-content pre {
    font-family: 'Roboto' !important;
    font-style: normal;
    font-weight: 400 !important;
    font-size: 14px !important;
    line-height: 20px !important;
    letter-spacing: 0.25px !important;
    color: #1D1B20 !important;
}

/* ========================================
   M3 SEARCH BAR STYLING - M3/label/large
   ======================================== */

/* All search input fields across the application */
input[type="text"][id*="search"],
input[type="text"][placeholder*="Search"],
input[type="text"][placeholder*="search"] {
    font-family: 'Roboto' !important;
    font-style: normal;
    font-weight: 500 !important;
    font-size: 14px !important;
    line-height: 20px !important;
    letter-spacing: 0.1px !important;
    color: #4A4459 !important;
    border: 1px solid #CAC4D0 !important;
    border-radius: 6px !important;
    padding: 8px 12px 8px 40px !important;
}

/* Search input focus state */
input[type="text"][id*="search"]:focus,
input[type="text"][placeholder*="Search"]:focus,
input[type="text"][placeholder*="search"]:focus {
    outline: none !important;
    border-color: #3B6939 !important;
    box-shadow: 0 0 0 2px rgba(59, 105, 57, 0.1) !important;
}

/* Search input placeholder */
input[type="text"][id*="search"]::placeholder,
input[type="text"][placeholder*="Search"]::placeholder,
input[type="text"][placeholder*="search"]::placeholder {
    color: #4A4459 !important;
    opacity: 0.6;
}

/* ========================================
   M3 POLICY CATEGORY DETAILS - LIGHT GREY ROUNDED BOXES
   Only outer category cards styled - inner tables unchanged
   ======================================== */

/* Main policy details list container */
#policy-details-tab #policy-details-list {
    background: transparent;
    border: none;
    box-shadow: none;
}

/* Category cards - light grey rounded boxes with gap */
#policy-details-tab .category-card {
    background: #F5F5F5;
    border-radius: 12px;
    margin-bottom: 8px;
    border: none;
    overflow: hidden;
}

/* Category header styling */
#policy-details-tab .category-header {
    background: #F5F5F5;
    border-radius: 12px 12px 0 0;
    margin: 0;
    padding: 20px 20px;
    transition: background-color 0.2s ease;
}

#policy-details-tab .category-header:hover {
    background: #EBEBEB;
}

/* Category section container (expanded content area) */
#policy-details-tab .category-section {
    background: #FFFFFF;
    border-radius: 0 0 12px 12px;
    margin: 0;
    padding: 0;
    border: none;
}

/* Ensure table elements within category section are transparent */
#policy-details-tab .category-section table {
    background: transparent;
}

#policy-details-tab .category-section table tbody {
    background: transparent;
}

#policy-details-tab .category-section table tbody tr {
    background: transparent;
}

#policy-details-tab .category-section table tbody td {
    background: transparent;
}

/* Priority badges - M3 style */
.priority-badge-high {
    background: #FFCDD2 !important;
    color: #C62828 !important;
    border-radius: 16px !important;
    padding: 4px 12px !important;
    opacity: 1 !important;
}

.priority-badge-medium {
    background: #FFF4C4 !important;
    color: #F57F17 !important;
    border-radius: 16px !important;
    padding: 4px 12px !important;
    opacity: 1 !important;
}

.priority-badge-low {
    background: #C8E6C9 !important;
    color: #1B5E20 !important;
    border-radius: 16px !important;
    padding: 4px 12px !important;
    opacity: 1 !important;
}

/* Compliance badges - M3 style */
.compliance-badge-yes {
    background: #C8E6C9 !important;
    color: #2E7D32 !important;
    border-radius: 16px !important;
    padding: 4px 12px !important;
    opacity: 1 !important;
}

.compliance-badge-no {
    background: #FFCDD2 !important;
    color: #C62828 !important;
    border-radius: 16px !important;
    padding: 4px 12px !important;
    opacity: 1 !important;
}

.compliance-badge-varies {
    background: #FFF4C4 !important;
    color: #F57F17 !important;
    border-radius: 16px !important;
    padding: 4px 12px !important;
    opacity: 1 !important;
}

.compliance-badge-exception {
    background: #BBDEFB !important;
    color: #1565C0 !important;
    border-radius: 16px !important;
    padding: 4px 12px !important;
    opacity: 1 !important;
}

/* Policy metric badges in category header */
.policy-metric-badge {
    border-radius: 16px;
    padding: 6px 14px;
    font-family: 'Roboto';
    font-weight: 500;
    font-size: 12px;
}

.policy-metric-badge-green {
    background: #BCF0B4;
    color: #1D1B20;
}

.policy-metric-badge-orange {
    background: #FFE8B4;
    color: #1D1B20;
}

.policy-metric-badge-red {
    background: #FFBCB4;
    color: #1D1B20;
}

/* Policy setting cell */
#policy-details-tab .policy-setting-cell {
    word-break: break-word;
    hyphens: auto;
    min-width: 0;
}

/* Policy cells */
#policy-details-tab .policy-priority-cell,
#policy-details-tab .policy-compliance-cell {
    flex-shrink: 0;
    width: auto;
    min-width: 120px;
}

/* Details content cell */
#policy-details-tab .details-content {
    border-radius: 12px;
    padding: 20px 24px;
    background: #F7FBF1;
}

/* Pre elements within details content */
#policy-details-tab .details-content pre {
    background: rgba(0, 0, 0, 0.05);
}

/* Exception details section within details content */
#policy-details-tab .details-content .border-t {
    background: rgba(59, 105, 57, 0.1);
    border-color: rgba(59, 105, 57, 0.2);
}

/* Border styling for elements within details content */
#policy-details-tab .details-content .border-gray-100 {
    border-color: rgba(0, 0, 0, 0.1);
}

/* Back to top row */
#policy-details-tab .back-to-top-row {
    display: table-row;
    border: none;
}

#policy-details-tab .back-to-top-row td {
    border: none !important;
    background: transparent !important;
    padding: 20px !important;
    text-align: center;
}

/* Default badges */
.priority-badge-default {
    background: #F5F5F5;
    color: #616161;
    border-radius: 16px;
    padding: 4px 12px;
}

.compliance-badge-default {
    background: #F5F5F5;
    color: #616161;
    border-radius: 16px;
    padding: 4px 12px;
}

/* ========================================
   INNER POLICY TABLE STYLING - GREEN CARD DESIGN
   Applied to the table rows within expanded categories
   ======================================== */

/* Remove default table styling */
#policy-details-tab .category-section table {
    border-collapse: separate;
    border-spacing: 0 3px;
    background: transparent;
}

#policy-details-tab .category-section table thead {
    background: transparent;
}

#policy-details-tab .category-section table thead th {
    background: transparent;
    border: none;
    padding: 12px 20px;
}

/* Style each policy row as a green rounded card */
#policy-details-tab .category-section table tbody tr.policy-row td {
    background: #F7FBF1;
    border: none;
    padding: 20px 20px;
}

/* First cell in the row - add left border radius */
#policy-details-tab .category-section table tbody tr.policy-row td:first-child {
    border-radius: 12px 0 0 12px;
}

/* Last cell in the row - add right border radius */
#policy-details-tab .category-section table tbody tr.policy-row td:last-child {
    border-radius: 0 12px 12px 0;
}

/* Hover effect for policy rows */
#policy-details-tab .category-section table tbody tr.policy-row:hover td {
    background: #EBEBEB;
    cursor: pointer;
}

/* Remove the bottom border from table rows */
#policy-details-tab .category-section table tbody tr.policy-row {
    border-bottom: none;
}

/* ========================================
   TARGET CONFIGURATION DETAILS STYLING - GREEN CARD DESIGN
   Applied to target config rows within policy details
   ======================================== */

/* Target config row - green rounded card with no border */
.target-config-row {
    background: #F7FBF1 !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 8px !important;
    margin-bottom: 3px;
}

/* Hover effect for target config rows */
.target-config-row:hover {
    background: #EBEBEB !important;
    cursor: pointer;
}

/* Current Value styling - rounded with no border */
.target-config-row pre {
    border: none !important;
    border-radius: 8px !important;
    background: rgba(0, 0, 0, 0.03) !important;
}

/* ========================================
   RULES & SYSTEM DEFINED ALERTS STYLING - GREEN CARD DESIGN
   Applied to rules and alerts table rows
   ======================================== */

/* Remove border from container */
.rules-alerts-container {
    border: none !important;
    background: transparent !important;
}

/* Remove default table styling for rules table */
#rules-alerts-table {
    border-collapse: separate !important;
    border-spacing: 0 3px !important;
}

#rules-alerts-table thead {
    background: transparent !important;
}

#rules-alerts-table thead th {
    background: transparent !important;
    border: none !important;
}

#rules-alerts-table tbody {
    background: transparent !important;
}

/* Style each rules/alerts row as a grey rounded card */
#rules-alerts-table tbody tr.rules-alerts-row td {
    background: #FAFAFA !important;
    border: none !important;
    padding: 12px 24px !important;
}

/* First cell in the row - add left border radius */
#rules-alerts-table tbody tr.rules-alerts-row td:first-child {
    border-radius: 12px 0 0 12px !important;
}

/* Last cell in the row - add right border radius */
#rules-alerts-table tbody tr.rules-alerts-row td:last-child {
    border-radius: 0 12px 12px 0 !important;
}

/* Hover effect for rules/alerts rows */
#rules-alerts-table tbody tr.rules-alerts-row:hover td {
    background: #EBEBEB !important;
    cursor: pointer;
}

/* Remove the divider lines between rows */
#rules-alerts-table tbody {
    border: none !important;
}

#rules-alerts-table tbody tr.rules-alerts-row {
    border-bottom: none !important;
}

/* State badges - make them more vibrant */
#rules-alerts-table .bg-green-100 {
    background: #C8E6C9 !important;
}

#rules-alerts-table .text-green-800 {
    color: #2E7D32 !important;
}

#rules-alerts-table .bg-gray-100 {
    background: #E0E0E0 !important;
}

#rules-alerts-table .text-gray-800 {
    color: #424242 !important;
}

/* ========================================
   MISSING SETTINGS STYLING - GREY CARD DESIGN
   Applied to missing settings cards
   ======================================== */

/* Remove border from container */
.missing-settings-container {
    border: none !important;
    background: transparent !important;
}

/* Style each missing settings card as a grey rounded card */
.missing-settings-row {
    background: #FAFAFA !important;
    border: none !important;
    border-radius: 12px !important;
    margin-bottom: 3px !important;
    padding: 0 !important;
}

/* Override the header hover effect */
.missing-settings-row .cursor-pointer:hover {
    background: #EBEBEB !important;
    border-radius: 12px !important;
}

/* Override the details section background */
.missing-settings-row .missing-setting-details {
    background: #FFFFFF !important;
    border-top: none !important;
}

/* Style pre elements - rounded with no border */
.missing-settings-row pre {
    border: none !important;
    border-radius: 8px !important;
    background: rgba(0, 0, 0, 0.03) !important;
}

/* ========================================
   DNS RECORDS STYLING - GREY CARD DESIGN
   Applied to DNS records table rows
   ======================================== */

/* Remove border from container */
.dns-records-container {
    border: none !important;
    background: transparent !important;
}

/* Remove default table styling for DNS records table */
#dns-records-table {
    border-collapse: separate !important;
    border-spacing: 0 3px !important;
}

#dns-records-table thead {
    background: transparent !important;
}

#dns-records-table thead th {
    background: transparent !important;
    border: none !important;
}

#dns-records-table tbody {
    background: transparent !important;
}

/* Style each DNS record row as a grey rounded card */
#dns-records-table tbody tr.dns-records-row td {
    background: #FAFAFA !important;
    border: none !important;
    padding: 12px 24px !important;
}

/* First cell in the row - add left border radius */
#dns-records-table tbody tr.dns-records-row td:first-child {
    border-radius: 12px 0 0 12px !important;
}

/* Last cell in the row - add right border radius */
#dns-records-table tbody tr.dns-records-row td:last-child {
    border-radius: 0 12px 12px 0 !important;
}

/* Hover effect for DNS records rows */
#dns-records-table tbody tr.dns-records-row:hover td {
    background: #EBEBEB !important;
}

/* Remove the divider lines between rows */
#dns-records-table tbody {
    border: none !important;
}

#dns-records-table tbody tr.dns-records-row {
    border-bottom: none !important;
}

/* ========================================
   USER SECURITY & USAGE STYLING - GREY CARD DESIGN
   Applied to user security table rows
   ======================================== */

/* Remove border from container */
.user-security-container {
    border: none !important;
    background: transparent !important;
}

/* Remove default table styling for user security table */
#user-overview-table {
    border-collapse: separate !important;
    border-spacing: 0 3px !important;
}

#user-overview-table thead {
    background: transparent !important;
}

#user-overview-table thead th {
    background: transparent !important;
    border: none !important;
}

#user-overview-table tbody {
    background: transparent !important;
}

/* Style each user security row as a grey rounded card */
#user-overview-table tbody tr.user-security-row td {
    background: #FAFAFA !important;
    border: none !important;
    padding: 12px 24px !important;
}

/* First cell in the row - add left border radius */
#user-overview-table tbody tr.user-security-row td:first-child {
    border-radius: 12px 0 0 12px !important;
}

/* Last cell in the row - add right border radius */
#user-overview-table tbody tr.user-security-row td:last-child {
    border-radius: 0 12px 12px 0 !important;
}

/* Hover effect for user security rows */
#user-overview-table tbody tr.user-security-row:hover td {
    background: #EBEBEB !important;
    cursor: pointer;
}

/* Remove the divider lines between rows */
#user-overview-table tbody tr.user-security-row {
    border-bottom: none !important;
}

/* ===== GROUPS SETTINGS STYLING ===== */

/* Container styling */
.groups-settings-container {
    border: none !important;
    background: transparent !important;
}

/* Table-level settings for spacing */
#groups-settings-table {
    border-collapse: separate !important;
    border-spacing: 0 3px !important;
}

#groups-settings-table thead {
    background: transparent !important;
}

#groups-settings-table thead th {
    background: transparent !important;
    border: none !important;
}

#groups-settings-table tbody {
    background: transparent !important;
}

/* Grey card styling for each row */
#groups-settings-table tbody tr.groups-settings-row td {
    background: #FAFAFA !important;
    border: none !important;
    padding: 12px 24px !important;
}

/* First cell in the row - add left border radius */
#groups-settings-table tbody tr.groups-settings-row td:first-child {
    border-radius: 12px 0 0 12px !important;
}

/* Last cell in the row - add right border radius */
#groups-settings-table tbody tr.groups-settings-row td:last-child {
    border-radius: 0 12px 12px 0 !important;
}

/* Hover effect for groups settings rows */
#groups-settings-table tbody tr.groups-settings-row:hover td {
    background: #EBEBEB !important;
    cursor: pointer;
}

/* Remove the divider lines between rows */
#groups-settings-table tbody tr.groups-settings-row {
    border-bottom: none !important;
}

/* ===== ADMIN ROLES & ASSIGNMENTS STYLING ===== */

/* Container styling */
.admin-roles-container {
    border: none !important;
    background: transparent !important;
}

/* Table-level settings for spacing */
#role-definitions-table {
    border-collapse: separate !important;
    border-spacing: 0 3px !important;
}

#role-definitions-table thead {
    background: transparent !important;
}

#role-definitions-table thead th {
    background: transparent !important;
    border: none !important;
}

#role-definitions-table tbody {
    background: transparent !important;
}

/* Grey card styling for each row */
#role-definitions-table tbody tr.admin-role-row td {
    background: #FAFAFA !important;
    border: none !important;
    padding: 12px 24px !important;
}

/* First cell in the row - add left border radius */
#role-definitions-table tbody tr.admin-role-row td:first-child {
    border-radius: 12px 0 0 12px !important;
}

/* Last cell in the row - add right border radius */
#role-definitions-table tbody tr.admin-role-row td:last-child {
    border-radius: 0 12px 12px 0 !important;
}

/* Hover effect for admin role rows */
#role-definitions-table tbody tr.admin-role-row:hover td {
    background: #EBEBEB !important;
    cursor: pointer;
}

/* Remove the divider lines between rows */
#role-definitions-table tbody tr.admin-role-row {
    border-bottom: none !important;
}

/* Details row styling - white background */
#role-definitions-table tbody tr.role-details-row td {
    background: #FFFFFF !important;
    border: none !important;
}

/* ===== AUTHORISED THIRD-PARTY APPS STYLING ===== */

/* Container styling */
.authorised-apps-container {
    border: none !important;
    background: transparent !important;
}

/* Table-level settings for spacing */
#authorised-apps-table {
    border-collapse: separate !important;
    border-spacing: 0 3px !important;
}

#authorised-apps-table thead {
    background: transparent !important;
}

#authorised-apps-table thead th {
    background: transparent !important;
    border: none !important;
}

#authorised-apps-table tbody {
    background: transparent !important;
}

/* Grey card styling for each row */
#authorised-apps-table tbody tr.authorised-app-row td {
    background: #F5F5F5 !important;
    border: none !important;
    padding: 16px 20px !important;
    vertical-align: middle !important;
}

/* First cell in the row - add left border radius */
#authorised-apps-table tbody tr.authorised-app-row td:first-child {
    border-radius: 12px 0 0 12px !important;
}

/* Last cell in the row - add right border radius */
#authorised-apps-table tbody tr.authorised-app-row td:last-child {
    border-radius: 0 12px 12px 0 !important;
}

/* Hover effect for authorised app rows */
#authorised-apps-table tbody tr.authorised-app-row:hover td {
    background: #EBEBEB !important;
    cursor: pointer;
}

/* Remove the divider lines between rows */
#authorised-apps-table tbody tr.authorised-app-row {
    border-bottom: none !important;
}

/* Details row styling - white background */
#authorised-apps-table tbody tr.app-details-row td {
    background: #FFFFFF !important;
    border: none !important;
}

/* Service Category Cards - Green Card Design (Level 2) */
.service-category-card {
    background: #F7FBF1 !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 16px 20px !important;
    margin-bottom: 3px;
    margin-left: 0 !important;
    margin-right: 0 !important;
    transition: background 0.2s ease;
}

.service-category-card:hover {
    background: #EBEBEB !important;
}

/* Service Scopes Details Container (Level 3) */
.service-scopes-details {
    background: transparent;
    margin-top: 3px;
    margin-bottom: 3px;
}

/* Individual Scope Detail Cards - Green Card Design */
.scope-detail-card {
    background: #F7FBF1 !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    transition: background 0.2s ease;
}

.scope-detail-card:hover {
    background: #EBEBEB !important;
}

/* ===== CHROMEOS VERSIONS STYLING ===== */

/* Container styling */
.chromeos-versions-container {
    border: none !important;
    background: transparent !important;
}

/* Table-level settings for spacing */
#chromeos-versions-table {
    border-collapse: separate !important;
    border-spacing: 0 3px !important;
}

#chromeos-versions-table thead {
    background: transparent !important;
}

#chromeos-versions-table thead th {
    background: transparent !important;
    border: none !important;
}

#chromeos-versions-table tbody {
    background: transparent !important;
}

/* Grey card styling for each row */
#chromeos-versions-table tbody tr.chromeos-version-row td {
    background: #FAFAFA !important;
    border: none !important;
    padding: 12px 24px !important;
}

/* First cell in the row - add left border radius */
#chromeos-versions-table tbody tr.chromeos-version-row td:first-child {
    border-radius: 12px 0 0 12px !important;
}

/* Last cell in the row - add right border radius */
#chromeos-versions-table tbody tr.chromeos-version-row td:last-child {
    border-radius: 0 12px 12px 0 !important;
}

/* Hover effect for ChromeOS version rows */
#chromeos-versions-table tbody tr.chromeos-version-row:hover td {
    background: #EBEBEB !important;
}

/* Remove the divider lines between rows */
#chromeos-versions-table tbody tr.chromeos-version-row {
    border-bottom: none !important;
}

/* ===== SETTINGS CHANGELOG STYLING ===== */

/* Container styling */
.settings-changelog-container {
    border: none !important;
    background: transparent !important;
}

/* Table-level settings for spacing */
#settings-changelog-table {
    border-collapse: separate !important;
    border-spacing: 0 3px !important;
}

#settings-changelog-table thead {
    background: transparent !important;
}

#settings-changelog-table thead th {
    background: transparent !important;
    border: none !important;
}

#settings-changelog-table tbody {
    background: transparent !important;
}

/* Grey card styling for each row */
#settings-changelog-table tbody tr.settings-changelog-row td {
    background: #FAFAFA !important;
    border: none !important;
    padding: 12px 24px !important;
}

/* First cell in the row - add left border radius */
#settings-changelog-table tbody tr.settings-changelog-row td:first-child {
    border-radius: 12px 0 0 12px !important;
}

/* Last cell in the row - add right border radius */
#settings-changelog-table tbody tr.settings-changelog-row td:last-child {
    border-radius: 0 12px 12px 0 !important;
}

/* Hover effect for settings changelog rows */
#settings-changelog-table tbody tr.settings-changelog-row:hover td {
    background: #EBEBEB !important;
}

/* Remove the divider lines between rows */
#settings-changelog-table tbody tr.settings-changelog-row {
    border-bottom: none !important;
}

/* ===== RULES & ALERTS CHANGELOG STYLING ===== */

/* Container styling */
.rules-alerts-changelog-container {
    border: none !important;
    background: transparent !important;
}

/* Table-level settings for spacing */
#rules-alerts-changelog-table {
    border-collapse: separate !important;
    border-spacing: 0 3px !important;
}

#rules-alerts-changelog-table thead {
    background: transparent !important;
}

#rules-alerts-changelog-table tbody {
    transform: translateY(-3px);
}

#rules-alerts-changelog-table thead th {
    background: transparent !important;
    border: none !important;
}

#rules-alerts-changelog-table tbody {
    background: transparent !important;
}

/* Grey card styling for each row */
#rules-alerts-changelog-table tbody tr.rules-alerts-changelog-row td {
    background: #FAFAFA !important;
    border: none !important;
    padding: 12px 24px !important;
}

/* First cell in the row - add left border radius */
#rules-alerts-changelog-table tbody tr.rules-alerts-changelog-row td:first-child {
    border-radius: 12px 0 0 12px !important;
}

/* Last cell in the row - add right border radius */
#rules-alerts-changelog-table tbody tr.rules-alerts-changelog-row td:last-child {
    border-radius: 0 12px 12px 0 !important;
}

/* Hover effect for rules alerts changelog rows */
#rules-alerts-changelog-table tbody tr.rules-alerts-changelog-row:hover td {
    background: #EBEBEB !important;
}

/* Remove the divider lines between rows */
#rules-alerts-changelog-table tbody tr.rules-alerts-changelog-row {
    border-bottom: none !important;
}

/* ===== BEST PRACTICES CHANGELOG STYLING ===== */

/* Container styling */
.best-practices-changelog-container {
    border: none !important;
    background: transparent !important;
}

/* Table-level settings for spacing */
#best-practices-changelog-table {
    border-collapse: separate !important;
    border-spacing: 0 3px !important;
}

#best-practices-changelog-table thead {
    background: transparent !important;
}

#best-practices-changelog-table thead th {
    background: transparent !important;
    border: none !important;
}

#best-practices-changelog-table tbody {
    background: transparent !important;
}

/* Grey card styling for each row */
#best-practices-changelog-table tbody tr.best-practices-changelog-row td {
    background: #FAFAFA !important;
    border: none !important;
    padding: 12px 24px !important;
}

/* First cell in the row - add left border radius */
#best-practices-changelog-table tbody tr.best-practices-changelog-row td:first-child {
    border-radius: 12px 0 0 12px !important;
}

/* Last cell in the row - add right border radius */
#best-practices-changelog-table tbody tr.best-practices-changelog-row td:last-child {
    border-radius: 0 12px 12px 0 !important;
}

/* Hover effect for best practices changelog rows */
#best-practices-changelog-table tbody tr.best-practices-changelog-row:hover td {
    background: #EBEBEB !important;
}

/* Remove the divider lines between rows */
#best-practices-changelog-table tbody tr.best-practices-changelog-row {
    border-bottom: none !important;
}

.dropdown-chevron{transform:rotate(90deg)}