body {
    background-color: #F5F5F5;
    font-family: 'Segoe UI', sans-serif;
}

.navbar-brand {
    color: #FFFFFF !important;
    font-size: 1.3rem;
}

.card {
    border-radius: 12px;
    background: #FFFFFF;
}

.card-title {
    color: #0A1A33;
    font-weight: 600;
}

footer {
    font-size: 0.9rem;
}


/* ============================
   TRADO LOGIN – PREMIUM STYLE
   ============================ */

.trado-login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0b1c33, #020c1b);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.trado-login-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    padding: 3rem;
    border-radius: 18px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.25);
}

.trado-login-brand {
    text-align: center;
    margin-bottom: 2rem;
}

    .trado-login-brand h1 {
        margin: 0;
        font-size: 2rem;
        font-weight: 700;
        letter-spacing: 1px;
    }

    .trado-login-brand p {
        margin-top: .4rem;
        font-size: .95rem;
        color: #6b7280;
    }

.trado-form-group {
    margin-bottom: 1.2rem;
}

.trado-input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    font-size: 1rem;
    transition: all .2s ease;
}

    .trado-input:focus {
        outline: none;
        border-color: #2563eb;
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    }

.trado-login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .9rem;
    margin-bottom: 1.6rem;
}

    .trado-login-options a {
        color: #2563eb;
        text-decoration: none;
    }

.trado-remember {
    display: flex;
    align-items: center;
    gap: .4rem;
}

.trado-btn-primary {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;
    background: #2563eb;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
}

    .trado-btn-primary:hover {
        background: #1e40af;
        transform: translateY(-1px);
    }

.trado-login-footer {
    margin-top: 1.8rem;
    text-align: center;
    font-size: .9rem;
}

    .trado-login-footer a {
        color: #2563eb;
        text-decoration: none;
    }

    .trado-login-footer .small {
        margin-top: .5rem;
        font-size: .8rem;
        color: #6b7280;
    }


/* ============================
   TRADO – ANIMATIONS
   ============================ */

.trado-animate {
    animation: tradoFadeSlide 0.6s ease-out both;
}

