ultimatepos/Modules/ManagementTools/Resources/views/layouts/styles.blade.php

724 lines
20 KiB
PHP

<style>
.mt-page { margin-top: 4px; }
.mt-nav-wrap {
margin: 0 15px 16px;
border-radius: 10px;
background: #fff;
border: 1px solid #e2e8f0;
box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
overflow: visible;
position: relative;
z-index: 10;
}
.mt-nav-wrap .container-fluid {
padding: 0 8px;
display: flex;
flex-wrap: wrap;
align-items: center;
}
.mt-nav-wrap .navbar-header {
display: flex;
align-items: center;
flex-shrink: 0;
}
.mt-nav-wrap .navbar-collapse {
flex: 1;
padding: 0;
}
.mt-nav-brand {
display: flex;
align-items: center;
gap: 10px;
color: #0f172a !important;
font-size: 15px;
font-weight: 700;
padding: 12px 14px !important;
}
.mt-nav-brand i {
width: 34px;
height: 34px;
border-radius: 8px;
background: linear-gradient(135deg, #1a4b8c, #2563eb);
color: #fff;
display: inline-flex;
align-items: center;
justify-content: center;
font-size: 14px;
}
.mt-nav-groups {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 2px;
margin: 0 !important;
float: none !important;
}
.mt-nav-groups > li {
float: none !important;
}
.mt-nav-groups > li > a {
color: #475569 !important;
font-weight: 600;
font-size: 13px;
padding: 10px 14px !important;
border-radius: 8px;
margin: 6px 2px;
display: inline-flex;
align-items: center;
gap: 6px;
}
.mt-nav-groups > li > a .caret {
margin-right: 2px;
margin-left: 0;
}
.mt-nav-groups > li > a:hover,
.mt-nav-groups > li > a:focus {
background: #f1f5f9 !important;
color: #1a4b8c !important;
}
.mt-nav-groups > li.active > a,
.mt-nav-groups > li.open > a {
background: #eff6ff !important;
color: #1a4b8c !important;
}
.mt-nav-groups .dropdown-menu {
border: 1px solid #e2e8f0;
border-radius: 10px;
box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
padding: 6px;
min-width: 220px;
margin-top: 2px;
}
.mt-nav-groups .dropdown-menu > li > a {
padding: 9px 12px;
border-radius: 6px;
color: #334155;
font-size: 13px;
font-weight: 500;
display: flex;
align-items: center;
gap: 8px;
}
.mt-nav-groups .dropdown-menu > li > a i {
width: 18px;
text-align: center;
color: #64748b;
font-size: 13px;
}
.mt-nav-groups .dropdown-menu > li > a:hover,
.mt-nav-groups .dropdown-menu > li > a:focus {
background: #f8fafc;
color: #1a4b8c;
}
.mt-nav-groups .dropdown-menu > li.active > a {
background: #eff6ff;
color: #1a4b8c;
font-weight: 600;
}
.mt-nav-wrap .navbar-toggle {
border-color: #cbd5e1;
margin: 10px 0;
}
.mt-nav-wrap .navbar-toggle .icon-bar {
background-color: #475569;
}
.mt-page-header {
margin: 0 15px 20px; padding: 20px 24px;
border-radius: 16px; background: #fff;
border: 1px solid #e8edf5;
box-shadow: 0 6px 24px rgba(27,39,51,0.05);
display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.mt-page-header h1 { margin: 0; font-size: 22px; font-weight: 700; color: #0f172a; }
.mt-card {
margin: 0 15px 20px; border-radius: 16px; background: #fff;
border: 1px solid #e8edf5; box-shadow: 0 6px 24px rgba(27,39,51,0.05); overflow: hidden;
}
.mt-card-header {
padding: 16px 20px; border-bottom: 1px solid #eef2f7;
display: flex; align-items: center; justify-content: space-between;
background: #fafbfe;
flex-wrap: wrap;
gap: 8px;
}
.mt-card-title { margin: 0; font-size: 15px; font-weight: 700; color: #0f172a; }
.mt-card-body { padding: 18px 20px; }
#mt-cockpit-content.mt-is-loading {
opacity: .6;
pointer-events: none;
transition: opacity .15s ease;
}
.mt-btn-primary {
border: none; border-radius: 10px; padding: 8px 16px; font-weight: 600;
color: #fff; background: linear-gradient(90deg, #2563eb, #3b82f6);
box-shadow: 0 4px 14px rgba(37,99,235,0.3);
}
.mt-btn-primary:hover { opacity: 0.92; color: #fff; }
.mt-coming-soon {
text-align: center; padding: 60px 20px; color: #64748b;
}
.mt-coming-soon i { font-size: 48px; color: #cbd5e1; margin-bottom: 16px; }
.mt-kpi-card {
margin: 0 0 14px;
padding: 14px;
border-radius: 12px;
border: 1px solid #e8edf5;
background: #fff;
box-shadow: 0 4px 16px rgba(27,39,51,0.04);
position: relative;
overflow: hidden;
}
.mt-kpi-card span {
display: block;
font-size: 12px;
color: #64748b;
margin-bottom: 8px;
}
.mt-kpi-card strong {
display: block;
font-size: 20px;
color: #0f172a;
font-weight: 700;
}
.mt-kpi-card__icon {
position: absolute;
inset-inline-end: 12px;
top: 12px;
font-size: 18px;
color: #94a3b8;
}
.mt-kpi-card--sales { border-color: #bfdbfe; background: #eff6ff; }
.mt-kpi-card--margin { border-color: #bbf7d0; background: #f0fdf4; }
.mt-kpi-card--receivable { border-color: #fde68a; background: #fffbeb; }
.mt-kpi-card--payable { border-color: #fecaca; background: #fef2f2; }
.mt-kpi-card--clickable,
.mt-metric-box--clickable {
cursor: pointer;
transition: transform .15s ease, box-shadow .15s ease;
}
.mt-kpi-card--clickable:hover,
.mt-metric-box--clickable:hover,
.mt-kpi-card--clickable:focus,
.mt-metric-box--clickable:focus {
transform: translateY(-2px);
box-shadow: 0 8px 20px rgba(27, 39, 51, 0.08);
outline: none;
}
.mt-metric-box {
border: 1px solid #e5eaf3;
border-radius: 10px;
padding: 10px 12px;
background: #f8fbff;
margin-bottom: 10px;
}
.mt-metric-box small {
display: block;
color: #64748b;
margin-bottom: 4px;
}
.mt-metric-box div {
font-size: 20px;
font-weight: 700;
color: #1a4b8c;
}
.mt-trend-chart {
border: 1px solid #e5eaf3;
border-radius: 10px;
background: #fff;
padding: 8px;
margin-bottom: 10px;
}
.mt-legend {
display: inline-block;
width: 18px;
height: 3px;
vertical-align: middle;
margin-left: 6px;
}
.mt-legend--sales { background: #2563eb; }
.mt-legend--purchase { background: #f59e0b; }
.mt-module-card {
border: 1px solid #e5eaf3;
border-radius: 10px;
padding: 10px;
margin-bottom: 12px;
background: #fff;
}
.mt-module-card__head {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 8px;
gap: 6px;
}
.mt-module-card__meta {
color: #64748b;
font-size: 12px;
margin-bottom: 8px;
}
.mt-module-card__head a {
color: #1e293b;
text-decoration: none;
}
.mt-module-card__head a:hover { color: #1a4b8c; }
.mt-exec-strip {
margin: 0 15px 14px;
border: 1px solid #e5eaf3;
border-radius: 12px;
background: #fff;
display: grid;
grid-template-columns: repeat(6, minmax(0, 1fr));
gap: 1px;
overflow: hidden;
}
.mt-exec-strip__item {
background: #f8fafc;
padding: 10px 12px;
}
.mt-exec-strip__item span {
display: block;
color: #64748b;
font-size: 11px;
margin-bottom: 4px;
}
.mt-exec-strip__item strong {
color: #0f172a;
font-size: 14px;
}
.mt-executive-summary {
margin-bottom: 16px;
border-color: #dbeafe;
background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
}
.mt-executive-summary .mt-card-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
flex-wrap: wrap;
}
.mt-executive-summary__opening {
color: #334155;
font-size: 14px;
margin-bottom: 16px;
line-height: 1.6;
}
.mt-executive-summary__section-title {
font-size: 13px;
font-weight: 700;
margin: 0 0 8px;
text-transform: uppercase;
letter-spacing: 0.03em;
}
.mt-executive-summary__section-title--positive { color: #15803d; }
.mt-executive-summary__section-title--negative { color: #b91c1c; }
.mt-executive-summary__section-title--watch { color: #b45309; }
.mt-executive-summary__list {
margin: 0;
padding-left: 18px;
color: #475569;
font-size: 13px;
line-height: 1.55;
}
.mt-executive-summary__list li { margin-bottom: 6px; }
.mt-holding-comparison {
margin-bottom: 16px;
border-color: #e9d5ff;
background: linear-gradient(135deg, #faf5ff 0%, #f5f3ff 100%);
}
.mt-holding-comparison .mt-card-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
flex-wrap: wrap;
}
.mt-drill-tabs {
margin-bottom: 14px;
border-bottom: 1px solid #e5e7eb;
display: flex;
flex-wrap: nowrap;
overflow-x: auto;
white-space: nowrap;
}
.mt-drill-tabs > li {
float: none;
flex: 0 0 auto;
}
.mt-drill-tabs > li > a {
border: none !important;
border-bottom: 2px solid transparent !important;
color: #64748b;
font-weight: 600;
}
.mt-drill-tabs > li.active > a,
.mt-drill-tabs > li.active > a:focus,
.mt-drill-tabs > li.active > a:hover {
border: none !important;
border-bottom: 2px solid #2563eb !important;
color: #1e293b;
background: transparent;
}
.mt-drill-tab-content { padding-top: 8px; }
.mt-drill-lazy {
min-height: 220px;
padding: 24px 12px;
}
.mt-drill-lazy.mt-is-loading {
opacity: 0.65;
}
.mt-drill-lazy__placeholder {
padding: 48px 12px;
font-size: 13px;
}
.mt-drill-card {
background: #f8fafc;
border: 1px solid #e5e7eb;
border-radius: 10px;
padding: 14px 16px;
margin-bottom: 12px;
min-height: 86px;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.mt-drill-card span {
color: #64748b;
font-size: 12px;
}
.mt-drill-card strong {
color: #0f172a;
font-size: 22px;
line-height: 1.2;
}
.mt-period-badge {
display: inline-flex;
align-items: center;
gap: 4px;
margin-top: 6px;
padding: 3px 8px;
border-radius: 999px;
font-size: 11px;
font-weight: 600;
line-height: 1.2;
}
.mt-period-badge small {
font-weight: 500;
opacity: 0.85;
}
.mt-period-badge--favorable {
background: #dcfce7;
color: #166534;
}
.mt-period-badge--unfavorable {
background: #fee2e2;
color: #991b1b;
}
.mt-kpi-card .mt-period-badge {
margin-top: 8px;
}
.mt-drill-mini-chart-wrap {
margin: 6px 0 14px;
border: 1px solid #e5e7eb;
border-radius: 10px;
background: #fff;
padding: 10px 12px;
}
.mt-drill-chart-container {
position: relative;
height: 180px;
}
.mt-trend-chart--canvas {
position: relative;
height: 260px;
}
.mt-trend-chart--canvas canvas {
width: 100% !important;
height: 100% !important;
}
.mt-drill-mini-chart-title {
font-size: 12px;
color: #64748b;
margin-bottom: 8px;
}
.mt-drill-mini-chart {
height: 108px;
display: grid;
grid-template-columns: repeat(6, 1fr);
align-items: end;
gap: 6px;
}
.mt-drill-mini-chart__column {
display: flex;
flex-direction: column;
align-items: center;
gap: 4px;
min-width: 0;
}
.mt-drill-mini-chart__column span {
font-size: 10px;
color: #94a3b8;
white-space: nowrap;
}
.mt-drill-mini-chart__bar {
width: 100%;
min-height: 6px;
border-radius: 6px 6px 0 0;
background: linear-gradient(180deg, #60a5fa, #2563eb);
}
.mt-drill-top-list {
border: 1px solid #e5e7eb;
border-radius: 10px;
background: #fff;
padding: 10px 12px;
}
.mt-drill-top-list h4 {
margin: 0 0 8px;
font-size: 13px;
font-weight: 700;
color: #334155;
}
.mt-drill-top-list__row {
display: block;
font-size: 12px;
color: #64748b;
padding: 8px 0;
border-top: 1px dashed #e2e8f0;
}
.mt-drill-top-list__row:first-of-type {
border-top: none;
padding-top: 0;
}
.mt-drill-top-list__row strong {
color: #0f172a;
font-size: 13px;
}
.mt-drill-top-list__main {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
}
.mt-drill-top-list__actions {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin-top: 6px;
}
.mt-drill-top-list__actions .btn {
border-radius: 999px;
font-weight: 600;
padding: 2px 10px;
}
.mt-drill-top-list__row a {
color: #1e40af;
text-decoration: none;
}
.mt-drill-top-list__row a:hover {
text-decoration: underline;
}
/* ─── Tablet & Mobile: force collapsible nav (override Bootstrap ≥768px) ─── */
@media (max-width: 1199px) {
.mt-nav-wrap {
margin: 0 8px 16px;
border-radius: 12px;
}
.mt-nav-wrap .navbar-header {
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
float: none;
}
.mt-nav-wrap .navbar-toggle {
display: block !important;
border-color: #cbd5e1;
margin: 10px 0;
padding: 9px 10px;
}
.mt-nav-wrap .navbar-toggle .icon-bar {
background-color: #475569;
}
.mt-nav-wrap .navbar-toggle:hover,
.mt-nav-wrap .navbar-toggle:focus {
background: #f1f5f9;
}
.mt-nav-wrap .navbar-collapse.collapse {
display: none !important;
height: 0 !important;
overflow: hidden !important;
padding-bottom: 0;
}
.mt-nav-wrap .navbar-collapse.collapse.in {
display: block !important;
height: auto !important;
overflow: visible !important;
border-top: 1px solid #e2e8f0;
margin-top: 0;
padding-bottom: 8px;
max-height: 70vh;
overflow-y: auto !important;
-webkit-overflow-scrolling: touch;
width: 100%;
}
.mt-nav-groups {
float: none !important;
margin: 4px 0 8px;
flex-direction: column;
align-items: stretch;
width: 100%;
}
.mt-nav-groups > li {
float: none;
display: block;
width: 100%;
}
.mt-nav-groups > li > a {
padding: 11px 14px !important;
margin: 2px 4px;
}
.mt-nav-groups .dropdown-menu {
position: static !important;
float: none;
width: calc(100% - 16px);
margin: 0 8px 6px;
box-shadow: none;
border: 1px solid #e2e8f0;
background: #f8fafc;
}
.mt-nav-brand {
font-size: 15px;
padding: 12px 8px !important;
max-width: calc(100% - 56px);
}
.mt-nav-brand i {
width: 32px;
height: 32px;
flex-shrink: 0;
}
.mt-page-header {
margin: 0 8px 14px;
padding: 16px;
border-radius: 12px;
}
.mt-page-header h1 { font-size: 18px; }
.mt-exec-strip {
margin: 0 8px 12px;
grid-template-columns: repeat(3, minmax(0, 1fr));
}
.mt-card {
margin: 0 8px 14px;
border-radius: 12px;
}
.mt-card-body { padding: 14px; }
.mt-card-header { padding: 12px 14px; }
/* Stack Bootstrap columns inside MT pages */
.mt-page .row > [class*="col-md"],
.mt-page .row > [class*="col-sm"] {
width: 100%;
float: none;
margin-bottom: 12px;
}
.mt-page .row > [class*="col-md"]:last-child,
.mt-page .row > [class*="col-sm"]:last-child {
margin-bottom: 0;
}
/* Scrollable tabs on small screens */
.mt-daily-report-page .mt-dr-tabs,
.mt-page .nav-tabs {
display: flex;
flex-wrap: nowrap;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
white-space: nowrap;
border-bottom: 1px solid #e5e7eb;
}
.mt-daily-report-page .mt-dr-tabs > li,
.mt-page .nav-tabs > li {
float: none;
flex-shrink: 0;
}
.mt-daily-report-page .mt-dr-tabs > li > a,
.mt-page .nav-tabs > li > a {
white-space: nowrap;
font-size: 13px;
padding: 10px 12px;
}
/* Day picker buttons wrap */
.mt-dr-day-picker {
display: flex !important;
flex-wrap: wrap;
justify-content: center;
gap: 6px;
}
.mt-dr-day-picker .list-inline-item {
margin: 0 !important;
}
/* Wide tables scroll horizontally */
.mt-page .table-responsive {
margin: 0 -4px;
border-radius: 8px;
}
.mt-page .mt-dr-slot-table {
min-width: 720px;
}
}
@media (max-width: 639px) {
.mt-nav-wrap { margin: 0 4px 12px; }
.mt-page-header {
margin: 0 4px 12px;
padding: 14px 12px;
flex-direction: column;
align-items: flex-start;
}
.mt-page-header h1 { font-size: 16px; }
.mt-page-header > div {
width: 100%;
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.mt-page-header .btn,
.mt-page-header .mt-btn-primary {
flex: 1 1 auto;
text-align: center;
}
.mt-card { margin: 0 4px 12px; }
.mt-card-body { padding: 12px; }
.mt-exec-strip {
margin: 0 4px 12px;
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.mt-page .form-group { margin-bottom: 12px; }
.mt-page .form-control,
.mt-page .select2-container { width: 100% !important; }
.mt-daily-report-page .mt-dr-slot-table { min-width: 600px; }
.mt-daily-report-page .mt-dr-slot-table td,
.mt-daily-report-page .mt-dr-slot-table th { font-size: 12px; }
}
</style>
<script>
document.addEventListener('DOMContentLoaded', function() {
var nav = document.getElementById('mt-navbar');
if (!nav) return;
nav.addEventListener('click', function(e) {
if (window.innerWidth >= 1200 || !e.target.closest('a')) return;
nav.classList.remove('in');
nav.style.height = '0';
var btn = document.querySelector('.mt-nav-wrap [data-target="#mt-navbar"]');
if (btn) {
btn.classList.add('collapsed');
btn.setAttribute('aria-expanded', 'false');
}
});
});
</script>