/*
    #424fff το πιο σκούρο
    #9a42ff λίγο πιο ανοιχτό
    #6adfff πρασινάκι
    
    1rem        16px
    0.875rem    14px
    0.75rem     12px
    0.625rem    10px
    0.5rem      8px
*/

/* Base styles */
:root {
    --primary-color: #4285f4;
    --hover-color: #e8f0fe;
    --selected-hover-color: #d2fbc8;
    --border-color: #e0e0e0;
    --text-color: #333;
    --danger-color: #ea4335;

    --success-color: #34a853;
    --secondary-color: #3a0ca3;
    --success-color: #4bb543;
    --error-color: #ff3333;
    --border-radius: 5px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}


html { 
    overflow: auto; 
}

body {
    width: 100%;
    justify-content: center;   
    padding: 0;
    margin:0; 
    
    background-color: #EFEFEF; /* F0F2F5 #fff  ;  */
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.875rem;
    color: #333;
    min-height: 95vh;  
}

.body-container {
    display: flex;
    margin: 0 auto;
    width:80%;
    flex-direction: column;   /* stack items vertically */
    justify-content: center;
    align-items: center;      /* center each item horizontally */
}



/* Κλάση για να αφήνει μία κενή γραμμή στο ίδιο ύψος με το κείμενο παραγράφου   */
.vspace {
    width: 100%;
    font-size: 1rem;
}







            

            


/* FORMS SECTION  */
.form-field {
    padding:5px;
}

input[type=text], input[type=email],  input[type=date], select, input[type=password] {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.875rem;
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #666;
    -webkit-box-sizing: border-box;
       -moz-box-sizing: border-box;
            box-sizing: border-box;
}

textarea {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.875rem;
    padding: 5px;
    width: 100%;
    border-radius: 5px;
    border: 1px solid #666;
    -webkit-box-sizing: border-box;
       -moz-box-sizing: border-box;
            box-sizing: border-box;
}

input[type=text]:focus, textarea:focus  {
    border: 3px solid #EDEDFF;
}

label {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.875rem;
    text-align:left;
}


input[type=submit] {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.75rem;
    font-weight: bold;
    background-color: #fff;
    color: #424fff;
    border: 1px solid #424fff;
    border-radius: 5px;
    padding: 10px 20px 10px 20px;   
    transition-duration: 0.4s;  
}

input[type=submit]:hover {
    background-color: #424fff; 
    color: #fff;
    box-shadow: 2px 2px 6px #999;
}

input[type=file] {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.75rem;
    color: #333;
}

input[type=text]:focus, textarea:focus, input[type=date]:focus, select:focus  {
    outline: none;
    border-radius: 5px;
    border: 1px solid #d3d3d3;
}

.nameSearch {
    background-image: url('../icons/search-glass_600p.png');
    background-size: 25px 25px;
    background-attachment: fixed;
    background-position: 290px 14px;
    background-repeat: no-repeat;
    width: 300px;
    font-size: 14px;
    border-radius: 5px;
    padding: 10px; /* 12px 20px 12px 40px; */
    border: 1px solid #ddd;
    margin-bottom: 8px;
}

input[type=number] {
    background-image: url('../icons/euro-symbol_300p.png');
    background-size: 14px 14px; 
    /* background-attachment: fixed; */
    background-position: 5px;  
    background-repeat: no-repeat;  
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    text-align: right;
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #666;
    -webkit-box-sizing: border-box;
       -moz-box-sizing: border-box;
            box-sizing: border-box;
}

.euroAmount {
    background-image: url('../icons/euro-symbol_300p.png');
    background-size: 25px 25px;
    background-attachment: fixed;
    background-position: 0px 0px;
    background-repeat: no-repeat;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    border-radius: 5px;
    padding: 5px;
    border: 1px solid #666;
    -webkit-box-sizing: border-box;
       -moz-box-sizing: border-box;
            box-sizing: border-box;
}



/* FORMS SECTION  */
    
