/*
 * DAF10 Hat İşlemleri bayi portalinin ortak görsel sistemi.
 * Bootstrap 5 bileşenlerini kurumsal lacivert/turkuaz kimlikle tamamlar.
 */
:root {
    --portal-navy-950: #071225;
    --portal-navy-900: #0b1830;
    --portal-navy-800: #102342;
    --portal-navy-700: #18365e;
    --portal-teal-600: #079987;
    --portal-teal-500: #12b7a3;
    --portal-teal-400: #40cfbd;
    --portal-ice-50: #f5f8fb;
    --portal-ice-100: #edf3f7;
    --portal-ice-200: #dce7ee;
    --portal-slate-900: #172033;
    --portal-slate-700: #3f4d61;
    --portal-slate-500: #718096;
    --portal-success: #198754;
    --portal-warning: #f2a93b;
    --portal-danger: #d84a58;
    --portal-blue: #3976e8;
    --portal-radius-sm: 9px;
    --portal-radius: 14px;
    --portal-radius-lg: 22px;
    --portal-shadow-sm: 0 7px 22px rgba(11, 24, 48, .07);
    --portal-shadow: 0 20px 50px rgba(7, 18, 37, .14);
    --portal-focus: 0 0 0 .22rem rgba(18, 183, 163, .23);
    --portal-sidebar-width: 272px;
}

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

html {
    min-width: 320px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--portal-slate-900);
    background: var(--portal-ice-50);
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 1rem;
    -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
    font: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 0;
    box-shadow: var(--portal-focus) !important;
}

.portal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    font-size: 1.125rem;
    line-height: 1;
}

.portal-skip-link {
    position: fixed;
    z-index: 2000;
    top: 10px;
    left: 10px;
    padding: 9px 13px;
    border-radius: 8px;
    color: #fff;
    background: var(--portal-navy-900);
    transform: translateY(-160%);
    transition: transform .18s ease;
}

.portal-skip-link:focus {
    color: #fff;
    transform: translateY(0);
}

.min-w-0 {
    min-width: 0;
}

.portal-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--portal-navy-900);
    text-decoration: none;
}

.portal-brand:hover {
    color: var(--portal-navy-900);
}

.portal-brand--light,
.portal-brand--light:hover {
    color: #fff;
}

.portal-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(145deg, rgba(64, 207, 189, .98), rgba(7, 153, 135, .92));
    box-shadow: 0 10px 24px rgba(0, 0, 0, .17);
}

.portal-brand-icon {
    width: 25px;
    height: 25px;
    font-size: 1.5rem;
}

.portal-brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.portal-brand-copy strong {
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: .04em;
}

.portal-brand-copy small {
    margin-top: 5px;
    color: currentColor;
    font-size: .875rem;
    font-weight: 600;
    letter-spacing: .16em;
    opacity: .7;
    text-transform: uppercase;
}

.btn {
    min-height: 40px;
    border-radius: var(--portal-radius-sm);
    font-weight: 600;
}

.btn-sm {
    min-height: 34px;
}

.btn .portal-icon {
    width: 17px;
    height: 17px;
    vertical-align: -4px;
}

.btn-portal-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-color: var(--portal-teal-600);
    color: #fff;
    background: linear-gradient(135deg, var(--portal-teal-500), var(--portal-teal-600));
    box-shadow: 0 8px 18px rgba(7, 153, 135, .18);
}

.btn-portal-primary:hover,
.btn-portal-primary:focus {
    border-color: #087e71;
    color: #fff;
    background: linear-gradient(135deg, #0cae9b, #087f71);
}

.btn-portal-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--portal-ice-200);
    color: var(--portal-navy-700);
    background: #fff;
}

.btn-portal-outline:hover,
.btn-portal-outline:focus {
    border-color: rgba(18, 183, 163, .5);
    color: var(--portal-teal-600);
    background: #f6fffd;
}

.btn-portal-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-color: transparent;
    color: var(--portal-slate-500);
    background: transparent;
    box-shadow: none;
}

.btn-portal-ghost:hover,
.btn-portal-ghost:focus {
    color: var(--portal-navy-700);
    background: var(--portal-ice-100);
}

.btn-spinner {
    display: none;
}

.is-loading .btn-spinner {
    display: inline-block;
}

.is-loading .btn-label {
    opacity: .72;
}

.form-label {
    margin-bottom: 7px;
    color: var(--portal-slate-700);
    font-size: 1rem;
    font-weight: 650;
}

.form-control,
.form-select {
    min-height: 44px;
    border-color: #d7e1e8;
    border-radius: 10px;
    color: var(--portal-slate-900);
    background-color: #fff;
    font-size: 1rem;
}

.form-control::placeholder {
    color: #9aa8b8;
}

.form-control:hover,
.form-select:hover {
    border-color: #becdd8;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--portal-teal-500);
    box-shadow: var(--portal-focus);
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: var(--portal-danger);
}

.invalid-feedback {
    font-size: 1rem;
}

.portal-input-group {
    position: relative;
}

.portal-input-group .form-control {
    padding-left: 45px;
}

.portal-input-icon {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 15px;
    display: inline-flex;
    color: #8291a4;
    transform: translateY(-50%);
    pointer-events: none;
}

.portal-input-icon .portal-icon {
    width: 18px;
    height: 18px;
}

.portal-password-toggle {
    position: absolute;
    z-index: 3;
    top: 50%;
    right: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    color: #78889b;
    background: transparent;
    transform: translateY(-50%);
}

.portal-password-toggle:hover {
    color: var(--portal-teal-600);
    background: var(--portal-ice-100);
}

.portal-password-toggle .portal-icon {
    width: 18px;
    height: 18px;
}

/* Giriş */
.portal-auth-page {
    min-height: 100vh;
    min-height: 100dvh;
    background: #eef4f7;
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(390px, .95fr) minmax(480px, 1.05fr);
    min-height: 100vh;
    min-height: 100dvh;
}

.auth-brand-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: clamp(30px, 5vw, 68px);
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 18% 18%, rgba(64, 207, 189, .2), transparent 27%),
        linear-gradient(145deg, var(--portal-navy-950), var(--portal-navy-800));
}

.auth-brand-panel::after {
    position: absolute;
    right: -120px;
    bottom: -160px;
    width: 440px;
    height: 440px;
    border: 1px solid rgba(64, 207, 189, .16);
    border-radius: 50%;
    box-shadow: 0 0 0 48px rgba(64, 207, 189, .04), 0 0 0 104px rgba(64, 207, 189, .025);
    content: "";
}

.auth-brand-pattern {
    position: absolute;
    inset: 0;
    opacity: .17;
    background-image:
        linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(to bottom right, #000, transparent 72%);
}

.auth-brand-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 1;
    flex-direction: column;
}

.auth-hero-copy {
    max-width: 590px;
    margin: auto 0 44px;
}

.auth-eyebrow,
.auth-step-kicker,
.portal-page-eyebrow,
.portal-card-kicker {
    display: block;
    color: var(--portal-teal-500);
    font-size: .9375rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.auth-hero-copy h1 {
    max-width: 520px;
    margin: 16px 0 20px;
    font-size: clamp(2.375rem, 4.2vw, 3.875rem);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -.04em;
}

.auth-hero-copy p {
    max-width: 560px;
    margin: 0;
    color: rgba(235, 244, 251, .72);
    font-size: 1.125rem;
    line-height: 1.7;
}

.auth-feature-list {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 13px;
    max-width: 550px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.auth-feature-list li {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px 15px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 13px;
    background: rgba(255, 255, 255, .045);
    backdrop-filter: blur(7px);
}

.auth-feature-list li > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    color: var(--portal-teal-400);
    background: rgba(18, 183, 163, .13);
}

.auth-feature-list .portal-icon {
    width: 19px;
    height: 19px;
}

.auth-feature-list strong,
.auth-feature-list small {
    display: block;
}

.auth-feature-list strong {
    font-size: 1rem;
    font-weight: 650;
}

.auth-feature-list small {
    margin-top: 2px;
    color: rgba(235, 244, 251, .6);
    font-size: .9375rem;
}

.auth-brand-footer {
    position: relative;
    z-index: 1;
    margin-top: 34px;
    color: rgba(235, 244, 251, .45);
    font-size: .9375rem;
    letter-spacing: .06em;
}

.auth-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    padding: 34px clamp(24px, 6vw, 86px);
    background:
        radial-gradient(circle at 92% 8%, rgba(18, 183, 163, .09), transparent 25%),
        #f5f8fb;
}

.auth-card {
    width: min(100%, 470px);
    padding: clamp(27px, 4vw, 44px);
    border: 1px solid rgba(203, 217, 227, .82);
    border-radius: var(--portal-radius-lg);
    background: rgba(255, 255, 255, .96);
    box-shadow: var(--portal-shadow);
}

