@import '/_content/Microsoft.FluentUI.AspNetCore.Components/css/reboot.css';

/*==========แสนเพิ่ม=============*/
/*:root {
    --body-background-color:#d1d0d0;*/ /* Define the background color variable */
/*}*/
/*======================*/

body {
    --body-font: "Segoe UI Variable", "Segoe UI", sans-serif;
    font-family: var(--body-font);
    font-size: var(--type-ramp-base-font-size);
    line-height: var(--type-ramp-base-line-height);
    margin: 0;
   /* background-color: var(--body-background-color);*/ /* แสนเพิ่ม Apply the background color */
}

.navmenu-icon {
    display: none;
}

.main {
    min-height: calc(100dvh - 86px);
    color: var(--neutral-foreground-rest);
    align-items: stretch !important;
}

.body-content {
    align-self: stretch;
    height: unset !important;
    /*display: flex;*/ /*ควยหาตั้งนาน ทำให้หด*/
    background-color: #f4f6f9; /*#fbfbfb;*/
}

.content {
    padding: 0.5rem 1.5rem;
    align-self: stretch !important;
   
}

footer {
    display: grid;
    grid-template-columns: 10px auto auto 10px;
    background: var(--neutral-layer-4);
    color: var(--neutral-foreground-rest);
    align-items: center;
    padding: 10px 10px;
}

    footer .link1 {
        grid-column: 2;
        justify-content: start;
    }

    footer .link2 {
        grid-column: 3;
        justify-self: end;
    }

    footer a {
        color: var(--neutral-foreground-rest);
        text-decoration: none;
    }

        footer a:focus {
            outline: 1px dashed;
            outline-offset: 3px;
        }

        footer a:hover {
            text-decoration: underline;
        }

.alert {
    border: 1px dashed var(--accent-fill-rest);
    padding: 5px;
}


#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    margin: 20px 0;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3Ln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M4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::before {
        content: "An error has occurred. "
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

@media (max-width: 768px) {

   
        .main {
            flex-direction: column !important;
            row-gap: 0 !important;
        }

        nav.sitenav {
            width: 100%;
            height: 100%;
        }

        #main-menu {
            width: 100% !important;
        }

            #main-menu > div:first-child:is(.expander) {
                display: none;
            }

        .navmenu {
            width: 100%;
        }

        #navmenu-toggle {
            appearance: none;
        }

            #navmenu-toggle ~ nav {
                display: none;
            }

            #navmenu-toggle:checked ~ nav {
                display: block;
            }

        .navmenu-icon {
            cursor: pointer;
            z-index: 10;
            display: block;
            position: absolute;
            top: 15px;
            right: 20px;
            width: 20px;
            height: 20px;
            border: none;
        }
        /* //เพิ่ม ของ App*/
        .link-container {
            flex-direction: column;
            align-items: center; /* Center aligns items in mobile view */
        }

        .link-description {
            align-self: center; /* Centers the description */
            text-align: left; /* Centers the text */
            width: 100%; /* Takes full width */
            margin-top: 0.5rem; /* Adds space between the name and description */
        }

        .header-banner {
            padding-top: 50%; /* Adjust padding to maintain aspect ratio on smaller screens */
        }
    }


/*เพิ่ม login*/
.login-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color:white;
}

    .login-link i {
        margin-right: 5px;
    }

.user-name {
    margin-right: 15px;
    color: white;
}

/*===============Login New 200467===================*/


/* Typography and form element adjustments for readability and appearance */
.login-title, .login-subtitle {
    text-align: center;
    font-size: calc(1.25rem + 0.5vw); /* Dynamic font size */
}

.FluentTextField, .login-button {
    width: 100%; /* Full width */
}







/*====================================*/

/*
ข้างล่างนี้ห้ามลบ ใช้ CustomCard แบบไม่มีเส้นกรอบ Header*/

.custom-card {
    border: 1px solid #ccc;
    border-radius: 0.25rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    overflow: hidden; /* ช่วยให้ border-radius ใช้งานกับ pseudo-elements ได้ */
}

.card-header {
    padding: 0.75rem 1.25rem;
    background-color: transparent;
    color: #212529;
    position: relative;
   
}