.buttonWithMargin {
    margin: 10px;
}

.img_edit_del{
    transition: transform .2s;
    width:1rem;
    height:1rem;
    margin:0 auto;
}

.img_edit_del:hover{
    transform:scale(1.5);
}

.gridIcon {
    width: 24px;
    height: 24px;
}

.gridIcon:hover {
    box-shadow: 2px 2px 6px #999;
}

h2 {
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    }
    
h3.c {
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    }
    
.n {
  font-family: Arial, Helvetica, sans-serif;
  text-align: left;
}

.c {
  font-family: Arial, Helvetica, sans-serif;
  text-align: center;
}

.right{
    float:right;
}

.left{
    float:left;
}


/*  DIV SECTION */
.myDiv {
    border: 1px solid #FFF;
    border-radius: 15px;
    margin: 1rem;
    padding: 2rem;
    background-color: #FFF;
    box-shadow: 2px 2px 6px #999;
}

.myDiv-center {
    display: flex;
    justify-content: center;  /* main axis */
}

.divStandard {
    padding: 0.5rem;
/*    margin: auto; */
}

.myDivFlat {
    margin-left: 1rem;
    margin-right: 1rem;
}

.myDivInsert {
    /* width: 500px; */
    width:fit-content;
    height:fit-content;
    margin-left: auto; 
    margin-right: auto;
}

.frontpagediv {
    margin: auto;
    text-align: center;
    width: 300px;
    border: 1px solid #FFF;
    border-radius: 10px;
    padding: 70px 0;
    background-color: #FFF;
    cursor: pointer;
    position: relative;
    box-shadow: 2px 2px 6px #999;
}

.frontpagediv:hover {
    box-shadow: 4px 4px 10px #999;
}

.frontpagedivmob {
    padding: 30px 0;
}

.tddivright {
    position:absolute;
    right:0;
}

.tddivleft {
    position:absolute;
    left:0;
}

.insert-update-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}










a:link {
  color: #424fff;
  background-color: transparent;
  text-decoration: none;
}

a:visited {
  color: #9a42ff;
  background-color: transparent;
  text-decoration: none;
}

a:hover {
  color: #666; /* #6adfff; */
  background-color: transparent;
  text-decoration: underline;
}

a:active {
  color: #FDF027;
  background-color: transparent;
  text-decoration: underline;
}

.link {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Κάνει ένα div clickable σαν link */
.clickable-div {
    display: block;
    text-decoration: none;
    color: #fff !important;
    transition: background-color 0.2s;
}











.flex-container {
    display: flex;
    flex-wrap: wrap;
/*    margin:auto;  */
}

.flex-container-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}



/*
 *
 *  BUTTON SECTION
 *
 */
 
button {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.75rem;
    font-weight: bold;
    background-color: #fff;
    color: #424fff;
    border: 1px solid #424fff;
    border-radius: 5px;
    padding: 10px 20px 10px 20px;   
    transition-duration: 0.4s; 
    margin: 5px;
}

button:hover {
    background-color: #424fff; 
    color: #fff;
    box-shadow: 2px 2px 6px #999;
}

.buttonDelLarge {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.75rem;
    font-weight: bold;
    background-color: #fff;
    color: red;
    border: 1px solid red;
    border-radius: 5px;
    padding: 10px 20px 10px 20px;   
    transition-duration: 0.4s; 
}

.buttonDelLarge:hover {
    background-color: red; 
    color: #fff;
    box-shadow: 2px 2px 6px #999;
}

.buttonDelSmall {
    color: red;
    border: 1px solid red;
    padding: 4px 4px 4px 4px;  
}

.buttonDelSmall:hover {
    background-color: red; 
    color: white;
    box-shadow: 2px 2px 6px #999;
}

