@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    text-decoration: none;
    font-family: Montserrat, sans-serif;
}

button {
    outline: 0;
    border: 0;
}

input {
    outline: 0;
    border: 0;
}

select {
    outline: 0;
    border: 0;
}

body {
    height: 100%;
    padding: 0;
    margin: 0;
    background: linear-gradient(45deg, hsl(185, 26%, 72%), hsl(224, 66%, 82%));
}

main {
    position: relative;
}

body::after {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background: rgb(16, 28, 50);
    opacity:0;
    visibility: hidden;
    transition: 0.3s all ease;
}

body:has(header ul>li:hover)::after {
    opacity: 0.35;
    visibility: visible;
}


main {
    width: 80%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 50px;
}

header {
    display: flex;
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    margin-top: 10px;
    width: 100%;
    border-radius: 10px;
    margin-bottom: 10px;
    background-color: #ffffff00 !important;
    border: 1px solid hsl(183, 71%, 7%) !important;
    box-shadow: 0 0 6px 2px #0000006e !important;
}



.main-header {
    width: 100%;
    position: relative;
    top: 0;
    z-index: 9999;

}

header ul {
    display: flex;
    list-style-type: none;
}

header ul li {
    padding: 20px 20px;
    position: relative;
}

header ul li a {
    display: inline-block;
    text-decoration: none;
    color: black;
    width: inherit;
    height: 100%;
    width: 100%;

}

.dropdown-1 {
    display: flex;
    flex-direction: column;
    opacity: 0;
    transition: 0.25s all ease;
    position: absolute;
    top: 95%;
    left: 0;
    visibility: hidden;
    background: none;
    width: 150%;
    gap: 5px 0;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0;

}

.dropdown-1 li {
    padding: 15px 22px;
    color: black;
    background: #d1e9fd !important;
    transition: 0.25s all ease;
    height: auto !important;
    border-radius: 10px;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.204) !important;
    position: relative;
    transition: 0.35s all ease;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 290px;
}

.dropdown-1 li:hover {
    box-shadow: 0 0 10px 1px hsla(185, 59%, 26%, 0.66);
    scale: 1.02;
}

.dropdown-1 li i {
    font-size: 12px;
    transition: 0.35s all cubic-bezier(0.19, 1, 0.22, 1);
    opacity: 0;
    translate: 0;
    position: absolute;
    right: 10%;
}

.dropdown-1 li:hover i {
    opacity: 1;
    translate: 5% 0;
}


li:hover .dropdown-1 {
    opacity: 1;
    visibility: visible;
}

.dropdown-2 {
    position: absolute;
    left: 100%;
    top: 0;
    width: auto;
    padding: 0 10px;
    opacity: 0;
    visibility: hidden;
    transition: 0.25s all ease !important;
    border-radius: 7px;
    display: flex;
    flex-direction: column;
    gap: 5px 0;
}


.dropdown-2 li {
    background: #d1e9fd !important;
    color: black;
    width: 100%;
    padding: 15px 22px;
    position: relative;
    border-radius: 10px;
    transition: 0.35s all ease;
    width: 250px;


}

.dropdown-2 li:hover {
    box-shadow: 0 0 15px #29547799;
}


.dropdown-2 a:nth-of-type(3)::after {
    display: none;
}

.dropdown-1 li:hover .dropdown-2 {
    opacity: 1;
    visibility: visible;
}

.dropdown-2:nth-of-type(2) {
    top: 55%;
}

.dropdown-1 a {
    font-size: 14px !important;
}
.dropdown-2 a {
    font-size: 14px !important;
}


.active-person {
    padding: 8px 16px;
    background: hsl(0, 0%, 0%);
    border-radius: 8px;
    color: white;
    outline: 0;
    border: 0;
    box-shadow: 0 0 10px 1px hsla(185, 26%, 72%, 0.699);
}

/* Admin header: allow switching role from active-person */
body:not(.allow-identity-switch) .active-person-dropdown {
    display: none !important;
}

body.allow-identity-switch .active-person-dropdown {
    display: flex !important;
}

.active-person-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.active-person-wrapper .active-person-dropdown {
    position: absolute;
    left: auto;
    right: 0;
    top: calc(100% + 8px);

    width: auto;
    min-width: 180px;
    padding: 8px;
    gap: 6px 0;

    z-index: 10000;
}