.card-body {
    padding: 1.25rem;
}

.card-footer {
    padding: 0.75rem 1.25rem;
    /*background-color: #f9f9f9;*/
    border-top: 1px solid #ccc;
}

.custom-card::before {
    content: "";
    position: absolute;
    top: 0;
     /* ตั้งตำแหน่งให้อยู่ด้านบนของ card */
    left: 0;
    right: 0;
    height: 3px; /* ความสูงของเส้นขอบ */
    background-color: #007bff; /* Bootstrap primary color สำหรับเส้นขอบด้านบน */
    border-top-left-radius: calc(0.25rem - 1px); /* รักษารูปทรงโค้งมนของมุม */
    border-top-right-radius: calc(0.25rem - 1px);
    }


/* ถ้าคุณต้องการเส้นขอบด้านล่างของ .card-header ให้สั้นกว่า, คุณสามารถใช้ pseudo-element */
    /*.card-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15px;*/ /* ขยับเข้าจากขอบซ้าย */
    /*right: 15px;*/ /* ขยับเข้าจากขอบขวา */
    /*height: 2px;
    background-color: #007bff;*/ /* Bootstrap primary color */
/*}*/

/* ตรวจสอบและปรับค่า margin หรือ padding ถ้าจำเป็น */


/*=================เพิ่ม bootstrap button 090467=========================*/
.btn {
    display: inline-block;
    font-weight: 400;
    color: #212529;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
   /* padding: 0.375rem 0.75rem;*/
  /*  font-size: 1rem;*/
   /* line-height: 1.5;*/
   /* border-radius: 0.25rem;*/
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    
    padding: 0.5rem 1rem; /* ปรับ padding ให้ตรงกับขนาดที่ต้องการ */
    font-size: 0.875rem; /* ปรับขนาด font ให้เหมาะสม */
    line-height: 1.5; /* ปรับ line-height สำหรับข้อความภายในปุ่ม */
    border-radius: 0.2rem; /* ปรับความโค้งของขอบให้ตรงกับ Fluent UI */
}

.btn-primary {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}