@keyframes tradoFadeSlide {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================
   MOBILE FRIENDLY
   ============================ */

@media (max-width: 480px) {
    .trado-login-card {
        padding: 2rem 1.5rem;
        border-radius: 14px;
    }

    .trado-login-brand h1 {
        font-size: 1.6rem;
    }

    .trado-login-brand p {
        font-size: .85rem;
    }
}


/* ============================
   TRADO SERVICE OPEN
   ============================ */

.trado-card {
    border-radius: 18px;
    overflow: hidden;
}

.trado-soft-box {
    background: #f8fafc;
    border: 1px solid #e9eef5;
    border-radius: 14px;
    padding: 12px 14px;
}

.trado-total-box {
    background: linear-gradient(135deg, #0A1A33, #12284d);
    color: white;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 16px 30px rgba(10, 26, 51, 0.18);
}

.trado-status-pill {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
}

.trado-status-available {
    background: #dcfce7;
    color: #166534;
}

.trado-status-occupied {
    background: #fee2e2;
    color: #991b1b;
}

.trado-status-reserved {
    background: #fef3c7;
    color: #92400e;
}

.trado-status-off {
    background: #e5e7eb;
    color: #374151;
}

/* ============================
   TRADO SERVICE OPEN - PRO
   ============================ */

.trado-card {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #e9eef5;
    box-shadow: 0 10px 24px rgba(10, 26, 51, 0.06);
}

.trado-soft-box {
    background: #f8fafc;
    border: 1px solid #e9eef5;
    border-radius: 14px;
    padding: 12px 14px;
}

.trado-total-box {
    background: linear-gradient(135deg, #0A1A33, #12284d);
    color: white;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 16px 30px rgba(10, 26, 51, 0.18);
}

.trado-status-pill {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
    white-space: nowrap;
}

.trado-status-available {
    background: #dcfce7;
    color: #166534;
}

.trado-status-occupied {
    background: #fee2e2;
    color: #991b1b;
}

.trado-status-reserved {
    background: #fef3c7;
    color: #92400e;
}

.trado-status-off {
    background: #e5e7eb;
    color: #374151;
}

/* Cabeceras limpias */
.trado-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

    .trado-page-header h2 {
        margin-bottom: .2rem;
        font-weight: 700;
        color: #0A1A33;
    }

.trado-page-subtitle {
    color: #6b7280;
    font-size: .96rem;
}

/* Botones táctiles */
.trado-btn-lg-touch {
    min-height: 46px;
    border-radius: 12px;
    font-weight: 600;
}

/* Tablas más limpias */
.trado-table th {
    font-size: .86rem;
    color: #64748b;
    font-weight: 600;
    border-top: none;
}

.trado-table td {
    vertical-align: middle;
}

/* Sticky action bar en móvil */
.trado-mobile-sticky-actions {
    position: sticky;
    bottom: 0;
    z-index: 20;
    background: rgba(245, 245, 245, 0.96);
    backdrop-filter: blur(8px);
    padding-top: .75rem;
    padding-bottom: .2rem;
}

/* Cards de resumen */
.trado-metric-card {
    border-radius: 16px;
    padding: 16px;
    background: white;
    border: 1px solid #e9eef5;
    box-shadow: 0 10px 20px rgba(10, 26, 51, 0.04);
}

.trado-metric-title {
    font-size: .85rem;
    color: #6b7280;
    margin-bottom: .25rem;
}

.trado-metric-value {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0A1A33;
}

/* Mejoras globales mobile */
@media (max-width: 991.98px) {
    .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .navbar-brand img {
        height: 38px !important;
    }

    .navbar-brand span:first-child {
        font-size: 1.15rem !important;
    }

    .trado-card {
        border-radius: 16px;
    }

    .trado-total-box {
        padding: 16px;
    }
}

@media (max-width: 767.98px) {
    h2 {
        font-size: 1.35rem;
    }

    .btn,
    .form-control,
    .form-select {
        min-height: 44px;
    }

    .table-responsive {
        border-radius: 12px;
    }

    .trado-mobile-stack {
        display: flex;
        flex-direction: column;
        gap: .75rem;
    }

        .trado-mobile-stack .btn {
            width: 100%;
        }

    .trado-hide-mobile {
        display: none !important;
    }

    .trado-order-line-card {
        border: 1px solid #e9eef5;
        border-radius: 14px;
        padding: 12px;
        margin-bottom: 10px;
        background: #fff;
    }

        .trado-order-line-card .title {
            font-weight: 700;
            color: #0A1A33;
        }

        .trado-order-line-card .meta {
            font-size: .86rem;
            color: #6b7280;
        }
}

@media (max-width: 575.98px) {
    body {
        font-size: .95rem;
    }

    .card-body {
        padding: 1rem !important;
    }

    .trado-page-header {
        margin-bottom: 1rem;
    }

    .trado-page-subtitle {
        font-size: .9rem;
    }

    .trado-total-box .fs-4,
    .trado-total-box .fs-3 {
        font-size: 1.5rem !important;
    }
}

/* ============================
   TRADO STOCK VIEW PRO
   ============================ */

.trado-stock-ok {
    background: #dcfce7;
    color: #166534;
}

.trado-stock-low {
    background: #fee2e2;
    color: #b91c1c;
}

.trado-stock-out {
    background: #dc2626;
    color: white;
}

.trado-stock-neutral {
    background: #e5e7eb;
    color: #374151;
}

#stockSearch {
    min-height: 46px;
    border-radius: 12px;
}

.stock-card .card-body {
    display: flex;
    flex-direction: column;
}

.stock-card .d-grid {
    margin-top: auto;
}

@media (max-width: 767.98px) {
    .stock-card img {
        height: 150px !important;
    }
}


/* ============================
   TRADO PRODUCTS PRO
   ============================ */

.trado-check-card {
    border: 1px solid #e9eef5;
    border-radius: 14px;
    padding: 14px 16px;
    background: #fff;
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .trado-check-card .form-check-input {
        margin-top: 0;
        width: 1.1rem;
        height: 1.1rem;
    }

    .trado-check-card .form-check-label {
        font-weight: 500;
    }

.product-card .card-body {
    display: flex;
    flex-direction: column;
}

.product-card .d-grid {
    margin-top: auto;
}

@media (max-width: 767.98px) {
    .product-card img {
        height: 150px !important;
    }
}

/* ============================
   TRADO POS PRO
   ============================ */

.pos-product-card .card-title {
    font-size: 0.98rem;
    line-height: 1.25rem;
}

.trado-pos-cart-card {
    position: sticky;
    top: 90px;
}

@media (max-width: 991.98px) {
    .trado-pos-cart-card {
        position: static;
    }
}

@media (max-width: 767.98px) {
    .pos-product-card .card-img-top {
        height: 145px !important;
    }

    .pos-product-card .card-body {
        padding: 0.9rem;
    }
}

/* ============================
   TRADO CLIENTS PRO
   ============================ */

#clientSearch {
    min-height: 46px;
    border-radius: 12px;
}

@media (max-width: 991.98px) {
    #clientsCards .trado-order-line-card {
        margin-bottom: 1rem;
    }
}

.trado-section-title {
    font-weight: 600;
    color: #0A1A33;
    margin-bottom: .25rem;
}

.trado-input-lg {
    min-height: 46px;
    border-radius: 12px;
}

.trado-btn-lg-touch {
    min-height: 46px;
    padding: .55rem 1.2rem;
    border-radius: 12px;
}

.trado-card {
    border-radius: 18px;
}

.trado-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 10px;
}

