/* DSO Design System */
@import './styles.css';

:root {
  --dso-teal: #005D5E;
  --dso-gold: #CCA63B;
  --dso-text: #1a1a2e;
  --dso-bg: #f4f6f9;
}

hr {
  margin: 0.2rem 0 !important;
  border: solid 0.5px #fff !important;
  opacity: 0.8 !important;
}

main {
  height: calc(100vh - 85px);
  overflow-y: auto;
  background: #fff;
}

.p-10 {
  padding: 10px;
}

.m-10 {
  margin: 10px;
}

.ml-10 {
  margin-left: 10px;
}

.mr-10 {
  margin-right: 10px;
}

.mt-10 {
  margin-top: 10px;
}

.mb-10 {
  margin-bottom: 10px;
}

.pl-10 {
  padding-left: 10px;
}

.pr-10 {
  padding-right: 10px;
}

.pt-10 {
  padding-top: 10px;
}

.pb-10 {
  padding-bottom: 10px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;
  font-family: "Open Sans", sans-serif !important;
  font-size: 14px;
  background: var(--dso-bg);
  color: var(--dso-text);
  overflow: hidden;
}

/* Yew root — full width */
#app,
[data-trunk-id] {
  width: 100%;
  min-height: 100vh;
}

/* App shell */
.app-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  z-index: 1000;
  background: var(--dso-teal);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}

.app-topbar__brand {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-topbar__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-topbar__user {
  color: rgba(255, 255, 255, .9);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Layout — full width after topbar */
.app-layout {
  display: flex;
  width: 100%;
  min-height: calc(100vh - 56px);
  margin-top: 56px;
}

.app-main {
  flex: 1;
  min-width: 0;
  /* prevent flex overflow */
  width: 100%;
  transition: margin-left .2s;
}

.app-content {
  padding: 0px;
  width: 100%;
}

/* Web components fill their container */
dso-dashboard,
dso-taxpayer-search,
dso-taxpayer-profile,
dso-check-void,
dso-claim-history,
dso-check-inquiry,
dso-approval-inbox,
dso-rbac-users,
dso-rbac-roles {
  display: block;
  width: 100%;
}


/* Page fade-in */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

dso-dashboard,
dso-taxpayer-search,
dso-taxpayer-profile,
dso-check-void,
dso-claim-history,
dso-check-inquiry,
dso-approval-inbox,
dso-rbac-users,
dso-rbac-roles {
  animation: fadeIn .25s ease;
}

/* rust-css */

.search,
.date-input {
  padding: 7px 12px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  font-size: 13px;
  outline: none;
  width: 220px;
}

.search:focus {
  border-color: #005D5E;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

thead th {
  background: #57b6b21a !important;
  color: #000 !important;
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}

tbody tr {
  border-bottom: 1px solid #f0f2f5;
  transition: background .1s;
}

tbody tr:hover {
  background: #e6f4f4;
}

td {
  padding: 10px 14px;
  vertical-align: middle;
}

.act,
.act-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #005D5E;
  font-size: 15px;
  padding: 4px 8px;
  border-radius: 4px;
}

.act-btn.del {
  color: #dc2626;
}

.act:hover {
  background: #e6f4f4;
}

.ag-hdr {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px !important;
}

.ag-hdr .ag-hdr-actions {
  display: flex;
  gap: 8px;
}

.footer {
  padding: 10px 16px;
  font-size: 12px;
  color: #6c757d;
  background: #f9fafb;
  border-top: 1px solid #f0f2f5;
  display: flex;
  justify-content: space-between;
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}

.bg-open,
.bg-approved,
.bg-issued {
  background: #d1fae5;
  color: #065f46;
}


.bg-rejected {
  background: #fee2e2;
  color: #991b1b;
}

.bg-closed {
  color: #005d5e !important;
  font-weight: 400 !important;
  padding: 2px 10px !important;
  font-size: 14px !important;
  border-radius: 4px !important;
  background-color: #e8f1c7 !important;
  display: inline-block;
}

.bg-pending {
  background: #fef3c7;
  color: #92400e;
}

.bg-reissue {
  background: #e0e7ff;
  color: #3730a3;
}

.bg-void {
  background: #f3f4f6;
  color: #374151;
}

.action-approve {
  background: none;
  border: 1.5px solid #059669;
  color: #059669;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  margin-right: 4px;
}

.action-reject {
  background: none;
  border: 1.5px solid #dc2626;
  color: #dc2626;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.action-approve:hover {
  background: #d1fae5;
}

.action-reject:hover {
  background: #fee2e2;
}

.ssn-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ssn-wrap .eye-toggle {
  position: absolute;
  right: 0;
  font-size: 20px;
}

.eye-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #9ca3af;
  font-size: 13px;
  padding: 0;
}

.eye-btn:hover {
  color: #005D5E;
}


.tbl-card {
  background: transparent !important;
  border-radius: 10px;
  box-shadow: none !important;
  overflow: hidden;
  padding: 5px !important;
}

.tbl-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 12px 0px !important;
  border-bottom: 1px solid #fff !important;
  background: #fff !important;
  gap: 8px;
}

