body {
    font-family: Arial, sans-serif, SolaimanLipi;
    margin: 0; 
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
   }


.bar {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px 0;
}


/* Table Styles */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2px;
    /* margin-left: 60px; */
}

.data-table th,
.data-table td {
    border: 1px solid #ccc;
    text-align: center;
	font-size : 14px;
}

.data-table th {
    background-color: #f2f2f2;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 35px;
        background-color: #333;
        font-size: 14px;
        padding: 13px;
    }

    .menu.active {
        display: flex;
    }

    .menu li {
        margin: 0;
        height: 30px;
    }
	.data-table th,
	.data-table td {
    border: 1px solid #ccc;
    text-align: center;
    font-size: 10px;
    padding:1px;
}
	.data-table tr:nth-child(even) {
	  background-color: #f2f2f2;
	      height: auto;
	}

	/* Apply zebra style to odd rows (optional, only if you want a different color) */
	tr:nth-child(odd) {
	  background-color: #ffffff;
	      height: auto;
	}
	
}


a {
  display: table-cell;
  margin: 20px auto;
  text-decoration: none;
  color: #000;
}

/* Cr-Db Form css */
#openPopupBtnCr {
  margin: 10px;
  padding: 5px 10px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.5);
}

#openPopupBtnDb {
  margin: 10px;
  padding: 5px 10px;
  background-color: #fe0000;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.5);
}


#popupWrapperCr {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
}

#popupWrapperDb {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
}

#popupWrapperDbEdt {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  display: flex;
}

#popupWrapperSt {

    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
   
}

#closeButton{
   margin: 20px auto;
    text-align: center;
    text-decoration: none;
    display: inline;

}

#popupWrapperList {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  overflow: auto;
}


#popup {
  background-color: #fff;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  
}

#popup h2 {
  margin-top: 0;
  margin-bottom: 20px;
}

#popup form {
  display: flex;
  flex-direction: column;
}

#popup label {
  font-weight: bold;
  margin-bottom: 5px;
  font-size: 11px;
}

#popup input, #popup button, #popup select {
     margin-bottom: 5px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
  
    
}

#popup button {
  cursor: pointer;
}

.closePopupBtn {
    position: relative;
    top: 1px;
    font-size: 29px;
    cursor: pointer;
    border: solid 1px;
    padding: 0 10px;
}

@media only screen and (max-width: 600px) {
  #popup {
    padding: 10px;
    width: -webkit-fill-available;
  }
}


/* new user registration css */
/* Center the modal content */
.modal {
  display: none;
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  width: 277px;
  height: 100vh;
  overflow: auto;
}

label {
  margin-bottom: 5px;
}

input {
  padding: 8px;
  margin-bottom: 15px;
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 4px;
}

button {
  padding: 10px 20px;
  background-color: #4CAF50;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

/* The modal overlay */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  width: -webkit-fill-available;
  padding: 10px;
}

.nav-title{
    color: #f8f9f9;
    font-weight: bolder;
}
.nav-user{
    color: #f8f9f9;
    font-weight: bolder;
    font-size: 11px;
}

/* login form css */
.loginForm {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
}

.login-container {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  width: 90%;
  max-width: 400px;
}

h2 {
  text-align: center;
  margin-bottom: 20px;
}

form {
  display: flex;
  flex-direction: column;
}

label {
  margin-bottom: 6px;
}

input {
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: auto;
}

button {
  padding: 10px;
  background-color: #007bff;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #0056b3;
}


.logout-icon {
    position: absolute;
    margin-top: -20px;
    margin-left: 129px;
    color: #d91a1a;
    font-size: large;
}

/* case upate popup  */

.dialog-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

.dialog-new {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

.dialog {
  background-color: white;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.2);
}

.dialog h2 {
  margin-top: 0;
}

.close-dialog {
  margin-top: 10px;
}
 
.row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 2px 20px;
    align-content: stretch;

}

.cr-btn{
    border: solid 1px #2f5b2c;
    padding: 5px;
    border-radius: 17px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    background-color: green;
}

