body{
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 400;
  overflow-x: hidden;
  overflow-y: auto;
  background: #f1f2f7;
  height: 100%;
  width: 100%;
}
body::before {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: url('/InventorySystem_PHP/uploads/cropped-Favicon-01-01.png') no-repeat center;
  background-size: 750px 750px;
  width: 100%;
  height: 100%;
  opacity: 0.4;
  z-index: 0;
  pointer-events: none;
}

a{
  color: #777;
  text-decoration: none;
}

.padding-top{
  padding-top: 20px;
}

.login-page{
  width: 350px;
  margin: 5% 40% 6% auto;
  padding: 0 20px;
  background-color: #f9f9f9;
  border: 1px solid #f2f2f2;
}

.login-page .text-center{
  margin-bottom: 10px;
}

.box{
  padding: 20px;
  background-color: #f9f9f9;
  border: 1px solid #f2f2f2;
}

.page{
  position: relative;
  display: block;
  top: 50px;
  left: 0;
  padding: 35px 15px 20px 230px;
}

.page-lgn{
  position: relative;
  display: block;
  top: 50px;
  left: 0;
  padding: 35px 15px 20px 230px;
}

.bg-green{
  background-color: #A3C86D;
}

.bg-blue{
  background-color: #7ACBEE;
}

.bg-yellow{
  background-color: #FDD761;
}

/* Changed from red to #356ab1 */
.bg-red{
  background-color: #356ab1;
}

.bg-secondary1{
  background-color: #b17897;
}

.bg-blue2{
  background-color: #7a83ee;
}

.panel-default >.panel-heading{
  background-color: #f5f5f5;
  border-bottom: 2px solid #3498DB;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 15px;
}

.panel-box{
  width: 100%;
  height: 100%;
  text-align: center;
  border: none;
}

.panel-value{
  width: 60%;
}

.panel-icon{
  padding: 30px;
  width: 40%;
  border-radius: 0;
}

.panel-icon{
  -webkit-border-radius: 3px 0 0 3px;
  -moz-border-radius: 3px 0 0 3px;
  border-radius: 3px 0 0 3px;
}

.panel-value{
  -webkit-border-radius: 0 3px 3px 0;
  -moz-border-radius: 0 3px 3px 0;
  border-radius: 0 3px 3px 0;
}

.panel-value h2{
  font-size: 22px;
  margin: 0;
}
.panel-value p {
  font-size: 14px;
  margin: 0;
}

.panel-icon i{
  line-height:65px;
  font-size: 40px;
  color: #fff;
}

#header {
  position: fixed;
  z-index: 99;
  top: 0;
  left: 0;
  background-color: #fff;
  width: 100%;
  height: 65px;
  line-height: 65px;
  -moz-box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  -webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

header > .logo {
    color: #fff;
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    width: 210px; /* Updated to 210px */
    background-color: #356ab1;
}

.header-date{
  color: #9b9b9b;
  margin-left: 20px;
}

.info-menu{
  height: 60px;
  margin: 0;
  line-height: 60px;
  padding: 0 15px;
}

.info-menu li.profile {
  position: relative;
}

.profile a.toggle{
  text-decoration: none;
  text-align: center;
  font-size: 14px;
  color: rgba(150, 150, 158, 1.0);
  position: relative;
  padding: 10px 10px 10px 0;
  margin: 0;
  background: #f9f9f9;
  border-radius: 30px;
}

.info-menu li.profile a img{
  width: 30px;
  height: 30px;
}

.dropdown-menu{
  margin-top: 4px;
  border-color: #fefefe;
  border-radius: 0;
  box-shadow: 0px 0px 5px rgba(86, 96, 117, 0.15);
  -moz-box-shadow: 0px 0px 5px rgba(86, 96, 117, 0.15);
  -webkit-box-shadow: 0px 0px 5px rgba(86, 96, 117, 0.15);
}