.kpi-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.kpi-card {
  flex: 1;
  min-width: 140px;
  background: #fff;
  border-radius: 10px;
  padding: 18px 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .07);
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
}

.kpi-card svg {
  width: 30px;
  position: absolute;
  right: 9px;
  transform: translateY(-50%);
  top: 50%;
}

.kpi-card i {
  font-size: 22px;
  position: absolute;
  right: 9px;
  transform: translateY(-50%);
  top: 50%;
  background: transparent;
  width: 40px;
  border-radius: 50%;
  line-height: 1.8;
  height: 40px;
  text-align: center;
}

.kpi__label {
  padding-top: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #005d5e;
}

.kpi-card.c1 .kpi__label {
  color: #005d5e;
}

.kpi-card.c2 .kpi__label {
  color: #005d5e;
}

.kpi-card.c3 .kpi__label {
  color: #005d5e;
}

.kpi-card.c4 .kpi__label {
  color: #005d5e;
}

.kpi-card.c5 .kpi__label {
  color: #005d5e;
}

.kpi-card.c1 i {
  color: #005d5e;
}

.kpi-card.c2 i {
  color: #a2ce5e;
}

.kpi-card.c3 i {
  color: #005f85;
}

.kpi-card.c4 i {
  color: #092340;
}

.kpi-card.c5 i {
  color: #61a744;
}

.kpi-card.c1 {
  border-top: solid 1px #005D5E;
}

.kpi-card.c2 {
  border-top: solid 1px #A2CE5E;
}

.kpi-card.c3 {
  border-top: solid 1px #005F85;
}

.kpi-card.c4 {
  border-top: solid 1px #092340;
}

.kpi-card.c5 {
  border-top: solid 1px #61A744;
}

.kpi__icon {
  font-size: 28px;
}

.kpi__value {
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
}


.charts-row {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.chart-card {
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .07);
  flex: 1;
  min-width: 180px;
}

.chart-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #374151;
}

.chart-container {
  display: flex;
  gap: 8px;
  align-items: stretch;
  justify-content: space-between;
  box-shadow: 0 2px 6px #0003;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 15px;
}

/* Individual widths */
.line-chart {
  width: 37%;
}

.bar-chart {
  width: 37%;
}

.doughnut-chart {
  width: 26%;
}

/* All charts same height */
.chart-container canvas {
  height: 320px !important;
  max-height: 320px !important;
  width: 100% !important;
  object-fit: contain;
}

/* Chart title styling */
.title {
  text-align: center;
  margin-bottom: 12px;
  font-weight: 600;
  font-size: 15px;
}

.profile-panel {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  padding: 16px 12px;
  background-color: #57b6b21a;
  vertical-align: middle;
  align-items: center;
  width: 100%;
  margin-bottom: 10px;
}

.profile-details {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: flex-start;
  width: 100%;
  align-items: center;
}

.profile-cont {
  display: flex;
  justify-content: space-around;
  gap: 35px;
  position: relative;
}

.profile-cont p {
  margin: 0;
  font-weight: 600;
  color: #005f85;
  position: relative;
  font-family: Open Sans, sans-serif;
  font-size: 16px;
  display: flex;
  align-items: center;
}

.profile-cont p span {
  display: block;
  font-weight: 700;
  color: #000;
  font-family: Open Sans, sans-serif;
  padding-left: 4px;
}

.profile-cont.bg-custom {
  margin-left: auto;
  padding: 5px;
  border-radius: 2px;
}

.profile-cont span.status-badge,
p.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #fff;
  padding: 2px 10px;
  font-size: 14px;
  font-family: Open Sans, sans-serif;
  border-radius: 4px;
}

.info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background-color: #005f85;
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  line-height: 1.5 !important;
  text-align: center;
}

.profile-cont span.label-bold,
p.label-bold {
  font-weight: 700;
  color: #005f85;
  font-family: Open Sans, sans-serif;
}

