.error-message {
    color: red;
    font-size: smaller;
}

div.error>input {
    border-color: red;
}

up-modal-box {
    height: fit-content;
}

address {
    display: block;
    font-style: italic;
}

.select2 {
    width: 100% !important;
}

:required {
    border: 1px solid red;
}

.required {
    border-left: 2px solid red;
}

form.up-active {
    background-color: gray;
    opacity: 0.5;
    pointer-events: none;
}

a.up-active {
    background-color: gray;
    opacity: 0.5;
    pointer-events: none;
}

up-modal[size=grow] up-modal-box {
    min-width: 80%;
}

.card-body,
.card-footer {
    padding: .5rem;
}

.form-group {
    margin-bottom: .25rem;
}

.col-form-label {
    line-height: 1.0;
}

body {
    line-height: 1;
    font-size: 0.9rem;
}

dd {
    margin-bottom: .25rem;
}

.card-body.p-0 .table tbody>tr>td:first-of-type,
.card-body.p-0 .table tbody>tr>th:first-of-type,
.card-body.p-0 .table tfoot>tr>td:first-of-type,
.card-body.p-0 .table tfoot>tr>th:first-of-type,
.card-body.p-0 .table thead>tr>td:first-of-type,
.card-body.p-0 .table thead>tr>th:first-of-type {
    padding-left: .3rem;
}

.card-body.p-0 .table tbody>tr>td:last-of-type,
.card-body.p-0 .table tbody>tr>th:last-of-type,
.card-body.p-0 .table tfoot>tr>td:last-of-type,
.card-body.p-0 .table tfoot>tr>th:last-of-type,
.card-body.p-0 .table thead>tr>td:last-of-type,
.card-body.p-0 .table thead>tr>th:last-of-type {
    padding-right: .3rem;
}

up-modal-box,
up-drawer-box,
up-cover-box,
up-popup {
    overflow-x: visible;
}

.pas>td {
    border-top-color: white;
}

.green {
    color: green;
}

.red {
    color: red;
}

.dropzone-subcontractor {
    border-color: #0b7c21;
    background-color: #ddffe4;
}

blockquote.editedinfo {
    border-color: #6c757d;
    margin: 0 0 1rem;
    border-left: .25rem solid #6c757d;
    ;
}

.card-header {
    padding: .5rem .5rem;
    border-radius: 0;
}

.card {
    border-radius: 0;
}

.first-page {
    height: 125px;
    min-width: 250px;
    font-size: 30px;
}

.active>.page-link {
    z-index: 3;
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}

.driver-view>.company-name {
    font-size: 1.50rem;
    font-weight: bold;
}

address.driver-view {
    font-size: 1.15rem;
    display: block;
    font-style: normal;
    line-height: 1.5;
    margin-bottom: 1rem;
}

/* ===========================================
   LTL Calculator Styles
   =========================================== */

.calc-tabs {
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 0;
    background: #fff;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}
.calc-tabs .nav-link {
    border: none;
    border-radius: 0;
    padding: 1rem 2rem;
    font-weight: 600;
    color: #64748b;
    background: transparent;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s ease;
}
.calc-tabs .nav-link:hover {
    color: #3b82f6;
    background: #f8fafc;
}
.calc-tabs .nav-link.active {
    color: #2563eb;
    background: #fff;
    border-bottom-color: #2563eb;
}
.calc-tabs .nav-link i {
    margin-right: 0.5rem;
}

.ltl-calc-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}
.ltl-calc-card .card-header {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: none;
    padding: 1rem 1.5rem;
}
.ltl-calc-card .card-header.spain-header {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}
.ltl-calc-card .card-header h3 {
    font-weight: 600;
    letter-spacing: 0.3px;
}
.ltl-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}
.ltl-section-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}
.ltl-section-title i {
    color: #000;
    margin-right: 0.5rem;
}
.ltl-section-title.spain i {
    color: #000;
}
.ltl-inline-form {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}
.ltl-form-group {
    margin-bottom: 0;
}
.ltl-form-group.country-select {
    flex: 0 0 80px;
}
.ltl-form-group.postcode-input {
    flex: 1;
}
.ltl-form-group label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 0.25rem;
    display: block;
}
.ltl-form-group .form-control,
.ltl-form-group select {
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    padding: 0.4rem 0.6rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    height: 36px;
}
.ltl-form-group .form-control:focus,
.ltl-form-group select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.ltl-form-group select {
    background-color: #fff;
    cursor: pointer;
}
.ltl-quantity-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}
.ltl-radio-inline {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.ltl-radio-btn {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.8rem;
}
.ltl-radio-btn:hover {
    border-color: #3b82f6;
}
.ltl-radio-btn input[type="radio"] {
    accent-color: #3b82f6;
    margin: 0;
}
.ltl-radio-btn.active {
    background: #eff6ff;
    border-color: #3b82f6;
}
.ltl-radio-btn label {
    margin: 0;
    cursor: pointer;
    font-weight: 500;
    text-transform: none;
    color: #000;
}
.ltl-quantity-input {
    flex: 0 0 100px;
}
.ltl-quantity-input input {
    text-align: center;
}
.ltl-discount-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}
.ltl-discount-input {
    flex: 0 0 100px;
}
.ltl-discount-input input {
    text-align: center;
}
.ltl-adr-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 6px;
    cursor: pointer;
}
.ltl-adr-check input[type="checkbox"] {
    accent-color: #f59e0b;
    width: 16px;
    height: 16px;
    margin: 0;
}
.ltl-adr-check label {
    margin: 0;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.8rem;
    color: #000;
    text-transform: none;
}
.ltl-special-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 6px;
    cursor: pointer;
}
.ltl-special-check input[type="checkbox"] {
    accent-color: #d97706;
    width: 16px;
    height: 16px;
    margin: 0;
}
.ltl-special-check label {
    margin: 0;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.8rem;
    color: #000;
    text-transform: none;
}
.ltl-hint {
    font-size: 0.7rem;
    color: #666;
    margin-left: 0.5rem;
}
.ltl-submit-section {
    background: #f1f5f9;
    padding: 1.25rem;
    text-align: center;
    border-top: 1px solid #e2e8f0;
}
.ltl-submit-btn {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border: none;
    padding: 0.75rem 2.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.35);
    transition: all 0.3s ease;
}
.ltl-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}
.ltl-submit-btn.spain-btn {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
}
.ltl-submit-btn.spain-btn:hover {
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
}