.dropdown-menu li{
  margin: 0;
  padding: 0;
  display: block;
  line-height: 35px;
}

.dropdown-menu li a{
  text-decoration: none;
  display: block;
  font-size: 14px;
  position: relative;
  line-height: 30px;
  width: 100%;
  border-bottom: 1px solid #f4faf9;
}

.dropdown-menu li a i{
  margin-right: 5px;
}

.dropdown-menu li.last a{
  border-bottom: 0;
}

.datepicker{
  text-align: center;
}

.sidebar {
  position: fixed;
  z-index: 10;
  left: 0;
  top: 0;
  padding: 65px 0 0;
  height: 100%;
  width: 210px; /* Updated to 210px */
  background: white;
  border-right: 1px solid #ddd;
  text-align: center;
}

.sidebar ul li:hover,.submenu ul li:hover{
  -webkit-transition: all .2s ease-in-out;
  transition: all .2s ease-in-out;
}

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

.sidebar ul li {
  display: block;
}

.sidebar ul li:hover,ul.submenu{
  background-color: transparent;
}

.sidebar ul li a:hover {
  color: white;
  background: rgba(53, 106, 177, 0.9);
  border-color: rgba(53, 106, 177, 1);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(53, 106, 177, 0.3);
}

.sidebar ul li a:hover i {
  color: white;
  transform: scale(1.1);
}

.sidebar ul li a,ul.submenu li a {
  color: #060606 !important;
  display: block;
  overflow: hidden;
  position: relative;
  white-space: nowrap;
  text-decoration: none;
  text-align: left;
  margin: 10px 15px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
  min-height: 60px;
  display: flex;
  align-items: center;
}

.sidebar ul li a span,.sidebar ul li i{
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 1px;
  text-shadow: 0 1px rgba(0,0,0, 0.3);
  color: #060606 !important;
}

.sidebar ul li a i{
  color: #060606 !important;
  padding: 0;
  margin-right: 15px;
  text-align: center;
  font-size: 24px;
  transition: all 0.3s ease;
}

ul.submenu{
  display: none;
  position: relative;
}

ul.submenu li a:hover{
  background-color:#35404d;
}

ul.submenu li a {
  padding-left: 45px;
}

ul.submenu li:before{
  content: "";
  display: block;
  position: absolute;
  z-index: 1;
  left: 25px;
  top: 0;
  bottom: 0;
  border: 1px dotted #d7d7d7;
  border-width: 0 0 0 1px;
}

ul.submenu li a:before{
  content: "";
  display: inline-block;
  position: absolute;
  width: 7px;
  left: 25px;
  top: 18px;
  border-top: 1px dotted #d7d7d7;
}

.sale_report_header{
  padding: 15px 0;
}

table td h6{
  margin: 0 0 0.2em 0;
}

table tfoot tr td:first-child{
  border: 0;
}

table tfoot tr td:last-child{
  border-top: 1px solid #ccc;
}

table td h6,table tfoot tr td:last-child{
  color: #000;
  _font-size: 1.2em;
  font-weight: normal;
}

.form-control{
  color: #646464;
  border: 1px solid #e6e6e6;
  border-radius: 3px;
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;
  -moz-transition: all .15s ease-out;
  -webkit-transition: all .15s ease-out;
  transition: all .15s ease-out;
}

.form-control:focus{
  background: #f8f8f8;
  border-color: #3498DB;
  outline: 0;
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;
}

.btn{
  border-radius: 3px;
  -webkit-transition: all 300ms ease-in-out;
  -moz-transition: all 300ms ease-in-out;
   transition: all 300ms ease-in-out;
}

.btn-primary {
    color: #fff;
    background-color: #51aded;
    border-color: #3d8fd8
}

.btn-primary:hover, .btn-primary:focus, .btn-primary.focus, .btn-primary:active, .btn-primary.active{
    color: #fff;
    background-color: #3175b8;
    border-color: #3d8fd8
}

