37794-vm/static/css/custom_v2.css
2026-02-01 13:59:50 +00:00

339 lines
8.5 KiB
CSS

/* masarX Custom Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@600;700&display=swap');
:root {
--primary-dark: #1A1A1D;
--accent-orange: #FF922B;
--soft-cloud: #F8F9FA;
--slate-blue: #4D96FF;
--glass-bg: rgba(255, 255, 255, 0.1);
}
body {
font-family: 'Inter', sans-serif;
background-color: var(--soft-cloud);
}
h1, h2, h3, h4, h5, h6 {
font-family: 'Outfit', sans-serif;
font-weight: 700;
}
/* --- Masar Date Filter Row (Dynamic Wrapper) --- */
.masar-date-filter-row {
display: flex !important;
flex-direction: row !important;
align-items: center !important;
justify-content: space-between !important;
flex-wrap: nowrap !important;
gap: 2px !important;
width: 100% !important;
box-sizing: border-box !important;
position: relative !important;
z-index: 100 !important;
}
/* Hide any stray shortcuts that might have survived JS cleanup */
.masar-date-filter-row .datetimeshortcuts {
display: none !important;
}
.masar-date-filter-row select {
appearance: auto !important; /* Force native dropdown appearance */
-webkit-appearance: auto !important;
-moz-appearance: auto !important;
width: 32% !important;
min-width: 0 !important;
font-size: 11px !important;
padding: 2px !important; /* Relaxed padding */
height: 28px !important;
box-sizing: border-box !important;
margin: 0 !important;
background-color: white !important;
border: 1px solid #ced4da !important;
border-radius: 4px !important;
color: #495057 !important;
}
.masar-date-filter-row input {
width: 33% !important;
min-width: 0 !important;
font-size: 11px !important;
padding: 0 2px !important;
height: 28px !important;
margin: 0 !important;
box-sizing: border-box !important;
background-color: white !important;
border: 1px solid #ced4da !important;
border-radius: 4px !important;
}
/* Specific fix for date inputs to ensure they look clean */
.masar-date-filter-row input[type="date"] {
line-height: 28px;
}
.masar-date-filter-row input[type="date"]::-webkit-inner-spin-button,
.masar-date-filter-row input[type="date"]::-webkit-calendar-picker-indicator {
width: 12px;
height: 12px;
margin: 0;
padding: 0;
opacity: 0.6;
cursor: pointer;
}
/* --- Other Admin Tweaks --- */
.hero-section {
background: linear-gradient(135deg, var(--primary-dark) 0%, #2D2D30 100%);
padding: 100px 0;
color: white;
position: relative;
overflow: hidden;
}
.glass-card {
background: rgba(255, 255, 255, 0.05);
backdrop-filter: blur(15px);
-webkit-backdrop-filter: blur(15px);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 20px;
padding: 30px;
}
.btn-masarx-primary {
background-color: var(--accent-orange);
color: white;
border: none;
padding: 12px 30px;
border-radius: 12px;
font-weight: 600;
transition: all 0.3s ease;
}
.btn-masarx-primary:hover {
background-color: #E87E1B;
transform: translateY(-2px);
color: white;
}
/* Chat Widget */
#masar-chat-widget {
position: fixed;
bottom: 90px;
right: 20px;
width: 350px;
height: 500px;
z-index: 9999;
display: flex;
flex-direction: column;
}
#masar-chat-toggle {
position: fixed;
bottom: 20px;
right: 20px;
width: 60px;
height: 60px;
border-radius: 50%;
z-index: 9999;
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
background-color: var(--accent-orange);
color: white;
border: none;
transition: transform 0.2s;
}
/* RTL Support for Chat */
[dir="rtl"] #masar-chat-widget {
right: auto;
left: 20px;
}
[dir="rtl"] #masar-chat-toggle {
right: auto;
left: 20px;
}
/* --- Admin Panel RTL Sidebar Override (Agresive) --- */
@media (min-width: 992px) {
[dir="rtl"] .main-sidebar {
left: auto !important;
right: 0 !important;
border-right: none !important;
border-left: 1px solid rgba(0,0,0,0.1) !important;
}
[dir="rtl"] .content-wrapper,
[dir="rtl"] .main-header,
[dir="rtl"] .main-footer {
margin-left: 0 !important;
margin-right: 250px !important;
transition: margin-right .3s ease-in-out !important;
}
[dir="rtl"].sidebar-collapse .main-sidebar {
margin-left: 0 !important;
margin-right: 0 !important;
width: 4.6rem !important;
}
[dir="rtl"].sidebar-collapse .content-wrapper,
[dir="rtl"].sidebar-collapse .main-header,
[dir="rtl"].sidebar-collapse .main-footer {
margin-left: 0 !important;
margin-right: 4.6rem !important;
}
[dir="rtl"] .brand-link {
float: right !important;
width: 100% !important;
text-align: right !important;
}
[dir="rtl"] .brand-image {
float: right !important;
margin-right: 0.8rem !important;
margin-left: 0.5rem !important;
}
[dir="rtl"] .navbar-nav {
flex-direction: row;
}
[dir="rtl"] .navbar-nav .nav-item {
float: right;
}
[dir="rtl"] .ml-auto {
margin-left: 0 !important;
margin-right: auto !important;
}
[dir="rtl"] .mr-auto {
margin-right: 0 !important;
margin-left: auto !important;
}
}
[dir="rtl"] .nav-sidebar .nav-item > .nav-link {
display: flex !important;
flex-direction: row !important;
align-items: center !important;
}
[dir="rtl"] .nav-sidebar .nav-icon {
margin-left: 0.5rem !important;
margin-right: 0 !important;
}
[dir="rtl"] .nav-sidebar .nav-link p {
display: inline-block !important;
margin-right: 0 !important;
text-align: right !important;
width: 100% !important;
}
[dir="rtl"] .nav-sidebar .nav-icon.fa-angle-left {
transform: rotate(180deg);
margin-left: 0 !important;
margin-right: auto !important;
}
[dir="rtl"] .float-right {
float: left !important;
}
[dir="rtl"] .float-left {
float: right !important;
}
[dir="rtl"] .text-right {
text-align: left !important;
}
[dir="rtl"] .text-left {
text-align: right !important;
}
/* Shipment Status Buttons */
.btn-masarx-active {
background-color: #2fb344 !important;
color: white !important;
border: none !important;
padding: 12px 30px !important;
border-radius: 12px !important;
font-weight: 600 !important;
}
.btn-masarx-active:hover {
background-color: #248a35 !important;
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(47, 179, 68, 0.2);
}
.btn-masarx-stopped {
background-color: #d63939 !important;
color: white !important;
border: none !important;
padding: 12px 30px !important;
border-radius: 12px !important;
font-weight: 600 !important;
cursor: not-allowed;
opacity: 0.8;
}
.btn-masarx-stopped:hover {
background-color: #b02a2a !important;
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(214, 57, 57, 0.2);
}
/* Live Ticker Styling - Aggressive Horizontal Enforcement */
.ticker-wrap {
width: 100%;
overflow: hidden !important;
background-color: white;
padding: 15px 0;
border-bottom: 1px solid rgba(0,0,0,0.05);
white-space: nowrap !important;
position: relative;
z-index: 10;
box-shadow: 0 2px 10px rgba(0,0,0,0.02);
display: block !important;
}
.ticker {
display: inline-flex !important; /* Flex ensures items stay in line */
align-items: center;
white-space: nowrap !important;
padding-right: 50px;
box-sizing: content-box;
animation: ticker 40s linear infinite;
will-change: transform;
}
.ticker:hover {
animation-play-state: paused;
}
.ticker-item {
display: inline-flex !important;
align-items: center;
padding: 0 3rem;
font-size: 0.95rem;
color: inherit;
font-weight: 500;
white-space: nowrap !important;
flex-shrink: 0; /* Prevent items from shrinking */
}
.ticker-item i {
color: var(--accent-orange);
margin-right: 12px;
}
.ticker-badge {
font-size: 0.7rem;
padding: 3px 10px;
border-radius: 20px;
background: rgba(0,0,0,0.05); border: 1px solid currentColor;
margin-left: 10px;
vertical-align: middle;
color: inherit; opacity: 0.8;
text-transform: uppercase;
font-weight: 600;
}
@keyframes ticker {
0% { transform: translate3d(0, 0, 0); }
100% { transform: translate3d(-50%, 0, 0); } /* Updated to 50% because we duplicate items */
}
[dir="rtl"] .ticker {
animation: ticker-rtl 40s linear infinite;
}
@keyframes ticker-rtl {
0% { transform: translate3d(0, 0, 0); }
100% { transform: translate3d(50%, 0, 0); }
}