/* ===== view.jsp styles ===== */
.appOverCss {
	padding: 16px 24px;
	background: rgba(204, 196, 194, 0.08);
	backdrop-filter: blur(12px);
	margin-block: clamp(1rem, 3vw, 1.5rem);
}

.appOverCssAnchor {
	font-family: 'Inter', sans-serif;
	font-weight: 500;
	font-style: Medium;
	font-size: clamp(1.25rem, 2.2vw, 1.5rem);
	line-height: 32px;
	vertical-align: middle;
	color: rgba(27, 28, 28, 1);
	display: flex;
	align-items: center;
	gap: 16px;
}

.buyerViewCss .info-card {
	height: 100%;
	overflow: hidden;
	gap: 24px;
	padding: 32px;
	box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.05);
	border-radius: 10px;
}

.buyerViewCss .card-header-custom {
	font-family: 'Inter', sans-serif;
	font-weight: 600;
	font-style: Semi Bold;
	font-size: clamp(1rem, 1.8vw, 1.125rem);
	line-height: 28px;
	color: rgba(30, 41, 59, 1);
	margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

.buyerViewCss .shop-info-item {
	grid-template-columns: 140px 1fr;
	gap: 16px;
	padding: 14px 0;
}

.buyerViewCss .shop-info-item:last-child {
	border-bottom: none;
}

.buyerViewCss .shop-label {
	font-size: 13px;
	color: #6c757d;
	font-weight: 500;
}

.buyerViewCss .shop-value {
	font-size: 14px;
	color: #212529;
	margin-top: 10px;
	font-weight: 500;
}

.buyerViewCss .description-box {
	background-color: #f8f9fa;
	padding: 14px;
	border-radius: 6px;
	font-size: 14px;
	color: #6c757d;
	line-height: 1.6;
}

.buyerViewCss .business-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}

.buyerViewCss .business-item {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.buyerViewCss .business-label {
	font-family: 'Inter', sans-serif;
	font-weight: 400;
	font-style: Regular;
	font-size: 14px;
	line-height: 16px;
	letter-spacing: 0px;
	vertical-align: middle;
	color: rgba(107, 114, 128, 1);
}

.buyerViewCss .business-value {
	font-family: 'Inter', sans-serif;
	font-weight: 500;
	font-style: Medium;
	font-size: 14px;
	line-height: 20px;
	letter-spacing: 0px;
	vertical-align: middle;
	color: rgba(30, 41, 59, 1);
}

.buyerViewCss .address-container {
	margin-top: 12px;
}

.buyerViewCss .address-card {
	background-color: #f8f9fa;
	border-radius: 8px;
	padding: 16px;
	margin-bottom: 16px;
}

.buyerViewCss .address-type {
	display: inline-block;
	background-color: #7cb342;
	color: white;
	padding: 4px 12px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
	margin-bottom: 12px;
}

.buyerViewCss .address-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
}

.buyerViewCss .address-field {
	display: flex;
	align-items: baseline;
	gap: 8px;
	font-size: 14px;
}

.buyerViewCss .address-field strong {
	color: #6c757d;
	min-width: 80px;
	font-size: 13px;
}

.buyerViewCss .address-field span {
	color: #212529;
}

/* ===== tab.jsp styles ===== */
.documentShowSection .review-header {
	background: linear-gradient(90deg, #49b20f, #69c315);
	color: #fff;
	border-radius: 14px;
	padding: 28px 32px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
}

.documentShowSection .review-card {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .06);
}

.documents-wrapper {
	display: flex;
	flex-direction: column;
	gap: 22px;
	padding: 20px;
	box-shadow: 0px 6px 20px -4px rgba(0, 0, 0, 0.05);
}

.uploaded-docs-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	padding: 8px 4px 20px;
}

.doc-card-exact {
	flex: 1 1 220px;
	max-width: 280px;
	justify-content: space-between;
	background: #ffffff;
	border-radius: 16px;
	padding: 20px 18px 18px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.09);
	transition: box-shadow 0.2s ease;
}

.doc-card-exact:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.doc-card-exact .doc-icon {
	width: 42px;
	height: 42px;
	background: #f0fdf4;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 14px;
}

.doc-card-exact .doc-icon i {
	font-size: 20px;
	color: #16a34a;
}

.doc-card-exact .doc-title {
	font-family: 'Inter', sans-serif;
	font-weight: 600;
	font-size: 15px;
	color: #1e293b;
}

.doc-card-exact .status-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #5BA6031A;
	color: #518E08;
	font-size: .7rem;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 20px;
	margin-bottom: 8px;
}

.doc-card-exact .status-badge .dot {
	width: 5px;
	height: 5px;
	background: #16a34a;
	border-radius: 50%;
}

