/* General form styles */

* {
    box-sizing: border-box;
}

.ups-form {
    font-family: inherit;
    color: #000;
}

form.ups-form {
    margin-top: 1em !important;
    margin-bottom: 3em !important;
}

.ups-form-columns {
    max-width: 100%;
    width: 100%;
    justify-self: center;
    margin-top: 1em;
    display: flex;
    gap: 9em !important;
    padding-top: 0;
    padding-right: 6rem;
    padding-bottom: 0;
    padding-left: 100px;
}

.ups-form-col {
    width: 50% !important;
}

.ups-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}

/* Text, select, textarea fields */
.ups-form input[type="text"],
.ups-form select,
.ups-form textarea {
    width: calc(100% - 30px);
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    font-size: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ups-form select {
    min-width: 100% !important;
}

.ups-form input[type="text"]:focus,
.ups-form select:focus,
.ups-form textarea:focus {
    border-color: #999;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}

/* File upload field wrapper */
.ups-form input[type="file"] {
    display: none;
    /* hide default ugly file input */
}

.ups-file-upload {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.ups-file-upload input[type="text"] {
    flex: 1;
    border: none;
    box-shadow: none;
    pointer-events: none;
    background: transparent;
}

.ups-file-upload button {
    background: #0a0e34;
    /* dark navy */
    color: #fff;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 600;
    transition: background 0.2s ease;
}

.ups-file-upload button:hover {
    background: #12184a;
}

.ups-inline-image-upload button {
    background: #0a0e34;
    /* dark navy */
    color: #fff;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 600;
    transition: background 0.2s ease;
}

.ups-inline-image-upload button:hover {
    background: #12184a;
}

#ups_insert_image-inline {
    display: none;
}

.ups-form .ups-submit-btn {
    background: #15A393 !important;
    border-radius: 20px;
    color: #E9F2F8;
    border-color: transparent !important;
    padding: 9px 3em !important;
    font-size: 14px;
    display: flex;
    gap: 1em;
    font-size: 14px;
    cursor: pointer;
}

.post_new_heading {
    border-bottom: 1px solid #707070;
}

.alert {
    padding: 10px 10em;
    border-radius: 4px;
    margin-bottom: 15px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.post_new_heading .post_new_heading_inner {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(112, 112, 112, 0.25);
    max-width: 100%;
    width: 100%;
    justify-self: center;
    padding-bottom: 1em;
    align-items: center;
    padding-top: 0;
    padding-right: 6rem;
    padding-left: 100px;
}

.post_new_heading span {
    color: #5D6781;
    font-size: 16px;
    font-weight: bold;
}

.ups-table-wrapper {
    max-width: 1515px !important;
    margin: 2em 0;
}


.post_count {
    font-weight: bold !important;
}

tr {
    background: #F1F1F1 !important;
}

.ups-actions div {
    display: flex;
    justify-content: center;
}

.first-td {
    padding-left: 2em !important;
}

main {
    min-height: 580px;
}

.ups-actions a {
    display: block !important;
}

.ups-actions a:hover {}

.ups-actions a:hover svg .ellipse {
    fill: #253080 !important;
    transition: 0.3s ease-in-out;
}

.ups-actions a:hover svg .border-g {
    transition: 0.3s ease-in-out;
    stroke: #253080 !important;
}

.ups-actions a:hover svg path.reverse {
    stroke: white !important;
    transition: 0.3s ease-in-out;
}


.ups-table-wrapper {
    width: 100%;
    border-collapse: collapse;
    font-family: sans-serif;
}

.ups-table-header,
.ups-table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.ups-add-new {
    background: #00A99D;
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    text-decoration: none;
}

.ups-user-posts {
    width: 100%;
    border-spacing: 0;
    border-radius: 8px;
    overflow: hidden;
}

.ups-user-posts th {
    background: #1B2B69;
    color: #fff;
    padding: 10px;
    text-align: left;
}

.ups-user-posts td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.ups-table-header {
    margin: 1em 0 !important;
}

.ups-table-header .ups-add-new {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ups-table-footer {
    background: #041036 !important;
    padding: 1em;
    border-radius: 4px;
}

.ups-table-footer .post_count {
    color: white !important;
}

.page-numbers {
    text-decoration: none;
    font-weight: 400;
    transition: 0.3s ease-in-out;
    background: white;
    padding: 10px 18px;
    border-radius: 4px;
}

.page-numbers.current {
    color: white;
    background: #15A393 !important;
}

.page-numbers:hover {
    color: white;
    background: #15A393 !important;
}

.ups-user-posts tr:nth-child(even) {
    background: #f5f5f5;
}

.ups-status.approved {
    color: green;
    font-weight: 400;
}

.first-td * {
    font-weight: 400 !important;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.table-responsive table {
    width: 100%;
    border-collapse: collapse;
}


.ups-status.pending {
    color: #000000;
    font-weight: 400;
}

.ups-actions a {
    margin-right: 8px;
    text-decoration: none;
    font-size: 16px;
}

@media (max-width: 475px) {

    .top-head-section {
        padding: 1em !important;
    }

    .breadcrumbs a {
        color: white;
    }

    .ups-form {
        display: flex;
        flex-direction: column-reverse;
    }

    .ups-form-columns {
        flex-direction: column;
        padding: 0 1em !important;
        gap: 1em !important;
        max-width: calc(100vw - 2em) !important;
    }

    .ups-form-columns .ups-form-col {
        width: 100% !important;
    }

    .post_new_heading,
    .post_new_heading_inner {
        border: unset !important;
    }

    .post_new_heading .post_new_heading_inner {
        padding: 0 1em !important;
        max-width: calc(100vw - 2em) !important;
    }

    .post_new_heading .post_new_heading_inner button {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .post_new_heading span {
        display: none !important;
    }
}

.ups-inline-image-upload {
    margin-bottom: 40px;
}