*{
	margin:0px;
	padding:0px;
	list-style: none;
}
.ssection{
width: 100%;
height:800px;
background-color:#e8e8e8;
}

.Header{
	width: 100%;
	height:106px;
	background-color:white;
}
.part1{
	width: 100%;
	height:50px;
	display: flex;
}
.one{
	width:20%;
	height: 65px;
}
.one button {
  padding: 10px 18px;
  margin-left: 40px;
  margin-top: 12px;
  background: linear-gradient(135deg, #4facfe, #00c6ff);
  border: none;
  border-radius: 6px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}

.one button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.two{
	width:40%;
	height:65px;
}
.two form {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 500px;
  margin: 10px auto;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.two button {
  padding: 10px 12px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #666;
}

.two input {
  flex: 1;
  border: none;
  padding: 10px;
  outline: none;
  font-size: 14px;
}
.order-btn {
  display: inline-block;
  padding: 10px 18px;
  margin-top: 12px;
  margin-left: 10px;
  background: #2d5bff;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.2s;
}

.order-btn:hover {
  background: #1a45d8;
}
.three{
	width:20%;
	height:65px;
	
}
.order1{
	margin-top:20px;
	margin-left:20px;
}
.order2 {
  padding: 10px 18px;
  margin-left: 10px;
  border-radius: 6px;
  border: 1px solid #d0d5dd;
  background: #f9fafb;
  color: #333;
  font-weight: 500;
  cursor: pointer;
  transition: 0.2s ease;
}

.order2:hover {
  background: #eef2ff;
  border-color: #2d5bff;
  color: #2d5bff;
}
.four{
	width:20%;
	height:65px;
	
}
.four ul{
	display: flex;
	gap: 20px;
	margin-top:12px;
	margin-left:50px;
	font-size: 30px;
}
.part2{
	width:100%;
	height:40px;
}

.part2 ul{
	display: flex;
	gap:20px;
}
.part2 li{
	margin-top:30px;
	margin-left: 10px;
}.popover-card {
  display: none;
}
.part2 select{
	border:0px;
}
.section{
	width: 100%;
	height:40px;
	display: flex;
}
.section div{
	margin-left:15px;
	font-size:22px;
	margin-top: 8px;
	font-weight:bold;
}
.sectionleft{
	width:460px;
	height: 210px;
	background-color:white;
	margin-left: 20px;
	margin-top: 10px;
	border: 2px solid #ccc;
	float:left;
}
.sectionleft1{
	width:460px;
	height:40px;
	display:flex;
	border-bottom: 2px solid #ccc;
}
.sectionleft1 div{
	margin-top: 10px;
	margin-left: 4px;
	font-size:18px;
}
.sectionleft2{
	width:460px;
    height:40px;
    display: flex;
}
.sectionleft2 div{
	margin-left:240px;
	margin-top:4px;
	font-weight: bold;
}
.sectionleft2 input{
	height:25px;
}
.sectionleft3{
	width:460px;
	height:50px;
	display: flex;
}
.sectionleft3 ul{
	display: flex;
	gap: 80px;
	margin-top:30px;
	margin-left:10px;
	font-weight: bold;
}
.sectionleft4{
	width:460px;
	height:31px;
	background-color:#e8e8e8;
	display: flex;
	border-bottom:2px solid #ccc;
	border-top:2px solid #ccc;
}
.sectionleft4 div{
	margin: auto;
}
.sectionleft5{
	width:460px;
	height:45px;
	display: flex;
}
.sectionleft5 div{
	margin-top:8px;
	margin-left:2px;
}
.sectionmiddle{
	width:460px;
	height: 210px;
	background-color:white;
	margin-left: 20px;
	margin-top: 10px;
	border: 2px solid #ccc;
	float:left;
}
.sectionmiddle1{
	width:460px;
	height:40px;
	display:flex;
	border-bottom: 2px solid #ccc;
}
.sectionmiddle1 div{
	margin-top: 10px;
	margin-left: 4px;
	font-size:18px;
}
.sectionmiddle2{
	width:460px;
    height:40px;
    display: flex;
}
.sectionmiddle2 div{
	margin-left:240px;
	margin-top:4px;
	font-weight: bold;
}
.sectionmiddle2 input{
	height:25px;
}
.sectionmiddle3{
	width:460px;
	height:50px;
	display: flex;
}
.sectionmiddle3 ul{
	display: flex;
	gap: 80px;
	margin-top:30px;
	margin-left:10px;
	font-weight: bold;
}
.sectionmiddle4{
	width:460px;
	height:31px;
	background-color:#e8e8e8;
	display: flex;
	border-bottom:2px solid #ccc;
	border-top:2px solid #ccc;
}
.sectionmiddle4 div{
	margin: auto;
}
.sectionmiddle5{
	width:460px;
	height:45px;
	display: flex;
}
.sectionmiddle5 div{
	margin-top:8px;
	margin-left:2px;
}
.sectionright{
	width:500px;
	height: 350px;
	background-color:white;
	margin-left: 20px;
	margin-top: 10px;
	border: 2px solid #ccc;
	float:left;
}
.sectionright1{
	width:500px;
	height:40px;
	display:flex;
	border-bottom: 2px solid #ccc;
}
.sectionright1 div{
	margin-top: 10px;
	margin-left: 4px;
	font-size:18px;
}
.sectionright2{
	width:500px;
    height:40px;
    display: flex;
}
.sectionright2 div{
	margin-left:240px;
	margin-top:4px;
	font-weight: bold;
}
.sectionright2 input{
	height:25px;
}
.sectionright3{
	width:500px;
	height:50px;
	display: flex;
	border-bottom: 2px solid #ccc;
}
.sectionright3 ul{
	display: flex;
	gap: 80px;
	margin-top:30px;
	margin-left:10px;
	font-weight: bold;
}
/* ================= DASHBOARD DROPDOWN ================= */

.dashboard-menu {
  position: relative;
  cursor: pointer;
}

.dashboard-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* dropdown box */
.dashboard-dropdown {
  position: absolute;
  top: 55px;
  left: 0;
  width: 200px;
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  display: none;
  z-index: 1000;
}

.dashboard-dropdown.show {
  display: block;
}

/* arrow */
.dashboard-arrow {
  position: absolute;
  top: -8px;
  left: 18px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #ffffff;
}

/* item */
.dashboard-dropdown-item {
  padding: 12px 14px;
  font-size: 14px;
  cursor: pointer;
}

.dashboard-dropdown-item:hover {
  background: #f5f7fa;
}
/* ================= ORDER DROPDOWN ================= */

.order-menu {
  position: relative;
  cursor: pointer;
}

.order-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* dropdown box */
.order-dropdown {
  position: absolute;
  top: 55px;
  left: 0;
  width: 210px;
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  display: none;
  z-index: 1000;
}

.order-dropdown.show {
  display: block;
}

/* arrow */
.order-arrow {
  position: absolute;
  top: -8px;
  left: 18px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #ffffff;
}

/* items */
.order-dropdown-item {
  padding: 12px 14px;
  font-size: 14px;
  cursor: pointer;
}
.ic {
  margin-right: 15px;
}
.order-dropdown-item:hover {
  background: #f5f7fa;
}
.u{
  margin-left: 45px;
}
/* ================= REPORTS DROPDOWN ================= */

.reports-menu {
  position: relative;
  cursor: pointer;
}

.reports-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* dropdown box */
.reports-dropdown {
  position: absolute;
  top: 55px;
  left: 0;
  width: 220px;
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  display: none;
  z-index: 1000;
}

.reports-dropdown.show {
  display: block;
}

/* arrow */
.reports-arrow {
  position: absolute;
  top: -8px;
  left: 18px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #ffffff;
}

/* items */
.reports-dropdown-item {
  padding: 12px 14px;
  font-size: 14px;
  cursor: pointer;
}

.reports-dropdown-item:hover {
  background: #f5f7fa;
}


/* ================= MESSAGE DROPDOWN ================= */

.message-menu {
  position: relative;
  cursor: pointer;
}

.message-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* dropdown box */
.message-dropdown {
  position: absolute;
 top: 55px;
  left: 0;
  width: 220px;
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  display: none;
  z-index: 1000;
}

.message-dropdown.show {
  display: block;
}

/* arrow */
.message-arrow {
  position: absolute;
  top: -8px;
  left: 18px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #ffffff;
}

/* items */
.message-dropdown-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 14px;
  font-size: 14px;
  cursor: pointer;
}

.message-dropdown-item:hover {
  background: #f5f7fa;
}
/* badges */ .badge { padding: 3px 8px; border-radius: 6px;
   font-size: 12px; 
   color: white; } 
   .badge.blue { background: #1e88e5; }
    .badge.orange { background: #f39c12; }
/* ================= INHOUSE DROPDOWN ================= */

.inhouse-menu {
  position: relative;
  cursor: pointer;
}

.inhouse-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* dropdown box */
.inhouse-dropdown {
  position: absolute;
 top: 55px;
  left: 0;
  width: 220px;
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  display: none;
  z-index: 1000;
}

.inhouse-dropdown.show {
  display: block;
}

/* arrow */
.inhouse-arrow {
  position: absolute;
  top: -8px;
  left: 18px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #ffffff;
}

/* items */
.inhouse-dropdown-item {
  padding: 12px 14px;
  font-size: 14px;
  cursor: pointer;
}

.inhouse-dropdown-item:hover {
  background: #f5f7fa;
}
/* ================= SCROLLABLE DROPDOWN ================= */

.inhouse-dropdown {
  max-height: 280px;      
  overflow-y: auto;       
}
/* ================= CUSTOM SCROLLBAR ================= */

.inhouse-dropdown::-webkit-scrollbar {
  width: 6px;
}

.inhouse-dropdown::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 6px;
}

.inhouse-dropdown::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 6px;
}

.inhouse-dropdown::-webkit-scrollbar-thumb:hover {
  background: #999;
}

/* ================= FREELENCER DROPDOWN ================= */

.freelencer-menu {
  position: relative;
  cursor: pointer;
}

.freelencer-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* dropdown box */
.freelencer-dropdown {
  position: absolute;
  top: 55px;
  left: 0;
  width: 230px;
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  display: none;
  z-index: 1000;
}

.freelencer-dropdown.show {
  display: block;
}

/* arrow */
.freelencer-arrow {
  position: absolute;
  top: -8px;
  left: 18px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #ffffff;
}

/* items */
.freelencer-dropdown-item {
  padding: 12px 14px;
  font-size: 14px;
  cursor: pointer;
}

.freelencer-dropdown-item:hover {
  background: #f5f7fa;
}
/* ================= PAYMENT DROPDOWN ================= */

.payment-menu {
  position: relative;
  cursor: pointer;
}

.payment-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* dropdown box */
.payment-dropdown {
  position: absolute;
  top: 55px;
  left: 0;
  width: 220px;
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  display: none;
  z-index: 1000;
}

.payment-dropdown.show {
  display: block;
}

/* arrow */
.payment-arrow {
  position: absolute;
  top: -8px;
  left: 18px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #ffffff;
}

/* items */
.payment-dropdown-item {
  padding: 12px 14px;
  font-size: 14px;
  cursor: pointer;
}

.payment-dropdown-item:hover {
  background: #f5f7fa;
}
/* ================= MISC DROPDOWN ================= */

.misc-menu {
  position: relative;
  cursor: pointer;
}

.misc-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* dropdown box */
.misc-dropdown {
  position: absolute;
  top: 55px;
  left: 0;
  width: 220px;
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  display: none;
  z-index: 1000;
}

.misc-dropdown.show {
  display: block;
}

/* arrow */
.misc-arrow {
  position: absolute;
  top: -8px;
  left: 18px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #ffffff;
}

/* items */
.misc-dropdown-item {
  padding: 12px 14px;
  font-size: 14px;
  cursor: pointer;
}

.misc-dropdown-item:hover {
  background: #f5f7fa;
}
/* ================= SETTINGS DROPDOWN ================= */
.settings-menu { position: relative; cursor: pointer; }
.settings-item { display: flex; align-items: center; gap: 8px; }

.settings-dropdown {
  position: absolute;
  top: 55px;
  left: 0;
  width: 220px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 6px 16px rgba(0,0,0,.15);
  display: none;
  z-index: 1000;
}
.settings-dropdown.show { display: block; }

.settings-arrow {
  position: absolute;
  top: -8px; left: 18px;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #fff;
}

.settings-dropdown-item {
  padding: 12px 14px;
  cursor: pointer;
}
.settings-dropdown-item:hover { background: #f5f7fa; }
/* ================= LABEL DROPDOWN ================= */
.label-menu { position: relative; cursor: pointer; }
.label-item { display: flex; align-items: center; gap: 8px; }

.label-dropdown {
  position: absolute;
  top: 55px; 
  left: 0;
  width: 220px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 6px 16px rgba(0,0,0,.15);
  display: none;
  z-index: 1000;
}
.label-dropdown.show { display: block; }

.label-arrow {
  position: absolute;
  top: -8px; left: 18px;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #fff;
}

.label-dropdown-item {
  padding: 12px 14px;
  cursor: pointer;
}
.label-dropdown-item:hover { background: #f5f7fa; }
/* ================= SCROLLABLE DROPDOWN ================= */

.label-dropdown{
  max-height: 280px;      /* 🔥 half size (adjust if needed) */
  overflow-y: auto;       /* 🔥 enable vertical scroll */
}
/* ================= RESOURCES DROPDOWN ================= */
.resources-menu { position: relative; cursor: pointer; }
.resources-item { display: flex; align-items: center; gap: 8px; }

.resources-dropdown {
  position: absolute;
  top: 55px;
   left: 0;
  width: 220px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 6px 16px rgba(0,0,0,.15);
  display: none;
  z-index: 1000;
}
.resources-dropdown.show { display: block; }

.resources-arrow {
  position: absolute;
  top: -8px; left: 18px;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #fff;
}

.resources-dropdown-item {
  padding: 12px 14px;
  cursor: pointer;
}
.resources-dropdown-item:hover { background: #f5f7fa; }
/* ================= SIDEBAR HOVER EFFECT ================= */

/* common hover style for all menu items */
.dashboard-item:hover,
.order-item:hover,
.reports-item:hover,
.message-item:hover,
.inhouse-item:hover,
.freelencer-item:hover,
.payment-item:hover,
.misc-item:hover,
.settings-item:hover,
.label-item:hover,
.resources-item:hover {
  background-color: #e6f2ff;   /* light blue */
  border-radius: 6px;
}
.dashboard-item,
.order-item,
.reports-item,
.message-item,
.inhouse-item,
.freelencer-item,
.payment-item,
.misc-item,
.settings-item,
.label-item,
.resources-item {
  padding: 8px 8px;
}
/* ================= TOP MENU ALIGNMENT FIX ================= */

.dashboard-item,
.order-item,
.reports-item,
.message-item,
.inhouse-item,
.freelencer-item,
.payment-item,
.misc-item,
.settings-item,
.label-item,
.resources-item {
 margin-top: 20px;
}
/* ================= SUPPOERT QUERY ================= */

/* Top Bar */
.top-bar {
  padding: 15px 20px;
  background: #ffffff;
  display: flex;
  justify-content: flex-end;
  border-bottom: 1px solid #ddd;
}

.btn-query {
  background: #17b890;
  color: #fff;
  border: none;
  padding: 10px 18px;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
}

.btn-query:hover {
  background: #129a78;
}

/* Main Layout */
.container {
  display: flex;
  height: calc(100vh - 65px);
  background: #ffffff;
}

/* Left Panel */
.left-panel {
  width: 50%;
  padding: 20px;
}

/* Tabs */
.tabs {
  display: flex;
  border-bottom: 1px solid #ddd;
  margin-bottom: 20px;
}

.tab {
  padding: 10px 20px;
  background: transparent;
  border: 1px solid #ddd;
  border-bottom: none;
  cursor: pointer;
  margin-right: 5px;
  color: #555;
}

.tab.active {
  background: #ffffff;
  font-weight: bold;
}

/* Table */
table {
  width: 100%;
  border-collapse: collapse;
}

thead th {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid #ddd;
  color: #555;
}

tbody td {
  padding: 15px;
}

/* No Record Box */
.no-record {
  background: #f8dede;
  color: #a94442;
  padding: 15px;
  border-radius: 4px;
  border: 1px solid #ebccd1;
}
/* Divider */
.divider {
  width: 1px;
  background: #999;
}

/* Right Panel */
.right-panel {
  width: 50%;
  padding: 20px;
}
/* RIGHT PANEL */
.right-panel {
  padding: 20px;
  background: #f5f7fb;
}

/* QUERY CARD */
.query-details-card {
  background: #fff;
  border-radius: 6px;
  padding: 20px;
  border: 1px solid #e3e6ef;
}

/* INFO ROWS */
.qd-row {
  padding: 10px 0;
  border-bottom: 1px solid #eef1f6;
  font-size: 14px;
}

.qd-row span {
  font-weight: 600;
  color: #444;
}

.tag {
  background: #ffa726;
  color: #fff;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
}

/* SEND RESPONSE BUTTON */
.send-response-btn {
  margin: 20px 0;
  padding: 10px 18px;
  background: #1abc9c;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

/* CHAT */
.chat-wrapper {
  margin-top: 10px;
}

.chat-item {
  margin-bottom: 20px;
}

.chat-header {
  display: flex;
  flex-direction: column;
  margin-bottom: 6px;
}

.chat-header small {
  color: #777;
  font-size: 12px;
}

/* MESSAGE BOX */
.chat-msg {
  background: #eef6fb;
  padding: 14px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.6;
}
/* edit inhouse employee  */

/* Page */
.page {
  padding: 20px;
}

/* Info Banner */
.info-banner {
  background: #dff1fb;
  color: #1f6f8b;
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 14px;
}

/* Card */
.cardx {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 20px;
}

/* Header */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 12px;
}

.card-header h2 {
  margin: 0;
  font-size: 20px;
}

.save-btn {
  background: #2d5bff;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 20px;
  margin: 16px 0;
  border-bottom: 1px solid #e0e0e0;
}

.tab {
  padding-bottom: 10px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  position: relative;
}

.tab span {
  color: #2d5bff;
  font-size: 12px;
}

.tab .partial {
  color: #ff9800;
}

.tab.active {
  color: #2d5bff;
  font-weight: bold;
}

.tab.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: #2d5bff;
}

/* Form */
.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 20px;
  margin-top: 10px;
}

.field label {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
}

.field label span {
  color: red;
}

.field input,
.field select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #cfd6e0;
  border-radius: 6px;
  font-size: 14px;
}

/* Section Title */
.section-title {
  margin-top: 24px;
  font-weight: bold;
  font-size: 14px;
}
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.checkbox-field {
  display: flex;
  align-items: center;
  margin-top: 30px;
}
/* PROFILE TAB */

.full-width {
  grid-column: 1 / -1;
}

.upload-box {
  border: 2px dashed #2b78ff;
  padding: 40px;
  text-align: center;
  border-radius: 6px;
  position: relative;
  cursor: pointer;
}

.upload-box input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-box p {
  font-size: 16px;
  margin-bottom: 10px;
}

.upload-box .red {
  color: red;
  font-size: 13px;
}
/* HISTORY TAB */

.section-block {
  margin-bottom: 35px;
}

.section-title {
  font-weight: 600;
  margin-bottom: 12px;
  cursor: pointer;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.data-table th {
  text-align: left;
  padding: 12px;
  font-size: 13px;
  color: #666;
  border-bottom: 1px solid #ddd;
}

.data-table td {
  padding: 12px;
  border-bottom: 1px solid #eee;
}

.data-table .actions {
  text-align: right;
  cursor: pointer;
}

.no-data {
  text-align: center;
  padding: 40px;
  color: #777;
}

.add-row {
  display: inline-block;
  margin-top: 10px;
  color: #2b78ff;
  cursor: pointer;
  font-size: 14px;
}
/* EXIT TAB */

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
}

.field label {
  font-size: 14px;
  margin-bottom: 6px;
}

.field input,
.field textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.field.full {
  grid-column: span 2;
}

.checkbox-field {
  align-items: center;
  justify-content: center;
  padding-top: 25px;
}

.section-title {
  margin: 25px 0 10px;
  font-weight: 600;
}
/* Earnings & Deductions */

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 25px;
}

