/* =========================
   RESET
========================= */

*,
*::before,
*::after{
    box-sizing:border-box;
    margin:0;
    padding:0;
}

html{
    scroll-behavior:smooth;
}

body{
    line-height:1.6;
    -webkit-font-smoothing:antialiased;
    text-rendering:optimizeLegibility;
    overflow-x:hidden;
    background-image: var(--bg-image);
      background-size: cover;
  background-position: center;
  background-repeat: repeat-y;
      min-height: 100vh;
}



/* =========================
   ROOT VARIABLES
========================= */

:root{
    --header-shrink: 0.9;

    --site-max-width:1350px;

    --bg-color:#ffffff;
    --bg-gradient:linear-gradient(135deg,#100794,#0e001b);
    --bg-image: url('../../assets/img/desktop.webp');

    --color-text:#444444;
    --color-muted:#6e6e6e;

    --color-primary:#170da0;
    --color-secondary:#2a0061;

    --color-highlight:#18ddd3;

    --color-border:#a8a8a8;

    --font-main: "Archivo", sans-serif;

    --block-space:100px;
}

/* =========================
   BASE
========================= */

.mobile { 
    display: none;
}

body{
    font-family:var(--font-main);
    font-size:14px;
}

/* Width container (no vertical spacing here) */
.container{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width:var(--site-max-width);
    margin: 0 auto;
    padding:0;
    max-height: 100%;
}

@media screen and (max-width: 599px) {
  .container {
    width: 100%;
    padding: 10px;
        flex-wrap: wrap;
  }
}


.hero{
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-bottom:var(--block-space);
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #1d1d1d;
}


.block{
    margin-bottom:var(--block-space);
}

.row{
  display:flex;
  flex-direction:row;
  align-items: center;
  max-height: 100%;
}

@media screen and (min-width: 599px) {
  .row {
    width: 100%;
  }
}

/* Ultra-wide: >= 1920px */
@media (min-width: 1919px){
  :root{
    --bg-image: url('../../assets/img/ultra.webp');
  }
}

/* Mobile: < 600px */
@media (max-width: 599px){
  :root{
    --bg-image: url('../../assets/img/mobile.webp');
  }
}

.col{
  width: 100%;
  max-height: 100%;
  display:flex;
  flex-direction:column;
}

/* main axis */

.left{ 
  justify-content:flex-start;
}
.center{ justify-content:center; }
.right{ justify-content:flex-end; }
.between{ justify-content:space-between; }
.around{ justify-content:space-around; }

/* cross axis */

.top{ align-items:flex-start; }
.middle{ align-items:center; }
.bottom{ align-items:flex-end; }

.stickdown{ margin-top: 100%;}

.short {
  max-width: 200px!important;
}

.martop {
  margin-top: 20px!important;
}

.marbot {
  margin-bottom: 20px!important;
}

.padding { 
  padding: 20px;
}

.title{
  padding-top: 20px;
  padding-bottom: 20px;
}

.gap {
  gap:20px!important;
}

.sgap { 
  gap: 10px;
}

.flex{
    display: flex;
}

/* =========================
   TYPOGRAPHY
========================= */

h1{
    font-size:3rem;
    margin: 0;
}

h2{
    font-size:2rem;
        margin: 0;
}

h3{
    font-size:1.5rem;
        margin: 0;
}

h4{
      font-size:1rem;
        margin: 0;
}

p{
        margin: 0;
}

a{
    text-decoration:none;
    margin: 0;
    color:inherit;
    cursor: pointer;
    transition: transform 0.1s ease-in-out;
}

a:hover{
    opacity: 0.70;
}

a.active {
  font-weight: 800;
}

/* =========================
   ICONS EMBLEM LOGO
========================= */

.minicons {
    height: 20px;
    margin-left: 15px;
    margin-bottom: -5px;
    transition: opacity .2s ease, transform .15s ease;
    cursor: pointer;
}

.icons {
    height: 25px;
    margin-left: 10px;
    margin-right: 10px;
    transition: opacity .2s ease, transform .15s ease;
        cursor: pointer;
}

.bigicons {
    height: 30px;
    transition: opacity .2s ease, transform .15s ease;
        cursor: pointer;
}

#logo { 
    height: 60px;

}

