/* custom.css */

/* =========================================================
   1) GLOBAL LAYOUT + CARDS
   ========================================================= */
.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;
    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);
}

@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;
  backdrop-filter: blur(1.5px);
  transition: box-shadow 0.18s, background 0.18s;
}

@media (prefers-color-scheme: dark) {
  .modern-table-container,
  .card.w-100 {
    background: rgba(35,40,55,0.97);
    color: #f3f6ff;
    border-color: #23283f;
  }
}

/* =========================================================
   2) TABLES
   ========================================================= */
.table-responsive-fit {
    width: 100%;                     /* was 100vw – causes fake horiz scroll */
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    overflow-x: auto;
    box-sizing: border-box;
    padding: 0 8px;
    -webkit-overflow-scrolling: touch;
    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;
}

@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;
}

/* second definition – keep min width for big desktop screens */
.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;
}

.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;
}

/* Core table styling */
.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;
}

.table tbody tr:nth-child(even) {
    background: #f4f7fa;
}
.table tbody tr:nth-child(odd) {
    background: #fff;
}

.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;
    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;
}

/* =========================================================
   3) GENERAL LAYOUT / ROOT
   ========================================================= */
.row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

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;
}

.main-body-flex {
    display: flex;
    flex: 1 0 auto;
    min-height: 0;
    width: 100%;
}

.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);
}

.content-grow {
    flex: 1 1 auto;
}

/* 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;
}

/* container padding */
.container-fluid {
    padding-left: 40px;
    padding-right: 40px;
}

@media (max-width: 900px) {
    .container-fluid {
        padding-left: 8px;
        padding-right: 8px;
    }
}

/* Hide Orchid command bar */
.command-bar-wrapper {
    display: none !important;
}

header,
footer {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* =========================================================
   4) SIDEBAR + GLOW STRIP
   ========================================================= */

/* True sidebar size */
.sidebar {
    width: 260px !important;          /* normal width */
    max-width: 260px !important;
    background: #1e1e2f !important;
    color: #fff;
    padding: 32px 0 0 0;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    height: auto;
    overflow: visible;
    transition: width 0.23s cubic-bezier(.59,.12,.46,.85);
}

.sidebar-menu {
    background: transparent !important;
}

/* optional theming you had */
.sidebar .nav-link {
    color: #fff !important;
}
.sidebar .nav-link:hover,
.sidebar .nav-link:focus {
    background-color: #343456 !important;
    color: #f1c40f !important;
    outline: 2px dashed #f1c40f;
    outline-offset: -2px;
}
.sidebar .nav-link.active {
    background-color: #2c2c3e !important;
    border-left: 3px solid #f1c40f;
    color: #f1c40f !important;
}
.sidebar .nav-title {
    color:  #9ca3af !important;
    font-weight: bold;
    font-size: 13px;
    padding-left: 15px;
}

/* Decorative strip next to sidebar */
.aside {
  position: relative;
  border: none;
}

.aside::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 4px;              /* thin strip on desktop */
  border-radius: 999px;
background: linear-gradient(
  to bottom,
  #d97706 0%,
  #e8890a 40%,
  #f59e0b 60%,
  #fbbf24 100%
);
  box-shadow: 0 0 6px rgba(0,0,0,0.18);
  z-index: 2;
  animation: silver-glow 2.3s infinite alternate;
}

@keyframes silver-glow {
  0%   { box-shadow: 0 0 6px 1px #f59e0b; }
  100% { box-shadow: 0 0 12px 2px #f0f0f0; }
}

@media (max-width: 600px) {
  .aside::after {
    width: 3px;
  }
}

/* Responsive sidebar */
@media (max-width: 900px) {
    .sidebar {
        width: 56px !important;
        max-width: 56px !important;
        padding: 8px 0 0 0;
    }
    .main-body-flex {
        flex-direction: column;
    }
}

/* footer */
.site-footer {
    background: #111827 !important;
    color: #fff !important;
}

/* =========================================================
   5) NAV LABELS / HEADINGS (your Mecky styles)
   ========================================================= */
.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: #f59e0b !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    text-transform: uppercase !important;
    border: 0 !important;
    border-bottom: 4px solid #fff !important;
}

.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 #f59e0b !important;
}







/* ─── BF System Sidebar Wordmark ──────────────── */

.my-0,
.d-xl-block {
  font-weight: 900 !important;
  background: linear-gradient(
    90deg,
    #7c5200 0%,  #d97706 15%,
    #fbbf24 32%, #fff8e7 50%,
    #fbbf24 68%, #d97706 85%,
    #7c5200 100%
  ) !important;
  background-size: 250% 100% !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  animation: bf-sweep 3.2s ease-in-out infinite,
             bf-glow  2.5s ease-in-out infinite !important;
  display: inline-block !important;
}

.my-0 {
  border-bottom: 0px solid #fff !important;
}

@keyframes bf-sweep {
  0%   { background-position: 100% 0;    }
  100% { background-position: -150% 0;   }
}


@keyframes bf-glow {
  0%,100% { filter: drop-shadow(0 0 1.5px rgba(255,255,255,.075)); }
  20%     { filter: drop-shadow(0 0 5px  rgba(255,255,255,.225))
                    drop-shadow(0 0 10px rgba(255,255,255,.1)); }
}









/* =========================================================
   6) MISC BUTTONS / PROFILE / SCROLLBAR
   ========================================================= */
.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; }

.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; }

/* Profile card bits */
.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;
}

/* scrollbars */
::-webkit-scrollbar {
  height: 8px;
  width: 8px;
  background: #f7f9fb;
}
::-webkit-scrollbar-thumb {
  background: #ececec;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #e4ee5b;
}

*:focus-visible {
  outline: 2px solid #6958f1;
  outline-offset: 1px;
}

@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;
    }
}

@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;
    }
}

/* Desktop zoom */
@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;
  }
}

/* =========================================================
   7) MOBILE FIX: DISABLE THE RIGHT STRIP ON SIDEBAR
   (Your strip comes from .aside::after)
   ========================================================= */
@media (max-width: 900px) {
  .aside::after {
    content: none !important;
    display: none !important;
    width: 0 !important;
    background: none !important;
    box-shadow: none !important;
    animation: none !important;
  }
}
