/*
* demo.css
* File include item demo only specific css only
******************************************************************************/

.menu .app-brand.demo {
    height: 64px;
}

.app-brand-logo.demo svg {
    width: 34px;
    height: 24px;
}

.app-brand-text.demo {
    font-size: 1.375rem;
}

/* ! For .layout-navbar-fixed added fix padding top to .layout-page */
/* Default navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
    padding-top: 64px !important;
}
.layout-navbar-fixed
    .layout-wrapper:not(.layout-horizontal):not(.layout-without-menu)
    .layout-page {
    padding-top: 72px !important;
}
/* Navbar page z-index issue solution */
.content-wrapper .navbar {
    z-index: auto;
}

/*
* Content
******************************************************************************/

.demo-blocks > * {
    display: block !important;
}

.demo-inline-spacing > * {
    margin: 1rem 0.375rem 0 0 !important;
}

/* ? .demo-vertical-spacing class is used to have vertical margins between elements. To remove margin-top from the first-child, use .demo-only-element class with .demo-vertical-spacing class. For example, we have used this class in forms-input-groups.html file. */
.demo-vertical-spacing > * {
    margin-top: 1rem !important;
    margin-bottom: 0 !important;
}
.demo-vertical-spacing.demo-only-element > :first-child {
    margin-top: 0 !important;
}

.demo-vertical-spacing-lg > * {
    margin-top: 1.875rem !important;
    margin-bottom: 0 !important;
}
.demo-vertical-spacing-lg.demo-only-element > :first-child {
    margin-top: 0 !important;
}

.demo-vertical-spacing-xl > * {
    margin-top: 5rem !important;
    margin-bottom: 0 !important;
}
.demo-vertical-spacing-xl.demo-only-element > :first-child {
    margin-top: 0 !important;
}

/* Dropdown buttons going out of small screens */
@media (max-width: 576px) {
    #dropdown-variation-demo .btn-group .text-truncate {
        width: 254px;
        position: relative;
    }
    #dropdown-variation-demo .btn-group .text-truncate::after {
        position: absolute;
        top: 45%;
        right: 0.65rem;
    }
}

/*
* Layout demo
******************************************************************************/

.layout-demo-wrapper {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    margin-top: 1rem;
}
.layout-demo-placeholder img {
    width: 900px;
}
.layout-demo-info {
    text-align: center;
    margin-top: 1rem;
}

.pagination {
    margin-bottom: 0px !important;
}

.pagination {
    justify-content: center;
}
.pagination .page-link {
    color: #0d6efd;
}

thead th,
tbody td {
    font-size: 12px !important;
    padding: 8px 10px !important;
}

.accordion-toggle i {
    transition: transform 0.3s ease;
}

/* jab accordion open ho */
.accordion-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.process-item {
    padding: 8px 12px;
    margin-bottom: 6px;
    border: 1px solid #ddd;
    cursor: move;
    background: #f9f9f9;
    border-radius: 6px;
}

.process-item.dragging {
    opacity: 0.5;
}

/* New Form Design */
.machine-form-card {
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.machine-form-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.machine-form-header i {
    font-size: 20px;
    color: #7367f0;
}

.status-toggle {
    display: flex;
    gap: 10px;
}

.status-toggle label {
    flex: 1;
    padding: 10px;
    text-align: center;
    border-radius: 10px;
    cursor: pointer;
    border: 1px solid #d8d6de;
    font-weight: 500;
    transition: 0.3s;
}

.status-toggle input {
    display: none;
}

.status-toggle input:checked + label {
    background: #7367f0;
    color: #fff;
    border-color: #7367f0;
}

.form-control,
.form-select {
    border-radius: 10px;
}

/* Card styling */
.mapping-card {
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

/* Header icon alignment */
.mapping-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mapping-header i {
    font-size: 20px;
    color: #7367f0;
}

/* Select2 multiple styling */
.select2-container .select2-selection--multiple {
    border-radius: 10px;
    border: 1px solid #d8d6de;
    min-height: 42px;
    padding: 4px;
}

.select2-container--default
    .select2-selection--multiple
    .select2-selection__choice {
    background-color: #7367f0;
    border: none;
    color: #fff;
    border-radius: 6px;
    padding: 4px 8px;
}

/* ===== QC STICKER ===== */
.qc-sticker {
    display: inline-block !important;
    width: 170px !important; /* sticker width */
    border: 1px solid #000 !important;
    padding: 3px !important;
    font-family: Arial, sans-serif !important;
    background: #fff !important;
}

/* ===== TABLE ===== */
.qc-sticker .sticker-table {
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: 7px !important; /* ultra small */
    margin: 0 !important;
}

/* Override Bootstrap table styles */
.qc-sticker .sticker-table th,
.qc-sticker .sticker-table td {
    border: 1px solid #000 !important;
    padding: 1px 2px !important;
    line-height: 1 !important;
    text-align: center !important;
    font-size: 7px !important;
}

/* Header bold but tiny */
.qc-sticker .sticker-table th {
    font-weight: 700 !important;
}

/* Checked By text */
.qc-sticker .checked-by {
    font-size: 7px !important;
    margin-top: 2px !important;
    font-weight: bold !important;
    text-align: left !important;
}

.machine-dot {
    font-size: 10px;
    margin-right: 2px;
}

.machine-dot.free {
    color: #28a745;
}

.machine-dot.busy {
    color: #dc3545;
}

.info-box {
    background: #ffffff;
    border-radius: 10px;
    padding: 5px 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #4CAF50;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.info-box:hover {
    /* transform: translateY(-3px); */
    /* box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12); */
}

.info-box label {
    display: block;
    font-size: 13px;
    color: #555;
    margin-bottom: 5px;
    font-weight: 500;
}

.info-box div {
    font-size: 18px;
    font-weight: 600;
    color: #222;
}