.auth-mobile-brand {
    display: none;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    color: var(--portal-navy-900);
}

.auth-mobile-brand > span:last-child {
    display: flex;
    flex-direction: column;
}

.auth-mobile-brand strong {
    font-size: 1.125rem;
    letter-spacing: .04em;
}

.auth-mobile-brand small {
    color: var(--portal-slate-500);
    font-size: .875rem;
    font-weight: 650;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.auth-card-heading h2 {
    margin: 10px 0 8px;
    color: var(--portal-navy-900);
    font-size: clamp(1.625rem, 2.3vw, 2.375rem);
    font-weight: 700;
    letter-spacing: -.025em;
}

.auth-card-heading > p {
    margin: 0 0 27px;
    color: var(--portal-slate-500);
    line-height: 1.55;
}

.auth-step {
    opacity: 0;
    transform: translateX(12px);
}

.auth-step.is-active {
    animation: portalStepIn .24s ease forwards;
}

@keyframes portalStepIn {
    to { opacity: 1; transform: translateX(0); }
}

.auth-security-note {
    color: #8b98a8;
    font-size: .9375rem;
}

.auth-login-options {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 44px;
    margin-top: 2px;
}

.auth-submit {
    width: 100%;
    min-height: 48px;
}

.auth-feedback,
.portal-page-feedback,
.portal-modal-feedback {
    margin-bottom: 18px;
    padding: 11px 13px;
    border: 1px solid #f1c6ca;
    border-radius: 10px;
    color: #8c2631;
    background: #fff5f6;
    font-size: 1rem;
    line-height: 1.45;
}

.auth-feedback.is-success,
.portal-page-feedback.is-success,
.portal-modal-feedback.is-success {
    border-color: #b7e1d3;
    color: #126149;
    background: #effbf7;
}

.otp-destination {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 24px;
    padding: 14px;
    border: 1px solid #cde6e1;
    border-radius: 12px;
    background: #f2fbf9;
}

.otp-destination-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    color: #fff;
    background: var(--portal-teal-500);
}

.otp-destination small,
.otp-destination strong {
    display: block;
}

.otp-destination small {
    color: var(--portal-slate-500);
    font-size: .9375rem;
}

.otp-destination strong {
    margin-top: 2px;
    color: var(--portal-navy-800);
    font-size: 1.0625rem;
    letter-spacing: .06em;
}

.otp-code-input {
    min-height: 58px;
    padding: 8px 14px 8px 21px;
    font-size: 1.625rem;
    font-weight: 700;
    letter-spacing: .5em;
    text-align: center;
}

.otp-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
    margin-top: 12px;
}

.otp-timer {
    color: var(--portal-slate-500);
    font-size: 1rem;
}

.otp-timer strong {
    color: var(--portal-navy-700);
    font-variant-numeric: tabular-nums;
}

.auth-link,
.auth-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 7px;
    color: var(--portal-teal-600);
    font-size: 1rem;
    text-decoration: none;
}

.auth-link:disabled {
    color: #a5b1bf;
}

.auth-back {
    display: flex;
    width: max-content;
    max-width: 100%;
    margin: 4px auto 0;
    color: var(--portal-slate-500);
    text-align: center;
}

.password-change-note {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-bottom: 22px;
    padding: 12px;
    border-radius: 10px;
    color: var(--portal-navy-700);
    background: var(--portal-ice-100);
}

.password-change-note .portal-icon {
    color: var(--portal-teal-600);
}

.password-change-note p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
}

.password-rules {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 13px;
    margin: 0;
    padding: 0;
    color: #7e8b9a;
    font-size: .9375rem;
    list-style: none;
}

.password-rules li {
    position: relative;
    padding-left: 17px;
}

.password-rules li::before {
    position: absolute;
    top: 5px;
    left: 1px;
    width: 7px;
    height: 7px;
    border: 1px solid #9aa7b5;
    border-radius: 50%;
    content: "";
}

.password-rules li.is-valid {
    color: #15745a;
}

.password-rules li.is-valid::before {
    border-color: var(--portal-teal-500);
    background: var(--portal-teal-500);
    box-shadow: 0 0 0 3px rgba(18, 183, 163, .12);
}

.auth-card-footer {
    margin-top: 28px;
    padding-top: 19px;
    border-top: 1px solid var(--portal-ice-200);
    color: #8a98a8;
    font-size: .9375rem;
    text-align: center;
}

.auth-card-footer span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.auth-card-footer .portal-icon {
    width: 14px;
    height: 14px;
}

/* Panel kabuğu */
.portal-panel-page {
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
}

.portal-app {
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;
}

.portal-sidebar {
    position: fixed;
    z-index: 1040;
    top: 0;
    bottom: 0;
    left: 0;
    width: var(--portal-sidebar-width) !important;
    border: 0 !important;
    color: #fff;
    background:
        radial-gradient(circle at 18% 3%, rgba(64, 207, 189, .15), transparent 20%),
        linear-gradient(180deg, var(--portal-navy-900), var(--portal-navy-950));
}

