.brand-logo {
    display: block;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    object-fit: cover;
    border-radius: 11px;
}

.brand-wordmark {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    line-height: 1;
}

.brand-wordmark strong {
    color: #252b34;
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -.8px;
}

.brand-wordmark > span {
    width: 1px;
    height: 20px;
    background: #d8dce1;
}

.brand-wordmark small {
    color: #747d89;
    font-size: 8px;
    font-weight: 750;
    letter-spacing: 2.4px;
}

.brand.light .brand-wordmark strong,
.brand.light .brand-wordmark small {
    color: #fff;
}

.brand.light .brand-wordmark > span {
    background: rgba(255, 255, 255, .35);
}

.boot-logo {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(151, 17, 17, .2);
}

.brand.light .brand-logo {
    border: 1px solid rgba(255, 255, 255, .28);
    box-shadow: 0 8px 24px rgba(50, 0, 0, .2);
}

.login-card-logo {
    display: none;
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(151, 17, 17, .18);
}

.logout-confirm-body {
    padding: 30px 28px 20px;
}

.logout-dialog {
    width: calc(100% - 32px);
    max-width: 470px;
}

.logout-confirm-logo {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 17px;
    margin: 0 auto 20px;
    box-shadow: 0 10px 28px rgba(151, 17, 17, .18);
}

.logout-confirm-body p {
    font-size: 12px;
    line-height: 1.7;
}

.password-input-group .password-visibility {
    width: 48px;
    padding: 0;
    color: #69727f;
}

.password-input-group .password-visibility .icon {
    width: 19px;
    height: 19px;
}

.password-input-group .password-visibility:hover,
.password-input-group .password-visibility:focus-visible {
    color: var(--brand);
    background: var(--brand-soft);
    border-color: #d8b8b8;
}

.admin-identity {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    color: #4d5662;
    font-size: 11px;
    font-weight: 600;
}

.admin-identity img {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    object-fit: cover;
    object-position: center;
    border: 2px solid #fff;
    border-radius: 10px;
    box-shadow: 0 3px 11px rgba(35, 39, 46, .14);
}

.admin-identity.compact {
    margin-top: 2px;
    color: var(--brand);
    font-size: 10px;
}

.admin-identity.compact img {
    width: 25px;
    height: 25px;
    flex-basis: 25px;
    border-radius: 8px;
}

.logout-countdown {
    margin-top: 18px;
    padding: 11px 13px;
    border: 1px solid #f0dede;
    border-radius: 9px;
    color: #8d6464;
    background: #fff8f8;
    font-size: 10px;
    line-height: 1.5;
}

.logout-countdown strong {
    color: var(--brand);
    font-size: 12px;
}

.logout-timer-track {
    height: 4px;
    margin-top: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: #efdede;
}

.logout-timer-track i {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: var(--brand);
    transform-origin: left center;
}

.login-button-arrow .icon,
.metric-bottom .icon,
.text-link .icon {
    width: 14px;
    height: 14px;
}

.metric-bottom span:last-child,
.text-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.icon-reverse {
    display: inline-flex;
    transform: rotate(180deg);
}

.operation-banner::after {
    content: none;
}

/* Açılış hareketleri Web Animations API ile ortak yönetilir. */
.modal.show .modal-dialog,
.user-dropdown,
.select2-dropdown,
.toast.showing,
.toast.show,
.confirm-card,
.confirm-shade {
    animation: none !important;
}

@media (max-width: 700px) {
    .login-card-logo {
        display: block;
    }
}

.filter-panel {
    padding: 20px 22px 16px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, #fff, #fcfcfd);
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 14px;
    align-items: end;
}

.filter-field {
    min-width: 0;
}

.filter-field label {
    display: block;
    margin: 0 0 7px;
    color: #69727f;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .35px;
}

.filter-field .form-control,
.filter-field .form-select {
    width: 100%;
    max-width: none;
    min-height: 39px;
    font-size: 11px;
}

.filter-search-field {
    grid-column: span 2;
}

.filter-search-field .search-box {
    width: 100%;
    max-width: none;
}

.relation-filter {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 6px;
}

.relation-filter label {
    grid-column: 1 / -1;
}

.relation-filter-search {
    background: #fff;
}

.filter-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
}

