/* This file is automatically generated by the Sass compiler */
/* Do not edit this file directly - edit the source .scss files instead */

/* Reset and Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  margin: 0;
  padding: 0;
  font-size: 16px;
  line-height: 1.5;
  color: #333;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-weight: 700;
  margin-top: 0;
}

p, ul, ol {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

button, input, select, textarea {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* Custom Focus Styles */
input:focus, 
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
input[type="tel"]:focus,
select:focus, 
textarea:focus, 
button:focus,
.form-control:focus {
  outline: none !important;
  border-color: #D6DF23 !important;
  box-shadow: 0 0 0 2px rgba(214, 223, 35, 0.25) !important;
  transition: all 0.2s ease-in-out;
}

/* Variables */
/* Layout */
.app-container {
  display: flex;
  min-height: 100vh;
  background-color: #F7F7F5;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.app-header {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background-color: transparent;
  padding-right: 16px;
  margin-top: 20px;
}
.app-header .search-bar {
  flex: 1;
  max-width: 350px;
  position: relative;
  margin-left: auto;
  display: flex;
  align-items: center;
}
.app-header .search-bar input {
  width: 100%;
  padding: 8px 45px 8px 40px;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background-color: #fff;
  font-size: 14px;
}
.app-header .search-bar input:focus {
  outline: none;
  border-color: rgba(216, 223, 35, 0.5);
  box-shadow: 0 0 0 2px rgba(216, 223, 35, 0.2);
}
.app-header .search-bar .search-icon {
  position: absolute;
  left: 34px;
  top: 51%;
  transform: translateY(-50%);
  color: rgba(0, 0, 0, 0.4);
  z-index: 1;
}
.app-header .search-bar .global-search-btn {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  background: #D6DF23;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s;
}
.app-header .search-bar .global-search-btn:hover {
  background: #c4cc1f;
}
.app-header .search-bar .global-search-btn svg {
  width: 14px;
  height: 14px;
  color: #1F1E30;
}
.app-header .user-menu {
  display: flex;
  align-items: center;
  gap: 12px;
}
.app-header .user-menu .header-logout-btn {
  text-decoration: none;
}
.app-header .user-menu .user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #D8DF23;
}
.app-header .user-menu .user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content-wrapper {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
}

@media (max-width: 576px) {
  .content-wrapper {
    padding: 16px;
  }
  
  .content-wrapper h1 {
    font-size: 22px;
    margin-bottom: 16px;
  }
  
  .content-wrapper h2 {
    font-size: 18px;
    margin-top: 20px;
    margin-bottom: 12px;
  }
  
  .card {
    margin-bottom: 16px;
  }
  
  .card-body {
    padding: 15px;
  }
}
.content-wrapper h1 {
  margin-top: 0;
  margin-bottom: 24px;
  font-size: 24px;
  font-weight: 700;
}

/* Breadcrumb Navigation */
.breadcrumb {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
  font-size: 14px;
}

.breadcrumb a {
  color: #666;
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: #D6DF23;
  text-decoration: underline;
}

.breadcrumb .separator {
  margin: 0 8px;
  color: #ccc;
}

.breadcrumb .current {
  color: #1E1F2F;
  font-weight: 500;
}

/* Page Header Styling */
.page-header h1 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 26px;
  font-weight: 600;
  color: #1E1F2F;
}

.page-header .company-name {
  font-size: 16px;
  color: #666;
  margin-bottom: 24px;
  font-weight: 500;
}

/* Job Details Container Styling */
.job-details-container {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 28px;
  margin-bottom: 30px;
}

@media (max-width: 992px) {
  .job-details-container {
    grid-template-columns: 1fr;
  }
  
  .job-main-content {
    order: 2;
  }
  
  .job-sidebar {
    order: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .job-sidebar {
    grid-template-columns: 1fr;
  }
  
  .breadcrumb {
    display: none;
  }
}
.content-wrapper h2 {
  margin-top: 24px;
  margin-bottom: 16px;
  font-size: 20px;
  font-weight: 700;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.page-header h1 {
  margin: 0;
}
.page-header .page-actions {
  display: flex;
  gap: 8px;
}

.card {
  background-color: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 16px;
  overflow: hidden;
}
.card .card-header {
  padding: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  background-color: #FFFFFF;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card .card-header h2, .card .card-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}
.card .card-body {
  padding: 16px;
}
.card .card-footer {
  padding: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  background-color: rgba(247, 247, 245, 0.5);
}

.job-details {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-top: 10px;
}
@media (max-width: 992px) {
  .job-details {
    grid-template-columns: 1fr;
  }
}
.job-details .job-content .details-header {
  margin-bottom: 24px;
}
.job-details .job-content .details-header h1 {
  margin-bottom: 8px;
  font-size: 24px;
  font-weight: 600;
  color: #1E1F2F;
}
.job-details .job-content .details-header .client-name {
  color: #666;
  display: block;
  margin-bottom: 20px;
  font-size: 16px;
  font-weight: 500;
}
.job-details .job-content .job-tabs {
  margin-bottom: 16px;
}
.job-details .job-content .job-tabs .tab-headers {
  display: flex;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  margin-bottom: 16px;
}
.job-details .job-content .job-tabs .tab-headers .tab-header {
  padding: 8px 16px;
  cursor: pointer;
  font-weight: 700;
  border-bottom: 3px solid transparent;
}
.job-details .job-content .job-tabs .tab-headers .tab-header.active {
  border-bottom-color: #D8DF23;
  color: #000000;
}
.job-details .job-content .job-tabs .tab-headers .tab-header:hover:not(.active) {
  border-bottom-color: rgba(0, 0, 0, 0.2);
}
.job-details .job-content .job-tabs .tab-content {
  display: none;
}
.job-details .job-content .job-tabs .tab-content.active {
  display: block;
}
.job-details .job-sidebar .status-card {
  margin-bottom: 16px;
}
.job-details .job-sidebar .job-numbers-card {
  margin-bottom: 16px;
}
.job-details .job-sidebar .contact-card {
  margin-bottom: 16px;
}
.job-details .job-sidebar .record-time-btn {
  display: block;
  width: 100%;
  padding: 16px;
  border-radius: 8px;
  background-color: #D8DF23;
  color: #000000;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

@media (max-width: 768px) {
  .job-details .job-sidebar .record-time-btn {
    padding: 14px;
    font-size: 14px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 5px;
  }
  
  .job-details .job-sidebar .card-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
  }
}
.job-details .job-sidebar .record-time-btn i {
  margin-right: 8px;
  vertical-align: middle;
}
.job-details .job-sidebar .record-time-btn:hover {
  background-color: #cad318;
}

.client-details {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
}
@media (max-width: 992px) {
  .client-details {
    grid-template-columns: 1fr;
  }
}
.client-details .client-info .company-name {
  margin-bottom: 4px;
}
.client-details .client-info .contact-detail {
  margin-bottom: 8px;
}
.client-details .client-info .contact-detail label {
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}
.client-details .client-info .addresses {
  margin-top: 24px;
}
.client-details .client-info .addresses h3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.client-details .client-info .addresses h3 button {
  font-size: 12px;
}
.client-details .client-info .addresses .address-item {
  margin-bottom: 8px;
  padding: 8px;
  border-radius: 4px;
  background-color: rgba(247, 247, 245, 0.5);
}
.client-details .client-info .addresses .address-item .address-name {
  font-weight: 700;
  margin-bottom: 4px;
}
.client-details .client-contacts h2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.client-details .client-contacts h2 button {
  font-size: 12px;
}

.form-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 768px) {
  .form-columns {
    grid-template-columns: 1fr;
  }
}

.job-dates {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 992px) {
  .job-dates {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 576px) {
  .job-dates {
    grid-template-columns: 1fr;
  }
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
}
.status-badge.status-badge-primary {
  background-color: rgba(216, 223, 35, 0.2);
  color: #898f12;
}
.status-badge.status-badge-success {
  background-color: rgba(216, 223, 35, 0.2);
  color: #898f12;
}
.status-badge.status-badge-warning {
  background-color: rgba(255, 215, 0, 0.2);
  color: #ac9100;
}
.status-badge.status-badge-danger {
  background-color: rgba(255, 99, 71, 0.2);
  color: #cf3919;
}
.status-badge.status-badge-info {
  background-color: rgba(70, 130, 180, 0.2);
  color: #294b68;
}
.status-badge.status-badge-gray {
  background-color: rgba(128, 128, 128, 0.2);
  color: #4d4d4d;
}

.alert {
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 16px;
}
.alert.alert-success {
  background-color: rgba(216, 223, 35, 0.2);
  color: #898f12;
}
.alert.alert-warning {
  background-color: rgba(255, 215, 0, 0.2);
  color: #ac9100;
}
.alert.alert-danger {
  background-color: rgba(255, 99, 71, 0.2);
  color: #cf3919;
}
.alert.alert-info {
  background-color: rgba(70, 130, 180, 0.2);
  color: #294b68;
}

.invoice-container {
  background-color: #FFFFFF;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-width: 1000px;
  margin: 0 auto;
}
.invoice-container .invoice-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
}
.invoice-container .invoice-header .invoice-title h1 {
  margin-top: 0;
  margin-bottom: 4px;
  font-size: 24px;
}
.invoice-container .invoice-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}
@media (max-width: 768px) {
  .invoice-container .invoice-info {
    grid-template-columns: 1fr;
  }
}
.invoice-container .invoice-total {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.invoice-container .invoice-total .total-row {
  display: flex;
  justify-content: space-between;
  width: 300px;
  margin-bottom: 4px;
}
.invoice-container .invoice-total .total-row.grand-total {
  font-weight: 700;
  font-size: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: 8px;
}
.invoice-container .invoice-footer {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}
.invoice-container .invoice-footer .invoice-notes {
  margin-bottom: 24px;
}
.invoice-container .invoice-footer .invoice-completion {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-top-color: #D8DF23;
  border-radius: 50%;
  animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
  to {
    transform: rotate(360deg);
  }
}
.mobile-only {
  display: none;
}
@media (max-width: 768px) {
  .mobile-only {
    display: block;
  }
}

.desktop-only {
  display: block;
}
@media (max-width: 768px) {
  .desktop-only {
    display: none;
  }
}

/* Sidebar */
.sidebar {
  width: 260px;
  background-color: #1F1E30;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 40px);
  flex-shrink: 0;
  transition: all 0.2s ease-in-out;
  margin: 20px 0 20px 20px;
  border-radius: 10px;
}
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: -280px;
    top: 0;
    bottom: 0;
    z-index: 1030;
    width: 280px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    transition: left 0.3s ease;
  }
  
  .sidebar.active {
    left: 0;
  }
  
  .sidebar .sidebar-header {
    padding: 20px;
  }
  
  .sidebar .sidebar-header .logo img {
    width: 160px;
  }
  
  .sidebar .sidebar-nav ul li a {
    padding: 12px 20px;
  }
  
  .sidebar .sidebar-nav {
    padding: 10px 0;
  }
}
.sidebar .sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 10px;
}
.sidebar .sidebar-header .logo {
  display: block;
}
.sidebar .sidebar-header .logo a {
  display: flex;
  justify-content: center;
  text-decoration: none;
  color: #FFFFFF;
}
.sidebar .sidebar-header .logo img {
  height: auto;
  max-width: 100%;
  width: 180px;
}
.sidebar .sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 16px 0;
}
.sidebar .sidebar-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sidebar .sidebar-nav ul li {
  position: relative;
}
.sidebar .sidebar-nav ul li a {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  color: #FFFFFF;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  font-size: 16px;
  font-weight: 400;
  margin: 0 20px;
  position: relative;
}
.sidebar .sidebar-nav ul li a i {
  margin-right: 16px;
  width: 22px;
  height: 22px;
  stroke-width: 1.5;
  color: #D6DF23;
  stroke: #D6DF23;
  flex-shrink: 0;
  position: absolute;
  left: 20px;
}
.sidebar .sidebar-nav ul li a span {
  margin-left: 16px;
}
.sidebar .sidebar-nav ul li a:hover {
  color: #FFFFFF;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 30px;
}
.sidebar .sidebar-nav ul li.active a {
  background-color: #D6DF23;
  border-radius: 30px;
  color: #000000;
  font-weight: 500;
}
.sidebar .sidebar-nav ul li.active a i {
  color: #000000;
  stroke: #000000;
}
.sidebar .sidebar-nav ul li .submenu {
  padding-left: 40px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}
