/*
Theme Name: SSM
Theme URI: 
Author: WSS (UA)
Author URI: 
Description: SSM user management by Umer Anwar
Requires at least: 5.3
Tested up to: 6.0
Requires PHP: 5.6
Version: 1.7
Text Domain: ssm
*/
:root {
    --primary-color: rgba(54, 71, 79, 1);
    --secondary-color: rgba(255, 153, 0, 1);
    --light-bg-color: rgba(238, 243, 246, 1);
    --white-bg: rgba(255, 255, 255, 1);
    --text-gray: rgba(47, 62, 69, 1);
    --text-black: rgba(37, 49, 54, 1);
    --white-color: rgba(255, 255, 255, 1);
    --focus-color: #ff0000;
}

body {
    font-family: "Inter", sans-serif;
    font-size: 14px;
    ;
}

.gradient-form {
    min-height: 620px;
    ;
}

@media (min-width: 768px) {
    .gradient-form {
        height: 100vh !important;
    }
}


.card-section-inner {
    max-width: 500px;
    margin: auto;
    height: 100%;
    align-items: center;
    justify-content: center;
    display: flex;
}

.right-image-section {
    position: relative;
    height: 100%;
    margin-right: calc(-.5 * var(--bs-gutter-x));
}

.right-image-section img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
}

.gradient-custom-2 {
    border: none;
    padding: 9px 25px;
    background-color: #ff914d;
    width: 100%;
    ;
}

.h5,
h5 {
    font-size: 20px;
    font-weight: 600;
    ;
}

.form-label {
    margin-bottom: .5rem;
    font-size: 13px;
    font-weight: 600;
    color: #333335;
}

.form-control {
    font-size: 12px;
    height: 43px;
    border: 1px solid #e0e1e3;
}

.password-field {
    position: relative;
}

.password-field .reset-password {
    position: absolute;
    color: rgb(230, 83, 60);
    top: 5px;
    right: 0;
    font-size: 13px;
    text-decoration: none;
    font-weight: 600;
}

.btn.btn-primary {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    height: 44px;
    letter-spacing: 0.6px;
}

.login-error {
    font-size: 12px;
}

label.form-check-label {
    font-size: 12px;
}

.dashboard {
    display: flex;
    height: 100vh;
}

.sidebar {
    width: 220px;
    background: #2c2f55;
    color: #fff;
    display: flex;
    flex-direction: column;
    transition: width 0.3s ease;
}

.sidebar.collapsed {
    width: 70px;
}

.logo {
    padding: 20px;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
}

.menu a {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    color: #d0d0d0;
    text-decoration: none;
    transition: background 0.2s;
}

.menu a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.menu a span {
    transition: opacity 0.3s;
}

.sidebar.collapsed .menu a span {
    opacity: 0;
    pointer-events: none;
}

.menu a:hover,
.menu a.active {
    background: #404378;
    color: #fff;
}

.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;

}

.header {
    height: 60px;
    background: #fff;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
}

.header button {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.settings-icon {
    font-size: 20px;
    cursor: pointer;
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0);
    }

    100% {
        transform: rotate(360deg);
    }
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-profile img {
    border-radius: 50%;
    width: 32px;
    height: 32px;
}

.content {
    padding: 20px;
    background: #f4f6fc;
    flex: 1;
}

img {
    max-width: 100%;
    height: auto;
}

.user-toggle {
    text-decoration: none;
    color: inherit;
}

.header-right a {
    color: inherit;
}

.dropdown-menu {
    font-size: 12px;
}

.invalid-feedback {
    display: none;
    color: red;
}

aside.sidebar {
    height: 100vh;
    overflow: auto;
}

.main-content {
    height: 100vh;
    overflow: auto;
    padding-bottom: 20px;
}

/* width */
::-webkit-scrollbar {
    width: 7px;
}

/* Track */
::-webkit-scrollbar-track {
    background: #f1f1f1;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: #888;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #555;
}

table.dataTable.dtr-inline.collapsed>tbody>tr>th.dtr-control {
    cursor: pointer;
}

