/* Ensure full-width layout */
.container,
.main,
.content,
.content-wrapper,
.container-fluid {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

/* Card should span full width of container */
.card.w-100 {
    width: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
    /* Modern enhancement */
    box-shadow: 0 6px 24px 0 rgba(16,30,54,0.06), 0 1.5px 6px rgba(80,80,100,0.03);
    transition: box-shadow 0.18s;
    background: rgba(255,255,255,0.90);
    backdrop-filter: blur(1.5px);
}

/* Modern glassmorphism enhancement for cards */
@media (min-width: 700px) {
    .card.w-100 {
        background: rgba(255,255,255,0.92);
        backdrop-filter: blur(3px);
    }
}

.modern-table-container {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(16,30,54,0.04);
  padding: 20px;
  margin: 30px 0;
  border: 1px solid #ececec;
  /* Modern: subtle glass effect */
  backdrop-filter: blur(1.5px);
  transition: box-shadow 0.18s, background 0.18s;
}

/* Extra for high contrast dark mode */
@media (prefers-color-scheme: dark) {
  .modern-table-container,
  .card.w-100 {
    background: rgba(35,40,55,0.97);
    color: #f3f6ff;
    border-color: #23283f;
  }
}

/* Table responsive enhancements */
.table-responsive-fit {
    width: 100vw;                   /* Always fills the viewport width */
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    overflow-x: auto;
    box-sizing: border-box;
    padding: 0 8px;
    -webkit-overflow-scrolling: touch;  /* For smooth mobile scroll */
    scrollbar-width: thin;
    scrollbar-color: #e4ee5b #edf2f6;
}

.table-responsive-fit .table {
    width: 100%;
    min-width: 600px;
    table-layout: auto;
}

.table-scroll {
  overflow-x: auto;
  max-height: 420px;
  -webkit-overflow-scrolling: touch;
}

/* Responsive fix for table container */
@media (max-width: 800px) {
  .modern-table,
  .modern-table th, .modern-table td {
    font-size: 15px !important;
  }
  .table-responsive-fit .table,
  .modern-table {
    min-width: 350px !important;
    font-size: 14px;
  }
}

.modern-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  background: #fff;
  min-width: 800px;
}
.table-responsive-custom {
  width: 100%;
  overflow-x: auto;
}

/* Ensure always collapses on mobile */
@media (max-width: 600px) {
  .modern-table {
    min-width: 100vw !important;
    font-size: 14px;
  }
}

/* You had two .modern-table, both are kept */
.modern-table {
  min-width: 1200px;
  width: 100%;
  border-collapse: collapse;
}

.modern-table th,
.modern-table td {
    white-space: normal !important;
    word-break: break-word;
    vertical-align: middle;
    padding: 16px 12px;
    text-align: left;
    border-bottom: 1px solid #ececec;
    transition: background 0.2s, color 0.2s;
    background: inherit;
}

.modern-table th {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
  font-weight: 600;
  font-size: 1.05em;
  border-bottom: 2px solid #ececec;
}

.modern-table tr:last-child td {
  border-bottom: none;
}

.modern-table a {
  color: #6958f1;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.modern-table a:hover,
.modern-table a:focus {
  color: #3928c6;
  text-decoration: underline;
  outline: 1.5px dashed #6958f1;
}

/* Smooth table row hover for modern look */
.table-hover tbody tr:hover {
    background-color: #e4ee5b !important;
    color: black !important;
    transition: background-color 0.3s cubic-bezier(.62,.12,.46,.95);
}
.table-hover tbody tr:hover td {
    background-color: #F5F5DC !important;
    color: black !important;
}

/* Body styling */
.row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}




/* === Customize sidebar background === */
.sidebar {
    background-color: #07a03f !important;
}
.sidebar, .sidebar-menu {
    background-color: #ffff00 !important;
}

/* === Change menu item text color === */
.sidebar .nav-link {
    color:#ffff00 !important;
}

/* Modernize dark bg */
.bg-dark {
    background-color: red !important;
    color: #c2c0c8;
}

