﻿:root {
    --primary-blue: #0047cc;
    --gradient-blue: linear-gradient(180deg, #0056e0 0%, #0037a3 100%);
    --bg-light: #f8f9fc;
    --text-white: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.8);
    --border-color: #e4e4e7;
}

* {
    box-sizing: border-box;
}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    overflow-y: auto;
}

/* Layout Wrapper */
.main-layout {
    display: flex;
    width: 100%;
    height: 100vh;
}

/* --- Sidebar Styles --- */
.sidebar {
    width: 280px;
    background: var(--gradient-blue);
    color: var(--text-white);
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center; /* Vertically centers the logo with the text */
    gap: 12px;           /* Space between the logo image and text */
    font-size: 12px;     /* Adjusted size for a longer name */
    font-weight: 700;
    margin-bottom: 30px;
    padding-left: 12px;
}

.logo-img {
    width: 40px;         /* Adjust based on your logo shape */
    height: auto;        /* Maintains aspect ratio */
    object-fit: contain;
}

/* Optional: If the text is too long for the sidebar */
.logo span {
    line-height: 1.2;
    white-space: nowrap; /* Prevents text from wrapping to a second line */
    overflow: hidden;
    text-overflow: ellipsis; /* Adds "..." if the name is too long */
}

.nav-menu {
    flex-grow: 1;
}