/* Close button: 25×25 px square with centered X */
    .close-btn {
        position: absolute;
        right: 0;                   /* pin to right edge */
        width: 25px;
        height: 25px;
        background: #fff;          /* button background */
        color: #424fff;
        border: solid;
        border-color: #424fff;
        border-radius: 10;          /* sharp square corners */
        cursor: pointer;
    }
    
    /* Create the two bars of the X */
    .close-btn::before,
    .close-btn::after {
        content: "";
        position: absolute;
        left: 50%;
        top: 50%;
        width: 13px;               /* length of each bar */
        height: 2px;               /* thickness of each bar */
        background: #424fff;          /* color of the X */
        color: #424fff;
        transform-origin: center;
    }
    
    /* Rotate bars 45° and -45° to form the X */
    .close-btn::before {
        transform: translate(-50%, -50%) rotate(45deg);
    }
    .close-btn::after {
        transform: translate(-50%, -50%) rotate(-45deg);
    }
    
    /* Optional hover/focus states */
    .close-btn:hover {
        background: #424fff;
        color: #fff;
    }
    
    .close-btn:hover::before,
    .close-btn:hover::after {
        background: #fff;   /* new color for both bars */
    }
    .close-btn:focus {
        outline: 2px solid #007bff;
        outline-offset: 2px;
    }


.btn-more {     /* Κουμπί για τον πίνακα πελατών να ανοίγει την καρτέλα πελάτη */
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
    font-weight: bold;
    background-color: #fff;
    color: #424fff;
    border: 1px solid #424fff;
    border-radius: 5px;
    padding: 10px 20px 10px 20px;   
    transition-duration: 0.4s; 
    margin: 5px;
}

.btn-more:hover {
    background-color: #424fff; 
    color: #fff;
    box-shadow: 2px 2px 6px #999;
}

.btn-update {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.75rem;
    font-weight: bold;
    background-color: #E6E6E6;
    color: #000;
    border: 1px solid #000;
    border-radius: 5px;
    padding: 10px 20px 10px 20px;   
    transition-duration: 0.4s; 
    margin: 5px;
}

.btn-update:hover {
    background-color: green; 
    color: #fff;
    box-shadow: 2px 2px 6px #999;
}


/* Back-to-top button */
#btt {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
/*  border-radius: 50%; */
  background: #fff;
  color: #424fff;
  border: 1px solid #424fff;
  font-size: 1.4rem;
  font-weight: bold;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 9999;
}

#btt.visible {
  opacity: 1;
  transform: translateY(0);
}

#btt:hover {
  background: #424fff;
  color: #fff;
}




/* Κώδικας για το Επιστροφή στην αρχή κουμπί */
#myBtn {
  display: none; /* Hidden by default */
  height:35px;
  width:35px;
  vertical-align: middle;
  position: fixed; /* Fixed/sticky position */
  bottom: 20px; /* Place the button at the bottom of the page */
  right: 5px; /* Place the button 40px from the right */
  z-index: 99; /* Make sure it does not overlap */
  border: 2px solid #333; /* Remove borders */
  outline: none; /* Remove outline */
  background-color: #ddd; /* Set a background color */
  color: #333; /* Text color */
  cursor: pointer; /* Add a mouse pointer on hover */
  /* padding: 15px; /* Some padding */
  border-radius: 5px; /* Rounded corners */
  font-size: 18px; /* Increase font size */
}

#myBtn:hover {
  background-color: #87B6ED; /* Add a dark-grey background on hover */
  color: #333;
}

#myBtnRant {
  display: none; /* Hidden by default */
  height:35px;
  width:35px;
  vertical-align: middle;
  position: fixed; /* Fixed/sticky position */
  bottom: 20px; /* Place the button at the bottom of the page */
  right: 5px; /* Place the button 40px from the right */
  z-index: 99; /* Make sure it does not overlap */
  border: 2px solid #333; /* Remove borders */
  outline: none; /* Remove outline */
  background-color: Transparent; /* Set a background color */
  color: #333; /* Text color */
  cursor: pointer; /* Add a mouse pointer on hover */
  /* padding: 15px; /* Some padding */
  border-radius: 5px; /* Rounded corners */
  font-size: 18px; /* Increase font size */
}