.spain-dimensions-container {
    border: 1px dashed #e2e8f0;
    border-radius: 8px;
    padding: 0.75rem;
    background: #fafbfc;
}
.spain-dimension-row {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}
.spain-dimension-row:last-of-type {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.spain-dimension-row .dim-qty-group {
    flex: 0 0 60px;
}
.spain-dimension-row .dim-qty-group input {
    text-align: center;
    font-weight: 600;
    background: #fff3cd;
    border-color: #ffc107;
}
.spain-dimension-row .dim-qty-group input:focus {
    background: #fff8e1;
    border-color: #ff9800;
    box-shadow: 0 0 0 2px rgba(255, 152, 0, 0.15);
}
.spain-dimension-row .dim-input-group {
    flex: 1;
}
.spain-dimension-row .dim-input-group input {
    text-align: center;
}
.spain-dimension-row .dim-separator {
    padding-bottom: 0.5rem;
    color: #000;
    font-weight: 600;
    font-size: 0.9rem;
}
.spain-dimension-row .dim-actions {
    display: flex;
    gap: 0.25rem;
    padding-bottom: 0.25rem;
}
.spain-dimension-row .btn-add-dim,
.spain-dimension-row .btn-remove-dim {
    width: 28px;
    height: 28px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 0.85rem;
    transition: all 0.15s ease;
}
.spain-dimension-row .btn-add-dim {
    background: #22c55e;
    border-color: #16a34a;
    color: #fff;
}
.spain-dimension-row .btn-add-dim:hover {
    background: #16a34a;
    transform: scale(1.05);
}
.spain-dimension-row .btn-remove-dim {
    background: #ef4444;
    border-color: #dc2626;
    color: #fff;
}
.spain-dimension-row .btn-remove-dim:hover {
    background: #dc2626;
    transform: scale(1.05);
}
.spain-dim-labels {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
    padding-left: 0;
}
.spain-dim-labels span {
    font-size: 0.65rem;
    font-weight: 600;
    color: #000;
    text-transform: uppercase;
}
.spain-dim-labels .label-qty {
    flex: 0 0 60px;
    text-align: center;
}
.spain-dim-labels .label-dim {
    flex: 1;
    text-align: center;
}
.spain-dim-labels .label-actions {
    width: 60px;
}

.spain-dimensions-row {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
}
.spain-dimensions-row .ltl-form-group {
    flex: 1;
}
.spain-dimensions-row .ltl-form-group input {
    text-align: center;
}
.spain-dimensions-row .dim-separator {
    padding-bottom: 0.5rem;
    color: #000;
    font-weight: 600;
}

.ltl-result-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-top: 1.5rem;
}
.ltl-result-header {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    padding: 0.875rem 1.5rem;
}
.ltl-result-header.spain-result {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}
.ltl-result-header h4 {
    margin: 0;
    font-weight: 600;
    font-size: 1rem;
}
.ltl-relation-badge {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: #fff;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.ltl-relation-badge.spain-badge {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}
.ltl-relation-badge i {
    font-size: 1.1rem;
}
.ltl-result-body {
    padding: 1.25rem;
    background: #fff;
}
.ltl-result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
@media (max-width: 768px) {
    .ltl-result-grid {
        grid-template-columns: 1fr;
    }
}
.ltl-result-table {
    width: 100%;
}
.ltl-result-table tr td {
    padding: 0.4rem 0;
    border-bottom: 1px solid #f1f5f9;
}
.ltl-result-table tr:last-child td {
    border-bottom: none;
}
.ltl-result-table tr td:first-child {
    color: #64748b;
    font-size: 0.85rem;
}
.ltl-result-table tr td:last-child {
    font-weight: 600;
    text-align: right;
    color: #1e293b;
}
.ltl-price-cards {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.ltl-price-card {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem;
    border-radius: 10px;
}
.ltl-price-card.base {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: #fff;
}
.ltl-price-card.adr {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
}
.ltl-price-card.special {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: #fff;
}
.ltl-price-card.discount {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
}
.ltl-price-card.final {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #fff;
    padding: 1rem;
}
.ltl-price-card.final.spain-final {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.ltl-price-cards.spain-segments {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}
.ltl-price-cards.spain-segments .ltl-price-card.final {
    grid-column: 1 / -1;
}
@media (max-width: 992px) {
    .ltl-price-cards.spain-segments {
        grid-template-columns: 1fr;
    }
}
.ltl-price-card.segment {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    min-height: 80px;
}
.ltl-price-card.segment .value {
    font-size: 1.4rem;
    font-weight: 700;
}
.ltl-price-card.segment.spain-segment {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
}
.ltl-price-card.segment.bcn-slo-segment {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: #fff;
}
.ltl-price-card.segment.slo-segment {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #fff;
}
.ltl-price-card.segment.slo-segment.disabled {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
}
.ltl-price-card.segment.slo-segment.disabled .value.muted {
    opacity: 0.6;
    font-size: 1.2rem;
}
.ltl-price-card.segment.slo-segment.disabled .hint {
    font-size: 0.65rem;
    opacity: 0.7;
    margin-top: 0.25rem;
}
.ltl-price-card.segment.slo-segment.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}
.ltl-price-card.segment .value.error-text {
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.9;
}
.ltl-price-card.segment .segment-title {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(255,255,255,0.2);
    padding: 0.4rem 0;
    width: 100%;
    border-radius: 4px;
    margin-bottom: 0.35rem;
}

.spain-volume-input {
    border-color: #22c55e;
    background-color: #f0fdf4;
}
.spain-volume-input:focus {
    border-color: #16a34a;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
    background-color: #fff;
}

.spain-dimensions-locked {
    position: relative;
    opacity: 0.5;
    pointer-events: none;
}
.spain-dimensions-locked::after {
    content: '🔒 Zaklenjeno (volumen vnesen)';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(100, 116, 139, 0.95);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    z-index: 10;
}
.spain-dimensions-locked input {
    background-color: #f1f5f9 !important;
}
.spain-dimensions-locked button {
    display: none !important;
}
.ltl-price-card .icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}
.ltl-price-card.final .icon {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
}
.ltl-price-card .content {
    flex: 1;
}
.ltl-price-card .label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}
.ltl-price-card .value {
    font-size: 1.1rem;
    font-weight: 700;
}
.ltl-price-card.final .label {
    font-size: 0.75rem;
}
.ltl-price-card.final .value {
    font-size: 1.75rem;
}
.ltl-details {
    background: #f8fafc;
    border-left: 4px solid #3b82f6;
    padding: 0.875rem 1rem;
    margin-top: 1.25rem;
    border-radius: 0 8px 8px 0;
}
.ltl-details.spain-details {
    border-left-color: #dc2626;
}
.ltl-details h5 {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}
.ltl-details p {
    margin: 0;
    font-size: 0.8rem;
    color: #475569;
    line-height: 1.6;
}
.ltl-details strong {
    color: #1e293b;
}


