﻿.smartgrid-header .btn {
    padding: .375rem 0.75rem;
}


/* ===========================
   CompanyMaster New – Compact Modal UI
   Cuba Theme + Bootstrap 5.3
   =========================== */

/* Compact modal sizing */
.modal-dialog {
   /* max-width: 850px !important;*/
    margin: 0.5rem auto;
}

.modal-content {
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
}

.tiny-select {
    font-size: 13px !important;
    width: auto;
    max-width: 140px;
    background: transparent !important;
    cursor: pointer;
    text-align: center !important;
    border-top: 1px solid gray !important;
}

/* ---------- Modal Header ---------- */
.cmn-modal-header {
   /* background: linear-gradient(135deg, var(--primary-theme, #4b5cff) 0%, #3a4ae4 100%);
    color: #fff;*/
    padding: 0.5rem 0.8rem;
    border-bottom: none;
    border-radius: 9px 9px 0 0;
    position: relative;
}

    .cmn-modal-header::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: rgba(255, 255, 255, 0.2);
    }

    .cmn-modal-header .modal-title {
        font-family: 'Rubik', sans-serif;
        font-size: 0.9rem;
        font-weight: 600;
        letter-spacing: 0.2px;
    }

/* ---------- Modal Body ---------- */
.cmn-modal-body {
    padding: 0.6rem 0.8rem;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 0.82rem;
    background: var(--light-background);
    max-height: 80vh;
    overflow-y: auto;
}

    /* Custom scrollbar for modal body */
    .cmn-modal-body::-webkit-scrollbar {
        width: 4px;
    }

    .cmn-modal-body::-webkit-scrollbar-track {
        background: #f1f5f9;
    }

    .cmn-modal-body::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 2px;
    }

/* ---------- Cards ---------- */
.card {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    margin-bottom: 0.6rem;
    background: #fff;
    transition: box-shadow 0.2s ease;
}

    .card:hover {
        box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
    }

.card-header {
   /* background: linear-gradient(to right, #f8faff, #f0f4ff);*/
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.83rem;
    font-weight: 600;
    color: #475569;
    padding: 0.4rem 0.7rem;
    border-radius: 8px 8px 0 0 !important;
    font-family: 'Roboto' !important;
    border-top: 1px solid var(--theme-default);
}

.card-body {
    padding: 0.5rem 0.7rem;
}

/* ---------- Form Elements ---------- */
.form-label {
    font-weight: 600;
    font-size: 0.78rem;
  /*  color: #475569;*/
    font-family: 'Roboto' !important;
    margin-bottom: 0.08rem;
}



/*  Themes specific custom rules*/

body.dark-only .form-control {
    color: #b2abab !important;
}
body.dark-only .card-header{
    color: var(--theme-default) !important;
}
body.dark-only .form-check-input{
    background: #c4c4c4;
}
body.dark-only .form-check-label {
    color: #c4c4c4;
}
body.dark-only {
    --neutral-fill-input-rest: #1d1e26;
    --neutral-foreground-rest: #b2abab;
}



















/* Compact spacing */
.cmn-modal-body .mb-2 {
    margin-bottom: 0.35rem !important;
}

.cmn-modal-body .mt-1 {
    margin-top: 0.2rem !important;
}

/* Tight grid gutters */
.cmn-modal-body .row.g-2 {
    --bs-gutter-x: 0.6rem;
    --bs-gutter-y: 0.4rem;
}

/* Form controls */
.form-control,
.form-select {
    color: var(--theme-secondary) !important;
    border-radius: 6px;
    padding: 0.3rem 0.5rem;
    border: 1px solid #d1d5db;
    font-family: 'Roboto', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    background: #fff;
    transition: all 0.2s ease;
}

.form-control-sm {
    font-size: .775rem !important;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-theme, #4b5cff);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    background: #fff;
}

/* GSTIN special styling */
input.text-uppercase {
    font-family: 'Roboto Mono', monospace;
    letter-spacing: 0.5px;
    font-weight: 600;
    background: #fefce8;
    border-color: #f59e0b;
}

/* Checkboxes */
.form-check-input {
    width: 0.9rem;
    height: 0.9rem;
    margin-top: 0.15rem;
    border-radius: 3px;
    border: 1px solid #d1d5db;
}

    .form-check-input:checked {
        background-color: var(--primary-theme, #4b5cff);
        border-color: var(--primary-theme, #4b5cff);
    }

.form-check-label {
    font-size: 0.8rem;
    color: #475569;
}

/* Validation */
.validation-summary-errors {
    font-size: 0.78rem;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

/* ---------- Modal Footer ---------- */
.cmn-modal-footer {
    padding: 0.5rem 0.8rem;
    border-top: 1px solid #f1f5f9;
   /* background: #fafbff;*/
    border-radius: 0 0 9px 9px;
}

    .cmn-modal-footer .btn {
        padding: 0.3rem 1rem;
        border-radius: 6px;
        font-family: 'Roboto', sans-serif;
        font-size: 0.82rem;
        font-weight: 600;
        transition: all 0.2s ease;
    }

    /* Secondary button */
    .cmn-modal-footer .btn-secondary {
        background: #64748b;
        border-color: #64748b;
        color: white;
    }

        .cmn-modal-footer .btn-secondary:hover {
            background: #475569;
            border-color: #475569;
        }

    /* Primary button */
    .cmn-modal-footer .btn-primary {
        background: var(--primary-theme, #4b5cff);
        border-color: var(--primary-theme, #4b5cff);
        box-shadow: 0 1px 3px rgba(79, 70, 229, 0.3);
    }

        .cmn-modal-footer .btn-primary:hover {
            background: #3730a3;
            border-color: #3730a3;
            transform: translateY(-1px);
            box-shadow: 0 2px 5px rgba(79, 70, 229, 0.4);
        }

/* Loading spinner */
.spinner-border {
    width: 1.2rem;
    height: 1.2rem;
    border-width: 0.15em;
}

/* Required field asterisk */
.text-danger {
    color: #ef4444 !important;
    font-weight: bold;
}

/* Compact card sections */
.card .card-body .row {
    margin-bottom: 0.2rem;
}

/* Reduce vertical space in form groups */
.form-group {
    margin-bottom: 0.3rem;
}

/* Make the modal more compact on small screens */
@media (max-width: 576px) {
    .modal-dialog {
        margin: 0.3rem auto;
        max-width: 95% !important;
    }

    .cmn-modal-body {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }

    .card-body {
        padding: 0.4rem 0.6rem;
    }
}

.smartgrid-header .spinner-border {
    width: 12px;
    height: 12px;
}

.smartgrid-header .refresh {
    max-height:31.5px; 
}
.grid-paging-status{
  font-size: 11px !important;
}

/*------ Fluent toast*/
/* Scope it just to toasts */
.fluent-toast-provider {
    --success: #22c55e;
    --error: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
}
.fluent-toast-provider { 
    --neutral-layer-floating: #111827;
    --neutral-foreground-rest: #ffffff;
    --stroke-subtle: rgba(255,255,255,.12);
}