.doc-card-exact .issued-date {
	font-size: 13px;
	color: #64748b;
	margin-bottom: 6px;
}

.doc-card-exact .status-badge-expired {
	background: #FEE2E2;
	color: #B91C1C;
}

.doc-card-exact .status-badge-expired .dot {
	background: #DC2626;
}

.doc-card-exact .expired-upload-wrap {
	width: 100%;
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px dashed #FCA5A5;
}

.doc-card-exact .expired-upload-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #B91C1C;
	margin-bottom: 6px;
}

.doc-card-exact .expired-upload-input {
	font-size: 13px;
	border: 1px solid #FCA5A5;
	border-radius: 8px;
	padding: 6px 10px;
	width: 100%;
}

.doc-card-exact .preview-btn-exact {
	width: 100%;
	border: none;
	background: #5EA211;
	color: #ffffff;
	padding: 10px 0;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	cursor: pointer;
	transition: background 0.2s ease;
}

.doc-card-exact .preview-btn-exact:hover {
	background: #5EA211;
}

.doc-card-exact .preview-btn-exact i {
	font-size: 14px;
}

.review-card-header {
	background: #F9FAFB80;
	font-family: 'Inter', sans-serif;
	font-weight: 600;
	font-style: Semi Bold;
	font-size: clamp(1rem, 1.8vw, 1.125rem);
	line-height: 28px;
	color: rgba(30, 41, 59, 1);
	margin-bottom: clamp(1rem, 2vw, 1.5rem);
	padding: 10px 20px 10px 20px;
}

.doc-header {
	font-weight: 600;
	font-size: 18px;
	margin-bottom: 18px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.detail-row {
	margin-bottom: 14px;
}

.detail-row .doclabel {
	font-size: 12px;
	font-weight: 600;
	color: #8b8b8b;
}

.detail-row .value {
	font-size: 12px;
	font-weight: 500;
}

.file-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: #f4f6f8;
	border-radius: 12px;
	padding: 12px 14px;
	margin-bottom: 12px;
}

.file-left {
	display: flex;
	gap: 12px;
	align-items: center;
}

.file-icon {
	width: 42px;
	height: 42px;
	background: #dff5e5;
	color: #2f9d46;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
}

.preview-btn {
	border: none;
	background: #e8f7ed;
	color: #2ea44f;
	padding: 6px 14px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
}

.preview-btn:hover {
	background: #d5f0de;
}

#previewModal .modal-dialog {
	max-width: 50%;
	/* margin: 8vh auto; */
}

#previewModal .modal-content {
	height: 65vh;
	border: none;
	border-radius: 6px;
}

#previewModal .modal-body {
	overflow: hidden;
}

#previewModal .modal-dialog {
	transform: scale(0.6);
	opacity: 0;
	transition: transform 0.6s ease, opacity 0.6s ease;
}

#previewModal.show .modal-dialog {
	transform: scale(1);
	opacity: 1;
}

#previewModal .modal-backdrop {
	transition: opacity 0.6s ease;
}

