AVS-Carton-Shipment-Verifier/wwwroot/css/site.css

787 lines
12 KiB
CSS

html {
font-size: 14px;
min-height: 100%;
}
body {
margin: 0;
background: #f3f6fb;
color: #223a5f;
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}
.dashboard-shell {
min-height: 100vh;
display: flex;
flex-direction: column;
}
.topbar {
height: 48px;
background: #0b2f6b;
color: #fff;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 16px;
border-bottom: 2px solid #1b4383;
}
.topbar-brand {
display: flex;
align-items: center;
gap: 8px;
font-size: 0.95rem;
font-weight: 700;
letter-spacing: 0.2px;
}
.brand-icon {
font-size: 0.9rem;
}
.topbar-siren {
display: flex;
align-items: center;
gap: 8px;
color: #ff9aa7;
font-size: 0.9rem;
font-weight: 700;
}
.dashboard-main {
flex: 1;
padding: 10px;
display: grid;
gap: 10px;
}
.top-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 10px;
}
.kpi-grid {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
gap: 10px;
align-items: stretch;
}
.section-title-center {
justify-content: center;
}
.panel-available-cartons {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
min-height: 100%;
}
.available-cartons-value {
font-size: 3.25rem;
font-weight: 800;
color: #0d3b7a;
line-height: 1.05;
letter-spacing: -0.5px;
margin: 4px 0 2px;
}
.available-cartons-subtitle {
color: #637898;
font-size: 1.05rem;
font-weight: 600;
}
.panel-status,
.panel-verification-result,
.panel-scanned-details {
min-height: 100%;
}
.panel {
background: #fff;
border: 1px solid #e2e8f2;
border-radius: 8px;
padding: 12px;
box-shadow: 0 1px 2px rgba(16, 36, 79, 0.06);
}
.section-title {
margin: 0 0 10px;
display: flex;
align-items: center;
gap: 8px;
color: #163b72;
font-size: 0.92rem;
font-weight: 800;
letter-spacing: 0.2px;
}
.section-icon {
font-size: 0.9rem;
color: #4f6f9f;
}
.scan-input-wrap {
height: 42px;
border: 2px solid #8ec7a5;
border-radius: 7px;
display: flex;
align-items: center;
padding: 0 10px;
background: #fff;
}
.scan-icon {
color: #7788a2;
margin-right: 8px;
}
.scan-input {
border: 0;
width: 100%;
outline: none;
color: #344d72;
font-size: 1.5rem;
}
.scan-input::placeholder {
color: #97a5b9;
}
.form-hint {
margin-top: 8px;
color: #5d718f;
font-size: 0.8rem;
}
.panel-status {
text-align: center;
}
.status-mini-icon {
width: 62px;
height: 62px;
border-radius: 50%;
margin: 2px auto 6px;
display: grid;
place-items: center;
background: #8b9cb8;
color: #fff;
font-size: 1.7rem;
font-weight: 700;
}
.status-mini-headline {
color: #10396f;
font-size: 2rem;
font-weight: 800;
}
.status-mini-message {
color: #637898;
margin-top: 2px;
font-size: 1.2rem;
}
.last-updated {
margin-top: 10px;
background: #ebf4ff;
border: 1px solid #d3e3f7;
border-radius: 6px;
font-size: 1.1rem;
padding: 8px;
color: #4f6687;
}
.status-success .status-mini-icon {
background: #3cae58;
}
.status-failed .status-mini-icon {
background: #d54d56;
}
.status-success .status-mini-headline {
color: #2f9950;
}
.status-failed .status-mini-headline {
color: #bf3340;
}
.info-grid {
display: grid;
grid-template-columns: 1fr 180px;
gap: 8px 10px;
align-items: center;
}
.info-grid span {
color: #2b456f;
font-size: 0.88rem;
font-weight: 600;
}
.info-grid strong {
background: #eef4fb;
border-radius: 6px;
min-height: 30px;
display: flex;
align-items: center;
justify-content: center;
color: #3f5579;
font-size: 1.05rem;
}
#detail-marked-by {
background: #e3f4e9;
color: #3ca05b;
}
.panel-history {
padding-bottom: 0;
}
.panel-history-head {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: 10px;
margin-bottom: 10px;
}
.section-title-tight {
margin-bottom: 0;
}
.btn-scan-history {
appearance: none;
border: 1px solid #1b5caa;
background: #0d4a9c;
color: #fff;
font-weight: 700;
font-size: 0.85rem;
padding: 8px 16px;
border-radius: 6px;
cursor: pointer;
letter-spacing: 0.2px;
}
.btn-scan-history:hover {
background: #0a3d82;
}
.btn-scan-history:focus-visible {
outline: 2px solid #5a9fd4;
outline-offset: 2px;
}
.scan-history-dialog {
border: none;
border-radius: 10px;
padding: 0;
max-width: min(980px, 96vw);
width: 100%;
max-height: 88vh;
box-shadow: 0 16px 48px rgba(11, 36, 79, 0.35);
color: #223a5f;
}
.scan-history-dialog--wide {
max-width: min(1180px, 98vw);
}
.scan-history-dialog::backdrop {
background: rgba(11, 47, 107, 0.5);
}
.scan-history-dialog-content {
display: flex;
flex-direction: column;
max-height: 88vh;
}
.scan-history-dialog-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 12px 14px;
border-bottom: 1px solid #e2e8f2;
background: #f6f9fd;
}
.scan-history-dialog-title {
margin: 0;
font-size: 1.05rem;
font-weight: 800;
color: #0d3b7a;
}
.scan-history-dialog-close {
appearance: none;
border: 0;
background: transparent;
color: #4f6687;
font-size: 1.75rem;
line-height: 1;
cursor: pointer;
padding: 4px 8px;
border-radius: 6px;
}
.scan-history-dialog-close:hover {
background: #e8eef8;
color: #223a5f;
}
.scan-history-dialog-toolbar {
display: flex;
align-items: center;
gap: 10px;
padding: 10px 14px;
border-bottom: 1px solid #e2e8f2;
flex-wrap: wrap;
}
.scan-history-filter-label {
font-weight: 700;
font-size: 0.88rem;
color: #2b456f;
}
.scan-history-filter {
min-width: 200px;
padding: 6px 10px;
border-radius: 6px;
border: 1px solid #c5d4e8;
background: #fff;
color: #223a5f;
font-size: 0.88rem;
}
.scan-history-mode-toolbar {
align-items: center;
gap: 10px;
}
.btn-history-mode {
appearance: none;
border: 1px solid #1b5caa;
background: #fff;
color: #0d4a9c;
font-weight: 700;
font-size: 0.85rem;
padding: 7px 14px;
border-radius: 6px;
cursor: pointer;
white-space: nowrap;
margin-left: 4px;
}
.btn-history-mode:hover {
background: #ebf4ff;
}
.btn-history-mode.is-active {
background: #0d4a9c;
color: #fff;
border-color: #0d4a9c;
}
.btn-history-mode:focus-visible {
outline: 2px solid #5a9fd4;
outline-offset: 2px;
}
.scan-history-dialog-body {
flex: 1;
overflow: auto;
padding: 0 14px 14px;
min-height: 120px;
}
.scan-history-dialog-body .table {
margin-top: 10px;
}
.scan-history-modal-empty {
text-align: center;
padding: 24px 12px;
color: #657a98;
font-size: 0.95rem;
}
.is-hidden {
display: none !important;
}
.scan-history-analytics-view {
display: flex;
flex-direction: column;
flex: 1;
min-height: 0;
overflow: auto;
}
.analytics-toolbar {
justify-content: space-between;
align-items: flex-start;
gap: 12px;
}
.analytics-toolbar-filters {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 8px 10px;
}
.analytics-date-input {
padding: 6px 8px;
border-radius: 6px;
border: 1px solid #c5d4e8;
background: #fff;
color: #223a5f;
font-size: 0.88rem;
}
.analytics-date-sep {
color: #637898;
font-weight: 600;
}
.btn-analytics-export {
appearance: none;
border: 1px solid #1b5caa;
background: #fff;
color: #0d4a9c;
font-weight: 700;
font-size: 0.85rem;
padding: 7px 14px;
border-radius: 6px;
cursor: pointer;
white-space: nowrap;
}
.btn-analytics-export:hover {
background: #ebf4ff;
}
.analytics-summary-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 10px;
padding: 12px 14px 0;
}
.analytics-summary-card {
display: flex;
align-items: center;
gap: 10px;
background: #fff;
border: 1px solid #e2e8f2;
border-radius: 8px;
padding: 12px;
box-shadow: 0 1px 2px rgba(16, 36, 79, 0.05);
}
.analytics-summary-icon {
width: 40px;
height: 40px;
border-radius: 50%;
display: grid;
place-items: center;
font-size: 1.1rem;
flex-shrink: 0;
}
.analytics-icon-box {
background: #e8f0fa;
color: #0d4a9c;
}
.analytics-icon-week {
background: #e4f5e8;
color: #2f9950;
}
.analytics-icon-month {
background: #e8f0fa;
color: #0d4a9c;
}
.analytics-icon-total {
background: #e8f0fa;
color: #0d4a9c;
}
.analytics-summary-value {
font-size: 1.35rem;
font-weight: 800;
color: #0d3b7a;
line-height: 1.1;
}
.analytics-summary-label {
font-size: 0.82rem;
color: #637898;
font-weight: 600;
margin-top: 2px;
}
.analytics-charts-row {
display: grid;
grid-template-columns: 1.4fr 1fr;
gap: 12px;
padding: 12px 14px 0;
}
.analytics-chart-panel {
background: #fff;
border: 1px solid #e2e8f2;
border-radius: 8px;
padding: 12px;
min-height: 280px;
}
.analytics-donut-panel {
display: flex;
flex-direction: column;
}
.analytics-panel-title {
margin: 0 0 10px;
font-size: 0.9rem;
font-weight: 800;
color: #163b72;
}
.analytics-bar-chart-wrap {
height: 220px;
position: relative;
}
.analytics-donut-wrap {
height: 180px;
position: relative;
flex: 1;
}
.analytics-legend {
list-style: none;
margin: 8px 0 0;
padding: 0;
font-size: 0.88rem;
color: #2a436a;
}
.analytics-legend li {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 6px;
}
.analytics-legend-swatch {
width: 12px;
height: 12px;
border-radius: 2px;
flex-shrink: 0;
}
.analytics-legend-moved {
background: #3cae58;
}
.analytics-legend-pending {
background: #d5dde8;
}
.analytics-table-section {
padding: 12px 14px;
}
.analytics-table-wrap {
border: 1px solid #d7e1f0;
border-radius: 6px;
overflow: hidden;
max-height: 220px;
}
.analytics-table-wrap .table thead th {
position: sticky;
top: 0;
z-index: 1;
}
.scan-history-dialog-footer {
display: flex;
justify-content: flex-end;
padding: 10px 14px 14px;
border-top: 1px solid #e2e8f2;
margin-top: auto;
}
.btn-scan-history-dialog-close {
appearance: none;
border: 1px solid #c5d4e8;
background: #fff;
color: #2b456f;
font-weight: 700;
font-size: 0.88rem;
padding: 8px 18px;
border-radius: 6px;
cursor: pointer;
}
.btn-scan-history-dialog-close:hover {
background: #f3f6fb;
}
.history-split {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 12px;
}
.history-column {
min-width: 0;
}
.history-subtitle {
margin: 0 0 8px;
font-size: 0.82rem;
font-weight: 800;
color: #1a4a8c;
letter-spacing: 0.15px;
}
.history-wrap {
border: 1px solid #d7e1f0;
border-radius: 6px;
overflow: hidden;
position: relative;
min-height: 132px;
}
.table {
margin: 0;
font-size: 0.85rem;
}
.table thead th {
background: #0d3b7a;
color: #fff;
border: 0;
text-align: left;
font-size: 0.76rem;
font-weight: 700;
padding: 8px 10px;
}
.table tbody td {
padding: 8px 10px;
border-top: 1px solid #e9eff9;
color: #2a436a;
}
.status-pill {
display: inline-block;
min-width: 52px;
padding: 2px 7px;
border-radius: 6px;
font-size: 0.75rem;
text-align: center;
font-weight: 700;
}
.status-true {
background: #e4f5e8;
color: #2f9950;
}
.status-false {
background: #fdeaea;
color: #c63f4a;
}
.history-empty {
position: absolute;
inset: 37px 0 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
background: #fff;
}
.history-empty.is-hidden {
display: none;
}
.empty-icon {
font-size: 2.4rem;
opacity: 0.55;
}
.empty-title {
margin-top: 4px;
font-size: 1.5rem;
color: #445a7f;
font-weight: 700;
}
.empty-text {
font-size: 1.2rem;
color: #657a98;
}
.page-footer {
height: 36px;
background: #0b2f6b;
color: #fff;
font-size: 0.9rem;
display: flex;
justify-content: center;
align-items: center;
gap: 12px;
}
@media (max-width: 1200px) {
.top-grid {
grid-template-columns: 1fr;
}
.kpi-grid {
grid-template-columns: 1fr;
}
.info-grid {
grid-template-columns: 1fr;
}
.history-split {
grid-template-columns: 1fr;
}
.available-cartons-value {
font-size: 2.75rem;
}
.analytics-summary-grid {
grid-template-columns: 1fr 1fr;
}
.analytics-charts-row {
grid-template-columns: 1fr;
}
}