.profile-cont span.value-text,
p.value-text {
  font-weight: 400;
  color: #005f85;
  font-family: Open Sans, sans-serif;
}



.eye-icon {
  font-size: 21px !important;
}

.icon-white {
  color: #092340;
  position: relative;
  /* left: -24px; */
  top: 1px;
}

.profile-section {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 6px #0003;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border: solid 1px #E2E6EA;
}

.profile-section h3 {
  background-color: #f8f8f8;
  color: #005d5e;
  font-weight: 500;
  font-size: 16px;
  padding: 10px;
  border-radius: 10px 10px 0 0;
  font-family: Open Sans, sans-serif;
  letter-spacing: 0;
  margin-top: 0;
}

.fields-grid,
.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  padding: 10px;
}

.ssn-wrap {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
}

.ssn-wrap .fi {
  width: 100%;
  padding-right: 35px;
}

.fl,
.fg label,
.cm-label,
.form-label {
  display: block;
  font-size: 14px !important;
  margin-bottom: 4px !important;
  font-family: Open Sans, sans-serif !important;
  font-weight: 500 !important;
}

.input-group {
  display: flex;
  align-items: center;
  border: 1px solid #b4b4b4;
  border-radius: 6px;
  overflow: hidden;
}

.input-prefix {
  background: #f5f5f5;
  padding: 8px 10px;
  color: #555;
  font-weight: 500;
}

.input-group .cm-input {
  flex: 1;
  border: none !important;
}

.fi,
.fg input,
textarea,
select,
.cm-input,
.cm-textarea {
  width: 100% !important;
  padding: 9px 12px !important;
  border: 1px solid #b4b4b4 !important;
  border-radius: 5px !important;
  font-size: 13px !important;
  font-family: inherit !important;
  outline: none !important;
}

.eye-toggle {
  color: #092340 !important;
  background: none;
  border: none;
  cursor: pointer;
}

.tabs-bar {
  overflow: hidden !important;
}

.tabs-bar {
  display: flex;
  list-style: none;
  margin: 0 0 16px;
  border-bottom: 1px solid #e5e7eb !important;
  overflow-x: auto;
}

.tabs-bar li {
  margin-bottom: 15px;
}

.tabs-bar li .tab-btn {
  position: relative;
  padding: 8px 0 !important;
  color: #000;
  font-weight: 500 !important;
  border-radius: 4px 4px 0 0;
  font-family: Open Sans, sans-serif;
  font-size: 14px;
  margin-right: 20px;
  background-color: transparent;
  border: none;
}

.tabs-bar li .tab-btn.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background-color: #005d5e;
  transform: scaleX(1);
  /* ✅ show line */
  transform-origin: left;
}

.tabs-bar li .tab-btn:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background-color: #005d5e;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}

.tabs-bar li .tab-btn:hover:after {
  transform: scaleX(1);
}

.tabs-bar li .tab-btn:hover {
  color: #005d5e !important;
}

.mb-10 {
  margin-bottom: 10px;
}

.mt-10 {
  margin-top: 10px;
}

.collapse-section {
  margin-bottom: 15px;
  box-shadow: 0 2px 6px #0003;
  border-radius: 10px;
}

.collapse-section .section-hdr {
  padding: 10px 35px;
  background: #f8f8f8 !important;
  color: #005d5e;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  border-radius: 10px;
  border-bottom: 1px solid #ddd;
  position: relative;
}

.acc-icon {
  position: absolute;
  left: 10px;
  top: 14px;
}

.collapse-section .collapse {
  padding: 10px;
}

.collapseBtn {
  background: transparent !important;
  outline: none !important;
  color: #005d5e;
  box-shadow: none !important;
  border: none !important;
  text-decoration: underline;
}

.collapse-section .section-body {
  padding: 10px;
}

.accordion-controls {
  float: right;
  display: flex;
  gap: 8px;
  align-items: center;
}

.pos-relative {
  position: relative;
}

.pos-relative .tableBtn .tableHeading {
  left: 0;
  font-size: 18px;
  color: #005d5e;
  font-family: Open Sans, sans-serif;
  margin-bottom: 0;
  top: 0;
  font-weight: 700;
  letter-spacing: 0;
}

.tableHeading,
.tbl-title {
  font-size: 20px;
  color: #005d5e;
  font-family: Open Sans, sans-serif;
  font-weight: 700;
  letter-spacing: 0;
}

.tableAction {
  display: flex;
  flex-direction: row;
  gap: 5px;
}

.tableAction .actionIcon i {
  font-size: 18px;
  color: #005d5e;
}

.table-container {
  box-shadow: 0 2px 6px #0003;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 15px;
  display: block;
}

.table-container .tbl-card {
  padding: 0 !important;
}

.table-container .tbl-card .tbl-hdr {
  padding-top: 0 !important;
}

.status-closed {
  color: #005d5e !important;
  font-weight: 400 !important;
  padding: 2px 10px !important;
  font-size: 14px !important;
  border-radius: 4px !important;
  background-color: #e8f1c7 !important;
  display: inline-block;
}

.addBtn {
  padding: 5px;
  height: 36px;
  width: 35px;
  color: #fff;
  font-size: 20px;
  border-radius: 4px;
  line-height: 1.5;
  background: #005d5e;
  z-index: 9;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  border: none;
}

/* top-header-css */

.top-header .body-header {
  width: 100%;
  height: 70px;
  padding: 7px 10px;
  overflow-y: unset;
  position: sticky;
  top: 0;
  background: #005d5e;
  overflow: unset;
  z-index: 99;
}

.pull-left,
.f-left {
  float: left;
}

.top-header .body-header .logo-group img {
  height: 50px;
  object-fit: cover;
}

.top-header .body-header .headerTxt {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  line-height: 1.8;
  font-family: Open Sans, sans-serif;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.top-header .body-header .profileSection {
  float: right;
  gap: 25px;
  align-items: center;
  position: relative;
  /* top: 7px; */
}

.top-header .body-header .profileSection .icon {
  color: #fff;
  position: relative;
  background: transparent;
  border: none;
}

.top-header .body-header .profileSection .icon .count {
  background-color: #fff;
  color: #000;
  height: 17px;
  width: 17px;
  border-radius: 999px;
  position: absolute;
  top: -4px;
  right: -2px;
  font-size: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 600;
}

.dropdown,
.dropdown-center,
.dropend,
.dropstart,
.dropup,
.dropup-center {
  position: relative;
}

.top-header .dropdown.hover {
  position: relative;
}

.top-header .body-header .profileSection .profile {
  display: flex;
  align-items: center;
  flex-direction: column;
}

.profile-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #fff;
  color: #005d5e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
}

.top-header .dropdown.hover:hover .dropdown-menu {
  display: block;
  right: 0;
  position: absolute;
  width: 220px;
  top: 40px;
  padding: 10px;
  background-color: #005d5e;
}

.top-header .dropdown.hover .dropdown-menu .userProfile p {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 5px;
}

.top-header .dropdown.hover .dropdown-menu .userProfile .roleName {
  position: relative;
  font-size: 14px;
  color: #fff;
  font-weight: 400;
  text-transform: capitalize;
  font-family: Open Sans, sans-serif;
  padding-top: 2px;
}

.top-header .dropdown-divider {
  height: 0;
  overflow: hidden;
  border-top: 1px solid #fff;
  opacity: 1;
}

.top-header .dropdown.hover .dropdown-menu ul li a {
  color: #fff;
  font-size: 14px;
  width: 100%;
}

.top-header .dropdown.hover .dropdown-menu ul li a i {
  font-size: 15px;
}

.top-header .body-header .profileSection .icon i {
  font-size: 20px;
}

.top-header .body-header .profileSection .icon {
  color: #fff;
  position: relative;
  background: transparent;
  border: none;
}

/* top-header-css */
/* filter-table-css */

/* ===== GRID CONTAINER ===== */
.ag-theme-alpine.dso-cv-grid {
  font-size: 14px;

  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}

/* ===== HEADER (TOP ONLY GREY) ===== */
.ag-theme-alpine.dso-cv-grid .ag-header {
  border-bottom: 0px solid transparent;
  height: 82px !important;
  min-height: 82px !important;
}

.ag-theme-alpine.dso-cv-grid .ag-header-cell {
  background-color: #57b6b21a !important;
  font-weight: 600;
  color: #000;
  font-size: 14px !important;
  padding: 8px 10px;
  border-right: 1px solid #ddd;
}

.ag-theme-alpine.dso-cv-grid .ag-header-cell:last-child {
  border-right: none;
}

/* ===== FILTER ROW (WHITE) ===== */
.ag-theme-alpine.dso-cv-grid .ag-floating-filter {
  background-color: #ffffff !important;
  border-bottom: 1px solid #ddd;
  padding: 0 !important;
  height: 33px;
}

.ag-input-field-input {
  border: none !important;
  width: 100% !important;
}