.sidebar .sidebar-nav ul li .submenu li a {
  padding: 6px 16px;
  font-size: 12px;
}

/* Archived tab styling */
.sidebar .sidebar-nav ul li .submenu li a.archived-tab {
  color: #888;
  opacity: 0.7;
}

.sidebar .sidebar-nav ul li .submenu li a.archived-tab:hover {
  color: #D6DF23;
  opacity: 1;
}
.sidebar .sidebar-nav ul li.active .submenu {
  max-height: 500px;
}
.sidebar .sidebar-footer {
  padding: 16px 0;
  position: relative;
}
/* Removed sidebar footer line */
.sidebar .sidebar-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sidebar .sidebar-footer ul li a {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  color: #FFFFFF;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  font-size: 16px;
  font-weight: 400;
  margin: 0 20px;
  position: relative;
}

/* Archive link styling */
.sidebar .sidebar-footer ul li a.archive-link.archive-gray {
  color: #707070; /* Gray color for archive text */
}

.sidebar .sidebar-footer ul li a.archive-link.archive-gray i {
  color: #707070;
  stroke: #707070;
}

.sidebar .sidebar-footer ul li.separator {
  height: 1px;
  background-color: #D6DF23;
  margin: 10px 20px;
  padding: 0;
  list-style: none;
  position: relative;
}

.sidebar .sidebar-footer ul li.separator:before {
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 1px;
  background-color: #D6DF23;
}

.sidebar .sidebar-footer ul li a i {
  margin-right: 16px;
  width: 22px;
  height: 22px;
  stroke-width: 1.5;
  color: #D6DF23;
  stroke: #D6DF23;
  flex-shrink: 0;
  position: absolute;
  left: 20px;
}

/* Archive link hover styles */
.sidebar .sidebar-footer ul li a span {
  margin-left: 16px;
}
.sidebar .sidebar-footer ul li a:hover {
  color: #FFFFFF;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 30px;
}

/* Archive link hover and active states */
.sidebar .sidebar-footer ul li a.archive-link.archive-gray:hover {
  color: #FFFFFF;
  background-color: rgba(255, 255, 255, 0.05);
}

.sidebar .sidebar-footer ul li a.archive-link.archive-gray:hover i {
  color: #FFFFFF;
  stroke: #FFFFFF;
}

.sidebar .sidebar-footer ul li.active a.archive-link.archive-gray {
  background-color: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

.sidebar .sidebar-footer ul li.active a.archive-link.archive-gray i {
  color: #FFFFFF;
  stroke: #FFFFFF;
}

.sidebar-toggle {
  display: none;
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 1031;
  background-color: #000000;
  color: #FFFFFF;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
@media (max-width: 768px) {
  .sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    top: 15px;
    left: 15px;
    background-color: #1F1E30;
    border: 2px solid #D6DF23;
  }
  
  .sidebar-toggle:hover,
  .sidebar-toggle:focus {
    background-color: #2c2b45;
  }
  
  .content-wrapper {
    padding-top: 65px;
  }
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1040;
}
@media (max-width: 768px) {
  .sidebar-backdrop.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
  }
  
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
}

/* Forms */
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 14px;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  color: #444;
}
.form-group input[type=text],
.form-group input[type=email],
.form-group input[type=password],
.form-group input[type=number],
.form-group input[type=date],
.form-group input[type=tel],
.form-group input[type=url],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-size: 14px;
  transition: all 0.2s ease-in-out;
  background-color: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.form-group input[type=text]:hover:not(:focus),
