/* SWAMS Ops — Warehouse Staff Interface */
:root {
    --ops-navy:   #001F3F;
    --ops-gold:   #D4AF37;
    --ops-green:  #128c4a;
    --ops-red:    #D32F2F;
    --ops-bg:     #f0f4f8;
    --ops-white:  #ffffff;
    --ops-text:   #102235;
    --ops-muted:  #5e6b78;
    --ops-line:   #d9e2ec;
    --ops-r:      12px;
    --ops-shadow: 0 2px 16px rgba(0,31,63,.09);
}

.ops-wrap { font-family: 'Inter',-apple-system,BlinkMacSystemFont,sans-serif; background: var(--ops-bg); min-height: 100vh; padding: 0; margin: -10px -20px 0; }

/* Header */
.ops-header { background: var(--ops-navy); color: #fff; padding: 18px 28px; display: flex; justify-content: space-between; align-items: center; }
.ops-greeting { font-size: 18px; line-height: 1.4; }
.ops-greeting-wave { font-size: 22px; margin-right: 6px; }
.ops-date { font-size: 12px; opacity: .7; margin-top: 3px; }
.ops-link-btn { color: var(--ops-gold); font-size: 13px; font-weight: 700; text-decoration: none; border: 1px solid var(--ops-gold); padding: 7px 14px; border-radius: 8px; }
.ops-link-btn:hover { background: var(--ops-gold); color: var(--ops-navy); }

/* Summary bar */
.ops-summary-bar { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; background: var(--ops-navy); padding: 0 20px 20px; }
.ops-summary-card { background: rgba(255,255,255,.08); border-radius: var(--ops-r); padding: 16px; text-align: center; margin: 0 4px; }
.ops-summary-card.ops-summary-alert { background: rgba(211,47,47,.25); border: 1px solid rgba(211,47,47,.5); }
.ops-summary-icon { font-size: 24px; margin-bottom: 6px; }
.ops-summary-val { font-size: 28px; font-weight: 800; color: #fff; line-height: 1; }
.ops-summary-label { font-size: 11px; color: rgba(255,255,255,.6); margin-top: 4px; text-transform: uppercase; letter-spacing: .04em; }

/* Body layout */
.ops-body { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 20px; }
.ops-left, .ops-right { display: flex; flex-direction: column; gap: 16px; }

/* Cards */
.ops-card { background: var(--ops-white); border-radius: var(--ops-r); box-shadow: var(--ops-shadow); border: 1px solid var(--ops-line); overflow: hidden; }
.ops-card-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--ops-line); background: #fafbfc; }
.ops-card-header h2 { margin: 0; font-size: 15px; font-weight: 800; color: var(--ops-navy); }

/* Task list */
.ops-task-group-label { padding: 8px 18px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ops-muted); background: #f6f8fc; border-bottom: 1px solid var(--ops-line); }
.ops-task { display: flex; align-items: center; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--ops-line); transition: background .12s; }
.ops-task:last-child { border-bottom: none; }
.ops-task:hover { background: #f6f8fc; }
.ops-task-high { border-left: 3px solid var(--ops-red); background: #fff8f8; }
.ops-task-high:hover { background: #fff0f0; }
.ops-task-icon { font-size: 22px; flex-shrink: 0; }
.ops-task-body { flex: 1; min-width: 0; }
.ops-task-title { font-size: 13px; font-weight: 700; color: var(--ops-text); }
.ops-task-detail { font-size: 11px; color: var(--ops-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ops-task-btn { flex-shrink: 0; background: var(--ops-navy); color: #fff; text-decoration: none; padding: 6px 12px; border-radius: 8px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.ops-task-btn:hover { opacity: .85; color: #fff; }

/* Empty state */
.ops-empty { text-align: center; padding: 32px 20px; color: var(--ops-muted); font-size: 13px; }

/* Quick links */
.ops-quick-links { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; padding: 14px; }
.ops-quick-btn { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 12px 8px; border-radius: 10px; border: 1.5px solid var(--ops-line); font-size: 11px; font-weight: 700; color: var(--ops-text); text-decoration: none; text-align: center; transition: all .12s; background: #fafbfc; }
.ops-quick-btn span { font-size: 20px; }
.ops-quick-btn:hover { background: var(--ops-navy); color: #fff; border-color: var(--ops-navy); }

/* Forms */
.ops-form { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.ops-field { display: flex; flex-direction: column; gap: 4px; }
.ops-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ops-field label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ops-muted); }
.ops-field input, .ops-field select, .ops-field textarea { padding: 9px 12px; border: 1.5px solid var(--ops-line); border-radius: 9px; font-size: 13px; font-family: inherit; color: var(--ops-text); background: #fafbfc; width: 100%; box-sizing: border-box; }
.ops-field input:focus, .ops-field select:focus { outline: none; border-color: var(--ops-navy); background: #fff; }

/* Buttons */
.ops-btn { padding: 11px 20px; border: none; border-radius: 9px; font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit; transition: opacity .12s; }
.ops-btn-full { width: 100%; }
.ops-btn-primary { background: var(--ops-navy); color: #fff; }
.ops-btn-gold { background: var(--ops-gold); color: var(--ops-navy); }
.ops-btn:hover { opacity: .88; }
.ops-btn:disabled { opacity: .5; cursor: not-allowed; }

/* Badges */
.ops-badge { display: inline-block; padding: 3px 9px; border-radius: 100px; font-size: 11px; font-weight: 700; }
.ops-badge-green { background: #d4edda; color: #155724; }
.ops-badge-gold  { background: #fff3cd; color: #856404; }
.ops-badge-grey  { background: #e2e8f0; color: #4a5568; }

/* Recent transactions */
.ops-txn-row { display: flex; align-items: center; gap: 10px; padding: 10px 18px; border-bottom: 1px solid var(--ops-line); }
.ops-txn-row:last-child { border-bottom: none; }
.ops-txn-body { flex: 1; min-width: 0; }
.ops-txn-top { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-bottom: 3px; }
.ops-txn-top strong { font-size: 13px; }
.ops-txn-meta { font-size: 11px; color: var(--ops-muted); }
.ops-print-btn { font-size: 18px; text-decoration: none; flex-shrink: 0; opacity: .7; }
.ops-print-btn:hover { opacity: 1; }

/* Icon button */
.ops-icon-btn { background: none; border: 1px solid var(--ops-line); border-radius: 6px; padding: 4px 8px; cursor: pointer; font-size: 14px; color: var(--ops-muted); }
.ops-icon-btn:hover { background: var(--ops-line); }

/* Notice */
.ops-notice { padding: 10px 14px; border-radius: 8px; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.ops-notice-success { background: #d4edda; color: #155724; }
.ops-notice-error   { background: #f8d7da; color: #721c24; }

/* Responsive */
@media (max-width: 900px) {
    .ops-body { grid-template-columns: 1fr; }
    .ops-summary-bar { grid-template-columns: repeat(2,1fr); gap: 8px; }
    .ops-quick-links { grid-template-columns: repeat(4,1fr); }
}

@media (max-width: 600px) {
    .ops-quick-links { grid-template-columns: repeat(2,1fr); }
    .ops-field-row { grid-template-columns: 1fr; }
}
