html,
body {
    height: 100%;
    font-family: "Inter", sans-serif;
}
*,
p,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Inter", sans-serif;
}

/***** GUEST *****/
.bg-checker-board::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(to right, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: -1;
}
/***** End GUEST *****/

/***** PROFILE *****/
.grid-profile {
    display: grid;
    grid-template-columns: 12rem auto;
    gap: 1.25rem;
}
.grid-profile .left-profile-container {
    border-right: 1px solid #e0e0e0;
    padding: 0.5rem 1rem 0.5rem 0;
}
.grid-profile .right-profile-container {
    padding: 1rem 1rem 0;
}
a.btn.btn-link.btn-profile {
    display: block;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    -webkit-border-radius: 9999px;
    -moz-border-radius: 9999px;
    -ms-border-radius: 9999px;
    -o-border-radius: 9999px;
    color: #495057;
    background: transparent;
    transition: all 0.2s ease-in-out;
    -webkit-transition: all 0.2s ease-in-out;
    -moz-transition: all 0.2s ease-in-out;
    -ms-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 15px;
}
a.btn.btn-link.btn-profile:hover {
    color: #2e3236;
    background: #2195f321;
    text-decoration: none;
}
a.btn.btn-link.btn-profile.active {
    color: #0c80df !important;
    background: #2195f353 !important;
    font-weight: 600;
}
.empty-border {
    border: 2px dashed #e0e0e0;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    -webkit-border-radius: 0.75rem;
    -moz-border-radius: 0.75rem;
    -ms-border-radius: 0.75rem;
    -o-border-radius: 0.75rem;
    margin-bottom: 0.5rem;
}
.empty-border p {
    margin: 0;
    font-size: 0.85rem;
    text-align: center;
    color: #6f767f;
}
.tutams-layout {
    display: grid;
    grid-template-columns: 28px auto;
    gap: 1.25rem;
}
.tutams-layout .tutams-number {
    font-size: 0.875rem;
    font-weight: 600;
    color: #495057;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    background-color: #e3e3e3;
    border-radius: 0.25rem;
    -webkit-border-radius: 0.25rem;
    -moz-border-radius: 0.25rem;
    -ms-border-radius: 0.25rem;
    -o-border-radius: 0.25rem;
    margin-top: 2px;
}
/***** End PROFILE *****/

/***** Employee *****/
.grid-tutam-dynamic-form {
    display: grid;
    grid-template-columns: auto 34px;
    gap: 1rem;
}
/***** End Employee *****/

/***** INCOMING LETTER *****/
.badge-letter-status-edit {
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 0.5rem;
}
#attachment_list_body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.attachment-item:hover {
    background-color: #f2f4f6;
}
.letter-number-input-wrap {
    position: relative;
}

.letter-number-input-wrap .form-control {
    padding-right: 7rem;
}
/***** End INCOMING LETTER *****/

/***** Dashboard *****/
.letter-report-filter select {
    padding-right: 3rem !important;
}
.distribution-chart-legend {
    /* columns-2 */
    columns: 2;
    -webkit-columns: 2;
    -moz-columns: 2;
    -ms-columns: 2;
    -o-columns: 2;
}
.distribution-chart-legend .legend-item {
    margin-bottom: 0.625rem;
    margin-right: 1rem;
    margin-left: 0;
}
/***** End Dashboard *****/

/***** Incoming Done *****/
.min-w-400 {
    min-width: 360px !important;
    max-width: 400px !important;
}
.dataTables_wrapper .dataTables_filter input {
    height: 38.5px !important;
    padding: 5px 10px;
}
.dataTables_wrapper .dataTables_filter select#progress_status {
    box-shadow: none;
    outline: none;
    height: 38.5px !important;
    border: 1px solid #aaa;
    border-radius: 3px;
    padding: 5px;
    background-color: transparent;
    color: #0e0e0e !important;
}
/***** End Incoming Done *****/

