:root {
  --bg: #0f172a;
  --main-content-bg: #0f172a;
  --logo-blue: #233e75;
  --logo-green: #67b243;
  --sidebar-bg: #1e293b;
  --panel: #1e293b;
  --header-bg: #1e293b;
  --card-bg: #1e293b;
  --accent: var(--logo-green);
  --accent-hover: #58a038;
  --text-dark: #f8fafc;
  --muted: #94a3b8;
  --glass: rgba(255, 255, 255, 0.03);
  --glass-hover: rgba(255, 255, 255, 0.08);
  --white: #ffffff;
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --table-header: #334155;
  --table-border: #334155;
  --bg-card: #1e293b;
}

*{
  margin:0; padding:0; box-sizing:border-box;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body{
  background: var(--bg);
  color: var(--text-dark);
  overflow: hidden;
}

/* Container Layout */
.main-rows {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 496px;
    margin-bottom: 0px;
    margin-top: -30px;
}

/* Infinity Decoration */
.media-decor {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    z-index: 1;
    pointer-events: none;
    display: flex;
    justify-content: center;
}

.media-decor img {
    width: 100%;
    height: auto;
    opacity: 0.4;
}

/* Row and Circle Styles */
.ctn-row {
    position: relative;
    display: flex;
    width: 100%;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    z-index: 997;
}

.main-rows .ctn {
    text-align: center;
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-color: var(--bg-card);
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
    border: 2px solid var(--logo-blue);
}

/* Text and Typography */
.main-rows .title {
    font-size: 18px;
    color: var(--text-dim);
    margin-bottom: 10px;
}

.main-rows .num {
    font-size: 32px;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 20px;
}

/* Buttons */
.main-btn-bs {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    border-radius: 10px;
    padding: 12px 24px;
    min-width: 180px;
    transition: .3s;
    z-index: 5;
    background-color: var(--logo-green);
    color: #fff;
    box-shadow: 0 0 20px -5px var(--logo-green);
}

.btn-limpid {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    border-radius: 10px;
    padding: 12px 24px;
    min-width: 180px;
    transition: .3s;
    z-index: 5;
    border: 1px solid var(--logo-blue);
    color: var(--text-dim);
    background: 0 0;
}

/* Pulse Animation */
.pulse {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: #c0ffee8f;
    border-radius: 50%;
    z-index: -1;
}

.ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: inherit;
    border-radius: 50%;
    opacity: .8;
    animation: pulsing 4s ease-out infinite;
}

.ring:nth-child(2) { animation-delay: -1s; }
.ring:nth-child(3) { animation-delay: -2s; }

@keyframes pulsing {
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}
@media (min-width:986px) and (max-width: 1150px) {
    .main-rows .ctn {width: 228px; height: 228px; }
}
/* Responsive Adjustments */
@media (max-width: 985px) {
    .main-rows .ctn { width: 187px;  height: 187px;}
     .main-rows .title { font-size: 12px; }
    .main-rows .num { font-size: 13px; }
    .main-btn-bs, .btn-limpid { padding: 5px 9px; font-size: 15px; border-radius: 5px; min-width: fit-content; }
    .main-rows{margin-bottom: 0px;}
}

@media (max-width: 861px) {
       .main-rows .ctn { width: 187px;  height: 187px;}
     .main-rows .title { font-size: 12px; }
    .main-rows .num { font-size: 13px; }
    .main-btn-bs, .btn-limpid { padding: 5px 9px; font-size: 15px; border-radius: 5px; min-width: fit-content; }
}

@media (max-width: 775px) {
    .main-rows .ctn { width: 203px !important; height: 203px !important; }
    .main-rows .title { font-size: 12px; }
    .main-rows .num { font-size: 13px; }
    .main-btn-bs, .btn-limpid { padding: 5px 9px; font-size: 15px; border-radius: 5px; min-width: fit-content; }
    .welcome-banner h2{font-size: 20px;}
}