.data-table th {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid #ddd;
  color: #666;
}

.data-table td {
  padding: 10px;
  border-bottom: 1px solid #eee;
}

.data-table input,
.data-table select,
.data-table textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.data-table textarea {
  resize: vertical;
  min-height: 36px;
}

.data-table td:last-child {
  text-align: center;
  cursor: pointer;
}
/* DOCUMENTS TAB */

.doc-section {
  margin-bottom: 25px;
}

.doc-title {
  font-weight: 600;
  margin-bottom: 10px;
  cursor: pointer;
}

.doc-item {
  display: flex;
  gap: 10px;
  align-items: center;
}

.doc-item a {
  color: #1a73e8;
  text-decoration: none;
}

.doc-item a:hover {
  text-decoration: underline;
}

.delete {
  color: #000;
  cursor: pointer;
  font-size: 14px;
}

.info-box {
  background: #fff8e1;
  border: 1px solid #f0e0b5;
  padding: 15px;
  border-radius: 4px;
  color: #7a5c00;
}
/* Delivery section */
/* WRAPPER */
.workflow-wrapper {
  background: #f6f6f6;
  padding: 10px 15px;
  border-radius: 6px;
}

/* STATUS BAR */
.workflow-steps {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-bottom: 15px;
}

.step {
  padding: 10px 18px;
  background: #cfcfcf;
  color: #333;
  font-weight: 500;
  position: relative;
  clip-path: polygon(0 0, 90% 0, 100% 50%, 90% 100%, 0 100%, 10% 50%);
  cursor: pointer;
}