.navlink { 
    margin-right: 30px;
    font-size: 18px;
    font-weight: 500;
}

.white {
  color: #fff;
}

.black {
  color: #000;
}

/* =========================
   FORMS
========================= */

input,
select,
textarea{
  background-color: #ffffff00!important;
  color: #161616;
    font-family:inherit;
    font-size:14px;
    padding:10px;
    padding-left: 25px;
    border: 1px solid #585858;
    border-radius: 25px;
    height: 40px;
    width:100%;
    outline: none;
}


input::placeholder {
  color: #757575;
}

input[type=checkbox] {
   height: 15px;
}

input:focus,
textarea:focus{
    outline:none;
    border-color:#585858; /* neutral, not opinionated */
}

.search {
  color: #fff;
    padding-right: 15px;
    padding-left: 40px;
    border: none;
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;
    background-color: transparent;
    max-width: 300px;
}

.divider {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
}
.header { 
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    margin-bottom: 50px;
background: #ffffff;
background: linear-gradient(0deg, rgba(255, 255, 255, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
backdrop-filter: blur(5px);
-webkit-backdrop-filter: blur(5px);
}

.loggedin {
    display: flex;
    justify-content: flex-start;
        align-items: center;
    gap: 10px;
    color: #fff;
}

.logout {
        display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    color: #fff;
}


.card { 
    padding: 20px;
    width: 100%;
    max-width: 450px;
    min-height: 500px;
    max-height: 600px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    box-shadow: rgba(0, 0, 0, 0.3) 0px 7px 29px 0px;
}

.card-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
}

.card2 { 
  display: flex;
  flex-direction: column;
  margin: 20px;
    padding: 20px;
    width: 100%;
    max-width: 350px;
    height: 100%;
    min-height: 500px;
    max-height: 600px;
background: rgba(255, 255, 255, 0.2);
border-radius: 15px;
backdrop-filter: blur(25px);
-webkit-backdrop-filter: blur(25px);
box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}






    /* BUTTON 6 */
.button6 {
  all: unset;
  width: 60px;
  height: 20px;
  font-size: 16px;
  background: transparent;
  border: none;
  position: relative;
  color: #f0f0f0;
  cursor: pointer;
  z-index: 1;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.button6::after,
.button6::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: -99999;
  transition: all .4s;
}

.button6::before {
  transform: translate(0%, 0%);
  width: 100%;
  height: 100%;
background: #000000;
background: linear-gradient(90deg, rgb(4, 170, 129) 0%, rgb(2, 73, 70) 100%);
  border-radius: 25px;
}

.button6::after {
  transform: translate(10px, 10px);
  width: 35px;
  height: 35px;
  background: #ffffff15;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-radius: 50px;
}

.button6:hover::before {
  transform: translate(0%, 25%);
  width: 100%;
  height: 100%;
}

.button6:hover::after {
  border-radius: 25px;
  transform: translate(0, 0);
  width: 100%;
  height: 100%;
}

.button6:active::after {
  transition: 0s;
  transform: translate(0, 5%);
}










    /* BUTTON 7 */
.button7 {
  all: unset;
  width: 60px;
  height: 20px;
  font-size: 16px;
  background: transparent;
  border: none;
  position: relative;
  color: #f0f0f0;
  cursor: pointer;
  z-index: 1;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.button7::after,
.button7::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: -99999;
  transition: all .4s;
}

.button7::before {
  transform: translate(0%, 0%);
  width: 100%;
  height: 100%;
background: #000000;
background: linear-gradient(90deg, rgb(2, 0, 94) 0%, rgb(8, 28, 207) 100%);
  border-radius: 25px;
}

.button7::after {
  transform: translate(10px, 10px);
  width: 35px;
  height: 35px;
  background: #ffffff15;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-radius: 50px;
}

.button7:hover::before {
  transform: translate(0%, 25%);
  width: 100%;
  height: 100%;
}

.button7:hover::after {
  border-radius: 25px;
  transform: translate(0, 0);
  width: 100%;
  height: 100%;
}

.button7:active::after {
  transition: 0s;
  transform: translate(0, 5%);
}

    /* BUTTON 8 */
.button8 {
  all: unset;
  width: 60px;
  height: 20px;
  font-size: 16px;
  background: transparent;
  border: none;
  position: relative;
  color: #f0f0f0;
  cursor: pointer;
  z-index: 1;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.button8::after,
.button8::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: -99999;
  transition: all .4s;
}

.button8::before {
  transform: translate(0%, 0%);
  width: 100%;
  height: 100%;
background: #000000;
background: linear-gradient(90deg, rgb(75, 0, 0) 0%, rgb(212, 4, 4) 100%);
  border-radius: 25px;
}

.button8::after {
  transform: translate(10px, 10px);
  width: 35px;
  height: 35px;
  background: #ffffff15;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-radius: 50px;
}

.button8:hover::before {
  transform: translate(0%, 25%);
  width: 100%;
  height: 100%;
}

.button8:hover::after {
  border-radius: 25px;
  transform: translate(0, 0);
  width: 100%;
  height: 100%;
}

.button8:active::after {
  transition: 0s;
  transform: translate(0, 5%);
}

.content { 
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 1px
}

.password-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrap input {
    width: 100%;
    padding-right: 40px;
}

.toggle-password {
    position: absolute;
    right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    opacity: 0.7;
}

.usermenu {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.userdropdown {
  color: #000;
    position: absolute;
    right: -200px;
    min-width: 180px;
    padding: 10px 12px;
background-color: rgb(255, 255, 255);
border-radius: 15px;

    display: none;
    z-index: 1000;
    white-space: nowrap;
}

.usermenu:hover .userdropdown {
    display: block;
}

        .firm-list-wrap,
        .employee-list-wrap {
            max-height: 320px;
            overflow-y: auto;
            overflow-x: hidden;
            padding-right: 10px;
        }

        .firm-link {
            display: block;
            text-decoration: none;
            color: inherit;
        }

        .firm,
        .employee {
            padding: 3px 0;
            cursor: pointer;
        }

        .firma-search {
            width: 100%;
            margin-bottom: 12px;
                border: none;
    border-radius: 0%;
    border-bottom: 1px solid #a8a8a8;
        }

        .hidden-row {
            display: none !important;
        }

 .selected-row {
    font-weight: 700;
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-height: 320px;
    overflow-y: auto;
}

.doc-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.doc-preview {
    width: 100%;
    height: 140px;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f3f3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.doc-preview img,
.doc-preview iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
}

.doc-fallback {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    opacity: 0.7;
}

.doc-name {
    font-size: 14px;
    word-break: break-word;
}

.doc-empty {
    padding: 8px 0;
}

.doc-card{
position:relative;
}

.doc-delete{
position:absolute;
top:1px;
right:1px;
width:22px;
height:22px;
border:none;
color:#ff2d2d;
font-weight:bold;
cursor:pointer;
line-height:20px;
padding:0;
font-size:20px;
background-color: transparent;
}

.doc-delete:hover{
background:#d6484844;
}

/* ===== Modal Overlay ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    overflow-y: auto;
}

.modal-box {
    width: 100%;
    max-width: 500px;
    margin: auto;
}

.card3 {
    padding: 20px;
    width: 100%;
    max-width: 450px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}


/* ===== Modal Window ===== */

.modal-window {
    background: #fff;
    width: 700px;
    max-width: 90%;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
    overflow: hidden;
}

/* header same as card header */
.modal-window .row.divider {
    padding: 14px 18px;
}

/* content spacing */
.modal-window .content {
    padding: 16px 18px;
}

/* input styling */
.modal-window input {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* buttons spacing */
.modal-actions {
    padding: 12px 18px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

#selectedInviteFiles ul {
    margin-top: 8px;
}

#selectedInviteFiles li {
    margin-bottom: 6px;
}

.medical-expiry-alert {
    background-color: #444099d9 !important;
    color: #fed1ff !important;
}

.medical-expiry-alert:hover {
    background-color: #444099d9 !important;
}

.medical-expiry-alert.selected-row {
    background-color: #444099d9 !important;
    color: #fed1ff !important;
}

.medical-expiry-alert .firm,
.medical-expiry-alert .employee,
.medical-expiry-alert span {
    background-color: #444099d9 !important;
    color: #fed1ff !important;
}