#modalPreviewBody iframe,
#modalPreviewBody img {
	width: 100%;
	height: 100%;
	border: none;
	object-fit: contain;
}
.buyerHeaderBar {
    border-radius: 8px;
    padding: 12px 16px;
    background: linear-gradient(90deg, #61B400 0%, #80CB28 100%);
    box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.buyerHeaderBarImg {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center -200px;
    left: 0;
    top: 0;
    z-index: 0;
    border-radius: 8px 8px 0 0;
    opacity: 15%;
}


.buyerHeaderBar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
}

.buyerHeaderBar-left {
    display: flex;
    align-items: center;
    gap: 18px;
    z-index: 1;
}

.buyerHeaderBar-logo {
    width: 74px;
    height: 74px;
    border-radius: 8px;
    border-radius: 12px;
    object-fit: cover;
}

.buyerHeaderBar-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.buyerHeaderBar-title {
    font-family: 'Inter',sans-serif;
    font-weight: 600;
    font-style: Bold;
    font-size: clamp(1rem, 1.8vw, 1.125rem);
    line-height: 32px;
    letter-spacing: 0px;
    color: rgba(255, 255, 255, 1);
}

.buyerHeaderBar-details {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.buyerHeaderBar-detail{
    display: flex;
    gap: 10px;
}

.buyerHeaderBar-detailIcon{
    background: rgba(249, 250, 251, 0.2);
    border-radius: 4px;
    height: 100%;
    display: flex;
    align-items: center;
    padding-left: 5px;
    padding-right: 5px;
}

.buyerHeaderBar-detail-label{
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-style: Bold;
    font-size: clamp(0.75rem, 1.2vw, 0.875rem);
    line-height: 16px;
    letter-spacing: 0px;
    vertical-align: middle;
    color: rgba(255, 255, 255, 1);
}

.buyerHeaderBar-detail-value{
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-style: Medium;
    font-size: clamp(0.625rem, 1vw, 0.75rem);
        margin-top: 3px;
    line-height: 15px;
    letter-spacing: 0.5px;
    vertical-align: middle;
    color: rgba(255, 255, 255, 1);
}
.business-value.linkCss a {
    color: #0087A9;
    text-decoration: underline;
}
.business-value.linkCss a:hover {
    color: #0087A9;
    text-decoration: underline;
}

.buyerHeaderBar-right{
    z-index: 1;
}

.buyerHeaderBar-actionBtn{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 8px;
    padding-top: 8.5px;
    padding-right: 16px;
    padding-bottom: 9.5px;
    padding-left: 16px;
    background-color: rgba(0, 135, 169, 1);
    font-family: Inter;
    font-weight: 600;
    font-style: Semi Bold;
    font-size: clamp(0.875rem, 1.4vw, 1rem);
    line-height: 20px;
    letter-spacing: 0px;
    text-align: center;
    vertical-align: middle;
    color: rgba(255, 255, 255, 1);
    border: none;
    cursor: pointer;
}

.buyerHeaderBar-cancelBtn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 8px;
    padding-top: 8.5px;
    padding-right: 16px;
    padding-bottom: 9.5px;
    padding-left: 16px;
    background-color: rgba(255, 255, 255, 1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    font-family: Inter;
    font-weight: 600;
    font-size: clamp(0.875rem, 1.4vw, 1rem);
    line-height: 20px;
    color: rgba(30, 41, 59, 1);
    cursor: pointer;
}

.buyerViewCss .edit-input {
    width: 100%;
    max-width: none;
    min-width: 0;
    display: block;
    font-size: 14px;
    line-height: 1.5;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 9px 12px;
    color: #1e293b;
    background-color: #ffffff;
    margin-top: 4px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.buyerViewCss .edit-input:hover {
    border-color: #9ca3af;
}

.buyerViewCss .edit-input:focus {
    border-color: #0087A9;
    box-shadow: 0 0 0 3px rgba(0, 135, 169, 0.15);
    outline: none;
    background-color: #ffffff;
}

.buyerViewCss .edit-input::placeholder {
    color: #9ca3af;
    opacity: 1;
}

.buyerViewCss textarea.edit-input {
    min-height: 78px;
    resize: vertical;
}

.buyerViewCss select.edit-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 36px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px 12px;
}

.buyerViewCss select.edit-input:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%230087a9' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E");
}

/* Edit form grid: single column until there is room for two inputs per row */
@media ( max-width : 1199px) {
	.buyerViewCss .business-grid--edit {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Shop information: two columns in view mode, single column while editing */
.buyerViewCss .shop-view-grid,
.buyerViewCss .shop-edit-stack {
	display: grid;
	gap: 24px;
	align-items: start;
}

.buyerViewCss .shop-view-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.buyerViewCss .shop-edit-stack {
	grid-template-columns: minmax(0, 1fr);
}

@media ( max-width : 1199px) {
	.buyerViewCss .shop-view-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

.bussinessAddressCardDetails{
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.businessAddFirstCol{
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.breadCss {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1rem;
    font-weight: 400;
    color: #4b5563;
	margin-bottom: 15px;
}
.breadCss a{
	color: #4b5563;
	text-decoration: none;
}
.breadCss .activeBread, .breadCss a:hover{
	text-decoration: underline;
    color: #57970C;
}

.buyerDetHeader h3{
	font-size: 1.2rem;
	font-weight: 600;
}

.buyerDetHeader p{
	color: #6B7280;
	font-size: .875rem;
	font-weight: 400;
}
.gmnoprint.gm-style-mtc-bbw{
	left: 370px !important;
}
.buyerViewCss .shop-view-grid .business-item:nth-child(3),
.buyerViewCss .shop-view-grid .business-item:nth-child(4) {
    grid-column: 1 / -1;
}
.business-grid.address-view-grid.address{
	    grid-template-columns: 1fr !important;
}
/* ===== Business Address map (edit mode) ===== */
.buyer-map-section {
	position: relative;
	background: #f8f9fa;
	min-height: 400px;
	height: 100%;
	border-radius: 8px;
	overflow: hidden;
}

.buyer-map-canvas {
	height: 100%;
	min-height: 400px;
	width: 100%;
}

.buyer-map-controls {
	position: absolute;
	top: 20px;
	left: 20px;
	background: white;
	padding: 8px;
	display: flex;
	gap: 8px;
	border-radius: 10px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
	z-index: 4;
}

.buyer-map-controls button {
	padding: 10px 18px;
	background: #f8f9fa;
	color: #2d3748;
	border: 2px solid transparent;
	border-radius: 8px;
	cursor: pointer;
	font-size: 13px;
	font-weight: 500;
	transition: all 0.3s ease;
}

.buyer-map-controls button:hover {
	background: #e8ecf1;
}

.buyer-map-controls button.active {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	border-color: transparent;
}

.buyer-map-search {
	position: absolute;
	top: 90px;
	left: 20px;
	z-index: 5;
	width: calc(100% - 100px);
	max-width: 280px;
}

.buyer-map-search-input {
	width: 100%;
	padding: 10px 14px;
	border: 2px solid transparent;
	border-radius: 8px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
	font-size: 13px;
	outline: none;
	background: #fff;
}

.buyer-map-coords {
	position: absolute;
	bottom: 20px;
	left: 20px;
	right: 20px;
	background: white;
	padding: 12px 16px;
	border-radius: 10px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
	font-size: 13px;
	color: #2d3748;
	z-index: 4;
}

.buyer-map-marker-list {
	position: absolute;
	top: 144px;
	left: 20px;
	background: white;
	padding: 16px;
	border-radius: 10px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
	max-height: 250px;
	overflow-y: auto;
	font-size: 13px;
	width: 280px;
	z-index: 4;
}

.buyer-map-marker-list h3 {
	margin: 0 0 12px 0;
	font-size: 15px;
	font-weight: 600;
	color: #2d3748;
}

.buyer-map-marker-list ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.buyer-map-marker-list li {
	padding: 8px 0;
	border-bottom: 1px solid #e8ecf1;
	color: #4a5568;
	font-size: 12px;
	word-break: break-word;
}

.buyer-map-marker-list li:last-child {
	border-bottom: none;
}

.buyer-map-tooltip {
	position: absolute;
	background: #2d3748;
	color: white;
	padding: 10px 14px;
	border-radius: 8px;
	font-size: 12px;
	pointer-events: none;
	transform: translate(-50%, -100%);
	display: none;
	white-space: pre-line;
	max-width: 300px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
	z-index: 6;
}

.buyer-map-tooltip::after {
	content: '';
	position: absolute;
	bottom: -8px;
	left: 50%;
	transform: translateX(-50%);
	border: 8px solid transparent;
	border-top-color: #2d3748;
}

.buyer-map-error {
	position: absolute;
	top: 20px;
	left: 50%;
	transform: translateX(-50%);
	background: #fff3f3;
	color: #b91c1c;
	padding: 10px 16px;
	border-radius: 8px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
	font-size: 13px;
	z-index: 7;
	white-space: nowrap;
}

/* ===== Business Address map (read-only view mode) ===== */
.buyerViewCss .business-grid.address-view-grid {
	min-width: 0;
}

.buyerViewCss .business-grid.address-view-grid .business-value {
	overflow-wrap: anywhere;
}

.buyer-map-section--view .buyer-map-search,
.buyer-map-section--view .buyer-map-controls {
	display: none;
}

@media ( min-width : 768px) {
	.buyer-map-section--view .buyer-map-marker-list {
		top: 20px;
	}
}

@media ( max-width : 991px) {
	.buyer-map-section {
		min-height: 400px;
	}
	.buyer-map-canvas {
		min-height: 400px;
	}
	.buyer-map-controls {
		flex-wrap: wrap;
	}
	.buyer-map-marker-list {
		width: calc(100% - 40px);
		max-width: 280px;
	}
	.buyer-map-search {
		max-width: calc(100% - 40px);
	}
}

@media ( max-width : 767px) {
	.buyer-map-section {
		min-height: 350px;
	}
	.buyer-map-canvas {
		min-height: 350px;
	}
	.buyer-map-controls {
		top: 10px;
		left: 10px;
		padding: 6px;
		gap: 6px;
	}
	.buyer-map-controls button {
		padding: 8px 12px;
		font-size: 12px;
	}
	.buyer-map-search {
		position: relative;
		top: auto;
		left: auto;
		width: calc(100% - 20px);
		max-width: none;
		margin: 10px auto 0;
	}
	.buyer-map-marker-list {
		position: relative;
		top: auto;
		left: auto;
		width: calc(100% - 20px);
		max-width: none;
		margin: 10px auto;
		box-sizing: border-box;
	}
	.buyer-map-coords {
		position: relative;
		bottom: auto;
		left: auto;
		right: auto;
		margin: 10px;
		font-size: 12px;
		padding: 8px 12px;
	}
}

@media ( max-width : 575px) {
	.buyer-map-section {
		min-height: 300px;
	}
	.buyer-map-canvas {
		min-height: 300px;
	}
	.buyer-map-marker-list {
		padding: 12px;
	}
	.buyer-map-coords {
		margin: 8px;
		padding: 8px 10px;
	}
	.buyer-map-error {
		max-width: calc(100% - 20px);
		white-space: normal;
		text-align: center;
	}
}