.form-group input[type=email]:hover:not(:focus),
.form-group input[type=password]:hover:not(:focus),
.form-group input[type=number]:hover:not(:focus),
.form-group input[type=date]:hover:not(:focus),
.form-group input[type=tel]:hover:not(:focus),
.form-group input[type=url]:hover:not(:focus),
.form-group textarea:hover:not(:focus),
.form-group select:hover:not(:focus) {
  border-color: #bbb;
}
.form-group input[type=text]:focus,
.form-group input[type=email]:focus,
.form-group input[type=password]:focus,
.form-group input[type=number]:focus,
.form-group input[type=date]:focus,
.form-group input[type=tel]:focus,
.form-group input[type=url]:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #D6DF23;
  box-shadow: 0 0 0 3px rgba(214, 223, 35, 0.2);
}
.form-group input[type=text]:disabled,
.form-group input[type=email]:disabled,
.form-group input[type=password]:disabled,
.form-group input[type=number]:disabled,
.form-group input[type=date]:disabled,
.form-group input[type=tel]:disabled,
.form-group input[type=url]:disabled,
.form-group textarea:disabled,
.form-group select:disabled {
  background-color: rgba(0, 0, 0, 0.05);
  cursor: not-allowed;
}
.form-group textarea {
  min-height: 100px;
  resize: vertical;
}
.form-group select {
  appearance: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23666666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
  cursor: pointer;
}
.form-group input[type=checkbox],
.form-group input[type=radio] {
  margin-right: 4px;
}
.form-group input[type=checkbox] + label,
.form-group input[type=radio] + label {
  display: inline-block;
  margin-bottom: 0;
  font-weight: 400;
  cursor: pointer;
}
.form-group input[type=file] {
  display: block;
  width: 100%;
  padding: 8px 0;
}
.form-group .form-help {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.5);
}
.form-group.has-error label {
  color: #FF6347;
}
.form-group.has-error input[type=text],
.form-group.has-error input[type=email],
.form-group.has-error input[type=password],
.form-group.has-error input[type=number],
.form-group.has-error input[type=date],
.form-group.has-error input[type=tel],
.form-group.has-error input[type=url],
.form-group.has-error textarea,
.form-group.has-error select {
  border-color: #FF6347;
}
.form-group.has-error .error-message {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #FF6347;
}

.input-with-icon {
  position: relative;
}
.input-with-icon input {
  padding-left: 40px !important;
}
.input-with-icon i, .input-with-icon svg {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(0, 0, 0, 0.4);
  width: 20px;
  height: 20px;
}
.input-with-icon select {
  flex: 1;
  margin-left: 8px;
}

.custom-checkbox {
  display: flex;
  align-items: center;
  cursor: pointer;
}
.custom-checkbox .checkbox-input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}
.custom-checkbox .checkbox-checkmark {
  position: relative;
  height: 20px;
  width: 20px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  background-color: #FFFFFF;
  margin-right: 8px;
  transition: all 0.2s ease-in-out;
}
.custom-checkbox .checkbox-checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #000000;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.custom-checkbox .checkbox-input:checked ~ .checkbox-checkmark {
  background-color: #D8DF23;
  border-color: #D8DF23;
}
.custom-checkbox .checkbox-input:checked ~ .checkbox-checkmark:after {
  display: block;
}
.custom-checkbox:hover .checkbox-checkmark {
  border-color: rgba(0, 0, 0, 0.4);
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.radio-group .radio-option {
  display: flex;
  align-items: center;
}
.radio-group .radio-option input[type=radio] {
  margin-right: 4px;
}
.radio-group .radio-option label {
  margin-bottom: 0;
  font-weight: 400;
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.switch input:checked + .slider {
  background-color: #D8DF23;
}
.switch input:checked + .slider:before {
  transform: translateX(20px);
}
.switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #8B5CF6;
  transition: all 0.2s ease-in-out;
  border-radius: 24px;
}
.switch .slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 2px;
  bottom: 2px;
  background-color: #FFFFFF;
  transition: all 0.2s ease-in-out;
  border-radius: 50%;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}
.form-row .form-group {
  flex: 1;
  margin-bottom: 0;
}
@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
    gap: 16px;
    margin-bottom: 16px;
  }
  
  .form-row .form-group {
    margin-bottom: 0;
  }
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 30px;
}
.form-actions button, .form-actions .btn {
  min-width: 140px;
}
@media (max-width: 768px) {
  .form-actions {
    flex-direction: column;
    gap: 12px;
  }
  .form-actions button, .form-actions .btn {
    width: 100%;
    min-width: auto;
  }
  .form-actions .btn-secondary {
    order: 2;
  }
  .form-actions .btn-primary {
    order: 1;
  }
}

.form-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 24px;
}
@media (max-width: 576px) {
  .form-buttons {
    flex-direction: column-reverse;
  }
  .form-buttons button, .form-buttons .btn {
    width: 100%;
  }
}

.login-form {
  max-width: 400px;
  margin: 0 auto;
  padding: 24px;
  background-color: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.login-form .logo {
  text-align: center;
  margin-bottom: 24px;
}
.login-form .logo img, .login-form .logo svg {
  height: 60px;
  width: auto;
}
.login-form h1 {
  text-align: center;
  margin-bottom: 24px;
}
.login-form .form-group {
  margin-bottom: 16px;
}
.login-form .form-buttons {
  margin-top: 24px;
}
.login-form .form-buttons button {
  width: 100%;
}
.login-form .form-footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}
.login-form .form-footer a {
  color: #000000;
  text-decoration: none;
}
.login-form .form-footer a:hover {
  text-decoration: underline;
}

.search-form {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}
.search-form input[type=text] {
  flex: 1;
}
.search-form .btn {
  flex-shrink: 0;
}
@media (max-width: 576px) {
  .search-form {
    flex-direction: column;
  }
}

.filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  padding: 16px;
  background-color: rgba(247, 247, 245, 0.5);
  border-radius: 8px;
}
.filter-form .form-group {
  flex: 1;
  min-width: 200px;
  margin-bottom: 0;
}
.filter-form .filter-actions {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
@media (max-width: 768px) {
  .filter-form .form-group {
    min-width: 100%;
  }
  .filter-form .filter-actions {
    width: 100%;
    justify-content: flex-end;
    margin-top: 8px;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  border: 1px solid transparent;
  padding: 10px 18px;
  font-size: 14px;
  line-height: 1.5;
  border-radius: 6px;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.12);
}
.btn:focus {
  outline: none;
}
.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 3px rgba(0,0,0,0.06);
}
.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}
.btn i, .btn svg {
  vertical-align: middle;
  margin-right: 8px;
  width: 16px;
  height: 16px;
}

.btn-primary {
  background-color: #D6DF23;
  color: #1E1F2F;
  border-color: #D6DF23;
  box-shadow: 0 3px 8px rgba(214, 223, 35, 0.3);
}
.btn-primary:hover {
  background-color: #c4cc21;
  border-color: #c4cc21;
  box-shadow: 0 4px 12px rgba(214, 223, 35, 0.4);
}
.btn-primary:focus {
  box-shadow: 0 0 0 3px rgba(214, 223, 35, 0.3), 0 3px 8px rgba(214, 223, 35, 0.3);
}
.btn-primary:active {
  background-color: #b6bc13;
  border-color: #b6bc13;
}

.btn-secondary {
  background-color: #FFFFFF;
  color: #1E1F2F;
  border-color: #ddd;
}
.btn-secondary:hover {
  background-color: #f9f9f9;
  border-color: #bbb;
}
.btn-secondary:focus {
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}
.btn-secondary:active {
  background-color: #f1f1f1;
}

.btn-success {
  background-color: #D6DF23;
  color: #1E1F2F;
  border-color: #D6DF23;
  box-shadow: 0 3px 8px rgba(214, 223, 35, 0.3);
}
.btn-success:hover {
  background-color: #c4cc21;
  border-color: #c4cc21;
  box-shadow: 0 4px 12px rgba(214, 223, 35, 0.4);
}
.btn-success:focus {
  box-shadow: 0 0 0 3px rgba(214, 223, 35, 0.3), 0 3px 8px rgba(214, 223, 35, 0.3);
}
.btn-success:active {
  background-color: #b6bc13;
  border-color: #b6bc13;
}

.btn-danger {
  background-color: #e75757;
  color: #FFFFFF;
  border-color: #e75757;
  box-shadow: 0 3px 8px rgba(231, 87, 87, 0.3);
}
.btn-danger:hover {
  background-color: #d64848;
  border-color: #d64848;
  box-shadow: 0 4px 12px rgba(231, 87, 87, 0.4);
}
.btn-danger:focus {
  box-shadow: 0 0 0 3px rgba(231, 87, 87, 0.3), 0 3px 8px rgba(231, 87, 87, 0.3);
}
.btn-danger:active {
  background-color: #c83e3e;
  border-color: #c83e3e;
}

.btn-warning {
  background-color: #FFD700;
  color: #000000;
  border-color: #FFD700;
}
.btn-warning:hover {
  background-color: #ccac00;
  border-color: #ccac00;
}
.btn-warning:focus {
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.3);
}

