.dropdown-toggle::after {
    margin-left: 0.555em;
    vertical-align: 0.155em;
}

.vertical-menu {
    margin: 10px 0;
}


.kanban-tag h5{
    font-size: 13px;
}

.productBox{
    display: flex;
    margin-bottom: 10px;
}

.dragBox{
    padding: 10px;
    font-size: 20px;
    height: 50px;
    background-color: #eef0fd;
    margin-right: 10px;
    cursor: pointer;
    border-radius: 4px;
}

.imgBox{
    width: 50px;
    height: 50px;
    margin-right: 5px;
}

.imgBox img{
    height: 50px;
    border-radius: 8px;
    padding: 3px;
}

.nameBox{
    line-height: 50px;
    padding-left: 10px;
    font-size: 16px;
    color: #111;
    font-weight: 500;
}

.statusBox div{
    margin-top: 10px;
}

.priceBox input{
    max-width: 100px;
    margin-top: 8px;
}

.custom-control-label{
    margin-left: 15px;
    margin-right: 15px;
    margin-top: 5px;
}

.editBox{
    line-height: 50px;
    background-color: #eef0fd;
    padding: 0 15px;
    border-radius: 4px;
    cursor: pointer;
}


.productBox div:nth-of-type(3) {flex-grow: 4;}


.showCategory{
    padding: 5px 7px;
    margin-right: 5px;
}

.editCategory{
    padding: 5px 7px;
}

.successDot{
    background: rgb(67, 209, 135);
    color: rgb(67, 209, 135);
    height: 8px;
    width: 8px;
    left: 0px;
    top: 0px;
    border-width: 0px;
    border-color: rgb(255, 255, 255);
    border-radius: 12px;
    position: relative;
    display: inline-block;
    cursor: pointer;
    margin-right: 3px;
}

.dangerDot{
    background: #f44336;
    color: #f44336;
    height: 8px;
    width: 8px;
    left: 0px;
    top: 0px;
    border-width: 0px;
    border-color: rgb(255, 255, 255);
    border-radius: 12px;
    position: relative;
    display: inline-block;
    cursor: pointer;
    margin-right: 3px;
}

.warningDot{
    background: rgb(247, 187, 77);
    color: rgb(247, 187, 77);
    height: 8px;
    width: 8px;
    left: 0px;
    top: 0px;
    border-width: 0px;
    border-color: rgb(255, 255, 255);
    border-radius: 12px;
    position: relative;
    display: inline-block;
    cursor: pointer;
    margin-right: 3px;
}

#imageList{
    display: flex;
    flex-wrap: wrap;
}

.imgItem{
    width: 20%;
    margin: 0;
    overflow: hidden;
    padding: 15px;
    cursor: pointer;
}

.imgItem img{
    border-radius: 5px;
}

.imgItem small{
    display: block;
    width: 100%;
    overflow-y: hidden;
    font-size: 12px;
    padding-top: 5px;
    white-space: nowrap;
}

.imgItem .gallery-box{
    margin-bottom: 0px!important;
}

.gallery-box{
    width: 100%;
    overflow: hidden;
}

@media only screen and (max-width: 768px) {
    .imgItem{
        width: 50% !important;
    }
}

.categoryImage{
    display: block;
    margin: 10px 0;
    max-width: 100px;
    border-radius: 5px;
}

.catImgBox{
    position: relative;
    display: block;
    width: 100px;
}

.catImgBox i{
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: #fff;
    padding: 5px;
    border-radius: 60px;
    color: #506fe4;
    font-size: 12px;
    cursor: pointer;
}

.dropzone .dz-message {
    text-align: center;
    margin: 1em 0;
}

.dropzone {
    min-height: 150px;
    border: 2px dashed rgb(80 111 228 / 29%);
}

.deleteCategory{
    padding-top: 8px;
    font-size: 12px;
    cursor: pointer;
}

#editCategoryBar, #addCategoryBar{
    display: none;
}

.deleteProduct{
    padding-top: 8px;
    font-size: 12px;
    cursor: pointer;
}

.widgetsub{
    padding: 10px;
    border: 1px solid #506fe424;
    border-radius: 5px;
}

.widgetsub span{
    font-size: 11px;
}

