@media (max-width: 767.98px) {
    input.js-app-date-input,
    input[type="date"],
    .datepicker,
    .datepicker table,
    .datepicker td,
    .datepicker th {
        font-size: 16px !important;
    }

    .datepicker-dropdown {
        max-width: calc(100vw - 16px);
    }

    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 16px;
    }

    .table-responsive > .table {
        width: max-content;
        min-width: 100%;
        margin-bottom: 0;
    }

    .dataTables_wrapper {
        min-width: max-content;
    }

    .dataTables_wrapper > .row:first-child {
        justify-content: flex-start;
        margin-left: 0;
        margin-right: 0;
    }

    .dataTables_wrapper > .row:first-child > [class*="col-"] {
        flex: 0 0 auto;
        max-width: none;
        padding-left: 0;
        padding-right: 0;
        width: auto;
    }

    div.dataTables_wrapper div.dataTables_length {
        margin: 0 0 8px;
        text-align: left !important;
        width: auto;
    }

    div.dataTables_wrapper div.dataTables_length label {
        align-items: center;
        display: inline-flex;
        justify-content: flex-start;
        margin: 0;
    }

    div.dataTables_wrapper div.dataTables_length select {
        margin-left: 5px;
        margin-right: 5px;
    }
}

.content-page.content-page-no-sidebar {
    margin-left: 0 !important;
}

.content-page.content-page-no-sidebar .footer {
    left: 0 !important;
}

.nav-user .nav-user-avatar,
.navbar-custom .nav-user img {
    height: 36px !important;
    width: 36px !important;
    min-height: 36px;
    min-width: 36px;
    object-fit: cover;
}

input[type="file"].form-control,
input[type="file"].form-control-file {
    cursor: pointer;
}

.erp-page-title-box {
    background:
            linear-gradient(135deg, rgba(255,255,255,0.82) 0%, rgba(248,251,255,0.88) 100%);
    border: 1px solid #e9f1fa;
    border-radius: 22px;
    padding: 22px 24px;
    margin: 18px 0 22px;
    box-shadow:
            0 8px 28px rgba(15, 23, 42, 0.035),
            0 1px 6px rgba(15, 23, 42, 0.025);
    backdrop-filter: blur(12px);
}

.erp-page-title-box .page-title {
    color: #0f172a;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.erp-page-title-box .page-title i {
    color: #3b82f6;
    margin-right: 6px;
}

.erp-page-title-box .breadcrumb {
    background: rgba(255,255,255,0.54);
    border: 1px solid #edf4fb;
    border-radius: 999px;
    padding: 8px 14px;
    margin-top: 12px;
}

.erp-page-title-box .breadcrumb-item,
.erp-page-title-box .breadcrumb-item a {
    color: #475569;
    font-weight: 600;
    font-size: 0.82rem;
}

.erp-page-title-box .breadcrumb-item.active,
.erp-page-title-box .breadcrumb-item:last-child a {
    color: #0f172a;
}

.panel-hdr .datatable-panel-title {
    color: #0f172a;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin: 0;
    text-transform: uppercase;
}

.green-datatable-create-btn{
    background:#3ba776 !important;
    border-color:#3ba776 !important;
    color:#fff !important;

    height:38px;

    display:inline-flex;


    border-radius:.15rem;

    transition:all .18s ease;
}

.datatable-panel-actions {
    gap: 8px;
}

.datatable-panel-actions .datatable-toolbar-btn,
.datatable-panel-actions form {
    height: 38px;
}

.datatable-panel-actions .datatable-toolbar-btn {
    justify-content: center;
    margin: 0 !important;
    min-width: 112px;
}

.erp-import-export-control.btn,
.erp-import-export-control .btn {
    font-size: 0.75rem;
    line-height: 1.2;
    min-height: 32px;
    padding: 0.32rem 0.58rem;
}

.datatable-panel-actions .erp-import-export-control.datatable-toolbar-btn,
.datatable-panel-actions .erp-import-export-control .datatable-toolbar-btn,
.datatable-panel-actions form.erp-import-export-control {
    height: 32px;
}

.datatable-panel-actions .erp-import-export-control.datatable-toolbar-btn,
.datatable-panel-actions .erp-import-export-control .datatable-toolbar-btn {
    min-width: 0;
}

.datatable-mobile-card-grid {
    display: none;
}

.static-mobile-card-grid {
    display: none;
}

