body{
  margin:0;
  background:#0b1220;
  color:#fff;
  font-family:Arial;
}

.app{
  display:flex;
}

/* SIDEBAR */

.sidebar{
  width:260px;
  padding:20px;
  background:#020617;
}

.sub{
  opacity:.7;
  margin-bottom:20px;
}

.card{
  background:#333438a2;
  padding:22px;
  margin:12px 0;
  border-radius:10px;
  display:flex;
  justify-content:space-between;
  border:1px solid #1e293b;
  font-size:18px;
}

.clickable{
  cursor:pointer;
}

/* MAIN */

main{
  flex:1;
  padding:20px;
}

.search{
  width:320px;
  padding:10px;
  border-radius:8px;
  border:none;
  margin-bottom:15px;
}

/* TABLE */

table{
  width:100%;
  table-layout:fixed;
}

th{
  font-size:18px;
  color:#f57d14;
}

td{
  font-size:14px;
}

th,td{
  padding:8px 6px;
  border-bottom:1px solid #1e293b;
  text-align:center;

  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.live{
  color:#22c55e;
}

/* BUTTONS */

button{
  padding:5px 8px;
  border-radius:6px;
  border:none;
  cursor:pointer;
}


/* ACTION BUTTONS */

.btn-edit{
  background:#0d6efd;
  color:#fff;
  border:none;
  padding:4px 10px;
  border-radius:6px;
  font-size:12px;
  cursor:pointer;
}

.btn-edit:hover{
  background:#0b5ed7;
}

.btn-delete{
  background:#dc3545;
  color:#fff;
  border:none;
  padding:4px 10px;
  border-radius:6px;
  font-size:12px;
  cursor:pointer;
}

.btn-delete:hover{
  background:#bb2d3b;
}


/* PRODUCT VIEW BUTTON */

.btn-view{
  background:#475569;
  color:#fff;
  font-size:12px;
  padding:4px 10px;
  border-radius:6px;
}

.btn-view:hover{
  background:#64748b;
}

/* MODAL */

.modal{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.75);
  justify-content:center;
  align-items:center;
  z-index:999;
}

.modal-box{
  background:#0f1c2e;
  padding:30px;
  border-radius:8px;
  color:white;
  width:350px;
  text-align:center;
}

.modal-box h2{
  margin-bottom:20px;
}

.modal-box input,
.modal-box select{
  width:100%;
  margin:6px 0;
  padding:9px;
  border-radius:6px;
  border:1px solid #1e293b;
  background:#0b1220;
  color:#fff;
}

.modal-box p{
  background:#0b1220;
  padding:12px;
  border-radius:8px;
  border:1px solid #1e293b;
  margin-top:10px;
}

.modal-box button{
  margin-top:20px;
  padding:8px 20px;
  border:none;
  background:#2868a7;
  color:white;
  border-radius:5px;
  cursor:pointer;
}

/* BUTTON GROUP */

.btns{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top:12px;
}

.btn-save{
  background:#22c55e;
  color:#000;
}

.btn-cancel{
  background:#334155;
  color:#fff;
}

/* PRODUCT VIEW BUTTON */

.view-btn{
  padding:4px 10px;
  border:none;
  background:#2868a7;
  color:white;
  border-radius:4px;
  cursor:pointer;
}

/* WHATSAPP ICON */

.wa-icon{
  color:#25D366;
  font-size:22px;
  text-decoration:none;
}

.wa-icon:hover{
  color:#1ebe5d;
}

/* ACTION COLUMN FIX */

td:last-child{
  white-space:nowrap;
  overflow:visible;
  text-overflow:clip;
}

/* KEEP EDIT DELETE IN ONE LINE */

td:last-child button{
  display:inline-block;
  margin-right:5px;
}

/* COLUMN WIDTH CONTROL */

th:nth-child(4),
td:nth-child(4){
  width:170px;
  overflow:visible;
  text-overflow:clip;
}

/* PRODUCT COLUMN SMALL */

th:nth-child(7),
td:nth-child(7){
  width:70px;
}

/* DETAILS COLUMN SMALL */