.active-person-wrapper .active-person-dropdown li {
    width: 100%;
    background: hsl(0, 0%, 0%);
    box-shadow: 0 0 10px 1px hsla(185, 26%, 72%, 0.55);
}

.active-person-wrapper .active-person-dropdown li a {
    color: black !important;
}

.active-person-wrapper .active-person-dropdown li:hover {
    box-shadow: 0 0 15px 1px hsla(185, 59%, 26%, 0.66);
}

.active-person-wrapper:hover .active-person-dropdown {
    opacity: 1;
    visibility: visible;
}



.header-buttons {
    width: 100%;
    justify-content: space-between;
    display: flex;
    flex-direction: row !important;
    margin-top: 10px;
    gap: 10px;

}

.header-buttons button {
    border: 0;
    border-radius: 8px;
    color: black;
    padding: 15px 25px;
    box-shadow: 0 0 20px 2px rgba(0, 0, 0, 0.136);
    white-space: nowrap;
    background-color: #ffffff00 !important;
    border: 1px solid hsl(183, 71%, 7%) !important;
    box-shadow: 0 0 6px 2px #0000006e !important;

}

.header-buttons-right {
    display: flex;
    gap: 15px;
}

.isim,
.nitelik {
    font-weight: 400;
    padding: 12px 20px !important;
    float: left;
    font-size: 16px;
}