.btn-secondary {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-success {
    color: #fff;
    background-color: #28a745;
    border-color: #28a745;
}

.btn-danger {
    color: #fff;
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-warning {
    color: #212529;
    background-color: #ffc107;
    border-color: #ffc107;
}

.btn-info {
    color: #fff;
    background-color: #17a2b8;
    border-color: #17a2b8;
}

.btn-light {
    color: #212529;
    background-color: #f8f9fa;
    border-color: #f8f9fa;
}

.btn-dark {
    color: #fff;
    background-color: #343a40;
    border-color: #343a40;
}

.btn-link {
    font-weight: 400;
    color: #007bff;
    text-decoration: none;
    background-color: transparent;
    border-color: transparent;
}

.btn:not(:disabled):not(.disabled) {
    cursor: pointer;
}

    .btn:not(:disabled):not(.disabled):hover {
        filter: brightness(90%);
    }



   /* //-----------------Intranet Home 180467----------------------------*/
  /* ==========Card แบบมีเส้นกรอบ header======================*/

.cardContent {
    padding: 0; /* Remove padding here, will add to inner sections for better control */
    background-color: white;
    border: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    border-radius: 10px;
    display: flex;
    flex-direction: column; /* Ensures header, body, and footer stack vertically */
}

.cardContent-header {
    padding: 0.5rem 1rem; /* Uniform padding around the header */
    border-bottom: 1px solid #ccc; /* Light gray line for separation */
    font-size: 18px; /* Larger text for the header */
    color: #005A9E; /* Theme color for header text */
    font-weight: bold;
}

.cardContent-body {
    padding: 1rem; /* Padding inside the card body */
    border-bottom: 1px solid #ccc; /* Light gray line for separation */
    flex-grow: 1; /* Allows the body to fill the space */
}

.cardContent-footer {
    padding: 0.5rem 1rem; /* Uniform padding around the footer */
    text-align: right; /* Footer content aligned to the right */
    font-size: 16px;
    color: #007ACC; /* Theme color, ensures consistency with infocard */
}

.infocard {
    border-top: 4px solid #007ACC; /* Keeps the accent color on the top border */
}

/*เวลาเรียกใช้<div class="cardContent infocard" >
<div class="cardContent infocard">
    <div class="cardCustom-header">
        Card Header
    </div>
    <div class="cardContent-body">
        Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque et ipsum in dui malesuada tempus.
    </div>
    <div class="cardContent-footer">
        Card Footer
    </div>
</div>

*/

/*=======================ส่วนของ application======================= */

.link-container {
    display: flex;
    align-items: flex-start;
    flex-direction: column; /* Stack items vertically */
    justify-content: flex-start;
    padding: 1rem;
    border-bottom: 1px solid #e1e1e1;
}



.link-text {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #005A9E;
    flex-grow: 1; /* Allows the link text to take available space */
    margin-right: 10px; /* Provides spacing between the icon and text */
}

.link-icon {
    width: 30px; /* Ensures icons are the same size */
    text-align: center; /* Centers the icons */
    margin-right: 10px; /* Space between icon and text */
    color: #ffc107; /* Fluent UI primary blue */
}

.link-icon2 {
    width: 30px; /* Ensures icons are the same size */
    text-align: center; /* Centers the icons */
    margin-right: 10px; /* Space between icon and text */
    color: #17a2b8; /* Fluent UI primary blue */
}


/* For larger screens, keep the description to the right */
.link-description {
    /* text-align: right;  */

    flex-grow: 1; /* Allows the description to expand to fill space */
    color: #666;
    font-size: 0.85rem;
}




/*   css หัวข้อ */
.section-header {
    display: flex; /* Use flexbox for aligning text and icon */
    align-items: center; /* Align the icon and the text vertically */
    font-size: 24px; /* Size of the header text */
    color: #005A9E; /* Sets the text color to a deep blue */
    font-weight: bold; /* Make the header text bold */
    margin-bottom: 20px; /* Adds space below the header */
}

    .section-header i {
        margin-right: 10px; /* Adds space between the icon and the text */
        color: #005A9E; /* Sets the icon color to match the text */
        font-size: 28px; /* Slightly larger size for the icon */
    }

   /* ==================ส่วนของกิจกรรมและแนะนำพนักงานใหม่=====================*/


.cardEmployee {
    flex: 1 1 300px; /* Allows cards to grow and shrink but base at 300px */
    display: flex;
    flex-direction: column; /* Stacks image and text vertically */
    align-items: center; /* Aligns content to the center */
    text-align: center; /* Centers text */
    background-color: #f8f8f8; /* Light gray background for the cards */
    border-radius: 8px;
    overflow: hidden; /* Prevents content from spilling out */
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

    .cardEmployee img {
        width: 100%;
        Makes the image cover the full width of the card height: auto;
        display: block;
        Removes extra space below the image
    }

    .cardEmployee div {
        padding: 0.5rem;
    }




.d-flex {
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    flex-direction: column; /* Stack vertically */
}
   


/*header เว็บไซด์*/
.siteheader {
    background-color: var(--neutral-primary);
    color: var(--neutral-white);
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    align-items: center;
}

    .logo img {
        height: 25px;
        width:70px
    }

.site-title {
    font-size: 18px;
    font-weight: 600;
    margin-left: 5px;
}

.user-menu {
    display: flex;
    align-items: center;
}

    .user-menu .avatar {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        margin-right: 8px;
    }

    .user-menu .user-name {
        font-size: 16px;
        font-weight: 500;
    }

/* ==================== Media print CSS ==================== */

@media print {
    /* ซ่อนเนื้อหาทั้งหมดในหน้า */
    body * {
        visibility: hidden;
        margin: 0px;
        padding: 0px;
    }
    /* แสดงเฉพาะส่วนที่ต้องการพิมพ์ */
    .printable, .printable * {
        visibility: visible;
    }
    /* กำหนดให้เนื้อหาที่ต้องการพิมพ์อยู่ในตำแหน่งที่เหมาะสม */
    .printable {
        position: absolute;
        left: 0;
        top: 0;
    }
    
    

    /* การแบ่งหน้า */
    .pagebreak {
        page-break-before: always;
    }
}
