
input[type=number] {
    text-align:right
}

.clickable {
    cursor: pointer;
}

:root {
    --lh-form-control-radius: 4px;
}

body.md-skin {
    --lh-form-control-radius: 10px;
}

/* Round ibox corners only for md-skin */
body.md-skin .ibox {
    border-radius: 14px;
    overflow: hidden;
}
body.md-skin .ibox-title {
    border-radius: 14px 14px 0 0;
}
body.md-skin .ibox-content {
    border-radius: 0 0 14px 14px;
}

/* Round form controls only under md-skin */
body.md-skin .form-control,
body.md-skin input[type="text"],
body.md-skin input[type="email"],
body.md-skin input[type="password"],
body.md-skin input[type="number"],
body.md-skin input[type="search"],
body.md-skin input[type="tel"],
body.md-skin input[type="url"],
body.md-skin select,
body.md-skin textarea {
    border-radius: var(--lh-form-control-radius);
}

/* Keep dropdown-style controls visually aligned with textboxes. */
.select2-container .select2-selection,
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple,
.select2-container--default .select2-selection--multiple .select2-selection__choice,
.select2-dropdown,
.select2-search--dropdown .select2-search__field,
.chosen-container-single .chosen-single,
.chosen-container-multi .chosen-choices,
.chosen-container-multi .chosen-choices li.search-choice,
.dropdown-menu,
.bootstrap-timepicker-widget.dropdown-menu,
.datepicker,
.ui-datepicker {
    border-radius: var(--lh-form-control-radius) !important;
}

/* Reusable modern pill toggle. Apply alongside `.onoffswitch` on the wrapper. */
.toggle-switch {
    position: relative;
    width: 48px;
    height: 24px;
    margin: 0;
    flex-shrink: 0;
    border: 0;
}
.toggle-switch .onoffswitch-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}
.toggle-switch .onoffswitch-label {
    display: block;
    height: 24px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 24px;
    background-color: #d1d5db;
    cursor: pointer;
    overflow: hidden;
    transition: background-color 0.2s ease;
}
.toggle-switch .onoffswitch-inner { display: none; }
.toggle-switch .onoffswitch-switch {
    position: absolute;
    top: 3px;
    left: 3px;
    right: auto;
    bottom: auto;
    width: 18px;
    height: 18px;
    margin: 0;
    padding: 0;
    background: #fff;
    border: 0;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
    transition: left 0.2s ease;
}
.toggle-switch .onoffswitch-checkbox:checked + .onoffswitch-label {
    background-color: #22c55e;
}
.toggle-switch .onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-switch {
    left: 27px;
}
.toggle-switch .onoffswitch-checkbox:disabled + .onoffswitch-label {
    opacity: 0.55;
    cursor: not-allowed;
}

/* Status pill — soft modern badge for record-status indicators */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.6;
    letter-spacing: 0.2px;
    margin-left: 8px;
    vertical-align: middle;
    white-space: nowrap;
}
.status-pill::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}
.status-pill-active {
    background: #d1fae5;
    color: #047857;
}
.status-pill-draft {
    background: #fef3c7;
    color: #92400e;
}
.status-pill-pending {
    background: #dbeafe;
    color: #1d4ed8;
}
.status-pill-suspend {
    background: #fed7aa;
    color: #c2410c;
}
.status-pill-transferred {
    background: #ede9fe;
    color: #6d28d9;
}
.status-pill-resign {
    background: #fee2e2;
    color: #b91c1c;
}
.status-pill-terminate {
    background: #fce7f3;
    color: #be185d;
}

