#TableArea, #GraphArea {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: auto !important;
  border: 1px solid var(--theme-table-border-color);
  background-color: var(--theme-background);
}
.ib {
  width: 305px;
  display:inline-block;
  vertical-align: top;
  margin-bottom: 5px;
  margin-right: 5px;
}
.max-65 {
  width: 90px  !important;
  min-width: 90px  !important;
  float: left;
  padding: 5px 5px !important;
  font-size:12px !important;
  display: block;
  line-height: 19px;
}
.max-150 {
  width: 195px !important;
  min-width: 195px !important;
  max-width: 195px !important;
}
.pad-me-5 {
  margin: 5px;
}
[data-md-tooltip] {
position: relative;
}
[data-md-tooltip]:before {
content: attr(data-md-tooltip);
position: absolute;
bottom: -35px;
left: 50%;
padding: 8px;
transform: translateX(-50%) scale(0);
transition: transform 0.2s ease-in-out;
transform-origin: top;
background: #616161e6;
color: white;
border-radius: 2px;
font-size: 12px;
font-family: Roboto, sans-serif;
font-weight: 400;
width: 300%;
z-index: 1000;
}
[data-md-tooltip]:hover:before {
transform: translateX(-50%) scale(1);
}
[data-md-tooltip].md-tooltip--right:before {
left: auto;
right: -10px;
bottom: auto;
top: 50%;
transform: translate(100%, -50%) scale(0);
transform-origin: left center;
}
[data-md-tooltip].md-tooltip--right:hover:before {
transform: translate(100%, -50%) scale(1);
}
[data-md-tooltip].md-tooltip--left:before {
left: -15px;
right: auto;
bottom: auto;
top: 50%;
transform: translate(-100%, -50%) scale(0);
transform-origin: right center;
}
[data-md-tooltip].md-tooltip--left:hover:before {
transform: translate(-100%, -50%) scale(1);
}
[data-md-tooltip].md-tooltip-disabled:before {
display: none;
}

.md-tooltip--top:before {
top: -35px;
bottom: auto;
transform: translateX(-50%) scale(0);
transform-origin: bottom center;
}
#settings {
width: 36px;
height: 36px;
color: #fff;
text-align: center;
padding-right: 36px;
}
#logout {
  width: 36px;
  height: 36px;
  color: #fff;
  text-align: center;
}