@media (max-width: 685px) {
    .main-rows .ctn { width: 176px !important; height: 176px !important; }
}

@media (max-width: 645px) {
    .media-decor img { transform: rotate(90deg); width: 80%; }
    .media-decor { width: 561px; }
    .ctn-row { flex-direction: column; gap: 95px; }
    .main-rows .ctn { width: 143px !important; height: 143px !important; }
    .main-rows .title { font-size: 10px; margin-bottom: 10px; }
    .main-rows .num { font-size: 8px; margin-bottom: 10px; }
    .btn-limpid, .main-btn-bs { font-size: 10px; }
}


.main::-webkit-scrollbar {width: 4px;}
.main::-webkit-scrollbar-thumb {
    background: rgb(42 64 60);
    border-radius: 10px;
}
.app{ display: flex; height: 100vh; }

/* ================= SIDEBAR BASE ================= */
.sidebar{
  width: 260px;
  background: var(--sidebar-bg);
  border-right: 1px solid rgba(255,255,255,0.05);
  transition: width 0.4s var(--spring);
  display: flex;
  flex-direction: column;
  z-index: 1001;
  position: relative;
  box-shadow: 10px 0 40px rgba(0,0,0,0.3);
}

.sidebar.collapsed{ width: 85px; }
.sidebar.collapsed .logo span,
.sidebar.collapsed .label {
  display: none;
}