/* --- Original Base Styles --- */
.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 4px;
    border-radius: 12px;
    color: var(--text-dim, #ccc);
    text-decoration: none;
    transition: 0.3s;
    font-size: 17px;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.nav-item i {
    width: 24px;
    margin-right: 12px;
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* --- Level 1: Expandable Drawer Configuration --- */
.nav-group {
    width: 100%;
    position: relative;
}

.group-indicator {
    margin-left: auto;
    font-size: 12px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.drawer-panel {
    display: none;
    background: rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    margin: 2px 0 6px 0;
}

.drawer-link {
    display: flex;
    align-items: center;
    padding: 10px 16px 10px 42px; /* Left indentation */
    color: var(--text-dim, #ccc);
    text-decoration: none;
    font-size: 15px;
    border-radius: 8px;
    transition: 0.2s;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.drawer-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

/* --- Level 2: Nested Segment Configuration --- */
.nested-segment {
    width: 100%;
}

.segment-indicator {
    margin-left: auto;
    font-size: 11px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.segment-panel {
    display: none;
    background: rgba(0, 0, 0, 0.18);
    border-radius: 6px;
    margin-bottom: 4px;
}

.segment-link {
    display: block;
    padding: 8px 16px 8px 60px; /* Double left indentation */
    color: var(--text-dim, #bbb);
    text-decoration: none;
    font-size: 14px;
    border-radius: 6px;
    transition: 0.2s;
}

.segment-link:hover {
    background: rgba(255, 255, 255, 0.12);
    color: white;
}

/* --- Interactive Active State Toggles --- */
.nav-group.is-expanded > .drawer-panel {
    display: block;
}

.nav-group.is-expanded > .group-trigger .group-indicator {
    transform: rotate(90deg);
}

.nested-segment.is-expanded > .segment-panel {
    display: block;
}

.nested-segment.is-expanded > .drawer-link .segment-indicator {
    transform: rotate(90deg);
}
/* Align items inside buttons/links horizontally */
.drawer-link, .segment-link {
    display: flex;
    align-items: center;
}

/* Icon spacing for Level 1 Sub-items (Master & Record) */
.segment-icon {
    width: 20px;
    margin-right: 10px;
    font-size: 14px;
    color: inherit;
    opacity: 0.85;
}

/* Icon spacing for Level 2 Sub-items (New & View) */
.link-icon {
    width: 18px;
    margin-right: 10px;
    font-size: 12px;
    color: inherit;
    opacity: 0.75;
}

/* Ensure the chevrons stay pinned to the right edge */
.segment-indicator {
    margin-left: auto;
}

.stats-card-sidebar {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    margin-top: 60px;
}

/* --- Main Content Styles --- */
.dashboard-container {
    flex-grow: 1;
    padding: 40px;
    overflow-y: auto;
    overflow-x:hidden;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
}

.header-text h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

.header-text p {
    color: #71717a;
    margin: 4px 0 0;
}

.add-btn {
    background-color: var(--primary-blue);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
}
/* Existing Layout Styles Kept Intact */
.header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
  background: linear-gradient(180deg, #0056e0 0%, #0037a3 100%);
}

/* Added flex alignment to header-left to align hamburger, nav, and text */
.header-left {
  display: flex;
  align-items: center;
  gap: 24px; 
}

.header-text h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color:#fff;
}

.header-text p {
  color: #71717a;
  margin: 4px 0 0;
}



/* ==========================================
   YOUR ORIGINAL STYLES (UNCHANGED)
   ========================================== */
.nav-links1 {
  display: flex;
  gap: 12px;
  align-items: center;
  background: linear-gradient(180deg, #0056e0 0%, #0037a3 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 6px 100px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.nav-item1 {
  display: inline-flex;
  align-items: center;
  gap: 8px; 
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 18px;
  border-radius: 12px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item1 i {
  font-size: 15px;
  transition: transform 0.2s ease;
}

.nav-item1:hover i {
  transform: scale(1.1);
}

.nav-item1:hover {
  color: #1e293b;
  background: rgba(255, 255, 255, 0.7);
}

.nav-item1.active {
  color: #ffffff;
  background: red;
  box-shadow: 0 4px 14px rgba(0, 112, 243, 0.35);
  transform: translateY(-1px);
}

/* ==========================================
   NEW DROPDOWN & SUB-DROPDOWN DESIGN
   ========================================== */

/* Structural layout containers */
.nav-item-wrapper {
  position: relative;
  display: inline-block;
}

.caret {
  font-size: 10px !important;
  margin-left: 4px;
  opacity: 0.7;
}

/* Base style for both Dropdown Panels (Matches your glassmorphism look) */
.dropdown-menu, .sub-dropdown-menu {
  position: absolute;
  background: linear-gradient(180deg, #0056e0 0%, #0037a3 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  padding: 6px;
  min-width: 180px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
}

/* Position main dropdown right below navigation item */
.dropdown-menu {
  top: 100%;
  left: 0;
  margin-top: 8px;
}

/* Position sub-dropdown right next to its parent item */
.has-sub-dropdown {
  position: relative;
}

.sub-dropdown-menu {
  top: 0;
  left: 100%;
  margin-left: 6px;
  transform: translateX(10px);
}

/* Dropdown items interior design */
.dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.dropdown-item:hover {
  color: #fff;
  background: rgba(0, 0, 0, 0.04);
}

/* Active/Hover Triggers to show menus smoothly */
.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.has-sub-dropdown:hover .sub-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* ==========================================
   📱 SEPARATE MOBILE VIEW & HAMBURGER FOR NAV
   ========================================== */

/* Hide hamburger toggle on system/desktop view */
.nav-hamburger1 {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  padding: 4px 8px;
  transition: transform 0.2s ease;
}

@media (max-width: 768px) {
  /* Make the main container bar space components nicely */
  .nav-links1 {
    justify-content: space-between;
    position: relative;
    width: 100%;
    max-width: 100%;
  }

  /* Reveal hamburger on mobile screen sizes */
  .nav-hamburger1 {
    display: block;
    z-index: 110;
  }

  /* Transform horizontal links container into an isolated vertical responsive dropdown drawer */
  .nav-menu-container1 {
    display: none; /* Hidden by default on mobile */
    flex-direction: column;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: linear-gradient(180deg, #0056e0 0%, #0037a3 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 14px;
    padding: 12px;
    gap: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 105;
  }

  /* Active class triggered via JS to display menu smoothly */
  .nav-menu-container1.mobile-visible {
    display: flex !important;
  }

  /* Structural block adjustments for link alignment inside vertical panel */
  .nav-item1 {
    display: flex;
    width: 100%;
    justify-content: flex-start;
    padding: 12px 16px;
    font-size: 18px;
  }

  .nav-item-wrapper {
    width: 100%;
  }

  /* Adjust dropdown menus to flow natively down instead of hovering on top */
  .dropdown-menu, 
  .sub-dropdown-menu {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    margin-top: 4px;
    margin-left: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: none; /* Collapse them underneath items on mobile layout */
  }

  /* Change standard hover configurations to look solid during clicks */
  .has-dropdown:hover .dropdown-menu,
  .has-sub-dropdown:hover .sub-dropdown-menu {
    transform: none;
  }

  /* Target utility rule classes for controlled menu reveal via click */
  .nav-item-wrapper.open-mobile-menu > .dropdown-menu {
    display: block !important;
  }

  .has-sub-dropdown.open-mobile-menu > .sub-dropdown-menu {
    display: block !important;
  }
  
  /* Rotate caret when child options are expanded */
  .nav-item-wrapper.open-mobile-menu .caret {
    transform: rotate(180deg);
  }
}
@media (max-width: 768px) {
    /* Make sure the parent container handles flex space cleanly */
    .nav-links1 {
        display: flex;
        align-items: center;
        width: 100%;
    }

    .nav-hamburger1 {
        display: block;
        z-index: 110;
        /* Key Fix: This pushes the icon perfectly to the right side natively */
        margin-left: auto; 
    }
}













/* =======================================================
   ⚙️ FIXED LAYERING BREAKOUT FOR STOCK PAGE (MOBILE VIEW)
   ======================================================= */

@media (max-width: 768px) {
  /* 1. Force the parent header to stay on top of metric grids and tables */
  .header {
    position: relative; /* Establishes a concrete container reference */
    z-index: 9999 !important; /* Forces it over table-cards and dynamic panels */
  }

  /* 2. Standardize Nav Links positioning context */
  .nav-links1 {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative; /* Keeps calculations tied to the navbar border */
  }

  /* 3. Push the hamburger cleanly to the right without broken hardcoded margins */
  .nav-hamburger1 {
    display: block;
    z-index: 10000 !important;
    margin-left: auto; /* Automatically grabs left-side layout space */
  }

  /* 4. Elevate the floating absolute glassmorphism menu layout container */
  .nav-menu-container1 {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    z-index: 10005 !important; /* Higher than everything else on the page */
    
    /* Ensuring background blur styling plays nice over table fields */
    background: linear-gradient(180deg, #0056e0 0%, #0037a3 100%) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
  }
}
/* =======================================================
   📱 CLEAN ACCORDION RESPONSIVE MOBILE VIEW (≤ 768px)
   ======================================================= */

.nav-hamburger1 {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  padding: 4px 8px;
}

@media (max-width: 768px) {
  /* Prevent any element on the stock page from clipping your menu layout */
  .header {
    position: relative;
    z-index: 9999 !important;
    overflow: visible !important;
  }

  .nav-links1 {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
    overflow: visible !important;
  }

  /* Push hamburger toggle cleanly to the right side */
  .nav-hamburger1 {
    display: block;
    z-index: 10000 !important;
    margin-left: auto;
  }

  /* Main slide-down navigation block layout */
  .nav-menu-container1 {
    display: none; 
    flex-direction: column;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: linear-gradient(180deg, #0056e0 0%, #0037a3 100%) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 14px;
    padding: 12px;
    gap: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 10005 !important;
  }

  /* Switch visibility state cleanly */
  .nav-menu-container1.mobile-visible {
    display: flex !important;
  }

  .nav-item1 {
    display: flex;
    width: 100%;
    justify-content: flex-start;
    padding: 12px 16px;
  }

  .nav-item-wrapper {
    width: 100%;
    position: relative;
  }

  /* 🛑 FORCE CLOSE ALL MENUS ON MOBILE BY DEFAULT (Prevents Merging) */
  .dropdown-menu, 
  .sub-dropdown-menu {
    display: none !important; /* Forces them shut, blocking desktop hover rules */
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    margin-top: 4px !important;
    margin-left: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    z-index: 10010 !important;
    padding: 6px !important;
  }

  /* Disable conflicting desktop hover triggers on stock page */
  .has-dropdown:hover .dropdown-menu,
  .has-sub-dropdown:hover .sub-dropdown-menu {
    display: none !important;
    transform: none !important;
  }

  /* ⚡ ACCORDION ACTIVATE RULES: Only display when class is applied via click */
  .nav-item-wrapper.open-mobile-menu > .dropdown-menu {
    display: block !important;
  }

  .has-sub-dropdown.open-mobile-menu > .sub-dropdown-menu {
    display: block !important;
  }
  
  /* Caret Rotation */
  .nav-item-wrapper.open-mobile-menu > a .caret,
  .has-sub-dropdown.open-mobile-menu > a .caret {
    transform: rotate(180deg);
  }
}
/* =======================================================
   🖥️ SYSTEM VIEW (DESKTOP) DROPDOWN LAYER FIX
   ======================================================= */

/* 1. Elevate the entire header container framework */
.header {
    position: relative; 
    z-index: 999; /* Forces the header above structural tables and metrics */
}

/* 2. Standardize navigation container stacking context */
.nav-links1 {
    position: relative;
    z-index: 1000;
}

/* 3. Ensure dropdown panels pop over everything else on the page */
.dropdown-menu {
    position: absolute;
    z-index: 1010 !important; /* Breaks out above metric-cards and tables */
}

/* 4. Ensure child sub-dropdown menus stack on top of the main dropdown */
.sub-dropdown-menu {
    position: absolute;
    z-index: 1020 !important;
}
/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.info-content {
    display: flex;
    flex-direction: column;
}

.label {
    font-size: 13px;
    color: #71717a;
    margin-bottom: 2px;
}

.value {
    font-size: 22px;
    font-weight: 700;
}

/* Icon Colors */
.bg-blue   { background-color: #0047cc; }
.bg-green  { background-color: #22c55e; }
.bg-yellow { background-color: #eab308; }
.bg-red    { background-color: #ef4444; }
.bg-purple { background-color: #8b5cf6; }

.stats-card-sidebar {
    display: flex;
    flex-direction: column;
    align-items: center; /* center everything */
    text-align: center;
}

.stats-icon {
    font-size: 32px;
    margin-bottom: 10px;
    color: #fff; /* adjust color if needed */
}










/* Fix the height for Infrastructure and Trend cards */
.chart-container, 
.chart-container-line {
    position: relative;
    height: 180px !important; /* Forces the height to stop here */
    width: 100%;
    margin-bottom: 0;
}

/* Ensure the doughnut wrapper doesn't expand vertically */
.doughnut-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 5px; /* Minimal padding */
}

/* Tighten the card padding */
.chart-card {
    background: white;
    padding: 16px 20px; /* Reduced vertical padding */
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    height: fit-content; /* Only take as much space as needed */
}

.charts-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.2fr 1fr;
    gap: 16px;
}

.chart-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
h3 { font-size: 14px; font-weight: 600; color: var(--text-main); margin: 0; }

.time-select {
    padding: 4px 8px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

/* Infrastructure Custom Design */
.doughnut-wrapper { display: flex; align-items: center; gap: 20px; }
.chart-container { position: relative; width: 160px; height: 160px; }

.center-text {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}
.total-count { display: block; font-size: 20px; font-weight: 700; }
.total-label { font-size: 12px; color: var(--text-muted); }

/* Legends */
.custom-legend { font-size: 12px; flex-grow: 1; }
.legend-item { display: flex; align-items: center; margin-bottom: 12px; color: var(--text-muted); }
.legend-item .val { margin-left: auto; color: var(--text-main); font-weight: 500; }
.dot { width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; }
.green { background: #22c55e; } .yellow { background: #eab308; } .red { background: #ef4444; }
.blue { background: #3b82f6; } .purple { background: #8b5cf6; } .pink { background: #f472b6; }

/* Line Chart Container */
.chart-container-line { height: 200px; width: 100%; margin-top: 20px; }

/* Progress Bars */
.mini-card { margin-bottom: 16px; }
.progress-item { margin-top: 15px; }
.progress-labels { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 6px; }
.stats b { margin-left: 10px; color: var(--text-main); }
.progress-bar { height: 6px; background: #f3f4f6; border-radius: 10px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--blue-pri); border-radius: 10px; }

.mini-chart {
    position: relative;
    height: 120px; /* This will now be the "boss" of the height */
    width: 100%;
}
/* 1. Define the fill color */
.progress-fill {
    height: 100%;
    background-color: #2563eb; /* This is the specific blue from the image */
    border-radius: 10px;
    transition: width 0.5s ease-in-out; /* Makes the bar load smoothly */
}

/* 2. Ensure the container bar is visible */
.progress-bar {
    height: 6px;
    background-color: #f3f4f6; /* Light gray background for the empty part */
    border-radius: 10px;
    overflow: hidden;
    margin-top: 4px;
}

/* 3. Style the labels to match the image */
.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #4b5563;
    margin-bottom: 4px;
}

.stats b {
    margin-left: 8px;
    color: #1f2937;
    font-weight: 600;
}

/* Container grid split between main area and sidebar */
.charts-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; /* 2 parts for table/charts, 1 part for sidebar */
    gap: 20px;
    align-items: start;
}

.main-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Keeps the first two charts side-by-side */
.top-charts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Table styling */
.table-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

th {
    text-align: left;
    font-size: 12px;
    color: #000;
    padding: 12px 8px;
    border-bottom: 1px solid #f0f0f0;
    background: #f9fafb;
}

td {
    padding: 12px 8px;
    font-size: 10px;
    border-bottom: 1px solid #f9fafb;
}

.search-input {
    padding: 6px 12px;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    font-size: 12px;
}

.table-filters {
    display: flex;
    gap: 10px;
}

/* Badges */
.badge { padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 500; }
.badge-green { background: #e8f7ee; color: #10b981; }
.badge-yellow { background: #fffbeb; color: #f59e0b; }
/* Cell styling for images and text */
.asset-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.asset-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    background: #f8fafc;
    border-radius: 4px;
    padding: 2px;
}

/* Rounded Tags (Category) */
.tag {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}
.tag-blue { background: #e0e7ff; color: #4338ca; }
.tag-purple { background: #f3e8ff; color: #7e22ce; }
.tag-green { background: #ecfdf5; color: #065f46; }

/* Status Pills */
.pill {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}
.pill-green { background: #dcfce7; color: #166534; }
.pill-orange { background: #ffedd5; color: #9a3412; }
.pill-red { background: #fee2e2; color: #991b1b; }

/* Action Button Styles */
.btn-more {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    color: #64748b;
    cursor: pointer;
    padding: 2px 8px;
}

/* Pagination & Footer Layout */
.table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    font-size: 13px;
    color: #000;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 6px;
}

.page-num, .page-arrow {
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 4px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 13px;
    color: #1e293b;
}

.page-num.active {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

.icon-btn-filter {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 6px;
    display: flex;
    align-items: center;
    color: #64748b;
}




/* Hamburger button */
.hamburger {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #fff;
    margin-right: 16px;
}

/* Sidebar collapsed mode */
.sidebar.collapsed {
    width: 80px;
    transition: 0.3s ease;
}

.sidebar.collapsed .logo span {
    display: none; /* hide name */
}

.sidebar.collapsed .nav-item span {
    display: none; /* hide menu text */
}

.sidebar.collapsed .nav-item {
    justify-content: center;
}

.sidebar.collapsed .nav-item i {
    margin-right: 0;
}

.sidebar,
.sidebar * {
    transition: 0.3s ease;
}
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;       /* ✅ Fix: everything is aligned in one row */
    margin-bottom: 32px;
}

/* Wrapper for hamburger + dashboard text */
.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Hamburger button */
.hamburger {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color:#fff;
}

/* --- Responsive Mobile View --- */

@media (max-width: 768px) {
    /* 1. Sidebar Behavior: Overlay instead of push */
    .sidebar {
        position: fixed;
        left: -280px; /* Hide completely by default */
        z-index: 1000;
        height: 100vh;
        transition: 0.3s ease;
    }

    .sidebar.collapsed {
        left: 0; /* Show when 'collapsed' class is toggled (acting as 'active') */
        width: 280px;
    }

    .sidebar.collapsed .logo span, 
    .sidebar.collapsed .nav-item span {
        display: inline; /* Keep text visible on mobile when open */
    }

    /* 2. Main Content: Remove padding/margin */
    .dashboard-container {
        padding: 20px;
        width: 100%;
    }

    /* 3. Header: Stack text or adjust button */
    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .header-text h1 {
        font-size: 22px;
    }

    .add-btn {
        width: 100%; /* Make button full width on small screens */
        text-align: center;
    }

    /* 4. Grids: Switch everything to 1 column */
    .stats-grid {
        grid-template-columns: 1fr; /* Single column stats */
    }

    .charts-grid, 
    .bottom-grid {
        grid-template-columns: 1fr; /* Stack charts and tables */
        margin-top: 20px;
    }

  

    table {
        min-width: 600px; /* Ensures table doesn't squish too much */
    }
}





/* 1. System View (Desktop): Hide the close button */
.close-sidebar {
    display: none;
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -280px; 
        z-index: 1000;
        height: 100vh;
        width: 280px;
        transition: 0.3s ease;
    }

    /* CHANGE THIS: Match the JS class 'mobile-open' */
    .sidebar.mobile-open {
        left: 0; 
    }

    .sidebar.mobile-open .logo span, 
    .sidebar.mobile-open .nav-item span {
        display: inline; 
    }

    /* 2. Mobile View: Show the close button */
    .close-sidebar {
        display: block;
        cursor: pointer;
        padding: 10px;
        text-align: right;
    }
}
#close-sidebar {
    cursor: pointer;
    position: relative;
    z-index: 9999; /* Higher than the sidebar itself */
}
@media (min-width: 992px) {
    .sidebar {
        display: block !important; /* Force visibility on Desktop */
        position: static; /* Or however your desktop layout is built */
    }
}




.recent-activity-card {
    margin-top: 20px;
}

.activity-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.activity-item .icon {
    font-size: 20px;
    margin-right: 10px;
}

.activity-text small {
    display: block;
    color: #777;
    font-size: 11px;
    margin-top: 2px;
}

.activity-item .time {
    margin-left: auto;
    font-size: 12px;
    color: #888;
}

/* Upcoming Maintenance */
.up-item {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.up-left {
    display: flex;
    align-items: center;
}

.item-icon {
    font-size: 24px;
    margin-right: 10px;
}
/* Containers */
.exact-ra, .exact-um {
    padding: 25px;
    margin-top: 18px;
}

/* Icons (Colored Circular Backgrounds) */
.icon-circle, .um-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-right: 12px;
    font-size: 18px;
}

.blue { background: #4285F4; }
.yellow { background: #F4B400; }
.teal { background: #00ACC1; }
.purple { background: #8E24AA; }
.red { background: #DB4437; }

/* Recent Activities Rows */
.ra-row {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #efefef;
}

.ra-row:last-child {
    border-bottom: none;
}

.ra-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ra-info span {
    font-size: 12px;
    color: #777;
    margin-top: 2px;
}

.ra-time {
    font-size: 12px;
    color: #666;
    white-space: nowrap;
    margin-left: 10px;
}

/* Upcoming Maintenance */
.um-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.um-view {
    font-size: 13px;
    color: #4285F4;
    font-weight: 600;
}

.um-row {
    display: flex;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
}

.um-row:last-child {
    border-bottom: none;
}

.um-info {
    display: flex;
    flex-direction: column;
}

.um-info span {
    font-size: 12px;
    color: #777;
    margin-top: 2px;
}



@media screen and (max-width: 412px) {
    .top-charts {
        grid-template-columns: 1fr;
        gap: 16px; /* you can keep 20px if you want */
    }
}
/* =========================================================
   MOBILE VIEW (Responsive Layout)
   ========================================================= */

@media (max-width: 991px) {

    /* ----- Sidebar collapse to icon-only ----- */
    .sidebar {
        width: 80px;
        padding: 20px 8px;
    }

    .logo {
        justify-content: center;
        padding-left: 0;
    }

    .logo-img {
        width: 36px;
    }

    .logo span {
        display: none; /* Hide long company name */
    }

    .nav-item {
        justify-content: center;
        padding: 12px 0;
    }

    .nav-item i {
        margin-right: 0;
    }

    .nav-item span {
        display: none; /* Hide menu text */
    }

    .stats-card-sidebar {
        display: none; /* Hide card on smaller screens */
    }

    /* Main content expands fully */
    .dashboard-container {
        padding: 24px;
    }

    .header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .header-text h1 {
        font-size: 22px;
    }
}

/* =========================================================
   VERY SMALL SCREENS (Phones < 600px)
   ========================================================= */
@media (max-width: 600px) {

    .dashboard-container {
        padding: 18px;
        overflow-x: hidden;
    }

    .header-text h1 {
        font-size: 20px;
    }

    .header-text p {
        font-size: 14px;
    }

    .add-btn {
        width: 100%;
        text-align: center;
        padding: 12px;
        margin-top: 10px;
    }

    /* Improve spacing of cards, tables, forms */
    .card,
    .stats-card,
    .small-box {
        margin-bottom: 16px;
    }
}

/* =========================================================
   ULTRA-SMALL DEVICES (< 400px)
   ========================================================= */
@media (max-width: 400px) {

    .header {
        margin-bottom: 20px;
    }

    .header-text h1 {
        font-size: 18px;
    }

    .add-btn {
        font-size: 14px;
        padding: 10px;
    }
}

/* ==========================================
   📱 MOBILE VIEW FOR CHARTS (TABLETS < 991px)
   ========================================== */
@media (max-width: 991px) {

    /* Grid becomes 2 columns */
    .charts-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .chart-card {
        padding: 16px;
    }

    .card-header h3 {
        font-size: 13px;
    }

    .time-select {
        font-size: 11px;
        padding: 4px 6px;
    }

    /* Doughnut chart wrapper adjusts */
    .doughnut-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .chart-container {
        width: 140px;
        height: 140px;
    }

    .center-text .total-count {
        font-size: 18px;
    }

    .center-text .total-label {
        font-size: 11px;
    }

    /* Legends smaller for tablet view */
    .custom-legend {
        width: 100%;
    }

    .legend-item {
        margin-bottom: 10px;
    }

    .legend-item .val {
        font-size: 12px;
    }

    .mini-chart {
        height: 100px;
    }
}


/* ==========================================
   📱 SMALL PHONE VIEW (< 600px)
   ========================================== */
@media (max-width: 600px) {

    /* Single column layout */
    .charts-grid {
        grid-template-columns: 1fr;
    }

    .chart-card {
        padding: 14px 16px;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .doughnut-wrapper {
        flex-direction: column;
        gap: 16px;
    }

    /* Reduce chart size */
    .chart-container {
        width: 120px;
        height: 120px;
    }

    .center-text .total-count {
        font-size: 16px;
    }

    .custom-legend {
        font-size: 11px;
    }

    .legend-item {
        margin-bottom: 8px;
    }

    .progress-item {
        margin-top: 12px;
    }

    .mini-chart {
        height: 90px;
    }
}


/* ==========================================
   📱 EXTRA-SMALL (< 400px)
   ========================================== */
@media (max-width: 400px) {

    .chart-card {
        padding: 12px 14px;
    }

    .chart-container {
        width: 100px;
        height: 100px;
    }

    .center-text .total-count {
        font-size: 14px;
    }

    .center-text .total-label {
        font-size: 10px;
    }

    .legend-item {
        font-size: 10px;
    }

    .mini-chart {
        height: 80px;
    }
}
@media (max-width: 600px) {
    .chart-card {
        padding: 14px 16px;
        width: 100%;        /* fills available space */
        max-width: 357px;   /* prevents oversized cards */
       
    }
}

@media (max-width: 768px) {

  .table-card {
    overflow: hidden !important;
  }

  .table-scroll {
    width: 100vw;              /* KEY FIX */
    overflow-x: auto !important;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    display: block;
  }

  .table-scroll table {
    min-width: 1100px;
    display: inline-table;     /* KEY FIX */
  }

}
.table-card,
.table-scroll {
  min-width: 0 !important;
}































/*Stock Inventory*/
/* 4-Column Metrics Grid Layout */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.metric-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

/* Dynamic Card Icon Styling */
.metric-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.bg-light-blue { background-color: #2563eb; }
.text-blue { color: #fff; }

.bg-light-orange { background-color: #ea580c; }
.text-orange { color: #fff; }
.metric-label.text-orange-label { color: #ea580c; }

.bg-light-red { background-color: #dc2626; }
.text-red { color: #fff; }
.metric-label.text-red-label { color: #dc2626; }

.bg-light-green { background-color: #059669; }
.text-green { color: #fff; }
.metric-label.text-green-label { color: #059669; }

/* Metric Typography Rules */
.metric-info {
    display: flex;
    flex-direction: column;
}

.metric-label {
    font-size: 17px;
    font-weight: 500;
    color: #2563eb; /* Defaults to blue like 'Total Items' */
    margin-bottom: 4px;
}

.metric-value {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1;
    margin-bottom: 4px;
}

.metric-subtext {
    font-size: 12px;
    color: #000;
}

.table-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-top: 20px;
    
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.card-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.table-filters {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-box {
    display: flex;
    align-items: center;
    background: #f1f3f6;
    padding: 6px 12px;
    border-radius: 6px;
}

.search-box i {
    color: #777;
    margin-right: 6px;
}

.search-input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
}

.btn-filter, .btn-add-item {
    border: none;
    padding: 8px 14px;
    font-size: 14px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-filter {
    background: #e8efff;
    color: #2b5cff;
}

.btn-add-item {
    background: #2b5cff;
    color: #fff;
}

.table-scroll {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

thead {
    background: #f5f6f8;
}

thead th {
    padding: 12px 10px;
    text-align: left;
    font-size: 14px;
    color: #fff;
    background-color:#0047cc;
}

tbody td {
    padding: 12px 10px;
    font-size: 14px;
    border-bottom: 1px solid #eee;
}

tbody tr:hover {
    background: #f9fbff;
}

.item-name-cell {
    font-weight: 500;
    color: #333;
}

.status-pill {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-in-stock {
    background: #d4f8e8;
    color: #0a8a44;
}

.status-low-stock {
    background: #ffe7d9;
    color: #d25b1f;
}

.btn-action-dots {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #666;
}

.btn-action-dots:hover {
    color: #000;
}


/* Responsive Adjustments */
@media (max-width: 768px) {
    .table-filters {
        flex-wrap: wrap;
        justify-content: flex-end;
    }
}

.pagination {
    display: flex;
    gap: 4px;
    align-items: center;
}

.page-num, .page-arrow {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #475569;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.page-num.active {
    background: #4f46e5;
    color: #ffffff;
    border-color: #4f46e5;
    font-weight: 600;
}
/* ================================
   RESPONSIVE MEDIA QUERIES
================================ */

/* 📌 Large Tablets (≤ 1024px) */
@media (max-width: 1024px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .table-filters {
        gap: 8px;
    }

    .search-input {
        width: 180px;
    }
}

/* 📌 Tablets & Large Phones (≤ 768px) */
@media (max-width: 768px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .metric-card {
        padding: 16px;
        gap: 12px;
    }

    .metric-value {
        font-size: 20px;
    }

    .table-card {
        padding: 18px;
    }

    .table-filters {
        flex-wrap: wrap;
    }

    .search-input {
        width: 100%;
    }

    .btn-filter,
    .btn-add-item {
        padding: 6px 14px;
        font-size: 13px;
    }
}

/* 📌 Mobile (≤ 576px) */
@media (max-width: 576px) {
    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .metric-label {
        font-size: 16px;
    }

    .metric-value {
        font-size: 22px;
    }

    .table-card .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .table-filters {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .btn-filter,
    .btn-add-item {
        width: 100%;
        justify-content: center;
    }

    .search-input {
        width: 100%;
    }
}

/* 📌 Extra Small Phones (≤ 420px) */
@media (max-width: 420px) {
    .metric-card {
        padding: 14px;
    }

    .metric-value {
        font-size: 20px;
    }

    .metric-icon-box {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }
}





















/* New Grid Container */
.stat-deck {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    font-family: system-ui, -apple-system, sans-serif;
    padding: 20px;
    background-color:#fff;
}

/* New Card Component */
.summary-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease-in-out;
    
    /* Required to position and contain the bubble */
    position: relative;
    overflow: hidden; 
}

/* --- THE VISIBLE CORNER BUBBLE --- */
.summary-panel::after {
    content: '';
    position: absolute;
    top: -25px;
    right: -25px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    
    /* Using a semi-transparent white gradient to give it a glass-bubble look */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.15));
    border: 1px solid rgba(255, 255, 255, 0.3);
    
    /* Ensures the bubble layers neatly and doesn't steal button clicks */
    pointer-events: none; 
    z-index: 1;
    
    /* Smooth floating animation */
    animation: floatBubble 5s ease-in-out infinite alternate;
}

/* Forces text and your badges to stay on top of the floating bubble */
.panel-body, .panel-badge {
    position: relative;
    z-index: 2;
}

.summary-panel:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

/* Content wrapper */
.panel-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.panel-title {
    font-size: 14px;
    font-weight: 600;
}

.panel-amount {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
}

.panel-trend {
    font-size: 12px;
    font-weight: 500;
}

/* Icon Box Badge */
.panel-badge {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

/* --- THEME CONFIGURATIONS --- */

/* Azure (Blue) */
.azure-theme { background-color:#2196f342; }
.azure-theme .panel-title, .azure-theme .panel-trend, .azure-theme .panel-badge { color: #2563eb; }
.azure-theme .panel-badge { background-color: #dbeafe; }

/* Emerald (Green) */
.emerald-theme { background-color: #4caf507a; }
.emerald-theme .panel-title, .emerald-theme .panel-trend, .emerald-theme .panel-badge { color: #16a34a; }
.emerald-theme .panel-badge { background-color: #dcfce7; }

/* Amethyst (Purple) */
.amethyst-theme { background-color: #3f51b570; }
.amethyst-theme .panel-title, .amethyst-theme .panel-trend, .amethyst-theme .panel-badge { color: #7c3aed; }
.amethyst-theme .panel-badge { background-color: #ede9fe; }

/* Amber (Orange) */
.amber-theme { background-color: #9c27b06e; }
.amber-theme .panel-title, .amber-theme .panel-trend, .amber-theme .panel-badge { color: #9C27B0;; }
.amber-theme .panel-badge { background-color: #fff; }


/* --- BUBBLE ANIMATION KEYFRAMES --- */
@keyframes floatBubble {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-8px, 8px) scale(1.05); /* Soft drifting motion */
    }
    100% {
        transform: translate(2px, -2px) scale(0.98);
    }
}










/* Unique Outer Grid Wrapper */
.overview-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    font-family: system-ui, -apple-system, sans-serif;
    padding: 20px;
    background-color: #fff;
}

/* Redesigned Card Component with Original Layout/Gradient */
.kpi-tile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.15);
    transition: all 0.2s ease-in-out;
    
    /* Intact original color gradient */
    background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
    color: #ffffff; 
    
    position: relative;
    overflow: hidden; 
}

.kpi-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 24px rgba(79, 70, 229, 0.25);
}

/* --- GLOSSY CORNER BUBBLE --- */
.kpi-tile::after {
    content: '';
    position: absolute;
    top: -25px;
    right: -25px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.2);
    
    pointer-events: none; 
    z-index: 1;
    animation: driftBubble 5s ease-in-out infinite alternate;
}

/* Ensures content layers securely above the moving background layer */
.tile-main, .tile-icon-holder {
    position: relative;
    z-index: 2;
}

/* Text Container Stack */
.tile-main {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tile-header {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.tile-number {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
}

.tile-footer {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

/* Translucent Icon Box styling */
.tile-icon-holder {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    backdrop-filter: blur(4px);
}

/* --- UPDATED ANCHOR FOR RENAME ANIMATION --- */
@keyframes driftBubble {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-8px, 8px) scale(1.05);
    }
    100% {
        transform: translate(2px, -2px) scale(0.98);
    }
}
















/* --- Google Fonts Import for a Modern Look --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* --- Smooth Modal Backdrop --- */
.modal-overlay {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.45); /* Deep slate drop tone */
    backdrop-filter: blur(8px); /* Modern frosted glass effect */
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    display: flex;
}

/* --- Premium Modal Box Container --- */
.modal-box {
    background: #ffffff;
    width: 92%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 32px;
    border-radius: 16px; /* Smooth curved corners */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    font-family: 'Inter', sans-serif;
    border: 1px solid #f1f5f9;
}

/* Custom Scrollbar for the inner modal container */
.modal-box::-webkit-scrollbar {
    width: 6px;
}
.modal-box::-webkit-scrollbar-track {
    background: #f1f5f9;
}
.modal-box::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

/* --- Clean Dashboard Header --- */
/* Remove top padding from the modal-box to allow the header to span full width */
.modal-box {
    padding: 0; /* We will apply padding to the form and header separately */
   
}

/* Style the Header */
.modal-box h3 {
    margin: 0;
    padding: 24px 32px; /* Consistent spacing */
    background: #0047cc; /* Your brand blue */
    color: #ffffff;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* Add padding back to the form so the content aligns with the header */
.modal-box-form {
    padding: 32px;
}

/* --- Group Wrapper Layout --- */
.form-group {
    margin-bottom: 20px;
}

/* --- Minimalist Form Typography --- */
.modal-box label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: #475569; /* Slate 600 */
    font-size: 13px;
    letter-spacing: 0.01em;
}

/* --- Shared Input Field Styling --- */
.modal-box input[type="text"], .modal-box input[type="number"], .modal-box input[type="date"], .modal-box select, .modal-box textarea {
    width: 100%;
    padding: 11px 16px;
    border: 1px solid #3F51B5;
    border-radius: 7px;
    box-sizing: border-box;
    font-size: 14px;
    color: #1e293b;
    /* background-color: #f8fafc; */
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

/* Modern Input Hover & Focus states */
.modal-box input:hover,
.modal-box select:hover,
.modal-box textarea:hover {
    border-color: #cbd5e1;
    background-color: #f1f5f9;
}

.modal-box input:focus,
.modal-box select:focus,
.modal-box textarea:focus {
    outline: none;
    background-color: #ffffff;
    border-color: #10b981; /* Premium Emerald Accent Green */
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12); /* Balanced Focus glow */
}

/* --- Styled File Custom Upload Area --- */
.modal-box input[type="file"] {
    width: 100%;
    font-size: 14px;
    color: #64748b;
    box-sizing: border-box;
    padding: 10px;
    /* background: #f8fafc; */
    border: 1px solid #3F51B5;
    border-radius: 10px;
    cursor: pointer;
}
.modal-box input[type="file"]::file-selector-button {
    background: #e2e8f0;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    color: #334155;
    font-weight: 500;
    margin-right: 10px;
    cursor: pointer;
    transition: background 0.2s;
}
.modal-box input[type="file"]::file-selector-button:hover {
    background: #cbd5e1;
}

/* Textarea Fine Tuning */
.modal-box textarea {
    resize: vertical;
    min-height: 90px;
}

/* --- Floating Actions Footer --- */
.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.modal-actions button {
    padding: 11px 24px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

/* Save Action Button (Emerald Green Theme) */
.btn-save {
    background-color: #0047cc;
    color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.2);
}

.btn-save:hover {
    background-color: #059669;
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.3);
    transform: translateY(-1px);
}

.btn-save:active {
    transform: translateY(0);
}

/* Dismiss Close Button (Neutral Slate Theme) */
.btn-close {
    background-color: #f1f5f9;
    color: #475569;
}

.btn-close:hover {
    background-color: #e2e8f0;
    color: #1e293b;
}

/* --- Desktop / System View Layout System --- */
@media (min-width: 992px) {
    .modal-box {
        max-width: 950px; /* Widened slightly to let 3 columns breathe comfortably on standard systems */
    }

    .modal-box-form {
        display: grid;
        grid-template-columns: repeat(3, 1fr); /* Exactly 3 items per row on system views */
        column-gap: 24px;
        row-gap: 8px;
    }
    
    /* Spans across all 3 grid columns at the bottom */
    .full-width-field {
        grid-column: span 3;
    }
}

/* --- Tablet View Layout System --- */
@media (min-width: 640px) and (max-width: 991px) {
    .modal-box-form {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* Drops smoothly to 2 per row on smaller tablets */
        column-gap: 20px;
    }
    .full-width-field {
        grid-column: span 2;
    }
}



/* Close Icon Button */
.modal-close-icon{
    position: absolute;
    top: 15px;
    right: 15px;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: red;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

/* Hover Effect */
.modal-close-icon:hover{
    background: #fff;
    color: #0047cc;
    transform: rotate(90deg);
}

/* Required for positioning */
.modal-box{
    position: relative;
}























/* ASI New – Glass + Premium Header Design */

.form-container{
    max-width: 900px;
    margin: 40px auto;
    background: #ffffff;
    padding: 35px 40px;
    border-radius: 22px;
    border: 1px solid #d9d9d9;
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}

/* Decorative top curve */
.form-container::before{
    content:"";
    position:absolute;
    top:-15px;
    left:50%;
    transform:translateX(-50%);
    width:130%;
    height:140px;
    background:linear-gradient(135deg,#1a3da8,#3b5bdf);
    border-bottom-left-radius:50%;
    border-bottom-right-radius:50%;
    z-index:0;
}

/* Heading */
.form-container h2{
    position: relative;
    text-align:center;
    margin-bottom:30px;
    color:#fff;
    font-size:28px;
    font-weight:800;
    letter-spacing:1.5px;
    padding-top:0px;
    z-index: 2;
}

/* Gold underline bar */
.form-container h2::after{
    content:"";
    display:block;
    width:120px;
    height:4px;
    background:#fff;
    margin:12px auto 0;
    border-radius:6px;
}

/* Grid layout */
.form-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:15px;
    margin-top:10px;
}

/* Input group */
.form-group{
    display:flex;
    flex-direction:column;
}

.form-group label{
    margin-bottom:6px;
    font-weight:700;
    color:#000;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea{
    padding:12px 14px;
    background:#fff;
    font-size:12px;

    /* Your shape */
    border:1px solid #000;
    border-radius:0;
    clip-path: polygon(6% 0%, 100% 0%, 100% 80%, 100% 100%, 0% 100%, 0% 20%);

    /* Double-line only on 2 sides */
    box-shadow:
        2px 2px 0 #000,      /* FIRST LINE */
        4px 4px 0 #7fa4ff;      /* SECOND LIGHT LINE */

    transition:0.3s;
}

/* Focus Effect */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus{
    border-color:#000;

    box-shadow:
        2px 2px 0 #1a3da8,
        4px 4px 0 #97b7ff,
        0 0 8px rgba(26,61,168,0.4);
}
/* Submit button */
.submit-btn{
    width:22%;
    margin:25px auto 0 auto;
    padding:14px;
    background:#1a3da8;
    color:#fff;
    border:none;
    border-radius:12px;
    font-size:17px;
    cursor:pointer;
    font-weight:700;
    transition:0.3s;

    display:block; /* ⭐ THIS IS THE KEY FIX */
}

.submit-btn:hover{
    background:#142f7d;
    transform:translateY(-2px);
    box-shadow:0 10px 18px rgba(26,61,168,0.25);
}









/*ASI View*/
.table-wrapper {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    width: 95%;
    margin: 25px auto;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.title {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
}

.title .bar {
    width: 6px;
    height: 24px;
    background: #3366ff;
    margin-right: 10px;
    border-radius: 3px;
}

.master-table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
}

.master-table thead {
    background: #4c75ff;
    color: #fff;
}

.master-table th {
    padding: 12px;
    font-weight: 600;
    text-align: left;
}

.master-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    color: #333;
}

/* Row hover */
.master-table tbody tr:hover {
    background: #f0f4ff;
}

/* Status Badges */
.badge {
    padding: 4px 10px;
    font-size: 13px;
    border-radius: 15px;
    font-weight: 600;
}

.badge.active {
    background: #d4ffdf;
    color: #0d8a2b;
}

.badge.pending {
    background: #ffeccb;
    color: #c4810f;
}

/* Icons */
.eye-icon {
    font-size: 18px;
    color: #222;
    cursor: pointer;
}

.eye-icon:hover {
    color: #005ce6;
}

.tick-icon {
    font-size: 18px;
    color: #0047cc;
}
.title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 26px;
    font-weight: 700;
    color: #0047cc;
    margin-bottom: 20px;
}
/* CENTER the entire heading */
.center-title {
    justify-content: center;
}

.center-title i {
    font-size: 24px;
    color:#0047cc;
}



.edit-icon {
    color: #0037a3 ;
    cursor: pointer;
    transition: 0.3s;
}

.edit-icon:hover {
    transform: scale(1.2);
    color: red;
}











/* Overlay Background */
.popup-overlay-box{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Modal Container */
.popup-container-box{
  width: 90%;
  max-width: 900px;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  animation: popupFadeIn 0.3s ease;
}

/* Header */
.popup-header-bar{
  background: #0047cc;
  color: #fff;
  padding: 0px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Close Button */
.popup-close-btn{
  font-size: 24px;
  cursor: pointer;
}

/* Body */
.popup-body-content{
  padding: 20px;
  max-height: 70vh;
  overflow-y: auto;
}

/* Grid Layout */
.popup-form-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

/* Label */
.popup-form-group label{
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 5px;
  display: block;
}

/* Inputs */
.popup-form-group input,
.popup-form-group select,
.popup-form-group textarea{
  width: 100%;
  padding: 8px;
  border: 1px solid #0047cc;
  border-radius: 6px;
}

/* Full Width */
.popup-full-width{
  grid-column: span 2;
}

/* Animation */
@keyframes popupFadeIn{
  from {transform: scale(0.9); opacity: 0;}
  to {transform: scale(1); opacity: 1;}
}

@media (max-width: 480px) {

    /* TABLE */
    .table-wrapper {
        width: 100%;
        padding: 10px;
        border-radius: 8px;
        overflow-x: auto;
    }

    .master-table {
        min-width: 600px;
    }

    .master-table th,
    .master-table td {
        padding: 10px;
        font-size: 13px;
    }

    /* TITLE */
    .title {
        font-size: 18px;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .title .bar {
        height: 18px;
    }

    /* ICONS */
    .eye-icon,
    .tick-icon {
        font-size: 16px;
    }

    /* POPUP */
    .popup-container-box {
        width: 95%;
        border-radius: 8px;
    }

    .popup-header-bar {
        padding: 10px 15px;
    }

    .popup-header-bar h2 {
        font-size: 18px;
    }

    .popup-body-content {
        padding: 15px;
        max-height: 75vh;
    }

    .popup-form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .popup-form-group input,
    .popup-form-group select,
    .popup-form-group textarea {
        font-size: 13px;
        padding: 8px;
    }

    /* MAKE POPUP FULL SCREEN FEEL */
    .popup-container-box {
        height: 90vh;
        overflow: hidden;
    }

    .popup-body-content {
        overflow-y: auto;
    }
}



@media (max-width: 480px) {

    /* TABLE */
    .table-wrapper {
        width: 100%;
        padding: 10px;
        border-radius: 8px;
        overflow-x: auto;
    }

    .master-table {
        min-width: 600px;
    }

    .master-table th,
    .master-table td {
        padding: 10px;
        font-size: 13px;
    }

    /* TITLE */
    .title {
        font-size: 18px;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .title .bar {
        height: 18px;
    }

    /* ICONS */
    .eye-icon,
    .tick-icon {
        font-size: 16px;
    }

    /* POPUP */
    .popup-container-box {
        width: 95%;
        border-radius: 8px;
    }

    .popup-header-bar {
        padding: 10px 15px;
    }

    .popup-header-bar h2 {
        font-size: 18px;
    }

    .popup-body-content {
        padding: 15px;
        max-height: 75vh;
    }

    .popup-form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .popup-form-group input,
    .popup-form-group select,
    .popup-form-group textarea {
        font-size: 13px;
        padding: 8px;
    }

    /* MAKE POPUP FULL SCREEN FEEL */
    .popup-container-box {
        height: 90vh;
        overflow: hidden;
    }

    .popup-body-content {
        overflow-y: auto;
    }
}




.table-responsive{
  width: 100%;
  overflow-x: auto;   /* allow scroll ONLY if needed */
}

.table-responsive table{
  width: 100%;
  min-width: 100%;   /* prevents overflow explosion */
}













/* OUTER WRAPPER */
.kpi-split-wrapper{
    max-width:1200px;
    margin:auto;
    padding:25px;
}

/* TITLE BAR */
.kpi-title-bar{
    background:linear-gradient(135deg,#1a3da8,#3b5bdf);
    padding:15px 20px;
    border-radius:12px;
    color:#fff;
    margin-bottom:20px;
}

.kpi-title-bar h2{
    margin:0;
    font-size:20px;
}

/* SPLIT CONTAINER */
.kpi-split-container{
    display:flex;
    gap:20px;
}

/* LEFT + RIGHT PANELS */
.kpi-left,
.kpi-right{
    flex:1;
    background:#3f51b51c;
    padding:18px;
    border-radius:14px;
    box-shadow:0 6px 18px rgba(0,0,0,0.06);
}

/* GRID INSIDE PANELS */
.kpi-grid{
    display:grid;
    grid-template-columns:repeat(1, minmax(0,1fr));
    gap:15px;
    margin-bottom:15px;
}
/* FIELD */
.kpi-field label{
    display:block;
    font-size:12px;
    margin-bottom:5px;
    color:#000;
    font-weight:600;
}

/* INPUT */
.kpi-field input{
    width:100%;
    padding:10px 12px;
    border:2px solid #1a3da8;
    border-radius:8px;
    outline:none;
    transition:0.3s;
}

/* FOCUS */
.kpi-field input:focus{
    border-color:#1a3da8;
    box-shadow:0 0 0 3px rgba(26,61,168,0.15);
}

/* HIGHLIGHT */
.kpi-highlight input{
    border:2px solid #1a3da8;
}

/* RESPONSIVE */
@media(max-width:900px){
    .kpi-split-container{
        flex-direction:column;
    }

    .kpi-grid{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:600px){
    .kpi-grid{
        grid-template-columns:1fr;
    }
}









/*project new*/
.metric-panel{
    width:100%;
  max-width: 752px;
    margin-left: 31px;
    background:#fff;
    padding:20px;
    border-radius:12px;
    box-shadow:0 6px 18px rgba(0,0,0,0.08);
}

/* each row */
.metric-item{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:15px;
    padding:10px 0;
    border-bottom:1px solid #eee;
}

.metric-item:last-child{
    border-bottom:none;
}

/* label */
.metric-title{
    flex:1;
    font-size:14px;
    font-weight:600;
    color:#333;
}

/* input */
.metric-item input{
    width:160px;
    padding:8px 10px;
   border: 2px solid #1a3da8;
    border-radius:8px;
    text-align:right;
    font-weight:600;
    outline:none;
    transition:0.3s;
}

.metric-item input:focus{
    border-color:#1a3da8;
    box-shadow:0 0 0 3px rgba(26,61,168,0.15);
}

/* responsive */
@media(max-width:600px){
    .metric-item{
        flex-direction:column;
        align-items:flex-start;
    }

    .metric-item input{
        width:100%;
    }
}








/* Header */
.team-matrix-header{
    background:linear-gradient(135deg,#4B0082,#6a11cb);
    padding:14px 18px;
}

.team-matrix-header h2{
    color:#fff;
    font-size:18px;
    margin:0;
}

/* Table wrapper */
.table-wrapper{
    padding:15px;
    overflow-x:auto;
}

/* Table */
.team-matrix-table{
    width:100%;
    border-collapse:collapse;
    min-width:700px;
}

/* Header cells */
.team-matrix-table thead th{
    background:#1a3da8;
    color:#fff;
    text-align:left;
    padding:12px 14px;
    font-size:14px;
    border-bottom:2px solid #ddd;
}

/* Body cells */
.team-matrix-table tbody td{
    padding:12px 14px;
    font-size:14px;
    color:#444;
    border-bottom:1px solid #eee;
}

/* Hover effect */
.team-matrix-table tbody tr:hover{
    background:#f9f9ff;
    transition:0.2s;
}

/* First column highlight */
.team-matrix-table tbody td:first-child{
    font-weight:600;
    color:#222;
}

/* Responsive */
@media(max-width:768px){
    .team-matrix-table{
        min-width:600px;
    }
}



/* =========================
   TABLET VIEW (≤ 992px)
========================= */
@media (max-width: 992px) {

    .metric-panel{
        max-width: 100%;
        margin-left: 0;
        padding: 18px;
    }

    .metric-item input{
        width: 140px;
    }

    .team-matrix-table{
        min-width: 650px;
    }
}

/* =========================
   MOBILE VIEW (≤ 768px)
========================= */
@media (max-width: 768px) {

    .metric-panel{
        padding: 15px;
        border-radius: 10px;
    }

    .metric-item{
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .metric-title{
        font-size: 13px;
    }

    .metric-item input{
        width: 100%;
        text-align: left;
    }

    .team-matrix-header h2{
        font-size: 16px;
    }

    .team-matrix-table{
        min-width: 600px;
    }

    .team-matrix-table thead th,
    .team-matrix-table tbody td{
        padding: 10px;
        font-size: 13px;
    }
}

/* =========================
   SMALL MOBILE (≤ 480px)
========================= */
@media (max-width: 480px) {

    .metric-panel{
        padding: 12px;
        border-radius: 8px;
    }

    .metric-item{
        padding: 8px 0;
    }

    .metric-title{
        font-size: 12.5px;
    }

    .metric-item input{
        font-size: 13px;
        padding: 7px 8px;
    }

    .team-matrix-header{
        padding: 12px;
    }

    .team-matrix-header h2{
        font-size: 15px;
    }

    .table-wrapper{
        padding: 10px;
    }

    .team-matrix-table{
        min-width: 550px;
    }
}

/* =========================
   MOBILE VIEW (≤ 768px)
========================= */
@media (max-width: 768px) {

    .submit-btn{
        width: 100%;
        margin: 18px 0 0 0;
        padding: 14px;
        font-size: 16px;
        border-radius: 10px;
    }
}

/* =========================
   SMALL MOBILE (≤ 480px)
========================= */
@media (max-width: 480px) {

    .submit-btn{
        width: 100%;
        margin: 15px 0 0 0;
        padding: 13px;
        font-size: 15px;
        border-radius: 8px;
    }
}

/* =========================
   TABLET VIEW (≤ 992px)
========================= */
@media (max-width: 992px) {
    .kpi-split-wrapper{
        max-width: 100%;
        padding: 20px;
    }
}

/* =========================
   MOBILE VIEW (≤ 768px)
========================= */
@media (max-width: 768px) {
    .kpi-split-wrapper{
        max-width: 100%;
        padding: 15px;
    }
}

/* =========================
   SMALL MOBILE (≤ 480px)
========================= */
@media (max-width: 480px) {
    .kpi-split-wrapper{
        max-width: 100%;
        padding: 12px;
    }
}
































.workflow-card{
    background:#fff;
    border-radius:16px;
    padding:25px;
    margin-bottom:25px;
    box-shadow:0 5px 20px rgba(0,0,0,.08);
    border-top:5px solid #1a3da8;
}

.workflow-title{
    margin-bottom:20px;
}

.workflow-title h3{
    color:#1a3da8;
    margin:0;
    font-size: 18px;
}

.workflow-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:18px;
}

.field-box{
    display:flex;
    flex-direction:column;
}

.field-box label{
    font-size:13px;
    font-weight:600;
    color:#000;
    margin-bottom:6px;
}

.field-box input,
.field-box textarea{
    width:100%;
    padding:12px;
    border:2px solid #1a3da8;
}

.field-box textarea{
    min-height:120px;
    resize:vertical;
}

.full-width{
    grid-column:1/-1;
}

@media(max-width:992px){
    .workflow-grid{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:576px){
    .workflow-grid{
        grid-template-columns:1fr;
    }
}
.field-box label{
    display:block;
    min-height:20px;
    font-size:13px;
    font-weight:600;
    white-space:nowrap;
}



/* ==========================
   TABLET VIEW
========================== */
@media (max-width: 992px){

    .workflow-card{
        padding:20px;
    }

    .workflow-grid{
        grid-template-columns:repeat(2,1fr);
        gap:15px;
    }

    .workflow-title h3{
        font-size:17px;
    }

    .field-box label{
        font-size:13px;
    }

    .field-box input,
    .field-box textarea{
        padding:10px;
        font-size:13px;
    }
}


/* ==========================
   MOBILE VIEW
========================== */
@media (max-width: 768px){

    .workflow-card{
        padding:15px;
        margin-bottom:15px;
    }

    .workflow-grid{
        grid-template-columns:1fr;
        gap:12px;
    }

    .workflow-title{
        margin-bottom:15px;
    }

    .workflow-title h3{
        font-size:16px;
        text-align:center;
    }

    .field-box label{
        font-size:12px;
        white-space:normal; /* allows long labels to wrap */
        line-height:1.4;
    }

    .field-box input,
    .field-box textarea{
        padding:10px;
        font-size:13px;
    }

    .field-box textarea{
        min-height:90px;
    }

    .full-width{
        grid-column:auto;
    }
}


/* ==========================
   SMALL MOBILE VIEW
========================== */
@media (max-width: 480px){

    .workflow-card{
        padding:12px;
        border-radius:12px;
    }

    .workflow-title h3{
        font-size:15px;
    }

    .field-box label{
        font-size:12px;
        min-height:auto;
    }

    .field-box input,
    .field-box textarea{
        padding:8px;
        font-size:12px;
    }

    .field-box textarea{
        min-height:80px;
    }
}