.btn-info {
  background-color: #4682B4;
  color: #FFFFFF;
  border-color: #4682B4;
}
.btn-info:hover {
  background-color: #386890;
  border-color: #386890;
}
.btn-info:focus {
  box-shadow: 0 0 0 3px rgba(70, 130, 180, 0.3);
}

.btn-cancel {
  background-color: transparent;
  color: rgba(0, 0, 0, 0.7);
}
.btn-cancel:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.btn-outline-primary {
  background-color: transparent;
  color: #D8DF23;
  border-color: #D8DF23;
}
.btn-outline-primary:hover {
  background-color: #D8DF23;
  color: #000000;
}

.btn-outline-secondary {
  background-color: transparent;
  color: #000000;
  border-color: rgba(0, 0, 0, 0.2);
}
.btn-outline-secondary:hover {
  background-color: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.3);
}

.btn-outline-danger {
  background-color: transparent;
  color: #FF6347;
  border-color: #FF6347;
}
.btn-outline-danger:hover {
  background-color: #FF6347;
  color: #FFFFFF;
}

.btn-lg {
  padding: 16px 24px;
  font-size: 16px;
  border-radius: 8px;
}

.btn-sm {
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 4px;
}

.btn-block {
  display: block;
  width: 100%;
}

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.btn-icon i, .btn-icon svg {
  margin-right: 0;
}
.btn-icon.btn-sm {
  width: 30px;
  height: 30px;
}
.btn-icon.btn-sm i, .btn-icon.btn-sm svg {
  width: 14px;
  height: 14px;
}
.btn-icon.btn-lg {
  width: 48px;
  height: 48px;
}
.btn-icon.btn-lg i, .btn-icon.btn-lg svg {
  width: 20px;
  height: 20px;
}

.btn-group {
  display: inline-flex;
}
.btn-group .btn {
  border-radius: 0;
}
.btn-group .btn:not(:last-child) {
  border-right: none;
}
.btn-group .btn:first-child {
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}
.btn-group .btn:last-child {
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}

.fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #D8DF23;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  z-index: 1030;
}
.fab i, .fab svg {
  width: 24px;
  height: 24px;
  margin: 0;
}
.fab:hover {
  background-color: #b6bc13;
  transform: scale(1.05);
}
.fab:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(216, 223, 35, 0.3), 0 10px 15px rgba(0, 0, 0, 0.1);
}

.btn-add {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #D8DF23;
  color: #000000;
  width: auto;
  height: 32px;
  padding: 0 16px;
  border-radius: 16px;
  border: none;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}
.btn-add i, .btn-add svg {
  margin-right: 4px;
  width: 16px;
  height: 16px;
}
.btn-add:hover {
  background-color: #b6bc13;
}
.btn-add:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(216, 223, 35, 0.3);
}

.row-actions {
  display: flex;
  gap: 4px;
}
.row-actions .btn-icon {
  width: 24px;
  height: 24px;
}
.row-actions .btn-icon i, .row-actions .btn-icon svg {
  width: 14px;
  height: 14px;
}

.action-group {
  position: relative;
  display: flex;
  gap: 8px;
}

.action-menu {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 5px;
  background: white;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  width: 200px;
  z-index: 1050;
  display: none;
  overflow: hidden;
}

.action-menu.active {
  display: block;
}

.action-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  color: #333;
  text-decoration: none;
  transition: background-color 0.2s;
}

.action-item:hover {
  background-color: #f5f5f5;
  text-decoration: none;
}

.action-item svg {
  width: 16px;
  height: 16px;
  color: #666;
}

/* Tables */
.table {
  width: 100%;
  margin-bottom: 16px;
  border-collapse: collapse;
}
.table th, .table td {
  padding: 8px 16px;
  text-align: left;
  vertical-align: middle;
}
.table thead th {
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
  font-weight: 700;
  color: rgba(0, 0, 0, 0.7);
  background-color: rgba(247, 247, 245, 0.5);
  white-space: nowrap;
}
.table tbody tr {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease-in-out;
}
.table tbody tr:hover {
  background-color: rgba(247, 247, 245, 0.3);
}
.table tbody tr td {
  color: rgba(0, 0, 0, 0.8);
}
@media (max-width: 768px) {
  .table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

.table-fixed-header {
  overflow: auto;
  max-height: 500px;
}
.table-fixed-header table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.table-fixed-header table thead {
  position: sticky;
  top: 0;
  z-index: 1;
  background-color: #FFFFFF;
}
.table-fixed-header table thead th {
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
  background-color: rgba(247, 247, 245, 0.5);
}

.table-bordered {
  border: 1px solid rgba(0, 0, 0, 0.1);
}
.table-bordered th, .table-bordered td {
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.table-striped tbody tr:nth-child(2n+1) {
  background-color: #fff;
}
.table-striped tbody tr:nth-child(2n+1):hover {
  background-color: rgba(247, 247, 245, 0.5);
}

.table-hover tbody tr:hover {
  background-color: rgba(247, 247, 245, 0.5);
}

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

.table-condensed th, .table-condensed td {
  padding: 2px 4px;
  font-size: 12px;
}

.table-actions th:last-child, .table-actions td:last-child {
  text-align: right;
  white-space: nowrap;
  width: 1%;
}

@media (max-width: 576px) {
  .table-stacked thead {
    display: none;
  }
  .table-stacked tbody {
    display: block;
  }
  .table-stacked tbody tr {
    display: block;
    margin-bottom: 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
  }
  .table-stacked tbody tr td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    text-align: right;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }
  .table-stacked tbody tr td:before {
    content: attr(data-label);
    font-weight: 700;
    text-align: left;
    padding-right: 8px;
  }
  .table-stacked tbody tr td:last-child {
    border-bottom: none;
  }
}

.data-table {
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .data-table-wrapper {
    margin: 0 -16px;
    width: calc(100% + 32px);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .data-table {
    margin-bottom: 12px;
  }
  
  .data-table .table-controls {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .data-table .table-controls .table-search {
    max-width: 100%;
    width: 100%;
  }
  
  .data-table .table-controls .table-actions {
    width: 100%;
    display: flex;
    justify-content: space-between;
  }
  
  .data-table .table-header {
    padding: 12px 15px;
  }
  
  .data-table .table-body {
    padding: 0 15px;
  }
  
  .data-table .table-row {
    padding: 10px 0;
  }
}
.data-table .table-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.data-table .table-controls .table-search {
  flex: 1;
  max-width: 300px;
}
.data-table .table-controls .table-search input {
  width: 100%;
}
.data-table .table-controls .table-actions {
  display: flex;
  gap: 8px;
}
.data-table .table-wrapper {
  overflow-x: auto;
}
.data-table .table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}
.data-table .table-footer .table-info {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.6);
}
.data-table .table-footer .table-pagination {
  display: flex;
  gap: 4px;
}

@media (max-width: 768px) {
  .data-table .table-footer {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  
  .data-table .table-footer .table-info {
    width: 100%;
    text-align: center;
  }
  
  .data-table .table-footer .table-pagination {
    justify-content: center;
    width: 100%;
  }
  
  .data-table .table-footer .table-pagination .page-item .page-link {
    width: 36px;
    height: 36px;
  }
}
.data-table .table-footer .table-pagination .page-item {
  display: inline-block;
}
.data-table .table-footer .table-pagination .page-item .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background-color: #FFFFFF;
  color: #000000;
  text-decoration: none;
  font-size: 12px;
  transition: all 0.2s ease-in-out;
}
.data-table .table-footer .table-pagination .page-item .page-link:hover {
  background-color: #F7F7F5;
  border-color: rgba(0, 0, 0, 0.2);
}
.data-table .table-footer .table-pagination .page-item.active .page-link {
  background-color: #D8DF23;
  border-color: #D8DF23;
  color: #000000;
}
.data-table .table-footer .table-pagination .page-item.disabled .page-link {
  color: rgba(0, 0, 0, 0.3);
  pointer-events: none;
  background-color: #FFFFFF;
}

.line-items-table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 24px;
}
.line-items-table th, .line-items-table td {
  padding: 8px;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.line-items-table thead th {
  font-weight: 700;
  background-color: rgba(247, 247, 245, 0.5);
}
.line-items-table tbody tr:hover {
  background-color: rgba(247, 247, 245, 0.2);
}
.line-items-table .col-ref {
  width: 10%;
}
.line-items-table .col-desc {
  width: 40%;
}
.line-items-table .col-location {
  width: 20%;
}
.line-items-table .col-qty {
  width: 5%;
  text-align: center;
}
.line-items-table .col-account {
  width: 10%;
}
.line-items-table .col-tax {
  width: 5%;
  text-align: center;
}
.line-items-table .col-price {
  width: 10%;
  text-align: right;
}
.line-items-table tfoot td {
  text-align: right;
  font-weight: 700;
}

.rams-table {
  border-collapse: collapse;
  width: 100%;
}
.rams-table th, .rams-table td {
  padding: 8px;
  text-align: left;
  border: 1px solid rgba(0, 0, 0, 0.1);
}
.rams-table thead th {
  background-color: #000000;
  color: #FFFFFF;
  font-weight: 700;
}
.rams-table .col-ref {
  width: 8%;
}
.rams-table .col-action {
  width: 35%;
}
.rams-table .col-priority-high, .rams-table .col-priority-medium, .rams-table .col-priority-low {
  width: 5%;
  text-align: center;
}
.rams-table .priority-checkboxes {
  display: flex;
  justify-content: space-around;
}
.rams-table .priority-checkboxes input[type=checkbox] {
  width: 18px;
  height: 18px;
}
.rams-table tbody tr:nth-child(even) {
  background-color: rgba(247, 247, 245, 0.3);
}

.activity-table {
  width: 100%;
  margin-bottom: 16px;
}
.activity-table .activity-row {
  display: flex;
  margin-bottom: 8px;
}
.activity-table .activity-row .activity-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 8px;
  flex-shrink: 0;
}
.activity-table .activity-row .activity-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.activity-table .activity-row .activity-content {
  flex: 1;
}
.activity-table .activity-row .activity-content .activity-text {
  padding: 8px;
  background-color: #FFFFFF;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  margin-bottom: 4px;
}
.activity-table .activity-row .activity-content .activity-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.5);
}
.activity-table .activity-row .activity-content .activity-meta .activity-time {
  font-style: italic;
}
.activity-table .activity-row .activity-content .activity-meta .activity-user {
  font-weight: 700;
}