.isim {
    width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nitelik {
    width: 400px;

}

.header-buttons-left {
    gap: 5px;
    display: flex;
}


/* main content styles */



.form-bank {

    padding: 30px 0px;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    border: 1px solid hsl(183, 71%, 7%);
    box-shadow: 0 0 10px 1px #00000045;
    padding: 30px;
    gap: 20px;
}

.form-bank h2 {
    color: hsl(0, 0%, 0%);
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    text-align: center;
}


.form-groups {
    gap: 15px;
    display: flex;
    flex-direction: column;
}


.form-group,
select {
    padding: 0 0;
    position: relative;
    display: flex;
    align-items: center;
    font-size: 15px;
    white-space: nowrap !important;
    letter-spacing: 0.2px;
    gap: 8px;
}

.form-group label,
.birlestirme-controls label {

    position: relative;
    border-radius: 10px;
    box-shadow: 0 0 20px 1px hsla(185, 49%, 24%, 0.596);
    background: hsl(183, 71%, 7%);
    padding: 15px 22px;
    color: rgb(255, 255, 255);
    font-size: 14px;
    font-weight: 500;
    padding: 0 10px;
    width: 170px;
    height: 47.3px;
    display: flex;
    justify-content: center;
    align-items: center;


}

.form-group input {
    outline: 0;
    border: 0;
    background: none;
    white-space: nowrap;
    width: 230px;
    border: 1px solid hsl(185, 49%, 24%);
    border-radius: 10px;
    box-shadow: 0 0 20px 1px hsla(185, 49%, 24%, 0.596);
    padding: 0 22px;
    font-size: 16px;
    letter-spacing: 0.4px;
    padding-left: 10px;
    height: 47.3px;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

select {
    appearance: none;
}

.form-group {
    position: relative;
}


.form-group i {
    position: absolute;
    color: hsl(185, 49%, 24%);
    right: 5%;
    top: 50%;
    translate: 0 -50%;

    font-size: 15px;
}


.form-bank select {
    width: 230px;
    padding: 0 12px !important;
    background: none;
    border: 1px solid hsl(185, 49%, 24%);
    border-radius: 10px;
    box-shadow: 0 0 20px 1px hsla(185, 49%, 24%, 0.596);
    color: hsl(185, 49%, 24%);
    font-size: 16px;
    outline: 0;
    height: 47.3px;
}

.form-bank select option {
    background: hsl(224, 66%, 82%);
    color: rgb(0, 0, 0);
    padding: 5px 0;
}

.table-buttons-container {
    display: flex;
    gap: 5px;
    margin-top: 5px;
    justify-content: flex-end;
}

.table-button {
    padding: 10px 16px;
    background: hsl(183, 71%, 7%);
    color: white;
    font-size: 16px;
    border-radius: 8px;
    box-shadow: 0 0 20px 1px hsla(185, 49%, 24%, 0.596);
    cursor: pointer;

}


/* SON STİLLER */

.table-button {
    padding: 10px 16px !important;
    background: hsl(183, 71%, 7%) !important;
    color: white !important;
    font-size: 16px !important;
    border-radius: 8px !important;
    box-shadow: 0 0 20px 1px hsla(185, 49%, 24%, 0.596) !important;
    cursor: pointer !important;
}

.form-group input {
    outline: 0 !important;
    border: 0 !important;
    background: none !important;
    white-space: nowrap !important;
    width: 230px !important;
    border: 1px solid hsl(185, 49%, 24%) !important;
    border-radius: 10px !important;
    box-shadow: 0 0 20px 1px hsla(185, 49%, 24%, 0.596) !important;
    padding: 0 22px !important;
    font-size: 16px !important;
    letter-spacing: 0.4px !important;
    padding-left: 10px !important;
    height: 47.3px !important;
}

/*

tüm sitede temel tasarım mimarisi 

container-text-shadow 

 - form-bank
  -- form-groups
   --- form-group
    ---- form-group label
    ---- form-group input
    ---- form-group select
 - list
    -- list-header
     --- list-header-row
        ---- list-header-item
    -- list-body
     --- list-body-row
        ---- list-body-item
*/

main {
    gap: 20px !important;
}

.main-container {
    width: 100%;
    display: flex;
    gap: 30px;
    justify-content: center;
}

.container-text-shadow {
    padding: 30px !important;
    border: 1px solid hsl(183, 71%, 7%) !important;
    box-shadow: 0 0 6px 2px #0000006e !important;
    border-radius: 10px !important;
}

.form-groups {
    gap: 10px !important;
}

.form-bank {
    gap: 25px !important;
    display: flex !important;
    flex-direction: column !important;
    border: 1px solid hsl(183, 71%, 7%) !important;
    box-shadow: 0 0 6px 2px #0000006e !important;
    border-radius: 10px !important;
}

.form-bank-title {
    margin-bottom: 0 !important;
    letter-spacing: 0.4px !important;
}

.form-group input {
    padding: 0 15px !important;
    height: 42px !important;
    box-shadow: 0 0 10px 2px hsl(185deg 49% 24% / 59%) !important;
    background: #ffffff21 !important;
    font-size: 15px !important;
}

.form-group label {
    padding: 0 15px !important;
    height: 42px !important;
    box-shadow: 0 0 10px 2px hsl(185deg 49% 24% / 59%) !important;
    font-size: 14px !important;
}

.form-group select {
    padding: 0 15px !important;
    height: 42px !important;
    box-shadow: 0 0 10px 2px hsl(185deg 49% 24% / 59%) !important;
    background: #ffffff21 !important;
    font-size: 15px !important;
}

.form-group-button {
    background: hsl(183, 71%, 7%);
    box-shadow: 0 0 10px 2px hsl(185deg 49% 24% / 59%) !important;
    height: 42px !important;
    font-size: 15px;
    padding: 0 20px;
    text-align: center;
    color: white;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.form-group .inline-inputs {
    display: flex;
    gap: 5px !important;
    width: 230px !important;
}

.form-group .inline-inputs select {
    width: 62px;
}

.form-group .inline-inputs input {
    flex: 1 !important;
    width: auto !important;
    min-width: 0 !important;
}

.form-group .inline-inputs .input-code {
    width: 62px !important;
    flex: none !important;
}

.list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.list-header {
    display: flex;
    gap: 5px !important;
}

.list-header-row {
    display: flex;
    gap: 6px;
    width: 100%;
}

.list-header-item {
    flex: 1;
    white-space: nowrap;
    height: 42px !important;
    display: flex;
    justify-content: center;
    align-items: center;
    background: hsl(183, 71%, 7%);
    border: 1px solid hsl(183, 71%, 7%);
    box-shadow: 0 0 10px 2px hsl(185deg 49% 24% / 59%) !important;
    border-radius: 10px;
    color: white;
    font-size: 14px !important;
    padding: 0 15px;
    letter-spacing: 0.5px;
    position: relative;
}

.list-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.list-body-row {
    display: flex;
    gap: 6px;
}

.list-body-item {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    white-space: nowrap;
    height: 42px !important;
    background: #ffffff21 !important;
    box-shadow: 0 0 10px 2px hsl(185deg 49% 24% / 59%) !important;
    border-radius: 10px;
    color: white;
    font-size: 15px !important;
    padding: 0 15px;
    border: 1px solid hsl(185, 49%, 24%);
    color: black;
    letter-spacing: 0.5px;
    position: relative;
}

/* allow editable fields inside list cells (e.g. price grids) */
.list-body-item input[type="text"],
.list-body-item input[type="number"] {
    width: 100%;
    height: 100%;
    background: transparent;
    border: 0;
    outline: 0;
    text-align: center;
    font-size: inherit;
    letter-spacing: inherit;
}

/* optional multiline list cell (useful for long descriptions/addresses) */
.list-body-item.is-multiline {
    white-space: normal;
    height: auto !important;
    padding: 10px 15px;
    align-items: flex-start;
}


.list-body-item select {
    background: #ffffff21 !important;
    width: 100% !important;
    text-align: center;
    position: absolute;
}

.list-body-item select option {
    background-color: #ffffff21 !important;
}

.list-body-item input[type="file"] {
    width: 100%;
}

.list-body-item.col-actions:has(input[type="file"]) {
    box-shadow: 0 0 10px 2px hsl(185deg 49% 24% / 59%) !important;
    border-radius: 10px;
    font-size: 13px;
    padding: 0 8px;
    border: 1px solid hsl(185, 49%, 24%) !important;
}

.list-body-item input[type="file"]::-webkit-file-upload-button {
    background: hsl(183, 71%, 7%) !important;
    color: rgb(255, 255, 255) !important;
    border: none !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    box-shadow: 0 0 10px 2px hsl(185deg 49% 24% / 59%) !important;
    font-size: 10px !important;

}

input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid hsl(185, 49%, 24%);
    border-radius: 5px;
    cursor: pointer;
    position: relative;
    transition: 0.2s all ease;
    background: transparent;
    flex-shrink: 0;
    display: inline-grid;
    place-content: center;
    margin-right: 10px;
}

input[type="checkbox"]::after {
    content: '';
    width: 5px;
    height: 10px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg) scale(0);
    transition: 0.12s transform ease;
}

input[type="checkbox"]:checked {
    background: hsl(183, 71%, 7%);
    border-color: hsl(183, 71%, 7%);
}

input[type="checkbox"]:checked::after {
    transform: rotate(45deg) scale(1);
}

input[type="checkbox"]:hover {
    border-color: hsl(183, 71%, 12%);
    box-shadow: 0 0 8px hsla(185, 49%, 24%, 0.35);
}

input[type="checkbox"]:focus-visible {
    box-shadow: 0 0 0 3px hsla(185, 49%, 24%, 0.25);
}

input[type="checkbox"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}


/* genel kolon boyutlandırması*/

.list-header-item.col-firma,
.list-body-item.col-firma {
    min-width: 180px;
}

.list-header-item.col-tarih,
.list-body-item.col-tarih {
    min-width: 120px;
}

.list-header-item.col-banka,
.list-body-item.col-banka {
    min-width: 160px;
}

.list-header-item.col-hesap,
.list-body-item.col-hesap {
    min-width: 180px;
}

.list-header-item.col-iban,
.list-body-item.col-iban {
    min-width: 280px;
    flex: 1;
}

.list-header-item.col-personel,
.list-body-item.col-personel {
    min-width: 180px;
}

.list-header-item.col-onay-tarih,
.list-body-item.col-onay-tarih {
    min-width: 120px;
}

.list-header-item.col-sure,
.list-body-item.col-sure {
    min-width: 110px;
}

.list-header-item.col-havale,
.list-body-item.col-havale {
    min-width: 120px;
}

.list-header-item.col-tutar,
.list-body-item.col-tutar {
    min-width: 70px;
}

.list-header-item.col-sayi,
.list-body-item.col-sayi {
    min-width: 90px;
}

.list-header-item.col-indirim,
.list-body-item.col-indirim {
    min-width: 70px;
}

.list-header-item.col-police-no,
.list-body-item.col-police-no {
    min-width: 140px;
}

.list-header-item.col-sil,
.list-body-item.col-sil {
    min-width: 100px;
}

.list-header-item.col-onayla,
.list-body-item.col-onayla {
    min-width: 100px;
}

.list-header-item.col-tel,
.list-body-item.col-tel {
    min-width: 140px;
}

.list-header-item.col-durum,
.list-body-item.col-durum {
    min-width: 220px;
    padding: 10px 20px;
    justify-content: center;
    gap: 10px;
}

.list-body-item.col-durum span {
    cursor: pointer;
}

.list-header-item.col-actions,
.list-body-item.col-actions {
    min-width: 155px;
    flex: none;
}

.list-body-item.col-actions {
    justify-content: center;
    gap: 4px;
    padding: 0;
    background: none;
    box-shadow: none !important;
    border: 0 !important;
}

.col-action-btn {
    flex: 1 !important;
    height: 42px !important;
    background: hsl(183, 71%, 7%) !important;
    border: 2px solid hsl(183, 71%, 7%);
    box-shadow: 0 0 10px 2px hsl(185deg 49% 24% / 59%) !important;
    color: white !important;
    border-radius: 10px;
    cursor: pointer;
}

/* dikme kolonların stilleri */

.col-rotated-item {
    width: 45px;
    min-width: 45px !important;
    max-width: 45px !important;
    position: relative;
    border: 0;
    padding: 0 !important;
}

.list-body-item.col-rotated-item {
    border: 1px solid hsl(185, 49%, 24%) !important;
    font-size: 12px !important;
}

.rotated-icon-btn {
    width: 100%;
    height: 40px;
    border-radius: 8px;
    background: hsl(183, 71%, 7%);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px hsla(185, 49%, 24%, 0.596);
    transition: all 0.3s ease;
}

.rotated-icon-btn:hover {
    background: hsl(183, 71%, 12%) !important;
}

.rotated-icon-btn.toggle-btn {
    border: 1px solid hsl(185, 49%, 24%) !important;
    background: #ffffff21 !important;
    box-shadow: 0 0 10px 2px hsl(185deg 49% 24% / 59%) !important;
    border-radius: 10px;
    color: hsl(183, 71%, 7%);
}

.rotated-icon-btn.toggle-btn:hover {
    background: hsl(183, 71%, 7%) !important;
    border-color: hsl(183, 71%, 7%) !important;
    color: white;
}

.rotated-icon-btn.toggle-btn.checked {
    background: hsl(183, 71%, 7%) !important;
    border-color: hsl(183, 71%, 7%) !important;
    color: white;
}

.list-header-row .col-rotated-item:has(i[class="fa-solid fa-check"]) {
    visibility: hidden !important;
}

.rotated-icon-btn:has(i[class="fa-solid fa-check"]) {
    border: 1px solid hsl(185, 49%, 24%) !important;
    background: #ffffff21 !important;
    box-shadow: 0 0 10px 2px hsl(185deg 49% 24% / 59%) !important;
    border-radius: 10px;
    color: hsl(183, 71%, 7%);
    transition: 0.3s all ease;
}

.rotated-icon-btn:has(i[class="fa-solid fa-check"]):hover {
    background: hsl(183, 71%, 7%) !important;
    border: 1px solid hsl(183, 71%, 7%) !important;
    color: white;
}

.rotated-icon-btn.checked:has(i[class="fa-solid fa-check"]) {
    background: hsl(183, 71%, 7%) !important;
    border: 1px solid hsl(183, 71%, 7%) !important;
    color: white;
}

.rotated-vertical-header {
    position: absolute;
    height: 150px !important;
    background: hsl(183, 71%, 7%);
    box-shadow: 0 0 10px 2px hsl(185deg 49% 24% / 59%) !important;
    bottom: 0;
    width: 100%;
    writing-mode: sideways-lr;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
}

/*ana containerlerin sayfalara göre durumları*/

main:has(.list-header-item) {
    width: 90% !important;
}

.main-container:has(.col-rotated-item) {
    position: relative;
    top: 100px !important;
    margin-bottom: 70px !important;
    flex-direction: column !important;
}

.main-container:has(.rotated-icon-btn.toggle-btn) {
    position: relative;
    top: 140px !important;
}

/* alt butonların stilleri*/

.table-buttons-container {
    display: flex;
    gap: 5px;
    margin-top: 0;
    justify-content: flex-end;
    width: 100%;
}

.table-button {
    box-shadow: 0 0 10px 2px hsl(185deg 49% 24% / 59%) !important;
    border-radius: 10px !important;
    color: white !important;
    font-size: 15px !important;
}


.bank-info {
    display: flex;
    gap: 5px;
    margin-top: 5px;
    justify-content: center;
}

.bank-pill {
    padding: 10px 16px;
    background: hsl(183, 71%, 7%);
    color: white;
    font-size: 16px;
    border-radius: 8px;
    box-shadow: 0 0 20px 1px hsla(185, 49%, 24%, 0.596);
    cursor: pointer;

}