/***** Inbox Request Letter *****/
.template-fill-wrapper {
    background-color: #f1f1f1;
    border-radius: 0.35rem;
    padding: 15px;
}
.template-fill-yth-wrapper {
    background-color: #f1f1f1;
    border-radius: 0.35rem;
    padding: 15px;
}
.template-fill-wrapper .input-group:last-child {
    margin-bottom: 0 !important;
}
td p img.provider-icon-img {
    height: 1.5rem;
    width: auto;
    border-radius: 0%;
    object-fit: cover;
    object-position: center;
    -webkit-border-radius: 0%;
    -moz-border-radius: 0%;
    -ms-border-radius: 0%;
    -o-border-radius: 0%;
}
/***** End Inbox Request Letter *****/

/***** Docs Preview *****/
.doc-frame-container {
    background: #ffffff;
    padding: 0.875rem;
    border-radius: 0.75rem;
    -webkit-border-radius: 0.75rem;
    -moz-border-radius: 0.75rem;
    -ms-border-radius: 0.75rem;
    -o-border-radius: 0.75rem;
    border: 1px solid #e9e9e9;
    box-shadow: 0 0 1.25rem rgba(0, 0, 0, 0.025);
}
.doc-frame-container iframe {
    width: 100%;
    border: none;
}
img.empty-docs-img {
    width: auto;
    height: 5rem;
    object-fit: cover;
    object-position: center;
}
/***** End Docs Preview *****/

/***** Footer Dashboard *****/
footer.footer .gap-2rem {
    gap: 2rem;
}
/***** End Footer Dashboard *****/

/***** Memo *****/
.memo-container {
    width: 100%;
    margin: 0 auto;
}
.memo-grid {
    display: grid;
    grid-template-columns: 150px 1fr;
    width: 100%;
    overflow: hidden;
    border: 1px solid #e1e5eb;
}
.memo-label-cell {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid #e1e5eb;
}
.memo-content-cell {
    padding: 0.75rem 0.75rem;
    border-bottom: 1px solid #e1e5eb;
}
.memo-brand-cell {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #e1e5eb;
    background-color: #f8fafc;
    color: #1a4b8c;
    border-right: 1px solid #e1e5eb;
}
.memo-brand-cell img {
    width: 100px;
    height: auto;
    object-fit: contain;
    object-position: center;
}
.memo-header {
    padding: 0.75rem 0.75rem;
}
.memo-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.125rem;
}
.memo-subtitle {
    font-size: 0.875rem;
    margin-bottom: 0;
    color: #383838;
}
.memo-label-cell {
    background-color: #f8fafc;
    color: #1a4b8c;
    font-weight: 600;
    border-right: 1px solid #e1e5eb;
    font-size: 0.875rem;
}
.memo-content-cell {
    background-color: white;
}
.memo-text {
    color: #333;
    margin-bottom: 0;
}
.memo-text-greet {
    color: #333;
    margin-bottom: 0;
    text-align: right;
}
.highlight-text {
    color: #1a4b8c;
    font-weight: 500;
}
.italic-text {
    font-style: italic;
    color: #555;
}
.memo-signature {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: end;
}
.memo-signature-text {
    color: #1a4b8c;
    font-weight: 600;
    margin-bottom: 0;
    margin-top: auto;
}
.memo-grid > div:nth-last-child(-n + 2) {
    border-bottom: none;
}
.memo-file-name,
.attachment-file-name {
    font-size: 14px;
    line-height: 1.25;
}
/***** End Memo *****/

/***** Leaderboard *****/
.leaderboard-hero {
    background: linear-gradient(135deg, #1f3c88 0%, #6f9cf5 100%);
    border-radius: 18px;
    color: #f9fbff;
    position: relative;
    overflow: hidden;
}

.leaderboard-hero::after {
    content: "";
    position: absolute;
    right: -80px;
    top: -80px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.leaderboard-hero::before {
    content: "";
    position: absolute;
    left: -60px;
    bottom: -60px;
    width: 160px;
    height: 160px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.leaderboard-filter-card {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    padding: 14px 18px;
    backdrop-filter: blur(6px);
}

.leaderboard-highlight-card {
    border-radius: 16px;
    padding: 18px 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 16px 36px -16px rgba(17, 24, 39, 0.5);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
    min-height: 100%;
}

.leaderboard-highlight-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px -16px rgba(17, 24, 39, 0.55);
}

.leaderboard-highlight-card h5 {
    font-size: 18px;
}

.leaderboard-highlight-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.leaderboard-highlight-rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
}

.leaderboard-highlight-metrics {
    padding: 0;
    margin: 0;
    display: flex;
    align-items: start;
    gap: 12px;
}

.leaderboard-highlight-metrics > div {
    display: flex;
    flex-direction: column;
    font-size: 12px;
}

.leaderboard-highlight-metrics > div p:first-child {
    margin-bottom: 0.5rem;
    font-size: 13px;
}

.leaderboard-highlight-metrics > div p:last-child {
    font-size: 20px;
    font-weight: 600;
}

.leaderboard-highlight-meta {
    font-size: 12px;
    opacity: 0.85;
}

.leaderboard-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #475569;
    flex-shrink: 0;
}

