﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

a.navbar-brand {
  white-space: normal;
  text-align: center;
  word-break: break-all;
}

/* Provide sufficient contrast against white background */
a {
  color: #0366d6;
}

.btn-primary {
  color: #fff;
  background-color: #007470;
  border-color: #1861ac;
}
    

    .nav-pills .nav-link.active, .nav-pills .show > .nav-link {
        color: #fff;
        background-color: #1b6ec2;
        border-color: #1861ac;
    }

/* Sticky footer styles
-------------------------------------------------- */
html {
  font-size: 14px;
}
@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.border-top {
  border-top: 1px solid #e5e5e5;
}
.border-bottom {
  border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
  font-size: 1rem;
  line-height: inherit;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
  position: relative;
  min-height: 100%;
}

body {
  /* Margin bottom by footer height */
  margin-bottom: 0px;
}
.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  white-space: nowrap;
  line-height: 60px; /* Vertically center the text there */
}
.Color {
    color: #007470;
    font-weight: bold
}

/* AttendanceReport.css */
:root {
    --primary-color: #007470;
    --success-color: #00b74a;
    --danger-color: #f93154;
    --info-color: #39c0ed;
    --secondary-color: #b23cfd;
    --bg-light: #f8f9fa;
    --border-color: #dee2e6;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {

    background: var(--bg-light);
    color: #333;
}

.report-container {
    max-width: 100%;
    margin: 20px auto;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    flex-wrap: wrap;
    gap: 10px;
}