/* Modals */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1050;
  overflow-y: auto;
  padding: 16px;
  align-items: center;
  justify-content: center;
}
.modal.active {
  display: flex;
}
.modal .modal-content {
  background-color: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 500px;
  position: relative;
  padding: 24px;
  margin: auto;
}
.modal .modal-content h2 {
  margin-top: 0;
  margin-bottom: 24px;
  font-size: 24px;
  font-weight: 600;
  color: #000000;
  text-align: center;
  position: relative;
  padding-bottom: 10px;
}

.modal .modal-content h2:after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: #D6DF23;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}
.modal .modal-content .modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(0, 0, 0, 0.5);
  width: 24px;
  height: 24px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal .modal-content .modal-close:hover {
  color: #000000;
}
.modal.modal-lg .modal-content {
  max-width: 800px;
}
.modal.modal-sm .modal-content {
  max-width: 400px;
}

#recordTimeModal .modal-content {
  max-width: 500px;
  border-radius: 8px;
  padding: 30px 40px;
}
#recordTimeModal .record-time-header {
  text-align: center;
  margin-bottom: 30px;
}
#recordTimeModal .record-time-header h2 {
  font-size: 28px;
  margin-bottom: 4px;
  font-weight: 500;
  color: #000;
}
#recordTimeModal .record-time-underline {
  height: 3px;
  width: 40px;
  background-color: #D6DF23;
  margin: 0 auto;
}
#recordTimeModal .form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}
#recordTimeModal .form-group {
  flex: 1;
}
#recordTimeModal label {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
}
#recordTimeModal .date-picker-container,
#recordTimeModal .time-select-container {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  height: 44px;
  padding: 0 8px;
  background-color: #fff;
}
#recordTimeModal .calendar-icon:before {
  content: '';
  margin-right: 0;
}
#recordTimeModal .clock-icon:before {
  content: '';
  margin-right: 0;
}
#recordTimeModal input[type="date"] {
  border: none;
  width: 100%;
  height: 40px;
  background: transparent;
  font-size: 15px;
  padding: 0;
  padding-left: 0px !important;
  color: #333;
}
#recordTimeModal .time-dropdown {
  position: relative;
  flex: 1;
}
#recordTimeModal select {
  width: 100%;
  border: none;
  height: 40px;
  appearance: none;
  background: transparent;
  font-size: 15px;
  padding-right: 20px;
  cursor: pointer;
}
#recordTimeModal .dropdown-arrow:after {
  content: '▼';
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  color: #D6DF23;
}
#recordTimeModal .record-time-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}
#recordTimeModal .btn-log-time {
  width: 100%;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 500;
  border: none;
  border-radius: 30px;
  background-color: #D6DF23;
  color: #000;
  cursor: pointer;
  transition: background-color 0.2s;
}
#recordTimeModal .btn-log-time:hover {
  background-color: #c1c91e;
}
#recordTimeModal .btn-cancel-link {
  background: none;
  border: none;
  color: #666;
  text-decoration: none;
  cursor: pointer;
  font-size: 14px;
}
#recordTimeModal .btn-cancel-link:hover {
  text-decoration: underline;
}

/* Log Time Modal (timesheet page) styles */
#logTimeModal .modal-content {
  max-width: 500px;
  border-radius: 8px;
  padding: 30px 40px;
}
#logTimeModal .record-time-header {
  text-align: center;
  margin-bottom: 30px;
}
#logTimeModal .record-time-header h2 {
  font-size: 28px;
  margin-bottom: 4px;
  font-weight: 500;
  color: #000;
}
#logTimeModal .form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}
#logTimeModal .form-group {
  flex: 1;
}
#logTimeModal .form-group.half {
  flex: 0.5;
}
#logTimeModal label {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
}
#logTimeModal .job-select-container {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  height: 44px;
  padding: 0 8px;
  background-color: #fff;
}
#logTimeModal .briefcase-icon {
  width: 16px;
  height: 16px;
  margin-right: 8px;
}
#logTimeModal .date-picker-container,
#logTimeModal .time-select-container {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  height: 44px;
  padding: 0 8px;
  background-color: #fff;
}
#logTimeModal .calendar-icon {
  width: 16px;
  height: 16px;
  margin-right: 8px;
}
#logTimeModal .clock-icon {
  width: 16px;
  height: 16px;
  margin-right: 8px;
}
#logTimeModal input[type="date"] {
  border: none;
  width: 100%;
  height: 40px;
  background: transparent;
  font-size: 15px;
  padding: 0;
  padding-left: 0px !important;
  color: #333;
}
#logTimeModal .time-dropdown {
  position: relative;
  flex: 1;
}
#logTimeModal select {
  width: 100%;
  border: none;
  height: 40px;
  appearance: none;
  background: transparent;
  font-size: 15px;
  padding-right: 20px;
  cursor: pointer;
  color: #333;
}
#logTimeModal .time-dropdown .dropdown-arrow:after {
  content: '▼';
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  color: #D6DF23;
}

#logTimeModal .searchable-job-select .searchable-select-wrapper {
  flex: 1;
}

#logTimeModal .searchable-job-select .searchable-select-trigger {
  border: none;
  background: transparent;
  padding: 0;
  padding-right: 8px;
  height: 40px;
}

#logTimeModal .searchable-job-select .searchable-select-arrow {
  color: #999;
}

#logTimeModal .searchable-job-select .searchable-select-search {
  display: none !important;
}

#logTimeModal .job-select-container .searchable-select-search {
  display: none !important;
}

#logTimeModal .multi-select-dropdown .dropdown-arrow {
  display: none;
}

#logTimeModal .multi-select-button {
  position: relative;
  padding-right: 30px;
}

#logTimeModal .multi-select-button::after {
  content: '';
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #999;
}
#logTimeModal .record-time-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}
#logTimeModal .btn-log-time {
  width: 100%;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 500;
  border: none;
  border-radius: 30px;
  background-color: #D6DF23;
  color: #000;
  cursor: pointer;
  transition: background-color 0.2s;
}
#logTimeModal .btn-log-time:hover {
  background-color: #c1c91e;
}
#logTimeModal .btn-cancel-link {
  background: none;
  border: none;
  color: #666;
  text-decoration: none;
  cursor: pointer;
  font-size: 14px;
}
#logTimeModal .btn-cancel-link:hover {
  text-decoration: underline;
}