.card-container {
position:absolute;
width: calc(100% - 40px);
height:200px;
background-color: #587bf8;
color:#fefefe;
text-align: center;
font:24px "Helvetica Neue", Helvetica, Arial, sans-serif;
border:1px dotted #ffffff3d;
border-radius: 5px;
}
.card-size {
width:100%;
height:100px;
position: absolute;
}
.top {
top:0;
left:0;
border-bottom:1px dotted #ffffff3d;
}
.pos-text {
position:absolute;
width:100%;
bottom:20px;
padding-left:10px;
padding-right: 10px;
}
.pos-text-2 {
position:absolute;
width:100%;
top:20px;
padding-left:10px;
padding-right: 10px;
}
.bottom {
top:100px;
left:0px
}
.card-containergreen {
background-color:#0da58e;}
.card-containerlight-green {
background-color:#8cc152;}
.card-containerlime {
background-color:#cdda49;}
.card-containeryellow {
background-color:#fdc02f;}
.card-containerorange {
background-color:#fd9727;}
.card-containerdeep-orange {
background-color:#fc5830;}
.card-containerred {
background-color:#e2202c;}
.card-containerpink {
background-color:#e62565;}
.card-containerpurple {
background-color:#9b2fae;}
.card-containerdeep-purple {
background-color:#673fb4;}
.card-containerblue {
background-color:#4054b2;}
.card-containerlight-blue {
background-color:#587bf8;
}
.front,
.back {
width: 100%;
height: 100%;
position: absolute;
-webkit-backface-visibility: hidden;
  backface-visibility: hidden;
-webkit-transition: -webkit-transform 300ms;
transition: -webkit-transform 300ms;
transition: transform 300ms;
transition: transform 300ms, -webkit-transform 300ms;
-webkit-transition-timing-function: linear;
  transition-timing-function: linear;
border-radius: 5px;
}
.front {
transform: rotateY(0deg);
text-align: center;
padding: 30px;
}
.back {
-webkit-transform: rotateY(180deg);
transform: rotateY(180deg);
color: #fff;
}
.card-container:hover .front {
-webkit-transform: rotateY(-180deg);
transform: rotateY(-180deg);
}
.card-container:hover .back {
-webkit-transform: rotateY(0deg);
transform: rotateY(0deg);
}
.cpc-container {
position: absolute;
left:0;
bottom:0;
width:100%;
height:30px;
display: grid;
grid-template-columns: repeat(12, 1fr);
}
.cpc {
display: inline-block;
margin: 0px;
padding:0px;
height:30px;
}
.cpc:first-child {
border-bottom-left-radius: 4px;
}
.cpc:last-child {
border-bottom-right-radius: 4px;
}
.hangTopRight {
position: absolute;
right:10px;
top:10px;
color: #fff;
font-size: 12px;
}
.hangTopRight:hover {
color:#e4e4e4;
}
.RunReport {
color: #fff;
font-size: 20px;
}
.RunReport:hover {
color:#e4e4e4;
}
.hangTopLeft {
position: absolute;
left:10px;
top:10px;
color: #fff;
font-size: 12px;
}
.hangTopLeft:hover {
color:#e4e4e4;
}

#GraphArea > .mb-4 {
display: inline-block;
padding: 5px;
}
.SmallerButton {
margin-left: 12px;
padding: 2px 6px;
}
.featurette-divider {
margin: 4rem 0;
}
#GraphArea canvas {
  width: 100% !important;
  max-width: 100%; /* Prevents any overflow issues */
  height: auto !important; /* Adjusts height maintaining aspect ratio */
}


/* General Styling */
/* General Styling */
/* General Styling */
.dashboard {
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

.risk-section {
  margin-bottom: 20px;
}

.risk-container {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

/* Risk Box Formatting */
.risk-box {
  width: 160px;
  height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-transform: capitalize;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
  color: white; /* Default text color */
  text-align: center;
}

.risk-box h1 {
  margin: 0;
  font-size: 26px; /* Ensures numbers are more prominent */
  font-weight: bold;
}

.risk-box h3 {
  margin: 0;
  font-size: 18px;
  font-weight: normal;
}

/* Exact Colors Based on Example Image */
.high { background-color: #E87722; }  /* Orange */
.medium { background-color: #FFCC00; } /* Yellow */
.critical { background-color: #D2322D; } /* Dark Red */
.low { background-color: #00843D; } /* Green */

/* Top Vulnerabilities Section */
.top-title {
  margin-top: 30px;
  font-size: 22px;
  font-weight: bold;
}

/* Vulnerability Box Layout */
.top-vulnerabilities-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.risk-category {
  width: 250px;
  background: white;
  padding: 15px;
  border-radius: 8px;
  text-align: left;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  color: black;
}

/* Dark Mode Styling */
body.darkModeIcons .risk-box {
  color: white; /* Ensures text is visible */
  box-shadow: 0 2px 5px rgba(255, 255, 255, 0.1);
}

body.darkModeIcons .risk-category {
  background: #1e1e1e; /* Dark mode background */
  color: white;
  box-shadow: 0 2px 5px rgba(255, 255, 255, 0.1);
}




/* Overall card */
.ci-swal-popup{
  width: min(720px, calc(100% - 32px)) !important;
  border-radius: 14px !important;
  padding: 20px 22px !important;
  background: #fff !important;
  box-shadow: 0 20px 60px rgba(0,0,0,.18) !important;
  position: relative;
}

/* Title */
.ci-swal-title{
  margin: 6px 0 0 0 !important;
  text-align: center !important;
  font-weight: 700 !important;
  font-size: 1.25rem !important;
  color: #1f2937 !important; /* slate-800 */
}

/* Positioning context for the right-top note */
.ci-swal-html{
  position: relative;
  margin-top: 10px !important;
}

/* “* Required information” – top-right */
.ci-required-note{
  position: absolute;
  top: -32px;          /* sits on the same row as the title’s right side */
  right: 0;
  font-size: .85rem;
  color: #ef4444;      /* red-500 */
  user-select: none;
}

/* Field blocks */
.ci-field{ margin-top: 14px; }
.ci-label{
  display: block;
  text-align: left;
  font-size: .9rem;
  color: #374151;      /* slate-700 */
  margin-bottom: 6px;
  font-weight: 600;
}
.ci-required{ color:#ef4444; margin-right: 2px; }

/* Inputs / Textarea */
.ci-input,
.ci-textarea{
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #e5e7eb;     /* gray-200 */
  background: #fff;
  color: #111827;                /* gray-900 */
  border-radius: 10px;
  padding: 10px 12px;
  font-size: .95rem;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.ci-input::placeholder,
.ci-textarea::placeholder{ color:#9ca3af; } /* gray-400 */

.ci-input[disabled]{
  background: #f3f4f6;           /* gray-100 */
  color: #6b7280;                /* gray-500 */
}

/* Focus accent (purple) */
.ci-input:focus,
.ci-textarea:focus{
  border-color: #7c3aed;         /* violet-600 */
  box-shadow: 0 0 0 3px rgba(124,58,237,.15);
}

/* Textarea sizing */
.ci-textarea{ min-height: 120px; resize: vertical; }

/* Buttons (override SweetAlert2) */
.ci-btn{
  border-radius: 9999px !important;
  padding: 8px 16px !important;
  font-weight: 600 !important;
  border: 1px solid #e5e7eb !important;
  background: #f7f7f7 !important;
  color: #111827 !important;
}
.ci-btn:hover{ background:#f1f5f9 !important; } /* slate-100 */

.ci-btn-primary{
  background: #7c3aed !important;   /* violet-600 */
  border-color: #7c3aed !important;
  color: #fff !important;
}
.ci-btn-primary:hover{ background:#6d28d9 !important; } /* violet-700 */

/* Keep the “X” close button subtle */
.swal2-close {
  color:#6b7280 !important;
  font-weight: 700 !important;
}
.swal2-close:hover { color:#374151 !important; }



.grid {
            position: relative;
            /* Control the height manually */
            /* In this case we limit it to two rows */
            height: 420px;
        }
        .item {
            position: absolute;
            width: 500px;
            height: 300px;
            line-height: 300px;
            margin: 5px;
            z-index: 1;
        }
        .item.muuri-item-hidden {
            z-index: 0;
        }
        .item.muuri-item-releasing {
            z-index: 2;
        }
        .item.muuri-item-dragging {
            z-index: 3;
        }
        .item-content {
            position: relative;
            width: 100%;
            height: 100%;
            text-align: center;
            background: white;
            border: 1px solid #c9c9c9;
            font-size: 50px;
            color: white;
            cursor: pointer;
        }
        .item.muuri-item-dragging .item-content {
            background: #3498db; /* Calmer blue color */
        }

        .item.muuri-item-releasing .item-content {
            background: #8e44ad; /* Softer violet color */
        }

        .handle {
            position: absolute;
            top: 0;
            width: 100%;
            height: 40px;
            display: flex;
            justify-content: space-between;
            background: rgba(0, 0, 0, 0.5);
            padding: 0px;
            z-index: 10;
            display: none;
            line-height: 40px;
        }

        .handleanchor {
            cursor: grab;
            color: white;
            width: calc(100% - 80px);
        }

        .handlebuttons {
            display: flex;
            gap: 5px;
            width: 80px;
        }

        .handlebuttons button {
            background: none;
            border: none;
            color: white;
        }

        .handlebuttons span {
            background: none;
            border: none;
            color: white;
        }

        .handlebuttons span:hover {
            color: #ccc;
        }

        .item:hover .handle {
            display: flex;
        }

.content {
      padding: 30px;
      height: 100%;
      overflow-y: scroll;
    }
    .actions {
      display: flex;
      justify-content: space-between;
      margin-bottom: 20px;
    }
    .actions button {
      background-color: rgb(33, 4, 43);
      border: none;
      padding: 10px 20px;
      color: white;
      font-weight: bold;
      border-radius: 4px;
      cursor: pointer;
    }
        .actions input, .actions select {
            padding: 10px;
            width: 250px;
            border: 1px solid #ccc;
            border-radius: 4px;
        }
  /* Container */
  .tabulator {
    width: 100%;
    background: #fff;
    box-shadow: 0 0 4px rgba(0,0,0,0.05);
    border: 0;
  }

  /* Header like <th> */
  .tabulator .tabulator-header {
    background: #f2f2f2;
    border-bottom: 1px solid #eee;
  }
  .tabulator .tabulator-col {
    background: transparent;
    border-right: 0;
  }
  .tabulator .tabulator-col .tabulator-col-content {
    padding: 12px 15px !important;    /* th padding */
  }
  .tabulator .tabulator-header .tabulator-col .tabulator-header-filter {
  margin: 8px 15px; /* visually centered within the 12/15 padding */
}
  .tabulator .tabulator-col .tabulator-col-title {
    font-weight: 600;      /* th font-weight */
  }

  /* Cells like <td> */
  .tabulator .tabulator-row {
    background: #fff;                 /* remove stripes */
    border-bottom: 1px solid #eee;    /* row divider */
  }
  .tabulator .tabulator-row .tabulator-cell {
    padding: 12px 15px;   /* td padding */
    border-right: 0;
    text-align: left;
  }

  /* Hover (optional, subtle) */
  .tabulator .tabulator-row.tabulator-selectable:hover {
    background: #fafafa;
  }

  /* Footer / pagination (optional, to match the clean look) */
  .tabulator .tabulator-footer {
    background: #fff;
    border-top: 1px solid #eee;
  }
  .tabulator .tabulator-page {
    border: 1px solid #eee;
    background: #f9f9f9;
  }



  /* --- Content Area Redesign --- */
.page-heading{
  display:flex; justify-content:space-between; align-items:center; margin-bottom:22px;
}
.badge{display:inline-block; padding:4px 10px; border-radius:20px; font-size:12px; font-weight:600;background:#ffe8cc; color:#8a4b00; border:1px solid #ffd4a3;}

.head-actions{display:flex; gap:10px;}
.btn{background:rgb(33,4,43); color:#fff; border:none; border-radius:6px; padding:8px 12px; cursor:pointer; font-weight:600;}
.btn.secondary{background:#ece8f9; color:rgb(33,4,43);}
.layout{
  display:grid; grid-template-columns: 2.2fr 1fr; gap:24px;
}
.card{background:#fff; border:1px solid #ececec; border-radius:10px; box-shadow:0 2px 6px rgba(0,0,0,0.04); margin-bottom: 10px;}
.card .card-hd{display:flex; align-items:center; justify-content:space-between; padding:14px 16px; border-bottom:1px solid #f0f0f0; font-weight:700;}
.card .card-bd{padding:16px;}
.grid-2{display:grid; grid-template-columns:1fr 1fr; gap:12px;}
.grid-3{display:grid; grid-template-columns:repeat(3,1fr); gap:12px;}
.field{background:#fafafa; padding:10px 12px; border-radius:8px; border:1px solid #f1f1f1;}
.field label{display:block; font-size:12px; color:#666; margin-bottom:6px;}
.field .value{font-weight:600;}
.field.full {
    grid-column: span 3;
}
.kv{display:grid; grid-template-columns: 160px 1fr; gap:8px; align-items:start;}
.kv div{padding:6px 0;}
.text-prewrap {
  white-space: pre-wrap;     /* preserve \n and sequences of spaces */
  word-break: break-word;    /* avoid overflow on long tokens */
  overflow-wrap: anywhere;   /* optional: break really long strings */
}
/* comment list reset */
.list {
    list-style: none;
    margin: 0;
    padding: 0;
}

    /* each row: fixed left column for date, flexible right for text */
    .list li {
        display: grid;
        grid-template-columns: 160px 1fr; /* <- make this the width you want */
        gap: 12px;
        align-items: start;
        padding: 8px 0;
        border-top: 1px solid #eee;
    }

    /* date column */
    .list .when {
        color: #667085;
        white-space: nowrap; /* don’t wrap the date */
        font-variant-numeric: tabular-nums; /* aligned digits */
    }

    /* text column */
    .list .text {
        white-space: pre-wrap; /* <-- shows \n as real line breaks and wraps long lines */
        word-wrap: break-word; /* handles very long words/urls */
    }




.tag{display:inline-block; background:#eef2ff; color:#28318a; padding:2px 8px; border-radius:12px; font-size:12px; font-weight:600;}
pre.small{max-height:220px; overflow:auto; background:#0f172a; color:#e5e7eb; padding:12px; border-radius:8px;}
.link-list a{display:block; color:#334; margin:6px 0; text-decoration:none;}
.link-list a:hover{text-decoration:underline;}
.inline{display:flex; gap:8px; flex-wrap:wrap;}
.table-lite{width:100%; border-collapse:collapse;}
.table-lite th, .table-lite td{padding:8px 10px; border-bottom:1px solid #f1f1f1; text-align:left; font-size:14px;}
.empty{color:#666; font-style:italic;}
.attchmentsTdcontainer {min-width:90px; display:flex;}
.attchmentsbuttons {cursor: pointer; padding: 4px 10px 4px 0px;}
.kv h4,
.kv h4 {
    margin: 0 0 .25rem;
    font-size: .95rem;
    font-weight: 600;
    color: #333;
}