.trado-page-subtitle {
    color: #6b7280;
    font-size: .92rem;
}

@media (max-width:768px) {
    .trado-page-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =========================
   TRADO DETAIL FIELDS
   ========================= */

.trado-detail-field {
    padding: 12px 0;
}

.trado-detail-label {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6b7280;
    margin-bottom: 3px;
}

.trado-detail-value {
    font-size: .95rem;
    font-weight: 500;
    color: #0A1A33;
    word-break: break-word;
}

/* =========================
   TRADO INVOICES PRO
   ========================= */

.trado-table thead th {
    font-size: .88rem;
    font-weight: 600;
    color: #6b7280;
    background: #f8fafc;
    border-bottom: 1px solid #e9eef5;
}

.trado-table tbody td {
    vertical-align: middle;
}

/* =========================
   TRADO INVOICE CREATE
   ========================= */

.trado-total-box {
    background: #f8fafc;
    border: 1px solid #e9eef5;
    border-radius: 16px;
    padding: 14px 18px;
    min-width: 180px;
    text-align: right;
}

#linesTable input,
#linesTable select,
#invoiceLinesMobile input,
#invoiceLinesMobile select {
    border-radius: 10px;
}

@media (max-width: 991.98px) {
    #invoiceLinesMobile .trado-order-line-card {
        margin-bottom: 1rem;
    }
}

/* =========================
   TRADO INVOICE EDIT
   ========================= */

.trado-soft-box {
    background: #f8fafc;
    border: 1px solid #e9eef5;
    border-radius: 16px;
    padding: 14px 16px;
}

@media (max-width: 991.98px) {
    #invoiceLinesMobile .trado-order-line-card {
        margin-bottom: 1rem;
    }
}

/* =========================
   TRADO INVOICE DETAILS
   ========================= */

.trado-pdf-frame-wrap {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}

.trado-pdf-frame {
    width: 100%;
    height: 900px;
    border: none;
    display: block;
}

.trado-sticky-card {
    position: sticky;
    top: 90px;
}

@media (max-width: 991.98px) {
    .trado-sticky-card {
        position: static;
    }

    .trado-pdf-frame {
        height: 720px;
    }
}

@media (max-width: 767.98px) {
    .trado-pdf-frame {
        height: 560px;
    }
}

/* =========================
   TRADO PAYMENTS PRO
   ========================= */

@media (max-width: 991.98px) {
    .trado-mobile-stack {
        width: 100%;
    }

        .trado-mobile-stack > * {
            width: 100%;
        }
}

.badge-partial {
    background: #f59e0b;
    color: #111;
    font-weight: 600;
}

/* =========================
   TRADO JOBS / BADGES
   ========================= */

.badge-partial {
    background: #f59e0b;
    color: #111;
    font-weight: 600;
}

@media (max-width: 991.98px) {
    .trado-mobile-stack {
        width: 100%;
    }

        .trado-mobile-stack > * {
            width: 100%;
        }
}

/* =========================
   TRADO QUOTES CREATE PRO
   ========================= */

.trado-quote-summary-card {
    border: 1px solid #e9eef5;
    border-radius: 16px;
    background: #fff;
    padding: 16px;
}

