@import url("https://fonts.googleapis.com/css2?family=poppins:wght@300;400;500;600;700;800&display=swap");


/* ROOt VARIABLES */
:root {
--color-primary:#7380ec;
--color-danger:#ff7782;
--color-success:#479078;
--color-warning:#ffbb55;
--color-white:#fff;
--color-info-dark:#7d8da1;
--color-info-light:#abacac;
--color-dark:#363949;
--color-light:rgba(132,139,200,0.18);
--color-primary-variant:#4b55a0;
--color-dark-variant:#677483;
--color-background:#f6f6f9;

--card-border-radius:0.5rem;
--border-radius-1: 0.2rem; 
--border-radius-2: 0.8rem; 
--border-radius-3: 1.2rem; 

--box-shadow:0 2rem 3rem var(--color-light);

}

/* DARK THEME VARIABLES */

.dark-theme-variables {
    --color-background:#181a1e;
    --color-white:#202528;
    --color-dark:#edeffd;
    --color-dark-variant:#a3bdcc;
    --color-light:#rgba(0,0,0,0.4);
    --box-shadow: 0 2rem 3rem var(--color-light);
}



* {
    margin: 0;
    padding: 0;
    outline: 0;
    appearance: none;
    border: 0;
    text-decoration: none;
    list-style: none;
    box-sizing: border-box;
}

html {
font-size: 14px;
}

body {
    width: 100vw;
    height: 100vh;
    font-family: poppins,sans-serif;
    font-size: 0.88rem;
    background: var(--color-background);
    user-select: text;
    overflow-x: hidden;
    color: var(--color-dark);
}

.container {
    display: grid;
    width: 96%;
    margin: 0 auto;
    gap: 1.8rem;
    grid-template-columns: 14rem auto 1rem;
    align-items: stretch;
}

a {
    color: var(--color-dark);
}

img {
    display: block;
    width: 100%;
}