.db-btn{
    border: solid 1px #2f5b2c;
    padding: 5px;
    border-radius: 17px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    background-color: red;
}
.balance{
    border: solid 1px #2f5b2c;
    padding: 8px 13px;
    border-radius: 17px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    text-align: center;
    margin-top: auto;
}
.balance-title{
        background-color: #000;
    color: #f8f9f9;
    padding: 3px;
    border-radius: 10px;
}
.trx-table-head{
   padding: 6px 20px;
    font-size: 13px;
    font-weight: 500;
    border: solid 1px;
}

.date-input-home{
    width: 35%;
    padding: 6px;
    text-align: center;
    
}
.centered-div {
  display: flex;
  justify-content: center;
  align-items: center;
}

#search{
        width: 35% !important;
}

.cursor-pointer{
        cursor: pointer;
}
.acc-list-div{
     width: -webkit-fill-available;
   
    margin-bottom: auto;
    margin-left: 5%;
    margin-right: 5%;
    margin-top: 10px;
}
.search-sum-total{
    display: flex;
    justify-content: right;
    font-weight: 700;
}

        /* Basic styling for the checkbox */
        .custom-checkbox {
            display: inline-block;
            position: relative;
            padding-left: 30px; /* Adjust the padding as needed */
            cursor: pointer;
            user-select: none;
        }

        /* Hide the default checkbox */
        .custom-checkbox input {
            position: absolute;
            opacity: 0;
            cursor: pointer;
        }

        /* Style the custom checkbox */
        .checkmark {
            position: absolute;
            top: 0;
            left: 0;
            height: 20px; /* Adjust the size as needed */
            width: 20px; /* Adjust the size as needed */
            background-color: #eee; /* Background color of the checkbox */
            border: 1px solid #aaa; /* Border color of the checkbox */
            border-radius: 4px; /* Border radius for a rounded appearance */
        }

        /* Style the checkmark inside the checkbox */
        .checkmark:after {
            content: "";
            position: absolute;
            display: none;
            left: 7px; /* Adjust the position as needed */
            top: 3px; /* Adjust the position as needed */
            width: 6px; /* Adjust the size as needed */
            height: 12px; /* Adjust the size as needed */
            border: solid #000;
            border-width: 0 3px 3px 0;
            transform: rotate(45deg);
        }

        /* Show the checkmark when the checkbox is checked */
        .custom-checkbox input:checked + .checkmark:after {
            display: block;
        }
        
        
         /* -----------------------
       Login page-safe styles
       (no .modal class here to avoid collisions)
    ------------------------*/
    .langbar{
      display:flex; justify-content:center; gap:10px; margin:16px 0 8px;
    }
    .langbar a{
      border:1px solid #e5e7eb; background:#f7f7f7;
      padding:6px 12px; border-radius:8px; text-decoration:none; color:#111;
      font-size:14px;
    }
    .langbar a:hover{ background:#eef2ff; }

    /* Splash (logo-only) */
    #brandSplash{ display:none; position:fixed; inset:0; z-index:10000;
      background:rgba(255,255,255,.85); align-items:center; justify-content:center; }
    #brandSplash.shown{ display:flex; }
    #brandSplash .wrap{ display:flex; align-items:center; justify-content:center; flex-direction:column; animation:splashIn .2s ease; }
    #brandSplash img{ width:140px; height:auto; filter:drop-shadow(0 6px 18px rgba(0,0,0,.18)); border-radius:12px; }
    @keyframes splashIn{ from{ transform:translateY(16px); opacity:0 } to{ transform:translateY(0); opacity:1 } }

    /* Collision-free modals for this page only */
    .ah-modal{ display:none; position:fixed; inset:0; z-index:9999;
      background:rgba(0,0,0,.45); align-items:center; justify-content:center; }
    .ah-panel{
      background:#fff; width:min(460px,92vw); max-height:90vh; overflow:auto;
      border-radius:10px; padding:16px 18px; box-shadow:0 12px 32px rgba(0,0,0,.18);
    }
    .ah-panel h2{ margin:0 0 10px; font-size:18px; }
    .ah-panel label{ display:block; margin:6px 0 4px; }
    .ah-panel input, .ah-panel select{ width:100%; padding:9px; border:1px solid #ccc; border-radius:6px; margin-bottom:10px; }
    .ah-actions{ display:flex; gap:8px; align-items:center; }
    .ah-actions button{ padding:9px 14px; border-radius:8px; border:1px solid #e5e7eb; cursor:pointer; }
    .ah-actions .danger{ background:#f13737; color:#fff; border-color:#f13737; }

    /* Make sure base login box stays above any background elements */
    .login-container{ position:relative; z-index:1; }
    
    /* bottom of registration modal layout fix */
.ah-legal-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 10px;
  font-size: 13px;
}
.ah-legal-links a {
  color: #007bff;
  text-decoration: none;
}
.ah-legal-links a:hover {
  text-decoration: underline;
}
.ah-legal-check {
  font-size: 13px;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ======================================
   Dual-Side Language Buttons (Top Corners)
   ====================================== */
.lang-switch-dual {
  position: absolute;
  top: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 18px;
  pointer-events: none; /* allow login title clicks if overlapping */
}

.lang-switch-dual button {
  pointer-events: auto;
  padding: 4px 10px;
  border: 1px solid #007bff;
  border-radius: 5px;
  background: #fff;
  color: #007bff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
}

.lang-switch-dual button:hover {
  background: #007bff;
  color: #fff;
}

.lang-switch-dual button.active {
  background: #007bff;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
}
/* Safety: do not style login modals with the global .modal on this page */
body.loginForm .modal { display:none !important; }

  /* =========================
     Popup wrappers + Modal box
     ========================= */
  #popupWrapperCr, #popupWrapperDb{
    position:fixed; inset:0; display:none;
    align-items:center; justify-content:center;
    background:rgba(0,0,0,.5);
    z-index:9999;
  }
  #popupWrapperCr .modal-box, #popupWrapperDb .modal-box{
    width:min(980px,96vw);
    max-height:92vh;
    overflow:auto;
    background:#fff;
    border-radius:10px;
    padding:14px;
  }

  .modal-head{
    /*display:grid;*/
    grid-template-columns:1fr auto;
    gap:12px;
    align-items:center;
    padding-bottom:10px;
    border-bottom:1px solid #eee;
  }
  .modal-head .date-wrap{ display:flex; align-items:center; gap:8px; }
  .modal-head .flags{ display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
  .modal-head .flags label{ display:inline-flex; align-items:center; gap:6px; }

  .flags > div{
    padding:4px 8px;
    border:1px solid #eee;
    border-radius:8px;
    background:#fafafa;
  }
  .flags label{ margin-right:10px; }

  .ledger-strip{ margin:10px 0 0; }

  /* =========================
     Entry table (bulk insert)
     ========================= */
  .entryTable{
    width:100%;
    border-collapse:collapse;
    table-layout:fixed;
    font-size:13px;
    margin-top:8px;
  }
  .entryTable th, .entryTable td{
    box-sizing:border-box;
    padding:6px 6px;
    border-bottom:1px solid #eee;
    vertical-align:middle;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .entryTable th{
    background:#fafafa;
    font-weight:600;
    text-align:left;
    position:sticky;
    top:0;
    z-index:1;
  }

  .entryTable th:nth-child(1), .entryTable td:nth-child(1){ width:30%; }
  .entryTable th:nth-child(2), .entryTable td:nth-child(2){ width:18%; text-align:right; }
  .entryTable th:nth-child(3), .entryTable td:nth-child(3){ width:30%; }
  .entryTable th:nth-child(4), .entryTable td:nth-child(4){ width:6%;  text-align:center; }

  .entryTable input[type="text"],
  .entryTable input[type="number"],
  .entryTable select{
    width:100%;
    height:32px;
    padding:4px 6px;
    box-sizing:border-box;
  }
  .entryTable input[type="number"]{ text-align:right; }

  .icon-btn{
    border:0;
    background:transparent;
    width:28px;
    height:28px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
  }
  .icon-btn i{ font-size:16px; color:#dc3545; }
  .icon-btn:hover i{ color:#a71d2a; }

  .modal-ctrl{
    display:flex;
    justify-content:space-between;
    gap:8px;
    margin-top:10px;
    flex-wrap:wrap;
  }
  .modal-ctrl .btn{
    padding:6px 10px;
    border-radius:6px;
    border:1px solid #ddd;
    background:#077f37;
    color:#fff;
    cursor:pointer;
  }
  .modal-ctrl .btn.pri{ background:#0d6efd; border-color:#0d6efd; }
  .modal-ctrl .btn.dng{ background:#dc3545; border-color:#dc3545; }

  .totalRow{ margin-top:8px; font-weight:600; text-align:right; }

  /* =========================
     Select2 sizing in modals
     ========================= */
  .select2-container{ width:100% !important; min-width:0 !important; max-width:100% !important; }
  .select2-container--default .select2-selection--single{
    height:32px; min-height:32px; border-radius:6px;
  }
  .select2-selection__rendered{ line-height:32px; padding-left:8px; }
  .select2-selection__arrow{ height:32px; width:20px; }

  /* Account select + balance */
  .acc-name-wrap{ display:flex; align-items:center; gap:6px; }
  .acc-name-cell .select2-container{ flex:1; }
  .acc-balance{
    font-size:12px;
    color:#f20606;
    white-space:nowrap;
    font-weight:600;
  }

  /* =========================
     Khatian header row style
     ========================= */
  .td_khatian{
    text-align:left!important;
    font-weight:bold;
    font-size:11px!important;
    background-color:#2f5b2c;
    color:#f7fbf3;
  }

  /* =========================
     Small dialogs (new ledger / account / group)
     ========================= */
  .dialog-overlay, .dialog-new, .dialog-group{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.45);
    z-index:10050;
    align-items:center;
    justify-content:center;
  }
  .dialog{
    background:#fff;
    border-radius:10px;
    padding:16px;
    width:min(420px,96vw);
    box-shadow:0 10px 24px rgba(0,0,0,.12);
  }
  .dialog h2{ margin:0 0 10px; font-size:18px; }
  .dialog input[type="text"]{
    width:100%;
    height:36px;
    padding:6px 8px;
    margin:6px 0 10px;
  }
  .dialog button{
    padding:8px 12px;
    border-radius:6px;
    border:1px solid #ddd;
    background:#0d6efd;
    color:#fff;
    cursor:pointer;
  }
  .dialog .close-dialog{ background:#6c757d; margin-left:8px; }

  /* =========================
     Daily Balance modal
     ========================= */
  #popupDaily{
    position:fixed; inset:0;
    display:none;
    align-items:center; justify-content:center;
    background:rgba(0,0,0,.5);
    z-index:10000;
  }
  #popupDaily .modal-box{
    width:min(1000px,96vw);
    max-height:80vh;
    overflow:auto;
    background:#fff;
    border-radius:10px;
    padding:14px;
    box-shadow:0 10px 24px rgba(0,0,0,.12);
    margin-top: 175px;
    margin-bottom: 92px;
  }

  #dailyTbl{ width:100%; border-collapse:collapse; font-size:13px; }
  #dailyTbl th,#dailyTbl td{ border-bottom:1px solid #eee; padding:8px; }
  #dailyTbl thead th{
    background:#fafafa;
    position:sticky;
    top:0;
    z-index:1;
  }
  #dailyTbl td.num, #dailyTbl th.num{ text-align:right; }
  #dailyTbl tfoot td{
    font-weight:700;
    background:#fafafa;
    border-top:1px solid #e5e7eb;
  }

  .daily-controls{
    display:flex;
    gap:8px;
    align-items:center;
    flex-wrap:wrap;
    margin-bottom:8px;
  }
  .daily-controls input[type="date"]{ height:34px; padding:4px 8px; }

  /* Generic button style used in page */
  .btn{
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:7px 12px;
    border:1px solid #e5e7eb;
    background:#fff;
    border-radius:8px;
    cursor:pointer;
  }
  .btn.primary{ background:#0ea5e9; color:#fff; border-color:#0ea5e9; }

  /* =========================
     Navbar: professional right side (logout after title)
     ========================= */
  .navbar{ display:flex; align-items:center; }

  .nav-right{
    margin-left:auto;          /* push to far right */
    padding-right:10px;
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    gap:2px;
    text-align:right;
  }

  .nav-title-row{
    display:flex;
    align-items:center;
    gap:8px;
    white-space:nowrap;        /* keep title + icon together */
  }
  .nav-title-text{ white-space:nowrap; }

  .logout-icon{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:30px;
    height:30px;
    border-radius:6px;
  }

  /* =========================
     Mobile: Description under Name in same column
     (hide Description column)
     ========================= */
  .m-desc{
    display:none;
    margin-top:3px;
    font-size:11px;
    color:#6b7280;
    white-space:normal;
  }

  /* =========================
     Name cell + Edit button styles (for Today + Due)
     ========================= */
  .name-cell{
    white-space:normal !important;
    overflow:visible !important;
    text-overflow:clip !important;
  }
  .name-line{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
  }
  .trx-edit-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:28px;
    height:28px;
    border-radius:6px;
    border:1px solid #e5e7eb;
    background:#fff;
    cursor:pointer;
    flex:0 0 auto;
  }
  .trx-edit-btn i{ font-size:14px; color:#0d6efd; }
  .trx-edit-btn.due i{ color:#dc3545; }
  .trx-edit-btn.disabled{ opacity:.45; cursor:not-allowed; }
  .trx-edit-btn.disabled i{ color:#6b7280; }

  
/* =========================
   NAVBAR FIX (override style.css)
   ========================= */
nav.navbar{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  position:relative !important;
}

/* make menu area take remaining space so right block never overlaps */
nav.navbar > ul.menu{
  flex:1 1 auto !important;
}

/* right block stays inside navbar and aligned */
nav.navbar .nav-right{
  margin-left:auto !important;
  padding-right:12px !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-end !important;
  gap:2px !important;
  text-align:right !important;
  position:relative !important;
  z-index:2 !important;
}

/* title + logout in one line */
nav.navbar .nav-title-row{
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
  white-space:nowrap !important;
  color:#e2c5c5;
}

/* ensure title is visible (style.css sometimes hides/overwrites it) */
nav.navbar .nav-title-text{
  display:inline-block !important;
  color:inherit !important;           /* or set to #fff if your navbar is dark */
  font-weight:600 !important;
  line-height:1.2 !important;
}

/* CRITICAL: prevent logout icon from escaping */
nav.navbar a.logout-icon{
  position:static !important;
  float:none !important;
  right:auto !important;
  top:auto !important;

  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:30px !important;
  height:30px !important;
  border-radius:6px !important;
  margin:0 !important;
  padding:0 !important;
}

/* small screens */
@media (max-width:576px){
  nav.navbar .nav-right{ padding-right:8px !important; }
}

    /* ✅ Make sure NAV is always above Select2 dropdown on mobile */
.navbar{
  position: sticky;   /* or fixed if you already use fixed */
  top: 0;
  z-index: 100000;
}

/* Select2 dropdown layer (keep below navbar) */
.select2-container{ z-index: 9999; }
.select2-dropdown{ z-index: 9999; }



/* ===============================
   Professional Table Theme
   Works with your existing .data-table
   =============================== */
:root{
  --brand: #1f4d2e;          /* your green header */
  --brand-2: #2e6b3f;
  --line: #d8dee6;
  --bg: #ffffff;
  --row: #f8fafc;
  --row2:#ffffff;
  --text:#0f172a;
  --muted:#64748b;
  --link:#0b5ed7;
  --shadow: 0 8px 24px rgba(15, 23, 42, .08);
  --radius: 10px;
}

/* Make tables feel like “cards” */
table.data-table{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin: 10px 0 16px;
}

/* Header */
table.data-table thead th{
  background: #2e5b2f;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .2px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,.15);
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

/* Body cells */
table.data-table tbody td{
  padding: 10px 12px;
  font-size: 12px;
  color: var(--text);
  border-top: 1px solid var(--line);
  vertical-align: top;
  background: var(--row2);
}

/* Zebra + hover */
table.data-table tbody tr:nth-child(even) td{
  background: var(--row);
}
table.data-table tbody tr:hover td{
  background: #eef6ff;
}

/* Numeric alignment helper (you already use inline styles sometimes) */
table.data-table td.num,
table.data-table th.num{
  text-align: right;
}

/* Khatian / group title row (your td_khatian) */
table.data-table .td_khatian{
  background: linear-gradient(0deg, #eef5ef, #f6fbf7);
  color: #0b2a18;
  font-weight: 800;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 8px 12px;
}

/* Links (account names) */
table.data-table td a.cursor-pointer{
  color: var(--link);
  font-weight: 700;
  text-decoration: none;
}
table.data-table td a.cursor-pointer:hover{
  text-decoration: underline;
}

/* Edit icon: make it subtle + aligned */
table.data-table td a.cursor-pointer i.fa,
table.data-table td a.cursor-pointer i.fas{
  margin-right: 6px;
  font-size: 12px;
  opacity: .85;
}

/* Totals rows: visually distinct */
table.data-table tbody tr:last-child td{
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
}
table.data-table tbody tr td[style*="font-weight:bold"],
table.data-table tbody tr td strong{
  color: #0b2a18;
}
table.data-table tbody tr:has(td[style*="font-weight:bold"]) td{
  background: #f1f7f2;
}

/* ===============================
   Mobile: keep it clean and readable
   =============================== */
@media (max-width: 768px){

  /* Add breathing room around cards */
  table.data-table{
    margin: 10px 0 14px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .10);
  }

  table.data-table thead th{
    padding: 10px 10px;
    font-size: 12px;
  }

  table.data-table tbody td{
    padding: 10px 10px;
    font-size: 12px;
  }

  /* Your existing “description under name” remains valid */
  .m-desc{
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.25;
    color: var(--muted);
  }

  /* Make long names wrap nicely */
  table.data-table td{
    word-break: break-word;
  }
}

/* Optional: if you want the header to remain visible while scrolling long lists */
@media (min-width: 769px){
  table.data-table thead th{
    position: sticky;
    top: 0;
    z-index: 2;
  }
}


/* =====================================
   Mobile: shrink # (action) column
   ===================================== */
@media (max-width: 768px){

  /* Force very small width for # column */
  table.data-table th:nth-child(4),
  table.data-table td:nth-child(4){
   /* width: 26px !important;     
   min-width: 26px !important;
    max-width: 26px !important;*/
    padding-left: 2px !important;
    padding-right: 2px !important;
    text-align: center;
    white-space: nowrap;
  }

  /* Give amount column guaranteed space */
  table.data-table th:nth-child(3),
  table.data-table td:nth-child(3){
    min-width: 60px;            /* prevents number breaking */
    text-align: right;
    white-space: nowrap;
  }

  /* Slightly reduce name padding for balance */
  table.data-table td:first-child{
    padding-right: 6px;
  }
}

.shadow-card{
  box-shadow:
    0 1px 2px rgba(0,0,0,.04),
    0 8px 24px rgba(0,0,0,.08);
}

.shadow-elevated{
  box-shadow:
    0 6px 18px rgba(0,0,0,.10),
    0 12px 30px rgba(0,0,0,.12);
}
.shadow-float{
  box-shadow:
    0 4px 14px rgba(0,0,0,.12);
}
.shadow-float:hover{
  box-shadow:
    0 6px 20px rgba(0,0,0,.16);
}
.shadow-soft{
  box-shadow:
    0 1px 0 rgba(0,0,0,.05),
    0 2px 6px rgba(0,0,0,.06);
}
.shadow-inset{
  box-shadow:
    inset 0 2px 6px rgba(0,0,0,.35);
}
.shadow-glass{
  box-shadow:
    0 8px 28px rgba(0,0,0,.12),
    inset 0 1px 0 rgba(255,255,255,.6);
}
.shadow-success{
  box-shadow:
    0 6px 20px rgba(31,111,67,.25);
}
@media (max-width:768px){
  .shadow-card,
  .shadow-elevated{
    box-shadow:
      0 4px 12px rgba(0,0,0,.10);
  }}
Works because table has id="data-table"