#addJobModal .modal-content {
  max-width: 600px;
}

#addClientModal .modal-content {
  max-width: 600px;
}
#addClientModal .modal-section {
  margin-top: 24px;
}
#addClientModal .modal-section h3 {
  margin-bottom: 16px;
  font-size: 16px;
  font-weight: 700;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

#uploadDocumentModal .file-upload-container {
  margin-bottom: 16px;
}
#uploadDocumentModal .file-upload-container .file-upload-input {
  display: none;
}
#uploadDocumentModal .file-upload-container .file-upload-label {
  display: block;
  padding: 24px;
  border: 2px dashed rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}
#uploadDocumentModal .file-upload-container .file-upload-label:hover {
  border-color: rgba(216, 223, 35, 0.5);
}
#uploadDocumentModal .file-upload-container .file-upload-label i {
  display: block;
  margin: 0 auto 8px;
  color: rgba(0, 0, 0, 0.3);
}
#uploadDocumentModal .file-upload-container .file-upload-label span {
  display: block;
}
#uploadDocumentModal .file-upload-container .file-upload-label span.file-upload-prompt {
  font-weight: 700;
  margin-bottom: 4px;
}
#uploadDocumentModal .file-upload-container .file-upload-label span.file-upload-info {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.5);
}
#uploadDocumentModal .file-upload-container .file-upload-preview {
  display: none;
  margin-top: 16px;
  padding: 16px;
  background-color: rgba(247, 247, 245, 0.5);
  border-radius: 8px;
}
#uploadDocumentModal .file-upload-container .file-upload-preview.active {
  display: block;
}
#uploadDocumentModal .file-upload-container .file-upload-preview .file-name {
  font-weight: 700;
  margin-bottom: 4px;
}
#uploadDocumentModal .file-upload-container .file-upload-preview .file-size {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.5);
}
#uploadDocumentModal .file-upload-container .file-upload-preview .file-actions {
  margin-top: 8px;
}

#addQuoteModal .modal-content {
  max-width: 500px;
}

#addAreaModal .modal-content {
  max-width: 500px;
}

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

html, body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #000000;
  background-color: #F7F7F5;
}

/* Timesheet Filters Bar Styling */
.timesheet-filters-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 12px 20px;
  margin-bottom: 24px;
  gap: 20px;
}

.filter-left-section {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
}

.filter-right-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-container {
  position: relative;
  display: flex;
  align-items: center;
}

.search-container .search-icon {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  color: #6c757d;
  z-index: 1;
}

.search-container input {
  padding: 8px 12px 8px 36px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  width: 200px;
  background-color: #fff;
}

.date-inputs-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.date-input-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.date-input-container label {
  font-size: 14px;
  color: #495057;
  white-space: nowrap;
  margin: 0;
}

.date-input-container input[type="date"] {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  background-color: #fff;
  min-width: 140px;
}

.filter-dropdown-container {
  position: relative;
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover {
  background-color: #f8f9fa;
  border-color: #bbb;
}

.filter-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  padding: 16px;
  min-width: 300px;
  z-index: 1000;
  display: none;
}

.filter-dropdown-menu.show {
  display: block;
}

.filter-option {
  margin-bottom: 12px;
}

.filter-option label {
  display: block;
  font-size: 12px;
  color: #6c757d;
  margin-bottom: 4px;
}

.filter-option select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.filter-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.week-navigation {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.nav-btn:hover {
  background-color: #f8f9fa;
  border-color: #bbb;
}

.week-navigation span {
  font-size: 14px;
  font-weight: 500;
  color: #495057;
  min-width: 100px;
  text-align: center;
}

.export-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.export-btn:hover {
  background-color: #f8f9fa;
  border-color: #bbb;
}

.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background-color: #F7F7F5;
}
.login-page .login-container {
  width: 100%;
  max-width: 400px;
  padding: 16px;
}
.login-page .login-form {
  background-color: #000000;
  border-radius: 12px;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
  padding: 32px;
  color: #FFFFFF;
}
.login-page .login-form .logo {
  text-align: center;
  margin-bottom: 32px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.login-page .login-form .logo-image {
  height: auto;
  max-width: 80%;
}
.login-page .login-form h1 {
  text-align: left;
  margin-bottom: 8px;
  margin-top: 16px;
  font-size: 16px;
  font-weight: 400;
  color: #D6DF23;
}

.login-page .login-form input[type="text"],
.login-page .login-form input[type="password"] {
  background-color: #FFFFFF;
  border: none;
  border-radius: 4px;
  color: #000000;
  font-size: 16px;
  padding: 10px 16px;
  width: 100%;
}

.login-page .login-form .password-container {
  position: relative;
  width: 100%;
}

.login-page .login-form .toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #666666;
}

.login-page .login-form .toggle-password:hover {
  color: #333333;
}

.login-page .login-form .remember-me {
  display: flex;
  align-items: center;
  margin-top: 16px;
}

.login-page .login-form .remember-me label {
  margin-left: 8px;
  font-weight: normal;
  font-size: 14px;
  color: #D6DF23;
}

.login-page .login-form .form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
}

@media (max-width: 480px) {
  .login-page .login-form {
    padding: 25px 20px;
  }
  
  .login-page .login-form .form-actions {
    flex-direction: column;
    gap: 15px;
  }
  
  .login-page .login-form .btn-primary {
    width: 100%;
    order: 1;
    padding: 10px;
  }
  
  .login-page .login-form .forgot-password {
    order: 2;
    align-self: center;
  }
}

.login-page .login-form .forgot-password {
  color: #FFFFFF;
  text-decoration: none;
  font-size: 14px;
}

.login-page .login-form .btn-primary {
  background-color: #D6DF23;
  color: #000000;
  border: none;
  border-radius: 20px;
  padding: 8px 24px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
}

.login-page .login-form .btn-primary:hover {
  background-color: #c0c81f;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
@media (max-width: 992px) {
  .dashboard-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 576px) {
  .dashboard-stats {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 20px;
  }
  
  .dashboard-stats .stat-card {
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .dashboard-stats .stat-card .stat-value {
    font-size: 24px;
    margin-bottom: 0;
  }
  
  .dashboard-stats .stat-card .stat-title {
    font-size: 14px;
    font-weight: 500;
  }
}
.dashboard-stats .stat-card {
  background-color: #FFFFFF;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.dashboard-stats .stat-card .stat-title {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.6);
  margin-bottom: 4px;
}
.dashboard-stats .stat-card .stat-value {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
}
.dashboard-stats .stat-card .stat-change {
  font-size: 12px;
  display: flex;
  align-items: center;
}
.dashboard-stats .stat-card .stat-change.positive {
  color: #D8DF23;
}
.dashboard-stats .stat-card .stat-change.negative {
  color: #FF6347;
}
.dashboard-stats .stat-card .stat-change i {
  margin-right: 4px;
}
.dashboard-stats .stat-card-link {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  cursor: pointer;
}
.dashboard-stats .stat-card-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.dashboard-grid .dashboard-card {
  background-color: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 16px;
}
.dashboard-grid .dashboard-card .card-header {
  padding: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dashboard-grid .dashboard-card .card-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}
.dashboard-grid .dashboard-card .card-header .card-actions {
  display: flex;
  gap: 4px;
}
.dashboard-grid .dashboard-card .card-body {
  padding: 16px;
}
.dashboard-grid .dashboard-card .empty-state {
  padding: 24px;
  text-align: center;
  color: rgba(0, 0, 0, 0.5);
}
.dashboard-grid .dashboard-card .empty-state i {
  display: block;
  margin: 0 auto 16px;
  width: 48px;
  height: 48px;
  opacity: 0.5;
}
.dashboard-grid .dashboard-card .empty-state p {
  margin-bottom: 16px;
}

.calendar-container {
  background-color: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  width: 100%;
}

.calendar-container .calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  background-color: #1E1F2F;
  color: #fff;
}

.calendar-container .calendar-header .calendar-title {
  font-size: 18px;
  font-weight: 700;
  color: #D6DF23;
}

.calendar-container .calendar-header .calendar-nav {
  display: flex;
  gap: 4px;
}

.calendar-container .calendar-header .btn-secondary {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.2);
  color: #D6DF23;
}

.calendar-container .calendar-header .btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.calendar-container .calendar-grid .days-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-bottom: 1px solid #e0e0e0;
  background-color: #f8f8f8;
}