.step.active {
  background: #1f6fe5;
  color: #fff;
}

.follow-btn {
  margin-left: auto;
  padding: 8px 14px;
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
}

/* FILTER BAR */
.workflow-filters {
  display: flex;
  align-items: center;
  gap: 15px;
}

.workflow-filters select {
  padding: 8px 12px;
  border-radius: 20px;
  border: 1px solid #ccc;
}

/* TOGGLE BUTTONS */
.toggle-group {
  display: flex;
  border: 1px solid #ccc;
  border-radius: 6px;
  overflow: hidden;
}

.toggle {
  padding: 8px 14px;
  border: none;
  background: #fff;
  cursor: pointer;
}

.toggle.active {
  background: #1f6fe5;
  color: #fff;
}

/* ICONS */
.icons {
  margin-left: auto;
  display: flex;
  gap: 10px;
}

.icons button {
  padding: 8px 10px;
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
}

/* SECTION LABEL */
.section-label {
  margin-top: 12px;
  padding: 10px;
  background: #eee;
  border-radius: 8px;
  font-weight: 600;
}
#deliveryModel {
  padding: 20px;
  margin-top: 0px; /* CHANGED from 110px to 0px */
  min-height: calc(100vh - 110px);
  background: #f6f6f6;
}
.assigned-filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #ffffff;
  border-radius: 10px;
  margin: 12px 0;
}

.filters-left {
  display: flex;
  gap: 12px;
}

.filters-left select,
.filters-left input {
  padding: 8px 14px;
  border-radius: 20px;
  border: 1px solid #ddd;
  outline: none;
}

.filters-center {
  display: flex;
}

.filters-center button {
  padding: 8px 14px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
}

.filters-center button:not(:last-child) {
  border-right: none;
}

.filters-center button:hover {
  background: #f0f4ff;
}

.filters-right {
  display: flex;
  gap: 10px;
}

.filters-right button {
  padding: 8px 12px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  border-radius: 6px;
}

.assigned-title {
  padding: 10px 16px;
  background: #ededed;
  border-radius: 10px;
  font-weight: 600;
}
/* ================= REWORK FILTER BAR ================= */

.rework-filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #fff;
  border-radius: 8px;
  margin-bottom: 10px;
}

