/**
 * Public Forms Page - Custom Styles
 * Table-style layout for forms with aligned PDF and e-Forms columns
 */

/* Forms table styling */
.forms-table {
    margin-bottom: 2rem;
}

.forms-table table {
    margin-bottom: 0;
    border: none !important;
}

.forms-table table,
.forms-table table td,
.forms-table table th {
    border: none !important;
    border-collapse: collapse;
}



.forms-table tbody tr:last-child {
    border-bottom: none;
}

.forms-table td {
    padding: 0.5rem 0.3rem;
    vertical-align: top;
}

/* Form name column styling */
.forms-table .form-name {
    font-weight: 500;
    color: inherit !important; /* Override style.css black color */
    line-height: 1.2 !important;
    padding-left: 0px !important;
    padding-bottom: 0px !important;
}

/* PDF and e-Forms column styling */
.forms-table .pdf-column,
.forms-table .eforms-column {
    width: 120px;
    min-width: 120px;
    text-align: right;
    white-space: nowrap;
}

/* Button styling for forms */
.forms-table .btn {
    font-size: 1.2rem;
    padding: 0.1rem 0.3rem;
    border: none !important;
    background: transparent !important;
    border-radius: 0.25rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.1rem;
}

/* Icon styling */
.forms-table .btn .icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Multiple buttons in same cell */
.forms-table .btn + .btn {
    margin-left: 0.5rem;
}

/* Category headers */
.forms-category-header {
    color: #d1411A;
    font-weight: 700;
    margin-bottom: 0rem;
    margin-top: 2rem;
}

/* Content section body styling for forms page */
.content-section-body {
    padding-bottom: 0px;
    height: auto;
}

.forms-category-header:first-child {
    margin-top: 0;
}
a.btn.btn-link.btn-sm:hover {
    text-decoration: underline !important;
  }

/* Responsive adjustments */
@media (max-width: 1199px) {
    .line-actions-list {
        min-width: 400px !important;
    }
    .line-actions-list li {
        min-width: 200px !important;
        margin-right: 5px !important; /* Reduce gap between li elements */
        margin-bottom: 0 !important;
    }


    .content-section-body {
        padding-bottom: 24px !important;
        height: auto;
    }

}

@media (max-width: 767.98px) {
    .line-actions-list {
        min-width: 400px !important;
    }
    .line-actions-list li {
        min-width: 140px !important;

        margin-right: 5px !important; /* Reduce gap between li elements */
        margin-bottom: 0 !important;
    }
    .forms-table {
        display: none;
    }
}


/* Empty cell styling - show nothing */
.forms-table .empty-cell {
    display: none;
}

/* Table responsiveness */
.forms-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Ensure consistent button heights */
.forms-table .btn {
    min-height: 32px;
    line-height: 1.2;
}

/* Special styling for template row with multiple buttons */
.forms-table .template-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    flex-wrap: nowrap;
}

@media (max-width: 991.98px) {
    .forms-table .template-buttons {
        gap: 0.25rem;
    }
}

/* ===================================================================
 * PRINT STYLES FOR PUBLIC FORMS PAGE
 * =================================================================== */
@media print {
    /* Make PDF download links red and smaller in print */
    .forms-table .btn-link,
    .forms-table .btn-link:link,
    .forms-table .btn-link:visited,
    .forms-table a.btn.btn-link.btn-sm {
        color: rgb(209, 65, 26) !important;
        font-size: 16px !important;
        padding: 0.05rem 0.15rem !important;
        -webkit-print-color-adjust: exact !important;
        color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* Make PDF icons smaller */
    .forms-table .btn .icon {
        width: 16px !important;
        height: 16px !important;
    }
}