.worker-top-clock {
    align-items: center;
    display: inline-flex;
    height: 70px;
    justify-content: center;
    left: 50%;
    pointer-events: none;
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    white-space: nowrap;
    z-index: 5;
}

.worker-top-clock span {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    color: #111827;
    display: inline-flex;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    padding: 10px 16px;
}

@keyframes notificationBellShake {
    0%, 44%, 100% {
        transform: rotate(0deg);
    }
    6%, 18%, 30% {
        transform: rotate(12deg);
    }
    12%, 24%, 36% {
        transform: rotate(-12deg);
    }
}

.notification-bell-shake {
    animation: notificationBellShake 1.4s ease-in-out infinite;
    display: inline-block;
    transform-origin: 50% 0;
}

.green-datatable-create-btn:hover{
    background:#34956a !important;
    border-color:#34956a !important;

    box-shadow:0 4px 12px rgba(59,167,118,.18);
}

.table{
    border-collapse:separate;
    border-spacing:0;
}

.table thead th{
    border-right:1px solid #000 !important;
    border-bottom:1px solid #000 !important;
}

.table thead th:first-child{
    border-left:1px solid #000 !important;
}

.table thead tr:first-child th{
    border-top:1px solid #000 !important;
}

.table td .btn + .btn,
.table td form.d-inline-block + .btn,
.table td .btn + form.d-inline-block,
.table td form.d-inline-block + form.d-inline-block,
.dataTables_wrapper td .btn + .btn,
.dataTables_wrapper td form + .btn,
.dataTables_wrapper td .btn + form,
.dataTables_wrapper td form + form {
    margin-left: 6px;
}

.employee-profile-badge {
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
    padding: 5px 9px;
}

.employee-profile-badge.role {
    background: #eef6ff;
    color: #1d4ed8;
}

.employee-profile-badge.status {
    background: #edfdf4;
    color: #15803d;
}

.employee-contact-line {
    align-items: center;
    display: flex;
    gap: 8px;
    min-width: 0;
}

.employee-contact-line i {
    flex: 0 0 auto;
}

.employee-contact-value {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: normal;
}

.employee-detail-page a[x-apple-data-detectors],
.employee-detail-page span[x-apple-data-detectors] {
    color: inherit !important;
    text-decoration: none !important;
}