h1 {
    font-weight: 800;
    font-size: 1.8rem;
    color: transparent;
    background: linear-gradient(45deg, #4F94CD, #4682B4);
    background-clip: text;
    -webkit-background-clip: text;
}


h2 {
    font-size: 1rem;
}

h3 {
    font-size: 0.87rem;
    
}

h4 {
    font-size: 0.8rem;
}

h5 {
    font-family: Inter, sans-serif;
    font-size: 18px;
    color: transparent;
    background: linear-gradient(45deg, #4F94CD, #4682B4);
    background-clip: text;
    -webkit-background-clip: text;
    margin-top: -4px;
    margin-bottom: -30px;
}

small {
    font-size: 0.75rem;
}

.profile-photo {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 50%;
    overflow: hidden;
}

.text-muted {
    color: var(--color-info-dark);
}

p{
    color: var(--color-dark);
    font-size: 1.3rem;
}

b{
    color: var(--color-dark);
}

.primary {
    color: var(--color-primary);
}

.danger {
    color: var(--color-danger);
}

.success {
    color: var(--color-success);
}

.warning {
    color: var(--color-warning);
}

aside {
    display: flex;
    flex-direction: column;
    align-self: stretch;
}

/* Thin app header (logo + profile) matching sidebar background */
.container:has(.form__section),
.container:has(main) {
    grid-template-columns: 14rem minmax(0, 1fr);
    grid-template-rows: 5.5rem minmax(0, 1fr);
    row-gap: 0.75rem;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    padding-top: 8px;
    box-sizing: border-box;
}

.container:has(.form__section)::before,
.container:has(main)::before {
    content: "";
    grid-column: 1 / -1;
    grid-row: 1;
    background: white;
    border-radius: 4px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
                0 2px 4px -1px rgba(0, 0, 0, 0.06),
                0 0 0 1px rgba(0, 0, 0, 0.05);
    z-index: 20;
}

.container:has(.form__section) aside,
.container:has(main) aside {
    display: contents;
}

.container:has(.form__section) aside .top,
.container:has(main) aside .top {
    grid-column: 1 / -1;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: 0;
    background: transparent;
    box-shadow: none;
    padding: 0 0.85rem;
    height: 100%;
    z-index: 21;
}

.container:has(.form__section) aside .logo,
.container:has(main) aside .logo {
    flex: 0 0 auto;
    width: auto;
}

.container:has(.form__section) aside .logo img,
.container:has(main) aside .logo img {
    max-height: 5.3rem;
    width: auto;
    max-width: 18rem;
    background: transparent;
}

.container:has(.form__section) aside .sidebar,
.container:has(main) aside .sidebar {
    grid-column: 1;
    grid-row: 2;
    align-self: stretch;
    background: white;
    border-radius: 4px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
                0 2px 4px -1px rgba(0, 0, 0, 0.06),
                0 0 0 1px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overflow-anchor: none;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin-bottom: 1rem;
    padding-bottom: 1.5rem;
}

.container:has(.form__section) aside .sidebar::-webkit-scrollbar,
.container:has(main) aside .sidebar::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.container:has(.form__section) .form__section {
    grid-column: 2 / -1;
    grid-row: 2;
    min-height: 0;
    overflow-y: auto;
    padding-right: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.container:has(.form__section) .form__section::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

body:has(.container main),
body:has(.container .form__section) {
    overflow: hidden;
}

.container:has(main) main {
    grid-column: 2 / -1;
    grid-row: 2;
    margin-top: 0;
    margin-bottom: 1rem;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.container:has(main.dashboard-main) main {
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.35rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.container:has(main.dashboard-main) main::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.container:has(main) main > h1,
.container:has(main) main .insights {
    flex-shrink: 0;
    z-index: 2;
}

.container:has(main) main .insights {
    background: var(--color-background);
}

.container:has(main) main .dashboard-bill-tables {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.container:has(main) main .dashboard-bill-tables::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

html:has(.container1),
body:has(.container1) {
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html:has(.container1)::-webkit-scrollbar,
body:has(.container1)::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.container:has(.form__section) .right,
.container:has(main) .right {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: end;
    align-self: center;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: auto !important;
    max-width: max-content;
    margin-top: 0 !important;
    padding-right: 0.85rem;
    z-index: 22;
    background: transparent;
}

.container:has(.form__section) .right .profile,
.container:has(main) .right .profile {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.65rem;
    margin-right: 0;
    padding-right: 0;
}

.profile-inline {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.65rem;
}

.profile-inline .profile-photo {
    width: 2.25rem !important;
    height: 2.25rem !important;
    border-radius: 50% !important;
    background: #4F94CD !important;
    color: #fff;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-right: 0 !important;
    animation: none !important;
}

.profile-inline .profile-photo::after {
    display: none;
}

.profile-inline .profile-name {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-dark);
    white-space: nowrap;
    line-height: 1;
}

.profile-inline .profile-role {
    display: inline-block;
    margin: 0;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: capitalize;
    white-space: nowrap;
    line-height: 1;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    border: 1px solid transparent;
}

.profile-inline .profile-role-owner {
    color: #2f6ea3;
    background: #e8f2fa;
    border-color: #c5dced;
}

.profile-inline .profile-role-admin {
    color: #6d4b9a;
    background: #f4e9ff;
    border-color: #e4d0f7;
}

.profile-inline .profile-role-staff {
    color: #2f7d4a;
    background: #e7f6ec;
    border-color: #c7e8d2;
}

aside .top{
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.4rem;
    flex-shrink: 0;
}

aside .logo {
    display: flex;
    gap: 0.8rem;
}

aside .logo img {
    width: 100%;
    max-width: 13rem;
    height: auto;
    object-fit: contain;
    background: var(--color-background);
}

aside .close {
    display: none;
}


/* SIDEBAR */

aside .sidebar {
    background: white;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overflow-anchor: none;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 1.5rem;
}

aside .sidebar::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

aside .sidebar > a,
aside .sidebar > .dropdown-btn,
aside .sidebar > .dropdown-container,
aside .sidebar > .sidebar-section {
    flex: 0 0 auto;
}

aside .sidebar > a:last-child {
    margin-top: auto;
}

aside .sidebar .sidebar-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0.6rem 0 0;
    padding: 0.45rem 0 0.25rem 2rem;
    color: var(--color-info-dark);
    opacity: 0.75;
    pointer-events: none;
}

aside .sidebar .sidebar-section span {
    font-size: 1.5rem;
}

aside .sidebar .sidebar-section h3 {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

aside .sidebar > .sidebar-label,
aside .sidebar > .sidebar-divider {
    flex: 0 0 auto;
}

aside .sidebar .sidebar-label {
    margin: 0.55rem 0 0.4rem;
    padding: 0 1rem 0 2rem;
    color: #8a97ab;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
    pointer-events: none;
}

aside .sidebar .sidebar-divider {
    height: 0;
    margin: 0.45rem 1.25rem 0.08rem;
    border: 0;
    border-top: 1px solid #e6e8ee;
    pointer-events: none;
}

aside h3 {
    font-weight: 800;
}

aside .sidebar a {
    display: flex;
    color: var(--color-info-dark);
    margin-left: 0;
    padding-left: 2rem;
    gap: 0.85rem;
    align-items: center;
    position: relative;
    height: 3rem;
    transition: all 300ms ease;
}

aside .sidebar a span {
    font-size: 1.35rem;
    transition: all 300ms ease;
}

/* aside .sidebar a:last-child {
    position:absolute;
    bottom: 2rem;
    width: 100%;
} */

aside .sidebar a.active {
    background: white;
    color: #4F94CD;
    margin-left: 0;
}

aside .sidebar a.active::before {
    content: '';
    width: 6px;
    height: 100%;
    background: linear-gradient(45deg, #4F94CD, #4682B4);
    position: absolute;
    left: 0;
    top: 0;
}

aside .sidebar a.active span {
    color: transparent;
    background: linear-gradient(45deg, #4F94CD, #4682B4);
    background-clip: text;
    -webkit-background-clip: text;
}

aside .sidebar a:hover {
    color: #4F94CD;
}

aside .sidebar a:hover span {
    margin-left: 1rem;
}

aside .sidebar a.sidebar-disabled,
aside .sidebar a.sidebar-disabled:hover {
    color: #9aa3ad;
    cursor: not-allowed;
    opacity: 0.5;
}

aside .sidebar a.sidebar-disabled:hover span {
    margin-left: 0;
}

.owner-only-disabled {
    display: inline-flex;
    cursor: not-allowed;
}

.owner-only-disabled button,
.owner-only-disabled button i {
    opacity: 0.4;
    pointer-events: none;
    cursor: not-allowed;
}



/* DROPDOWN BUTTON */

  /* Style the sidenav links and the dropdown button */
  .sidenav a,
  .dropdown-btn {
      padding: 6px 8px 6px 16px;
      text-decoration: none;
      font-size: 20px;
      color: var(--color-info-dark);
      border: none;
      background: none;
      width: 100%;
      text-align: left;
      cursor: pointer;
      outline: none;
      margin-left: 1rem;
      height: 3rem;
      gap: 0.5rem;
  }


  /* Add an active class to the active dropdown button */
  .active {
      /* background-color: green; */
      color: var(--color-primary);
  }

  /* Dropdown container (hidden by default). Optional: add a lighter background color and some left padding to change the design of the dropdown content */
  .dropdown-container {
      display: none;
      flex-direction: column;
      width: 100%;
      margin: 0;
      padding: 0;
      background: transparent;
      position: static;
  }

  .dropdown-container.is-open {
      display: flex;
  }

  .dropdown-container a {
      display: flex;
      align-items: center;
      flex: 0 0 3rem;
      height: 3rem;
      min-height: 3rem;
      gap: 0.85rem;
      width: 100%;
      margin: 0;
      padding-left: 2rem;
      color: var(--color-info-dark);
      font-size: 0.87rem;
  }

  .dropdown-container a span {
      font-size: 1.35rem;
      margin: 0;
  }

  .dropdown-container a h3 {
      display: block;
      margin: 0;
      font-size: 0.87rem;
      font-weight: 800;
  }

  .dropdown-container a:hover {
      color: #4F94CD;
  }

  .dropdown-container a:hover span {
      margin-left: 0;
  }

  .dropdown-btn {
      display: flex;
      align-items: center;
      flex: 0 0 auto;
      margin-left: 0;
      padding-left: 2rem;
  }

  .dropdown-btn.active .material-icons-sharp:last-child {
      transform: rotate(180deg);
  }

  .dropdown-btn .material-icons-sharp:first-child {
      margin-right: 10px;
      font-size: 24px;
  }

  .dropdown-btn h3 {
      margin: 0;
      display: flex;
      align-items: center;
  }

  .dropdown-btn .material-icons-sharp:last-child {
      margin-left: 5px;
      font-size: 20px;
      transition: transform 150ms ease;
  }


  /* Some media queries for responsiveness */
  @media screen and (max-height: 450px) {
      .sidenav {
          padding-top: 15px;
      }

      .sidenav a {
          font-size: 18px;
      }
  }


/*------------------------------------------------------------ MAIN -------------------------------------------------------------*/

main {
    margin-top: 6.4rem;
}

main .insights {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.6rem;
}

main .insights > div,
main .insights > a {
    background: var(--color-white);
    padding: 2rem;
    padding-right: 1rem;
    border-radius: var(--card-border-radius);
    margin-top: 2rem;
    box-shadow: var(--box-shadow);
    transition: all 300ms ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

main .insights > a:hover,
main .insights > div:hover {
    box-shadow: none;
}

main .insights > div span,
main .insights > a span {
    background: var(--color-primary-variant);
    padding: 0.5rem;
    border-radius: 50%;
    color: var(--color-white);
    font-size: 2rem;
}

main .insights > .services span {
    background: var(--color-warning);
}

main .insights > .receipt span {
    background: var(--color-info-dark);
}

main .insights > .dueamount span {
    background: var(--color-danger);
}

main .insights .middle {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

main .insights h2 {
    margin: 0 0 0.7rem;
}

main .insights .insight-value {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--color-dark);
}

main .insights .insight-value-overdue {
    color: #dc3545;
}

main .pending-bills .overdue-amount {
    color: #dc3545;
    font-weight: 700;
}

main .dashboard-table-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.85rem;
}

main .dashboard-table-links a {
    margin: 0;
    color: #4F94CD;
    font-weight: 600;
}


/* TABLES PENDING BILL */

main .dashboard-bill-tables {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.8rem;
    margin-top: 2rem;
    align-items: start;
}

main .pending-bills {
    margin-top: 0;
    min-width: 0;
}

main .pending-bills h3 {
    margin-bottom: 0.8rem;
    color: #4682B4;
    font-weight: 700;
    font-size: 1rem;
}

main .pending-bills table {
    background: var(--color-white);
    width: 100%;
    border-radius: var(--card-border-radius);
    padding: 0.7rem 0.85rem;
    text-align: left;
    border: 1px solid #e6e8ee;
    box-shadow: 0 6px 18px rgba(27, 33, 59, 0.06);
}

main .pending-bills table th,
main .pending-bills table td {
    padding: 0.35rem 0.55rem;
}

main .pending-bills table th:last-child,
main .pending-bills table td:last-child,
main .pending-bills table td.warning {
    text-align: right;
}

main .pending-bills table th.col-status,
main .pending-bills table td.col-status {
    text-align: center;
}

main .pending-bills table td.col-status {
    white-space: nowrap;
}

main .pending-bills table td.col-status .payment-badge {
    margin: 1px 2px;
}

main table tbody td {
    height: 2.8rem;
    border-bottom: 1px solid var(--color-light);
}

main table tbody tr:last-child td {
    border: none;
}

main .pending-bills a {
    text-align: left;
    display: block;
    margin: 1rem auto;
    color: var(--color-primary);
}

.list-pager-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    flex-wrap: nowrap;
    padding: 0.5rem 0.7rem;
    border-top: 1px solid #e6e8ee;
    background: #fff;
}

.list-count {
    color: #6b7c90;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.list-pager {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 0.28rem;
    margin-left: auto;
}

.list-pager a,
.list-pager span {
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    border: 1px solid #d7e3f0;
    color: #4682B4;
    background: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

.list-pager a:hover {
    background: #eaf3fb;
}

.list-pager .is-current {
    background: #4682B4;
    border-color: #4682B4;
    color: #fff;
}

.list-pager .is-disabled {
    color: #b0bccb;
    border-color: #e6e8ee;
    background: #f8fafc;
}

.list-pager .pager-gap {
    min-width: 0;
    border: 0;
    background: transparent;
    color: #8a97ab;
    padding: 0 0.1rem;
}


/* ---------------------------------------------------------- FORM SECTION -----------------------------------------------------------*/

.form__section {
    padding: 0 0 1rem 0;
    align-self: stretch;
}

.form__section .card {
    margin: 0 !important;
    max-width: none;
}

/* .form__section {
    display: grid;
    place-items: center;
    height: 100vh;

} */

/* .form__section-container {
    width: 80%;
    background: var(--color-info-dark);

} */

.container_form {
    display: flex;
    justify-content: center;
    width: 100%;
    gap: 4px;
    margin-top: 6.4rem;
    
  }

  .form-row {
  display: flex;
  flex-wrap: nowrap; /* Prevent wrapping */
  max-width: 100%; /* Ensure container isn't too small */
  }

  .card {
  width: 100%;
  max-width: 1200px;
  /* height: 30vh; */
  /* background: linear-gradient(135deg, #007bff, #0056b3); */
  color: white;
  /* text-align: center; */
  line-height: 70px;
  font-size: 20px;
  font-weight: bold;
  border-radius: 5px;
  box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.3);  /* Adds a shadow for depth */
  
  }

  .card-header {
    
    text-align: left;
    padding-left: 1rem;
    padding-top: 1rem;
    background-color: #f8f9fa; /* Light background */
    font-weight: bold; 
    min-height: 10px; /* Set minimum height */
    line-height: 1 !important; /* Prevent extra spacing */
    min-height: 45px !important; /* Ensure minimum height */
    display: flex;
    border-bottom: 1px solid whitesmoke;
    white-space: nowrap; /* Prevent multi-line header */
    overflow: hidden;
    border-bottom: 1px solid #dee2e6;
  }

  .card-header h1{
  
    
        font-weight: 700;
        font-size: 1.8rem;
        color: transparent;
        background: linear-gradient(45deg, #4F94CD, #4682B4);
        background-clip: text;
        -webkit-background-clip: text;
 
    
  }

  .card-body {
    display: flex;
    /* padding-top: 2px; */
    padding-left: 20px;
  
    
  }
/* --------------------------------------------------------------------------------------- */
.container_form1 {
    display: flex;
    justify-content: center;
    width: 100%;
    gap: 4px;
    margin-top: 2.4rem;
  }

  .form-row1 {
  display: flex;
  flex-wrap: nowrap; /* Prevent wrapping */
  max-width: 100%; /* Ensure container isn't too small */
  }

  .card1 {
  width: 100%;
  max-width: 1200px;
  /* height: 40vh; */
  /* background: linear-gradient(135deg, #007bff, #0056b3); */
  color: white;
  /* text-align: center; */
  line-height: 70px;
  font-size: 20px;
  font-weight: bold;
  border-radius: 5px;
  box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.3);  /* Adds a shadow for depth */
  
  }

  .card-header1 {
    color: var(--color-info-light);
    text-align: left;
    padding-left: 1rem;
    padding-top: 1rem;
    background-color: #f8f9fa; /* Light background */
    font-weight: bold;
    min-height: 10px; /* Set minimum height */
    line-height: 1 !important; /* Prevent extra spacing */
    min-height: 45px !important; /* Ensure minimum height */
    display: flex;
    border-bottom: 1px solid whitesmoke;
    white-space: nowrap; /* Prevent multi-line header */
    overflow: hidden;
  }

  /* .card-header1 h1{
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--color-info-dark);

  } */

  .card-body1 {
    display: flex;
    /* padding-top: 20px; */
    padding-left: 20px; 
    
    /* display: flex; */
    /* flex-wrap: wrap;*/
    /* gap: 2px; Space between inputs ; */
  
  }


/* ----------------------------------------------------------------------------------------- */

/* form {
   
    margin-left: 1rem;
    display: flex;
    flex-direction:row;
    flex-wrap: wrap;
    gap: 10px;

}

.form__control {
    display: flex;
    flex-direction: column;
    gap: 1rem;
} */

input, textarea, select {
    display: inline-block;
    color: var(--color-info-light);     
    width: 360px;
    height: 35px;
    outline: none;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-right: 30px;
    padding: 10px;
    font-size: 14px;
    box-shadow: inset 1px 1px 2px #bebebe,
              inset -1px -1px 2px #ffffff; 
    margin-bottom: 1.5rem;

}

input:focus, textarea:focus, select:focus {
    border-color: #4F94CD;
box-shadow: 0 0 0 2px rgba(79, 148, 205, 0.1);
}

/* -------------------- RESPONSIVE FORMS (global) -------------------- */
@media screen and (max-width: 1200px) {
    .card, .card1 {
        width: 100%;
        max-width: 100%;
    }

    input, textarea, select {
        width: 100%;
        max-width: 100%;
        margin-right: 0;
    }

    .container_form, .container_form1 {
        width: 100%;
        padding: 0 1rem;
    }

    .card-body, .card-body1 {
        flex-wrap: wrap;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .form-row, .form-row1 {
        flex-wrap: wrap;
    }
}

@media screen and (max-width: 768px) {
    .container_form, .container_form1 {
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 5.4rem;
    }

    .card-header, .card-header1 {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .card-header h1 {
        font-size: 1.35rem;
    }

    input, textarea, select {
        height: 40px;
        font-size: 14px;
        margin-bottom: 1rem;
    }
}

/* Utility widths (keeps desktop same, mobile fluid) */
.dc-w-180 {
    width: 180px !important;
    max-width: 100%;
}

.dc-w-600 {
    width: 600px !important;
    max-width: 100%;
}

.dc-w-649 {
    width: 649px !important;
    max-width: 100%;
}

@media screen and (max-width: 768px) {
    .dc-w-180,
    .dc-w-600,
    .dc-w-649 {
        width: 100% !important;
    }
}

.dc-due-date-field {
    width: 180px;
    flex: 0 0 180px;
    margin-right: 30px;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
    line-height: 1.15 !important;
}

.dc-due-date-field input {
    margin-top: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
    display: block !important;
    line-height: normal !important;
}

.dc-due-date-field label {
    display: block;
    color: #495057;
    font-size: 12px;
    font-weight: 550;
    margin: 0 !important;
    padding: 0;
    line-height: 1.15 !important;
    white-space: nowrap;
}

/* Shared flex helpers for form layouts (desktop row, mobile stack) */
.dc-flex-col {
    display: flex;
    flex-direction: column;
}

.dc-flex-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.dc-gap-0 {
    gap: 0 !important;
}

.dc-gap-20 {
    gap: 20px !important;
}

.dc-mb-0 {
    margin-bottom: 0 !important;
}

.dc-mb-1 {
    margin-bottom: 0.5px !important;
}

.dc-mb-8 {
    margin-bottom: 8px !important;
}

@media screen and (max-width: 768px) {
    .dc-flex-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
}

/* Make form fields fluid inside responsive rows (keeps desktop sizing) */
.dc-flex-row > * {
    flex: 1 1 320px;
    min-width: 240px;
}

.dc-flex-row input,
.dc-flex-row select,
.dc-flex-row textarea {
    width: 100% !important;
    max-width: 360px;
    margin-right: 0 !important;
}

@media screen and (max-width: 1200px) {
    .dc-flex-row input,
    .dc-flex-row select,
    .dc-flex-row textarea {
        max-width: 100%;
    }
}

/* Add placeholder styling (matches Service Entry) */
input::placeholder,
textarea::placeholder {
    color: #9aa6b8;
    font-weight: 400;
    opacity: 1;
}

/* For Firefox */
input::-moz-placeholder,
textarea::-moz-placeholder {
    color: #9aa6b8;
    font-weight: 400;
    opacity: 1;
}

/* For Edge */
input::-ms-input-placeholder,
textarea::-ms-input-placeholder {
    color: #9aa6b8;
    font-weight: 400;
    opacity: 1;
}

/* For Safari and Chrome */
input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
    color: #9aa6b8;
    font-weight: 400;
    opacity: 1;
}

/* Field labels above inputs — same look as Service Entry */
.dc-field {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dc-field > label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    line-height: 18px;
    height: 18px;
    color: #495057;
    margin: 0 0 6px 0;
    padding: 0;
    font-family: Inter, sans-serif;
}

.terms-field {
    margin: 36px 0 0;
    max-width: 720px;
}

.terms-field > label {
    display: block !important;
    color: #363949 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    height: auto !important;
    margin: 0 0 6px 0 !important;
}

.terms-field textarea {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 88px !important;
    margin: 0 0 6px 0 !important;
}

.terms-field .btn-submit-blue {
    margin: 0 !important;
}

.dc-field-hint {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    font-weight: 500;
    color: #6c757d;
    line-height: 1.2;
    white-space: nowrap;
}

.dc-doc-meta-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.dc-doc-meta-row .dc-field {
    flex: 0 0 auto;
}

/* Style select element for different states */
select option {
    color: var(--color-dark);
}

select:valid,
select:focus option:checked {
    color: var(--color-dark);
}

/* Keep placeholder color for unselected state */
select:invalid,
select option[value=""][disabled] {
    color: var(--color-info-light);
}


  

.btn {
    display: inline-block;
    width: fit-content;
    padding: 0.6rem 1.2rem;
    background-color: var(--color-primary);
    border-radius: var(--border-radius-1);
    cursor: pointer;
    transition: all 300ms ease;
    color: var(--color-white);
    font-size: medium;
}

.btn_clear {
    display: inline-block;
    width: fit-content;
    padding: 0.6rem 1.2rem;
    background-color: var(--color-danger);
    border-radius: var(--border-radius-1);
    cursor: pointer;
    transition: all 300ms ease;
    color: var(--color-white);
    font-size: medium;
}


.btn_view{
    display: inline-block;
    width: fit-content;
    padding: 0.6rem 1.2rem;
    background-color: var(--color-success);
    border-radius: var(--border-radius-1);
    cursor: pointer;
    transition: all 300ms ease;
    color: var(--color-white);
    font-size: medium;
}



/* RIGHT TOP */

.right {
    margin-top: 1.4rem;
}

.right .top {
    display: flex;
    justify-content: end;
    gap: 2rem;
}

.right .top button {
    display: none;
}

/* Prevent profile/name truncation across pages */
.right .top,
.right .top .profile,
.right .top .profile .info,
.right .top .profile .info p,
.username-gradient {
    overflow: visible !important;
    max-width: none !important;
}

.right .top .profile .info p {
    white-space: nowrap;
}

.right .theme-toggler {
    background: var(--color-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 1.4rem;
    width: 4.6rem;
    cursor: pointer;
    border-radius: var(--border-radius-1);
}

.right .theme-toggler span {
    font-size: 1.5rem;
    /* width: 90%;
    height: 90%; */
    display: flex;
    align-items: center;
    justify-content: center;
    height: 1.4rem;
    width: 4.6rem;
}

.right .theme-toggler span.active {
    background: var(--color-primary);
    color: white;
    border-radius: var(--border-radius-1);
}

.right .top .profile {
    display: flex;
    gap: 2rem;
    text-align: right;
}


/* -------------------------------------------------------  MEDIA QUERIES ----------------------------------------------------------*/

@media screen and (max-width: 1200px) {
    .container {
        width: 94%;
        grid-template-columns: 8.6rem auto 1rem;
    }

    .container:has(.form__section),
    .container:has(main) {
        grid-template-columns: 8.6rem minmax(0, 1fr);
    }

    aside .logo {
        display: none;
    }

    .container:has(.form__section) aside .logo,
    .container:has(main) aside .logo {
        display: flex;
    }

    .container:has(.form__section) aside .logo img,
    .container:has(main) aside .logo img {
        max-width: 9.5rem;
        max-height: 2.1rem;
    }

    aside .sidebar h3 {
        display: block;
        margin: 0;
        font-size: 0.58rem;
        font-weight: 700;
        line-height: 1.15;
        text-align: center;
        white-space: normal;
    }

    aside .sidebar a,
    aside .sidebar .dropdown-btn,
    aside .sidebar .sidebar-section {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0.12rem;
        width: 100%;
        height: auto;
        padding: 0.32rem 0.25rem;
        margin-left: 0;
        text-align: center;
    }

    aside .sidebar a span,
    aside .sidebar .dropdown-btn .material-icons-sharp:first-child,
    aside .sidebar .sidebar-section span {
        font-size: 1.35rem;
        margin: 0;
    }

    aside .sidebar a:hover span,
    aside .sidebar .dropdown-container a:hover span {
        margin-left: 0;
    }

    aside .sidebar .dropdown-btn {
        position: relative;
    }

    aside .sidebar .dropdown-btn .material-icons-sharp:last-child {
        position: absolute;
        top: 0.15rem;
        right: 0.05rem;
        margin: 0;
        font-size: 1rem;
    }

    aside .sidebar .sidebar-section {
        margin: 0.35rem 0 0;
        padding-top: 0.55rem;
    }

    aside .sidebar .sidebar-label {
        margin: 0.35rem 0 0.28rem;
        padding: 0.15rem 0.25rem 0;
        font-size: 0.52rem;
        letter-spacing: 0.05em;
        text-align: center;
    }

    aside .sidebar .sidebar-divider {
        margin: 0.3rem 0.5rem 0;
    }

    aside .sidebar .dropdown-container a {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0.35rem 0.2rem;
        gap: 0.12rem;
        width: 100%;
        height: auto;
    }

    aside .sidebar > a:last-child {
        margin-top: auto;
    }

    main .insights {
        grid-template-columns: 1fr;
        gap:0;
    }

    main .dashboard-bill-tables {
        display: flex;
        flex-direction: column;
        position: relative;
        width: 100%;
        left: auto;
        transform: none;
        margin: 1rem 0 0 0;
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
    }

    main .pending-bills {
        width: 100%;
        position: relative;
        left: auto;
        transform: none;
        margin: 0 0 2rem 0;
    }

    main .pending-bills table {
        width: 83vw;
    }


    main table thead tr th:last-child,
    main table thead tr th:first-child {
        display: none;
    }

    main table tbody tr td:last-child,
    main table tbody tr td:first-child {
        display: none;
    }

    main .pending-bills table thead tr th:last-child,
    main .pending-bills table thead tr th:first-child,
    main .pending-bills table tbody tr td:last-child,
    main .pending-bills table tbody tr td:first-child,
    main .bill-panel table thead tr th:last-child,
    main .bill-panel table thead tr th:first-child,
    main .bill-panel table tbody tr td:last-child,
    main .bill-panel table tbody tr td:first-child {
        display: table-cell;
    }

/* MEDIA QUERIES FOR MOBILE AND SMALL TABLET */

@media screen and (max-width: 768px) {
    .container {
        width: 100%;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        height: auto;
        max-height: none;
        overflow: visible;
        row-gap: 1.8rem;
    }

    .container:has(.form__section),
    .container:has(main) {
        height: auto;
        max-height: none;
        overflow: visible;
        grid-template-rows: auto;
        row-gap: 1.8rem;
    }

    body:has(.container main),
    body:has(.container .form__section) {
        overflow: auto;
    }

    .container:has(.form__section)::before,
    .container:has(main)::before {
        display: none;
    }

    .container:has(.form__section) .form__section,
    .container:has(main) main {
        grid-column: 1;
        grid-row: auto;
        overflow: visible;
        min-height: 0;
    }

    .container:has(.form__section) .right,
    .container:has(main) .right {
        grid-column: 1;
        grid-row: auto;
        justify-self: stretch;
        align-self: start;
        padding-right: 0;
    }

    .form__section {
        padding: 6.4rem 1rem 1rem;
    }

    aside {
        position: fixed;
        left: -100%;
        background: var(--color-white);
        width: 18rem;
        z-index: 3;
        box-shadow: 1rem 3rem 4rem var(--color-light);
        height: 100vh;
        min-height: 100vh;
        padding-right: var(--card-padding);
        display: none;
        animation: showMenu 400ms ease forwards;
    }

    .container:has(.form__section) aside,
    .container:has(main) aside {
        display: none;
    }

    .container:has(.form__section) aside .top,
    .container:has(main) aside .top,
    .container:has(.form__section) aside .sidebar,
    .container:has(main) aside .sidebar {
        grid-column: auto;
        grid-row: auto;
        margin-bottom: 0;
    }

    aside .top {
        background: white;
    }

    @keyframes showMenu {
        to{
            left: 0;
        }
    }

    aside .logo {
        margin-left: 1rem;
    }

    aside .logo h2 {
        display: inline;
    }

    aside .sidebar h3 {
        display: inline;
        font-size: 0.87rem;
        text-align: left;
        white-space: nowrap;
    }

    aside .sidebar a,
    aside .sidebar .dropdown-btn,
    aside .sidebar .sidebar-section {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        width: 100%;
        height: 2.9rem;
        padding-left: 2rem;
        gap: 0.85rem;
        text-align: left;
    }

    aside .sidebar a span,
    aside .sidebar .dropdown-btn .material-icons-sharp:first-child,
    aside .sidebar .sidebar-section span {
        font-size: 1.4rem;
    }

    aside .sidebar .dropdown-btn .material-icons-sharp:last-child {
        position: static;
        font-size: 1.2rem;
    }

    aside .sidebar .dropdown-container a {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        padding-left: 2rem;
        gap: 1rem;
        height: 2.9rem;
    }

    aside .sidebar .sidebar-label {
        margin: 0.55rem 0 0.4rem;
        padding: 0.1rem 0 0.1rem 2rem;
        font-size: 0.68rem;
        letter-spacing: 0.08em;
        text-align: left;
    }

    aside .sidebar .sidebar-divider {
        margin: 0.45rem 1.25rem 0.1rem;
    }

    /* Allow scrolling if dropdown expands */
    aside .sidebar {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
    }

    aside .close {
        display: inline-block;
        cursor: pointer;
    }

    main {
        margin-top: 8rem;
        padding: 0 1rem;
    }

    main .dashboard-bill-tables {
        position: relative;
        width: 100%;
        left: auto;
        transform: none;
        margin: 3rem 0 0 0;
    }

    main .pending-bills {
        position: relative;
        margin: 0 0 2rem 0;
        width: 100%;
    }

    main .pending-bills table {
        width: 100%;
        margin: 0;
    }

    /* .right {
        width: 94%;
        margin: 0 auto 4rem;
    } */

    .right .top {
        position: fixed;
        top: 0;
        left: 0;
        align-items: center;
        padding: 0 0.8rem;
        height: 4.6rem;
        background: var(--color-white);
        width: 100%;
        margin: 0;
        z-index: 2;
        box-shadow: 0 1rem 1rem var(--color-light);
    }

    .right .top .theme-toggler {
        width: 4.4rem;
        position: absolute;
        left: 66%;
    }

    /* .right .profile .info {
        display: none;
    } */

    .right .top button {
        display: inline-block !important;
        background: transparent;
        cursor: pointer;
        color: var(--color-dark);
        position: absolute;
        left: 1rem;
    }

    .right .top button span {
        font-size: 2rem;
    }
}





}
    