.sidebar.collapsed .menu {
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sidebar.collapsed .menu::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.logo-section {
    padding: 22px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    border-bottom: 2px solid #2d4521;
    flex-shrink: 0;
    width: 100%;
    overflow: hidden;
}

.logo-hex-container {
    position: relative;
    width: 95%;
    height: 100px;

    display: flex;
    align-items: center;
    justify-content: center;

    transition:
        height 0.25s ease,
        width 0.25s ease;
}

.main-logo-img {
    width: 125px;
    background: white;
    border-radius: 10px;

    transition: width 0.25s ease;
}

/* collapsed */
.sidebar.collapsed .logo-hex-container {
    height: 45px;
}

.sidebar.collapsed .main-logo-img {
    width: 75px;
}
.main {
    flex: 1;
    /* overflow-y: auto;
    overflow-x: hidden; */
    position: relative;
    background: var(--bg);
}

.menu{ padding: 15px; flex: 1; overflow-x: hidden; overflow-y: visible; }
.sidebar.collapsed .menu{
   overflow-x: unset;
}
/* ================= THEME SCROLLBAR ================= */

/* width */
.menu::-webkit-scrollbar{
    width: 6px;
}

/* track */
.menu::-webkit-scrollbar-track{
    background: rgba(255,255,255,0.03);
    border-radius: 20px;
    margin: 8px 0;
}

/* thumb */
.menu::-webkit-scrollbar-thumb{
    background: linear-gradient(
        180deg,
        var(--logo-green),
        #4d8f31
    );
    border-radius: 20px;
    box-shadow:
        0 0 10px rgba(103,178,67,0.35),
        inset 0 0 2px rgba(255,255,255,0.3);
    transition: 0.3s ease;
}

/* hover */
.menu::-webkit-scrollbar-thumb:hover{
    background: linear-gradient(
        180deg,
        #7bd14f,
        var(--logo-green)
    );
    box-shadow:
        0 0 14px rgba(103,178,67,0.6),
        inset 0 0 3px rgba(255,255,255,0.4);
}

/* firefox support */
.menu{
    scrollbar-width: thin;
    scrollbar-color: var(--logo-green) rgba(255,255,255,0.03);
}
.item{
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin: 8px 0;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    color: var(--muted);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.item i {min-width: 28px; text-align: center; font-size: 18px;}
.item:hover { background: var(--glass-hover); color: #fff; }
.item.active{ color: #f7f7f7; background: var(--accent); box-shadow: 0 8px 20px -6px rgb(56 93 38); font-weight: 600;}
.item.active i { color: #1e293b; }

.tooltip {
  position: absolute;
  left: 0%;
  margin-left: 150px;
  background: #2a670d;
  color: #ffffff;
  padding: 8px 15px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-10px);
  transition: 0.3s var(--spring);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  z-index: 9999;
  width: max-content;
}

.sidebar.collapsed .item:hover .tooltip{
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  background: #2a670dbd;
  border: 1px solid #5ead38;
  color: #4fe309;
}


.sidebar.collapsed .logout-btn:hover .tooltip{
opacity: 1; visibility: visible; transform: translateX(0px); background: #a9171d70; width: max-content; border: 1px solid crimson; color: #f78a8a;
margin-left: 90px;
}
.sidebar.collapsed .rmg-drop-toggle.item:hover .tooltip{
opacity: 1; visibility: visible; transform: translateX(0px); background: #0c3161f5; width: max-content; border: 1px solid #2173dd; color: #7aa1d3;
}

@media(max-width: 768px) {
  .sidebar {
    position: fixed;
    left: 0;
    transform: translateX(-100%);
    width: 280px !important;
    height: 100vh;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99999;
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar .logo span, .sidebar .label { display: block !important; }
  .sidebar.collapsed { width: 280px; }
  .tooltip { display: none !important; }
}

.sidebar-footer { padding: 0px 20px 10px; }
.logout-btn {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; padding: 16px; width: 100%; border-radius: 8px;
  cursor: pointer; color: #ff8a80; background: rgba(255, 138, 128, 0.08);
  transition: 0.4s; border: 1px solid rgba(255, 138, 128, 0.1);
  font-size: 14px; font-weight: 700;
  text-decoration:none;
}
.logout-btn:hover { background: #d32f2f; color: white; }
.sidebar.collapsed .logout-btn .label { display: none; }

/* ================= MAIN CONTENT SECTION ================= */
.right{ flex: 1; display: flex; flex-direction: column;  background: var(--main-content-bg);
 overflow-x: hidden;
 overflow-y: auto;
}
.right::-webkit-scrollbar{
    width: 6px;
}

/* track */
.right::-webkit-scrollbar-track{
    background: rgba(255,255,255,0.03);
    border-radius: 20px;
    margin: 8px 0;
}

/* thumb */
.right::-webkit-scrollbar-thumb{
    background: linear-gradient(
        180deg,
        var(--logo-green),
        #4d8f31
    );
    border-radius: 20px;
    box-shadow:
        0 0 10px rgba(103,178,67,0.35),
        inset 0 0 2px rgba(255,255,255,0.3);
    transition: 0.3s ease;
}

/* hover */
.right::-webkit-scrollbar-thumb:hover{
    background: linear-gradient(
        180deg,
        #7bd14f,
        var(--logo-green)
    );
    box-shadow:
        0 0 14px rgba(103,178,67,0.6),
        inset 0 0 3px rgba(255,255,255,0.4);
}

/* firefox support */
.right{
    scrollbar-width: thin;
    scrollbar-color: var(--logo-green) rgba(255,255,255,0.03);
}

.header{
  height: 70px; display: flex; justify-content: space-between; align-items: center;
  padding: 0 24px; background: var(--header-bg);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  z-index: 999;
}

.hamburger{
  width: 40px; height: 40px; border: none; background: transparent;
  cursor: pointer; display: flex; flex-direction: column; justify-content: center; gap: 6px;
}
.hamburger span{ display: block; width: 24px; height: 2px; background: var(--accent); transition: 0.3s; }
.hamburger.active span:nth-child(1){ transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2){ opacity: 0; }
.hamburger.active span:nth-child(3){ transform: translateY(-8px) rotate(-45deg); }

/* --- NEW: WELCOME & TRENDING STYLES --- */
.welcome-banner {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 30px;
    border: 1px solid rgba(103, 178, 67, 0.2);
    animation: fadeInSlide 0.8s var(--spring);
}
@keyframes fadeInSlide {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.welcome-banner h1 { font-size: 1.8rem; margin-bottom: 8px; color: #fff; }
.welcome-banner p { color: var(--muted); font-size: 0.95rem; }

.trending-section {
        margin-bottom: 30px;
    }
    .trending-title {
        display: flex; align-items: center; gap: 10px;
        font-size: 0.9rem; font-weight: 700; color: var(--accent);
        margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px;
    }
    .trending-grid { display: flex;gap: 15px;padding-bottom: 10px;flex-wrap: wrap; justify-content: center;}
    .trending-grid::-webkit-scrollbar { height: 4px; }
    .trending-grid::-webkit-scrollbar-thumb { background: var(--glass-hover); border-radius: 10px; }
    .trending-pill {    min-width: 170px;
        padding: 12px 20px;    border-radius: 5px;
        display: flex; align-items: center; gap: 10px;
        white-space: nowrap;
        cursor: pointer;
        font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

        background: linear-gradient(var(--card-bg), var(--card-bg)) padding-box,
                    radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), var(--card-accent, #67b243) 0%, rgba(103, 178, 67, 0.25) 100%) border-box;
        border: 1px solid transparent;
        position: relative;
        overflow: hidden;
        isolation: isolate;
        transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
        opacity: 0;
        transform: scale(0.8);
        animation: bounceIn 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        position: relative;
        text-decoration: none;
        color: white;
    }
    @media (max-width:414px){
        .trending-grid{padding: 10px 20px;}
        .trending-pill:nth-child(odd){
                left: clamp(var(--left-min), -6vw, -40px);
            }

            .trending-pill:nth-child(even){
                left: clamp(var(--right-min), 6vw, 40px);
            }
    }
    /* Interactive Background Mask Glow Element */
    .trending-pill::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), hsla(var(--card-accent-rgb), 0.12) 0%, transparent 65%);
        opacity: 0;
        transition: opacity 0.35s ease;
        z-index: -1;
    }

    /* Enhanced Hover Mechanics over your exact constraints */
    .trending-pill:hover {
        transform: scale(1.05);
        box-shadow: 0 8px 20px -8px rgba(15, 23, 42, 0.6), 0 0 15px 0 hsla(var(--card-accent-rgb), 0.1);
    }

    .trending-pill:hover::before {
        opacity: 1;
    }

    /* Your existing typography & element layouts - untouched */
    .trending-pill i {
        color: var(--accent);
        transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    .trending-pill:hover i {
        transform: scale(1.15) rotate(6deg);
    }

    .trending-pill span {
        font-weight: 600;
        font-size: 0.85rem;
    }

    /* Enhanced Hardware-Accelerated Entrance Vector */
    @keyframes bounceIn {
        from { opacity: 0; transform: scale(0.8) translateY(10px); }
        to { opacity: 1; transform: scale(1) translateY(0); }
    }

/* ================= GRID & TABLE ================= */
.grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-bottom: 30px; }

.card{
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 25px -5px rgba(0,0,0,0.3); }
.card-content h4 { color: var(--muted); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.card-content p { font-size: 1.75rem; font-weight: 800; margin-top: 8px; color: #fff; }
.card-icon-box {
    width: 50px; height: 50px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
}

.table-container {
  background: var(--card-bg);
  padding: 24px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.05);
}

.dt-buttons { margin-bottom: 20px; display: flex; gap: 10px; }
button.dt-button {
    background: #2a5b12 !important;
    color: white !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 8px 16px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    transition: 0.3s !important;
    background-image: none !important;
}
button.dt-button:hover {
    background: var(--accent-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(103, 178, 67, 0.3) !important;
}

table.dataTable { border-collapse: collapse !important; color: #cbd5e1 !important;}
table.dataTable thead th {
  background: #113c217a !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  padding: 16px !important;
  border: none !important;
  text-transform: uppercase;
  font-size: 15px;
  letter-spacing: 1px;
  white-space: no;
  white-space: nowrap;
}
table.dataTable tbody td {
  padding: 16px !important;
  border-bottom: 1px solid rgba(255,255,255,0.05) !important;
  font-size: 16px;
}
table.dataTable.display tbody tr { background-color: transparent !important; }

.status-pill { padding: 6px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_processing,
.dataTables_wrapper .dataTables_paginate {
    color: var(--muted) !important;
    margin-bottom: 15px;
}
.dataTables_wrapper .dataTables_filter input {
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    color: white !important;
    border-radius: 5px;
    padding: 5px 10px;
}
/* table.dataTable.dtr-inline.collapsed>tbody>tr>td.dtr-control:before,
table.dataTable.dtr-inline.collapsed>tbody>tr>th.dtr-control:before{
    content: "\f0da";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 2px;
    display: inline-block;
    color: rgb(22 165 67);
}

table.dataTable.dtr-inline.collapsed>tbody>tr.parent>td.dtr-control:before, table.dataTable.dtr-inline.collapsed>tbody>tr.parent>th.dtr-control:before{
      content: "\f0d7";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 2px;
    display: inline-block;
    color: rgb(22 165 67);
} */
 .dataTables_empty{width:max-content !important;}
 table.dataTable>tbody>tr.child ul.dtr-details {
    width: 100vw;
    display: flex;
    list-style-type: none;
    margin: 0;
    padding: 0;
    gap: 10px;
    flex-wrap: wrap;
}
table.dataTable>tbody>tr.child span.dtr-title {
    display: flex;
     min-width: auto;
    font-weight: bold;
    width: max-content;
    color: #67b243;
    align-items: center;
    justify-content: center;
}
 table .child ul li{text-align: center !important; text-align:-webkit-center !important;}
table .child td {display: table-cell !important;}

/* --- 1. Structured Child Table Format --- */
table.dataTable > tbody > tr.child {
    background-color: rgba(0, 0, 0, 0.25) !important;
    border-top: 2px solid #257100 !important;
    border-bottom: 2px solid #257100 !important;
}

table.dataTable > tbody > tr.child td.child {
    padding: 16px 20px !important;
    border-top: 1px solid var(--border) !important;
}

/* Force the ul/li layout into a clean, aligned tabular row */
table.dataTable > tbody > tr.child ul.dtr-details {
    display: flex !important;
    flex-wrap: nowrap;
    gap: 10px;
    list-style-type: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

/* Individual data pairs styled with traditional table structure alignment */
table.dataTable > tbody > tr.child ul.dtr-details > li {
    display: flex;
    flex-direction: column;
    border-bottom: none !important;
    padding: 0 10px !important;
    margin: 0;
    min-width: fit-content;
    border-right: 1px solid #67b23e;
}

/* Title Header mimicking a table header cell */
table.dataTable > tbody > tr.child ul.dtr-details .dtr-title {
    font-size: 0.8rem;
    color: var(--logo-green);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-bottom: 2px;
    border-bottom: 1px solid #ef4444;
}

/* Data Text mimicking standard row data cells */
table.dataTable > tbody > tr.child ul.dtr-details .dtr-data {
    font-size: 0.9rem;
    color: var(--text-white);
    font-weight: 500;
    margin-top: 5px;
}

/* Empty data filler fallback */
table.dataTable > tbody > tr.child ul.dtr-details .dtr-data:empty::before {
    content: "—";
    color: var(--muted);
}


/* --- 2. Upgraded "Show More Fields" Action Control --- */
table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control,
table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control {
    position: relative;
    padding-left: 35px !important;
}

/* Re-styling the baseline pseudo button */
table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control::before,
table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control::before {
    position: relative;
    top: 50% !important;
    left: -35px !important;
    transform: translateY(-63%) rotate(0deg);
    height: 20px !important;
    width: fit-content !important;
    line-height: 14px !important;
    border: none !important;
    border-radius: 4px !important;
    background-color: #0f6b37 !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3) !important;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 12px;
    content: "More Fields >" !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s var(--spring) !important;
    padding: 0px 5px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    white-space: nowrap !important;
}

/* Interactive transformation state when child fields are shown */
table.dataTable.dtr-inline.collapsed > tbody > tr.parent > td.dtr-control::before,
table.dataTable.dtr-inline.collapsed > tbody > tr.parent > th.dtr-control::before {
    position: relative;
    top: 50% !important;
    left: -35px !important;
    transform: translateY(-63%) rotate(0deg);
    height: 20px !important;
    width: fit-content !important;
    line-height: 14px !important;
    border: none !important;
    border-radius: 4px !important;
    background-color: rgb(90, 5, 22) !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3) !important;
    color: white !important;
    font-weight: 600;
    font-size: 12px;
    content: "Hide Fields X" !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s var(--spring) !important;
    padding: 0px 5px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    white-space: nowrap !important;
}

.overlay{
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; transition: 0.3s; z-index: 1000;
}
.overlay.show{ opacity: 1; visibility: visible; }
@media print {
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        background: #1e293b !important;
        text-align: center !important;
    }
    .sidebar, .header, .dt-buttons, .card, .dataTables_filter, .dataTables_info, .dataTables_paginate {
        display: none !important;
    }
    .right, .main, .table-container {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        background: white !important;
    }
    table.dataTable {
        width: 100% !important;
        border: 1px solid #e2e8f0 !important;
    }
    table.dataTable thead th {
        background-color: #1071337a !important;
        color: #ffffff !important;
        padding: 12px !important;
    }
}

/* Profile Trigger Styling */
.profile-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 5px 5px;
    border-radius: 4px;
    transition: 0.3s;
}
.profile-trigger:hover { background: rgb(60 77 74); }
.profile-img {
    width: 38px;
    height: 38px;
    border-radius: 5px;
    object-fit: cover;
    border: 2px solid var(--accent);
}

/* Trending 2026 Popup Design */
.profile-popup {
    position: fixed;
    top: 75px;
    right: 24px;
    width: 280px;
    background: #1e293be6;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(103, 178, 67, 0.3);
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    z-index: 2000;
    padding: 25px;
    display: none; /* Controlled by JS */
    transform-origin: top right;
    animation: popupScale 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popupScale {
    from { opacity: 0; transform: scale(0.9) translateY(-10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.popup-header { text-align: center; margin-bottom: 20px; }
.popup-header .badge {
    background: var(--logo-green);
    color: #0f172a;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.popup-img-large {
    width: 70px; height: 70px;
    border-radius: 7px;
    margin: 0 auto 12px;
    border: 3px solid var(--accent);
    display: block;
}
.popup-info h3 { font-size: 1.05rem; color: #fff; margin-bottom: 4px; }
.popup-info p { font-size: 0.8rem; color: var(--muted); margin-bottom: 0; }

.popup-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 15px;
}
.popup-btn {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 15px; border-radius: 10px;
    text-decoration: none; font-size: 0.85rem; font-weight: 600;
    transition: 0.3s; border: none; cursor: pointer;
    width: 100%;
}
.btn-profile { background: var(--glass); color: #fff; }
.btn-profile:hover { background: var(--glass-hover); color: var(--accent); }
.btn-logout { background: rgba(255, 138, 128, 0.08); color: #ff8a80; }
.btn-logout:hover { background: #d32f2f; color: #fff; }

/* ================= FOOTER STYLES ================= */
.admin-footer {
    width: 100%;
    margin-top: 5px;
    padding: 30px 24px;
    background: linear-gradient(to right, transparent, rgba(30, 41, 59, 0.5), transparent);
    border-top: 1px solid rgba(103, 178, 67, 0.1);
    position: relative;
    bottom: 0px !important;
    overflow: clip;
}

/* Shimmer Animation Effect */
.admin-footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(103, 178, 67, 0.05), transparent);
    transform: skewX(-25deg);
    transition: 0.7s;
}

.admin-footer:hover::after {
    left: 150%;
    transition: 0.7s var(--spring);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Brand Glow Effect */
.footer-brand-glow {
    color: var(--accent);
    font-weight: 800;
    text-shadow: 0 0 10px rgba(103, 178, 67, 0);
    transition: 0.4s;
}

.admin-footer:hover .footer-brand-glow {
    text-shadow: 0 0 15px rgba(103, 178, 67, 0.5);
}

.footer-links {
    display: flex;
    gap: 25px;
    list-style: none;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: #fff;
    transform: translateY(-2px);
}

.version-tag {
    background: rgba(148, 163, 184, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.75rem;
    white-space: nowrap;
}


/* ================= UNIQUE DROPDOWN SIDEBAR ================= */

.rmg-nav-drop{
    position: relative;
    margin: 8px 0;
    display: inherit !important;
}

/* toggle */
.rmg-drop-toggle{
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    position: relative;
}

/* left */
.rmg-drop-left{
    display: flex;
    align-items: center;
    gap: 12px;
}

/* arrow */
.rmg-drop-arrow{
    transition: 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: var(--accent);
    font-size: 12px;
}

/* active rotate */
.rmg-nav-drop.rmg-drop-open .rmg-drop-arrow{
    transform: rotate(180deg);
}

/* menu */
.rmg-drop-menu{
    height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);

    transition:
        max-height 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.35s ease,
        transform 0.35s ease;

    margin-left: 5px;
    border-left: 2px solid rgba(103,178,67,0.25);
    padding-left: 5px;
}

/* open state */
.rmg-nav-drop.rmg-drop-open .rmg-drop-menu{
    height: auto;
    opacity: 1;
    transform: translateY(0);
}

/* links */
.rmg-drop-link{
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 7px 5px;
    margin: 8px 9px;
    border-radius: 5px;
    text-decoration: none;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    transition: all 0.3s ease;
    overflow: hidden;
}

/* glow animation */
.rmg-drop-link::before{
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(103,178,67,0.15),
        transparent
    );
    transition: 0.3s;
}

/* hover */
.rmg-drop-link:hover{
    transform: translateX(6px);
    border-color: rgba(103,178,67,0.25);
    background: rgba(103,178,67,0.08);
    color: #fff;
    box-shadow: 0 8px 18px rgba(0,0,0,0.25);
}

.rmg-drop-link:hover::before{
    left: 120%;
}

/* icon */
.rmg-drop-link i{
    color: var(--accent);
    min-width: 18px;
    text-align: center;
}

/* pulse */
.rmg-drop-link span{
    position: relative;
}

.rmg-drop-link span::after{
    content: '';

    position: absolute;

    top: 50%;
    right: -14px;

    width: 6px;
    height: 6px;

    background: var(--accent);

    border-radius: 50%;

    transform: translateY(-50%);

    box-shadow: 0 0 10px var(--accent);

    animation: rmgPulseDot 1.8s infinite;
}

/* pulse animation */
@keyframes rmgPulseDot{

    0%{
        transform: translateY(-50%) scale(1);
        opacity: 1;
    }

    100%{
        transform: translateY(-50%) scale(2.2);
        opacity: 0;
    }

}

/* active link */
.rmg-drop-link-active{
    background: rgba(103,178,67,0.14);
    border-color: rgba(103,178,67,0.25);
    color: #fff;

    box-shadow:
        0 8px 20px rgba(0,0,0,0.2),
        inset 0 0 12px rgba(103,178,67,0.08);
}

/* collapsed */
.sidebar.collapsed .rmg-drop-arrow,
.sidebar.collapsed .rmg-drop-menu{
    display: none;
}
.text-danger{color:#c5082c !important;}


/* Mobile Smoothing */
@media (max-width: 768px) {
    .rmg-drop-menu{
        margin-left: 10px;
    }

    .rmg-drop-link{
        font-size: 13px;
    }
    .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    table.dataTable thead th {
    font-size: 13px;
    }
    table.dataTable tbody td {font-size:17px;}
    .main-rows{margin-bottom: -28px;
    margin-top: -33px;}
}
@media (max-width:500px){
 .main{padding: 10px;}
 .main-rows{    margin-bottom: -26px;
    margin-top: -10px;}
 .profile-trigger > div{ display: none;}
  table.dataTable thead th {font-size: 12px;}
  table.dataTable tbody td {font-size:16px;}
  /* table.dataTable tbody td {font-size: 12px;} */
  .welcome-banner{padding: 15px 20px; margin-bottom: 0px !important;}
  .welcome-banner h1{ font-size: 18px; margin: 0px;}
}
@media (max-width:400px){
  .version-tag{display: none !important;}
  .footer-left{font-size: 12px;}
  .footer-content{gap: 25px;}
   table.dataTable thead th {font-size: 11px;}
   table.dataTable tbody td {font-size:15px;}
   .welcome-banner h1{font-size: 15px;}
}


 /* .swal2-popup.swal2-toast  {background: #0000004f !important; backdrop-filter: blur(20px) !important;
  color: white !important;  font-size: 12px !important;
}
.swal2-timer-progress-bar{
     background: radial-gradient(circle at 20% 30%, #7f5af0, transparent 40%),
              radial-gradient(circle at 80% 70%, #2cb67d, transparent 40%),
              radial-gradient(circle at 50% 50%, #ff8906, transparent 50%),
              #0f0f1a !important;} */

/* ================================
   SweetAlert2 Modern Toast Style
================================ */

/* Main Toast Container */
.swal2-popup.swal2-toast {
    background: #37622c4f !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    color: #ffffff !important;
    font-size: 12px !important;
    border-radius: 12px !important;
    padding: 5px !important;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.5),
        0 1px 0 rgba(255, 255, 255, 0.05) inset !important;
    border: 1px solid rgb(38 96 8 / 88%) !important;
    animation: toastSpringInLeft 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    margin-right: 5px !important;
}

/* Success Toast */
.swal2-popup.swal2-toast.swal2-icon-success {
    border-left: 2px solid var(--logo-green, #67b243) !important;
}

.swal2-popup.swal2-toast.swal2-icon-success .swal2-icon {
    color: var(--logo-green, #67b243) !important;
    border-color: var(--logo-green, #67b243) !important;
}

/* Error Toast */
.swal2-popup.swal2-toast.swal2-icon-error {
    border: 1px solid rgba(109, 2, 2, 0.88) !important;
    border-left: 2px solid #ef4444 !important;
    background: rgba(170, 18, 18, 0.55) !important;
}

.swal2-popup.swal2-toast.swal2-icon-error .swal2-icon {
    color: #ef4444 !important;
    border-color: #ef4444 !important;
}

/* Progress Bar */
.swal2-timer-progress-bar {
    background:
        radial-gradient(circle at 20% 30%, #7f5af0, transparent 40%),
        radial-gradient(circle at 80% 70%, #2cb67d, transparent 40%),
        radial-gradient(circle at 50% 50%, #ff8906, transparent 50%),
        #0f0f1a !important;

    height: 3px !important;
    border-bottom-left-radius: 12px !important;
}

/* Title */
.swal2-popup.swal2-toast .swal2-title {
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

/* Message */
.swal2-popup.swal2-toast .swal2-html-container {
    color: #0cef52 !important;
    font-size: 14px !important;
    line-height: 0.2 !important;
}
.swal2-popup.swal2-toast.swal2-icon-error .swal2-html-container {
    color: #ffb4b4 !important;
    line-height: 0.2 !important;
    font-size: 14px !important;
}

/* Icon */
.swal2-popup.swal2-toast .swal2-icon {
    margin: 0px -4px 0 0 !important;
    transform: scale(0.85);
}

/* ================================
   Smooth Toast Animation
================================ */
@keyframes toastSpringInLeft {
    0% {
        transform: translateX(-120%) scale(0.9);
        opacity: 0;
    }

    75% {
        transform: translateX(8%) scale(1.01);
        opacity: 0.95;
    }

    100% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}
