/* ===================================
   Golds ERP - Base Styles
   =================================== */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 16px;
}

body {
    margin: 0;
    line-height: 1.6;
}

/* Dark Mode */
.dark {
    color-scheme: dark;
}


/* Layout */
#panel {
    min-height: calc(100vh - 60px);
}

#sidebar {
    background: #f5f5f5;
    border-right: 1px solid #e2e8f0;
}

.dark #sidebar {
    background: #1f2937;
    border-right: 1px solid #374151;
}

#main {
    /* Background is set via Tailwind classes */
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar h2 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.sidebar .menu {
    list-style: none;
    padding: 0;
}

.sidebar .menu li {
    margin-bottom: 0.25rem;
}

.sidebar .menu a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    text-decoration: none;
    color: #4a5568;
    transition: all 0.2s;
}

.sidebar .menu a:hover {
    background: #e2e8f0;
    color: #2d3748;
}

.dark .sidebar .menu a {
    color: #d1d5db;
}

.dark .sidebar .menu a:hover {
    background: #374151;
    color: #f3f4f6;
}

.dark .card {
    background: #1f2937;
    border: 1px solid #374151;
}

/* Responsive */
@media (max-width: 768px) {
    #panel {
        grid-template-columns: 1fr;
    }

    #sidebar {
        position: relative;
        height: auto;
    }

    #main.col-span-3 {
        grid-column: span 1;
    }
}

/* Utility */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}


.golds-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.golds-table th {
    padding: 10px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #e5e7eb;
}

.dark .golds-table th {
    border-bottom-color: #374151;
}

.golds-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.dark .golds-table td {
    border-bottom-color: #374151;
}

.golds-table tbody tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.02);
}

.dark .golds-table tbody tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.02);
}

.golds-table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

.dark .golds-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.04);
}

.golds-table tbody tr:last-child td {
    border-bottom: none;
}

/* Pagination links */
.pagelink {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 2px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
}

.pagelink:hover {
    background: rgba(0, 0, 0, 0.05);
}

.pagelink.bg-gray {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

/* Dark mode */
.dark .pagelink {
    border-color: #4b5563;
}

.dark .pagelink:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ===================================
   Menu & Sidebar Styles
   =================================== */

/* Menu Table */
.menu-table {
    border-radius: 0.5rem;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    border-radius: 0.8rem;
    overflow: hidden;
}

.menu-table th, .menu-table td {
    padding: 8px;
}

.menu-table tr:last-child td {
    border: none;
}

.menu-table a {
    border: none;
}

/* Link Items */
.link-item {
    padding: 8px 12px;
    text-decoration: none;
}

tr.link-item td {
    border: none;
}

.link-header:hover, .link-item:hover {
    background-color: #d3d3d3 !important;
}

.dark .link-header:hover, .dark .link-item:hover {
    background-color: #4b5563 !important;
}

/* Link Group */
tr.link-group-css th, tr.link-group-css td {
    border-bottom: 2px solid #b3842b;
    color: #b3842b;
    text-transform: uppercase;
    text-align: center;
}

/* Indentation */
.indent {
    padding-left: 1.2rem !important;
}

.indent-descendants * {
    padding-left: 1.2rem;
}

/* Pagebar */
.pagebar, .mainbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 0.75rem;
    align-items: center;
    align-content: center;
    min-width: 0;
}

.pagebar > *:not(.pagetitle),
.pagebar span:not(.pagetitle) > button {
    font-size: 0.875rem;
    padding: 4px 12px !important;
    border-radius: 0.375rem;
    text-decoration: none;
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
    transition: all 0.15s ease;
}

.unstyled {
    all: unset;
    display: inline;
}


.pagebar a:hover,
.pagebar button:hover {
    background: #e5e7eb;
}

.dark .pagebar a,
.dark .pagebar button {
    background-color: #374151;
    color: #e5e7eb;
    border-color: #4b5563;
}

.dark .pagebar a:hover,
.dark .pagebar button:hover {
    background: #4b5563;
}

/* ===================================
   Modal Styles
   =================================== */

.gis-modal {
    display: none;
    position: fixed;
    z-index: 50;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
}

.gis-modal.flex {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gis-modal-backdrop {
    background-color: rgba(0, 0, 0, 0.5);
}

.gis-modal-overlay {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.dark .gis-modal-overlay {
    background: #1f2937;
    color: #e5e7eb;
}

.gis-modal-content {
    margin-top: 1rem;
}

#closeModal {
    cursor: pointer;
    color: #6b7280;
    font-size: 1.25rem;
    transition: color 0.15s ease;
}

#closeModal:hover {
    color: #374151;
}

.dark #closeModal {
    color: #9ca3af;
}

.dark #closeModal:hover {
    color: #d1d5db;
}

.uc {
    text-transform: uppercase;
}

.b {
    font-weight: bold;
}

.pagetitle {
    font-weight: bold;
}

/* ===================================
   Page Header Styles
   =================================== */

.pageheader {
    margin-bottom: 2.25rem;
}

.pageheader > .title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.dark .pageheader > .title {
    color: #ffffff;
}

.pageheader > .description {
    color: #4b5563;
}

.dark .pageheader > .description {
    color: #9ca3af;
}

/* ===================================
   Pagelinks Styles
   =================================== */
   .pagelinks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.pagelinks a {
    padding: 0.25rem 0.65rem;
    text-decoration: none;
}

.pagelinks a:hover {
    text-decoration: underline;
}

