@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

body {
  font-family: "Poppins", sans-serif !important;
}
/* assets/styles.css */

.left-col {
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.left-col-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
/* Landing Page Container */
.landing-container {
  width: 100vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #f6f6f6;
  text-align: center;
  box-sizing: border-box;
  /* overflow: hidden; */
}

.landing-row {
  width: 85%;
  max-width: 1200px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 20px;
  flex-wrap: nowrap;
}

/* Logo */
.landing-logo {
  width: 180px;
  max-width: 90%;
  margin-bottom: 15px;
}

/* Title */
.landing-title {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 8px;
  color: #2c3e50;
  text-align: left;
}

/* Subtitle */
.landing-subtitle {
  font-family: "Poppins", sans-serif;
  text-align: left;
  font-weight: 400;
  font-size: clamp(14px, 1.2vw, 18px);
  margin-bottom: 20px;
  color: #6c757d;
  max-width: 500px;
}

/* Login Button */
.landing-btn {
  font-family: inherit;
  min-width: 140px;
  height: 44px;
  font-size: 1rem;
  padding: 10px 28px;
  border-radius: 10px;
  background: #0466c8;
  font-weight: 600;
  transition: all 0.2s ease-in-out;
  color: white;
  border: none;
  cursor: pointer;
}

.landing-btn:hover {
  transform: translateY(-2px);
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}
/* Column wrapper for responsive resizing */
.landing-col {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Responsive Image */
.landing-img {
  max-width: 100%;
  height: auto;
  border-radius: 12px; /* optional, makes it look smooth */
  object-fit: contain;
}
.login-img {
  max-width: 70%;
  border-radius: 12px; /* optional, makes it look smooth */
  object-fit: contain;
}

/* Adjust column behavior on smaller screens */
@media (max-width: 1366px) {
  .landing-col {
    flex: 1;
  }
  .landing-img {
    max-width: 90%;
  }
}

@media (max-width: 768px) {
  .landing-row {
    flex-wrap: unset;
  }
  .landing-col {
    width: 100% !important; /* full width on tablet */
    margin-bottom: 20px;
    display: none;
  }
}
.horizontal-line {
  border: 2px solid var(--grey, #e0e0e0);
}
/* Summary Card */
.summary-card {
  display: flex;
  background: linear-gradient(180deg, #0466c8 0%, #0353a4 100%);
  text-align: left;
  padding: 35px;
  border-radius: 16px;
  text-align: center;
  font-size: 14px;
  height: 290px;
  max-width: 400px;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
}

.sum-title {
  font-size: clamp(18px, 1.8vw, 20px);
  font-weight: 700;
  color: white;
  margin-top: 6px;
  margin-bottom: 4px;
  text-align: left;
}

.sum-content {
  font-size: 14px;
  font-weight: 300;
  margin-top: 8px;
  color: white;
  text-align: left;
  line-height: 1.4;
}

/* ------------------- */
/* MEDIA QUERIES */
/* ------------------- */

/* Laptops (≤1366px) */
@media (max-width: 1366px) {
  .landing-row {
    gap: 16px;
  }

  .landing-title {
    font-size: clamp(26px, 3.5vw, 36px);
  }

  .landing-subtitle {
    font-size: clamp(13px, 1.1vw, 16px);
    max-width: 450px;
  }

  .summary-card {
    max-width: 320px;
    min-height: 240px;
  }
}

/* Tablets / Small Screens (≤768px) */
@media (max-width: 768px) {
  .landing-row {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .landing-title {
    text-align: center;
    font-size: 24px;
  }

  .landing-subtitle {
    text-align: center;
    max-width: 90%;
    font-size: 14px;
  }

  .summary-card {
    max-width: 100%;
    min-height: 200px;
  }
}
.footer-row {
  flex-direction: row;
  flex-wrap: nowrap;
}
.footer-container {
  padding: 10px 140px;
  font-family: "Poppins", sans-serif;
  background: #f6f6f6;
}

.footer-title {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 4px;
  font-family: "Poppins", sans-serif;
}

.footer-text {
  font-size: 14px;
  color: #6c757d;
  margin: 0;
  font-family: "Poppins", sans-serif;
}
.footer-icon {
  font-size: 30px !important;
}
.footer-icons {
  color: #495057;
  margin-left: 14px;
  transition: color 0.2s ease-in-out;
  gap: 2px;
  justify-content: space-evenly;
}

.footer-icons:first-child {
  margin-left: 0;
}

.footer-icons:hover {
  color: #0466c8; /* highlight on hover */
}
/* Background wrapper */
.login-page {
  place-items: center;
  margin: 0;
  padding: 0;
  background: #f6f6f6;
  min-width: 100vw;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.login-row {
  height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
}
/* Login form container */
.login-form {
  padding: 20px 40px;
  border-radius: 25px;
  height: 80vh;
  width: 100%;
  flex-direction: column;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.login-left-col {
  background: linear-gradient(180deg, #0466c8 0%, #0353a4 100%);
  padding: 20px;
  margin: 20px 0px 20px 10px;
  border-radius: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
}
@media (max-width: 768px) {
  .login-left-col {
    display: none;
  }
}
.login-right-col {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 20px 20px 0px;
  padding: 20px;
}
/* Title */
.login-title {
  display: grid;
  place-items: center;
  font-size: 48px;
  font-weight: 700;
  color: #333333;
  margin-bottom: 0;
}
.login-subtitle {
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 400;
  color: #6c757d;
}
::placeholder {
  color: blue;
}
/* Labels */
.login-label {
  display: grid;
  place-items: center;
  margin-top: 18px;
  font-size: 16px;
  font-weight: 400;
  color: #333;
}

/* Inputs */
.login-input {
  width: 100%;
}

/* Button wrapper */
.login-btn-wrapper {
  width: 100%;
  display: grid;
  place-items: center;
  margin: 0 auto;
}

/* Error message */
#error-message {
  color: #333333;
  font-size: 14px;
  margin-top: 10px;
}
.sidebar-toggle-btn {
  position: absolute;
  top: 5px;
  right: -39px;
  z-index: 100;
  width: 39px;
  height: 38px;
  border-radius: 0 20px 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 12px;
  transition: all 0.2s ease-in-out;
  background: unset;
  box-shadow: 4px 0 10px rgba(0, 0, 0, 0.2);
}
.sidebar-toggle-btn:hover {
  transform: translateY(-2px);
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

.button-icon {
  color: inherit;
  font-size: 20px;
  font-weight: 700;
}
.bi::before {
  font-weight: 900 !important;
}
.nav-link {
  font-weight: 400;
  color: #4f4f4f;
  transition: all 0.2s ease-in-out !important;
  max-height: 6vh;
  font-size: 2vh;
}
.nav-link.active {
  background-color: #0466c8 !important;
  border-radius: 12px;
}
.nav-link:hover {
  transform: translateY(-2px);
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}
.nav-icon {
  margin-right: 8px;
  font-size: 2vh;
}
.sidebar-subtitle {
  font-family: inherit;
  display: grid;
  font-size: 13px;
  font-weight: 700;
  color: #6c757d;
  margin-bottom: 4px;
}
.sidebar-hr {
  margin-bottom: 8px;
}

/* ============================
   Homepage Styles
   ============================ */

/* Container */
.homepage-container {
  background-color: #f6f6f6;
  padding: 2rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 0.5rem;
}

/* Card bodies */
.homepage-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow-y: hidden;
  padding: 1rem;
  background-color: white;
  border-radius: 20px;
  box-shadow: 0px 0px 12px 4px #0000000d;
}
.card-parent{
  border-radius: 20px;
  
}
.table-card-body {
  display: flex;
  background-color: #f6f6f6;
  border: none;
  overflow-x: hidden;
  width: 100%;
  height: 70dvh;
  padding: 0;
  border-radius: 20px;
  box-shadow: 0px 0px 12px 4px #0000000d;
}
.chart-cell {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  width: 100%;
  min-height: 24rem;   /* ensure space */
  height: auto;        /* let content define final height */
}

.collapse-month{
  border: 1px solid var(--darkerGrey, #4F4F4F);
  height: 180px;
  padding: 10px;
  border-radius: 12px;
}
.collapse-row{
  height: 60%;
}
.month-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);   /* 3 columns */
    gap: 8px;                             /* spacing between items */
}

.month-grid .form-check {
    margin-bottom: 0;  /* Remove bootstrap margin */
}

/* Chart title */
.chart-title {
  font-size: 1.2rem;
  font-weight: 600;
  align-self: flex-start;
}

/* Graph takes remaining space */
.chart-graph {
  flex: 1;
  min-height: 300px;
}

/* Tabs */
.homepage-tabs {
  margin-top: 1rem;
}

/* Datagrid common */
.ag-grid {
  width: 100% !important;
  height: 100% !important;
}

/* Modal Body */
.modal-body {
  display: grid;
  place-items: center;
}
.modebar {
    display: none !important;
}

/* Form wrapper */
.pass-form {
  display: grid;
  justify-content: center;
  place-items: center;
  text-align: center;
  border-radius: 25px;
}

/* Column container */
.modal-col {
  flex-direction: column;
}

/* Input fields */
.pass-input {
  width: 200px;
  margin: 10px auto;
  text-align: center;
}

/* Submit button */
.pass-submit-btn {
  margin-top: 10px;
}

/* Close button */
.pass-close-btn {
  font-weight: 600;
  margin-top: 10px;
  align-self: flex-end;
}

.hierarchy-btn {
  font-family: inherit;
  position: static;
  align-self: flex-end;
  --bs-btn-border-color: black;
  max-width: 160px;
  height: 44px;
  font-size: 1rem;
  padding: 0 10px;
  border-radius: 10px;
  background: unset;
  border-color: black;
  font-weight: 600;
  transition: all 0.2s ease-in-out;
  color: black;
  border: solid;
  border-width: 1px;
  cursor: pointer;
}
.table-btn {
  border-bottom: 0;
  align-self: flex-start;
}
/* First tab */
/* First tab */
.nav-tabs .nav-item:first-child .nav-link {
  border-radius: 12px 0 0 12px; /* left rounded only */
  font-weight: 700;
  border: 1px solid black;
}
.nav-tabs .nav-item:first-child .nav-link.active {
  color: white;
  border: 1px solid #0466c8;
}

/* Middle tabs → explicitly flatten */
.nav-tabs .nav-item:not(:first-child):not(:last-child) .nav-link {
  border-radius: 0 !important; /* override Bootstrap rounding */
  font-weight: 700;
  border: 1px solid black;
}
.nav-tabs .nav-item:not(:first-child):not(:last-child) .nav-link.active {
  color: white;
  border: 1px solid #0466c8;
}

/* Last tab */
.nav-tabs .nav-item:last-child .nav-link {
  border-radius: 0 12px 12px 0; /* right rounded only */
  font-weight: 700;
  border: 1px solid black;
}
.nav-tabs .nav-item:last-child .nav-link.active {
  color: white;
  border: 1px solid #0466c8;
}

@media (max-width: 768px) {
  .hierarchy-btn {
    display: none;
  }
  .homepage-card-body {
    grid-template-columns: 1fr; /* 1 column */
    grid-template-rows: auto; /* let rows expand naturally */
    width: 95vw; /* use more screen width */
    height: auto; /* let content determine height */
    padding: 0.5rem;
  }
  .table-btn {
    margin-top: 10px;
    flex-wrap: nowrap;
  }
}
/* Base DatePicker styling */
.date-picker {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 12px;
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);

  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
  color: #2c3e50;
  width: fit-content;
  margin: 1rem auto;
}

/* Inputs inside the DatePicker */
.date-picker input {
  border: none;
  outline: none;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  font-size: 0.95rem;
  background-color: #f9f9f9;
  transition: background-color 0.2s ease-in-out;
}

.date-picker input:focus {
  background-color: #eef6ff;
  border: 1px solid #0466c8;
}

/* Calendar icon button */
.date-picker .CalendarDay__default {
  border-radius: 6px;
}

/* Hover effect */
.date-picker:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* 🔹 Mobile responsiveness */
@media (max-width: 768px) {
  .date-picker {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .date-picker input {
    width: 100%;
    text-align: center;
  }
}

/* Container */
.customer-container {
  display: flex;
  padding: 2rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #f6f6f6;
}

/* Form */
.customer-form {
  margin: 5px auto;
  box-shadow: 0px 0px 12px 4px #0000000d;
  border-radius: 25px;
  padding: 1.5rem;
  text-align: center;
  background-color: #fff;
  width: 100%;
}
.customer-form-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-evenly;
}
.input-title-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-evenly;
  width: 100%;
}
.form-input {
  border-color: #4f4f4f;
}
.form-input-long {
  border-color: #4f4f4f;
}
.ml-5 {
  margin-left: 5px;
}
/* Titles */
.new-customer-title {
  text-align: center;
  font-weight: 700;
  align-self: flex-start;
}
.tracker-date {
  text-align: center;
  color: #6c757d;
  font-weight: 400;
  font-size: 18px;
  align-self: center;
}

.new-customer-id {
  text-align: center;
  color: #6c757d;
  font-weight: 400;
  font-size: 18px;
  align-self: flex-end;
  margin-bottom: 0;
}

/* Dropdown */
.title-dropdown {
  max-width: 80px;
}
.table-title {
  text-align: left;
  align-self: flex-start;
  margin-top: 5px;
}
/* Modal body */
.customer-modal-body {
  height: 75vh;
  overflow-y: auto;
}

/* Customer Button */
.customer-btn {
  margin-top: 20px;
  min-width: 150px;
}

/* Input Button */
.customer-input-btn {
  margin-top: 1rem;
}

/* Right column (address) */
.customer-address-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.justify-start{
  justify-self: flex-start;
}
/* Mobile responsiveness */
@media (max-width: 768px) {
  .chart-cell {
    margin-top: 20px;
  }
  .landing-btn {
    height: unset;
  }
  .table-btn {
    align-self: center;
    margin-left: unset;
  }
  .customer-container {
    padding: 1rem;
    width: 100%;
  }

  /* Form takes full width on mobile */
  .customer-form {
    width: 100%;
    padding: 1rem;
    border-radius: 15px;
  }

  /* Stack rows vertically */
  .customer-form-row,
  .input-title-row {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  /* Inputs full width */
  .form-input,
  .form-input-long,
  .title-dropdown {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 0.75rem;
  }

  /* Reset margins for mobile */
  .ml-5 {
    margin-left: 0 !important;
  }

  /* Titles aligned center */
  .new-customer-title {
    margin-left: 0;
    text-align: center;
    align-self: center;
  }

  .new-customer-id {
    margin-right: 0;
    text-align: center;
    align-self: center;
    font-size: 16px;
  }

  .table-title {
    margin-left: 0;
    text-align: center;
    align-self: center;
  }

  /* Buttons full width */
  .customer-btn,
  .customer-input-btn {
    width: 100%;
    min-width: unset;
    margin-top: 1rem;
  }

  /* Address column stacks */
  .customer-address-col {
    justify-content: flex-start;
    margin-top: 1rem;
  }

  /* Modal body scroll comfortably */
  .customer-modal-body {
    height: auto;
    max-height: 60vh;
  }
}
/* Outer box */
.upload-box {
  width: 100%;
  height: 120px;
  border: 2px dashed #0466c8;
  border-radius: 12px;
  background-color: #f9fbff;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 1rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-box:hover {
  background-color: #eef6ff;
  border-color: #0353a4;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.08);
}

/* Inner content */
.upload-box-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Upload icon */
.upload-icon {
  font-size: 2rem;
  color: #0466c8;
  margin-bottom: 0.5rem;
}

/* Text */
.upload-text {
  font-size: 0.95rem;
  color: #6c757d;
}

.upload-browse {
  font-size: 0.95rem;
  color: #0466c8;
  font-weight: 600;
  margin-left: 4px;
}

/* Preview container */
.upload-preview {
  display: inline-block; /* shrink-wrap around content */
  margin: 30px auto 10px auto;
  border-radius: 12px;
  overflow: hidden;
  background-color: #f8f9fa;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.upload-preview img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 12px; /* match parent */
}

/* File name text */
.upload-filename {
  text-align: center;
  font-size: 0.95rem;
  color: #6c757d;
  font-weight: 500;
  margin-top: 0.5rem;
  word-wrap: break-word; /* handle long filenames */
}
.management-dropdown-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
}
.dropdown-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.user-dropdown {
  width: 75% ;
  align-self: flex-end ;
}
.analytics-card-body {
  display: flex;
  flex-direction: column;
  overflow-y: hidden;
  padding: 1rem;
  background-color: white;
  border-radius: 20px;
  box-shadow: 0px 0px 12px 4px #0000000d;
}

/* Hero chart spans 2 columns */
.chart-cell.full-width {
  grid-column: 1 / -1;
}
@media (max-width: 768px) {
  .analytics-card-body {
    grid-template-columns: 1fr;   /* single column */
    grid-auto-rows: auto;         /* let rows size naturally */
    width: 90vw;                  /* use more screen width */
    padding: 0.75rem;
  }

  /* If you have a full-width hero chart, keep it natural */
  .analytics-card-body .full-width {
    grid-column: 1; /* reset span since only 1 column */
  }
.management-dropdown-row {
  flex-direction: column;
}
.user-dropdown{
  align-self: center;
}
}
/* ------------------------------------------------------------------------- */
.shadow-connect {
  position: relative;
}

.finance-ag {
  width: 100%;
  height: 80vh !important;
}
.shadow-connect:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  z-index: -1;
}
.spanned-row {
  background-color: #dcdcdc;
}

.spanned-row.ag-cell-value {
  border-bottom: 1px solid #808080 !important;
}

.sidebar {
  width: 15vw;
  transform: translateX(-15vw);
  transition: all 0.3s ease-in-out;
  z-index: 200;
  background-color: #FFFFFF;
}
.sidebar.active {
  transform: translateX(0);
  transition: all 0.3s ease-in-out;
}
.topbar {
  width: 100%;
  transition: all 0.3s ease-in;
  top: 0;
  left: 0;
  right: 0;
  justify-content: space-between;
  visibility: hidden;
}

.content-page {
  width: 100%;
  min-height: 100dvh;
  background-color: #f6f6f6;
  margin-left: 0;
  align-items: stretch !important;
  transition: all 0.3s ease-in;
}

.content-page.active {
  margin-left: 15vw;
  width: calc(100% - 15vw);
}
@media (max-width: 768px) {
  .sidebar {
    width: 90vw;                 /* take full screen width */
    transform: translateX(-90vw); /* hidden off-canvas */
  }
  .sidebar.active {
    transform: translateX(0);     /* slide in fully */
  }

  .content-page.active {
    margin-left: 0;               /* content stays put */
    width: 100%;                  /* full width content */
  }
}

.topbar.active {
  left: 250px;
  width: calc(100% - 250px);
}

.container-page {
  max-width: unset !important;
  padding: unset !important;
}
.btn.btn-outline-light {
  --bs-btn-border-color: unset !important;
  --bs-btn-hover-color: unset !important;
  --bs-btn-hover-bg: unset !important;
  --bs-btn-hover-border-color: unset !important;
}
.btn.btn-outline-dark {
  --bs-btn-hover-color: unset !important;
  --bs-btn-hover-bg: unset !important;
  --bs-btn-hover-border-color: unset !important;
  --bs-btn-border-color: unset !important;
}
.user-portrait {
  --bs-btn-border-color: unset !important;
  box-shadow: 2px 2px 12px rgba(190, 190, 190, 1);
  --bs-btn-bg: #0466c8;
  --bs-btn-hover-bg: #034b92;
  position: fixed;
  bottom: 10px;
  left: 23px;
  height: 75px;
  width: 80%;
  display: flex;
  flex-direction: row;
  align-self: center;
  align-items: center;
  justify-content: center;
}

.profile-picture {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: unset !important;
  border: 2px solid #ffffff;
  object-fit: cover;
  object-position: center;
}

.user-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-evenly;
  margin-left: 8px;
  font-family: "Poppins";
}

.username {
  margin-top: unset;
  margin-bottom: 0;
  font-size: 14px;
  font-weight: 700 !important;
  white-space: nowrap;       
  overflow: hidden;      
  text-overflow: ellipsis; 
  max-width: 130px;          
}

.username2 {
  margin-bottom: 0;
  font-weight: 400 !important;
  font-size: 12px;
  white-space: nowrap;
  font-weight: bold;
}
.failed-cell {
  color: red !important;
  font-weight: bold;
}
.closed-cell {
  color: green !important;
  font-weight: bold;
}