.btn-success{
   background-color:#2ecc71
}

.btn-success:hover, .btn-success:focus, .btn-success.focus, .btn-success:active, .btn-success.active{
  background-color:#27ae60
}

.btn-warning{
  background-color: #e7c13e;
  border-color: #dfba3c;
}

.btn-warning:hover, .btn-warning:focus, .btn-warning.focus, .btn-warning:active, .btn-warning.active{
  background-color:#d0ac2c;
  border-color: #dfba3c;
}

.btn-danger{
  background-color: #356ab1
}

.btn-danger:hover, .btn-danger:focus, .btn-danger.focus, .btn-danger:active, .btn-danger.active{
  background-color:#356ab1
}

.input-group-addon{
  background-color: #fcfcfc;
  border: 1px solid #dbdbdb;
  border-radius: 0;
}

input[type=file]{
  text-indent: -99999px;
}

td img.img-thumbnail{
  width: 125px;
  height: 125px;
  vertical-align: top;
}

.img-avatar{
  width: 50px;
  height: 50px;
}

.jumbotron{
  margin-bottom: 0;
}

.list-group-item:first-child,.list-group-item:last-child{
  border-radius: 0;
}

.profile .jumbotron{
  border-radius: 3px 3px 0 0;
}

.profile .jumbotron h3{
  color: white;
}

img.img-size-2{
  width: 125px;
  height: 125px;
}
/* Container to hold the date and time inputs side-by-side */
.date-time-group {
  display: flex;
  gap: 10px;          /* Space between inputs */
  align-items: center; /* Vertical align */
  margin-bottom: 15px;
}

/* Make inputs consistent width */
.date-time-group input[type="date"],
.date-time-group input[type="time"] {
  padding: 8px 12px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 150px; /* Or adjust width as needed */
}

/* Optional: label styling */
.date-time-group label {
  font-weight: 600;
  margin-right: 8px;
  white-space: nowrap;
}
.date-time-group input[type="date"]:focus,
.date-time-group input[type="time"]:focus {
  border-color: #356ab1;
  outline: none;
  box-shadow: 0 0 5px rgba(53, 106, 177, 0.5);
}
/* ======== FIX TABLE OVERFLOW & TEXT VISIBILITY ======== */

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* For smooth scroll on mobile */
}

.table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto; /* Adjust column width to content */
  font-size: 14px;
  background-color: #fff;
}

.table th,
.table td {
  padding: 10px 12px;
  text-align: center;
  vertical-align: middle;
  border: 1px solid #ccc;

  /* SHOW ALL LETTERS SAFELY */
  word-wrap: break-word;
  white-space: normal;          /* Wrap text */
  overflow-wrap: break-word;   /* Break long unbroken words */
}

.table th {
  background-color: #f5f5f5;
  font-weight: bold;
  color: #333;
}
/* Handle smaller screen (tablets & mobiles) */
@media (max-width: 768px) {
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid #ddd;
    padding: 10px 0 10px 0;
    text-align: center;
  }

  .page, .page-lgn {
    padding: 15px; /* Remove left padding caused by sidebar */
  }

  .sidebar ul li a {
    padding: 16px 18px;
    display: flex;
    align-items: center;
    font-size: 18px;
    text-align: center;
    margin: 8px 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    min-height: 55px;
  }

  .sidebar h4 {
    margin-bottom: 10px;
  }

  /* Responsive charts */
  .charts-container {
    flex-direction: column;
    width: 95%;
    gap: 15px;
  }

  .chart-card {
    width: 100%;
    max-width: none;
    padding: 20px;
  }

  /* Responsive tables */
  .table-container {
    width: 95%;
    margin: 20px auto;
    padding: 15px;
  }

  .table-responsive {
    font-size: 12px;
  }

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

