:root { color-scheme: light; font-family: Inter, ui-sans-serif, system-ui, sans-serif; color: #111827; background: #f5f7fa; }
* { box-sizing: border-box; }
body { margin: 0; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 240px; padding: 24px 16px; overflow-y: auto; background: #111827; color: white; }
.logo { margin-bottom: 30px; font-size: 23px; font-weight: 700; }
.menu-item { display: flex; gap: 10px; margin-bottom: 6px; padding: 13px 14px; border-radius: 9px; color: #d1d5db; text-decoration: none; }
.menu-item:hover, .menu-item.active { color: white; background: #1f2937; }
.content { margin-left: 240px; padding: 30px; }
.page-title { margin: 0 0 25px; font-size: 28px; }
.page-heading, .dashboard-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 25px; }
.page-heading .page-title, .dashboard-heading .page-title { margin-bottom: 0; }
.company-subtitle { margin: 6px 0 0; color: #6b7280; font-size: 18px; }
.company-warning { padding: 12px 15px; border-radius: 9px; background: #fef3c7; color: #92400e; font-weight: 600; text-decoration: none; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.card, .panel { border-radius: 14px; background: white; box-shadow: 0 2px 8px rgb(0 0 0 / 6%); }
.card { padding: 22px; color: inherit; text-decoration: none; }
.card:hover { box-shadow: 0 5px 18px rgb(0 0 0 / 10%); }
.card-title { margin-bottom: 8px; color: #6b7280; }
.card-value { font-size: 30px; font-weight: 700; }
.panel { margin-bottom: 24px; padding: 22px; }
.panel.narrow { max-width: 900px; }
h2 { margin: 0 0 18px; font-size: 19px; }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
label { display: grid; gap: 6px; color: #374151; font-size: 13px; font-weight: 600; }
input, select, textarea { width: 100%; padding: 11px 12px; border: 1px solid #d1d5db; border-radius: 8px; background: white; color: #111827; font: inherit; }
input:focus, select:focus, textarea:focus { outline: 2px solid #93c5fd; border-color: #2563eb; }
textarea { resize: vertical; }
.checkbox { display: flex; align-items: center; gap: 8px; margin: 18px 0; }
.checkbox input { width: auto; }
button, .btn-secondary { display: inline-block; border: 0; border-radius: 8px; padding: 10px 13px; cursor: pointer; font: inherit; text-decoration: none; white-space: nowrap; }
.btn-primary { display: inline-block; border-radius: 8px; padding: 10px 13px; background: #111827; color: white; text-decoration: none; }
.btn-secondary { background: #e5e7eb; color: #1f2937; }
.btn-danger { background: #fee2e2; color: #991b1b; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 10px; border-bottom: 1px solid #e5e7eb; text-align: left; }
th { color: #6b7280; font-size: 13px; }
.actions { display: flex; align-items: center; gap: 7px; }
.actions form { margin: 0; }
.status { font-weight: 600; }
.status.active { color: #15803d; }
.status.inactive { color: #6b7280; }
.empty { padding: 28px; color: #6b7280; text-align: center; }
.alert { margin-bottom: 20px; padding: 13px 16px; border-radius: 9px; }
.alert.success { background: #dcfce7; color: #166534; }
.alert.error { background: #fee2e2; color: #991b1b; }
.company-empty { padding: 48px 24px; text-align: center; }
.company-empty p { margin: -5px auto 24px; max-width: 560px; color: #6b7280; }
.empty-icon { margin-bottom: 12px; font-size: 42px; }
.company-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.details-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; margin: 0; }
.details-grid div { min-width: 0; }
.details-grid dt { margin-bottom: 4px; color: #6b7280; font-size: 13px; }
.details-grid dd { margin: 0; overflow-wrap: anywhere; font-weight: 600; }
.span-2 { grid-column: span 2; }
.form-hint { margin: -4px 0 0; color: #6b7280; font-size: 13px; }
.form-actions { display: flex; gap: 10px; margin-bottom: 30px; }
.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.optional { color: #9ca3af; font-weight: 400; }
.route-summary { margin: -3px 0 0; color: #2563eb; font-weight: 600; }
.form-warning { margin: 0; padding: 10px 12px; border-radius: 8px; background: #fef3c7; color: #92400e; }
.cargo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
fieldset { min-width: 0; margin: 0; padding: 18px; border: 1px solid #e5e7eb; border-radius: 10px; }
legend { padding: 0 7px; font-weight: 700; }
.rmpd-status { display: inline-block; padding: 5px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.status-draft { background: #e5e7eb; color: #4b5563; }
.status-ready { background: #dbeafe; color: #1d4ed8; }
.status-sent { background: #dcfce7; color: #15803d; }
.status-error { background: #fee2e2; color: #b91c1c; }
.status-completed { background: #d1fae5; color: #065f46; }
button:disabled { cursor: not-allowed; opacity: .55; }
@media (max-width: 1050px) { .cards { grid-template-columns: repeat(2, 1fr); } .form-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .sidebar { width: 72px; padding: 20px 10px; } .logo { font-size: 0; } .logo::after { content: 'RC'; font-size: 18px; } .menu-item { justify-content: center; font-size: 20px; } .menu-item span { display: none; } .content { margin-left: 72px; padding: 18px; } .cards, .form-grid, .company-sections, .details-grid, .two-columns, .cargo-grid { grid-template-columns: 1fr; } .span-2 { grid-column: auto; } .page-heading, .dashboard-heading { align-items: stretch; flex-direction: column; } .company-warning { text-align: center; } .actions { align-items: stretch; flex-direction: column; } .actions button, .actions a { width: 100%; text-align: center; } .form-actions { flex-direction: column; } .form-actions a, .form-actions button { width: 100%; text-align: center; } fieldset { padding: 14px; } }