table.dataTable.dtr-inline.collapsed>tbody>tr>td.dtr-control:before,
table.dataTable.dtr-inline.collapsed>tbody>tr>th.dtr-control:before {
    content: "" !important;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='12' viewBox='0 0 20 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18.5557 1.7069L10.0001 10.2625L1.44455 1.7069' stroke='%23253136' stroke-width='1.83333' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    width: 36px;
    height: 36px;
    background-repeat: no-repeat;
    border: none !important;
    background-color: rgba(238, 243, 246, 1);
    border-radius: 100%;
    text-align: center;
    background-position: center;
    background-size: 16px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 10px;
    transition: all 0.3s;
}


.table-block .data-table {
}

.table-block .table,
.table-block .data-table {
    font-size: 14px;
    margin: 0;
    line-height: 1.8;
    border: 1px solid var(--light-bg-color);
    vertical-align: middle;
}

.table-block .table th,
.table-block .table td,
.table-block .data-table th,
.table-block .data-table td {
    border: none;
    padding: 12px 9px;
}

.table-block .table th,
.table-block .data-table th {
    background-color: var(--primary-color);
    color: #fff;
    font-weight: 500;
}

.table-block .table th:first-child,
.table-block .table td:first-child {
    padding-left: 22px;
    min-width: 210px;
}

.table-block .table th:last-child,
.table-block .table td:last-child {
    padding-right: 22px;
}

.table-block .table tbody tr:nth-child(even) td {
    background-color: var(--light-bg-color);
}

table.dataTable.dtr-inline.collapsed>tbody>tr.dtr-expanded>td.dtr-control:before {
    transform: translateY(-50%) rotate(-180deg);
}

.table-block .data-table td {
    position: relative;
}

.table-block .data-table td.dtr-control {
    cursor: pointer;
}

.table-block .data-table .table-details th {
    background-color: transparent;
    color: rgba(54, 71, 79, 1);
    border-top: 1px solid rgba(238, 243, 246, 1);
    border-bottom: 1px solid rgba(238, 243, 246, 1);
    font-weight: 600;
}

.dt-layout-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 0;
}

.dt-layout-row .dt-input {
    height: 34px;
    padding: 5px 10px !important;
    line-height: normal;
    font-size: 18px;
    color: var(--text-gray);
    border-color: var(--text-gray) !important;
    border-radius: 8px;
    box-shadow: none !important;
    background-color: #fff;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-clip: padding-box;
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    border: 1px solid;
    margin-left: 10px;
}

.dt-layout-cell.dt-layout-full {
    width: 100%;
    border-radius: 25px 25px 0 0;
    overflow: hidden;
}
.wp-block-column{
    margin-top: 30px !important;
}
.data-table .icon-title {
    min-width: 65px;
    display: inline-block;
    vertical-align: middle;
}

table.table-details {
    width: 100%;
}

strong.icon-title.width-200 {
    min-width: 123px;
}

.acf-button {
    display: inline-block;
    padding: 6px 12px;
    font-size: 13px;
    line-height: 1.5;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid #7e8993;
    border-radius: 3px;
    background: #f6f7f7;
    color: #2271b1;
    transition: all 0.2s ease-in-out;
    font-weight: 600;
    vertical-align: middle;
}

.acf-button:hover {
    background: #f0f0f1;
    border-color: #7e8993;
    color: #135e96;
}
h2 {
    margin-bottom: 30px;
    font-size: 20px;
    font-weight: 400;
}
h2 .acf-button{
    margin-left: 10px;
}

.file-share-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.file-share-wrapper .file-icon svg {
    display: inline-block;
    vertical-align: middle;
}

.share-buttons a {
    margin-left: 5px;
    font-size: 16px;
    color: #555;
    transition: color 0.2s ease;
}

.share-buttons a:hover {
    color: #007bff;
}
.table-block .data-table td.dtr-control {
    cursor: pointer;
    padding-left: 59px;
}
.table-block .data-table td.dtr-control a{
    color: inherit;
    text-decoration: none;
}
.back-button{
    color: inherit;
    font-size: 18px;
    vertical-align: middle;
    text-decoration: none;
}
.edit-button{
    color: inherit;
    text-decoration: none;
}
.expiring-documents{
    text-decoration: none;
    margin: 0;
    padding: 0;
    list-style: none;
}
.wp-block-column {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
h2.wp-block-heading{
    font-weight: 700;;
}