/* Handle medium screens (laptops) */
@media (max-width: 1200px) and (min-width: 769px) {
  .charts-container {
    width: 95%;
    gap: 15px;
  }

  .chart-card {
    padding: 20px;
  }

  .table-container {
    width: 95%;
    margin: 25px auto;
  }
}

/* Handle large screens */
@media (min-width: 1400px) {
  .charts-container {
    width: 85%;
    max-width: 1600px;
  }

  .chart-card {
    padding: 30px;
  }
}

/* Handle very small screens (mobile phones) */
@media (max-width: 480px) {
  .sidebar ul li a {
    font-size: 16px;
    padding: 14px 16px;
    margin: 6px 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-height: 50px;
    display: flex;
    align-items: center;
  }

  .charts-container {
    width: 98%;
    margin: 20px auto;
    gap: 10px;
  }

  .chart-card {
    padding: 15px;
  }

  .table-container {
    width: 98%;
    margin: 15px auto;
    padding: 10px;
  }

  .table-responsive {
    font-size: 11px;
  }

  .table th, .table td {
    padding: 6px 4px;
  }

  /* Dashboard tiles responsive */
  .dashboard-container {
    flex-direction: column;
    gap: 10px;
    padding: 0 10px;
  }

  .dashboard-tile {
    width: 100%;
    margin-bottom: 10px;
  }
}
.active {
  background-color: #f5f5f5;
  border-left: 4px solid #007bff;
}
.active a {
  background-color: #007bff !important;
  color: #fff !important;
}

/* Small devices below 480px (extra safety) */
@media (max-width: 480px) {
  .sidebar ul li a {
    font-size: 16px;
    padding: 14px 16px;
    margin: 6px 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-height: 50px;
    display: flex;
    align-items: center;
  }
}

/* Force black color for sidebar navigation */
.sidebar ul li a {
  color: #060606 !important;
}

.sidebar ul li a span {
  color: #060606 !important;
}

.sidebar ul li a i {
  color: #060606 !important;
}

.dashboard-tile {
  width: 260px;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
  text-align: center;
  padding: 35px 25px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255,255,255,0.3);
}

.dashboard-tile:hover { transform: translateY(-10px); }

.dashboard-tile i {
  font-size: 55px;
  margin-bottom: 15px;
  color: #2c3e50; /* Dark icon color */
}

.dashboard-tile h2 {
  font-size: 38px;
  margin: 0;
  font-weight: bold;
  color: #222; /* Dark text color */
}

.dashboard-tile p {
  font-size: 18px;
  margin-top: 5px;
  color: #555; /* Medium text color */
}

.charts-container {
  margin: 50px auto;
  width: 90%;
  max-width: 1400px;
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
}

.chart-card {
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
  padding: 25px;
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(255,255,255,0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

h4 {
  text-align: center;
  font-weight: 600;
  color: #222;
  margin-bottom: 20px;
}

/* Full width table and panel containers */
.container-fluid {
  padding-left: 20px;
  padding-right: 20px;
}

.panel {
  margin-bottom: 20px;
  width: 100%;
}

.panel-body {
  width: 100%;
  padding: 20px;
}

/* Table container improvements */
.table-container {
  width: 100%;
  margin: 20px 0;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 0;
}

/* CRITICAL: Force sidebar navigation color to #060606 */
.sidebar ul li a {
  color: #060606 !important;
}

.sidebar ul li a span {
  color: #060606 !important;
}

.sidebar ul li a i {
  color: #060606 !important;
}

.sidebar ul li a, ul.submenu li a {
  color: #060606 !important;
}

/* Override any existing color rules */
.sidebar ul li a:not(:hover) {
  color: #060606 !important;
}

.sidebar ul li a:not(:hover) span {
  color: #060606 !important;
}

.sidebar ul li a:not(:hover) i {
  color: #060606 !important;
}

/* FINAL OVERRIDE - Force all sidebar elements to #060606 */
* .sidebar ul li a,
* .sidebar ul li a span,
* .sidebar ul li a i {
  color: #060606 !important;
}