.filter-footer .record-count {
    margin-left: auto;
}

.relation-value {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.relation-value small {
    color: #939ba6;
    font-size: 10px;
}

.relation-picker {
    padding: 10px;
    border: 1px solid #e1e4e8;
    border-radius: 10px;
    background: #fafbfc;
}

.relation-picker-search {
    position: relative;
}

.relation-picker-search .icon {
    position: absolute;
    z-index: 1;
    top: 11px;
    left: 11px;
    width: 16px;
    height: 16px;
    color: #9aa1ac;
}

.relation-picker .lookup-search {
    margin-bottom: 7px;
    padding-left: 35px;
    background: #fff;
}

.relation-picker .relation-select {
    background-color: #fff;
}

.confirm-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    place-items: center;
    padding: 20px;
}

.confirm-overlay.show {
    display: grid;
}

.confirm-shade {
    position: absolute;
    inset: 0;
    background: rgba(26, 29, 35, .52);
    backdrop-filter: blur(3px);
    animation: confirm-fade .2s ease-out both;
}

.confirm-card {
    position: relative;
    width: min(390px, 100%);
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 28px 90px rgba(24, 27, 33, .28);
    text-align: center;
    animation: confirm-in .28s cubic-bezier(.2, .8, .2, 1) both;
}

.confirm-card > img {
    width: 58px;
    height: 58px;
    border-radius: 15px;
    margin-bottom: 18px;
    box-shadow: 0 10px 28px rgba(151, 17, 17, .18);
}

.confirm-card h2 {
    margin: 0 0 10px;
    font-size: 19px;
    font-weight: 650;
}

.confirm-card p {
    margin: 0;
    color: #7c8591;
    font-size: 12px;
    line-height: 1.7;
}

.confirm-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}

.modal.show .modal-dialog {
    animation: confirm-in .26s cubic-bezier(.2, .8, .2, 1) both;
}

body.confirm-open {
    overflow: hidden;
}