.trado-quote-total-highlight {
    background: linear-gradient(135deg, #0A1A33, #16345f);
    color: #fff;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 16px 30px rgba(10, 26, 51, 0.18);
}

    .trado-quote-total-highlight .amount {
        font-size: 2rem;
        font-weight: 700;
        line-height: 1.1;
    }

.trado-sticky-card {
    position: sticky;
    top: 90px;
}

@media (max-width: 991.98px) {
    .trado-sticky-card {
        position: static;
    }
}

/* =========================
   TRADO QUOTES DETAILS PRO
   ========================= */

.trado-quote-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.trado-quote-side-actions .btn {
    min-height: 46px;
    border-radius: 12px;
    font-weight: 600;
}

@media (max-width: 767.98px) {
    .trado-quote-info-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   TRADO QUOTES DELETE PRO
   ========================= */

.trado-danger-soft {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    border-radius: 14px;
    padding: 14px 16px;
}

.trado-warning-soft {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    border-radius: 14px;
    padding: 14px 16px;
}

/* =========================
   TRADO NOTES PRO
   ========================= */

.trado-note-snippet {
    color: #6b7280;
    font-size: .88rem;
    line-height: 1.4;
}

.trado-note-card {
    border: 1px solid #e9eef5;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(10, 26, 51, 0.05);
}

.trado-note-title {
    font-weight: 700;
    color: #0A1A33;
}

.trado-empty-state-icon {
    font-size: 2.4rem;
    color: #94a3b8;
}

@media (max-width: 767.98px) {
    .trado-order-line-card {
        border-radius: 16px;
    }
}

/* =========================
   TRADO NOTES CREATE PRO
   ========================= */

#Content {
    min-height: 260px;
    resize: vertical;
    border-radius: 12px;
}

.trado-note-preview-box {
    background: #f8fafc;
    border: 1px solid #e9eef5;
    border-radius: 14px;
    padding: 14px 16px;
}

.trado-note-stat {
    font-size: .9rem;
    color: #6b7280;
}

/* =========================
   TRADO ADMIN TENANTS PRO
   ========================= */

.trado-admin-kpi {
    border-radius: 16px;
    border: 1px solid #e9eef5;
    background: #fff;
    padding: 16px;
    box-shadow: 0 10px 24px rgba(10, 26, 51, 0.05);
}

.trado-admin-kpi-title {
    font-size: .85rem;
    color: #6b7280;
    margin-bottom: .25rem;
}

.trado-admin-kpi-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0A1A33;
}
/* =========================
   TRADO BILLS / PAYABLES PRO
   ========================= */

.trado-bill-balance {
    font-weight: 700;
    color: #0A1A33;
}

.trado-bill-status-open {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.trado-bill-status-overdue {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.trado-bill-status-paid {
    background: #ecfdf5;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.trado-bill-status-canceled {
    background: #f3f4f6;
    color: #4b5563;
    border: 1px solid #d1d5db;
}

/* =========================
   TRADO BILLS EDIT PRO
   ========================= */

.trado-bill-summary-box {
    background: #f8fafc;
    border: 1px solid #e9eef5;
    border-radius: 16px;
    padding: 16px;
}

.trado-bill-balance-strong {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0A1A33;
}

/* =========================
   TRADO BILLS DETAILS PRO
   ========================= */

.trado-payment-amount {
    font-weight: 700;
    color: #0A1A33;
}

.trado-bill-note-box {
    white-space: pre-wrap;
    line-height: 1.6;
    color: #0A1A33;
}

/* =========================
   TRADO BILLS CREATE PRO
   ========================= */

.trado-bill-create-summary {
    background: #f8fafc;
    border: 1px solid #e9eef5;
    border-radius: 16px;
    padding: 16px;
}

    .trado-bill-create-summary .value {
        font-weight: 700;
        color: #0A1A33;
    }

/* =========================
   TRADO BILLS ADD PAYMENT PRO
   ========================= */

.trado-payment-preview-box {
    background: #f8fafc;
    border: 1px solid #e9eef5;
    border-radius: 16px;
    padding: 16px;
}

.trado-payment-balance {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0A1A33;
}

/* =========================
   TRADO JOBS PRO
   ========================= */

.trado-job-total {
    font-weight: 700;
    color: #0A1A33;
}

.trado-job-filter-card .form-label {
    font-weight: 600;
}

.trado-job-status {
    font-size: .78rem;
    font-weight: 600;
}

@media (max-width: 767.98px) {
    .trado-order-line-card .title {
        line-height: 1.35;
    }
}

.trado-total-box {
    background: #f8fafc;
    border: 1px solid #e9eef5;
    border-radius: 16px;
    padding: 14px 18px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    overflow: hidden;
    flex: 0 0 48px;
    display: grid;
    place-items: center;
}

    .brand-mark img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }