@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap'); 

/* Prevent horizontal scroll globally */
* {
    box-sizing: border-box;
    max-width: 100%;
}

:root {
    --brand-grad: linear-gradient(135deg, #f9a825, #e65c00);
    /* Wallet card: warm orange-to-coral "sunset" gradient (per updated design), white text. */
    --card-my: linear-gradient(135deg, #ff9a56 0%, #f26f28 100%);
    --card-ft: linear-gradient(135deg, #c7541a, #e64a19);
    --card-pued: linear-gradient(135deg, #fff9c4, #ff8f00);
    --card-ec: linear-gradient(135deg, #f9a825, #e65c00);
    --bg-main: #f97316;
    --bg-light: #fef3c7;
    --bg-card: rgba(255,255,255,0.25);
    --text-primary: #4a1a00;
    --text-secondary: rgba(74,26,0,0.7);
    --border-subtle: rgba(255,255,255,0.4);
    --accent: #e65c00;
    --accent-hover: #f97316;
}

:focus-visible {
    outline: none;
    box-shadow: none;
}

*:focus-visible {
    outline: none;
}

html {
    scroll-behavior: smooth;
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #fff8e1 0%, #ffd54f 30%, #ff9800 70%, #e65c00 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--text-primary);
    overflow-x: hidden;
}

header {
    background-color: transparent;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
div,
span,
b {
    font-family: 'Poppins', sans-serif;
}

ul {
    margin: 0px;
    padding: 0px;
    list-style: none;
}

/* .container {
    max-width: 1720px;
    margin: 0px auto;
} */

img {
    width: 100%;
    max-width: 100%;
}

a {
    color: #7c2d00;
    text-decoration: none;
    cursor: pointer !important;
}

.login-headding {
    font-size: 30px;
    line-height: 36px;
    color: #4a1a00;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 25px;
}

.login {
    height: 100vh;
    padding-top: 56px;
    background-image: url('../img/c2c-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    position: relative;
}

@media (max-width: 767px) {
    .login {
        background-image: url('../img/c2c-mob-bg.png');
        background-position: center top;
    }
}

.login .login-section {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 460px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: 24px;
    box-shadow: 0 8px 40px rgba(230, 92, 0, 0.12);
}

/* .content {
    position: inherit !important;
} */

.text-right.forget-pass a {
    font-size: 13px;
    line-height: 20px;
    text-decoration: none;
}

.sign-up {
    color: #fff;
}

.sign-up a {
    color: #7c2d00;
    font-weight: 600;
    text-decoration: none;
}

.login-section .login-section-inner {
    position: relative;
}

img.user-image {
    width: 100px;
    position: absolute;
    left: 50%;
    top: -50px;
    transform: translate(-50%, -50%);
}

#loginTabsContent form .form-group {
    margin-bottom: 25px;
}

#loginTabsContent form input.form-control {
    height: 40px;
    padding: 8px;
    font-size: 16px;
    line-height: 40px;
}

#loginTabsContent form .form-group label {
    font-size: 14px;
    margin-bottom: 5px;
}

.login_btn_section .login_btn,
.btn.login_btn:active {
    border: none;
    color: #fff;
    width: 100%;
    height: 52px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(135deg, #e65c00, #f9a825);
    transition: opacity 0.2s ease;
}

.login_btn_section .login_btn:hover {
    opacity: 0.9;
    background: linear-gradient(135deg, #e65c00, #f9a825);
}

.eye_sec {
    position: absolute;
    right: 0px;
    height: 40px;
    vertical-align: middle;
    line-height: 40px;
    width: 40px;
    text-align: center;
    cursor: pointer;
}

.container_section {
    width: 100%;
    padding: 0px 20px;
    margin: 0px auto;
    overflow-x: hidden;
}

.content .container_section {
    padding: 30px;
}

.header {
    background: rgba(255, 200, 80, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,0.35);
    padding: 0 0;
    /* Was static (just top/z-index with no position), so it scrolled away with
       .menu-body's content like any other block. Fixed + left/right (no explicit
       width — that's what left/right resolve to for a fixed element) pins it to the
       viewport; .app-header below reserves the flow space it vacates so content
       doesn't jump up underneath it. */
    position: fixed;
    top: 0px;
    left: 0;
    right: 0;
    z-index: 100;
}

@media (min-width: 768px) {
    /* .menu-body is offset by .sidebar_nav's 240px width on desktop (float:right);
       the fixed header must match that offset or it'll span under the sidebar. */
    .header {
        left: 240px;
    }
}

.app-header {
    /* Reserves the header's rendered height (56px .header_inner + 1px border-bottom)
       in the normal flow now that .header itself is taken out of flow via position:fixed.
       height:57px alone reserves exactly the header's own footprint with zero slack, so
       whatever comes right after it (e.g. dashboard's "Welcome, ..." heading) sits flush
       against the fixed header's bottom edge — reads as cropped/cramped. margin-bottom
       adds breathing room between the fixed header and the start of page content,
       shared by every screen since .app-header is part of the common shell markup. */
    height: 57px;
    margin-bottom: 16px;
}

.header .logo .logo-img {
    width: 50px;
}

.header .logo span {
    color: #4a1a00;
    font-size: 20px;
    line-height: 26px;
    font-weight: 600;
}

/* Remove old navbar collapse styles on mobile */
.header-right-section ul li span .fa-wallet,
.header-right-section ul li span .fa-circle-user,
.header-right-section ul li span .fa-power-off {
    color: #4a1a00;
    font-size: 20px;
    line-height: 26px;
}

.header-right-section ul li span {
    color: #4a1a00;
    font-size: 14px;
    line-height: 20px;
}

.sidebar_nav {
    width: 240px !important;
    padding: 20px 0px;
    height: 100%;
    position: fixed;
    top: 0px;
    left: 0px;
    bottom: 0px;
    z-index: 999;
    transition: 0.3s;
    background: rgba(230, 92, 0, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-right: 1px solid rgba(255,255,255,0.25);
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    overflow-y: auto;
    overflow-x: hidden;
            height: calc(100% - 272px);
}

.sidebar li {
    margin-bottom: 20px;
}

/* .sidebar li a.active {
    color: #000000;
    background-color: rgb(241, 241, 241);
} */

.sidebar li a.active {
    color: #fff;
    background-color: rgba(255,255,255,0.25);
    font-weight: bold;
    border-radius: 6px;
}

.sub-menu {
    padding-left: 20px;
}

.menu-item {
    color: #d4d4d4;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 10px;
    transition: all 0.3s;
}

.menu-item .menu-icon {
    font-size: 24px;
    margin-right: 10px;
}

.sidebar ul li a {
    font-size: 14px;
    line-height: 25px;
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 400;
    display: flex;
    background-color: transparent;
    width: 100%;
    letter-spacing: 0.3px;
    justify-content: flex-start;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar ul li a .menu-text {
    margin-left: 12px;
}

.sidebar ul li a {
    white-space: nowrap;
    overflow: hidden;
}



.app-sidenav {
    flex: 0 0 250px;
    background-color: #333;
    color: white;
    padding: 20px;
}

.menu-body {
    width: calc(100% - 240px);
    float: right;
    display: table;
    transition: none;
    position: relative;
}

.content {
    padding: 20px;
}
.content.content-with-sidebar {
    margin-left: 0;
}

.login_user .greetings-sec {
    color: #fff;
    display: table !important;
    width: 100%;
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 22px;
}

.login_user .login-img{
    width: 100%;
    margin-bottom: 20px;
}

.login_user .login-img img {
    max-width: 40px;
    margin: 0px auto;
    display: inline-block;
    text-align: center;
    width: 100%;
}

.login_user .login-user-name {
    color: #fff;
    width: 100%;
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 22px;
    display: block;
    text-align: center;
    padding: 0 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.toggle-sidebar .login-user-name {
    display: block !important;
}

table tr th {
    min-width: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-shrink: 1;
    overflow: hidden;
    font-size: 13px;
    line-height: 1;
    color: rgba(74,26,0,0.6);
    margin-bottom: 0px !important;
    white-space: nowrap;
    font-weight: 400;
}

table tr td {
    font-size: 12px;
    font-weight: 500;
    padding: 12px 10px;
    line-height: 1.5;
    color: #4a1a00;
    border: 0px !important;
    vertical-align: middle;
}

table tbody tr:nth-child(even) {
    background-color: rgba(255,200,80,0.15);
}

.add__btn,
a.add__btn,
a.btn.add__btn,
button.add__btn,
button.btn.add__btn {
    background-color: rgba(230, 92, 0, 0.85);
    border: 1px solid rgba(255,255,255,0.4);
    font-size: 22px;
    font-weight: 700;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    max-width: 50px;
    min-width: 50px;
    color: #fff;
    flex-shrink: 0;
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
}

a.add__btn:hover,
button.add__btn:hover {
    background-color: rgba(230, 92, 0, 1);
    color: #fff;
    border-color: rgba(255,255,255,0.6);
}

.add__btn i,
.add__btn span {
    display: flex;
    align-self: center;
    line-height: 1;
}

.grid_header {
    padding: 10px 0px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.grid_header h6 {
    color: #4a1a00;
    font-size: 18px;
    line-height: 28px;
    font-weight: 500;
    margin-bottom: 0px;
}

.no_admins_found {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgba(74,26,0,0.45);
    font-size: 16px;
}

.grid_main {
    box-shadow: 0 4px 24px rgba(230, 92, 0, 0.1);
    padding: 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(255,255,255,0.7);
    backdrop-filter: blur(12px);
    /* Bootstrap's .row/.col flex children default to align-items:stretch, so each
       .col-* already stretches to the tallest sibling in its row/line — but .grid_main
       itself (block, height:auto) doesn't fill that stretched column height on its
       own, which is what made cards of differing content (e.g. dashboard's wallet
       card vs. the MD/Distributor card with an extra commission row) look
       inconsistent in height side by side. height:100% here fills the stretched
       column. No effect when .grid_main isn't a flex child (its normal single-block
       usage on every other page) since a percentage height against an auto-height
       parent resolves to auto. */
    height: 100%;
    box-sizing: border-box;
}

td.not_found {
    color: #939393;
}

.btn-danger,.btn-success,.btn-primary{
    margin: 0px 6px;
}

.loading_icon{
  width: 40px;
}



.loading_icon_main {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.spinner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;}
  
label {
    display: inline-block;
    font-size: 13px !important;
    line-height: 26px;
    color: rgba(74,26,0,0.65);
    margin-bottom: 0px !important;
    white-space: nowrap;
}

.ng-select .ng-select-container .ng-value-container .ng-placeholder {
    color: rgba(100,70,30,0.4);
    font-size: 14px;
}

.ng-select .ng-select-container {
    min-height: 52px;
    border-radius: 14px;
    border: 1.5px solid rgba(200,150,80,0.25);
    background-color: rgba(255,255,255,0.85);
    align-items: center;
    padding: 0 12px;
}

.ng-select.ng-select-single .ng-select-container {
    height: 52px;
}

.ng-select.ng-select-focused .ng-select-container {
    border-color: rgba(230, 92, 0, 0.5);
    box-shadow: 0 0 0 3px rgba(230, 92, 0, 0.12);
}

.ng-dropdown-panel {
    border-radius: 14px;
    border: 1.5px solid rgba(200,150,80,0.25);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    overflow: hidden;
    background: #fff;
}

.ng-dropdown-panel .ng-dropdown-panel-items .ng-option {
    padding: 10px 16px;
    font-size: 14px;
    color: #2d1a00;
}

.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-marked {
    background-color: rgba(230, 92, 0, 0.08);
}

.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected {
    background-color: rgba(230, 92, 0, 0.15);
    font-weight: 600;
}
.button-wrapper {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 20px;
  flex-wrap: wrap;
  width: 100%;
}

/* Ensure col-auto doesn't shrink the button row */
.col-auto.button-wrapper,
[class*="col"].button-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
}

.button-wrapper .btn {
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Cancel Button */
.button-wrapper .btn-cancel {
  background: rgba(255,255,255,0.6);
  border: 1.5px solid rgba(200,150,80,0.3);
  color: #4a1a00;
}

.button-wrapper .btn-cancel:hover {
  background: rgba(255,255,255,0.85);
}

/* Create Button */
.button-wrapper .btn-create {
  background: linear-gradient(135deg, #e65c00, #f9a825);
  border: none;
  color: #fff;
}

.button-wrapper .btn-create:hover {
  opacity: 0.9;
}

/* Update Button */
.button-wrapper .btn-update {
  background: linear-gradient(135deg, #f9a825, #e65c00);
  border: none;
  color: #fff;
}

.button-wrapper .btn-update:hover {
  opacity: 0.9;
}


.form-control,
input.form-control,
select.form-control,
textarea.form-control {
    font-size: 15px;
    height: 52px;
    background-color: rgba(255,255,255,0.85);
    border: 1.5px solid rgba(200,150,80,0.25);
    color: #0a0801;
    border-radius: 14px;
    padding: 10px 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

textarea.form-control {
    height: auto;
    min-height: 100px;
}

.form-control:focus,
input.form-control:focus,
select.form-control:focus {
    background-color: #fff;
    border-color: rgba(230, 92, 0, 0.5);
    color: #2d1a00;
    box-shadow: 0 0 0 3px rgba(230, 92, 0, 0.12);
}

.form-control::placeholder {
    color: rgba(100,70,30,0.4);
    font-size: 14px;
}

.neumorphic-button[_ngcontent-hnd-c45] {
    color: #FFD700 !important;
}

.forgot_password_section{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.upload_picture small {
    font-size: 11px;
    display: inline-block;
    line-height: 1;
    color: #ff0000;
}

.content .col-5 {
    width: 25%;
}

/* Ensure responsive behavior for col-5 */
@media (max-width: 991px) {
    .content .col-5 {
        width: 48%;
    }
}

@media (max-width: 767px) {
    .content .col-5 {
        width: 100%;
    }
}

.login-section .col-5 {
    width: 100%;
    margin-bottom: 25px;
}

.profile_name span {
    color: #fff;
    font-size: 16px;
    line-height: 22px;
    font-weight: 400;
}

.profile_name ul.dropdown-menu {
    border: 0px;
}

.user-avatar {
    /* width: 40px;
    height: 40px; */
}

.menu-icon {
    margin-right: 8px;
    font-size: 20px;
    line-height: 26px;
    color: #fff;
    width: 25px;
    text-align: center;
}

.sidebar li a.active .menu-icon{
    color: #ffffff !important;
}

.sidebar li a:hover{
    color: #fff !important;
    background-color: rgba(255,255,255,0.2);
    border-radius: 6px;
}
.sidebar li a:hover .menu-icon{
    color: #fff !important;
}

.toggle-sidebar .sidebar_nav {
    width: 240px !important;
}



.dashboard-component.chart .grid_body {
    min-height: 200px;
    position: relative;
}

.dashboard-component.chart .grid_body .date-picker-section {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.date-picker-section .no-data-available {
    margin-bottom: 0px;
    color: #a9a4a4;
    font-size: 20px;
}

span.edit_icon {
    font-size: 18px;
    line-height: 24px;
    text-align: center;
    display: table;
    width: 100%;
}

.kyc_aadhaar_Card input {
    width: 96px;
    border: 0px;
    /* height: 60px; */
}

.sign-up-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.sign-up-head h1{
    text-decoration: underline;
    color: #000;
    font-size: 24px;
    line-height: 30px;
}

.signup_btn,.signup_btn:active{
    border: 1px solid rgba(255,255,255,0.6) !important;
    color: #4a1a00 !important;
    width: 200px;
    height: 50px;
    border-radius: 35px;
    font-size: 20px;
    font-weight: 600;
    background-color: rgba(255,255,255,0.45);
    backdrop-filter: blur(8px);
}

.ac_text {
    color: rgba(74,26,0,0.5) !important;
}

.user-avatar .fa-user{
font-size: 44px;
}

.header-right-section ul li span .fa-wallet,
.header-right-section ul li span .fa-circle-user,
.header-right-section ul li span .fa-power-off {
    color: #4a1a00;
    font-size: 20px;
    line-height: 26px;
}

.header-right-section ul li span {
    color: #4a1a00;
    font-size: 14px;
    line-height: 20px;
}

.pg-sections .card-title {
    /* Reduced from 700 — title only needs to read as a label, not compete with the
       amount below it for visual weight. */
    font-weight: 500;
    color: #fff;
}

.pg-sections  .card-balance {
    font-size: 1.25rem;
    /* Amounts in cards are no longer bold — size alone (1.25rem) is enough to make
       the figure stand out without heavy weight. */
    font-weight: 400;
    margin-top: 10px;
    color: #fff;
}

.page-headding h1 {
    font-size: 24px;
    line-height: 30px;
    margin-bottom: 0px;
    color: #4a1a00;
    font-weight: 500;
}

/* ── Responsive table improvements ── */
.table-responsive {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-responsive > .table {
  margin-bottom: 0;
}

/* Ensure tables don't break layout on mobile */
@media (max-width: 767px) {
  .table-responsive {
    border: 0;
  }
  
  .table-responsive table {
    min-width: 600px;
  }
}

/* Touch-friendly action buttons */
.d-flex.justify-content-left.align-items-center {
  gap: 8px;
}

.d-flex.justify-content-left.align-items-center a,
.d-flex.justify-content-left.align-items-center span {
  cursor: pointer;
  padding: 4px;
  min-width: 32px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ── Data Cards (responsive grid list view) ── */
.data-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
    padding: 12px 0;
}

.data-card {
    background: rgba(255,255,255,0.3);
    border: 1px solid rgba(255,255,255,0.45);
    border-radius: 10px;
    overflow: hidden;
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
}

.data-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(230, 92, 0, 0.12);
    border-bottom: 1px solid rgba(255,255,255,0.3);
    gap: 8px;
}

.data-card-title {
    font-size: 14px;
    /* Reduced from 600 to match the lighter title weight used across other cards. */
    font-weight: 500;
    color: #4a1a00;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.data-card-body {
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.data-card-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-size: 13px;
    gap: 8px;
}

.dc-label {
    color: rgba(74,26,0,0.55);
    /* Reduced from 500 to match the lighter title/label weight used across other cards. */
    font-weight: 400;
    white-space: nowrap;
    min-width: 90px;
    flex-shrink: 0;
}

.dc-value {
    color: #4a1a00;
    font-weight: 500;
    text-align: right;
    word-break: break-all;
}

.data-card-actions {
    display: flex;
    gap: 8px;
    padding: 10px 14px;
    border-top: 1px solid rgba(255,255,255,0.3);
    flex-wrap: wrap;
}

.dc-action-btn,
a.dc-action-btn,
button.dc-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 20px;
    border: 1px solid rgba(74,26,0,0.2);
    background: rgba(255,255,255,0.35);
    color: #4a1a00;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease;
    line-height: 1;
}

.dc-action-btn i,
a.dc-action-btn i,
button.dc-action-btn i {
    font-size: 13px;
    line-height: 1;
    flex-shrink: 0;
    align-self: center;
    display: flex;
}

.dc-action-btn:hover,
a.dc-action-btn:hover,
button.dc-action-btn:hover {
    background: rgba(255,255,255,0.55);
    color: #4a1a00;
    text-decoration: none;
}

.dc-action-btn.success, a.dc-action-btn.success { color: #166534; border-color: rgba(34,197,94,0.4); }
.dc-action-btn.danger,  a.dc-action-btn.danger  { color: #991b1b; border-color: rgba(239,68,68,0.4); }
.dc-action-btn.warning, a.dc-action-btn.warning { color: #92400e; border-color: rgba(245,158,11,0.4); }

/* Default gateway card highlight */
.data-card.is-default {
    border: 2px solid #f59e0b !important;
    background: rgba(251,191,36,0.12) !important;
}

.dc-badge {
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.badge-active {
    background: rgba(34,197,94,0.2);
    color: #166534;
    border: 1px solid rgba(34,197,94,0.35);
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.badge-inactive {
    background: rgba(239,68,68,0.15);
    color: #991b1b;
    border: 1px solid rgba(239,68,68,0.3);
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

/* ── Themed data tables ──
   Bootstrap's default .table/.table-responsive/pagination-controls render as plain
   flat-white grids, which look out of place next to the app's warm glass theme
   (grid_main/data-card/dc-badge). This re-skins those Bootstrap primitives in place —
   list screens keep the exact table markup and pagination-controls usage they already
   have, only the appearance changes, so no template changes were needed anywhere this
   was already in use (admin transaction/reconciliation/audit-log/report screens etc). */

.table-responsive {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(8px);
}

.table {
    margin-bottom: 0;
    color: #4a1a00;
    background: transparent;
}

.table > :not(caption) > * > * {
    background: transparent;
    box-shadow: none;
    border-bottom-color: rgba(74,26,0,0.08);
    padding: 12px 16px;
    vertical-align: middle;
}

.table thead.table-light > tr > th,
.table > thead > tr > th {
    background: rgba(230, 92, 0, 0.1);
    color: #4a1a00;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 1px solid rgba(255,255,255,0.4);
    white-space: nowrap;
}

.table.table-hover > tbody > tr:hover > * {
    background: rgba(230, 92, 0, 0.06);
}

.table > tbody > tr:last-child > * {
    border-bottom: none;
}

/* Status/outcome pill badges used inside table cells (Bootstrap's .badge.bg-*) — restyle
   to match .dc-badge's pill shape instead of Bootstrap's square-ish default. */
.table .badge {
    border-radius: 20px;
    font-weight: 600;
    font-size: 11px;
    padding: 4px 10px;
}

/* ── Themed pagination (ngx-pagination's default <pagination-controls>) ── */
.ngx-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 0;
}

.ngx-pagination li {
    margin-right: 0;
}

.ngx-pagination a,
.ngx-pagination button,
.ngx-pagination .current,
.ngx-pagination .disabled {
    border-radius: 10px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    color: #4a1a00;
    background: rgba(255,255,255,0.5);
    border: 1px solid rgba(200,150,80,0.25);
}

.ngx-pagination a:hover,
.ngx-pagination button:hover {
    background: rgba(230, 92, 0, 0.15);
    color: #4a1a00;
}

.ngx-pagination .current {
    background: linear-gradient(135deg, #e65c00, #f9a825);
    color: #fff;
    border-color: transparent;
}

.ngx-pagination .disabled {
    color: rgba(74,26,0,0.35);
    background: rgba(255,255,255,0.25);
}

.ngx-pagination .pagination-previous a:before,
.ngx-pagination .pagination-previous.disabled:before,
.ngx-pagination .pagination-next a:after,
.ngx-pagination .pagination-next.disabled:after {
    content: none;
}


/* ── Mobile Bottom Navigation ── */

/* Hide bottom nav + drawer on desktop */
.mobile-bottom-nav,
.mob-drawer-backdrop,
.mob-drawer {
    display: none;
}

/* Icon size — FA JS replaces <i> with <svg>, target both */
.mob-nav-item i,
.mob-nav-item svg,
.mob-drawer-item i,
.mob-drawer-item svg {
    font-size: 20px !important;
    width: 20px !important;
    height: 20px !important;
    line-height: 1;
    display: block;
}

/* ── Mobile styles ── */
@media (max-width: 767px) {

    /* Hide desktop sidebar */
    .sidebar_nav {
        display: none !important;
    }

    /* Full-width content, pad bottom for nav bar.
       .menu-body's base rule is display:table (see line ~352) — table layout sizes
       itself to its content's shrink-to-fit width REGARDLESS of an explicit width,
       when nothing forces hard containment. width:100% here was never enough on its
       own; overriding display to block is what actually pins this to the viewport on
       mobile. Without this, any descendant with a wide intrinsic/min-content width
       (a 3-column grid, a filter bar with several inline controls, a data table) grows
       .menu-body past the viewport, and since html/body are overflow-x:hidden globally,
       that excess is silently clipped instead of scrolling — the actual cause of the
       cropping reported on admin-payin-transactions/admin-payout-transactions/
       reports-dashboard (and reproducible on any page with wide-enough content). */
    .menu-body {
        display: block !important;
        width: 100% !important;
        max-width: 100vw;
        float: none;
        padding-bottom: 72px;
    }

    /* Bottom nav bar */
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: rgba(200, 80, 0, 0.95);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-top: 1px solid rgba(255,255,255,0.2);
        height: 68px;
        align-items: stretch;
    }

    .mob-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        color: rgba(255,255,255,0.75);
        font-size: 10px;
        font-weight: 500;
        text-decoration: none;
        border: none;
        background: transparent;
        cursor: pointer;
        padding: 6px 2px;
        transition: color 0.15s, background 0.15s;
        -webkit-tap-highlight-color: transparent;
    }

    .mob-nav-item i,
    .mob-nav-item svg {
        line-height: 1;
        display: block;
    }

    .mob-nav-item.mob-active,
    .mob-nav-item:active {
        color: #fff;
        background: rgba(255,255,255,0.18);
    }

    .mob-more-btn { outline: none; }

    /* Backdrop */
    .mob-drawer-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.45);
        z-index: 1001;
    }

    .mob-drawer-backdrop.open {
        display: block;
    }

    /* Slide-up drawer */
    .mob-drawer {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1002;
        background: linear-gradient(180deg, #fff3e0 0%, #ffe0b2 100%);
        border-radius: 20px 20px 0 0;
        padding: 12px 20px 80px;
        transform: translateY(100%);
        transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
        max-height: 75vh;
        overflow-y: auto;
    }

    .mob-drawer.open {
        transform: translateY(0);
    }

    .mob-drawer-handle {
        width: 40px;
        height: 4px;
        background: rgba(74,26,0,0.2);
        border-radius: 2px;
        margin: 0 auto 16px;
    }

    .mob-drawer-header {
        display: flex;
        align-items: center;
        gap: 12px;
        padding-bottom: 14px;
        border-bottom: 1px solid rgba(74,26,0,0.1);
        margin-bottom: 14px;
    }

    .mob-drawer-avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid rgba(230,92,0,0.35);
    }

    .mob-drawer-name {
        font-size: 15px;
        font-weight: 600;
        color: #4a1a00;
    }

    .mob-drawer-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .mob-drawer-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 14px 8px;
        background: rgba(255,255,255,0.5);
        border: 1px solid rgba(255,255,255,0.6);
        border-radius: 12px;
        color: #4a1a00;
        font-size: 10px;
        font-weight: 500;
        text-decoration: none;
        text-align: center;
        transition: background 0.15s;
        -webkit-tap-highlight-color: transparent;
    }

    .mob-drawer-item i,
    .mob-drawer-item svg {
        color: #e65c00;
    }

    .mob-drawer-item.mob-active,
    .mob-drawer-item:active {
        background: rgba(230,92,0,0.15);
    }
}

/* Dashboard wallet card buttons */
.card-box .btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 20px;
}

/* Scoped to .card-box so these overrides only apply on the wallet card (not every
   .btn-success/.btn-danger elsewhere) — PayIn as a solid dark pill, Payout as a
   white-outline pill, matching the updated wallet card design. */
.card-box .btn-success {
  background: #395d0f;
  border-color: #395d0f;
  color: #fff;
}

.card-box .btn-danger {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.7);
  color: #fff;
}
.dash-tile {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 18px;
    border-radius: 14px;
    text-decoration: none;
    /* Was #fff, matched to the previous saturated gradients below. Lightened
       gradients need dark text (theme's --text-primary) to stay readable, matching
       .grid_main / .dash-tile__icon and the rest of the frosted-glass theme. */
    color: var(--text-primary);
    border: 1px solid rgba(255,255,255,0.6);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    /* Same reasoning as .grid_main's height:100% — .dash-tile sits in the same
       flex row alongside .grid_main cards (dashboard.component.html) and needs to
       stretch to match, rather than staying at its own shorter content height. */
    height: 100%;
    box-sizing: border-box;
    /* Matches --card-ft (the Payin Volume/Wallet Balance card gradient) — white text
       below, since --card-ft is saturated enough that dark text loses contrast on it. */
    color: #fff;
}

.dash-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(74,26,0,0.15);
    color: #fff;
}

/* All tiles now share the same gradient as --card-ft (Payin Volume/Wallet Balance
   cards), so every card on the dashboard reads as one consistent color family —
   --md/--dist/--ret kept as separate classes (still used across
   dashboard.component.html and user-management) but now resolve to the same
   background so no markup changes are needed. */
.dash-tile--md,
.dash-tile--dist,
.dash-tile--ret {
    background: var(--card-ft);
}

.dash-tile__icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(255,255,255,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dash-tile__icon svg,
.dash-tile__icon i {
    width: 26px !important;
    height: 26px !important;
    font-size: 26px !important;
    color: #fff;
}

.dash-tile__body {
    flex: 1;
}

.dash-tile__count {
    font-size: 28px;
    /* Amounts/counts in cards are no longer bold — size alone carries the emphasis. */
    font-weight: 400;
    line-height: 1;
    margin-bottom: 4px;
}

.dash-tile__label {
    font-size: 13px;
    /* Reduced from 500 to match the lighter title weight used across other cards. */
    font-weight: 400;
    opacity: 0.85;
}

.dash-tile__arrow {
    opacity: 0.55;
    font-size: 14px !important;
    width: 14px !important;
    height: 14px !important;
}

/* ── Admin page shell ── */
/* .add-admin-page had no rule at all — .menu-body (shared page shell) is display:table,
   which sizes itself to fit the widest descendant's natural content width unless a
   descendant pins its own width. Screens using this class with wide content (a filter
   bar with a search box + two date pickers + two buttons all in one row, or a table
   with 7-8 columns) could push past the viewport; html/body set overflow-x:hidden
   globally, so that excess silently clips instead of scrolling — cropping the right
   side of admin-payin-transactions, admin-payout-transactions, and reports-dashboard.
   Same fix as .payout-transfer-page: pin this page to the viewport width so any
   overflowing content (e.g. .table-responsive) scrolls internally instead. */
.add-admin-page {
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* ── Page Topbar (back navigation) ── */
.page-topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0 14px;
    margin-bottom: 4px;
}

.page-back-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: none;
    background: rgba(230, 92, 0, 0.1);
    color: #e65c00;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s;
}

.page-back-btn:hover {
    background: rgba(230, 92, 0, 0.2);
}

.page-back-btn i,
.page-back-btn svg {
    width: 16px;
    height: 16px;
    font-size: 16px;
    display: flex;
    align-self: center;
    line-height: 1;
}

.page-topbar-title {
    font-size: 17px;
    font-weight: 600;
    color: #4a1a00;
}

/* ── Dashboard Tiles ── */

/* Login page header bar — fixed at top, escapes menu-body layout */
.login-page-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 200, 80, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,0.35);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    height: 56px;
}

.login-page-logo {
    height: 40px;
    width: auto;
    display: block;
}

/* ── DMT / Payout Transfer ── */
.payout-transfer-page {
    padding: 0;
    /* .menu-body (shared page shell) is display:table, which sizes itself to fit the
       widest descendant's natural content width unless a descendant has an explicit
       width. .dmt-stepper's pills are flex-shrink:0 + nowrap, so with the "4. Done"
       step included, the row's natural width can exceed the viewport — html/body set
       overflow-x:hidden globally, so that excess width doesn't scroll, it silently
       clips whatever sits to the right (the remitter/beneficiary forms below). An
       explicit width here (rather than relying on overflow-x alone, which doesn't
       reliably stop a display:table ancestor from sizing to a descendant's max-content
       width) pins this page to the viewport so .dmt-stepper's own overflow-x:auto can
       do its job — scroll internally — instead.
    */
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.dmt-stepper {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-bottom: 16px;
    scrollbar-width: none;
}

.dmt-stepper::-webkit-scrollbar { display: none; }

.dmt-step {
    flex-shrink: 0;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    background: rgba(74,26,0,0.12);
    color: rgba(74,26,0,0.5);
    white-space: nowrap;
}

.dmt-step--active {
    background: rgba(230, 92, 0, 0.85);
    color: #fff;
}

.dmt-step--done {
    background: rgba(34, 197, 94, 0.8);
    color: #fff;
}

.dmt-verified-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(34,197,94,0.12);
    border: 1px solid rgba(34,197,94,0.3);
    color: #166534;
    font-size: 13px;
    margin-bottom: 8px;
}