@keyframes confirm-in {
    from { opacity: 0; transform: translateY(18px) scale(.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes confirm-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 1100px) {
    .filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    .filter-grid { grid-template-columns: 1fr; }
    .filter-search-field { grid-column: auto; }
    .relation-filter { grid-template-columns: 1fr; }
    .relation-filter label { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
    .confirm-card, .confirm-shade, .modal.show .modal-dialog { animation: none; }
}

.capslock-warning {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 8px;
    color: #9b5f08;
    font-size: 11px;
    animation: warning-in .2s ease-out both;
}

.capslock-warning > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: #fff1d2;
    font-size: 10px;
    font-weight: 800;
}

.login-submit.is-loading {
    cursor: wait;
}

.login-spinner {
    margin-left: auto;
}

.avatar {
    overflow: hidden;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-photo-editor {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fafbfc;
}

.admin-photo-editor > img,
.admin-detail-photo {
    width: 92px;
    height: 92px;
    border-radius: 18px;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 8px 24px rgba(36, 39, 45, .14);
}

.admin-table-photo {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(36, 39, 45, .12);
}

.select2-container {
    max-width: 100%;
    font-size: 12px;
}

.select2-container .select2-selection--single {
    height: 40px;
    border: 1px solid #dfe3e8;
    border-radius: 8px;
    background: #fff;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    padding: 6px 34px 6px 12px;
    line-height: 26px;
    color: #4f5865;
}

.select2-container .select2-selection--single .select2-selection__arrow {
    top: 7px;
    right: 7px;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: #b95757;
    box-shadow: 0 0 0 3px rgba(151, 17, 17, .07);
}

.select2-dropdown {
    overflow: hidden;
    border: 1px solid #dfe3e8;
    border-radius: 9px;
    box-shadow: 0 14px 38px rgba(32, 36, 43, .16);
    animation: select2-in .18s ease-out both;
}

.select2-search--dropdown {
    padding: 9px;
}

.select2-search--dropdown .select2-search__field {
    border: 1px solid #dfe3e8 !important;
    border-radius: 7px;
    padding: 8px 10px;
    outline: none;
}

.select2-results__option {
    padding: 9px 11px;
    font-size: 11px;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background: var(--brand);
}

.select2-container--default .select2-results__option--selected {
    background: var(--brand-soft);
    color: var(--brand);
}

.toast.showing,
.toast.show {
    animation: toast-in .28s cubic-bezier(.2, .8, .2, 1) both;
}

.modal.fade .modal-dialog {
    transform: translateY(22px) scale(.97);
    transition: transform .24s cubic-bezier(.2, .8, .2, 1), opacity .2s ease;
}

.modal.show .modal-dialog {
    transform: translateY(0) scale(1);
}

@keyframes warning-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes select2-in {
    from { opacity: 0; transform: translateY(-5px) scale(.99); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toast-in {
    from { opacity: 0; transform: translateX(22px) scale(.97); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

@media (max-width: 600px) {
    .admin-photo-editor { grid-template-columns: 72px minmax(0, 1fr); }
    .admin-photo-editor > img { width: 72px; height: 72px; border-radius: 15px; }
}

.top-user-menu {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    padding: 5px 7px;
    color: #4f5865;
    background: transparent;
    border: 0;
    border-radius: 10px;
    text-align: left;
}

.top-user-menu:hover,
.top-user-menu[aria-expanded="true"] {
    background: #f7f3f3;
}

.top-user-copy {
    display: flex;
    flex-direction: column;
    max-width: 150px;
    line-height: 1.25;
}

.top-user-copy strong {
    overflow: hidden;
    color: #343b46;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.top-user-copy small {
    color: #969da8;
    font-size: 9px;
}

.top-user-caret {
    color: #9aa1ab;
    font-size: 14px;
    transition: transform .2s ease;
}

.top-user-menu[aria-expanded="true"] .top-user-caret {
    transform: rotate(180deg);
}

.user-dropdown {
    width: 245px;
    margin-top: 9px !important;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 18px 50px rgba(32, 36, 43, .16);
    animation: select2-in .2s ease-out both;
}

.user-dropdown-head {
    display: flex;
    flex-direction: column;
    padding: 10px 11px 12px;
    overflow: hidden;
}

.user-dropdown-head strong {
    color: #343b46;
    font-size: 12px;
}

.user-dropdown-head small {
    overflow: hidden;
    margin-top: 3px;
    color: #929aa5;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 11px;
    border-radius: 8px;
    color: #626b78;
    font-size: 11px;
}

.user-dropdown .dropdown-item:hover {
    color: var(--brand);
    background: var(--brand-soft);
}

.user-dropdown .dropdown-item.text-danger {
    color: var(--brand) !important;
}

.user-dropdown .dropdown-item .icon {
    width: 16px;
    height: 16px;
}

.profile-card {
    padding: 26px;
}

.profile-hero {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--line);
}

.profile-hero > img,
.profile-hero > .profile-photo-button {
    width: 92px;
    height: 92px;
    min-width: 92px;
    flex: 0 0 92px;
    border: 4px solid #fff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 9px 28px rgba(36, 39, 45, .15);
}

.profile-hero > img,
.profile-photo-button > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.profile-hero h2 {
    margin: 10px 0 4px;
    color: #303741;
    font-size: 22px;
}

.profile-hero p {
    margin: 0;
    color: #89919d;
    font-size: 12px;
}

.profile-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin-top: 24px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--line);
}

.profile-detail-grid > div {
    min-width: 0;
    padding: 17px;
    background: #fff;
}

.profile-detail-grid span,
.profile-detail-grid strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-detail-grid span {
    margin-bottom: 7px;
    color: #959ca7;
    font-size: 10px;
}

.profile-detail-grid strong {
    color: #4a535f;
    font-size: 12px;
    font-weight: 600;
}

.profile-password-box {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fafbfc;
}

.profile-password-box h3 {
    margin: 0 0 5px;
    font-size: 13px;
}

.profile-password-box > p {
    margin: 0 0 16px;
    color: #929aa5;
    font-size: 10px;
}

@media (max-width: 800px) {
    .top-user-copy { display: none; }
    .profile-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
    .profile-card { padding: 18px; }
    .profile-hero { align-items: flex-start; }
    .profile-hero > img { width: 72px; height: 72px; border-radius: 17px; }
    .profile-detail-grid { grid-template-columns: 1fr; }
    .top-user-caret { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .capslock-warning, .select2-dropdown, .toast.showing, .toast.show, .user-dropdown, .modal.show .modal-dialog { animation: none; }
}