.ag-theme-alpine.dso-cv-grid .ag-floating-filter-body {
  padding: 6px;
  position: relative;
}

.ag-theme-alpine.dso-cv-grid .ag-icon-filter::before {
  font-family: "bootstrap-icons" !important;
  content: "\f52a" !important;
  /* bi-search */
}

.ag-floating-filter-button {
  position: absolute;
  left: 5px;
  margin-left: 0 !important;
}

.ag-icon {
  font-size: 14px !important;
}

/* Filter inputs */
.ag-theme-alpine.dso-cv-grid .ag-floating-filter input {
  width: 100%;
  height: 28px;
  border: 1px solid #c5ccd3;
  border-radius: 3px;
  padding: 2px 6px 2px 20px !important;
  font-size: 13px;
}

/* ===== ROWS ===== */
.ag-theme-alpine.dso-cv-grid .ag-row {
  border-bottom: 1px solid #d3d9df;
}

/* Zebra rows */
.ag-theme-alpine.dso-cv-grid .ag-row:nth-child(even) {
  background-color: #fff;
}

/* Hover */
.ag-theme-alpine.dso-cv-grid .ag-row:hover {
  background-color: #57b6b21a;
}

/* Selected row (blue highlight) */
.ag-theme-alpine.dso-cv-grid .ag-row.ag-row-selected {
  background-color: #dff1f0 !important;
}

.ag-row-selected::before {
  background-color: #dff1f0 !important;

}

/* ===== CELLS ===== */
.ag-theme-alpine.dso-cv-grid .ag-cell {
  padding: 8px 10px;
  border-right: 1px solid #d3d9df;
  display: flex;
  align-items: center;
}

.ag-theme-alpine.dso-cv-grid .ag-cell:last-child {
  border-right: none;
}

/* ===== RIGHT ALIGN (AMOUNT) ===== */
.ag-theme-alpine.dso-cv-grid .ag-right-aligned-header .ag-header-cell-label {
  justify-content: flex-end;
}

.ag-theme-alpine.dso-cv-grid .ag-cell[col-id="check_amt"] {
  justify-content: flex-end;
}

/* ===== PAGINATION ===== */
.ag-theme-alpine.dso-cv-grid .ag-paging-panel {
  border-top: 1px solid #ddd;
  padding: 8px 12px;
  font-size: 13px;
  background: #fff;
}

/* ===== SSN + EYE ICON ===== */
.dso-cv-grid .ssn-text {
  letter-spacing: 1px;
  margin-right: 6px;
}

.dso-cv-grid .ssn-toggle {
  cursor: pointer;
  font-size: 14px;
  color: #1f2937;
  padding-left: 8px;
  background: transparent;
  border: none;
}

/* ===== ACTION ICONS (EYE + EDIT) ===== */
.dso-cv-grid .action-icon {
  cursor: pointer;
  margin-right: 12px;
  color: #0f766e;
  font-size: 15px;
}

.dso-cv-grid .action-icon:hover {
  color: #0d9488;
}

/* ===== SCROLLBAR ===== */
.ag-theme-alpine.dso-cv-grid ::-webkit-scrollbar {
  width: 8px;
}

.ag-theme-alpine.dso-cv-grid ::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.ag-root-wrapper {
  border: none !important;
}

.ag-ltr .ag-header-cell-resize {
  right: -6px !important;
}

[class*=ag-theme-] {
  -webkit-font-smoothing: antialiased;
  font-family: "Open Sans", sans-serif !important;
  font-size: var(--ag-font-size);
  line-height: normal;
  color: var(--ag-foreground-color);
}

/* Fix cell overflow */
.ag-theme-alpine .ag-cell {
  white-space: normal !important;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.4;
}

/* 
.ag-theme-alpine.dso-cv-grid {
  height: 75vh !important;
} */

.ag-theme-alpine .ag-cell-value {
  display: block;
}

/* filter-table-css */
/* popup-css-1 */
/* popup-2 */
.cm-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.cm-dialog {
  background: #fff;
  border-radius: 10px;
  width: 580px;
  max-width: 95vw;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .18);
  overflow: hidden;
}

.cm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
}

.cm-title {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}

.cm-close {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: #6b7280;
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1;
}

.cm-close:hover {
  background: #f3f4f6;
  color: #111;
}

.cm-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px 16px;
}

/* popup-2 */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-box {
  background: #fff;
  border-radius: 12px;
  padding: 0;
  width: 100%;
  max-height: 90vh;
  box-shadow: 0 8px 40px rgba(0, 0, 0, .2);
}

