/* Readable phone controls, independent of the desktop site's compact layout. */
.mobile-time {
    margin: 0; background: var(--kt-body-bg, #f6f3ed); color: var(--kt-text, #202b23); min-height: 100dvh;
    font-size: clamp(1.125rem, 0.85rem + 1.2vw, 1.3125rem); line-height: 1.55;
    -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
}
.mobile-header {
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
    padding: 16px max(16px, env(safe-area-inset-right)) 16px max(16px, env(safe-area-inset-left));
    background: var(--kt-surface, white); border-bottom: 1px solid #ddd;
}
.mobile-header > a { font-weight: 750; font-size: 1.5em; color: var(--kt-link, #234b37); text-decoration: none; }
.mobile-content {
    width: 100%; max-width: 900px; margin: auto; padding: clamp(16px, 4vw, 32px);
    padding-bottom: calc(180px + env(safe-area-inset-bottom));
}
.mobile-time h1, .mobile-time .h3 { font-size: 1.6em; line-height: 1.2; }
.mobile-time h2, .mobile-time .h5 { font-size: 1.25em; line-height: 1.3; }
.mobile-time .form-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
.mobile-time .page-title { flex-wrap: wrap; gap: 16px; }
.mobile-time .panel { padding: clamp(16px, 4vw, 28px); overflow-wrap: anywhere; }
.mobile-time .form-control, .mobile-time .form-select {
    font-size: 1em; min-height: 58px; padding: 12px; width: 100%; min-width: 0;
}
.mobile-time .form-select { padding-right: 36px; }
.mobile-time .form-label, .mobile-time label { font-weight: 600; }
.mobile-time .form-check-input { width: 1.35em; height: 1.35em; }
.mobile-time .btn { font-size: 1em; font-weight: 600; min-height: 54px; padding: 12px 16px; white-space: normal; }
.mobile-time .actions { gap: 12px; flex-wrap: wrap; }
.mobile-time .row > .col-md-5 { width: 100%; }
.mobile-tabs {
    position: fixed; bottom: 0; left: 0; right: 0; display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--kt-surface, white); border-top: 1px solid #c4ccc7;
    padding: 12px max(10px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
    z-index: 20; gap: 10px;
}
.mobile-tabs a {
    display: flex; align-items: center; justify-content: center; min-height: 82px; text-align: center;
    padding: 14px 10px; background: #234b37; color: white; border-radius: 12px; text-decoration: none;
    font-size: clamp(1.25rem, 1rem + 1vw, 1.5rem); font-weight: 700; line-height: 1.25; overflow-wrap: anywhere;
}
.mobile-tabs a:focus-visible { outline: 3px solid #b77519; outline-offset: 3px; }
.mobile-time #kt-install { bottom: calc(140px + env(safe-area-inset-bottom)) !important; }
@media (max-width: 360px) {
    .mobile-content { padding-left: 12px; padding-right: 12px; }
    .mobile-header { padding-left: 12px; padding-right: 12px; }
}
/* Stable navigation and phone-friendly employee records. */
.mobile-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mobile-tabs a { padding-left: 5px; padding-right: 5px; }
.mobile-tabs a[aria-current=page] { background: #153322; box-shadow: inset 0 0 0 3px #adc9b5; }
.mobile-more { display: grid; gap: 14px; }
.mobile-more h2 { margin: 18px 0 0; }
.mobile-more a { display: block; padding: 20px; border: 1px solid #c4ccc7; border-radius: 12px; background: var(--kt-surface, white); color: var(--kt-link, #234b37); text-decoration: none; font-weight: 700; }
.mobile-more span { display: block; margin-top: 6px; font-weight: 400; color: var(--kt-text, #394c41); }
.mobile-time-links { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.mobile-time-links a { padding: 12px; color: var(--kt-link, #234b37); background: var(--kt-surface, white); border: 1px solid #879d8e; border-radius: 8px; }
.mobile-time-links a[aria-current=page] { background: #234b37; color: white; }
.mobile-time .btn-group { flex-wrap: wrap; gap: 8px; }
.mobile-time .btn-group > .btn { border-radius: 8px !important; }
.mobile-time .actions > .form-control, .mobile-time .actions > .form-select { max-width: 100% !important; }
.mobile-content .table-wrap { overflow: visible; }
.mobile-records, .mobile-records tbody, .mobile-records tfoot, .mobile-records tr, .mobile-records td, .mobile-records th { display: block; width: 100%; min-width: 0 !important; }
.mobile-records thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.mobile-records tbody tr { margin-bottom: 24px; padding-bottom: 12px; border-bottom: 2px solid #c4ccc7; }
.mobile-records td, .mobile-records th { text-align: left !important; white-space: normal !important; overflow-wrap: anywhere; padding: 8px 0; border: 0; }
.mobile-field-label { display: block; font-weight: 700; color: var(--kt-text, #36483c); }
.mobile-content .text-nowrap { white-space: normal !important; }
.mobile-content .col-xl-8, .mobile-content .col-xl-4 { width: 100%; }
.mobile-content .invoice-document { max-width: 100%; overflow-x: auto; }
.mobile-content .invoice-document table { min-width: 580px; }
.mobile-content .row > [class*="col-md-"], .mobile-content .row > [class*="col-lg-"] { width: 100%; }
.mobile-content iframe { max-width: 100%; }