.ltl-price-table-section {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e2e8f0;
}
.ltl-price-table-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.ltl-price-table-title i {
    color: #3b82f6;
}
.ltl-full-price-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.ltl-full-price-table thead {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: #fff;
}
.ltl-full-price-table th {
    padding: 0.6rem 0.4rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 0.3px;
}
.ltl-full-price-table td {
    padding: 0.5rem 0.4rem;
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
}
.ltl-full-price-table tbody tr:hover {
    background: #f8fafc;
}
.ltl-full-price-table .highlighted-cell {
    background: #22c55e !important;
    color: #fff !important;
    font-weight: 700;
    border-radius: 4px;
}
.ltl-full-price-table .tier-1-14 {
    border-left: 3px solid #f59e0b;
}
.ltl-full-price-table .tier-15-24 {
    border-left: 3px solid #3b82f6;
}
.ltl-full-price-table .tier-25-33 {
    border-left: 3px solid #22c55e;
}
.ltl-tier-legend {
    display: flex;
    gap: 1.25rem;
    margin-top: 0.6rem;
    flex-wrap: wrap;
}
.ltl-tier-legend-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    color: #64748b;
}
.ltl-tier-legend-item .dot {
    width: 10px;
    height: 10px;
    border-radius: 2px;
}
.ltl-tier-legend-item .dot.tier-1 { background: #f59e0b; }
.ltl-tier-legend-item .dot.tier-2 { background: #3b82f6; }
.ltl-tier-legend-item .dot.tier-3 { background: #22c55e; }