.calendar-container .calendar-grid .days-header .day-name {
  padding: 12px 4px;
  text-align: center;
  font-weight: 700;
  font-size: 13px;
}

.calendar-container .calendar-grid .days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.calendar-container .calendar-grid .days-grid .day-cell {
  min-height: 120px;
  border-right: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 4px;
  transition: background-color 0.2s;
  cursor: pointer;
}

.calendar-container .calendar-grid .days-grid .day-cell:hover {
  background-color: rgba(216, 223, 35, 0.05);
}

.calendar-container .calendar-grid .days-grid .day-cell:nth-child(7n) {
  border-right: none;
}

.calendar-container .calendar-grid .days-grid .day-cell .day-number {
  font-size: 14px;
  margin-bottom: 6px;
  text-align: right;
  font-weight: 500;
  color: #333;
  padding: 2px 4px;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}

.calendar-container .calendar-grid .days-grid .day-cell.other-month {
  background-color: rgba(247, 247, 245, 0.5);
}

.calendar-container .calendar-grid .days-grid .day-cell.other-month .day-number {
  opacity: 0.5;
}

.calendar-container .calendar-grid .days-grid .day-cell.today {
  background-color: rgba(216, 223, 35, 0.1);
}

.calendar-container .calendar-grid .days-grid .day-cell.today .day-number {
  background-color: #D6DF23;
  color: #1E1F2F;
  font-weight: 700;
}

.calendar-container .calendar-grid .days-grid .day-cell .event {
  font-size: 12px;
  padding: 4px 6px;
  border-radius: 4px;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s;
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.05);
}

.calendar-container .calendar-grid .days-grid .day-cell .event:hover {
  transform: translateY(-1px);
  box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.1);
}

.calendar-container .calendar-grid .days-grid .day-cell .event.event-job {
  background-color: rgba(216, 223, 35, 0.2);
  border-left: 3px solid #D6DF23;
  color: #333;
}

.calendar-container .calendar-grid .days-grid .day-cell .event.event-meeting {
  background-color: rgba(70, 130, 180, 0.2);
  border-left: 3px solid #4682B4;
  color: #333;
}

.calendar-container .calendar-grid .days-grid .day-cell .event.event-holiday {
  background-color: rgba(255, 105, 180, 0.2);
  border-left: 3px solid #FF69B4;
  color: #333;
}

.calendar-container .calendar-grid .days-grid .day-cell .event.event-other {
  background-color: rgba(128, 128, 128, 0.2);
  border-left: 3px solid #808080;
  color: #333;
}

/* Event details styling */
.event-detail-row {
  display: flex;
  margin-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 8px;
}

.event-detail-label {
  width: 100px;
  font-weight: 600;
  color: #666;
}

.event-detail-value {
  flex: 1;
}

/* Mobile Responsive Calendar */
@media (max-width: 768px) {
  .calendar-container .calendar-grid .days-header .day-name {
    font-size: 12px;
    padding: 8px 2px;
  }
  
  .calendar-container .calendar-grid .days-grid .day-cell {
    min-height: 80px;
    padding: 2px;
  }
  
  .calendar-container .calendar-grid .days-grid .day-cell .day-number {
    font-size: 12px;
    margin-bottom: 2px;
  }
  
  .calendar-container .calendar-grid .days-grid .day-cell .event {
    font-size: 10px;
    padding: 2px 4px;
  }
}

@media (max-width: 576px) {
  .calendar-container .calendar-grid .days-header .day-name {
    font-size: 10px;
    padding: 6px 1px;
  }
  
  .calendar-container .calendar-grid .days-grid .day-cell {
    min-height: 60px;
  }
  
  .calendar-container .calendar-grid .days-grid .day-cell .event {
    font-size: 9px;
    padding: 1px 2px;
    margin-bottom: 1px;
  }
}

.create-invoice {
  background-color: #FFFFFF;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-width: 1000px;
  margin: 0 auto;
}
.create-invoice .invoice-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
}
.create-invoice .invoice-header .invoice-title h1 {
  margin-top: 0;
  margin-bottom: 4px;
  font-size: 24px;
}
.create-invoice .invoice-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
@media (max-width: 768px) {
  .create-invoice .invoice-info {
    grid-template-columns: 1fr;
  }
}
.create-invoice .line-items {
  margin-bottom: 24px;
}
.create-invoice .line-items .add-row {
  display: flex;
  justify-content: flex-start;
  margin-top: 8px;
}
.create-invoice .line-items .add-row button {
  display: flex;
  align-items: center;
  font-size: 12px;
}
.create-invoice .line-items .add-row button i {
  margin-right: 4px;
}
.create-invoice .invoice-notes {
  margin-bottom: 24px;
}
.create-invoice .invoice-total {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.create-invoice .invoice-total .total-row {
  display: flex;
  justify-content: space-between;
  width: 300px;
  margin-bottom: 4px;
}
.create-invoice .invoice-total .total-row.grand-total {
  font-weight: 700;
  font-size: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: 8px;
}
.create-invoice .invoice-footer {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}
.create-invoice .invoice-footer .invoice-completion {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.client-details-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
}
@media (max-width: 992px) {
  .client-details-container {
    grid-template-columns: 1fr;
  }
}
.client-details-container .client-info-card {
  background-color: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.client-details-container .client-info-card .client-header {
  padding: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.client-details-container .client-info-card .client-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}
.client-details-container .client-info-card .client-header .client-status {
  margin-top: 4px;
}
.client-details-container .client-info-card .client-details {
  padding: 16px;
}
.client-details-container .client-info-card .client-details .detail-row {
  margin-bottom: 16px;
}
.client-details-container .client-info-card .client-details .detail-row .detail-label {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.6);
  margin-bottom: 4px;
}
.client-details-container .client-info-card .client-details .detail-row .detail-value {
  font-weight: 700;
}
.client-details-container .addresses-card {
  background-color: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-top: 16px;
}
.client-details-container .addresses-card .card-header {
  padding: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.client-details-container .addresses-card .card-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}
.client-details-container .addresses-card .addresses-list {
  padding: 16px;
}
.client-details-container .addresses-card .addresses-list .address-item {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.client-details-container .addresses-card .addresses-list .address-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.client-details-container .addresses-card .addresses-list .address-item .address-name {
  font-weight: 700;
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.client-details-container .addresses-card .addresses-list .address-item .address-name .address-actions {
  font-size: 12px;
}
.client-details-container .addresses-card .addresses-list .address-item .address-line {
  margin-bottom: 4px;
}
.client-details-container .addresses-card .addresses-list .address-item .address-line:last-child {
  margin-bottom: 0;
}

.rams-checklist {
  background-color: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 24px;
}
.rams-checklist .rams-header {
  padding: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.rams-checklist .rams-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}
.rams-checklist .rams-header p {
  margin-top: 4px;
  color: rgba(0, 0, 0, 0.6);
}
.rams-checklist .rams-question {
  padding: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.rams-checklist .rams-question p {
  margin-bottom: 8px;
  font-weight: 700;
}
.rams-checklist .construction-phase {
  padding: 16px;
}
.rams-checklist .construction-phase p {
  margin-bottom: 8px;
}
.rams-checklist .construction-phase .radio-group {
  display: flex;
  gap: 16px;
}
.rams-checklist .priority-action {
  padding: 16px;
}
.rams-checklist .priority-action p {
  margin-bottom: 8px;
}
.rams-checklist .priority-action .radio-group {
  display: flex;
  gap: 16px;
}

/* Enhanced Mobile Responsive and Touch-Friendly UI Elements */

/* General Touch-Friendly Improvements */
button, 
.btn, 
a.btn, 
input[type="button"], 
input[type="submit"],
.action-menu a,
.sidebar-nav a,
.tab-link,
.form-check-label,
.checkbox-container,
.radio-container,
.dropdown-toggle,
.action-buttons .btn {
  min-height: 44px;  /* Minimum touch target size */
  min-width: 44px;   /* Minimum touch target size */
  padding: 12px 16px;
  touch-action: manipulation; /* Optimize for touch */
}

/* Ensure form elements are large enough for touch */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="tel"],
select,
textarea {
  font-size: 16px; /* Prevents iOS zoom on focus */
  padding: 12px;
  height: 44px;
  border-radius: 8px;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #333;
  padding: 10px;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
}

.mobile-menu-toggle i {
  width: 24px;
  height: 24px;
}

/* User Menu Dropdown */
.user-menu {
  position: relative;
  cursor: pointer;
}

.user-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-radius: 8px;
  min-width: 200px;
  z-index: 1000;
  margin-top: 10px;
}

.user-menu:hover .user-dropdown,
.user-menu:focus .user-dropdown,
.user-menu.active .user-dropdown {
  display: block;
}

.user-info {
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
}

.user-name {
  display: block;
  font-weight: 500;
  font-size: 15px;
}

.user-role {
  display: block;
  font-size: 13px;
  color: #666;
}

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

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  color: #333;
  text-decoration: none;
  gap: 10px;
}

.dropdown-menu a:hover {
  background-color: #f5f5f5;
}

.dropdown-menu i {
  width: 18px;
  height: 18px;
}

/* Sidebar Enhancements */
.sidebar-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.5);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar-backdrop.active {
  display: block;
  opacity: 1;
}

