html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
    min-height: 100vh;
}

body.app-layout-shell {
    display: flex;
    flex-direction: column;
}

body.app-layout-shell > .app-layout-content {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

body.app-layout-shell > .app-layout-content > .app-wrapper {
    flex: 1 0 auto;
}

body.app-layout-shell > .footer-wrapper {
    margin-top: auto;
    flex-shrink: 0;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.file-preview-modal .modal-dialog {
    max-width: min(1200px, calc(100vw - 32px));
}

.file-preview-content {
    border: 0;
    border-radius: 22px;
    overflow: hidden;
    background: #111827;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.35);
}

.file-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.file-preview-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.file-preview-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef2ff;
    color: #4f46e5;
    font-size: 20px;
    flex: 0 0 auto;
}

.file-preview-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    max-width: 620px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-preview-subtitle {
    margin-top: 2px;
    font-size: 12px;
    color: #64748b;
    max-width: 620px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-preview-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.file-preview-action-btn {
    border: 1px solid #e5e7eb;
    color: #334155;
    border-radius: 12px;
    font-weight: 600;
}

    .file-preview-action-btn:hover {
        background: #f8fafc;
        border-color: #cbd5e1;
        color: #0f172a;
    }

.file-preview-body {
    position: relative;
    min-height: 72vh;
    max-height: 82vh;
    background: radial-gradient(circle at top, rgba(99, 102, 241, 0.18), transparent 34%), linear-gradient(135deg, #0f172a 0%, #111827 48%, #020617 100%);
    overflow: hidden;
}

.file-preview-state {
    min-height: 72vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #e5e7eb;
    text-align: center;
    padding: 32px;
}

.file-preview-state-icon {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    font-size: 34px;
}

.file-preview-state-title {
    font-size: 18px;
    font-weight: 700;
    color: #f8fafc;
}

.file-preview-state-text {
    margin-top: 6px;
    font-size: 14px;
    color: #94a3b8;
}

.file-preview-image-wrap {
    height: 72vh;
    max-height: 82vh;
    padding: 20px;
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-preview-image {
    max-width: 100%;
    max-height: calc(82vh - 40px);
    object-fit: contain;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}

.file-preview-frame-wrap {
    height: 82vh;
    background: #0f172a;
}

.file-preview-frame {
    width: 100%;
    height: 82vh;
    border: 0;
    background: #fff;
}

.min-w-0 {
    min-width: 0;
}

.app-navbar-tabs .nav-item .menu-link {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.app-navbar-tabs .nav-item .menu-link > i,
.app-navbar-tabs .nav-item .menu-link > svg {
    flex: 0 0 auto;
}

.app-navbar-tabs .nav-item .menu-link > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 20px;
    line-height: 1;
}

.app-navbar-tabs .nav-item .menu-link > img.app-launcher-img {
    width: 30px !important;
    height: 30px;
    object-fit: contain;
}

@media (max-width: 768px) {
    .file-preview-modal .modal-dialog {
        max-width: calc(100vw - 12px);
        margin: 6px auto;
    }

    .file-preview-header {
        align-items: flex-start;
        padding: 14px;
    }

    .file-preview-title {
        max-width: 220px;
    }

    .file-preview-subtitle {
        max-width: 220px;
    }

    .file-preview-action-btn {
        padding-inline: 10px;
    }

    .file-preview-body,
    .file-preview-state {
        min-height: 76vh;
    }

    .file-preview-frame,
    .file-preview-frame-wrap {
        height: 76vh;
    }

    .file-preview-image-wrap {
        height: 76vh;
        padding: 12px;
    }
}



.date-operation {
    width: 100%;
}

.date-operation-input-wrap {
    position: relative;
}

.date-operation-input {
    padding-right: 42px;
    border-radius: 12px;
    min-height: 42px;
}

    .date-operation-input:focus {
        box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.12);
    }

.date-operation-icon {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    color: #64748b;
    pointer-events: none;
}

.date-operation-details {
    font-weight: 500;
    color: #1f2937;
}

.flatpickr-calendar {
    border-radius: 16px;
    box-shadow: 0 18px 60px rgba(15, 23, 42, 0.18);
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: #2563eb;
    border-color: #2563eb;
}
