body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'DejaVu Sans', sans-serif;
}
.main {
    flex: 1;
}
.sidebar {
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1030;
    width: 220px;
    background-color: #353535;
    color: white;
    padding-top: 60px;
}
.sidebar a {
    color: white;
    padding: 10px 15px;
    display: block;
    text-decoration: none;
}
.sidebar a:hover {
    background-color: #495057;
}
.topbar {
    height: 60px;
    padding: 0 1rem;
    background-color: black;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1040;
}
/* Sidebar */
.sidebar {
    width: 240px;
    transition: width 0.3s ease;
  }
  
  .sidebar.collapsed {
    width: 0;
    overflow: hidden;
  }
  
  /* Main content resizing */
  .main-content {
    margin-left: 240px;
    transition: margin-left 0.3s ease;
  }
  
  .main-content.expanded {
    margin-left: 0;
  }
.logout-button{
    text-decoration:none;
    color:white;
    
}
.logout-button:hover{
    color:#f0f0f0;
}
.main-content {
    margin-left: 220px;
    padding: 80px 20px 20px 20px;
    background-color: #f9f9f9;
}
.container-fluid{
    background-color: white;
}
.drop-zone {
        border: 2px dashed #212529;
        padding: 40px;
        text-align: center;
        color: #6c757d;
        background-color: #f8f9fa;
        cursor: pointer;
    }
.drop-zone.dragover {
    background-color: #e2e6ea;
    border-color: #198754;
}
.invoice-box {
        border: 1px solid #ccc;
        padding: 30px;
        background: #fff;
    }
.table td, .table th {
    vertical-align: middle;
}
.text-right { text-align: right; }
.section-title { background: #f1f1f1; font-weight: bold; padding: 6px; }
@media (max-width: 768px) {
    .sidebar {
        display: none;
    }
    .main-content {
        margin-left: 0;
    }
}


.diamond-table-wrapper h4 {
    font-weight: 700;
    color: #343a40;
}

.diamond-table-wrapper .form-select {
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    font-size: 14px;
}

.diamond-table-wrapper .form-select:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(13,110,253,.25);
}

/* ===================== TABLE ===================== */
.diamond-price-table {
    table-layout: auto; /* allow natural sizing */
    border-collapse: collapse;
    width: auto;
    min-width: 100%;
}

/* All table cells */
.diamond-price-table th,
.diamond-price-table td {
    vertical-align: middle;
    font-size: 13px;
    text-align: center;
    padding: 8px 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border: 1px solid #dee2e6;
}

/* Column group header */
.diamond-price-table thead th {
    background-color: #f8f9fa;
    font-weight: 600;
}

/* Color Group background */
.diamond-table-wrapper .bg-light {
    background-color: #f1f1f1 !important;
}

.diamond-table-wrapper th[data-color] {
    background-color: #e8f0fe;
}

/* Price cell widths */
.diamond-price-table td.price-cell {
    min-width: 110px;
    max-width: 120px;
    font-weight: 500;
}

/* ===================== SCROLL WRAPPER ===================== */
.table-scroll-wrapper {
    max-height: 600px;
    overflow: auto;
    border: 1px solid #ccc;
}

/* ===================== STICKY COLUMNS ===================== */
.diamond-price-table .sticky-col {
    position: sticky;
    background-color: #ffffff;
    z-index: 5;
}

.diamond-price-table .sticky-col-1 {
    left: 0;
    min-width: 140px;
}

.diamond-price-table .sticky-col-2 {
    left: 140px;
    min-width: 100px;
}

.diamond-price-table .sticky-col-3 {
    left: 240px;
    min-width: 100px;
}

/* ===================== STICKY HEADER ===================== */
.diamond-price-table thead tr:nth-child(1) th {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #f8f9fa;
}

.diamond-price-table thead tr:nth-child(2) th {
    position: sticky;
    top: 38px; /* Adjust to match height of first row */
    z-index: 9;
    background-color: #ffffff;
}

/* Top-left corner sticky cells */
.diamond-price-table thead tr:first-child .sticky-col-1 {
    top: 0;
    left: 0;
    z-index: 12;
    background-color: #f8f9fa;
}

.diamond-price-table thead tr:first-child .sticky-col-2 {
    top: 0;
    left: 140px;
    z-index: 12;
    background-color: #f8f9fa;
}

.diamond-price-table thead tr:first-child .sticky-col-3 {
    top: 0;
    left: 240px;
    z-index: 12;
    background-color: #f8f9fa;
}

/* ===================== MOBILE ===================== */
@media (max-width: 767.98px) {
    .diamond-table-wrapper table {
        font-size: 12px;
    }

    .diamond-table-wrapper .form-select {
        margin-bottom: 10px;
    }

    .diamond-table-wrapper h4 {
        font-size: 20px;
    }

    .diamond-price-table .sticky-col,
    .diamond-price-table thead tr:nth-child(1) th,
    .diamond-price-table thead tr:nth-child(2) th {
        position: static !important;
        left: auto !important;
        top: auto !important;
        z-index: auto !important;
    }
}


/* gold-prices.css */

.gold-price-container {
    background-color: #f9f9f9;
    padding: 30px 0;
}

.gold-price-container h4 {
    font-weight: bold;
    margin-bottom: 30px;
    color: #333;
    text-align: center;
}

.gold-price-container .table th {
    background-color: #f1f1f1;
    font-weight: 600;
    text-align: center;
}

.gold-price-container .table td {
    vertical-align: middle;
    font-size: 14px;
}

.gold-price-container .gold-icon {
    font-size: 18px;
    color: goldenrod;
}

/* invoice-preview.css */

.invoice-preview {
    font-family: DejaVu Sans, sans-serif;
    font-size: 12px;
    color: #000;
    padding: 20px;
}

.invoice-preview .header {
    text-align: center;
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 20px;
}

.invoice-preview .logo {
    text-align: center;
    margin-bottom: 20px;
}

.invoice-preview .product-info {
    overflow: hidden;
    margin-bottom: 20px;
}

.invoice-preview .product-image {
    float: left;
    margin: 0 15px 15px 0;
    max-width: 150px;
    max-height: 150px;
}

.invoice-preview table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
}

.invoice-preview th,
.invoice-preview td {
    border: 1px solid #ccc;
    padding: 5px;
    text-align: left;
}

.invoice-preview .summary td {
    border: none;
    padding: 4px;
}

.group-ef      { background-color: #fff !important; }
    .group-fg      { background-color: #f0f0f0 !important; }
    .group-gh      { background-color: #fff !important; }
    .group-hi      { background-color: #f0f0f0 !important; }
    .group-ij      { background-color: #fff !important; }
    .group-jk      { background-color: #f0f0f0 !important; }
    .diamond-size{
        background-color: #909090 !important;
        min-width: 95px;
    }

    .clarity-head,
    .price-cell {
        transition: background-color 0.3s ease;
    }
    .clarity-head{
        background-color: #f0f0f0 !important;
    }