.leaderboard-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.leaderboard-avatar-lg {
    width: 64px;
    height: 64px;
}

.leaderboard-avatar-sm {
    width: 40px;
    height: 40px;
}

.leaderboard-rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    font-weight: 600;
}

.leaderboard-table {
    border-radius: 16px;
    overflow: hidden;
}

.leaderboard-table tbody td {
    vertical-align: middle;
}

.leaderboard-table thead tr {
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
}

.leaderboard-table thead th {
    border: none;
    color: #3b4a6b;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.leaderboard-table tbody tr {
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.leaderboard-table tbody tr:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -18px rgba(54, 64, 98, 0.55);
}

.leaderboard-progress {
    height: 6px;
    border-radius: 6px;
    background: #edf2ff;
}

.leaderboard-progress .progress-bar {
    border-radius: 6px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

.leaderboard-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(79, 70, 229, 0.12);
    color: #4338ca;
    margin-right: 8px;
}

.leaderboard-chip i {
    margin-right: 6px;
}

.leaderboard-empty-state {
    border-radius: 16px;
    background: #f8fafc;
    border: 1px dashed #cbd5f5;
    padding: 40px 20px;
}
/***** End Leaderboard *****/

/***** RESPONSIVENESS *****/
@media screen and (max-width: 992px) {
    /***** PROFILE *****/
    .grid-profile {
        grid-template-columns: 10rem auto;
    }
    /***** End PROFILE *****/
}

@media screen and (max-width: 768px) {
    /***** INCOMING LETTER *****/
    .badge-letter-status-edit {
        padding-top: 0.25rem;
        justify-content: start;
        column-gap: 0.75rem;
    }
    /***** End INCOMING LETTER *****/
}

@media screen and (max-width: 576px) {
    /***** PROFILE *****/
    .grid-profile {
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    .grid-profile .left-profile-container {
        border-right: 0;
        padding: 0.75rem 0;
    }
    .grid-profile .right-profile-container {
        padding: 0.75rem 0.5rem;
    }
    a.btn.btn-link.btn-profile {
        padding: 0.25rem 0.75rem;
        font-size: 0.875rem;
        margin-bottom: 0.5rem;
        margin-right: 0.25rem;
    }
    /***** End PROFILE *****/

    /***** Memo *****/
    .memo-label-cell {
        grid-column: 1 / -1;
        padding: 0.5rem 0.75rem;
        font-size: 13px;
        font-weight: 700;
        border-right: none;
    }
    .memo-content-cell,
    .memo-brand-cell {
        grid-column: 1 / -1;
    }
    .memo-brand-cell img {
        width: 64px;
    }
    .memo-text-greet {
        text-align: left;
    }
    .memo-signature {
        align-items: flex-start;
        justify-content: start;
    }
    .memo-signature-text {
        margin: 0;
    }
    .memo-grid > div:nth-last-child(-n + 2) {
        border-bottom: 1px solid #e1e5eb;
    }
    .memo-file-name,
    .attachment-file-name {
        font-size: 13px;
    }
    /***** End Memo *****/

    /***** Incoming Letter *****/
    .letter-number-input-wrap .form-control {
        padding-right: 3rem;
    }
    /***** End Incoming Letter *****/
}

@media screen and (max-width: 480px) {
    /***** Inbox Request Letter *****/
    .template-fill-wrapper,
    .template-fill-yth-wrapper {
        padding: 10px;
    }
    /***** End Inbox Request Letter *****/
}
/***** END RESPONSIVENESS *****/
