﻿body {
    background-color:#f8f9fc;
}

.urdu  {
    font-family: Jameel Noori Nastaleeq;
    direction: rtl;
}

h1 {
	color: #333;
}

.mainpagetitle {
    margin: 0 0 0 0;
    font-size:30px;
    font-weight:bold;
    color:#fff;
    text-align:center;
}

.h2title {
	color:#fff;
}
.checkbox {
    background-color: none;
}
h3 {
	color: #333;
}

.accordion {
    background-color: #edeff3;
}

.center {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.box, .card {
	border-width:0px; border-style:solid; background-color:#edeff3; border-color:#E8E9EB; border-radius: 0.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08),
              0 1px 3px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s ease, transform 0.3s ease;	
	
}

.box {
     padding:20px;
}

div.boxNew {
	border-width:0px; border-style:solid; background-color: #F5F1EB; border-color:#E8E9EB; padding:20px; border-radius: 0.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08),
              0 1px 3px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s ease, transform 0.3s ease;	
	
}

div.boxicon {
	border-width:1px; border-style:solid; background-color:#edeff3; border-color:#E8E9EB; border-bottom:none; border-radius: 0.5rem;
}

div.boxtitle {
	border-width:1px; border-style:solid; border-color:#E8E9EB; border-top:none; border-bottom-color:#333; background-color:#333; padding: 5px 0 0 0 ; border-radius: 0.5rem;
}

div.boxtext {
	border-width:1px; border-style:solid; background-color:#edeff3; border-color:#E8E9EB; border-top:none; margin-bottom:20px; border-radius: 0.5rem;
}

p.boxtextpadding {
	color: #999;
	padding: 20px 10px 20px 10px;
}

i.icon-ms {
	font-size:4em;
	padding: 20px 0 20px 0;
	color:#999;
}

div.box:hover {
	/*background-color:#f8f9fa;*/
}

.paid-color {
    /*color:#2572cb;*/
    color:#5DADE2;
}

.nav-item {
	border-right-width:1px;
	border-right-style:solid;
	border-right-color:#E8E8E8;
	padding-left:5px;
	padding-right:5px;

}

.nav-item a {
    color: black;
    font-weight:500;

}


.list-container {
	border-width:1px;
	border-style:solid;
	border-color:#E1E1E1;
	border-right:none;
	border-bottom:none;
	margin-right:auto;
	margin-left:auto;
}

.list-row {
	border-bottom-width:1px;
	border-bottom-style:solid;
	border-bottom-color:#E1E1E1;
	vertical-align:middle;
}

.list-row:hover {
    background-color:#edeff3;
}

.list-col {
	border-right-width:1px;
	border-right-style:solid;
	border-right-color:#E1E1E1;
	vertical-align:middle;
	padding:10px;
}

.user-list-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
    z-index: 1050;
}

.user-list-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.user-list-sheet {
    position: fixed;
    top: 0;
    right: 0;
    width: min(420px, 92vw);
    height: 100%;
    background: #ffffff;
    color: #1f1f1f;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 1060;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #e3e6ea;
}

.user-list-sheet.is-open {
    transform: translateX(0);
}

.user-list-header {
    padding: 16px;
    border-bottom: 1px solid #e3e6ea;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-list-body {
    padding: 16px;
    overflow-y: auto;
    flex: 1;
}

.user-list-controls {
    display: grid;
    gap: 10px;
}

.user-list-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    margin-top: 12px;
}

.user-list-card {
    background: #f8f9fb;
    border: 1px solid #e3e6ea;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    color: inherit;
    cursor: pointer;
}

.user-list-card.is-selected {
    border-color: #2f74ff;
    box-shadow: 0 0 0 2px rgba(47, 116, 255, 0.15);
}

.user-list-name {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.user-list-photo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e1e1e1;
}

.user-list-summary-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f1f3f6;
    margin-right: 6px;
    font-size: 0.85rem;
}

.user-list-chip-add {
    background: rgba(47, 116, 255, 0.12);
    color: #2f74ff;
}

.user-list-chip-remove {
    background: rgba(220, 53, 69, 0.12);
    color: #c82333;
}

.user-list-empty {
    color: #6b7280;
    font-size: 0.9rem;
}

.user-list-section {
    margin-top: 16px;
}

.user-list-grid-add .user-list-card {
    border-color: #2f74ff;
}

.user-list-grid-remove .user-list-card {
    border-color: #c82333;
}

