.table td.fit,
.table th.fit {
    white-space: nowrap;
    width: 1%;
}

th,
td {
    vertical-align: middle !important;
}

.text-overflow {
    text-overflow: ellipsis;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    line-clamp: 1;
}

.overflow-2 {
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.overflow-3 {
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

.overflow-4 {
    -webkit-line-clamp: 4;
    line-clamp: 4;
}

.overflow-5 {
    -webkit-line-clamp: 5;
    line-clamp: 5;
}

.f-shadow {
    text-shadow: 2px 2px 4px #000000;
}

a {
    text-decoration: none;
}

ul.flex-screen>li {
    flex: 1 1 auto;
}

.img-cover {
    object-fit: cover;
}

.grecaptcha-badge {
    display: none;
}

.btn-reset {
    all: unset;
    cursor: pointer;
    transition: ease 0.3s;
}

button:focus, 
button:focus-visible, 
button:active {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    appearance: textfield;
    -moz-appearance: textfield;
}

/* ===== Rich-text table styling ===== */
.richtext-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.95rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    display: table;
}
.richtext-content table td,
.richtext-content table th {
    border: 1px solid #dee2e6;
    padding: 10px 14px;
    text-align: left;
    vertical-align: top;
    line-height: 1.5;
}
.richtext-content table tr:first-child td,
.richtext-content table tr:first-child th,
.richtext-content table thead td,
.richtext-content table thead th {
    background: #f0f4f8;
    font-weight: 600;
    color: #1e293b;
}
.richtext-content table tr:nth-child(even) td {
    background: #f8fafc;
}
.richtext-content table ul,
.richtext-content table ol {
    margin: 4px 0;
    padding-left: 1.3em;
}
.richtext-content table li {
    margin-bottom: 2px;
}
@media (max-width: 768px) {
    .richtext-content {
        overflow-x: auto;
    }
    .richtext-content table {
        min-width: 600px;
    }
}