/* search */
.rework-search {
  padding: 8px 14px;
  border-radius: 20px;
  border: 1px solid #ddd;
  width: 220px;
  outline: none;
}

/* filters */
.rework-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rf {
  padding: 6px 12px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  border-radius: 4px;
}

.rf.active {
  background: #2d5bff;
  color: #fff;
  border-color: #2d5bff;
}

/* icons */
.rework-icons {
  margin-left: auto;
  display: flex;
  gap: 6px;
}

.rework-icons button {
  border: 1px solid #ddd;
  background: #fff;
  padding: 6px 10px;
  cursor: pointer;
  border-radius: 4px;
}

/* section title */
.rework-title {
  background: #f3f3f3;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  margin-bottom: 10px;
}
/* ================= REASSIGN FILTER BAR ================= */

.reassign-filters {
  display: flex;
  align-items: center;
  gap: 12px;

  background: #fff;
  padding: 12px 16px;
  border-radius: 10px;
  margin-top: 12px;
}

/* Select dropdown */
.reassign-filters select {
  padding: 8px 12px;
  border-radius: 20px;
  border: 1px solid #ddd;
  background: #f8f8f8;
  outline: none;
  cursor: pointer;
}

/* My Orders button */
.reassign-filters button {
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  transition: 0.2s;
  margin-left: 500px;
}

.reassign-filters button:hover {
  background: #f0f0f0;
}

/* Icons section */
.reassign-filters .icons {
  margin-left: auto;
}

.reassign-filters .icons button {
  font-size: 16px;
  border-radius: 6px;
}
/* ================= REFUND FILTER BAR ================= */

.refund-filters {
  display: flex;
  align-items: center;
  gap: 12px;

  background: #fff;
  padding: 12px 16px;
  border-radius: 10px;
  margin-top: 12px;
}

/* Select & input */
.refund-filters input {
  padding: 8px 14px;
  border-radius: 20px;
  border: 1px solid #1abc9c;
  background: #fff;
  outline: none;
  margin-left: 200px;
}
.refund-filters select{
    padding: 8px 14px;
  border-radius: 20px;
  border: 1px solid #1abc9c;
  background: #fff;
  outline: none;
}

/* Buttons */
.refund-filters button {
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
}

.refund-filters .get-data {
  background: #1abc9c;
  color: #fff;
  border: none;
}

/* Right icons */
.refund-filters .icons {
  margin-left: auto;
}


/* ================= QB MAPPING (ISOLATED) ================= */

#qbMappingPage {
  padding: 20px;
  background: #f6f6f6;
}

/* Container */
.qb-mapping-container {
  background: #fff;
  padding: 20px;
  border-radius: 6px;
  width: 98%;
  margin: auto;
}

/* Tabs */
.qb-tabs {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid #ddd;
  margin-bottom: 20px;
}

#tt {
  padding: 10px 15px;
  color: red;
  cursor: pointer;
  border: 1px solid #ddd;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  background: #f9f9f9;
}

.qb-tab.active {
  background: #fff;
  font-weight: bold;
}

/* Table */
.qb-table {
  width: 100%;
  border-collapse: collapse;
}

.qb-table thead th {
  padding: 12px;
  border-bottom: 2px solid #ddd;
  text-align: left;
}

.qb-table tbody td {
  padding: 12px;
  border-bottom: 1px solid #e6e6e6;
}

.qb-table .bold {
  font-weight: bold;
}

/* Map WP */
.qb-table .map-col {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qb-table .map-col input {
  width: 200px;
  height: 30px;
  padding: 4px 8px;
  border: 1px solid #999;
}

/* Delete icon */
.qb-table .delete {
  cursor: pointer;
  color: #444;
}

/* Pagination */
.qb-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
}

.qb-pagination button {
  padding: 6px 12px;
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
}

.qb-pagination button.active {
  background: #eee;
  font-weight: bold;
}
/* CACEL REQUEST */
.cancel-order-wrapper {
  background: #fff;
  border-radius: 6px;
  padding: 16px;
  margin-top: 20px;
}

/* Title */
.cancel-order-title {
  font-size: 16px;
  font-weight: 600;
  color: #444;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e5e5;
  margin-bottom: 16px;
}

/* Table wrapper */
.cancel-order-table-wrapper {
  overflow-x: auto;
}

/* Table */
.cancel-order-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

/* Header */
.cancel-order-table thead th {
  text-align: left;
  padding: 10px 12px;
  border: 1px solid #e6e6e6;
  background: #fafafa;
  color: #555;
  font-weight: 600;
}

/* Body cells (future rows) */
.cancel-order-table tbody td {
  padding: 10px 12px;
  border: 1px solid #e6e6e6;
  color: #444;
}
/* ================= LEADS PERFORMANCE REPORT ================= */

.leads-report-card {
  background: #fff;
  border-radius: 6px;
  padding: 20px;
  margin: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* Header */
.leads-report-header {
  font-size: 18px;
  font-weight: 600;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e5e5;
  margin-bottom: 18px;
}

/* Filters Row */
.leads-report-filters {
  display: flex;
  gap: 25px;
  align-items: flex-end;
  flex-wrap: wrap;
}

/* Each field */
.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 220px;
}

.filter-group label {
  font-size: 14px;
  color: #555;
  font-weight: 500;
}

/* Select */
.filter-group select {
  height: 40px;
  padding: 0 14px;
  border-radius: 20px;
  border: 1px solid #ddd;
  outline: none;
  background: #f9f9f9;
}

/* Date input with icon */
.date-input {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  height: 40px;
  padding: 0 10px;
}

.date-input i {
  color: #666;
  margin-right: 8px;
}

.date-input input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 14px;
}

/* Submit */
.submit-group {
  min-width: auto;
}

