Android_Retail/src/index.css

625 lines
13 KiB
CSS
Raw Normal View History

2026-01-27 18:27:29 +05:30
:root {
--INPUT_FIELD_WIDTH: min(60vw, 250px);
--HEADING_COLOR: #000000;
--HEADING_FONT_FAMILY: 'Gilroy';
--PARA_FONT_FAMILY: 'Poppins';
--PARA_COLOR: #3f3f3f;
--PRIMARY_BUTTON_BG_COLOR: #8f1e78;
--PRIMARY_BUTTON_COLOR: #ffffff;
--PRIMARY_BUTTON_BORDER_RADIUS: 6px;
--SECONDRY_BUTTON_BG_COLOR: white;
--SECONDRY_BUTTON_COLOR: #000000;
--SECONDRY_BUTTON_BORDER_RADIUS: 25.6853px;
--THIRD_BUTTON_BG_COLOR: #060606;
--THIRD_BUTTON_COLOR: #efefef;
--THIRD_BUTTON_BORDER_RADIUS: 6.53329px;
--BOX_SHADOW_LEVEL1: 0px 4px 15px rgba(0, 0, 0, 0.1);
--BOX_SHADOW_LEVEL2: 0px 4px 25px rgba(0, 0, 0, 0.2);
--BOX_SHADOW_LEVEL3: 0px 5.25331px 26.3077px rgba(0, 0, 0, 0.08);
--CARD_BG_COLOR: rgba(255, 255, 255, 0.6);
--CARD_COLOR: #000000;
--CARD_FONT_FAMILY: 'Gilroy-Medium';
--CARD_BORDER_RADIUS: 10px;
--ANCHOR_FONT_FAMILY: 'Manrope';
--ANCHOR_COLOR: #314259;
--BUTTON_FONT_FAMILY: 'Gilroy-Medium';
--BREAD_CRUMB_PADDING: 1rem;
--TABLE_PAGE_PADDING: 1rem;
/* --PAGE_BODY_BACKGROUND_COLOR: #e8ecf1; */
--PAGE_BODY_BACKGROUND_COLOR: #d4e7ff;
--SELECTED_COLOR: #52c41a;
--ERROR_COLOR: #ff4d4f;
--DEFAULT_SELECTED_COLOR: #1292ee;
overflow-x: hidden;
}
html,
body {
overscroll-behavior: none;
}
* {
padding: 0px;
margin: 0px;
box-sizing: border-box;
}
p {
font-family: VAR(--PARA_FONT_FAMILY);
}
button {
font-family: var(--BUTTON_FONT_FAMILY);
}
header {
font-family: VAR(--HEADING_FONT_FAMILY);
}
a {
font-family: var(--PARA_FONT_FAMILY);
}
.ant-menu-title-content {
flex-direction: column;
display: flex;
/* align-items: center; */
text-transform: uppercase;
}
/* '''''''''''''''''''''''''''''?'? */
/* ScrollBar */
::-webkit-scrollbar {
width: 2px;
}
/* Track */
::-webkit-scrollbar-track {
background: #f1f1f1;
}
/* Handle */
::-webkit-scrollbar-thumb {
background: #999999;
}
.samplereportTable {
overflow: auto;
width: 80vw;
height: 70vh !important;
}
.reportTablepreprence {
overflow: auto;
/* width: 88vw; */
height: 70vh !important;
}
.firstTable {
height: 65vh;
overflow: auto;
}
@media (min-width: 280px) and (max-width: 768px) {
.anim-1 {
width: 30vw !important;
}
.reportTablepreprence {
overflow: auto;
width: 70vw;
height: 50vh !important;
}
.reportTablepreprence table {
table-layout: auto !important;
}
.samplereportTable .ant-table-content table {
table-layout: auto !important;
}
.firstTable {
/* width: 60vw !important; */
overflow: auto;
}
.SecondTable {
width: 60vw !important;
overflow: auto;
}
.samplereportTable {
overflow: auto;
width: 80vw;
height: 49vh !important;
}
}
.tooltip {
position: relative;
display: inline-block;
}
.tooltip .tooltiptext {
visibility: hidden;
width: 120px;
background-color: #000;
color: #fff;
text-align: left;
border-radius: 6px;
padding: 10px 5px;
/* Position the tooltip */
position: absolute;
z-index: 1;
}
.navbar-top {
top: 38px;
}
.tooltip:hover .tooltiptext {
visibility: visible;
}
/* nk */
/* .CustomerAddSrch .bottom-0{
bottom: 2.5rem;
} */
.BSLayout1 .tooltip .tooltiptext {
bottom: 2.5rem !important;
}
.BSLayout2 .tooltip .tooltiptext {
bottom: 2.5rem !important;
}
.BSLayout3 .tooltip .tooltiptext {
bottom: 2.5rem !important;
}
.BsLayout4-Master .tooltip .tooltiptext {
bottom: 2.5rem !important;
}
.BSLayout5 .tooltip .tooltiptext {
bottom: 2.5rem !important;
}
.BSLayout6-fulldiv .tooltip .tooltiptext {
bottom: 2.5rem !important;
}
.BSBillingNavBar1-AllIcons .tooltip .tooltiptext {
top: 2.5rem;
}
.BSBillingNav2div2 .tooltip .tooltiptext {
top: 2.5rem;
}
.CustMob-Name .tooltip .tooltiptext {
top: 2.5rem;
}
.sentLink {
display: flex;
width: 200px;
height: 50px;
justify-content: space-evenly;
background-color: var(--SELECTED_COLOR);
border: #545454 solid 1px;
color: white;
align-items: center;
font-family: var(--HEADING_FONT_FAMILY);
cursor: pointer;
border-radius: 8px;
font-size: 15px;
font-weight: 600;
margin: 0.5rem;
}
.sentLink:hover {
background-color: #f3f3f3;
color: #000;
}
.sentok {
display: flex;
align-items: center;
justify-content: space-around;
}
.overall-bscombo-container .tooltip .tooltiptext {
bottom: 2.5rem !important;
}
.dotted-box .css-b62m3t-container {
pointer-events: none;
}
@keyframes blink {
0% {
opacity: 1;
}
50% {
opacity: 0;
}
100% {
opacity: 1;
}
}
.anim-1 {
/* animation: blink 1s infinite; */
align-items: center;
display: flex;
/* width: clamp(100px, 2vw, 200px); */
width: 20vw;
/* padding: 0rem 0.5rem; */
font-size: clamp(0.9rem, 2vw, 1.5rem);
border-radius: 3px;
font-weight: 600;
font-family: var(--HEADING_FONT_FAMILY);
}
.payment-error-msg {
font-size: 12px;
2026-04-02 11:06:57 +05:30
font-family: VAR(--PARA_FONT_FAMILY);
color: VAR(--ERROR_COLOR);
2026-01-27 18:27:29 +05:30
}
/* Disable all Ant Design table animations and hover effects */
.ant-table,
.ant-table *,
.ant-table-wrapper * {
transition: none !important;
animation: none !important;
animation-duration: 0s !important;
transition-duration: 0s !important;
}
.ant-table-tbody > tr:hover > td,
.ant-table-tbody > tr:hover,
.ant-table-row:hover > td,
.ant-table-row:hover,
.ant-table-cell-row-hover {
background: transparent !important;
background-color: transparent !important;
}
/* OverWrite code for modal */
.ant-modal .ant-modal-content {
padding: 34px !important;
2026-04-02 11:06:57 +05:30
/* Android WebView 83 fix: ensure positioning context for close button */
position: relative !important;
overflow: visible !important;
}
/* ============================================
ANDROID WEBVIEW 83 - Modal Close Button Fix
On Chrome 83, position:absolute inside a flex
container loses its anchor. Force it to always
sit at top-right of the modal content box.
============================================ */
.ant-modal-close {
position: absolute !important;
top: 0 !important;
right: 0 !important;
z-index: 10 !important;
width: 44px !important;
height: 44px !important;
display: -webkit-box !important;
display: -webkit-flex !important;
display: flex !important;
-webkit-box-align: center !important;
-webkit-align-items: center !important;
align-items: center !important;
-webkit-box-pack: center !important;
-webkit-justify-content: center !important;
justify-content: center !important;
cursor: pointer !important;
background: transparent !important;
border: none !important;
padding: 0 !important;
line-height: 1 !important;
}
.ant-modal-close-x {
display: -webkit-box !important;
display: -webkit-flex !important;
display: flex !important;
-webkit-box-align: center !important;
-webkit-align-items: center !important;
align-items: center !important;
-webkit-box-pack: center !important;
-webkit-justify-content: center !important;
justify-content: center !important;
width: 100% !important;
height: 100% !important;
font-size: 16px !important;
line-height: 1 !important;
2026-01-27 18:27:29 +05:30
}
.ant-table-wrapper .ant-table-thead > tr > th,
.ant-table-wrapper .ant-table-thead > tr > td {
color: #ffffff !important;
}
.ant-table table {
border-spacing: 0 0 !important;
}
2026-02-11 11:35:57 +05:30
.ant-table-tbody .ant-table-cell {
font-family: 'Poppins' !important;
}
2026-04-02 11:06:57 +05:30
.ant-modal-wrap {
display: flex;
align-items: center;
justify-content: center;
}
.ant-dropdown {
position: absolute !important;
}
/* ============================================
ANDROID WEBVIEW FLEX GAP FIX
Chrome 83 and below does not support gap in flexbox.
Use margin fallbacks instead.
============================================ */
/* Ant Design Space fix */
.ant-space {
display: -webkit-box !important;
display: -webkit-flex !important;
display: flex !important;
}
.ant-space-horizontal > .ant-space-item:not(:last-child) {
margin-right: 8px !important;
margin-bottom: 0 !important;
}
.ant-space-vertical > .ant-space-item:not(:last-child) {
margin-bottom: 8px !important;
margin-right: 0 !important;
}
/* Ant Design Row/Col grid fix */
.ant-row {
display: -webkit-box !important;
display: -webkit-flex !important;
display: flex !important;
-webkit-flex-wrap: wrap !important;
flex-wrap: wrap !important;
margin-left: -8px;
margin-right: -8px;
}
.ant-col {
padding-left: 8px;
padding-right: 8px;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
/* Global flex gap fallback for custom components.
If you use gap: Xpx on a flex container, add class
'flex-gap-8', 'flex-gap-12', 'flex-gap-16' instead */
.flex-gap-4 > *:not(:last-child) {
margin-right: 4px;
}
.flex-gap-8 > *:not(:last-child) {
margin-right: 8px;
}
.flex-gap-12 > *:not(:last-child) {
margin-right: 12px;
}
.flex-gap-16 > *:not(:last-child) {
margin-right: 16px;
}
.flex-gap-24 > *:not(:last-child) {
margin-right: 24px;
}
.flex-col-gap-4 > *:not(:last-child) {
margin-bottom: 4px;
}
.flex-col-gap-8 > *:not(:last-child) {
margin-bottom: 8px;
}
.flex-col-gap-12 > *:not(:last-child) {
margin-bottom: 12px;
}
.flex-col-gap-16 > *:not(:last-child) {
margin-bottom: 16px;
}
.flex-col-gap-24 > *:not(:last-child) {
margin-bottom: 24px;
}
/* Global old Android flex gap polyfill.
JS marks gap-using flex containers with [data-old-flex-gap="1"] and
writes --old-row-gap / --old-col-gap values per container. */
/* .old-android-webview [data-old-flex-gap] {
margin-top: calc(var(--old-row-gap) * -0.5);
margin-left: calc(var(--old-col-gap) * -1.6);
}
.old-android-webview [data-old-flex-gap] > * {
margin-top: var(--old-row-gap);
margin-left: var(--old-col-gap);
} */
.old-android-webview [data-old-flex-gap] {
margin-top: calc(var(--old-row-gap) * -0.5);
margin-left: calc(var(--old-row-gap) * -0);
}
.old-android-webview [data-old-flex-gap] > * {
margin-top: var(--old-row-gap);
margin-right: var(--old-col-gap, 0px);
}
.old-android-webview [data-old-flex-gap] > *:last-child {
margin-right: 0px !important;
}
/* Old Android horizontal category margin spacing (gap not working - use margins) */
.old-android-webview .CategoryHorizontal-master-container > * {
margin-right: 1rem !important;
margin-left: 0.3rem !important;
}
.old-android-webview .CategoryHorizontal-master-container > *:last-child {
margin-right: 0 !important;
}
.old-android-webview .CategoryHorizontal-scroll-container > * {
margin-right: 0.5rem !important;
}
.old-android-webview .CategoryHorizontal-scroll-container > *:last-child {
margin-right: 0 !important;
}
/* Table shrink fix */
.old-android-webview .BSCategory1-tablecont,
.old-android-webview [class*="-tablecont"] {
min-width: 420px !important;
width: 420px !important;
max-width: 450px !important;
flex-grow: 1 !important;
}
/* Old Android itemcard rupee ₹ more left space + item name centered */
.old-android-webview .BSItemCard-itemPrice,
.old-android-webview .BSItemCard-itemMRP,
.old-android-webview .qtyUomName-itemCard {
padding-left: 0rem !important;
padding-right: 1.5rem !important;
width: 135px !important;
letter-spacing: 0 !important;
font-size: 13px !important;
}
.old-android-webview .BSItemCard-itemName {
text-align: center !important;
justify-content: center !important;
margin: 0 10px !important;
display: block !important;
padding: 0 1px !important;
}
/* Old Android global layout fix - BSLayout1Master table width like margin locks */
.old-android-webview .BSLayout1Master {
--table-width-fix: 430px;
}
.flex-wrap > * {
margin: 4px;
}
/* gap values map */
[data-gap='2'] > * {
margin: 2px;
}
[data-gap='4'] > * {
margin: 4px;
}
[data-gap='8'] > * {
margin: 8px;
}
[data-gap='10'] > * {
margin: 10px;
}
[data-gap='16'] > * {
margin: 16px;
}
[data-gap='24'] > * {
margin: 24px;
}
[data-gap='34'] > * {
margin: 34px;
}
p {
margin-bottom: 0;
}
/* ==============================================
GLOBAL MARGIN CONTROL - OLD ANDROID DEVICE
Easily control margins globally with CSS vars
Overrides polyfill auto-margins
============================================== */
:root {
/* Global Margin Scale - Easily adjust all at once */
--GLOBAL_MARGIN-XXS: 0.125rem;
--GLOBAL_MARGIN-XS: 0.25rem;
--GLOBAL_MARGIN-SM: 0.5rem;
--GLOBAL_MARGIN-MD: 1rem;
--GLOBAL_MARGIN-LG: 1.5rem;
--GLOBAL_MARGIN-XL: 2rem;
/* Old Android Lock - Force control */
--ANDROID_MARGIN-LOCK: 1px 0.4px !important;
}
/* Lock ALL margins for old Android - Full Control */
.old-android-webview *,
.old-android-webview *:before,
.old-android-webview *:after {
margin: var(--ANDROID_MARGIN-LOCK, inherit) !important;
}
/* Per-element margin classes - Use these everywhere */
.margin-xxs { margin: var(--GLOBAL_MARGIN-XXS) !important; }
.margin-xs { margin: var(--GLOBAL_MARGIN-XS) !important; }
.margin-sm { margin: var(--GLOBAL_MARGIN-SM) !important; }
.margin-md { margin: var(--GLOBAL_MARGIN-MD) !important; }
.margin-lg { margin: var(--GLOBAL_MARGIN-LG) !important; }
.margin-xl { margin: var(--GLOBAL_MARGIN-XL) !important; }
/* Directional control */
.margin-t-sm { margin-top: var(--GLOBAL_MARGIN-SM) !important; }
.margin-r-sm { margin-right: var(--GLOBAL_MARGIN-SM) !important; }
.margin-b-sm { margin-bottom: var(--GLOBAL_MARGIN-SM) !important; }
.margin-l-sm { margin-left: var(--GLOBAL_MARGIN-SM) !important; }
/* OLD ANDROID SUMMARY TABLE FIX - Prevent collapse */
.old-android-webview table,
/* Disable AntD margin interference */
.ant-space-item,
.ant-row > *,
.ant-col > * {
margin: var(--ANDROID_MARGIN-LOCK, 0) !important;
}