.sidebar {
  z-index: 999;
  transition: transform 0.3s ease;
}

.sidebar-close {
  display: none;
  background: none;
  border: none;
  color: #fff;
  margin-left: auto;
  cursor: pointer;
  padding: 10px;
}

.sidebar-close i {
  width: 20px;
  height: 20px;
}

/* Table Enhancements for Touch */
table td, 
table th {
  padding: 14px 16px; /* Larger padding for touch */
}

.action-buttons .btn {
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Card and Form Touch Enhancements */
.card {
  border-radius: 10px;
  overflow: hidden;
}

.form-group {
  margin-bottom: 20px;
}

label {
  margin-bottom: 8px;
  display: block;
}

/* Enhanced Tab Navigation for Touch */
.tab-link {
  padding: 16px 20px;
}

/* Enhanced Accordions for Touch */
.accordion-header {
  padding: 16px;
}

/* Mobile Specifics */
@media (max-width: 768px) {
  /* Show mobile toggle button */
  .mobile-menu-toggle {
    display: block;
  }
  
  /* Adjust header for mobile */
  .app-header {
    padding: 0 15px;
    justify-content: space-between;
  }
  
  /* Hide search on smaller screens */
  .search-bar {
    display: none;
  }
  
  /* Sidebar adjustments for mobile */
  .sidebar {
    position: fixed;
    left: -280px;
    top: 0;
    bottom: 0;
    width: 260px;
    transform: translateX(0);
  }
  
  .sidebar.active {
    transform: translateX(280px);
  }
  
  .sidebar-header {
    display: flex;
    align-items: center;
    padding: 15px;
  }
  
  .sidebar-close {
    display: block;
  }
  
  /* Make buttons more touch friendly */
  .btn {
    padding: 12px 16px;
    font-size: 15px;
  }
  
  /* Larger form controls */
  input, select, textarea {
    font-size: 16px;
  }
  
  /* Table adjustments */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  /* Card adjustments */
  .card-header, .card-content, .card-footer {
    padding: 15px;
  }
  
  /* Modal adjustments */
  .modal-dialog {
    width: 95%;
    max-width: 95%;
  }
  
  /* Tabs adjustments */
  .tab-link {
    padding: 12px 15px;
    min-width: auto;
  }
  
  /* Ensure form groups stack nicely */
  .form-row {
    flex-direction: column;
  }
  
  .form-row .form-group {
    width: 100%;
  }
  
  /* Action buttons in tables */
  .action-buttons {
    display: flex;
    gap: 8px;
  }
  
  /* Make checkbox and radio labels larger */
  .checkbox-label, .radio-label {
    padding: 12px;
    font-size: 15px;
  }
  
  /* Touch-friendly table buttons */
  .data-table .btn-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Status indicator enhancement for touch */
  .status-indicator,
  .status-badge {
    min-height: 32px;
    min-width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Form elements larger touch targets */
  .form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .form-actions .btn {
    flex: 1;
    min-width: 120px;
  }
  
  /* Add fast-tap for mobile */
  a, button, .btn, .form-check, .tab-link, .dropdown-toggle, select {
    touch-action: manipulation;
  }
}


.mob-header {
    display: none;
}

/* Responsive design for mobile */
@media (max-width: 768px) {
    .desktop-header {
        display: none;
    }
    .mob-header {
        display: block;
    }
}


/* ----------------------------------------
    CG Tablet edits
---------------------------------------- */
@media (min-width: 769px) and (max-width: 1024px) {
    .desktop-header, aside.sidebar {
        display: none;
    }
    .mob-header {
        display: block;
        margin-top: 0;
        height: auto;
        padding: 24px;
        box-sizing: border-box;
        background: #1F1E30;
    }
}


/*------------------------------------------
    Mobile nav (SASS -> CSS)
------------------------------------------*/
#nav-icon {
  position: relative; /* last declaration wins (overrides the earlier absolute) */
  z-index: 9;
  display: none;
  width: 30px;
  height: 22px;
  margin-left: 40px;
  margin-top: 0px;
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: .5s ease-in-out;
  -moz-transition: .5s ease-in-out;
  -o-transition: .5s ease-in-out;
  transition: .5s ease-in-out;
  cursor: pointer;
}

#nav-icon span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: var(--lime);
  border-radius: 9px;
  opacity: 1;
  left: 0;
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: .25s ease-in-out;
  -moz-transition: .25s ease-in-out;
  -o-transition: .25s ease-in-out;
  transition: .25s ease-in-out;
}

/* Assumed: @include mobile */
@media (max-width: 767px) {
  #nav-icon {
    display: inline-block;
  }
}

#nav-icon span:nth-child(1) {
  top: 0px;
  -webkit-transform-origin: left center;
  -moz-transform-origin: left center;
  -o-transform-origin: left center;
  transform-origin: left center;
}

#nav-icon span:nth-child(2) {
  top: 9px;
  -webkit-transform-origin: left center;
  -moz-transform-origin: left center;
  -o-transform-origin: left center;
  transform-origin: left center;
}

#nav-icon span:nth-child(3) {
  top: 18px;
  -webkit-transform-origin: left center;
  -moz-transform-origin: left center;
  -o-transform-origin: left center;
  transform-origin: left center;
}

#nav-icon.open span:nth-child(1) {
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  transform: rotate(45deg);
  top: 0px;
  left: 1px;
  background: var(--lime);
}

#nav-icon.open span:nth-child(2) {
  width: 0%;
  opacity: 0;
  background: var(--lime);
}

#nav-icon.open span:nth-child(3) {
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
  transform: rotate(-45deg);
  top: 21px;
  left: 1px;
  background: var(--lime);
}

.home-header #nav-icon span {
  background: #fff;
}

/*------------------------------------------
    Mobile header / menu
------------------------------------------*/

/*------------------------------------------
    Searchable Select Component
------------------------------------------*/
.searchable-select-wrapper {
  position: relative;
  width: 100%;
}

.searchable-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  min-height: 42px;
}

.searchable-select-trigger:hover {
  border-color: #bbb;
}

.searchable-select-wrapper.open .searchable-select-trigger {
  border-color: #D6DF23;
  box-shadow: 0 0 0 2px rgba(214, 223, 35, 0.25);
}

.searchable-select-value {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #333;
}

.searchable-select-arrow {
  flex-shrink: 0;
  color: #666;
  transition: transform 0.2s;
}

.searchable-select-wrapper.open .searchable-select-arrow {
  transform: rotate(180deg);
}

.searchable-select-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  display: none;
  max-height: 300px;
  overflow: hidden;
}

.searchable-select-wrapper.open .searchable-select-dropdown {
  display: block;
}

.searchable-select-search {
  padding: 8px;
  border-bottom: 1px solid #eee;
}

.searchable-select-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  outline: none;
}

.searchable-select-input:focus {
  border-color: #D6DF23;
  box-shadow: 0 0 0 2px rgba(214, 223, 35, 0.25);
}

.searchable-select-options {
  max-height: 220px;
  overflow-y: auto;
}

.searchable-select-option {
  padding: 10px 12px;
  cursor: pointer;
  transition: background-color 0.15s;
}

.searchable-select-option:hover {
  background-color: #f5f5f5;
}

.searchable-select-option.selected {
  background-color: rgba(214, 223, 35, 0.15);
  font-weight: 500;
}

.searchable-select-no-results {
  padding: 12px;
  text-align: center;
  color: #888;
  font-size: 14px;
}