.portal-sidebar::after {
    position: absolute;
    right: -130px;
    bottom: 80px;
    width: 270px;
    height: 270px;
    border: 1px solid rgba(64, 207, 189, .09);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.portal-sidebar-mobile-head {
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.portal-sidebar-inner {
    position: relative;
    z-index: 1;
    display: flex;
    height: 100%;
    padding: 24px 18px 18px;
    flex-direction: column;
    overflow-y: auto;
}

.portal-sidebar-brand {
    margin: 0 9px 27px;
}

.portal-sidebar-user > span:nth-child(2),
.portal-topbar-identity > span:last-child {
    min-width: 0;
}

.portal-sidebar-user small,
.portal-sidebar-user strong,
.portal-topbar-identity small,
.portal-topbar-identity strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-sidebar-user small {
    color: rgba(232, 241, 248, .52);
    font-size: .875rem;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.portal-sidebar-user strong {
    margin-top: 2px;
    color: #fff;
    font-size: 1rem;
    font-weight: 650;
}

.portal-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, .19);
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(145deg, var(--portal-teal-500), #117d83);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .04em;
}

.portal-avatar--small {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    font-size: .875rem;
}

.portal-avatar--image,
.portal-user-avatar--image {
    overflow: hidden;
    padding: 0;
    background: #e7edf3;
}

.portal-avatar--image img,
.portal-user-avatar--image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portal-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.portal-nav-label {
    margin: 0 12px 7px;
    color: rgba(230, 239, 247, .37);
    font-size: .875rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.portal-nav-link {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 44px;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 11px;
    color: rgba(235, 244, 251, .68);
    text-decoration: none;
    transition: color .16s ease, background-color .16s ease, transform .16s ease;
}

.portal-nav-link:hover,
.portal-nav-link:focus,
.portal-nav-link.is-active {
    color: #fff;
    background: rgba(255, 255, 255, .08);
}

.portal-nav-link.is-active::before {
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: -18px;
    width: 3px;
    border-radius: 0 4px 4px 0;
    background: var(--portal-teal-400);
    content: "";
}

.portal-nav-link .portal-icon {
    width: 18px;
    height: 18px;
}

.portal-nav-link > span:nth-child(2) {
    flex: 1;
    font-size: 1rem;
    font-weight: 600;
}

.portal-nav-count {
    min-width: 24px;
    padding: 3px 6px;
    border-radius: 999px;
    color: #a8e9df;
    background: rgba(18, 183, 163, .16);
    font-size: .875rem;
    text-align: center;
}

.portal-nav-count--warning {
    color: #ffd99b;
    background: rgba(242, 169, 59, .15);
}

.portal-sidebar-user {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.portal-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    flex: 0 0 auto;
    border: 1px solid var(--portal-ice-200);
    border-radius: 11px;
    color: var(--portal-slate-700);
    background: #fff;
}

.portal-icon-button:hover,
.portal-icon-button:focus {
    border-color: rgba(18, 183, 163, .45);
    color: var(--portal-teal-600);
    background: #f4fffd;
}

.portal-icon-button .portal-icon {
    width: 18px;
    height: 18px;
}

.portal-icon-button--dark {
    width: 34px;
    height: 34px;
    border-color: rgba(255, 255, 255, .08);
    color: rgba(235, 244, 251, .6);
    background: rgba(255, 255, 255, .04);
}

.portal-icon-button--dark:hover,
.portal-icon-button--dark:focus {
    border-color: rgba(64, 207, 189, .25);
    color: #fff;
    background: rgba(18, 183, 163, .11);
}

.portal-workspace {
    width: calc(100% - var(--portal-sidebar-width));
    min-width: 0;
    margin-left: var(--portal-sidebar-width);
}

.portal-topbar {
    position: sticky;
    z-index: 1020;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
    gap: 20px;
    padding: 12px clamp(18px, 3vw, 42px);
    border-bottom: 1px solid rgba(208, 220, 229, .85);
    background: rgba(255, 255, 255, .93);
    box-shadow: 0 5px 18px rgba(11, 24, 48, .03);
    backdrop-filter: blur(12px);
}

.portal-breadcrumb {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 7px;
    color: #8a97a6;
    font-size: 1rem;
}

.portal-breadcrumb .portal-icon {
    width: 13px;
    height: 13px;
}

.portal-breadcrumb strong {
    overflow: hidden;
    color: var(--portal-navy-800);
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Çoklu hesap seçici yalnız birden fazla aktif eşleme olduğunda görünür. */
.portal-account-switch {
    display: grid;
    width: clamp(180px, 19vw, 260px);
    min-width: 0;
    gap: 2px;
}

.portal-account-switch[hidden] {
    display: none;
}

.portal-account-switch label {
    overflow: hidden;
    margin: 0 2px;
    color: var(--portal-slate-500);
    font-size: .875rem;
    font-weight: 650;
    letter-spacing: .04em;
    line-height: 1.1;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.portal-account-switch .form-select {
    min-height: 36px;
    padding-top: 5px;
    padding-bottom: 5px;
    border-color: var(--portal-ice-200);
    border-radius: 9px;
    color: var(--portal-navy-800);
    background-color: #fff;
    font-size: .875rem;
    font-weight: 650;
}

.portal-account-switch .form-select:focus {
    border-color: var(--portal-teal-500);
    box-shadow: 0 0 0 3px rgba(18, 183, 163, .12);
}

.portal-notification-button {
    position: relative;
}

.portal-notification-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 7px;
    height: 7px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--portal-danger);
}

.portal-topbar-identity {
    align-items: center;
    max-width: 230px;
    gap: 9px;
    margin-left: 4px;
    padding-left: 12px;
    border-left: 1px solid var(--portal-ice-200);
}

.portal-topbar-identity .portal-avatar {
    border: 0;
}

.portal-topbar-identity strong {
    max-width: 170px;
    color: var(--portal-navy-800);
    font-size: .9375rem;
}

.portal-topbar-identity small {
    max-width: 170px;
    margin-top: 2px;
    color: var(--portal-slate-500);
    font-size: .875rem;
}

.portal-main {
    width: 100%;
    max-width: 1620px;
    margin: 0 auto;
    padding: clamp(22px, 3.4vw, 45px);
}

.portal-view {
    opacity: 0;
}

.portal-view.is-active {
    animation: portalViewIn .2s ease forwards;
}

@keyframes portalViewIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.portal-page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 27px;
}

.portal-page-heading h1 {
    margin: 8px 0 7px;
    color: var(--portal-navy-900);
    font-size: clamp(1.75rem, 3vw, 2.375rem);
    font-weight: 700;
    letter-spacing: -.035em;
}

.portal-page-heading h1 span + span::before {
    content: ", ";
}

.portal-page-heading h1 span:empty::before {
    content: "";
}

.portal-page-heading p {
    max-width: 700px;
    margin: 0;
    color: var(--portal-slate-500);
    line-height: 1.55;
}

.portal-page-heading--compact {
    align-items: center;
}

.portal-metrics {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.portal-metric-card {
    position: relative;
    min-height: 158px;
    padding: 19px;
    border: 1px solid rgba(210, 222, 231, .82);
    border-radius: var(--portal-radius);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--portal-shadow-sm);
}

.portal-metric-card::after {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: var(--metric-color, var(--portal-navy-700));
    content: "";
}

.portal-metric-card--navy { --metric-color: var(--portal-navy-700); --metric-soft: #e9eff7; }
.portal-metric-card--green { --metric-color: var(--portal-teal-500); --metric-soft: #e8faf6; }
.portal-metric-card--blue { --metric-color: var(--portal-blue); --metric-soft: #ecf2ff; }
.portal-metric-card--amber { --metric-color: var(--portal-warning); --metric-soft: #fff7e8; }
.portal-metric-card--red { --metric-color: var(--portal-danger); --metric-soft: #fff0f2; }

.portal-metric-icon {
    position: absolute;
    top: 16px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    color: var(--metric-color);
    background: var(--metric-soft);
}

.portal-metric-icon .portal-icon {
    width: 19px;
    height: 19px;
}

.portal-metric-label {
    display: block;
    max-width: calc(100% - 47px);
    color: var(--portal-slate-500);
    font-size: .9375rem;
    font-weight: 650;
}

.portal-metric-card > strong {
    display: block;
    margin: 17px 0 5px;
    color: var(--portal-navy-900);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.portal-metric-card > small {
    color: #8a98a8;
    font-size: .875rem;
}

.portal-data-placeholder.is-loaded {
    animation: portalNumberIn .22s ease;
}

@keyframes portalNumberIn {
    from { opacity: .35; transform: translateY(3px); }
    to { opacity: 1; transform: translateY(0); }
}

.portal-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
    gap: 18px;
}

.portal-card {
    border: 1px solid rgba(210, 222, 231, .82);
    border-radius: var(--portal-radius);
    background: #fff;
    box-shadow: var(--portal-shadow-sm);
}

.portal-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 15px;
    padding: 15px 19px;
    border-bottom: 1px solid var(--portal-ice-100);
}

.portal-card-header h2 {
    margin: 4px 0 0;
    color: var(--portal-navy-800);
    font-size: 1.125rem;
    font-weight: 700;
}

.portal-card-header .btn .portal-icon {
    width: 14px;
    height: 14px;
}

.portal-expiry-segments {
    display: grid;
    gap: 10px;
    padding: 17px;
}

.portal-expiry-segment {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
    gap: 16px;
    padding: 12px 15px;
    border: 1px solid var(--portal-ice-200);
    border-left: 4px solid var(--segment-color, var(--portal-teal-500));
    border-radius: 11px;
    color: var(--portal-slate-900);
    background: #fff;
    text-align: left;
    transition: border-color .16s ease, background-color .16s ease, transform .16s ease;
}

.portal-expiry-segment:hover,
.portal-expiry-segment:focus {
    border-color: var(--segment-color);
    background: var(--segment-soft, #f4fffd);
    transform: translateX(2px);
}

.portal-expiry-segment--critical { --segment-color: var(--portal-danger); --segment-soft: #fff5f6; }
.portal-expiry-segment--soon { --segment-color: var(--portal-warning); --segment-soft: #fffaf1; }
.portal-expiry-segment--watch { --segment-color: var(--portal-blue); --segment-soft: #f5f8ff; }

.portal-expiry-segment strong,
.portal-expiry-segment small {
    display: block;
}

.portal-expiry-segment strong {
    font-size: 1rem;
    font-weight: 700;
}

.portal-expiry-segment small {
    margin-top: 2px;
    color: var(--portal-slate-500);
    font-size: .875rem;
}

.portal-expiry-segment b {
    color: var(--segment-color);
    font-size: 1.5rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.portal-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    border-radius: 999px;
    color: #28705f;
    background: #eaf8f5;
    font-size: .875rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.portal-live-badge i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--portal-teal-500);
    box-shadow: 0 0 0 4px rgba(18, 183, 163, .1);
}

.portal-priority-list {
    min-height: 257px;
    padding: 7px 18px 13px;
}

.portal-priority-item {
    display: grid;
    grid-template-columns: minmax(130px, 1fr) minmax(110px, .8fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px 2px;
    border-bottom: 1px solid var(--portal-ice-100);
}

.portal-priority-item:last-child {
    border-bottom: 0;
}

.portal-priority-main,
.portal-priority-user {
    min-width: 0;
}

.portal-priority-main strong,
.portal-priority-main small,
.portal-priority-user strong,
.portal-priority-user small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-priority-main strong,
.portal-priority-user strong {
    color: var(--portal-navy-800);
    font-size: 1rem;
    font-weight: 650;
}

.portal-priority-main small,
.portal-priority-user small {
    margin-top: 3px;
    color: var(--portal-slate-500);
    font-size: .875rem;
}

.portal-countdown {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 62px;
    padding: 6px 8px;
    border-radius: 9px;
    color: var(--portal-blue);
    background: #edf3ff;
    font-size: .875rem;
    font-weight: 700;
    white-space: nowrap;
}

.portal-countdown--critical,
.portal-countdown--expired {
    color: #aa2e3c;
    background: #fff0f2;
}

.portal-countdown--soon {
    color: #9a6816;
    background: #fff6e5;
}

.portal-loading-state,
.portal-empty-state,
.portal-error-state {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 116px;
    gap: 9px;
    padding: 22px;
    color: var(--portal-slate-500);
    font-size: 1rem;
    text-align: center;
}

.portal-empty-state,
.portal-error-state {
    flex-direction: column;
}

.portal-empty-state .portal-icon,
.portal-error-state .portal-icon {
    width: 27px;
    height: 27px;
}

.portal-error-state {
    color: #9a3240;
}

/* Hat listesi */
.portal-lines-card {
    overflow: hidden;
}

.portal-filters {
    display: grid;
    grid-template-columns: minmax(250px, 1.35fr) minmax(155px, .65fr) minmax(145px, .58fr) minmax(145px, .58fr) auto auto;
    align-items: center;
    gap: 9px;
    padding: 16px;
    border-bottom: 1px solid var(--portal-ice-100);
    background: #fbfcfd;
}

.portal-filters .form-control,
.portal-filters .form-select,
.portal-filters .btn {
    min-height: 40px;
    font-size: 1rem;
}

.portal-search-field {
    position: relative;
}

.portal-search-field .portal-icon {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 13px;
    width: 17px;
    height: 17px;
    color: #8a98a8;
    transform: translateY(-50%);
    pointer-events: none;
}

.portal-search-field .form-control {
    padding-left: 40px;
}

.portal-table-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 43px;
    gap: 15px;
    padding: 9px 17px;
    color: var(--portal-slate-500);
    background: #fff;
    font-size: .875rem;
}

.portal-table-hint {
    color: #99a5b2;
}

.portal-table-wrap {
    overflow-x: auto;
}

.portal-lines-table {
    min-width: 850px;
}

.portal-lines-table thead th {
    padding: 11px 14px;
    border-top: 1px solid var(--portal-ice-100);
    border-bottom: 1px solid var(--portal-ice-200);
    color: #788798;
    background: #f7f9fb;
    font-size: .875rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    white-space: nowrap;
}

.portal-lines-table tbody td {
    padding: 13px 14px;
    border-color: var(--portal-ice-100);
    color: var(--portal-slate-700);
    font-size: 1rem;
}

/* Yalnız hat listesi: daha geniş kullanım alanı ve klavyeyle kullanılabilen sıralama başlıkları. */
.portal-lines-table .portal-usage-column { min-width: 268px; }
.portal-lines-table .portal-list-usage { width: 240px; max-width: 100%; }
.portal-table-sort {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    white-space: nowrap;
}
.portal-table-sort:hover,
th[aria-sort="ascending"] .portal-table-sort,
th[aria-sort="descending"] .portal-table-sort { color: var(--portal-navy-800); }
.portal-table-sort:focus-visible { outline: 2px solid var(--portal-teal-500); outline-offset: 4px; border-radius: 2px; }
.portal-sort-icon { opacity: .6; font-size: .75rem; }
.portal-mobile-sort { display: flex; align-items: center; gap: 10px; margin: 0 14px 14px; }
.portal-mobile-sort label { color: var(--portal-slate-500); font-size: .875rem; }
.portal-mobile-sort .form-select { width: auto; flex: 1; min-width: 0; }

.portal-lines-table tbody tr.portal-line-row:hover > td {
    background: #fbfefd;
}

.portal-line-identity,
.portal-user-identity {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 10px;
}

.portal-operator-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border: 1px solid #d9e3ea;
    border-radius: 10px;
    color: var(--portal-navy-700);
    background: #f3f6f8;
    font-size: .875rem;
    font-weight: 700;
    letter-spacing: .03em;
}

.portal-operator-mark--turkcell { color: #1357ae; background: #edf5ff; border-color: #cfe0f7; }
.portal-operator-mark--vodafone { color: #c72837; background: #fff0f2; border-color: #f1ced2; }
.portal-operator-mark--turktelekom { color: #197c88; background: #edfafb; border-color: #cce8eb; }

.portal-operator-image {
    display: block;
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.portal-line-identity strong,
.portal-line-identity small,
.portal-user-identity strong,
.portal-user-identity small {
    display: block;
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-line-identity strong,
.portal-user-identity strong {
    color: var(--portal-navy-800);
    font-size: 1rem;
    font-weight: 700;
}

.portal-line-identity small,
.portal-user-identity small {
    margin-top: 3px;
    color: #8997a7;
    font-size: .875rem;
}

.portal-user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 31px;
    flex: 0 0 auto;
    border-radius: 9px;
    color: #267769;
    background: #e8f8f4;
    font-size: .875rem;
    font-weight: 700;
}

.portal-status-badge,
.portal-operator-badge,
.portal-status-badge,
.portal-package-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: .875rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.portal-status-badge::before,
.portal-status-badge::before {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    content: "";
}

.portal-status-badge--assigned { color: #18725a; background: #e9f8f3; }
.portal-status-badge--unassigned { color: #8a641d; background: #fff6e5; }
.portal-status-badge--passive { color: #6e7783; background: #eef1f4; }
.portal-package-badge { border: 1px solid transparent; color: var(--portal-navy-700); background: #eef3f8; }
.portal-package-badge--5-9 { border-color: #cfe1ff; color: #245da8; background: #edf5ff; }
.portal-package-badge--10-14 { border-color: #bfe7f2; color: #177089; background: #eaf9fc; }
.portal-package-badge--15-19 { border-color: #bde8df; color: #18715f; background: #eaf9f5; }
.portal-package-badge--20-24 { border-color: #cae7c7; color: #3e7135; background: #eff8ec; }
.portal-package-badge--25-29 { border-color: #dce6ae; color: #647127; background: #f7f9e8; }
.portal-package-badge--30-39 { border-color: #f0d5a5; color: #8c5e17; background: #fff7e8; }
.portal-package-badge--40-49 { border-color: #f2c7a5; color: #a4511c; background: #fff2e8; }
.portal-package-badge--50-99 { border-color: #d7c8f2; color: #6742a1; background: #f5f0fc; }
.portal-package-badge--100-plus { border-color: #efc0d2; color: #9b355d; background: #fff0f5; }
.portal-package-badge--unknown { border-color: #dce4ea; color: #657383; background: #f2f5f7; }
.portal-status-badge--sent { color: #18725a; background: #e9f8f3; }
.portal-status-badge--planned { color: #2c69c5; background: #edf3ff; }
.portal-status-badge--failed { color: #a93240; background: #fff0f2; }
.portal-status-badge--skipped,
.portal-status-badge--unknown { color: #6f7c89; background: #eef1f4; }
.portal-status-badge--blocked { color: #8a641d; background: #fff6e5; }

.portal-line-expiry strong,
.portal-line-expiry small {
    display: block;
}

.portal-line-expiry strong {
    color: var(--portal-navy-800);
    font-size: .9375rem;
    font-weight: 650;
}

.portal-line-expiry small {
    margin-top: 4px;
}

.portal-line-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    white-space: nowrap;
}

.portal-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid #d7e2e9;
    border-radius: 9px;
    color: var(--portal-slate-700);
    background: #fff;
}

.portal-action-button:hover,
.portal-action-button:focus {
    border-color: var(--portal-teal-500);
    color: var(--portal-teal-600);
    background: #f2fcfa;
}

.portal-action-button .portal-icon {
    width: 16px;
    height: 16px;
}

.portal-action-button--query {
    color: #306ac6;
    background: #f7f9ff;
}

.portal-action-button--notes.has-notes {
    border-color: rgba(18, 183, 163, .45);
    color: #fff;
    background: var(--portal-teal-500);
}

.portal-action-button-count {
    position: absolute;
    top: -5px;
    right: -5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border: 2px solid #fff;
    border-radius: 999px;
    color: #fff;
    background: var(--portal-danger);
    font-size: .875rem;
    font-weight: 700;
}

.portal-action-button--notes {
    position: relative;
}

.portal-notes-row > td {
    padding: 0 !important;
    background: #f4f8fa !important;
}

.notes-slide {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows .22s ease, opacity .18s ease;
}

.notes-slide.is-open {
    grid-template-rows: 1fr;
    opacity: 1;
}

.notes-slide-inner {
    min-height: 0;
    overflow: hidden;
}

.line-notes-panel {
    margin: 10px;
    padding: 16px;
    border: 1px solid #d4e1e8;
    border-left: 4px solid var(--portal-teal-500);
    border-radius: 11px;
    background: #fff;
}

.line-notes-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 13px;
    margin-bottom: 13px;
}

.line-notes-head strong,
.line-notes-head small {
    display: block;
}

.line-notes-head strong {
    color: var(--portal-navy-800);
    font-size: 1rem;
}

.line-notes-head small {
    margin-top: 3px;
    color: var(--portal-slate-500);
    font-size: .875rem;
}

.line-notes-list {
    display: grid;
    max-height: 240px;
    gap: 7px;
    overflow-y: auto;
}

.line-note-item {
    padding: 10px 11px;
    border: 1px solid var(--portal-ice-200);
    border-radius: 9px;
    background: #f9fbfc;
}

.line-note-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px 9px;
    color: #8492a2;
    font-size: .875rem;
}

.line-note-meta strong {
    color: var(--portal-slate-700);
    font-weight: 700;
}

.line-note-content {
    margin-top: 5px;
    color: var(--portal-slate-900);
    font-size: .9375rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.line-note-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 9px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--portal-ice-100);
}

.line-note-form textarea {
    min-height: 72px;
    resize: vertical;
}

.line-note-field-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    color: #8b98a8;
    font-size: .875rem;
}

.portal-line-cards {
    padding: 12px;
}

.portal-line-card {
    margin-bottom: 11px;
    border: 1px solid var(--portal-ice-200);
    border-radius: 13px;
    overflow: hidden;
    background: #fff;
}

.portal-line-card:last-child {
    margin-bottom: 0;
}

.portal-line-card-head,
.portal-line-card-user,
.portal-line-card-meta,
.portal-line-card-actions {
    padding: 12px;
}

.portal-line-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid var(--portal-ice-100);
    background: #fbfcfd;
}

.portal-line-card-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.portal-line-card-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding-top: 3px;
}

.portal-line-card-meta div {
    min-width: 0;
    padding: 9px;
    border-radius: 9px;
    background: var(--portal-ice-50);
}

.portal-line-card-meta small,
.portal-line-card-meta strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-line-card-meta small {
    color: var(--portal-slate-500);
    font-size: .875rem;
}

.portal-line-card-meta strong {
    margin-top: 4px;
    color: var(--portal-navy-800);
    font-size: .9375rem;
}

.portal-line-card-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    padding-top: 5px;
}

.portal-line-card-actions .btn {
    min-width: 0;
    min-height: 44px;
    padding-right: 6px;
    padding-left: 6px;
    font-size: .9375rem;
}

.portal-pagination-wrap {
    display: flex;
    justify-content: flex-end;
    padding: 13px 16px;
    border-top: 1px solid var(--portal-ice-100);
}

.pagination .page-link {
    min-width: 33px;
    border-color: var(--portal-ice-200);
    color: var(--portal-slate-700);
    text-align: center;
}

.pagination .page-item.active .page-link {
    border-color: var(--portal-teal-600);
    background: var(--portal-teal-600);
}

/* Süresi yaklaşanlar */
.portal-expiring-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.portal-range-chip {
    min-height: 36px;
    padding: 7px 13px;
    border: 1px solid var(--portal-ice-200);
    border-radius: 999px;
    color: var(--portal-slate-700);
    background: #fff;
    font-size: .9375rem;
    font-weight: 650;
}

.portal-range-chip:hover,
.portal-range-chip:focus,
.portal-range-chip.is-active {
    border-color: var(--portal-teal-500);
    color: var(--portal-teal-600);
    background: #effbf8;
}

.portal-range-chip--critical.is-active { border-color: var(--portal-danger); color: #aa2e3c; background: #fff0f2; }
.portal-range-chip--soon.is-active { border-color: var(--portal-warning); color: #956213; background: #fff6e5; }

.portal-expiring-list {
    display: grid;
    gap: 10px;
}

.portal-expiring-more {
    display: flex;
    justify-content: center;
    padding-top: 18px;
}

.portal-expiring-more[hidden] {
    display: none;
}

.portal-expiring-item {
    display: grid;
    grid-template-columns: minmax(140px, 1.1fr) minmax(130px, 1fr) minmax(130px, .8fr) minmax(90px, .7fr) auto;
    align-items: center;
    gap: 16px;
    padding: 15px 17px;
    border: 1px solid var(--portal-ice-200);
    border-left: 4px solid var(--expiry-color, var(--portal-blue));
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(11, 24, 48, .04);
}

.portal-expiring-item--critical { --expiry-color: var(--portal-danger); }
.portal-expiring-item--soon { --expiry-color: var(--portal-warning); }

.portal-expiring-item-main strong,
.portal-expiring-item-main small,
.portal-expiring-item-user strong,
.portal-expiring-item-user small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-expiring-item-main strong,
.portal-expiring-item-user strong {
    color: var(--portal-navy-800);
    font-size: 1rem;
}

.portal-expiring-item-main small,
.portal-expiring-item-user small {
    margin-top: 3px;
    color: var(--portal-slate-500);
    font-size: .875rem;
}

.portal-expiring-actions {
    display: flex;
    gap: 6px;
}

/* Modaller */
.portal-modal .modal-content {
    border: 0;
    border-radius: 17px;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(7, 18, 37, .23);
}

.portal-modal .modal-header {
    min-height: 72px;
    padding: 16px 20px;
    border-color: var(--portal-ice-100);
    background: #fbfcfd;
}

.portal-modal-title-wrap {
    display: flex;
    align-items: center;
    gap: 11px;
}

.portal-modal-title-wrap h2 {
    margin: 3px 0 0;
    color: var(--portal-navy-900);
    font-weight: 700;
}

.portal-modal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 41px;
    height: 41px;
    border-radius: 12px;
    color: var(--portal-teal-600);
    background: #eaf9f6;
}

.portal-modal-icon .portal-icon {
    width: 20px;
    height: 20px;
}

.portal-modal .modal-body {
    padding: 21px;
}

.portal-line-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 21px;
}

.portal-line-summary > div {
    min-width: 0;
    padding: 10px 11px;
    border: 1px solid var(--portal-ice-200);
    border-radius: 10px;
    background: var(--portal-ice-50);
}

.portal-line-summary small,
.portal-line-summary strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-line-summary small {
    color: var(--portal-slate-500);
    font-size: .875rem;
    text-transform: uppercase;
}

.portal-line-summary strong {
    margin-top: 4px;
    color: var(--portal-navy-800);
    font-size: .9375rem;
}

.portal-line-usage {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: -11px 0 20px;
    padding: 11px;
    border: 1px solid #d7e5e8;
    border-radius: 11px;
    background: #f6fbfb;
}

.portal-line-usage > div {
    min-width: 0;
}

.portal-line-usage small,
.portal-line-usage strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-line-usage small {
    color: var(--portal-slate-500);
    font-size: .875rem;
}

.portal-line-usage strong {
    margin-top: 3px;
    color: var(--portal-navy-800);
    font-size: .9375rem;
}

.portal-form-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 18px;
    padding: 11px;
    border-radius: 10px;
    color: var(--portal-slate-500);
    background: var(--portal-ice-50);
    font-size: .875rem;
    line-height: 1.5;
}

.portal-form-note .portal-icon {
    width: 16px;
    height: 16px;
    color: var(--portal-teal-600);
}

/* Destek talebindeki hat seçimi: opak hat referansını koruyan erişilebilir aramalı liste. */
.portal-search-select {
    position: relative;
}

.portal-search-select-control {
    position: relative;
}

.portal-search-select-control .form-control {
    min-height: 45px;
    padding-right: 42px;
    padding-left: 41px;
    border-color: var(--portal-ice-200);
    border-radius: 11px;
}

.portal-search-select-control .form-control:focus,
.portal-search-select.is-open .portal-search-select-control .form-control {
    border-color: var(--portal-teal-500);
    box-shadow: 0 0 0 3px rgba(18, 183, 163, .12);
}

.portal-search-select.is-invalid .portal-search-select-control .form-control {
    border-color: var(--portal-danger);
    box-shadow: 0 0 0 3px rgba(226, 81, 103, .11);
}

.portal-search-select.is-invalid + .invalid-feedback {
    display: block;
}

.portal-search-select-icon,
.portal-search-select-clear {
    position: absolute;
    z-index: 2;
    top: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
}

.portal-search-select-icon {
    left: 14px;
    color: var(--portal-slate-500);
    pointer-events: none;
}

.portal-search-select-icon .portal-icon,
.portal-search-select-clear .portal-icon {
    width: 15px;
    height: 15px;
}

.portal-search-select-clear {
    right: 8px;
    width: 31px;
    height: 31px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    color: var(--portal-slate-500);
    background: transparent;
}

.portal-search-select-clear:hover,
.portal-search-select-clear:focus {
    color: var(--portal-navy-800);
    background: var(--portal-ice-100);
}

.portal-search-select-options {
    position: absolute;
    z-index: 1080;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    max-height: min(17rem, 42vh);
    padding: 6px;
    overflow-y: auto;
    border: 1px solid var(--portal-ice-200);
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(9, 27, 49, .17);
}

.portal-search-select-option {
    display: block;
    width: 100%;
    padding: 9px 10px;
    border: 0;
    border-radius: 8px;
    overflow: hidden;
    color: var(--portal-navy-800);
    background: transparent;
    font-size: .9375rem;
    line-height: 1.35;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-search-select-option:hover,
.portal-search-select-option.is-active {
    color: var(--portal-teal-700);
    background: #eaf9f6;
}

.portal-search-select-option[aria-selected="true"] {
    font-weight: 650;
}

.portal-search-select-empty {
    padding: 13px 11px;
    color: var(--portal-slate-500);
    font-size: .9375rem;
    text-align: center;
}

.portal-modal-footer {
    padding: 13px 20px;
    border-color: var(--portal-ice-100);
    background: #fbfcfd;
}

.portal-confirm-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 15px;
    border-radius: 15px;
    color: var(--portal-danger);
    background: #fff0f2;
}

.portal-confirm-icon .portal-icon {
    width: 25px;
    height: 25px;
}

#removeUserModal .modal-body p {
    margin: 0 0 7px;
    color: var(--portal-navy-800);
    line-height: 1.5;
}

#removeUserModal .modal-body > small {
    color: var(--portal-slate-500);
    line-height: 1.5;
}

.portal-toast {
    border: 1px solid var(--portal-ice-200);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--portal-shadow);
}

.toast-status-dot {
    width: 8px;
    height: 8px;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--portal-teal-500);
}

.portal-toast.is-error .toast-status-dot {
    background: var(--portal-danger);
}

.portal-noscript {
    position: fixed;
    z-index: 3000;
    right: 15px;
    bottom: 15px;
    left: 15px;
    padding: 13px;
    border-radius: 10px;
    color: #fff;
    background: var(--portal-danger);
    text-align: center;
}

/* Bağımsız cari profil, kullanıcı menüsü ve yasal metinler; diğer sayfa stilleri değişmez. */
.portal-profile-toggle { display: flex; background: transparent; border-top: 0; border-right: 0; border-bottom: 0; text-align: left; cursor: pointer; }
.portal-profile-toggle:focus-visible { outline: 2px solid var(--portal-teal-500); outline-offset: 3px; border-radius: 8px; }
.portal-profile-menu .dropdown-menu { min-width: 210px; border: 1px solid var(--portal-ice-200); border-radius: 10px; padding: 6px; }
.portal-profile-menu .dropdown-item { border-radius: 6px; padding: 9px 12px; font-size: .875rem; }
.portal-profile-menu .dropdown-item .portal-icon { margin-right: 8px; }
.portal-profile-notice { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 16px 20px; margin-bottom: 20px; border: 1px solid #e9dbb9; border-radius: 12px; background: #fffbf1; }
.portal-profile-notice[hidden] { display: none; }
.portal-profile-notice p { margin: 4px 0 0; color: var(--portal-slate-500); font-size: .875rem; }
.portal-profile-card { max-width: 900px; padding: 24px; border: 1px solid var(--portal-ice-200); border-radius: 14px; background: #fff; }
.portal-profile-context { margin-bottom: 12px; color: var(--portal-slate-500); overflow-wrap: anywhere; }
.portal-profile-context strong { color: var(--portal-navy-800); }
.portal-profile-feedback { padding: 12px 14px; margin-bottom: 20px; background: #f3f7fa; border-radius: 8px; font-size: .875rem; overflow-wrap: anywhere; }
.portal-profile-form-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 20px; }
/* Profil doğrulaması ve son onay; diğer formların hata/kilit stillerini etkilemez. */
#portalProfileForm .profile-field-invalid { --portal-focus: 0 0 0 .15rem rgba(220,53,69,.14); border-color: #dc3545; box-shadow: var(--portal-focus); }
#portalProfileForm .profile-field-error { display: block; color: #b42332; font-size: .8125rem; margin-top: 6px; }
#portalProfileForm .profile-field-error[hidden] { display: none; }
#portalProfileForm .profile-field-locked { background-color: #f2f5f8; color: #526174; }
.portal-profile-confirm-warning { padding: 18px; margin-bottom: 20px; border: 1px solid #e7c58a; border-radius: 10px; background: #fff8e9; color: #654511; }
.portal-profile-confirm-warning strong { display: block; font-size: clamp(1.25rem, 3.5vw, 1.625rem); font-weight: 700; }
.portal-profile-confirm-warning p { margin: 8px 0; font-size: 1rem; font-weight: 600; }
.portal-profile-summary { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 16px 24px; margin: 0; }
.portal-profile-summary > div { min-width: 0; border-bottom: 1px solid var(--portal-ice-200); padding-bottom: 10px; }
.portal-profile-summary dt { font-size: .8125rem; color: var(--portal-slate-500); font-weight: 600; }
.portal-profile-summary dd { margin: 5px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 575.98px) {
    .portal-profile-summary { grid-template-columns: minmax(0,1fr); gap: 12px; }
    #profileConfirmModal .modal-footer { gap: 8px; }
    #profileConfirmModal .modal-footer .btn { flex: 1 1 130px; margin: 0; }
}
.portal-legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 20px; padding: 16px; font-size: .8125rem; }
.portal-legal-document { padding: 28px; border: 1px solid var(--portal-ice-200); border-radius: 14px; background: #fff; overflow-wrap: anywhere; }
.portal-legal-copy { overflow-wrap: anywhere; }
.portal-legal-copy h3 { font-size: 1.0625rem; font-weight: 700; margin: 24px 0 10px; }
.portal-legal-copy p { white-space: pre-line; line-height: 1.75; }
.portal-legal-meta { font-size: .875rem; color: var(--portal-slate-500); line-height: 1.7; margin: 16px 0; }
.portal-policy-background { padding: 32px; color: var(--portal-slate-500); }
.portal-policy-footer #legalAcceptForm { width: 100%; }
.portal-policy-buttons { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 14px; }
.portal-policy-footer #legalLogoutForm { margin: 0; }
.portal-legal-modal .nav-link { color: var(--portal-navy-800); font-size: .875rem; }
.portal-legal-modal .modal-footer small { font-size: .8125rem; }
@media (max-width: 575.98px) {
    .portal-profile-toggle { padding: 0 0 0 8px; }
    .portal-profile-toggle > span:last-child { display: none; }
    .portal-profile-card, .portal-legal-document { padding: 18px 14px; }
    .portal-profile-form-actions, .portal-profile-form-actions > div { width: 100%; }
}

/* Hat kullanım göstergeleri */
.portal-list-usage {
    width: min(180px, 100%);
    min-width: 130px;
}

.portal-list-usage--compact {
    width: 100%;
    min-width: 0;
}

.portal-list-usage-meta,
.portal-usage-progress-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 7px;
    color: var(--portal-slate-500);
    font-size: .875rem;
}

.portal-list-usage-meta strong,
.portal-usage-progress-meta strong {
    color: var(--portal-navy-800);
    font-weight: 700;
}

.portal-list-usage-track,
.portal-usage-progress {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #dfe8ed;
}

.portal-list-usage-track span,
.portal-usage-progress span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--portal-teal-500);
    transition: width .25s ease;
}

.portal-list-usage-track.is-low span,
.portal-usage-progress.is-low span { background: var(--portal-warning); }
.portal-list-usage-track.is-critical span,
.portal-usage-progress.is-critical span { background: var(--portal-danger); }
.portal-list-usage-track.is-empty span { background: #aab5bf; }

/* Dolu bar içinde düşük kontrastlı çizgiler kayar; oran, renk ve satır ölçüleri değişmez. */
.portal-list-usage-track.is-animated > span,
.portal-usage-progress.is-animated > span {
    background-image: linear-gradient(45deg,
        rgba(255, 255, 255, .16) 25%, transparent 25%,
        transparent 50%, rgba(255, 255, 255, .16) 50%,
        rgba(255, 255, 255, .16) 75%, transparent 75%, transparent);
    background-size: 16px 16px;
    animation: portal-usage-bar-slide 2.4s linear infinite;
}

.portal-list-usage:hover .portal-list-usage-track.is-animated > span,
.portal-usage-progress:hover.is-animated > span {
    animation-play-state: paused;
}

@keyframes portal-usage-bar-slide {
    from { background-position: 0 0; }
    to { background-position: 16px 0; }
}

.portal-line-card-usage {
    padding: 3px 12px 12px;
}

.portal-expiring-item-usage {
    min-width: 130px;
}

/* Hat modalı adımları ve kullanım detayı */
.portal-modal-steps {
    display: grid;
    grid-template-columns: 1fr 34px 1fr;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.portal-modal-step {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    color: #8895a5;
    font-size: .9375rem;
}

.portal-modal-step > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    border: 1px solid #d6e0e7;
    border-radius: 50%;
    background: #fff;
    font-weight: 700;
}

.portal-modal-step.is-active { color: var(--portal-navy-800); }
.portal-modal-step.is-active > span { border-color: var(--portal-teal-500); color: #fff; background: var(--portal-teal-500); }
.portal-modal-step + .portal-icon { width: 18px; color: #a6b2be; }
.portal-modal-step-panel[hidden] { display: none; }

.portal-usage-panel {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid #cfe3e1;
    border-radius: 13px;
    background: #f7fcfb;
}

.portal-usage-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.portal-usage-head h3,
.portal-imei-history h3 {
    margin: 3px 0 0;
    color: var(--portal-navy-800);
    font-size: 1.125rem;
    font-weight: 700;
}

.portal-usage-feedback {
    margin: 14px 0;
    padding: 10px 12px;
    border-radius: 9px;
    color: #4c6870;
    background: #eaf5f4;
    font-size: .9375rem;
}

.portal-usage-grid,
.portal-imei-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.portal-usage-grid > div,
.portal-imei-summary > div {
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid var(--portal-ice-200);
    border-radius: 10px;
    background: #fff;
}

.portal-usage-grid small,
.portal-usage-grid strong,
.portal-imei-summary small,
.portal-imei-summary strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-usage-grid small,
.portal-imei-summary small { color: var(--portal-slate-500); font-size: .875rem; }
.portal-usage-grid strong,
.portal-imei-summary strong { margin-top: 4px; color: var(--portal-navy-800); font-size: 1rem; }
.portal-usage-progress-wrap { margin-top: 15px; }
.portal-usage-detail-wrap { margin-top: 16px; border: 1px solid var(--portal-ice-200); border-radius: 10px; overflow: hidden; background: #fff; }
.portal-usage-detail-wrap > summary { padding: 11px 13px; cursor: pointer; color: var(--portal-navy-700); font-weight: 700; }
.portal-usage-detail-wrap > h4 { margin: 0; padding: 11px 13px; border-bottom: 1px solid var(--portal-ice-100); color: var(--portal-navy-700); background: #fafcfd; font-size: 1rem; font-weight: 700; }
.portal-usage-table,
.portal-imei-history table { font-size: .9375rem; }
.portal-usage-table th,
.portal-imei-history th { color: var(--portal-slate-500); font-weight: 700; white-space: nowrap; }

/* IMEI ve destek ekranları */
.portal-feature-card {
    border: 1px solid var(--portal-ice-200);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--portal-shadow-sm);
}

.portal-feature-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 14px;
    border-bottom: 1px solid var(--portal-ice-100);
    background: #fbfcfd;
}

.portal-feature-toolbar .form-select { min-width: 190px; }

#supportFilters {
    grid-template-columns: minmax(0, 1fr) 190px auto;
}

.portal-feature-info {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 14px 0;
    padding: 12px 14px;
    border-radius: 10px;
    color: #41636a;
    background: #ecf7f6;
    font-size: .9375rem;
    line-height: 1.55;
}

.portal-feature-info .portal-icon { color: var(--portal-teal-600); }
.portal-imei-list,
.portal-support-list { display: grid; gap: 10px; padding: 14px; }

.portal-imei-item {
    display: grid;
    grid-template-columns: minmax(160px, 1.1fr) minmax(120px, .9fr) 65px minmax(155px, 1fr) minmax(175px, 1.1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--portal-ice-200);
    border-radius: 12px;
    background: #fff;
}

.portal-imei-item:hover { border-color: #bfded9; background: #fbfefd; }
/* IMEI kaynağı ve eşleştirme geçmişi birbirinden ayrı, taşmadan okunur. */
.portal-imei-item > div { min-width: 0; }
.portal-imei-label { display: block; margin-bottom: 4px; color: var(--portal-slate-500); font-size: .75rem; }
.portal-imei-value strong { font-size: .875rem; font-weight: 600; overflow-wrap: anywhere; }
.portal-imei-source { display: block; margin-top: 5px; color: var(--portal-slate-500); font-size: .75rem; overflow-wrap: anywhere; }
.portal-imei-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 14px; }
.portal-imei-history { margin-top: 18px; border: 1px solid var(--portal-ice-200); border-radius: 11px; overflow: hidden; }
.portal-imei-history h3 { padding: 13px 15px; border-bottom: 1px solid var(--portal-ice-100); background: #fafcfd; }

.portal-support-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 190px));
    gap: 10px;
    margin-bottom: 14px;
}

.portal-support-metrics > div {
    padding: 13px 15px;
    border: 1px solid var(--portal-ice-200);
    border-radius: 11px;
    background: #fff;
}

.portal-support-metrics small,
.portal-support-metrics strong { display: block; }
.portal-support-metrics small { color: var(--portal-slate-500); font-size: .875rem; }
.portal-support-metrics strong { margin-top: 4px; color: var(--portal-navy-800); font-size: 1.5rem; }

.portal-support-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 13px;
    width: 100%;
    padding: 14px;
    border: 1px solid var(--portal-ice-200);
    border-radius: 12px;
    color: inherit;
    background: #fff;
    text-align: left;
}

.portal-support-item:hover { border-color: #bfded9; background: #fbfefd; }
.portal-support-item.is-unread { border-left: 4px solid var(--portal-teal-500); }
.portal-support-item-icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 11px; color: var(--portal-teal-600); background: #eaf9f6; }
.portal-support-item-copy,
.portal-support-item-copy > span,
.portal-support-item-copy strong,
.portal-support-item-copy small { display: block; min-width: 0; }
.portal-support-item-copy strong { overflow: hidden; color: var(--portal-navy-800); text-overflow: ellipsis; white-space: nowrap; }
.portal-support-item-copy small { margin-top: 4px; color: var(--portal-slate-500); font-size: .9375rem; }
.portal-support-item-copy b { display: inline-flex; margin-left: 8px; padding: 3px 7px; border-radius: 999px; color: #fff; background: var(--portal-teal-500); font-size: .875rem; font-weight: 700; }
.portal-support-item-meta { text-align: right; }
.portal-support-item-meta small { display: block; margin-top: 5px; color: var(--portal-slate-500); font-size: .875rem; }

.portal-support-status { display: inline-flex; padding: 5px 9px; border-radius: 999px; font-size: .875rem; font-weight: 700; }
.portal-support-status--open { color: #1d6a58; background: #e9f8f3; }
.portal-support-status--answered { color: #275fae; background: #edf4ff; }
.portal-support-status--waiting { color: #8a641d; background: #fff6e5; }
.portal-support-status--closed { color: #697583; background: #eef1f4; }

.portal-support-thread { display: grid; gap: 11px; }
.portal-support-message { width: min(88%, 650px); padding: 13px 15px; border: 1px solid var(--portal-ice-200); border-radius: 13px 13px 13px 3px; background: #f6f8fa; }
.portal-support-message--dealer { justify-self: end; border-color: #bfe2dc; border-radius: 13px 13px 3px 13px; background: #edf9f7; }
.portal-support-message > div { display: flex; justify-content: space-between; gap: 12px; color: var(--portal-slate-500); font-size: .875rem; }
.portal-support-message > div strong { color: var(--portal-navy-700); font-weight: 700; }
.portal-support-message p { margin: 8px 0 0; line-height: 1.55; overflow-wrap: anywhere; white-space: pre-wrap; }
.portal-support-reply { margin-top: 17px; padding-top: 17px; border-top: 1px solid var(--portal-ice-200); }
.portal-field-counter { display: flex; justify-content: space-between; gap: 10px; margin-top: 5px; color: var(--portal-slate-500); font-size: .875rem; }
.portal-field-counter strong { font-weight: 700; }

.portal-nav-count--support {
    margin-left: auto;
    min-width: 22px;
    padding: 2px 6px;
    border-radius: 999px;
    color: #fff;
    background: var(--portal-danger);
    font-size: .875rem;
    font-weight: 700;
    text-align: center;
}

@media (min-width: 992px) {
    .portal-sidebar.offcanvas-lg {
        visibility: visible !important;
        transform: none !important;
    }

    .portal-sidebar-mobile-head {
        display: none;
    }
}

@media (max-width: 1260px) {
    .portal-imei-item { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .portal-imei-package { display: none; }
    .portal-imei-item > .btn { grid-column: 1 / -1; justify-self: end; }
    .portal-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .portal-metric-card:nth-child(4),
    .portal-metric-card:nth-child(5) {
        min-height: 140px;
    }

    .portal-filters {
        grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(135px, .7fr));
    }

    .portal-filter-submit,
    #lineFiltersClear {
        grid-column: auto;
    }
}

@media (max-width: 1090px) {
    .portal-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .portal-priority-list {
        min-height: auto;
    }

    .portal-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .portal-search-field {
        grid-column: 1 / -1;
    }

}

@media (max-width: 991.98px) {
    .auth-shell {
        grid-template-columns: minmax(310px, .75fr) minmax(430px, 1.25fr);
    }

    .auth-brand-panel {
        padding: 34px;
    }

    .auth-hero-copy h1 {
        font-size: 2.625rem;
    }

    .auth-feature-list li:nth-child(3) {
        display: none;
    }

    .portal-workspace {
        width: 100%;
        margin-left: 0;
    }

    .portal-sidebar {
        position: fixed;
    }

    .portal-topbar {
        padding-right: 18px;
        padding-left: 18px;
    }

    .portal-main {
        padding: 27px 20px;
    }

    .portal-expiring-item {
        grid-template-columns: minmax(130px, 1fr) minmax(120px, .9fr) auto;
    }

    .portal-expiring-item-usage {
        grid-column: 1 / 3;
    }

    .portal-expiring-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
        padding-top: 7px;
        border-top: 1px solid var(--portal-ice-100);
    }

    .portal-imei-item {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .portal-imei-item > .btn {
        justify-self: end;
    }
}

@media (max-width: 767.98px) {
    .auth-shell {
        display: block;
    }

    .auth-brand-panel {
        display: none;
    }

    .auth-form-panel {
        min-height: 100vh;
        min-height: 100dvh;
        padding: 24px;
    }

    .auth-mobile-brand {
        display: flex;
    }

    .portal-page-heading {
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
    }

    .portal-page-heading > .btn {
        align-self: flex-start;
    }

    .portal-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .portal-metric-card {
        min-height: 137px;
        padding: 16px;
    }

    .portal-metric-card:last-child {
        grid-column: 1 / -1;
    }

    .portal-priority-item {
        grid-template-columns: minmax(120px, 1fr) auto;
    }

    .portal-priority-user {
        display: none;
    }

    .portal-filters {
        grid-template-columns: 1fr;
    }

    .portal-search-field,
    .portal-filter-submit,
    #lineFiltersClear {
        grid-column: auto;
    }

    .portal-filter-submit,
    #lineFiltersClear {
        width: 100%;
    }

    .portal-pagination-wrap {
        justify-content: center;
    }

    .portal-expiring-item {
        grid-template-columns: 1fr auto;
        gap: 11px;
    }

    .portal-expiring-item-user {
        grid-column: 1 / -1;
        padding-top: 8px;
        border-top: 1px solid var(--portal-ice-100);
    }

    .portal-expiring-item-usage {
        grid-column: 1 / -1;
    }

    .portal-expiring-actions {
        justify-content: stretch;
    }

    .portal-expiring-actions .btn {
        flex: 1;
    }

    .portal-line-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .line-note-form {
        grid-template-columns: 1fr;
    }

    .line-note-form .btn {
        width: 100%;
    }

    .portal-feature-toolbar {
        grid-template-columns: 1fr;
    }

    #supportFilters {
        grid-template-columns: 1fr;
    }

    .portal-feature-toolbar .form-select {
        min-width: 0;
    }

    .portal-imei-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .portal-support-item {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .portal-support-item-meta {
        grid-column: 2 / -1;
        text-align: left;
    }
}

@media (max-width: 575.98px) {
    .auth-form-panel {
        align-items: stretch;
        padding: 0;
        background: #fff;
    }

    .auth-card {
        width: 100%;
        min-height: 100vh;
        min-height: 100dvh;
        padding: max(25px, env(safe-area-inset-top)) 20px max(22px, env(safe-area-inset-bottom));
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .auth-card-heading h2 {
        font-size: 1.75rem;
    }

    .password-rules {
        grid-template-columns: 1fr;
    }

    .portal-topbar {
        min-height: 62px;
        padding: 9px 12px;
    }

    .portal-topbar-actions {
        gap: 6px;
    }

    .portal-account-switch {
        width: min(42vw, 168px);
    }

    .portal-account-switch label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        border: 0;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }

    .portal-breadcrumb > span,
    #portalRefresh {
        display: none;
    }

    .portal-main {
        padding: 20px 12px 30px;
    }

    .portal-page-heading {
        margin-bottom: 19px;
    }

    .portal-page-heading h1 {
        font-size: 1.875rem;
    }

    .portal-page-heading p {
        font-size: 1rem;
    }

    .portal-page-heading > .btn {
        width: 100%;
    }

    .portal-metrics {
        gap: 9px;
    }

    .portal-metric-card,
    .portal-metric-card:nth-child(4),
    .portal-metric-card:nth-child(5) {
        min-height: 126px;
        padding: 14px;
        border-radius: 12px;
    }

    .portal-metric-icon {
        top: 12px;
        right: 12px;
        width: 33px;
        height: 33px;
    }

    .portal-metric-card > strong {
        margin-top: 15px;
        font-size: 1.75rem;
    }

    .portal-card-header {
        align-items: flex-start;
        min-height: 66px;
        padding: 13px;
    }

    .portal-card-header .btn {
        padding: 5px 7px;
        font-size: .875rem;
    }

    .portal-expiry-segments {
        padding: 12px;
    }

    .portal-expiry-segment {
        min-height: 62px;
    }

    .portal-priority-list {
        padding-right: 12px;
        padding-left: 12px;
    }

    .portal-filters {
        padding: 12px;
    }

    .portal-table-meta {
        padding-right: 13px;
        padding-left: 13px;
    }

    .portal-line-cards {
        padding: 10px;
    }

    .portal-expiring-item {
        padding: 13px;
    }

    .portal-modal-steps {
        grid-template-columns: 1fr 24px 1fr;
    }

    .portal-modal-step {
        align-items: flex-start;
        flex-direction: column;
        font-size: .875rem;
    }

    .portal-usage-head {
        flex-direction: column;
    }

    .portal-usage-head .btn {
        width: 100%;
    }

    .portal-usage-grid,
    .portal-imei-summary {
        grid-template-columns: 1fr;
    }

    .portal-imei-item {
        grid-template-columns: 1fr;
    }

    .portal-imei-item > .btn {
        width: 100%;
        justify-self: stretch;
    }

    .portal-support-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .portal-support-item {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .portal-support-item > .portal-icon:last-child {
        display: none;
    }

    .portal-support-item-meta {
        grid-column: 1 / -1;
    }

    .portal-support-message {
        width: 96%;
    }

    .portal-search-select-options {
        position: static;
        max-height: 14rem;
        margin-top: 6px;
        box-shadow: 0 9px 22px rgba(9, 27, 49, .12);
    }

    .portal-modal .modal-dialog {
        width: 100%;
        max-width: none;
        height: 100%;
        min-height: 100%;
        margin: 0;
    }

    .portal-modal .modal-content {
        height: 100%;
        min-height: 100%;
        border-radius: 0;
    }

    .portal-modal .modal-header {
        padding: max(14px, env(safe-area-inset-top)) 15px 14px;
    }

    .portal-modal .modal-body {
        padding: 16px 14px;
    }

    .portal-modal-footer {
        position: sticky;
        z-index: 3;
        bottom: 0;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding: 12px 14px max(12px, env(safe-area-inset-bottom));
    }

    .portal-modal-footer .btn {
        width: 100%;
        margin: 0 !important;
    }

    .portal-modal-footer #lineUserRemove {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    #removeUserModal .modal-dialog,
    #imeiConfirmModal .modal-dialog,
    #supportCloseConfirmModal .modal-dialog {
        align-items: flex-end;
    }

    #removeUserModal .modal-content,
    #imeiConfirmModal .modal-content,
    #supportCloseConfirmModal .modal-content {
        height: auto;
        min-height: auto;
        border-radius: 18px 18px 0 0;
    }

    #removeUserModal .modal-footer,
    #imeiConfirmModal .modal-footer,
    #supportCloseConfirmModal .modal-footer {
        position: static;
    }

    .toast-container {
        right: 7px !important;
        left: 7px !important;
        width: auto;
        padding: 7px !important;
    }

    .portal-toast {
        width: 100%;
    }
}

@media (max-width: 390px) {
    .portal-main {
        padding-right: 10px;
        padding-left: 10px;
    }

    .portal-metric-label {
        max-width: calc(100% - 36px);
        font-size: .875rem;
    }

    .portal-metric-card > small {
        font-size: .875rem;
    }

    .portal-line-card-actions .btn span:not(.spinner-border) {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .portal-line-summary {
        grid-template-columns: 1fr;
    }

    .otp-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }

    .otp-actions .auth-link {
        padding-left: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    /* Hareket azaltma tercihinde kullanım barı düz ve sabit kalır. */
    .portal-list-usage-track.is-animated > span,
    .portal-usage-progress.is-animated > span {
        animation: none !important;
        background-image: none;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