/* Employee search tile — positions the ESS mobile icon at the top-right corner. */
.ess-tile {
    position: relative;
    overflow: hidden;
    padding: 20px;
}
.ess-tile-content {
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
}
.ess-tile-avatar-col {
    flex: 0 0 120px;
    width: 120px;
    min-width: 120px;
    padding-right: 10px;
}
.ess-tile-details-col {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
}
.ess-tile-icon {
    position: absolute;
    top: 8px;
    right: 10px;
    color: #22c55e;
    font-size: 16px;
    z-index: 2;
    pointer-events: none;
    line-height: 1;
}
/* Reserve room at the top-right so the name and other content don't sit underneath the icon. */
.ess-tile h3 { padding-right: 26px; }
.ess-tile .text-center { overflow: hidden; }
/* Avatar size — kept compact so the tile stays low-height. */
.ess-tile-avatar-col .img-circle-border-gray {
    width: 80px;
    height: 80px;
    min-width: 80px;
    max-width: none;
    margin-left: auto;
    margin-right: auto;
    object-fit: cover;
}
/* Tighten the tile: smaller heading, reduced paddings/margins on inner content. */
.ess-tile h3 {
    font-size: 14px;
    margin: 2px 0 4px;
    line-height: 1.25;
}
.ess-tile-details-col span,
.ess-tile-details-col div {
    font-size: 12px;
    line-height: 1.4;
}
.ess-tile-name,
.ess-tile-code,
.ess-tile-calling-name,
.ess-tile-meta,
.ess-tile-designation,
.ess-tile-nic,
.ess-tile-phone {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.ess-tile-code {
    color: #64748b;
    font-weight: 600;
}
.ess-tile-avatar-code {
    margin-top: 4px;
    padding: 0;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
}
.ess-tile-meta {
    color: #64748b;
}
.ess-tile-name {
    margin-bottom: 2px;
}
.ess-tile-calling-name {
    color: #64748b;
    line-height: 1.2;
    margin-top: -3px;
    margin-bottom: 3px;
}
.ess-tile .text-center .m-t-xs { margin-top: 4px !important; }

/* Session-expired acknowledgement dialog. */
#session-expired-modal .session-expired-dialog {
    width: calc(100% - 30px);
    max-width: 390px;
    margin: 60px auto;
}
#session-expired-modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.3);
}
#session-expired-modal .session-expired-body {
    padding: 38px 32px 30px;
    text-align: center;
}
.session-expired-visual {
    position: relative;
    width: 150px;
    height: 126px;
    margin: 0 auto 14px;
}
.session-expired-icon-circle {
    position: absolute;
    top: 0;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 112px;
    height: 112px;
    border-radius: 50%;
    background: linear-gradient(145deg, #ecfdf7, #dff8ef);
    transform: translateX(-50%);
}
.session-expired-lock {
    color: #1ab394;
    font-size: 46px;
    text-shadow: 0 7px 18px rgba(26, 179, 148, 0.2);
}
.session-expired-clock {
    position: absolute;
    right: 17px;
    bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border: 3px solid #1ab394;
    border-radius: 50%;
    background: #d7f5eb;
    color: #1ab394;
    font-size: 21px;
    box-shadow: 0 3px 9px rgba(26, 179, 148, 0.2);
}
.session-expired-clock .fa {
    line-height: 1;
}
.session-expired-spark {
    position: absolute;
    color: #35c6a7;
    font-weight: 600;
}
.session-expired-spark-one {
    top: 5px;
    right: 18px;
    font-size: 14px;
}
.session-expired-spark-two {
    top: 42px;
    right: 2px;
    font-size: 15px;
}
.session-expired-spark-three {
    top: 38px;
    left: 4px;
    font-size: 18px;
}
#session-expired-title {
    margin: 0 0 10px;
    color: #172033;
    font-size: 21px;
    font-weight: 600;
    line-height: 1.3;
}
#session-expired-message {
    margin: 0 0 24px;
    color: #778196;
    font-size: 13px;
    line-height: 1.65;
}
#session-expired-modal .session-expired-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 44px;
    border: 0;
    border-radius: 6px;
    background: linear-gradient(135deg, #20bea0, #15977d);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 8px 18px rgba(26, 179, 148, 0.24);
}
#session-expired-modal .session-expired-login:hover,
#session-expired-modal .session-expired-login:focus {
    background: linear-gradient(135deg, #1ab394, #11856d);
    color: #fff;
    outline: 0;
}
#session-expired-modal .session-expired-login .fa {
    font-size: 14px;
}
@media (max-width: 480px) {
    #session-expired-modal .session-expired-dialog {
        margin: 24px auto;
    }
    #session-expired-modal .session-expired-body {
        padding: 32px 22px 24px;
    }
}