.submit-btn {
  height: 40px;
  padding: 0 22px;
  background: #1e88e5;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.submit-btn:hover {
  background: #1565c0;
}
/* Role & Access */
.xx {
  background: radial-gradient(circle at top, #1e2b45, #0b1323);
  color: #fff;
  padding: 30px;
}
.rbac-container {
  max-width: 1200px;
  margin: auto;
}

/* HEADER */
.rbac-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.rbac-header h1 {
  font-size: 28px;
}

.rbac-header p {
  color: #9fb0c9;
}

.header-actions {
  display: flex;
  gap: 12px;
}

.btn {
  padding: 10px 16px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.btn.primary {
  background: linear-gradient(90deg, #4facfe, #00f2fe);
  color: #000;
}

.btn.secondary {
  background: #1c2940;
  color: #fff;
  border: 1px solid #2f3e5c;
}
/* ================= RBAC HEADER CARD ================= */

.rbac-header-card {
  background: linear-gradient(135deg, #16243d, #0e1a2f);
  border-radius: 24px;
  padding: 26px 30px;
  margin-bottom: 30px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.45);
}

.rbac-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rbac-title h1 {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 6px;
}

.rbac-title p {
  color: #9fb0c9;
  font-size: 15px;
}

.header-actions {
  display: flex;
  gap: 14px;
}

/* GRID */
.roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

/* ROLE CARD */
.role-card {
  background: linear-gradient(180deg, #16243d, #0e1a2f);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.role-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.role-icon {
  background: #20365f;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.edit-icon {
  cursor: pointer;
  opacity: 0.6;
}

.role-card h3 {
  margin-top: 16px;
}

.role-desc {
  color: #9fb0c9;
  font-size: 14px;
  margin: 6px 0 16px;
}

.role-stats {
  display: flex;
  justify-content: space-between;
  color: #c7d2e3;
  font-size: 14px;
  margin-bottom: 14px;
}

.role-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.role-tags span {
  background: #1c2f50;
  padding: 6px 10px;
  border-radius: 20px;
  font-size: 12px;
}

.role-tags .more {
  background: transparent;
  border: 1px dashed #4facfe;
  color: #4facfe;
}
/* ================= RBAC SUMMARY ================= */

.rbac-summary {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.summary-card {
  background: linear-gradient(180deg, #16243d, #0e1a2f);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.summary-text span {
  color: #9fb0c9;
  font-size: 14px;
}

.summary-text h2 {
  font-size: 36px;
  margin-top: 6px;
}

.summary-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.summary-icon.shield {
  background: #1f3a5f;
}

.summary-icon.users {
  background: #0f5132;
}

.summary-icon.gear {
  background: #3a1f5f;
}
/*---------------------- Overview page ---------------------*/

.bb {
  margin: 0;
  background:
    radial-gradient(circle at top left, #1b2333, #06080d 60%);
  color: #e8ecff;
    box-sizing: border-box;
  font-family: "Inter", system-ui, sans-serif;
}

/* ===== DASHBOARD ===== */
.dashboard2 {
  padding: 32px;
  max-width: 1500px;
  margin: auto;
}

/* ===== GRID ===== */
.grid {
  display: grid;
  gap: 24px;
  margin-bottom: 24px;
}

.top-grid {
  grid-template-columns: repeat(3, 1fr);
}

.mid-grid {
  grid-template-columns: 2.2fr 1fr;
}

.bottom-grid {
  grid-template-columns: 2.2fr 1fr;
}

/* ===== CARD ===== */
.card {
  position: relative;
  padding: 26px;
  border-radius: 22px;

  background:
    radial-gradient(circle at top left,
      #1f2736,
      #0b0f16 70%);

  box-shadow:
    0 20px 40px rgba(0,0,0,0.65),
    inset 0 1px 0 rgba(255,255,255,0.05);
}

.card.large {
  min-height: 260px;
}

/* ===== TEXT ===== */
h4 {
  margin: 0 0 14px;
  font-weight: 500;
  color: #8ea2ff;
  letter-spacing: 0.3px;
}

h2 {
  margin: 0 0 6px;
  font-size: 30px;
  font-weight: 600;
}

p {
  margin: 6px 0;
}

.positive {
  color: #45f39b;
  font-size: 14px;
}

/* ===== LIST ===== */
.list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list li {
  margin: 10px 0;
  opacity: 0.9;
}

/* ===== STATISTICS ===== */
.chart-placeholder {
  height: 170px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, #222a3a, #141926);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}

/* ===== BILLING ===== */
.billing {
  display: flex;
  align-items: center;
  gap: 28px;
}

.ring {
  position: relative;
  width: 140px;
  height: 140px;
  border-radius: 50%;

  background:
    conic-gradient(
      #7f8cff 0deg 250deg,
      #2a3040 250deg 360deg
    );

  box-shadow: 0 0 25px rgba(127,140,255,0.35);
}

.ring::after {
  content: "";
  position: absolute;
  inset: 18px;
  background: #0b0f16;
  border-radius: 50%;
}

.ring span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  z-index: 1;
}

/* ===== AUDIENCE ===== */
.bar {
  margin: 20px 0;
}

.progress {
  height: 12px;
  background: #1f2533;
  border-radius: 10px;
  overflow: hidden;
}

.progress div {
  height: 100%;
  background:
    linear-gradient(90deg, #7f8cff, #a88bff);
  box-shadow: 0 0 12px rgba(127,140,255,0.5);
}

/* ===== ACCOUNT ===== */
.highlight {
  color: #8ea2ff;
  font-weight: 600;
}

/* -------------Freelencer---------- */
.freelancer-wrapper {
  background: #ffffff;
  padding: 20px;
  border-radius: 6px;
  margin: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  font-family: Arial, sans-serif;
}

/* HEADER */
.freelancer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.freelancer-header h2 {
  margin: 0;
  font-size: 22px;
}

.freelancer-header p {
  margin: 4px 0 0;
  font-size: 14px;
  color: #666;
}

.refresh-btn {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
}

/* SEARCH AREA */
.freelancer-search {
  display: flex;
  gap: 20px;
  margin: 20px 0;
}

.search-box {
  display: flex;
  width: 100%;
}

.search-box input,
.search-box select {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 4px 0 0 4px;
  font-size: 14px;
}

.search-btn {
  background: #18b394;
  color: #fff;
  border: none;
  padding: 0 18px;
  font-size: 14px;
  cursor: pointer;
  border-radius: 0 4px 4px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* STATUS BAR */
.freelancer-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #eee;
  padding-top: 14px;
}
.status-tab {
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 4px;
  color: #444;
}

.status-tab.active {
  font-weight: 600;
  color: #18b394;
  border-bottom: 2px solid #18b394;
}

.status-list {
  display: flex;
  gap: 22px;
}

.status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #444;
  cursor: pointer;
}

.status.active {
  font-weight: 600;
}

.freelancer-count {
  font-size: 14px;
  color: #666;
}
.freelancer-table {
  background: #fff;
  margin: 0 -10px 0px;
  overflow: visible;
  font-family: Arial, sans-serif;
}

/* ROW */
.freelancer-row {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr 1fr;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}

.freelancer-row:nth-child(even) {
  background: #fafafa;
}

.freelancer-row:hover {
  background: #f5f9ff;
}

/* TEXT */
.name {
  font-weight: 600;
  color: #555;
}

.phone {
  color: #555;
}

.date {
  color: #666;
}

/* STATUS */
.status {
  text-align: right;
}

.status-btn {
  background: #18b394;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
}

.status-btn.active {
  background: #18b394;
}
/* STATUS DROPDOWN */
.status-dropdown {
  position: relative;
  display: inline-block;
}

.status-btn {
  background: #18b394;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-btn.inactive {
  background: red;
}

/* DROPDOWN MENU */
.status-menu {
  position: absolute;
  top: 110%;
  right: 0;
  width: 120px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  display: none;
  z-index: 9999;
}

.status-menu div {
  padding: 10px 14px;
  font-size: 13px;
  cursor: pointer;
}

.status-menu div:hover {
  background: #f5f7fa;
}

/* SHOW */
.status-dropdown.show .status-menu {
  display: block;
}
/* STATUS COLORS */
.status-btn.complete { background: #2ecc71; }
.status-btn.incomplete { background: #e67e22; }
.status-btn.queue { background: #3498db; }
/* Center button */
.add-freelancer {
  margin-left: auto;
  margin-right: 430px;
}

.add-freelancer button {
  background: #18b394;
  color: #fff;
  border: none;
  padding: 5px 15px;
  font-size: 14px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.add-freelancer button:hover {
  background: #129a78;
}
/* Freelencer form */
/* ===== MODAL OVERLAY ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

/* ===== MODAL BOX ===== */
.modal-box {
  width: 420px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Header */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid #e5e5e5;
}

.modal-header h3 {
  margin: 0;
  font-size: 16px;
}

.close-modal {
  font-size: 22px;
  cursor: pointer;
  color: #666;
}

/* Body */
.modal-body {
  padding: 18px;
}

.form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
}

.form-row label {
  font-size: 13px;
  margin-bottom: 6px;
  color: #555;
}

.form-row input,
.form-row select {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
}

/* Footer */
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid #e5e5e5;
}

.btn-cancel {
  background: #f0f0f0;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
}

.btn-save {
  background: #18b394;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
}
.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin: 25px 0;
}

.pagination button {
  padding: 8px 14px;
  border: 1px solid #ddd;
  background: #f9f9f9;
  cursor: pointer;
  border-radius: 4px;
  font-size: 14px;
}

.pagination button:hover {
  background: #eee;
}

.pagination .page-btn.active {
  background: #eaeaea;
  font-weight: 600;
}
/* Freelencer support */
.support-wrapper {
  background: #fff;
  padding: 20px;
  border-radius: 6px;
}

/* Tabs */
.support-tabs {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid #ddd;
  margin-bottom: 15px;
}

.support-tab {
  padding: 8px 18px;
  border: 1px solid #ddd;
  border-bottom: none;
  background: #f9f9f9;
  cursor: pointer;
  border-radius: 6px 6px 0 0;
}

.support-tab.active {
  background: #fff;
  font-weight: 600;
}

/* Table */
.support-table-wrapper {
  overflow-x: auto;
}

.support-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.support-table th,
.support-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #eee;
  text-align: left;
  white-space: nowrap;
}

.support-table th {
  color: #666;
  font-weight: 600;
}

/* View button */
.view-btn {
  background: #14b89f;
  color: #fff;
  border: none;
  padding: 5px 14px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
}

/* Status dropdown */
.status-select {
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid #ddd;
  cursor: pointer;
}
/* MODAL BASE */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-box {
  background: #fff;
  width: 700px;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.modal-box.large {
  width: 900px;
}

/* HEADER */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
}

.modal-title {
  color: #e53935;
  font-size: 18px;
}

.close-modal {
  cursor: pointer;
  font-size: 22px;
  color: #999;
}

/* BODY */
.modal-body {
  padding: 20px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 20px;
}

.detail-grid label,
.detail-row label {
  color: #777;
  font-size: 14px;
  display: block;
  margin-bottom: 4px;
}

.detail-grid span {
  font-size: 15px;
}

.detail-row p {
  margin-top: 6px;
  font-size: 15px;
}

/* BUTTONS */
.reply-btn {
  background: #19b394;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 20px;
}

.modal-footer {
  border-top: 1px solid #eee;
  padding: 15px 20px;
}

.btn-cancel {
  background: #fff;
  border: 1px solid #ddd;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
}
.form-row {
  margin-bottom: 15px;
}

.form-row textarea {
  width: 96%;
  padding: 10px;
  border: 2px solid #ddd;
  border-radius: 4px;
  margin-left:5px;
}

.upload-box {
  border: 2px dashed #1e90ff;
  padding: 20px;
  border-radius: 6px;
   width: 93%;
   margin-left:7px;
}

.upload-box .warn {
  color: red;
  font-size: 13px;
}

.btn-send {
  background: #19b394;
  color: #fff;
  padding: 10px 18px;
  border-radius: 4px;
  border: none;
}
/* Tutor work report */
.attendance-wrapper {
  background: #fff;
  padding: 20px;
}

/* TOP BAR */
.attendance-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.attendance-tabs {
  display: flex;
  gap: 10px;
}

.att-tab {
  padding: 8px 16px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  border-radius: 4px;
}

.att-tab.active {
  background: #f2f2f2;
  font-weight: 600;
}

.attendance-search {
  display: flex;
  gap: 8px;
}

.attendance-search input {
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.get-data-btn {
  background: #19b394;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 4px;
  cursor: pointer;
}

/* TABLE */
.attendance-table {
  width: 100%;
  border-collapse: collapse;
}

.attendance-table th,
.attendance-table td {
  border-bottom: 1px solid #eee;
  padding: 12px;
  text-align: left;
}

.approve-btn {
  background: #19b394;
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
}
/* Payment section */
.invoice-filters {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  margin-bottom: 10px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-group.wide {
  flex: 1;
}

.filter-group label {
  font-size: 14px;
  color: #555;
}

.filter-group select,
.filter-group input {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.filter-actions {
  display: flex;
  gap: 10px;
}

.csv-btn {
  background: #1fc8c8;
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 4px;
  cursor: pointer;
}

.search-btn {
  background: #19b38c;
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 4px;
  cursor: pointer;
}

.search-input {
  width: 90%;
  margin: 10px 0 20px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
}
.ser{
  display: flex;
}
/* TABLE */
.invoice-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.invoice-table th {
  background: #f7f7f7;
  text-align: left;
  padding: 12px;
  border: 1px solid #eee;
}

.invoice-table td {
  padding: 14px 12px;
  border: 1px solid #eee;
}

.status.unpaid {
  color: #555;
  text-transform: lowercase;
}

.view-link {
  color: #1e88e5;
  text-decoration: none;
  font-weight: 500;
}
/* Invoice review request */
.review-tabs {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid #ddd;
  margin-bottom: 15px;
}

.review-tab {
  background: none;
  border: none;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
}

.review-tab.active {
  border-bottom: 2px solid #17c3b2;
  font-weight: 600;
}

.review-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.review-table th,
.review-table td {
  padding: 12px;
  border-bottom: 1px solid #e5e5e5;
  text-align: left;
  font-size: 14px;
}

.invoice-link {
  color: #0d6efd;
  text-decoration: none;
}

.view-btn {
  background: #17c3b2;
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
}
/* invoise review model  */
/* ===== INVOICE REVIEW MODAL ===== */

.inv-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.inv-modal-box {
  background: #fff;
  width: 92%;
  max-width: 1100px;
  border-radius: 6px;
  overflow: hidden;
}

.inv-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid #e5e5e5;
}

.inv-modal-header h3 {
  font-size: 16px;
  margin: 0;
}

.inv-close-btn {
  font-size: 22px;
  cursor: pointer;
  color: #999;
}

.inv-modal-body {
  padding: 18px;
}

.inv-detail-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}

.inv-detail-table th,
.inv-detail-table td {
  border-bottom: 1px solid #eee;
  padding: 10px;
  text-align: left;
  font-size: 14px;
}

.inv-input-sm {
  width: 60px;
  padding: 4px;
}

.inv-message {
  margin: 14px 0;
  font-size: 14px;
}

.inv-comment-box label {
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}

.inv-comment-box textarea {
  width: 100%;
  height: 120px;
  padding: 10px;
  resize: none;
}

.inv-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid #e5e5e5;
}

.inv-approve-btn {
  background: #1abc9c;
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 4px;
  cursor: pointer;
}

.inv-reject-btn {
  background: #ff5b5b;
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 4px;
  cursor: pointer;
}
/* MODERATION PAGE */

/* MAIN WRAPPER */
.notification-wrapper {
  display: flex;
  gap: 20px;
}

/* EACH PANEL */
.notification-box {
  background: #fff;
  width: 50%;
  height: 550px;
  padding: 20px;
  position: relative;
  overflow-y: auto;
  border-radius: 6px;
}

/* ALERT BOX */
.alert-danger {
  background-color: #f8d7da;
  color: #842029;
  padding: 14px 16px;
  border-radius: 6px;
  border: 1px solid #f5c2c7;
}

/* REFRESH BUTTON */
.refresh-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: #fff;
  border: 1px solid #ddd;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  cursor: pointer;
}
.refresh-btn i {
  color: #555;
  font-size: 14px;
}

.refresh-btn:hover {
  background: #f1f1f1;
}
/* Query model */

/* OVERLAY */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* MODAL */
.modal {
  width: 600px;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
}

/* HEADER */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
}

.modal-header h3 {
  margin: 0;
  color: red;
}

.close-btn {
  cursor: pointer;
  font-size: 22px;
}

/* BODY */
.modal-body {
  padding: 20px;
}

.modal-body label {
  display: block;
  margin: 15px 0 6px;
  font-weight: 600;
}

.modal-body input,
.modal-body select,
.modal-body textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.modal-body textarea {
  height: 100px;
  resize: none;
}

/* UPLOAD BOX */
.upload-box {
  margin-top: 20px;
  border: 2px dashed #3b82f6;
  padding: 25px;
  text-align: center;
  border-radius: 6px;
}

.upload-box p {
  margin: 0;
  font-weight: 600;
}

.upload-box span {
  color: red;
}

.upload-box small {
  display: block;
  margin-top: 8px;
  color: red;
  font-size: 12px;
}

/* FOOTER */
.modal-footer {
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #eee;
}

.cancel-btn {
  background: #f3f4f6;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
}

.submit-btn {
  background: #10b981;
  color: #fff;
  border: none;
  padding: 10px 25px;
  border-radius: 4px;
  cursor: pointer;
}
/* ================= WHITE PERMISSION MATRIX POPUP ================= */

.pm-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  background: transparent; /* no dark backdrop */
}

.pm-modal-full {
  width: 85%;
  max-width: 1100px;
  max-height: 85vh;

  background: #ffffff;   /* WHITE */
  border-radius: 18px;
  padding: 28px;

  box-shadow: 0 40px 80px rgba(0,0,0,0.15);

  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* HEADER */
.pm-header h2 {
  color: #111;
  font-size: 26px;
  font-weight: 700;
}

.pm-header p {
  color: #666;
  font-size: 14px;
  margin-top: 4px;
}

.pm-close {
  color: #888;
  font-size: 20px;
  cursor: pointer;
}

.pm-close:hover {
  color: #000;
}

/* TABLE AREA */
.pm-matrix {
  margin-top: 20px;
  overflow-y: auto;
}

/* GRID ROW */
.pm-row {
  display: grid;
  grid-template-columns: 200px repeat(5, 1fr);
  border-bottom: 1px solid #eee;
}

/* HEADER ROW */
.pm-head {
  background: #f5f5f5;
  font-weight: 600;
  color: #333;
}

/* CELLS */
.pm-cell {
  padding: 14px 16px;
  text-align: center;
  font-size: 14px;
  color: #333;
}

.pm-cell:first-child {
  text-align: left;
}

/* SECTION ROWS */
.section {
  background: #fafafa;
  font-weight: 600;
  color: #111;
}

/* SUB PERMISSION */
.sub {
  padding-left: 30px;
  color: #555;
}
.pm-row:hover {
  background: #f9f9f9;
}
.pm-cell.allow {
  color: #22c55e;
  font-weight: 600;
}

.pm-cell.deny {
  color: #ef4444;
  font-weight: 600;
}
/* ===== CENTER POPUP MODAL (NO DARK BACKDROP) ===== */

.pm-drawer {
  position: fixed;
  inset: 0;

  display: none;                /* hidden by default */
  align-items: center;
  justify-content: center;

  background: transparent;      /* no dark overlay */
  z-index: 9999;
}

/* when active */
.pm-drawer.active {
  display: flex;
}

/* white popup box */
.pm-drawer-content {
  width: 85%;
  max-width: 1100px;
  max-height: 85vh;

  background: #ffffff;
  border-radius: 18px;
  padding: 30px;

  box-shadow: 0 40px 80px rgba(0,0,0,0.15);

  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* header */
.pm-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

/* scroll area */
.pm-matrix {
  margin-top: 20px;
  overflow-y: auto;
  overflow-x: auto;
  width: 100%;
}

.pm-drawer-content {
  width: 90%;
  max-width: 1200px;
  max-height: 85vh;
  background: #ffffff;
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
/* ===== ADD ROLE MODAL ===== */

.role-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.role-modal.active {
  display: flex;
}

.role-modal-box {
  width: 600px;
  max-height: 85vh;
  background: #ffffff;
  border-radius: 18px;
  padding: 25px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.role-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.close-role {
  cursor: pointer;
  font-size: 20px;
  color: #777;
}

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

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.permissions-section h3 {
  margin: 15px 0 10px;
}

.permission-group {
  margin-bottom: 15px;
}

.permission-group h4 {
  margin-bottom: 6px;
}

.permission-group label {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
}

.role-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 15px;
}

.cancel-btn {
  background: #f3f4f6;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
}

.save-btn {
  background: linear-gradient(90deg, #4facfe, #00f2fe);
  border: none;
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}
/* ===== ROLE DETAILS MODAL ===== */

.role-details-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.role-details-modal.active {
  display: flex;
}

.role-details-box {
  width: 900px;
  max-height: 85vh;
  background: linear-gradient(180deg, #16243d, #0e1a2f);
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5);
  overflow-y: auto;
  color: #fff;
}

/* HEADER */
.rd-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rd-close {
  cursor: pointer;
  font-size: 20px;
}

/* TABS */
.rd-tabs {
  display: flex;
  gap: 20px;
  margin: 20px 0;
  border-bottom: 1px solid #2a3b5c;
}

.rd-tab {
  padding-bottom: 10px;
  cursor: pointer;
  color: #9fb0c9;
}

.rd-tab.active {
  color: #4facfe;
  border-bottom: 2px solid #4facfe;
}

/* PANELS */
.rd-panel {
  display: none;
}

.rd-panel.active {
  display: block;
}

/* FORM */
.rd-panel input,
.rd-panel textarea {
  width: 100%;
  padding: 8px;
  margin: 8px 0 15px;
  border-radius: 6px;
  border: none;
}

.rd-save-btn {
  background: linear-gradient(90deg, #4facfe, #00f2fe);
  border: none;
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 10px;
}

/* USERS TABLE */
.rd-table {
  width: 100%;
  border-collapse: collapse;
}

.rd-table th,
.rd-table td {
  padding: 10px;
  border-bottom: 1px solid #2a3b5c;
}

.rd-assign-btn {
  background: #1c2f50;
  border: 1px solid #2f4c7a;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  color: #fff;
}
/* ================= ADD USER MODAL ================= */

.add-user-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

.add-user-modal.active {
  display: flex;
}

.add-user-box {
  width: 450px;
  background: linear-gradient(180deg, #16243d, #0e1a2f);
  border-radius: 18px;
  padding: 25px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.6);
  color: #fff;
}

/* HEADER */
.add-user-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.add-user-close {
  cursor: pointer;
  font-size: 20px;
}

/* FORM */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: #9fb0c9;
}

.form-group input {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: none;
  outline: none;
}

/* STATUS TOGGLE */
.toggle-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 45px;
  height: 22px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #555;
  transition: .3s;
  border-radius: 34px;
}

.slider:before {
  content: "";
  position: absolute;
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

.switch input:checked + .slider {
  background: linear-gradient(90deg, #4facfe, #00f2fe);
}

.switch input:checked + .slider:before {
  transform: translateX(22px);
}

/* FOOTER */
.add-user-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

.btn-cancel {
  background: #1c2f50;
  border: 1px solid #2f4c7a;
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
}

.btn-create {
  background: linear-gradient(90deg, #4facfe, #00f2fe);
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}
.order-row{
display:flex;
justify-content:space-between;
padding:10px;
border-bottom:1px solid #ddd;
font-size:14px;
}

.order-row span{
width:25%;
}
#uaOrders,
#assignedOrders{
display:none;
}
.order-row{
cursor:pointer;
}

.order-row:hover{
background:#f5f7ff;
}
.assigned-row{
display:grid;

grid-template-columns:
140px
160px
80px
160px
160px
100px
100px
100px
60px
160px
80px
120px
60px;

align-items:center;
padding:10px 15px;
border-bottom:1px solid #eee;
font-size:14px;
white-space:nowrap;
row-gap:4px;
}

.badge{
background:#eee;
padding:4px 10px;
border-radius:15px;
font-size:12px;
}

.col-action button{
margin-left:6px;
padding:4px 8px;
border:none;
border-radius:4px;
cursor:pointer;
background:#f1f1f1;
}
.col-message{
display:flex;
align-items:center;
gap:5px;
}

.col-add button{
background:none;
border:none;
font-size:16px;
cursor:pointer;
}
/* ================= ORDER BADGE FOOTER ================= */

.order-row-footer{
  grid-column: 1 / -1;   /* span full row width */
  display:flex;
  gap:6px;
  margin-top:6px;
  flex-wrap:wrap;
}

/* badge style */
.order-badge{
  background:#eef3ff;
  color:#2d5bff;
  padding:3px 8px;
  border-radius:6px;
  font-size:11px;
  font-weight:600;
}

/* if row has badges give space */
.assigned-row .order-row-footer{
  margin-left:5px;
}

.order-row .order-row-footer{
  margin-left:5px;
}
/* ===== ORDER ROW BADGE COLORS ===== */

.order-badge[data-value="Email"],
.order-badge[data-value="WhatsApp"],
.order-badge[data-value="SMS"],
.order-badge[data-value="Call Required"],
.order-badge[data-value="Feedback Waiting"],
.order-badge[data-value="Waiting Payment"],
.order-badge[data-value="Pay Later"] { background: #3b82f6; color: #fff; }

.order-badge[data-value="WhatsApp"] { background: #25d366; color: #fff; }
.order-badge[data-value="SMS"] { background: #06b6d4; color: #fff; }
.order-badge[data-value="Call Required"] { background: #f97316; color: #fff; }
.order-badge[data-value="Feedback Waiting"] { background: #a855f7; color: #fff; }
.order-badge[data-value="Waiting Payment"] { background: #eab308; color: #fff; }
.order-badge[data-value="Pay Later"] { background: #ca8a04; color: #fff; }

.order-badge[data-value="Urgent"] { background: #ef4444; color: #fff; }
.order-badge[data-value="Vimp"] { background: #dc2626; color: #fff; }
.order-badge[data-value="Short Deadline"] { background: #f43f5e; color: #fff; }
.order-badge[data-value="OnHold"] { background: #94a3b8; color: #fff; }

.order-badge[data-value="WIP"] { background: #8b5cf6; color: #fff; }
.order-badge[data-value="NoProgress"] { background: #64748b; color: #fff; }
.order-badge[data-value="Rework"] { background: #f97316; color: #fff; }
.order-badge[data-value="Reassign"] { background: #fb923c; color: #fff; }
.order-badge[data-value="RequirementMiss"] { background: #ef4444; color: #fff; }
.order-badge[data-value="GoogleRemote"] { background: #4285f4; color: #fff; }
.order-badge[data-value="Remote PC"] { background: #1d4ed8; color: #fff; }
.order-badge[data-value="PC"] { background: #2563eb; color: #fff; }
.order-badge[data-value="Login Issue"] { background: #be123c; color: #fff; }

.order-badge[data-value="Grade A"] { background: #16a34a; color: #fff; }
.order-badge[data-value="Grade B"] { background: #65a30d; color: #fff; }
.order-badge[data-value="Grade C"] { background: #ca8a04; color: #fff; }
.order-badge[data-value="Grade D"] { background: #ea580c; color: #fff; }
.order-badge[data-value="Guaranteed A"] { background: #059669; color: #fff; }
.order-badge[data-value="Fail"] { background: #991b1b; color: #fff; }
.order-badge[data-value="Partial Credit"] { background: #d97706; color: #fff; }
.order-badge[data-value="Average"] { background: #78716c; color: #fff; }

.order-badge[data-value="Refund"] { background: #dc2626; color: #fff; }
.order-badge[data-value="Incentive"] { background: #0891b2; color: #fff; }
.order-badge[data-value="Duplicate"] { background: #9ca3af; color: #fff; }

.order-badge[data-value="Canvas"] { background: #e11d48; color: #fff; }
.order-badge[data-value="D2L"] { background: #7c3aed; color: #fff; }
.order-badge[data-value="BB"] { background: #1e40af; color: #fff; }
.order-badge[data-value="Self Paced"] { background: #0e7490; color: #fff; }
.order-badge[data-value="Course"] { background: #0369a1; color: #fff; }
.order-badge[data-value="Course Not Started"] { background: #475569; color: #fff; }
.order-badge[data-value="Course Over"] { background: #374151; color: #fff; }
.order-badge[data-value="Course Assignment"] { background: #0284c7; color: #fff; }
.order-badge[data-value="Replacement Class"] { background: #7c3aed; color: #fff; }
.order-badge[data-value="Dissertation"] { background: #9333ea; color: #fff; }
.order-badge[data-value="Time Exam"] { background: #b45309; color: #fff; }
.order-badge[data-value="Installent"] { background: #0f766e; color: #fff; }

.order-badge[data-value="Jan"],
.order-badge[data-value="Feb"],
.order-badge[data-value="March"],
.order-badge[data-value="April"],
.order-badge[data-value="May"],
.order-badge[data-value="June"],
.order-badge[data-value="July"],
.order-badge[data-value="August"],
.order-badge[data-value="September"],
.order-badge[data-value="October"],
.order-badge[data-value="November"],
.order-badge[data-value="December"] { background: #0891b2; color: #fff; }

.order-badge[data-value="March_End"],
.order-badge[data-value="April_End"] { background: #0e7490; color: #fff; }

.order-badge[data-value="Chicago"],
.order-badge[data-value="Florida"],
.order-badge[data-value="Colorado"],
.order-badge[data-value="Ohio"],
.order-badge[data-value="Texas"],
.order-badge[data-value="Maryland"],
.order-badge[data-value="Indiana"],
.order-badge[data-value="Pennsylvania"],
.order-badge[data-value="New Jersey"],
.order-badge[data-value="California"],
.order-badge[data-value="Arizona"],
.order-badge[data-value="Alaska"],
.order-badge[data-value="Alabama"],
.order-badge[data-value="New York"],
.order-badge[data-value="Georgia"],
.order-badge[data-value="Tennessee"],
.order-badge[data-value="Virginia"] { background: #1d4ed8; color: #fff; }

.order-badge[data-value="SNHU"] { background: #7e22ce; color: #fff; }

.order-badge[data-value="Yash"],
.order-badge[data-value="Dixon"],
.order-badge[data-value="Jenny"] { background: #0f766e; color: #fff; }

.order-badge[data-value="L3"] { background: #16a34a; color: #fff; }
.order-badge[data-value="L4"] { background: #b45309; color: #fff; }
.assigned-row {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  margin-bottom: 6px;
}
.assigned-row:hover {
  background-color: #f2c888;
  cursor: pointer;
}
/* ================= PERMISSION TOGGLE SLIDERS ================= */

.perm-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #1e2f4a;
  font-size: 14px;
  color: #c7d2e3;
}

.perm-row label:first-child {
  flex: 1;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #1c2f50;
  border-radius: 34px;
  transition: 0.3s;
  border: 1px solid #2f4c7a;
}

.toggle-slider:before {
  content: "";
  position: absolute;
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background: #4a5a7a;
  border-radius: 50%;
  transition: 0.3s;
}

.toggle-switch input:checked + .toggle-slider {
  background: linear-gradient(90deg, #4facfe, #00f2fe);
  border-color: #4facfe;
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(22px);
  background: #fff;
}

.rd-permission-group {
  margin-bottom: 20px;
}

.rd-permission-group h4 {
  color: #4facfe;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #2a3b5c;
}
/* ===== EXPERT ORDERS MODAL ===== */
.expert-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.expert-modal-box {
  background: #fff;
  border-radius: 12px;
  width: 90%;
  max-width: 1100px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  overflow: hidden;
}

.expert-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
}

.expert-modal-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 600;
}

.expert-modal-title i {
  font-size: 22px;
}

.expert-order-count {
  background: rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 3px 12px;
  font-size: 13px;
  font-weight: 500;
}

.expert-modal-close {
  font-size: 26px;
  cursor: pointer;
  opacity: 0.8;
  line-height: 1;
  transition: opacity 0.2s;
}

.expert-modal-close:hover {
  opacity: 1;
}

.expert-modal-filters {
  display: flex;
  gap: 12px;
  padding: 14px 24px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.expert-modal-filters input {
  flex: 1;
  padding: 8px 14px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 13px;
  outline: none;
}

.expert-modal-filters input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}

.expert-modal-filters select {
  padding: 8px 14px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 13px;
  outline: none;
  background: #fff;
  min-width: 150px;
}

.expert-modal-table-wrapper {
  overflow-y: auto;
  flex: 1;
  padding: 0 24px;
}

.expert-modal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 16px 0;
}

.expert-modal-table thead th {
  background: #f1f5f9;
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  color: #475569;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: sticky;
  top: 0;
  z-index: 1;
}

.expert-modal-table tbody tr {
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s;
  cursor: pointer;
}

.expert-modal-table tbody tr:hover {
  background: #f8fafc;
}

.expert-modal-table td {
  padding: 10px 12px;
  color: #374151;
  vertical-align: middle;
}

.expert-order-id {
  font-weight: 600;
  color: #4f46e5;
}

.expert-status-badge {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.expert-status-badge.assigned {
  background: #dbeafe;
  color: #1d4ed8;
}

.expert-status-badge.rework {
  background: #fef3c7;
  color: #d97706;
}

.expert-status-badge.completed {
  background: #dcfce7;
  color: #16a34a;
}

.expert-status-badge.default {
  background: #f1f5f9;
  color: #64748b;
}

.expert-label-chip {
  display: inline-block;
  background: #e0e7ff;
  color: #4338ca;
  border-radius: 4px;
  padding: 1px 7px;
  font-size: 11px;
  margin: 1px 2px;
}

.expert-view-btn {
  background: #4f46e5;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 5px 14px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.expert-view-btn:hover {
  background: #4338ca;
}

.expert-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}

.expert-modal-footer span {
  font-size: 13px;
  color: #64748b;
}

.expert-close-btn {
  background: #64748b;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 7px 20px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
}

.expert-close-btn:hover {
  background: #475569;
}