/* === Hover effect === */
.sidebar .nav-link:hover,
.sidebar .nav-link:focus {
    background-color: #343456 !important;
    color: #f1c40f !important;
    outline: 2px dashed #f1c40f;
    outline-offset: -2px;
}

/* === Active menu item === */
.sidebar .nav-link.active {
    background-color: #2c2c3e !important;
    border-left: 3px solid #f1c40f;
    color: #f1c40f !important;
}

/* === Section titles (e.g., HR, Accounting) === */
.sidebar .nav-title {
    color:  #1e1e2f !important;
    font-weight: bold;
    font-size: 13px;
    padding-left: 15px;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  margin: 0 3px;
  font-size: 18px;
  vertical-align: middle;
  background: #f3f4f6;
  color: #555;
  cursor: pointer;
  outline: none;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.action-btn:active {
  transform: scale(0.96);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.action-btn svg {
  width: 20px;
  height: 20px;
}

/* Button variations */
.action-btn-requisition  {background: #f0f8ff;color: #0d6efd;}
.action-btn-requisition:hover {background: #d0e7fd;color: #003580;}
.action-btn-view      { background: #e9f7fe; color: #3694e5; }
.action-btn-view:hover      { background: #c6e8fd; color: #247abf; }
.action-btn-edit      { background: #f6f4ff; color: #6958f1; }
.action-btn-edit:hover      { background: #ebe6fe; color: #3b319b; }
.action-btn-delete    { background: #fff3f3; color: #f87171; }
.action-btn-delete:hover    { background: #fde3e3; color: #be2d2d; }
.action-btn-attach    { background: #f3f7ff; color: #3867d6; }
.action-btn-attach:hover    { background: #dde9fd; color: #274b89; }
.action-btn-transfer  { background: #f3fcf6; color: #24b47e; }
.action-btn-transfer:hover  { background: #d0f5e5; color: #15815c; }

/* resources/css/custom.css */
.sidebar .nav-link {
    color: #fff !important;
}
/* ...add more custom styles here */

/* Hide only the Orchid command bar/header bar for main content */
.command-bar-wrapper {
    display: none !important;
}

/* Remove padding from headers/footers if any */
header,
footer {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.container-fluid {
    padding-left: 40px;
    padding-right: 40px;
}

@media (max-width: 900px) {
    .container-fluid {
        padding-left: 8px;
        padding-right: 8px;
    }
}

/* For headings */
h1 {
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}
h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
}
h3 {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 500;
}

/* Modern main-content */
.main-content-frame {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    background: #edf2f6;
    border-radius: 1.3rem 1.3rem 0 0;
    box-shadow: 0 2px 24px 0 rgba(25,30,54,0.06);
}

/* Make content grow for flex layouts */
.content-grow {
    flex: 1 1 auto;
}

/* Modern HTML/body, root layout */
html, body {
    height: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    background: #f7f9fb;
}

.app-layout {
    min-height: 100dvh;
    height: auto;
    display: flex;
    flex-direction: column;
}

/* Flex main body */
.main-body-flex {
    display: flex;
    flex: 1 0 auto;
    min-height: 0;
    width: 100%;
}

/* Sidebar */
.sidebar {
    width: 2200px !important;
    background: #1e1e2f !important;
    color: #fff;
    padding: 32px 0 0 0;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    height: auto;
    overflow: visible;
    /* Smooth transition for modern feel */
    transition: width 0.23s cubic-bezier(.59,.12,.46,.85);
}



.site-footer {
    background: red !important;
    color: #fff !important;
}

/* Responsive sidebar */
@media (max-width: 900px) {
    .sidebar {
        width: 56px;
        padding: 8px 0 0 0;
        min-width: 48px;
    }
    .container-fluid {
        padding-left: 8px;
        padding-right: 8px;
    }
    .main-body-flex {
        flex-direction: column;
    }
}

/* Sidebar toggle button (add to your markup for a mobile menu) */
.sidebar-toggle {
    display: none;
}
@media (max-width: 900px) {
    .sidebar-toggle {
        display: inline-flex;
        position: absolute;
        top: 12px;
        left: 12px;
        background: #fff;
        border-radius: 50%;
        box-shadow: 0 2px 4px rgba(40,60,80,0.10);
        border: none;
        z-index: 111;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        color: #333;
        cursor: pointer;
        font-size: 1.4em;
        transition: background 0.16s;
    }
    .sidebar-toggle:active {
        background: #e4ee5b;
    }
}

/* Profile card and section */
.profile-card {
    border: 1px solid #283747;
    margin-bottom: 2rem;
    background: #f9f9f7;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(30,35,56,0.04);
}
.profile-header {
    background: #d6eddc;
    color: #000000;
    padding: 5px 15px;
    font-weight: bold;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 12px 12px 0 0;
}

.profile-inner {
    display: flex;
    padding: 1.5rem;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.profile-photo {
    width: 90px;
    height: 100px;
    background: #eee;
    border: 1px solid #bbb;
    margin-right: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
}
.profile-photo img {
    width: 90px;
    height: 100px;
    object-fit: cover;
    border-radius: 7px;
}
.profile-table {
    flex: 1 1 60%;
}
.profile-table table {
    width: 100%;
    font-size: 14px;
    border: 1px solid #d4d4d4;
    background: #fff;
}
.profile-table th, .profile-table td {
    padding: 4px 7px;
    border: 1px solid #e1e1e1;
    text-align: left;
    font-weight: normal;
}
.profile-table table tr:hover {
    background-color:  #E7DDFF ;
    transition: background 0.2s;
    cursor: pointer;
}

.profile-details {
    flex: 1 1 40%;
    border: 1px solid #cfcfcf;
    padding: 1rem;
    background: #fff;
    border-radius: 7px;
}
.attachment-table th, .attachment-table td {
    border: 1px solid #e1e1e1;
    font-size: 14px;
}
.action-icon-btn {
    border: none;
    background: none;
    font-size: 1.2rem;
    padding: 0 4px;
    cursor: pointer;
}
.action-icon-btn.download { color: #18884c;}
.action-icon-btn.view { color: #34498a;}
.action-icon-btn.edit { color: #ab7e0c;}
.two-col-table th {
    min-width: 130px;
    color: #34547a;
    font-weight: bold;
}
.section-title {
    font-weight: bold;
    color: #34547a;
    margin-bottom: 4px;
    font-size: 1.08rem;
    border-bottom: 1px solid #d1d7df;
    padding-bottom: 2px;
}

/* Responsive profile card/table tweaks */
@media (max-width: 720px) {
  .profile-inner {
    flex-direction: column;
    padding: 0.75rem;
    gap: 0.75rem;
  }
  .profile-photo {
    margin: 0 auto 16px auto;
  }
  .profile-details {
    padding: 0.75rem;
  }
}

@media (max-width: 600px) {
    .modern-table th, .modern-table td {
        padding: 8px 4px !important;
        font-size: 13px;
    }
    .modern-table {
        min-width: 340px !important;
    }
    .main-content-frame, .modern-table-container {
        border-radius: 0 !important;
        box-shadow: none !important;
    }
}

/* Responsive sidebar on small screens */
/* You can keep your table, button, and modern-table styles as before */

/* Modern, subtle scrollbar styling for webkit */
::-webkit-scrollbar {
  height: 8px;
  width: 8px;
  background: #f7f9fb;
}
::-webkit-scrollbar-thumb {
  background: #ececec;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #e4ee5b;
}

/* Optional: Add focus-visible for accessibility */
*:focus-visible {
  outline: 2px solid #6958f1;
  outline-offset: 1px;
}

/* Add responsive table stacking if truly small width */
@media (max-width: 480px) {
    .modern-table, .profile-table table {
        min-width: 250px !important;
        font-size: 11.5px;
    }
    .modern-table th, .modern-table td,
    .profile-table th, .profile-table td {
        padding: 4px 2px !important;
    }
    .main-content-frame, .modern-table-container, .profile-card {
        padding: 4px !important;
        margin: 0 !important;
    }
}

/* Keep all your classes as requested! */
/* Add any extra utilities or overrides as needed below */



/* ===================== */
/* // Styles harefd from Mecky // */
/* ===================== */




/* Styling of Navigation Bar*/

.side-nav-label {
    background: transparent !important;
        width: 100% !important;
    padding: 8px !important;
    margin-bottom: 10px !important;
     margin-top: 10px !important;
            margin: 10px !important;
    border-radius: 0px !important;
        color: yellow !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    text-transform: uppercase !important;
      border: 0 !important;
  border-bottom: 4px solid #fff !important; /* or "white" */
}

.side-nav-label:hover {
    background: brown !important;
        width: 100% !important;
    padding: 8px !important;
     margin-top: 10px !important;
    margin-bottom: 10px !important;
        margin: 10px !important;
    border-radius: 0px !important;
        color: white !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    text-transform: uppercase !important;
      border: 0 !important;
  border-bottom: 4px solid yellow !important; /* or "white" */
}


/* Heading */
.my-0, .d-none, .d-xl-block {
            color: #88E788 !important;
            font-weight: 900 !important;

}

.my-0  {

border-bottom: 4px solid #fff !important;
}













.aside {
  position: relative;
  border: none;
}

.aside::after {
  content: '';
  position: absolute;
  top: 0%;
  bottom: 0%;
  right: 0;
  width: 14px;
  border-radius: 50px;
  background: linear-gradient(
    to bottom,
    #88E788 0%,
    #9FE79F 40%,
    #B6E7B6 60%,
    #CDE7CD 100%
  );
  box-shadow: 1px 0 8px 1px rgba(180,180,180,0.18);
  z-index: 2;
  animation: silver-glow 2.3s infinite alternate;
}

/* Subtle glowing effect */
@keyframes silver-glow {
  0% { box-shadow: 1px 0 8px 1px #15FF00 !important; }
  100% { box-shadow: 1px 0 16px 2px #f0f0f0; }
}

/* Responsive tweak for small screens */
@media (max-width: 600px) {
  .aside::after {
    width: 8px;
    top: 0%;
    bottom: 0%;
  }
}
















/* ========== End Styling Navigation Bar=========== */


.table {
    background: #f8fafc;
    border-radius: 0.7rem !important;
    overflow: hidden !important;
    margin-bottom: 0 !important;
    box-shadow: 0 1.5px 6px 0 rgba(0, 0, 0, 0.08) !important;
}

.table thead {
    background: lightblue !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 0.98rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.01em !important;
    border: none !important;
}

.table tbody tr {
    transition: background 0.15s !important;
}

/* === Microsoft-like banded (zebra) rows === */
.table tbody tr:nth-child(even) {
    background: #f4f7fa;   /* Light subtle blue/gray */
}
.table tbody tr:nth-child(odd) {
    background: #fff;
}

/* Don't affect hover: stays on top */
.table-hover tbody tr:hover {
    background: #e6f2ff;
    cursor: pointer;
}

.table th, .table td {
    border: none !important;
    vertical-align: middle !important;
    padding: 0.68rem 0.85rem !important;
    font-size: 1.04rem !important;

    /* === Only wrap by full word, not inside a word or number === */
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    word-wrap: normal !important;
    hyphens: manual !important;
}

.table th {
    color: #003262;
}

.table td {
    color: #2c3e50;
}

.x-index-cell, .x-index-cell * {
    font-weight: bold;
    color: #555555;
}


/* === Customize zoom desktop === */

@media (min-width: 767.98px) {
.container, .container-fluid, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
background-color: #F5FFF4 !important;
zoom: 87% !important;

}

}  


/* === Customize zoom mobile === */

/* @media (max-width: 450px) {
  .container,
  .container-fluid,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl,
  .container-xxl {
    background-color: #F5FFFA !important;
    zoom: 95% !important;
  }
}  */















/* ===================== */
/* // End Mecky styles // */
/* ===================== */