.user-list-trigger {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.user-list-summary {
    font-size: 0.9rem;
    color: #6b7280;
}

@media (max-width: 768px) {
    .user-list-sheet {
        top: auto;
        bottom: 0;
        right: 0;
        width: 100%;
        height: 80vh;
        transform: translateY(100%);
        border-left: none;
        border-top-left-radius: 16px;
        border-top-right-radius: 16px;
    }

    .user-list-sheet.is-open {
        transform: translateY(0);
    }
}

.list-head {
	background-color:#edeff3;	
	color:#696969;
	/*font-weight:bold;*/
}
.col-head {
	background-color:#edeff3;	
	/*background-color:#212529;	*/
	/*color:#E0E0E0;*/
	border-bottom-color:#E1E1E1;
	border-color:#E1E1E1;
	font-weight:600;
}

/* =========================
   Statistics Card base
========================= */

.analytics-widget.card {
    border: 1px solid #C0C0C0;
    background: #edeff3;
}

/* Override Bootstrap card background to match navbar */
.card-body {
    background-color: #edeff3;
}

.card-header {
    background-color: #edeff3;
}

.card-footer {
    background-color: #edeff3;
}

a:link, a:visited {
  color: #999;
  text-decoration: none;
}

a:link:active, a:visited:active {
  color: #999;
}

a:hover{
    text-decoration:none;
    color:#fff;
}




a.boxlink:link {
	text-decoration:none;
	
}

input {
    width : 100%;
}


.tajnid-search {
    position: relative;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}

.tajnid-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 20px;
    z-index: 1;
}

.tajnid-search-input {
    padding-left: 42px;
    background: #ffffff;
    border: 1px solid #ddd;
    color: #333;
}

.tajnid-search-input::placeholder {
    color: #666;
}

.tajnid-search-results {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
}

.tajnid-search-results-content {
    padding: 8px;
}

.tajnid-search-results-header {
    font-size: 12px;
    color: #666;
    padding: 8px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 4px;
}

.tajnid-search-results-label {
    font-size: 12px;
    color: #666;
    padding: 6px 8px 0;
}

.tajnid-search-result {
    display: flex;
    align-items: center;
    padding: 12px;
    margin: 4px 0;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    transition: all 0.2s;
}

.tajnid-search-result:hover {
    background: #f0f0f0;
    transform: translateX(4px);
}

.tajnid-search-result-icon {
    font-size: 24px;
    margin-right: 12px;
    color: #1976d2;
    flex-shrink: 0;
}

.tajnid-search-result-body {
    flex: 1;
    min-width: 0;
}

.tajnid-search-result-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    display: block;
}

.tajnid-search-result-meta {
    font-size: 12px;
    color: #666;
    display: block;
}

.tajnid-search-empty {
    padding: 20px;
    text-align: center;
    color: #333;
}

/* =========================
   Tajnid Upload Dropzone (scoped)
   Add wrapper: <div class="tajnid-upload"> ... </div>
========================= */

.tajnid-upload .container {
    padding: 50px 10%;
}

.tajnid-upload .box {
    position: relative;
    width: 100%;
}

.tajnid-upload .box-header {
    display: block;
    padding: 10px;
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
    margin-bottom: 10px;
}

.tajnid-upload .box-tools {
    position: absolute;
    right: 10px;
    top: 5px;
}

.tajnid-upload .dropzone-wrapper {
    border: 2px dashed #91b0b3;
    color: #92b0b3;
    position: relative;
    height: 250px;
    border-radius: 12px;
}

.tajnid-upload .dropzone-desc {
    position: absolute;
    margin: 0 auto;
    left: 0;
    right: 0;
    text-align: center;
    width: 70%;
    top: 80px;
    font-size: 16px;
}

.tajnid-upload .dropzone,
.tajnid-upload .dropzone:focus {
    position: absolute;
    outline: none !important;
    width: 100%;
    height: 150px;
    cursor: pointer;
    opacity: 0;
}

.tajnid-upload .dropzone-wrapper:hover,
.tajnid-upload .dropzone-wrapper.dragover {
    background: rgba(0, 0, 0, .04);
}

.tajnid-upload .preview-zone {
    text-align: center;
}

.tajnid-upload .preview-zone .box {
    box-shadow: none;
    border-radius: 0;
    margin-bottom: 0;
}

/* ✅ DO NOT override .btn-primary globally.
   If you need a crimson button on upload page: */
.tajnid-upload .btn-primary {
    background-color: crimson;
    border: 1px solid #212121;
}

/* ============================================================
   Transactions page (transactionsView.php) — light variables
   ============================================================ */
.tx-page {
  --ink: #2a2520;
  --ink-mute: #6b655c;
  --ink-dim: #9a9388;
  --ink-strong: #1a1612;

  --line: rgba(60, 50, 35, 0.10);
  --line-strong: rgba(60, 50, 35, 0.20);

  --card: #fbf7f0;
  --card-hover: #f5efe5;
  --card-open: #f8f3ea;
  --card-deep: #f0ead9;

  --input-bg: #ffffff;
  --input-bg-focus: #fffdf9;

  --accent-amber: #b8821e;
  --accent-amber-dim: rgba(184, 130, 30, 0.15);
  --accent-amber-ink: #ffffff;

  --accent-green: #3d8a5e;
  --accent-green-dim: rgba(61, 138, 94, 0.12);

  --accent-blue: #2c6ba1;
  --accent-blue-dim: rgba(44, 107, 161, 0.10);

  --accent-red: #b03838;
  --accent-red-dim: rgba(176, 56, 56, 0.10);
}

.sweet-alert:not(:has(.sa-button-container button:not([style*="display: none"]))) { padding-bottom: 40px !important; }
.swal-modal:not(:has(.swal-footer)) { padding-bottom: 40px !important; }