.report-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.export-btn {
    padding: 10px 24px;
    background: var(--success-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;

    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

    .export-btn:hover {
        background: #009966;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }

/* Summary Table Styles */
.summary-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

    .summary-table thead {
        background: linear-gradient(135deg, var(--primary-color) 0%, #005a57 100%);
        color: white;
    }

    .summary-table th {
        padding: 14px 8px;
        text-align: center 0, 0.1);
    }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {

    background: var(--bg-light);
    color: #333;
}

.report-container {
    max-width: 100%;
    margin: 20px auto;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    flex-wrap: wrap;
    gap: 10px;
}

.report-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.export-btn {
    padding: 10px 24px;
    background: var(--success-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

    .export-btn:hover {
        background: #009966;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }

/* Summary Table Styles */
.summary-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    font-family:'Ybakh'
}

    .summary-table thead {
        background: linear-gradient(135deg, var(--primary-color) 0%, #005a57 100%);
        color: white;
    }

    .summary-table th {
        padding: 14px 8px;
        text-align: center;
        font-weight: 600;
        font-size: 13px;
        white-space: nowrap;
    }

    .summary-table td {
        padding: 12px 8px;
        text-align: center;
        border-bottom: 1px solid var(--border-color);
        font-size: 14px;
    }

    .summary-table tbody tr:hover {
        background: #f1f5f9;
    }

/* Detail Table Styles */
.detail-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

    .detail-table thead {
        background: linear-gradient(135deg, #495057 0%, #343a40 100%);
        color: white;
    }

    .detail-table th {
        padding: 12px 8px;
        text-align: center;
        font-weight: 600;
        font-size: 12px;
    }

    .detail-table td {
        padding: 10px 8px;
        text-align: center;
        border-bottom: 1px solid var(--border-color);
        font-size: 13px;
        vertical-align: middle;
    }

    .detail-table tbody tr:nth-child(even) {
        background: #f8f9fa;
    }

    .detail-table tbody tr:hover {
        background: #e9ecef;
    }

/* Traffic Column Styles */
.traffic-cell {
    text-align: right !important;
    padding: 8px 12px !important;
    line-height: 1.8;
}

.event-badge {
    display: inline-block;
    padding: 4px 8px;
    background: #fee;
    color: var(--danger-color);
    border-radius: 4px;
    font-size: 11px;
    margin-bottom: 4px;
}

.entry-time {
    color: var(--success-color);
    font-weight: 600;
    margin: 0 4px;
}

.exit-time {
    color: var(--danger-color);
    font-weight: 600;
    margin: 0 4px;
}

.duty-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    margin: 2px 0;
    white-space: nowrap;
}

.duty-approved {
    background: #e0f7ff;
    color: var(--info-color);
    border: 1px solid var(--info-color);
}

.duty-pending {
    background: #f3e5ff;
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
}

/* Person Card */
.person-card {
    margin-bottom: 40px;
    page-break-inside: avoid;
}

.person-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
    padding: 10px 15px;
    background: linear-gradient(135deg, #e8f5f5 0%, #fff 100%);
    border-right: 4px solid var(--primary-color);
    border-radius: 4px;
}

/* Time Display */
.time-display {

    font-weight: 600;
    margin: 0 4px;
}

.duty-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    margin: 2px 0;
    white-space: nowrap;
}

.duty-approved {
    background: #e0f7ff;
    color: var(--info-color);
    border: 1px solid var(--info-color);
}

.duty-pending {
    background: #f3e5ff;
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
}

/* Person Card */
.person-card {
    margin-bottom: 40px;
    page-break-inside: avoid;
}

.person-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
    padding: 10px 15px;
    background: linear-gradient(135deg, #e8f5f5 0%, #fff 100%);
    border-right: 4px solid var(--primary-color);
    border-radius: 4px;
}

/* Time Display */
.time-display {

    font-weight: bold;
    direction: ltr;
    display: inline-block;
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
    .summary-table th,
    .summary-table td {
        font-size: 11px;
        padding: 10px 6px;
    }

    .detail-table th,
    .detail-table td {
        font-size: 11px;
        padding: 8px 6px;
    }
}

@media screen and (max-width: 768px) {
    .report-container {
        padding: 10px;
        margin: 10px;
    }

    .report-header {
        flex-direction: column;
        text-align: center;
    }

    .report-title {
        font-size: 1.2rem;
    }

    .summary-table,
    .detail-table {
        font-size: 10px;
    }

        .summary-table th,
        .summary-table td,
        .detail-table th,
        .detail-table td {
            padding: 6px 4px;
        }

    .export-btn {
        width: 100%;
    }
}

/* Print Styles */
@media print {
    .export-btn {
        display: none;
    }

    .person-card {
        page-break-inside: avoid;
    }

    .report-container {
        box-shadow: none;
        margin: 0;
        padding: 10px;
    }
}

/* Badge for empty cells */
.empty-cell {
    color: #adb5bd;
    font-style: italic;
}
@font-face {
    font-family: 'YBakh';
    src: url('YekanBakh.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Digital';
    src: url('../Fonts/digital-7.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
@media print {

    .report-header {
        display: none !important;
    }

    .export-btn,
    .print-btn {
        display: none !important;
    }

    @page {
        size: A4 portrait;
        margin: 10mm 8mm;
    }

    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    body {
        margin: 0;
        padding: 0;
        background: white !important;
    }

    .report-container {
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }
 
    .person-card {
        page-break-after: always !important;
        break-after: page !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
        margin: 0 !important;
        padding: 0 !important;
    }
       
        .person-card:last-child {
            page-break-after: auto !important;
            break-after: auto !important;
        }
    
    .person-name {
        font-size: 14pt !important;
        margin-bottom: 6pt !important;
        padding: 6pt 10pt !important;
        background: #e8f5f5 !important;
        border-right: 3pt solid #007470 !important;
    }
  
    .summary-table {
        margin-bottom: 8pt !important;
        font-size: 7.5pt !important;
        box-shadow: none !important;
    }

        .summary-table thead {
            background: #007470 !important;
            color: white !important;
        }

        .summary-table th {
            padding: 4pt 3pt !important;
            font-size: 7.5pt !important;
            border: 1px solid #999 !important;
        }

        .summary-table td {
            padding: 3pt !important;
            font-size: 7.5pt !important;
            border: 1px solid #ccc !important;
        }
   
    .detail-table {
        font-size: 7pt !important;
        box-shadow: none !important;
        table-layout: fixed !important;
    }

        .detail-table thead {
            background: #495057 !important;
            color: white !important;
        }

        .detail-table th {
            padding: 3pt 2pt !important;
            font-size: 7pt !important;
            border: 1px solid #999 !important;
        }

        .detail-table td {
            padding: 2pt !important;
            font-size: 6.5pt !important;
            border: 1px solid #ddd !important;
            vertical-align: middle !important;
        }

        .detail-table tbody tr:nth-child(even) {
            background: #f8f9fa !important;
        }

    .traffic-cell {
        text-align: right !important;
        padding: 2pt 4pt !important;
        font-size: 6.5pt !important;
        line-height: 1.3 !important;
    }
  
    .event-badge {
        font-size: 6pt !important;
        padding: 1pt 3pt !important;
        background: #fee !important;
        color: #f93154 !important;
        border: 1px solid #f93154 !important;
        border-radius: 2pt !important;
    }

    .entry-time {
        color: #00b74a !important;
        font-size: 6.5pt !important;
        margin: 0 2pt !important;
    }

    .exit-time {
        color: #f93154 !important;
        font-size: 6.5pt !important;
        margin: 0 2pt !important;
    }

    .duty-badge {
        font-size: 6pt !important;
        padding: 1pt 3pt !important;
        border-radius: 2pt !important;
        margin: 1pt 0 !important;
        display: inline-block !important;
    }

    .duty-approved {
        background: #e0f7ff !important;
        color: #39c0ed !important;
        border: 1px solid #39c0ed !important;
    }

    .duty-pending {
        background: #f3e5ff !important;
        color: #b23cfd !important;
        border: 1px solid #b23cfd !important;
    }

    .time-display {
        font-size: 7pt !important;
        direction: ltr !important;
        display: inline-block !important;
    }

    .empty-cell {
        color: #adb5bd !important;
        font-style: italic !important;
        font-size: 6.5pt !important;
    }
}
/* ==================== SWEETALERT2 CUSTOM THEME ==================== */

:root {
    --swal-primary: #007470;
    --swal-success: #10b981;
    --swal-error: #ef4444;
    --swal-warning: #f59e0b;
    --swal-info: #3b82f6;
}

/* ==================== POPUP CONTAINER ==================== */
.swal2-popup {
    border-radius: 16px !important;
    padding: 32px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15) !important;
}

/* ==================== TITLE ==================== */
.swal2-title {
    color: #1f2937 !important;
    font-size: 24px !important;
    font-weight: 600 !important;
    padding: 0 0 16px 0 !important;
}

/* ==================== CONTENT ==================== */
.swal2-html-container {
    color: #6b7280 !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    margin: 16px 0 24px 0 !important;
}

/* ==================== BUTTONS ==================== */
.swal2-styled {
    border-radius: 8px !important;
    padding: 12px 32px !important;
    font-weight: 500 !important;
    font-size: 15px !important;
    transition: all 0.2s !important;
    border: none !important;
}

.swal2-confirm {
    background: var(--swal-primary) !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3) !important;
}

    .swal2-confirm:hover {
        background: #1e40af !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4) !important;
    }

.swal2-cancel {
    background: #6b7280 !important;
    margin-left: 12px !important;
}

    .swal2-cancel:hover {
        background: #4b5563 !important;
    }

.swal2-deny {
    background: var(--swal-error) !important;
}

/* ==================== ICONS ==================== */
.swal2-icon {
    border-width: 3px !important;
    margin: 16px auto 24px !important;
}

.swal2-success {
    border-color: var(--swal-success) !important;
}

.swal2-success-ring {
    border-color: rgba(16, 185, 129, 0.3) !important;
}

.swal2-success-line {
    background-color: var(--swal-success) !important;
}

.swal2-error {
    border-color: var(--swal-error) !important;
}

.swal2-error-x {
    background-color: var(--swal-error) !important;
}

.swal2-warning {
    border-color: var(--swal-warning) !important;
    color: var(--swal-warning) !important;
}

.swal2-info {
    border-color: var(--swal-info) !important;
    color: var(--swal-info) !important;
}

/* ==================== INPUT FIELDS ==================== */
.swal2-input,
.swal2-textarea,
.swal2-select,
.swal2-file {
    border: 2px solid #e5e7eb !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    font-size: 15px !important;
    transition: all 0.2s !important;
    margin: 8px 0 !important;
}

    .swal2-input:focus,
    .swal2-textarea:focus,
    .swal2-select:focus {
        border-color: var(--swal-primary) !important;
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
        outline: none !important;
    }

/* ==================== VALIDATION MESSAGE ==================== */
.swal2-validation-message {
    background: #fef2f2 !important;
    color: var(--swal-error) !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
}

/* ==================== CLOSE BUTTON ==================== */
.swal2-close {
    color: #9ca3af !important;
    font-size: 32px !important;
    transition: all 0.2s !important;
}

    .swal2-close:hover {
        color: #4b5563 !important;
        transform: rotate(90deg) !important;
    }

/* ==================== PROGRESS STEPS ==================== */
.swal2-progress-steps {
    margin: 0 0 24px 0 !important;
}

.swal2-progress-step {
    background: #e5e7eb !important;
    color: #6b7280 !important;
    border-radius: 50% !important;
}

    .swal2-progress-step.swal2-active-progress-step {
        background: var(--swal-primary) !important;
        color: white !important;
    }

.swal2-progress-step-line {
    background: #e5e7eb !important;
}

/* ==================== TIMER BAR ==================== */
.swal2-timer-progress-bar {
    background: var(--swal-primary) !important;
}

/* ==================== TOAST NOTIFICATIONS ==================== */
.swal2-toast {
    border-radius: 12px !important;
    padding: 16px 24px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

    .swal2-toast .swal2-title {
        font-size: 16px !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .swal2-toast .swal2-close {
        font-size: 20px !important;
    }

/* ==================== BACKDROP ==================== */
.swal2-container.swal2-backdrop-show {
    background: rgba(0, 0, 0, 0.5) !important;
}

/* ==================== RTL SUPPORT ==================== */
.swal2-rtl .swal2-close {
    left: 0 !important;
    right: auto !important;
}

.swal2-rtl .swal2-cancel {
    margin-left: 0 !important;
    margin-right: 12px !important;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .swal2-popup {
        padding: 24px !important;
        width: 90% !important;
    }

    .swal2-title {
        font-size: 20px !important;
    }

    .swal2-html-container {
        font-size: 14px !important;
    }

    .swal2-styled {
        padding: 10px 24px !important;
        font-size: 14px !important;
    }
}

@media (max-width: 480px) {
    .swal2-popup {
        padding: 20px !important;
    }

    .swal2-actions {
        flex-direction: column !important;
        gap: 8px !important;
    }

    .swal2-styled {
        width: 100% !important;
        margin: 0 !important;
    }

    .swal2-cancel {
        margin-left: 0 !important;
    }
}