@media only screen and (max-width: 768px){

    .green-datatable-create-btn{
        margin: 0 !important;
    }

    .navbar-custom {
        min-height: 56px;
    }

    .navbar-custom .logo-box {
        height: 56px;
    }

    .navbar-custom .logo-lg img {
        max-width: 150px;
    }

    .navbar-custom .logo-sm img {
        width: 44px !important;
    }

    .navbar-custom .topnav-menu > li > a,
    .button-menu-mobile {
        height: 56px;
        line-height: 56px;
    }

    .worker-top-clock {
        height: 56px;
        left: 50%;
        top: 0;
    }

    .worker-top-clock span {
        font-size: 0.82rem;
        padding: 8px 13px;
    }

    .navbar-custom .dripicons-bell.noti-icon {
        font-size: 24px !important;
    }

    .erp-page-title-box {
        border-radius: 12px;
        margin: 10px 0 14px;
        padding: 14px;
    }

    .erp-page-title-box .page-title-right {
        display: block !important;
        float: none !important;
        margin-top: 10px;
        width: 100%;
    }

    .erp-page-title-box .page-title-right .breadcrumb {
        display: none !important;
    }

    .dashboard-switcher {
        display: flex;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        overflow-x: auto;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
    }

    .dashboard-switcher .btn {
        border-radius: 6px;
        font-size: 0.76rem;
        flex: 0 0 auto;
        padding: 0.32rem 0.58rem;
        white-space: nowrap;
    }

    .datatable-panel-header {
        align-items: center !important;
        gap: 6px;
    }

    .datatable-panel-actions {
        justify-content: flex-end;
        margin-left: auto;
        width: auto;
    }

    .erp-import-export-control {
        display: none !important;
    }

    .datatable-mobile-card-host {
        border-radius: 0;
        overflow: visible;
    }

    .datatable-mobile-card-host > .dataTables_wrapper {
        min-width: 0;
        width: 100%;
    }

    .datatable-mobile-cards-enabled .datatable-desktop-table-row {
        display: none;
    }

    .service-report-desktop-table {
        display: none;
    }

    .datatable-mobile-card-panel .datatable-bulk-actions {
        display: none;
    }

    .datatable-mobile-card-grid {
        display: grid;
        gap: 12px;
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
        margin: 2px 0 12px;
        width: 100%;
    }

    .datatable-mobile-card {
        background: #fff;
        border: 1px solid #e2e8f0;
        border-left: 4px solid #3ba776;
        border-radius: 10px;
        box-shadow: 0 5px 16px rgba(15, 23, 42, 0.06);
        min-width: 0;
        overflow: hidden;
    }

    .datatable-mobile-card.is-personnel {
        border-left-color: #2563eb;
    }

    .datatable-mobile-card.is-organization {
        border-left-color: #7c3aed;
    }

    .datatable-mobile-card.is-request {
        border-left-color: #d97706;
    }

    .datatable-mobile-card.is-chat {
        border-left-color: #0891b2;
    }

    .datatable-mobile-card.is-client {
        border-left-color: #2563eb;
    }

    .datatable-mobile-card.is-partner {
        border-left-color: #7c3aed;
    }

    .datatable-mobile-card.is-operations {
        border-left-color: #d97706;
    }

    .datatable-mobile-card.is-fleet {
        border-left-color: #0f766e;
    }

    .datatable-mobile-card.is-machine {
        border-left-color: #475569;
    }

    .datatable-mobile-card.is-mobile-team {
        border-left-color: #0891b2;
    }

    .datatable-mobile-card.is-unread {
        background: #fffafa;
        border-color: #fecaca;
        border-left-color: #dc2626;
    }

    .datatable-mobile-card.has-row-link {
        cursor: pointer;
    }

    .datatable-mobile-card.has-row-link:focus {
        border-color: #60a5fa;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16);
        outline: 0;
    }

    .datatable-mobile-card-header {
        background: #f8fafc;
        border-bottom: 1px solid #e2e8f0;
        padding: 12px 14px;
    }

    .datatable-mobile-card-eyebrow,
    .datatable-mobile-card-label {
        color: #64748b;
        display: block;
        font-size: 0.68rem;
        font-weight: 700;
        letter-spacing: 0.06em;
        line-height: 1.2;
        text-transform: uppercase;
    }

    .datatable-mobile-card-title {
        color: #0f172a;
        font-size: 1rem;
        font-weight: 750;
        line-height: 1.3;
        margin: 4px 0 0;
        overflow-wrap: anywhere;
    }

    .datatable-mobile-card-body {
        display: grid;
        gap: 0;
        padding: 2px 14px;
    }

    .datatable-mobile-card-field {
        border-bottom: 1px solid #edf2f7;
        padding: 10px 0;
    }

    .datatable-mobile-card-field:last-child {
        border-bottom: 0;
    }

    .datatable-mobile-card-value {
        color: #334155;
        font-size: 0.86rem;
        line-height: 1.45;
        margin-top: 4px;
        overflow-wrap: anywhere;
        white-space: pre-line;
    }

    .datatable-mobile-card-field.is-status .datatable-mobile-card-value {
        background: #eef6ff;
        border-radius: 999px;
        color: #1e40af;
        display: inline-flex;
        font-size: 0.75rem;
        font-weight: 700;
        padding: 4px 9px;
        white-space: normal;
    }

    .datatable-mobile-card-actions {
        align-items: center;
        background: #f8fafc;
        border-top: 1px solid #e2e8f0;
        display: flex;
        justify-content: flex-end;
        min-height: 48px;
        padding: 9px 14px;
    }

    .datatable-mobile-card-actions > div {
        margin-left: auto;
        text-align: right !important;
    }

    .datatable-mobile-card-empty {
        align-items: center;
        background: #f8fafc;
        border: 1px dashed #cbd5e1;
        border-radius: 10px;
        color: #64748b;
        display: flex;
        flex-direction: column;
        gap: 8px;
        justify-content: center;
        min-height: 130px;
        padding: 20px;
        text-align: center;
    }

    .datatable-mobile-card-empty i {
        font-size: 1.35rem;
    }

    .static-card-desktop-table {
        display: none;
    }

    .static-mobile-card-grid {
        display: grid;
        gap: 12px;
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    }

    .static-mobile-card {
        background: #fff;
        border: 1px solid #e2e8f0;
        border-left: 4px solid #d97706;
        border-radius: 10px;
        box-shadow: 0 5px 16px rgba(15, 23, 42, 0.06);
        min-width: 0;
        overflow: hidden;
    }

    .static-mobile-card-header {
        background: #f8fafc;
        border-bottom: 1px solid #e2e8f0;
        padding: 12px 14px;
    }

    .static-mobile-card-title {
        color: #0f172a;
        font-size: 1rem;
        font-weight: 750;
        line-height: 1.3;
        margin: 4px 0 0;
        overflow-wrap: anywhere;
    }

    .static-mobile-card-body {
        padding: 2px 14px;
    }

    .static-mobile-card-field {
        border-bottom: 1px solid #edf2f7;
        padding: 10px 0;
    }

    .static-mobile-card-field:last-child {
        border-bottom: 0;
    }

    .static-mobile-card-label {
        color: #64748b;
        display: block;
        font-size: 0.68rem;
        font-weight: 700;
        letter-spacing: 0.06em;
        line-height: 1.2;
        text-transform: uppercase;
    }

    .static-mobile-card-value {
        color: #334155;
        font-size: 0.86rem;
        line-height: 1.45;
        margin-top: 4px;
        overflow-wrap: anywhere;
    }

    .responsive-card-table-wrap {
        border-radius: 0;
        overflow: visible;
    }

    .responsive-card-table,
    .responsive-card-table tbody {
        display: block;
        min-width: 0 !important;
        width: 100% !important;
    }

    .responsive-card-table thead {
        display: none;
    }

    .responsive-card-table tr {
        background: #fff;
        border: 1px solid #e2e8f0;
        border-left: 4px solid #3ba776;
        border-radius: 10px;
        box-shadow: 0 5px 16px rgba(15, 23, 42, 0.06);
        display: block;
        margin-bottom: 12px;
        overflow: hidden;
        width: 100%;
    }

    .responsive-card-table.is-management tr {
        border-left-color: #2563eb;
    }

    .responsive-card-table.is-machine tr {
        border-left-color: #475569;
    }

    .responsive-card-table td {
        align-items: start;
        border: 0 !important;
        border-bottom: 1px solid #edf2f7 !important;
        display: grid;
        gap: 10px;
        grid-template-columns: minmax(90px, 0.7fr) minmax(0, 1.3fr);
        min-width: 0 !important;
        padding: 11px 13px !important;
        text-align: left !important;
        width: 100%;
    }

    .responsive-card-table td::before {
        color: #64748b;
        content: attr(data-label);
        font-size: 0.68rem;
        font-weight: 700;
        letter-spacing: 0.06em;
        line-height: 1.3;
        text-transform: uppercase;
    }

    .responsive-card-table td:last-child {
        border-bottom: 0 !important;
    }

    .responsive-card-table td.responsive-card-table-title {
        background: #f8fafc;
        display: block;
    }

    .responsive-card-table td.responsive-card-table-title::before {
        display: block;
        margin-bottom: 5px;
    }

    .responsive-card-table td.responsive-card-table-actions {
        align-items: center;
    }

    .responsive-card-table td.responsive-card-table-actions .btn {
        margin-bottom: 4px;
        margin-top: 4px;
    }

    .responsive-card-table tr.responsive-card-table-empty {
        border-left-color: #cbd5e1;
    }

    .responsive-card-table tr.responsive-card-table-empty td {
        display: block;
        text-align: center !important;
    }

    .responsive-card-table tr.responsive-card-table-empty td::before {
        display: none;
    }

    .employee-profile-header {
        text-align: center;
    }

    .employee-profile-identity {
        flex-direction: column;
        justify-content: center;
    }

    .employee-profile-avatar-wrap {
        margin-bottom: 18px;
        margin-right: 0 !important;
    }

    .employee-profile-avatar {
        height: 112px;
        width: 112px;
    }

    .employee-profile-header h2 {
        font-size: 2rem;
        line-height: 1.12;
        margin-left: auto;
        margin-right: auto;
        max-width: 10ch;
    }

    .employee-profile-header .employee-profile-badge {
        margin-top: 6px;
    }

    .employee-profile-header .employee-profile-badge.status {
        margin-left: 6px !important;
    }

    .employee-contact-line {
        justify-content: center;
        line-height: 1.35;
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
    }

    .employee-profile-actions {
        display: flex;
        gap: 6px;
        justify-content: center;
        margin-top: 16px;
        text-align: center !important;
    }

    .employee-profile-actions .btn {
        align-items: center;
        display: inline-flex;
        justify-content: center;
        min-height: 46px;
    }

    .employee-history-table-wrap {
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .employee-history-table {
        border-collapse: collapse !important;
    }

}