/* ===================================
   Golds Color Branding
   =================================== */
/* ===================================
   Golds – Metallic Text on Blue Header
   =================================== */

   :root {
    --gold-a: #ffd700; /* highlight */
    --gold-b: #e6c24a; /* mid */
    --gold-c: #c99700; /* depth */
    --gold-fallback: #e6c24a;
  }
  
  .golds-color {
    /* Fallback color if gradient clip isn’t supported */
    color: var(--gold-fallback);
  
    /* Soft metallic gradient (less orange, more gold) */
    background-image: linear-gradient(100deg, var(--gold-a) 0%, var(--gold-b) 42%, var(--gold-c) 100%);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
  
    font-weight: 600;
    letter-spacing: -0.01em;
  
    /* Subtle depth—avoid the neon glow */
    text-shadow: 0 1px 0 rgba(0,0,0,0.10);
  }
  
  .dark .golds-color {
    /* Slightly brighter mid for dark mode */
    background-image: linear-gradient(100deg, var(--gold-a) 0%, #f0d061 45%, var(--gold-c) 100%);
    text-shadow: 0 1px 0 rgba(0,0,0,0.20);
  }
  

/* ===================================
   Golds Design Tokens – HSL Variables
   =================================== */

   :root {
    --b1: 215 28% 17%;  /* base-100 (page background) #0f172a */
    --b2: 217 33% 17%;  /* base-200 (card/input background) #1e293b */
    --b3: 217 27% 26%;  /* base-300 (border/hover) #334155 */
    --bc: 213 27% 90%;  /* base-content (text color) #e2e8f0 */
  }
  
  /* Example Dark Mode Input Styling Using HSL Vars */
  .dark .input {
    background-color: hsl(var(--b2)) !important;
    color: hsl(var(--bc)) !important;
  }
  
  .dark .input::placeholder {
    color: hsl(var(--bc) / 0.6) !important; /* 60% opacity */
  }
  
  .dark .input.input-bordered {
    border-color: hsl(var(--b3)) !important;
  }
  

  /* ===================================
   Golds UI – Button Size Refinement
   =================================== */

/* Extra Small: for dense tables or modals */
.btn-xs {
    padding: 2px 8px !important;
    font-size: 0.75rem !important;     /* ~12px */
    line-height: 1rem !important;
    border-radius: 0.25rem !important;
  }
  
  /* Small: for compact toolbars or form actions */
  .btn-sm {
    padding: 4px 12px !important;
    font-size: 0.8125rem !important;   /* ~13px */
    line-height: 1.25rem !important;
    border-radius: 0.3rem !important;
  }
  
  /* Medium: balanced default (keep same as .btn if you want parity) */
  .btn-md {
    padding: 6px 14px !important;
    font-size: 0.875rem !important;    /* ~14px */
    line-height: 1.35rem !important;
    border-radius: 0.375rem !important;
  }
  
  /* Large: for primary calls-to-action or mobile UI */
  .btn-lg {
    padding: 8px 18px !important;
    font-size: 1rem !important;        /* 16px */
    line-height: 1.5rem !important;
    border-radius: 0.5rem !important;
  }
  


  /* ===================================
   Golds Form Styles
   =================================== */
/* ===================================
   Golds Form - Modern Form Styling
   =================================== */


   .golds-form {
    width: 100%;
  }
  
  .golds-form input[type="text"],
  .golds-form input[type="email"],
  .golds-form input[type="number"],
  .golds-form input[type="tel"],
  .golds-form input[type="password"],
  .golds-form input[type="url"],
  .golds-form input[type="date"],
  .golds-form input[type="time"],
  .golds-form input[type="datetime-local"],
  .golds-form textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    line-height: 1.5;
    color: #f3f4f6;
    background-color: #1f2937;
    border: 1px solid #374151;
    border-radius: 8px;
    transition: all 0.15s ease;
    outline: none;
  }
  
  .golds-form input::placeholder,
  .golds-form textarea::placeholder {
    color: #6b7280;
  }
  
  .golds-form input:focus,
  .golds-form textarea:focus {
    border-color: #60a5fa;
    background-color: #111827;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.12);
  }
  
  .golds-form select {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    line-height: 1.5;
    color: #f3f4f6;
    background-color: #1f2937;
    border: 1px solid #374151;
    border-radius: 8px;
    cursor: pointer;
    outline: none;
    transition: all 0.15s ease;
  }
  
  .golds-form select:focus {
    border-color: #60a5fa;
    background-color: #111827;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.12);
  }
  
  .golds-form textarea {
    min-height: 120px;
    resize: vertical;
  }
  
  .golds-form input[type="checkbox"],
  .golds-form input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    cursor: pointer;
    accent-color: #60a5fa;
    vertical-align: middle;
  }
  
  .golds-form label {
    display: inline-flex;
    align-items: center;
    font-size: 15px;
    color: #e5e7eb;
    cursor: pointer;
  }
  
  .golds-form button[type="submit"],
  .golds-form button[type="button"] {
    padding: 14px 28px;
    margin-top: 24px;
    font-size: 15px;
    font-weight: 500;
    color: #ffffff;
    background-color: #3b82f6;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  
  .golds-form button:hover {
    background-color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
  }
  
  .golds-form button:active {
    transform: translateY(0);
  }
  
  .golds-form button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
  }
     .golds-form input[type="text"],
   .golds-form input[type="email"],
   .golds-form input[type="number"],
   .golds-form input[type="tel"],