1081 lines
28 KiB
CSS
1081 lines
28 KiB
CSS
:root{--bg:#0f1216;--surface:#151922;--surface-2:#1b2030;--primary:#4f8cff;--primary-600:#3b71db;--text:#e6e8ee;--text-2:#b3b8c6;--border:#2a3244;--success:#22c55e;--warning:#f59e0b;--danger:#ef4444}
|
|
[data-theme="light"]{--bg:#f5f7fa;--surface:#ffffff;--surface-2:#f8f9fb;--primary:#4f8cff;--primary-600:#3b71db;--text:#1a1d23;--text-2:#6b7280;--border:#e5e7eb;--success:#22c55e;--warning:#f59e0b;--danger:#ef4444}
|
|
*{box-sizing:border-box}
|
|
html,body{height:100%;overflow:hidden}
|
|
body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,"Noto Sans",sans-serif;line-height:1.5}
|
|
#app{display:flex;height:100vh;overflow:hidden}
|
|
.sidebar{width:240px;min-width:240px;background:linear-gradient(180deg,var(--surface),var(--surface-2));border-right:1px solid var(--border);display:flex;flex-direction:column;height:100vh;overflow:hidden}
|
|
.brand{padding:16px 20px;font-weight:700;font-size:18px;color:var(--text)}
|
|
.nav{flex:1;overflow-y:auto;overflow-x:hidden;padding:8px 8px 16px}
|
|
.nav-group{margin:8px 0}
|
|
.nav-group-title{padding:8px 12px;color:var(--text-2);font-size:12px;letter-spacing:.04em;text-transform:uppercase}
|
|
.nav-item{display:flex;align-items:center;gap:10px;padding:10px 12px;margin:4px;border-radius:8px;color:var(--text);text-decoration:none;font-size:14px}
|
|
.nav-item:hover{background:rgba(79,140,255,.12)}
|
|
.nav-item.active{background:rgba(79,140,255,.18);outline:1px solid rgba(79,140,255,.4)}
|
|
.nav-item .icon{width:20px;text-align:center}
|
|
.nav-item.has-children{flex-direction:column;gap:0;padding:0;background:transparent}
|
|
.nav-item-btn{width:100%;display:flex;align-items:center;gap:10px;padding:10px 12px;margin:4px;border-radius:8px;background:transparent;border:0;color:var(--text);cursor:pointer;font-size:14px;font-family:inherit}
|
|
.nav-item-btn:hover{background:rgba(79,140,255,.12)}
|
|
.nav-children{max-height:0;overflow:hidden;transition:max-height .3s ease;background:transparent;padding:0}
|
|
.nav-children.open{max-height:320px;padding:4px 0}
|
|
.nav-child{display:flex;align-items:center;gap:8px;padding:8px 12px 8px 16px;margin:2px 8px;border-radius:6px;color:var(--text-2);text-decoration:none;font-size:13px;transition:all 0.2s ease;border-left:2px solid transparent}
|
|
.nav-child:hover{color:var(--text);background:rgba(79,140,255,.12);border-left-color:var(--primary);transform:translateX(2px)}
|
|
.nav-child.active{color:var(--primary);background:rgba(79,140,255,.15);border-left-color:var(--primary);font-weight:500}
|
|
.child-icon{font-size:14px;width:16px;text-align:center;opacity:0.8}
|
|
.caret{margin-left:auto;transition:transform .2s ease}
|
|
.caret.rotate{transform:rotate(90deg)}
|
|
|
|
.theme-toggle-container{padding:16px;border-top:1px solid var(--border);margin-top:auto}
|
|
.theme-toggle-btn{width:100%;display:flex;align-items:center;justify-content:center;padding:10px;background:transparent;border:1px solid var(--border);border-radius:8px;cursor:pointer;transition:all 0.2s ease}
|
|
.theme-toggle-btn:hover{background:rgba(79,140,255,.12);border-color:var(--primary)}
|
|
.theme-icon{width:20px;height:20px;filter:invert(1);transition:transform 0.3s ease}
|
|
[data-theme="light"] .theme-icon{filter:invert(0)}
|
|
.theme-toggle-btn:hover .theme-icon{transform:rotate(20deg)}
|
|
|
|
.btn{border:0;border-radius:8px;padding:8px 12px;font-weight:600;cursor:pointer;background:var(--primary);color:#ffffff}
|
|
.btn:hover{background:var(--primary-600)}
|
|
.btn-secondary{background:#253045;color:var(--text)}
|
|
.btn-secondary:hover{background:#2b3750}
|
|
[data-theme="light"] .btn-secondary{background:#e5e7eb;color:var(--text)}
|
|
[data-theme="light"] .btn-secondary:hover{background:#d1d5db}
|
|
.content{flex:1;min-width:0;display:flex;flex-direction:column;height:100vh;overflow:hidden;background:var(--bg)}
|
|
.content-header{display:flex;align-items:center;justify-content:space-between;padding:14px 20px;border-bottom:1px solid var(--border);background:var(--bg) !important;flex-shrink:0;position:relative;z-index:10}
|
|
[data-theme="light"] .content-header{background:#f5f7fa !important}
|
|
#breadcrumb{color:var(--text-2)}
|
|
#actions{position:relative;z-index:999;display:flex;align-items:center;gap:8px}
|
|
.view{position:relative;padding:20px;flex:1;overflow-y:auto;overflow-x:hidden;background:var(--bg);min-height:0}
|
|
.card{background:var(--surface-2);border:1px solid var(--border);border-radius:12px;padding:16px}
|
|
.grid{display:grid;gap:12px}
|
|
.grid.cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}
|
|
.grid.cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}
|
|
.field{display:flex;flex-direction:column;gap:6px;margin-bottom:12px}
|
|
.field label{color:var(--text-2);font-size:13px}
|
|
.input,select{background:#0c0f14;color:var(--text);border:1px solid var(--border);border-radius:8px;padding:10px}
|
|
.input:focus,select:focus{outline:1px solid var(--primary)}
|
|
[data-theme="light"] .input,[data-theme="light"] select{background:#ffffff;color:var(--text)}
|
|
/* Input with prefix icon */
|
|
.input-wrapper{position:relative;display:flex;align-items:center}
|
|
.input-wrapper .input-prefix{position:absolute;left:12px;color:var(--text-2);font-size:16px;pointer-events:none;display:flex;align-items:center}
|
|
.input-wrapper .input{padding-left:40px}
|
|
.input-wrapper .input:focus + .input-prefix,.input-wrapper .input:focus ~ .input-prefix{color:var(--primary)}
|
|
/* Date input styling */
|
|
input[type="date"]{color-scheme:dark}
|
|
input[type="date"]::-webkit-calendar-picker-indicator{
|
|
filter:invert(1) brightness(1.5) !important;
|
|
cursor:pointer !important;
|
|
}
|
|
input[type="date"]::-webkit-calendar-picker-indicator:hover{
|
|
filter:invert(1) brightness(2) !important;
|
|
}
|
|
|
|
/* Audit date pickers - use custom calendar icon */
|
|
/* Dark theme - use dark icon */
|
|
#audit-date-pdd::-webkit-calendar-picker-indicator,
|
|
#audit-date-yt::-webkit-calendar-picker-indicator{
|
|
background-image: url('../assets/calendar-dark.svg') !important;
|
|
background-size: contain !important;
|
|
background-repeat: no-repeat !important;
|
|
background-position: center !important;
|
|
width: 18px !important;
|
|
height: 18px !important;
|
|
cursor: pointer !important;
|
|
opacity: 0.7 !important;
|
|
filter: none !important;
|
|
}
|
|
#audit-date-pdd::-webkit-calendar-picker-indicator:hover,
|
|
#audit-date-yt::-webkit-calendar-picker-indicator:hover{
|
|
opacity: 1 !important;
|
|
}
|
|
|
|
/* Light theme - use light icon */
|
|
[data-theme="light"] input[type="date"]{color-scheme:light}
|
|
[data-theme="light"] input[type="date"]::-webkit-calendar-picker-indicator{
|
|
filter:none !important;
|
|
opacity: 0.7 !important;
|
|
}
|
|
[data-theme="light"] input[type="date"]::-webkit-calendar-picker-indicator:hover{
|
|
opacity: 1 !important;
|
|
}
|
|
[data-theme="light"] #audit-date-pdd::-webkit-calendar-picker-indicator,
|
|
[data-theme="light"] #audit-date-yt::-webkit-calendar-picker-indicator{
|
|
background-image: url('../assets/calendar.svg') !important;
|
|
}
|
|
|
|
.row{display:flex;gap:12px;flex-wrap:wrap}
|
|
.row .col{flex:1;min-width:240px}
|
|
.actions{display:flex;gap:8px}
|
|
.badge{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:4px 10px;font-size:12px;background:#1f2535;color:var(--text-2)}
|
|
.badge.success{background:rgba(34,197,94,.15);color:#8be59f}
|
|
.badge.warning{background:rgba(245,158,11,.15);color:#f8cf88}
|
|
.badge.danger{background:rgba(239,68,68,.15);color:#f4a3a3}
|
|
[data-theme="light"] .badge{background:#e5e7eb;color:#374151}
|
|
[data-theme="light"] .badge.success{background:rgba(34,197,94,.15);color:#16a34a}
|
|
[data-theme="light"] .badge.warning{background:rgba(245,158,11,.15);color:#d97706}
|
|
[data-theme="light"] .badge.danger{background:rgba(239,68,68,.15);color:#dc2626}
|
|
.list{list-style:none;padding:0;margin:0}
|
|
.list li{display:flex;justify-content:space-between;padding:8px 10px;border-bottom:1px dashed var(--border)}
|
|
.list::-webkit-scrollbar,.nav::-webkit-scrollbar,.view::-webkit-scrollbar{width:8px;height:8px}
|
|
.list::-webkit-scrollbar-track,.nav::-webkit-scrollbar-track,.view::-webkit-scrollbar-track{background:transparent}
|
|
.list::-webkit-scrollbar-thumb,.nav::-webkit-scrollbar-thumb,.view::-webkit-scrollbar-thumb{background:rgba(255,255,255,.1);border-radius:4px}
|
|
.list::-webkit-scrollbar-thumb:hover,.nav::-webkit-scrollbar-thumb:hover,.view::-webkit-scrollbar-thumb:hover{background:rgba(255,255,255,.15)}
|
|
[data-theme="light"] .list::-webkit-scrollbar-thumb,[data-theme="light"] .nav::-webkit-scrollbar-thumb,[data-theme="light"] .view::-webkit-scrollbar-thumb{background:rgba(0,0,0,.1)}
|
|
[data-theme="light"] .list::-webkit-scrollbar-thumb:hover,[data-theme="light"] .nav::-webkit-scrollbar-thumb:hover,[data-theme="light"] .view::-webkit-scrollbar-thumb:hover{background:rgba(0,0,0,.15)}
|
|
.toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);background:var(--surface-2);color:var(--text);padding:10px 14px;border-radius:10px;border:1px solid var(--border);opacity:0;pointer-events:none;transition:opacity .2s ease}
|
|
.toast.show{opacity:1}
|
|
.overlay{position:fixed;inset:0;background:rgba(0,0,0,.4);display:flex;align-items:center;justify-content:center}
|
|
.overlay.hidden{display:none}
|
|
.loader{display:flex;gap:8px}
|
|
.loader .dot{width:10px;height:10px;border-radius:999px;background:var(--primary);animation:bounce .9s ease infinite}
|
|
.loader .dot:nth-child(2){animation-delay:.15s}
|
|
.loader .dot:nth-child(3){animation-delay:.3s}
|
|
@keyframes bounce{0%,100%{transform:translateY(0);opacity:.7}50%{transform:translateY(-8px);opacity:1}}
|
|
.fade-enter{opacity:0;transform:translateY(8px)}
|
|
.fade-enter-active{transition:opacity .25s ease-out,transform .25s ease-out;opacity:1;transform:translateY(0)}
|
|
.error{color:#ffb4b4}
|
|
.menu-toggle{display:none}
|
|
@media(max-width:1024px){.grid.cols-3{grid-template-columns:repeat(2,minmax(0,1fr))}}
|
|
@media(max-width:768px){.sidebar{position:fixed;top:0;bottom:0;left:-240px;z-index:20;transition:left .2s ease}.sidebar.open{left:0}.content{margin-left:0}.menu-toggle{display:inline-flex;align-items:center;gap:8px;background:transparent;color:var(--text);border:1px solid var(--border);border-radius:8px;padding:8px}}
|
|
/* File upload status styles */
|
|
#ship-file-status.success,
|
|
#defect-file-status.success,
|
|
#ship-manual-status.success {
|
|
color: var(--success);
|
|
font-weight: 500;
|
|
}
|
|
|
|
#ship-file-status.error,
|
|
#defect-file-status.error,
|
|
#ship-manual-status.error {
|
|
color: var(--danger);
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* Format requirements box */
|
|
.format-requirements {
|
|
margin-bottom: 12px;
|
|
padding: 12px;
|
|
background: rgba(79, 140, 255, 0.08);
|
|
border: 1px solid rgba(79, 140, 255, 0.2);
|
|
border-radius: 8px;
|
|
font-size: 13px;
|
|
color: var(--text);
|
|
}
|
|
|
|
[data-theme="light"] .format-requirements {
|
|
background: rgba(79, 140, 255, 0.06);
|
|
border: 1px solid rgba(79, 140, 255, 0.15);
|
|
}
|
|
|
|
.format-requirements > div {
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
margin-top: 12px;
|
|
}
|
|
|
|
.row {
|
|
display: flex;
|
|
gap: 12px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.col {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
/* Shipment query result styles */
|
|
.result-card {
|
|
margin-top: 16px;
|
|
padding: 16px;
|
|
border-radius: 8px;
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
.result-card.success {
|
|
background: rgba(34, 197, 94, 0.1);
|
|
border-color: var(--success);
|
|
}
|
|
|
|
.result-card.error {
|
|
background: rgba(239, 68, 68, 0.1);
|
|
border-color: var(--danger);
|
|
}
|
|
|
|
.result-title {
|
|
font-weight: 600;
|
|
font-size: 16px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.result-card.success .result-title {
|
|
color: var(--success);
|
|
}
|
|
|
|
.result-card.error .result-title {
|
|
color: var(--danger);
|
|
}
|
|
|
|
.result-item {
|
|
padding: 6px 0;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.result-item .label {
|
|
font-weight: 500;
|
|
color: var(--text-2);
|
|
margin-right: 8px;
|
|
}
|
|
|
|
#query-result .error {
|
|
color: var(--danger);
|
|
padding: 12px;
|
|
background: rgba(239, 68, 68, 0.1);
|
|
border-radius: 6px;
|
|
margin-top: 12px;
|
|
}
|
|
|
|
/* User menu styles */
|
|
.user-menu-container {
|
|
position: relative;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.user-avatar-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
background: transparent;
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
padding: 6px 12px;
|
|
cursor: pointer;
|
|
color: var(--text);
|
|
transition: all 0.2s ease;
|
|
font-family: inherit;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.user-avatar-btn:hover {
|
|
background: rgba(79, 140, 255, 0.1);
|
|
border-color: var(--primary);
|
|
}
|
|
|
|
.user-avatar-img {
|
|
width: 28px;
|
|
height: 28px;
|
|
border-radius: 50%;
|
|
object-fit: cover;
|
|
background: var(--surface-2);
|
|
}
|
|
|
|
.user-name-display {
|
|
font-weight: 500;
|
|
max-width: 120px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.user-dropdown {
|
|
position: absolute;
|
|
top: calc(100% + 8px);
|
|
right: 0;
|
|
min-width: 160px;
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
|
|
z-index: 1000;
|
|
overflow: hidden;
|
|
}
|
|
|
|
[data-theme="light"] .user-dropdown {
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.user-dropdown-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 12px 16px;
|
|
cursor: pointer;
|
|
color: var(--text);
|
|
transition: background 0.2s ease;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.user-dropdown-item:hover {
|
|
background: rgba(79, 140, 255, 0.1);
|
|
}
|
|
|
|
.user-dropdown-item .dropdown-icon {
|
|
font-size: 16px;
|
|
width: 20px;
|
|
text-align: center;
|
|
}
|
|
|
|
/* Notification bell styles */
|
|
.notification-bell {
|
|
position: relative;
|
|
background: transparent;
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
padding: 8px 12px;
|
|
cursor: pointer;
|
|
color: var(--text);
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
transition: all 0.2s ease;
|
|
z-index: 999;
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.notification-bell:hover {
|
|
background: rgba(79, 140, 255, 0.1);
|
|
border-color: var(--primary);
|
|
}
|
|
|
|
.notification-bell .bell-icon {
|
|
font-size: 18px;
|
|
}
|
|
|
|
.notification-badge {
|
|
position: absolute;
|
|
top: -4px;
|
|
right: -4px;
|
|
background: var(--danger);
|
|
color: white;
|
|
border-radius: 999px;
|
|
padding: 2px 6px;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
min-width: 18px;
|
|
text-align: center;
|
|
z-index: 1000;
|
|
pointer-events: none;
|
|
}
|
|
|
|
/* Notification panel */
|
|
.notification-panel {
|
|
position: fixed;
|
|
top: 60px;
|
|
right: 20px;
|
|
width: 380px;
|
|
max-height: 500px;
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: 12px;
|
|
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
|
|
z-index: 1000;
|
|
overflow: hidden;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
[data-theme="light"] .notification-panel {
|
|
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.notification-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 16px;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.notification-header h3 {
|
|
margin: 0;
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
color: var(--text);
|
|
}
|
|
|
|
.notification-actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
|
|
.btn-text {
|
|
background: transparent;
|
|
border: none;
|
|
color: var(--primary);
|
|
cursor: pointer;
|
|
font-size: 13px;
|
|
padding: 4px 8px;
|
|
border-radius: 4px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.btn-text:hover {
|
|
background: rgba(79, 140, 255, 0.1);
|
|
}
|
|
|
|
.btn-text.btn-danger {
|
|
color: var(--danger);
|
|
}
|
|
|
|
.btn-text.btn-danger:hover {
|
|
background: rgba(239, 68, 68, 0.1);
|
|
}
|
|
|
|
.notification-list {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
max-height: 440px;
|
|
}
|
|
|
|
.notification-item {
|
|
padding: 12px 16px;
|
|
border-bottom: 1px solid var(--border);
|
|
cursor: pointer;
|
|
transition: background 0.2s ease;
|
|
position: relative;
|
|
padding-left: 20px;
|
|
}
|
|
|
|
.notification-item:hover {
|
|
background: rgba(79, 140, 255, 0.05);
|
|
}
|
|
|
|
.notification-item.unread {
|
|
background: rgba(79, 140, 255, 0.08);
|
|
}
|
|
|
|
.notification-item.unread::before {
|
|
content: '';
|
|
position: absolute;
|
|
left: 8px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
width: 6px;
|
|
height: 6px;
|
|
background: var(--primary);
|
|
border-radius: 999px;
|
|
}
|
|
|
|
.notification-username {
|
|
font-weight: 600;
|
|
color: var(--text);
|
|
font-size: 14px;
|
|
}
|
|
|
|
.notification-action {
|
|
color: var(--text-2);
|
|
font-size: 13px;
|
|
margin-top: 2px;
|
|
}
|
|
|
|
.notification-detail {
|
|
color: var(--text-2);
|
|
font-size: 12px;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.notification-time {
|
|
color: var(--text-2);
|
|
font-size: 11px;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.notification-empty {
|
|
padding: 40px 20px;
|
|
text-align: center;
|
|
color: var(--text-2);
|
|
font-size: 14px;
|
|
}
|
|
|
|
@media(max-width:768px) {
|
|
.notification-panel {
|
|
right: 10px;
|
|
left: 10px;
|
|
width: auto;
|
|
}
|
|
}
|
|
|
|
/* Dashboard metrics - 4 columns always */
|
|
.dashboard-metrics-4col {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
gap: 8px;
|
|
}
|
|
|
|
@media(max-width: 768px) {
|
|
.dashboard-metrics-4col {
|
|
gap: 6px;
|
|
}
|
|
|
|
.dashboard-metrics-4col .card {
|
|
padding: 8px !important;
|
|
}
|
|
|
|
.dashboard-metrics-4col .badge {
|
|
font-size: 14px !important;
|
|
padding: 4px 8px !important;
|
|
}
|
|
}
|
|
|
|
@media(max-width: 480px) {
|
|
.dashboard-metrics-4col {
|
|
gap: 4px;
|
|
}
|
|
|
|
.dashboard-metrics-4col .card {
|
|
padding: 6px !important;
|
|
}
|
|
|
|
.dashboard-metrics-4col .badge {
|
|
font-size: 12px !important;
|
|
padding: 3px 6px !important;
|
|
}
|
|
}
|
|
|
|
/* Dashboard icon - SVG */
|
|
.icon-dashboard {
|
|
width: 30px;
|
|
height: 30px;
|
|
display: inline-block;
|
|
background-image: url('../assets/dashboard.svg');
|
|
background-size: contain;
|
|
background-repeat: no-repeat;
|
|
background-position: center;
|
|
}
|
|
|
|
/* Table styles */
|
|
.table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
background: var(--surface);
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.table thead {
|
|
background: var(--border);
|
|
}
|
|
|
|
.table th {
|
|
padding: 12px;
|
|
text-align: left;
|
|
font-weight: 600;
|
|
color: var(--text);
|
|
border-bottom: 2px solid var(--border);
|
|
}
|
|
|
|
.table td {
|
|
padding: 12px;
|
|
border-bottom: 1px solid var(--border);
|
|
color: var(--text);
|
|
}
|
|
|
|
.table tbody tr:hover {
|
|
background: var(--hover);
|
|
}
|
|
|
|
.table tbody tr:last-child td {
|
|
border-bottom: none;
|
|
}
|
|
|
|
@media(max-width: 768px) {
|
|
.table th,
|
|
.table td {
|
|
padding: 8px;
|
|
font-size: 14px;
|
|
}
|
|
}
|
|
|
|
/* Watermark styles */
|
|
.watermark {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
pointer-events: none;
|
|
z-index: 9999;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.watermark-text {
|
|
position: absolute;
|
|
font-size: 16px;
|
|
color: var(--text);
|
|
opacity: 0.08;
|
|
transform: rotate(-45deg);
|
|
white-space: nowrap;
|
|
user-select: none;
|
|
font-weight: 500;
|
|
}
|
|
|
|
[data-theme="light"] .watermark-text {
|
|
opacity: 0.06;
|
|
}
|
|
|
|
/* 工单页面样式 */
|
|
.page-container{max-width:100%;margin:0 auto}
|
|
.page-header{margin-bottom:24px}
|
|
.page-header h1{font-size:24px;font-weight:700;margin:0;color:var(--text)}
|
|
|
|
.filter-section{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:20px;margin-bottom:20px}
|
|
.filter-row{display:flex;gap:16px;align-items:flex-end;flex-wrap:wrap}
|
|
.filter-item{flex:1;min-width:200px;display:flex;flex-direction:column;gap:6px}
|
|
.filter-item label{color:var(--text-2);font-size:13px;font-weight:500}
|
|
.filter-item input,.filter-item select{background:var(--bg);color:var(--text);border:1px solid var(--border);border-radius:8px;padding:10px;font-size:14px}
|
|
.filter-item input:focus,.filter-item select:focus{outline:2px solid var(--primary);border-color:var(--primary)}
|
|
.filter-actions{display:flex;gap:8px;align-items:flex-end}
|
|
.filter-actions .btn{padding:10px 20px;font-size:14px}
|
|
|
|
.table-container{background:var(--surface);border:1px solid var(--border);border-radius:12px;overflow:hidden;margin-bottom:20px}
|
|
.data-table{width:100%;border-collapse:collapse;font-size:13px}
|
|
.data-table thead{background:var(--surface-2);position:sticky;top:0;z-index:1}
|
|
.data-table th{padding:12px 16px;text-align:left;font-weight:600;color:var(--text);border-bottom:2px solid var(--border);white-space:nowrap}
|
|
.data-table td{padding:12px 16px;border-bottom:1px solid var(--border);color:var(--text-2)}
|
|
.data-table tbody tr:hover{background:rgba(79,140,255,.08)}
|
|
.data-table tbody tr:last-child td{border-bottom:none}
|
|
|
|
.status-badge{display:inline-block;padding:4px 12px;border-radius:12px;font-size:12px;font-weight:500}
|
|
.status-badge.status-pending{background:rgba(245,158,11,.2);color:#f59e0b}
|
|
.status-badge.status-processing{background:rgba(79,140,255,.2);color:#4f8cff}
|
|
.status-badge.status-completed{background:rgba(34,197,94,.2);color:#22c55e}
|
|
.status-badge.status-cancelled{background:rgba(239,68,68,.2);color:#ef4444}
|
|
|
|
.btn-icon{background:transparent;border:none;cursor:pointer;font-size:16px;padding:4px 8px;border-radius:6px;transition:background 0.2s}
|
|
.btn-icon:hover{background:rgba(79,140,255,.15)}
|
|
|
|
.pagination{display:flex;align-items:center;justify-content:center;gap:16px;padding:16px}
|
|
.pagination .btn{min-width:80px}
|
|
.pagination .btn:disabled{opacity:0.5;cursor:not-allowed}
|
|
#page-info{color:var(--text-2);font-size:14px}
|
|
|
|
/* 弹窗样式 */
|
|
.modal{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.6);display:flex;align-items:center;justify-content:center;z-index:1000;backdrop-filter:blur(4px)}
|
|
.modal-content{background:var(--surface);border:1px solid var(--border);border-radius:16px;width:90%;max-width:600px;max-height:90vh;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 20px 60px rgba(0,0,0,0.3)}
|
|
.modal-header{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;border-bottom:1px solid var(--border)}
|
|
.modal-header h2{margin:0;font-size:20px;font-weight:700;color:var(--text)}
|
|
.modal-close{background:transparent;border:none;font-size:28px;color:var(--text-2);cursor:pointer;padding:0;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:6px;transition:all 0.2s}
|
|
.modal-close:hover{background:rgba(239,68,68,0.15);color:var(--danger)}
|
|
.modal-body{padding:24px;overflow-y:auto;flex:1}
|
|
.modal-footer{display:flex;gap:12px;justify-content:flex-end;padding:16px 24px;border-top:1px solid var(--border)}
|
|
|
|
/* 表单网格 */
|
|
.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}
|
|
.form-grid .field.full-width{grid-column:1 / -1}
|
|
.field .required{color:var(--danger);margin-left:2px}
|
|
.field textarea{resize:vertical;font-family:inherit}
|
|
|
|
/* 页面头部样式 */
|
|
.page-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}
|
|
|
|
/* 状态徽章 - 已下发为绿色 */
|
|
.status-badge.status-issued{background:rgba(34,197,94,.2);color:#22c55e}
|
|
|
|
/* 状态徽章 - 已确认为橘黄色 */
|
|
.status-badge.status-confirmed{background:rgba(251,146,60,.2);color:#fb923c}
|
|
|
|
/* 删除按钮样式 */
|
|
.btn-icon.btn-danger:hover{background:rgba(239,68,68,.15);color:var(--danger)}
|
|
|
|
/* 确认按钮样式 */
|
|
.btn-icon.btn-confirm{color:#fb923c}
|
|
.btn-icon.btn-confirm:hover{background:rgba(251,146,60,.15);color:#fb923c}
|
|
|
|
/* 物料清单-采购页面样式 */
|
|
.page-container {
|
|
max-width: 100%;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.page-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 20px;
|
|
padding-bottom: 16px;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.page-header h2 {
|
|
margin: 0;
|
|
font-size: 24px;
|
|
font-weight: 600;
|
|
color: var(--text);
|
|
}
|
|
|
|
.page-actions {
|
|
display: flex;
|
|
gap: 12px;
|
|
}
|
|
|
|
.filter-section {
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: 12px;
|
|
padding: 16px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.filter-row {
|
|
display: flex;
|
|
gap: 12px;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.input-field {
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
padding: 10px 12px;
|
|
font-size: 14px;
|
|
min-width: 200px;
|
|
}
|
|
|
|
.input-field:focus {
|
|
outline: 2px solid var(--primary);
|
|
outline-offset: 0;
|
|
}
|
|
|
|
[data-theme="light"] .input-field {
|
|
background: #ffffff;
|
|
}
|
|
|
|
.table-container {
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: 12px;
|
|
overflow-x: auto;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.data-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.data-table thead {
|
|
background: var(--surface-2);
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 10;
|
|
}
|
|
|
|
.data-table th {
|
|
padding: 12px 16px;
|
|
text-align: left;
|
|
font-weight: 600;
|
|
color: var(--text);
|
|
border-bottom: 2px solid var(--border);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.data-table td {
|
|
padding: 12px 16px;
|
|
border-bottom: 1px solid var(--border);
|
|
color: var(--text);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.data-table tbody tr:hover {
|
|
background: rgba(79, 140, 255, 0.08);
|
|
}
|
|
|
|
.badge {
|
|
display: inline-block;
|
|
padding: 4px 10px;
|
|
border-radius: 12px;
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.badge-success {
|
|
background: rgba(34, 197, 94, 0.15);
|
|
color: #22c55e;
|
|
}
|
|
|
|
.badge-warning {
|
|
background: rgba(245, 158, 11, 0.15);
|
|
color: #f59e0b;
|
|
}
|
|
|
|
.badge-danger {
|
|
background: rgba(239, 68, 68, 0.15);
|
|
color: #ef4444;
|
|
}
|
|
|
|
.badge-info {
|
|
background: rgba(79, 140, 255, 0.15);
|
|
color: #4f8cff;
|
|
}
|
|
|
|
.badge-default {
|
|
background: rgba(107, 114, 128, 0.15);
|
|
color: var(--text-2);
|
|
}
|
|
|
|
.btn-icon {
|
|
background: transparent;
|
|
border: none;
|
|
cursor: pointer;
|
|
font-size: 16px;
|
|
padding: 4px 8px;
|
|
border-radius: 4px;
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
.btn-icon:hover {
|
|
background: rgba(79, 140, 255, 0.12);
|
|
}
|
|
|
|
.pagination {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
gap: 16px;
|
|
padding: 16px;
|
|
}
|
|
|
|
#page-info {
|
|
color: var(--text-2);
|
|
font-size: 14px;
|
|
}
|
|
|
|
/* 模态框样式 */
|
|
.modal {
|
|
display: none;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: rgba(0, 0, 0, 0.6);
|
|
z-index: 1000;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 20px;
|
|
}
|
|
|
|
.modal-content {
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: 12px;
|
|
width: 100%;
|
|
max-width: 600px;
|
|
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.modal-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 20px 24px;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.modal-header h3 {
|
|
margin: 0;
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
color: var(--text);
|
|
}
|
|
|
|
.modal-close {
|
|
background: transparent;
|
|
border: none;
|
|
font-size: 28px;
|
|
color: var(--text-2);
|
|
cursor: pointer;
|
|
padding: 0;
|
|
width: 32px;
|
|
height: 32px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 6px;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.modal-close:hover {
|
|
background: rgba(239, 68, 68, 0.15);
|
|
color: #ef4444;
|
|
}
|
|
|
|
.modal-body {
|
|
padding: 24px;
|
|
max-height: 60vh;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.modal-footer {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 12px;
|
|
padding: 16px 24px;
|
|
border-top: 1px solid var(--border);
|
|
}
|
|
|
|
.form-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, 1fr);
|
|
gap: 16px;
|
|
}
|
|
|
|
.form-group {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
}
|
|
|
|
.form-group label {
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
color: var(--text-2);
|
|
}
|
|
|
|
.required {
|
|
color: #ef4444;
|
|
}
|
|
|
|
.btn-text {
|
|
background: transparent;
|
|
border: none;
|
|
color: var(--primary);
|
|
cursor: pointer;
|
|
padding: 6px 12px;
|
|
border-radius: 6px;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
.btn-text:hover {
|
|
background: rgba(79, 140, 255, 0.12);
|
|
}
|
|
|
|
/* 响应式调整 */
|
|
@media (max-width: 768px) {
|
|
.form-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.filter-row {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.input-field {
|
|
min-width: 100%;
|
|
}
|
|
|
|
.page-header {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: 12px;
|
|
}
|
|
}
|
|
|
|
/* 导出字段选择样式 */
|
|
.export-fields-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, 1fr);
|
|
gap: 12px;
|
|
max-height: 50vh;
|
|
overflow-y: auto;
|
|
padding: 8px;
|
|
background: var(--bg);
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.export-field-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 10px 12px;
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
user-select: none;
|
|
}
|
|
|
|
.export-field-item:hover {
|
|
background: var(--surface-2);
|
|
border-color: var(--primary);
|
|
}
|
|
|
|
.export-field-item input[type="checkbox"] {
|
|
cursor: pointer;
|
|
width: 16px;
|
|
height: 16px;
|
|
accent-color: var(--primary);
|
|
}
|
|
|
|
.export-field-item span {
|
|
font-size: 13px;
|
|
color: var(--text);
|
|
flex: 1;
|
|
}
|
|
|
|
.export-field-item:has(input:checked) {
|
|
background: rgba(79, 140, 255, 0.1);
|
|
border-color: var(--primary);
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.export-fields-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
/* 选择信息样式 */
|
|
.selection-info {
|
|
display: inline-block;
|
|
margin-left: 16px;
|
|
padding: 4px 12px;
|
|
background: rgba(79, 140, 255, 0.15);
|
|
color: var(--primary);
|
|
border-radius: 12px;
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* 表格复选框样式 */
|
|
.data-table input[type="checkbox"] {
|
|
cursor: pointer;
|
|
width: 16px;
|
|
height: 16px;
|
|
accent-color: var(--primary);
|
|
}
|
|
|
|
/* 全选复选框的半选状态 */
|
|
#select-all-checkbox:indeterminate {
|
|
opacity: 0.6;
|
|
}
|
|
|
|
/* 批量删除按钮样式(仅用于实心按钮) */
|
|
.btn.btn-danger {
|
|
background: #ef4444;
|
|
color: #ffffff;
|
|
}
|
|
|
|
.btn.btn-danger:hover {
|
|
background: #dc2626;
|
|
}
|
|
|
|
/* 页面头部调整 */
|
|
.page-header > div:first-child {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|