.deleteVariant{
    color: #506fe4;
    background-color: #ececec;
    line-height: 35px;
    padding: 0px 10px;
    cursor: pointer;
}
/* ---------- Menü bilgilendirmesi (ürün paneli) ---------- */
.pi-section{
    border-top: 1px solid #e2e4ed;
    margin: 24px 0 20px;
    padding-top: 20px;
}
.pi-head{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}
.pi-title{
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #141d46;
}
.pi-status{
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
}
.pi-status:empty{display: none;}
.pi-status.is-ok, .pi-pill.is-ok{background: rgba(67, 209, 135, 0.14); color: #1b7a4b;}
.pi-status.is-missing, .pi-pill.is-missing{background: rgba(247, 187, 77, 0.2); color: #7a4f00;}
.pi-lead{
    margin: 8px 0 18px;
    font-size: 13px;
    line-height: 1.5;
    color: #5d6b82;
}
.pi-help{
    font-size: 12px;
    line-height: 1.45;
    color: #5d6b82;
}
.pi-help a{color: #3a5de1; text-decoration: underline;}
.pi-help-tight{margin: -6px 0 4px;}
.pi-fieldset{border: 0; padding: 0; min-width: 0;}
.pi-legend{
    font-size: 16px;
    font-weight: 400;
    color: inherit;
    margin-bottom: 8px;
    width: auto;
}

.pi-allergens{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}
.pi-chip{
    position: relative;
    display: flex;
    margin: 0;
    cursor: pointer;
}
.pi-chip input{
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}
.pi-chip span{
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 7px 26px 7px 9px;
    border: 1px solid #e2e4ed;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.3;
    color: #141d46;
    background: #fff;
    transition: border-color 150ms ease-out, background-color 150ms ease-out;
}
.pi-chip .mi-icon{flex: none; width: 18px; height: 18px; color: #5d6b82; transition: color 150ms ease-out;}
.pi-chip span::after{
    content: "";
    position: absolute;
    right: 11px;
    top: 50%;
    width: 5px;
    height: 9px;
    margin-top: -6px;
    border: solid #506fe4;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 150ms ease-out;
}
.pi-chip:hover span{border-color: #b4c0f3;}
.pi-chip input:checked + span{border-color: #506fe4; background: rgba(80, 111, 228, 0.08); font-weight: 500;}
.pi-chip input:checked + span .mi-icon{color: #506fe4;}
.pi-chip input:checked + span::after{opacity: 1;}
.pi-chip input:focus-visible + span{box-shadow: 0 0 0 0.2rem #a8b8f2;}
.pi-none{margin-top: 10px;}
.pi-none .custom-control-label, .pi-switch .custom-control-label{margin-left: 0; color: #141d46; font-size: 14px;}
.pi-switch{margin-bottom: 6px;}

.pi-segment{
    display: inline-flex;
    border: 1px solid #e2e4ed;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}
.pi-segment input{position: absolute; opacity: 0; width: 1px; height: 1px;}
.pi-segment label{
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 7px 14px;
    font-size: 13px;
    color: #5d6b82;
    cursor: pointer;
    transition: background-color 150ms ease-out, color 150ms ease-out;
}
.pi-segment label + input + label{border-left: 1px solid #e2e4ed;}
.pi-segment input:checked + label{background: #506fe4; color: #fff;}
.pi-segment input:focus-visible + label{box-shadow: inset 0 0 0 2px #a8b8f2;}

.variantRow{display: flex; gap: 6px; align-items: center;}
.variantRow input[data-type=name]{flex: 2 1 0;}
.variantRow input[data-type=price]{flex: 1.4 1 0;}
.variantRow input[data-type=cal]{flex: 0 0 76px;}
.variantRow .deleteVariant{padding: 4px 6px; color: #8A98AC;}
.variantRow .deleteVariant:hover{color: #f84856;}

/* Ürün listesi: durum rozeti */
.pi-pill-slot{display: flex; align-items: center; margin: 0 8px;}
.pi-pill{
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 0;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
    cursor: pointer;
    transition: filter 150ms ease-out;
}
.pi-pill:hover{filter: brightness(0.95);}
.pi-pill:focus-visible{box-shadow: 0 0 0 0.2rem #a8b8f2;}

.pi-summary{display: flex; align-items: center; gap: 10px; font-size: 13px; color: #5d6b82;}
.pi-summary[hidden]{display: none;}
.pi-meter{display: inline-block; width: 88px; height: 6px; border-radius: 3px; background: #e2e4ed; overflow: hidden;}
.pi-meter-fill{display: block; height: 100%; width: 0; background: #f7bb4d; transition: width 250ms cubic-bezier(0.25, 1, 0.5, 1);}
.pi-summary.is-done .pi-meter-fill{background: #43d187;}

@media (max-width: 575px){
    .pi-pill span{display: none;}
    .pi-pill{padding: 5px 7px;}
    .pi-summary{width: 100%; margin-top: 6px;}
}
@media (prefers-reduced-motion: reduce){
    .pi-chip span, .pi-chip span::after, .pi-chip .mi-icon, .pi-segment label, .pi-pill, .pi-meter-fill{transition: none;}
}

/* İkonlar */
.mi-icon{display: inline-block; width: 1em; height: 1em; vertical-align: -0.15em; flex: none;}
.pi-ico .mi-icon{width: 16px; height: 16px; margin-right: 6px; vertical-align: -3px;}
.pi-segment .pi-ico .mi-icon{margin-right: 4px;}
.pi-name-icons{display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; color: #8A98AC; vertical-align: middle; line-height: 1;}
.pi-name-icons .mi-icon{width: 16px; height: 16px;}

/* ---------- Mobil üst çubuk: Maqann logosu ---------- */
.topbar-mobile .mobile-logobar{line-height: 40px;}
.topbar-mobile .mobile-logobar img{width: 116px; height: auto; vertical-align: middle;}
.topbar-mobile .mobile-togglebar{margin-top: 0; line-height: 40px;}

/* ---------- Giriş ---------- */
.login-error{margin: -4px 0 12px; padding: 8px 12px; border-radius: 4px; background: rgba(244, 67, 54, 0.1); color: #b3261e; font-size: 14px; text-align: left;}
.login-error[hidden]{display: none;}
#login:disabled{opacity: 0.7; cursor: progress;}

/* ---------- Şube kartları ---------- */
.loc-card .card-body{display: flex; align-items: center; gap: 16px 28px; flex-wrap: wrap;}
.loc-main{display: flex; align-items: flex-start; gap: 14px; flex: 1 1 260px; min-width: 0;}
.loc-number{flex: none; width: 32px; height: 32px; border-radius: 50%; background: #eef0fd; color: #506fe4; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums;}
.loc-title{min-width: 0;}
.loc-title h5{overflow-wrap: anywhere;}
.loc-title .badge{vertical-align: 2px;}
.loc-meta{display: flex; gap: 12px 28px; flex-wrap: wrap; margin: 0;}
.loc-meta dt{font-size: 13px; font-weight: 400; color: #8A98AC; margin-bottom: 2px;}
.loc-meta dd{margin: 0; font-size: 15px; color: #141d46; font-weight: 500;}
.loc-actions{display: flex; gap: 8px; margin-left: auto;}
.loc-actions .btn{min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center;}

/* ---------- Menü kartları ---------- */
.menu-card-icon{align-self: center; flex: none; width: 54px; height: 54px; padding: 10px; border-radius: 6px; background-color: #506fe4;}
.menu-card .media-body{min-width: 0;}
.menu-card h5{overflow-wrap: anywhere;}

@media (max-width: 767px){
    /* Form alanları 16px: iOS odaklanınca sayfayı büyütmesin */
    .form-control, .custom-select, select, textarea, input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="url"]{font-size: 16px;}
    .breadcrumbbar{padding-left: 16px; padding-right: 16px;}
    .contentbar{padding-left: 16px; padding-right: 16px;}
    .loc-card .card-body{flex-direction: column; align-items: stretch;}
    .loc-main{flex: none;}
    .loc-actions{margin-left: 0;}
    .loc-actions .btn{flex: 1 1 0;}
    .loc-meta{gap: 10px 24px;}
    .menu-card .media{flex-wrap: wrap;}
    .menu-card .media-actions{width: 100%; margin-top: 14px; display: grid !important; grid-template-columns: 1fr auto; align-items: center; gap: 10px;}
    .menu-card .media-actions .btn{margin-top: 0 !important; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; min-height: 40px;}
    .menu-card .media-actions .badge{grid-column: 1 / -1; justify-self: start;}
}

/* ---------- Menü düzenleme: ürün satırı mobilde iki satıra iner ---------- */
@media (max-width: 767px){
    .productBox{flex-wrap: wrap; align-items: center; gap: 8px 8px; padding: 10px; margin-bottom: 10px; background: #fff; border: 1px solid #e2e4ed; border-radius: 6px;}
    .productBox > *{margin: 0 !important;}
    .productBox .dragBox{order: 1; height: 40px; width: 36px; padding: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 18px;}
    .productBox .imgBox{order: 2; width: 44px; height: 44px; flex: none;}
    .productBox .imgBox img{width: 44px; height: 44px; object-fit: cover; padding: 0;}
    .productBox .nameBox{order: 3; flex: 1 1 0 !important; min-width: 0; line-height: 1.3; padding-left: 4px; font-size: 15px; overflow-wrap: anywhere;}
    .productBox .editBox{order: 4; line-height: 40px; min-width: 44px; text-align: center; padding: 0 12px;}
    .productBox::after{content: ""; order: 5; flex-basis: 100%; height: 0;}
    .productBox .pi-pill-slot{order: 6; margin-left: 44px !important;}
    .productBox .priceBox{order: 7; flex: 1 1 auto; display: flex; justify-content: flex-end;}
    .productBox .priceBox input{margin-top: 0; max-width: 120px;}
    .productBox .statusBox{order: 8;}
    .productBox .statusBox div{margin-top: 0;}
    .productBox .statusBox .custom-control-label{margin-left: 0; margin-right: 0;}
    .productBox .pi-name-icons{margin-left: 6px;}
}
@media (max-width: 480px){
    .infobar-settings-sidebar.sidebarshow{width: 100%;}
}