th:nth-child(8),
td:nth-child(8){
  width:70px;
}

/* WHATSAPP COLUMN VERY SMALL */

th:nth-child(9),
td:nth-child(9){
  width:45px;
}

/* ACTION COLUMN */

th:nth-child(10),
td:nth-child(10){
  width:120px;
}

/* ===== TABLE COLUMN WIDTH CONTROL ===== */

th:nth-child(1), td:nth-child(1){width:110px;} /* Date */
th:nth-child(2), td:nth-child(2){width:90px;}  /* Time */
th:nth-child(3), td:nth-child(3){width:140px;} /* Name */
th:nth-child(4), td:nth-child(4){width:150px;} /* Number */
th:nth-child(5), td:nth-child(5){width:100px;} /* Type */
th:nth-child(6), td:nth-child(6){width:110px;} /* Status */
th:nth-child(7), td:nth-child(7){width:70px;}  /* Product */
th:nth-child(8), td:nth-child(8){width:70px;}  /* Details */
th:nth-child(9), td:nth-child(9){width:45px;}  /* WA */
th:nth-child(10), td:nth-child(10){width:120px;} /* Actions */


.missed{
color:#ff4d4d;
font-weight:bold;
}


/* Call Type Colors */

.incoming{
color:#02b662;
font-weight:bold;
}

.outgoing{
color:#0264c7;
font-weight:bold;
}

.missed{
color:#ff4d4d !important;
font-weight:bold;
}


.product-item {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #0f172a;
  padding: 10px;
  margin-top: 10px;
  border-radius: 10px;
}

.product-item img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
}

.delete-btn {
  background: red;
  color: white;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.box {
  background: #1e293b;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 12px;
}

.input {
  width: 95%;
  padding: 12px;
  margin: 10px 0;
  border-radius: 8px;
  border: none;
}

.btn {
  background: #22c55e;
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.customer-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0f172a;
  padding: 15px;
  margin-top: 10px;
  border-radius: 10px;
}

.actions button {
  margin-left: 5px;
  padding: 6px 10px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

.active {
  color: #22c55e;
  font-weight: bold;
}

.inactive {
  color: red;
  font-weight: bold;
}


.top-actions{
  display:flex;
  gap:10px;
  justify-content:flex-end;
  margin-bottom:20px;
  flex-wrap:wrap;
}

.top-actions input,
.top-actions select{
  padding:10px;
  border-radius:8px;
  border:none;
  background:#111827;
  color:white;
}

#downloadExcelBtn{
  background:#16a34a;
  color:white;
  border:none;
  padding:10px 18px;
  border-radius:8px;
  cursor:pointer;
  font-weight:600;
}

#downloadExcelBtn:hover{
  background:#15803d;
}

.mail-icon{
color:#4285F4;
font-size:22px;
text-decoration:none;
}

.mail-icon:hover{
opacity:0.8;
}

table{
width:100%;
table-layout:fixed;
}

th,td{
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
}

main{
overflow-x:auto;
}

table{
    width:100%;
    table-layout:fixed;
}

th, td{
    padding:6px 4px;
    font-size:14px;
    white-space:nowrap;
}

th:nth-child(1), td:nth-child(1){ width:90px; }   /* Date */
th:nth-child(2), td:nth-child(2){ width:80px; }   /* Time */
th:nth-child(3), td:nth-child(3){ width:140px; }  /* Name */
th:nth-child(4), td:nth-child(4){ width:130px; }  /* Number */
th:nth-child(5), td:nth-child(5){ width:80px; }   /* Type */
th:nth-child(6), td:nth-child(6){ width:80px; }   /* Status */
th:nth-child(7), td:nth-child(7){ width:120px; }  /* Product */
th:nth-child(8), td:nth-child(8){ width:70px; }   /* Details */
th:nth-child(9), td:nth-child(9){ width:50px; }   /* WA */
th:nth-child(10), td:nth-child(10){ width:50px; } /* Mail */
th:nth-child(11), td:nth-child(11){ width:120px; } /* Actions */


.mail-icon{
    font-size:18px;
}

.wa-icon{
    font-size:20px;
}