.modal-md {
  max-width: 60% !important;
}

.modal-sm {
  max-width: 40% !important;
}

.modal-lg {
  max-width: 75% !important;
}

.modal-xl {
  max-width: 90% !important;
}

.modal-hdr,
.cm-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #005D5E;
  border-radius: 10px 10px 0 0;
  padding: 10px;
}

.modal-hdr h3,
.modal-title,
.cm-title {
  margin: 0;
  color: #fff;
  font-weight: 700;
  font-family: Open Sans, sans-serif;
  font-size: 20px;
  text-transform: uppercase;
}

.close-btn,
.cm-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  color: #fff;
}

.modal-body {
  padding: 15px !important;
  overflow-y: auto;
  max-height: 75vh;
}

.modal-footer {
  gap: 6px;
  padding: 10px !important;
}

.fg {
  flex: 0 0 calc(50% - 7px);
  min-width: 160px;
}

.fg label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
  color: #374151;
}

.fg input,
.fg select,
.fg textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  font-size: 13px;
  outline: none;
}

.fg input:focus,
.fg select:focus,
.fg textarea:focus {
  border-color: #005D5E;
}

.fg textarea {
  resize: vertical;
}

.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
}

.perm-card {
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 4px;
}

.perm-card-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.perm-card-hdr h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #1a1a2e;
}

.perm-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid #f0f2f5;
  flex-wrap: wrap;
}

.perm-row:last-child {
  border-bottom: none;
}

.perm-row select {
  flex: 1;
  min-width: 140px;
  padding: 8px 10px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  font-size: 13px;
  outline: none;
}

.perm-row select:focus {
  border-color: #005D5E;
}

.perm-row .grant-grp {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.perm-row .grant-grp label {
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  margin: 0;
}

.perm-row .radio-wrap {
  display: flex;
  gap: 10px;
}

.perm-row .radio-wrap label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
}

.perm-row .row-actions {
  display: flex;
  gap: 4px;
}

/* popup-css */
.radio-wrap {
  display: flex;
  flex-direction: row;
  gap: 6px;
}

.radio-wrap label {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* comming-soon-css */
.coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 300px;
  color: #9ca3af;
}

.coming-soon i {
  font-size: 52px;
  color: #005D5E;
  opacity: .35;
}

.coming-soon p {
  margin: 12px 0 0;
  font-size: 15px;
}

/* comming-soon-css */
dso-agency-files .ag-theme-alpine.dso-cv-grid {
  height: 62vh !important;
}

#_tc {
  position: fixed;
  top: 1rem;
  bottom: inherit !important;
  right: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* rust-css */
/* ══════════════════════════════════════════
   My Profile Modal
══════════════════════════════════════════ */
.mp-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.mp-dialog {
  background: #fff;
  border-radius: 12px;
  width: 55vw;
  max-width: 700px;
  min-width: 340px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .2);
  overflow: hidden;
}

.mp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: #005D5E;
  color: #fff;
}

.mp-title {
  font-size: 16px;
  font-weight: 700;
}

.mp-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1;
}

.mp-close:hover {
  background: rgba(255, 255, 255, .15);
}

.mp-body {
  display: flex;
  gap: 0;
  min-height: 260px;
}

/* Left panel */
.mp-left {
  width: 180px;
  flex-shrink: 0;
  background: #EEF7F7;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px 16px;
  border-right: 1px solid #d1eaea;
}

.mp-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #005D5E;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  text-transform: uppercase;
}

.mp-id {
  text-align: center;
  font-size: 13px;
  color: #374151;
  line-height: 1.6;
}

.mp-status {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 10px;
  background: #005D5E;
  color: #fff;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

/* Right panel */
.mp-right {
  flex: 1;
  padding: 24px;
}

.mp-role {
  font-size: 16px;
  font-weight: 700;
  color: #005D5E;
  margin: 0 0 2px;
}

.mp-office {
  font-size: 13px;
  color: #6b7280;
  margin: 0 0 16px;
}

.mp-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
}

.mp-per-heading {
  font-size: 13px;
  font-weight: 700;
  color: #374151;
  margin: 0 0 12px;
}

.mp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 20px;
}

@media (max-width: 500px) {
  .mp-grid {
    grid-template-columns: 1fr;
  }
}

.mp-grid label {
  font-size: 11px;
  color: #9ca3af;
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
}

.mp-icon {
  color: #005D5E;
  margin-right: 3px;
  font-size: 12px;
}

.mp-val {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}