#myBtnRant:hover {
  background-color: #ddd; /* Add a dark-grey background on hover */
  color: #333;
}

@media screen and (max-width: 600px) {
    .flex-container {
        flex-direction: column;
    }
    
    input[type=text], input[type=number], input[type=date], select {
        width: 90%;
    }
    
    .myDiv {
        width:90%;
    }
    
    
}















/* 
 * Χρησιμοποιείτε για το format του πεδίου αναζήτησης στους πίνακες 
 */
.nameSearch {
   /* background-image: url('../icons/search-glass_600p.png');
    background-size: 25px 25px;
    background-attachment: fixed;
    background-position: 290px 14px;
    background-position: right;
    background-repeat: no-repeat; */
    width: 300px;
    font-size: 14px;
    border-radius: 5px;
    padding: 5px; /* 12px 20px 12px 40px; */
    border: 1px solid #ddd;
    /* margin-bottom: 8px; */
}

.nameSearch_mob {
   /* background-image: url('../icons/search-glass_600p.png');
    background-size: 25px 25px;
    background-attachment: fixed;
    background-position: 290px 14px;
    background-position: right;
    background-repeat: no-repeat; 
    width: 300px; */
    font-size: 14px;
    border-radius: 5px;
    padding: 5px; /* 12px 20px 12px 40px; */
    border: 1px solid #ddd;
    /* margin-bottom: 8px; */
}



/*  Table styles 
    Χρησιμοποιείτε με στην σελίδα ραντεβού και πίνκας πελατών για τον αρχικό πίνακα    
*/


/* Table styles καινούργια 19/4/2026 */

/* Για desktop */
.records-table {
    width: 95%;
    border-collapse: collapse;
    margin-top: 20px;
}

.records-table th,
.records-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.records-table th {
    background-color: #34495e;
    color: white;
    font-weight: 600;
}

.records-table tr:hover {
    background-color: #f9f9f9;
}

/* Για mobile */
.records-table-mobile {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.records-table-mobile th,
.records-table-mobile td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.records-table-mobile th {
    background-color: #34495e;
    color: white;
    font-weight: 600;
}

.records-table-mobile tr:hover {
    background-color: #f9f9f9;
}





.responsive-table {
    overflow-x: auto;
    margin-bottom: 30px;
}

.table-expandable {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.table-expandable th,
.table-expandable td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table-expandable th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

.table-expandable tr.main-row-selected {
    cursor: pointer;
    transition: background-color 0.2s ease;
    background-color:#E7FFE1;
}

.table-expandable tr.main-row-selected:hover {
    background-color: var(--selected-hover-color);
}

.table-expandable tr.main-row {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.table-expandable tr.main-row:hover {
    background-color: var(--hover-color);
}

/* Expanded content row - initially hidden */
.table-expandable tr.content-expandable {
    display: none;
}

.table-expandable tr.content-expandable.show {
    display: table-row;
}

.table-expandable tr.content-expandable td {
    padding: 0;
}

.details-expanded {
    padding: 20px;
    background-color: #f5f5f5;
    border-left: 4px solid var(--primary-color);
}

.details-expanded h3 {
    margin-top: 0;
    color: var(--primary-color);
}

.td-workfl-done {
    text-align: center;
    background-color:#1BFF00;
}

.td-workfl-work {
    text-align: center;
    background-color:#ffea00;
}




/*
 *
 *  MODAL SECTION
 *
 */
 
.modal-header {
    display: flex;              /* row layout */
    flex-direction: row;
    align-items: center;        /* vertical centering (optional) */
    justify-content: center;    /* center element-1 horizontally */
    position: relative;         /* so element-2 can be absolutely positioned */
}

.modal-footer {
    display: flex;
    flex-direction: row;
    align-items: center;        /* vertical centering (optional) */
    justify-content: flex-end;
}

.modal-row {
    display:flex;
    flex-wrap: wrap;
    gap:1rem;
}





