@import url('./icons.css');

html, body {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    margin: 0;
}

.w-100 {
    width: 100% !important;
}

.h-100 {
    height: 100% !important;
}

.h-auto {
    height: auto !important;
}

.overflow-hidden {
    overflow: hidden !important;
}

.text-danger {
    color: var(--dxds-color-content-danger-default-rest);
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--dxds-color-border-success-default-rest);
}

.invalid {
    outline: 1px solid var(--dxds-color-border-danger-default-rest);
}

.validation-message {
    color: var(--dxds-color-content-danger-default-rest);
}

.button-link {
    text-decoration: unset;
}

.title {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 0;
}

.title.title-secondary {
    padding: 0.313rem 0 0;
    color: var(--dxds-color-content-secondary-default-rest);
}

.title-header-text {
    font-size: var(--dxds-font-size-headline-lg);
    font-weight: var(--dxds-font-weight-headline-default);
    letter-spacing: var(--dxds-letter-spacing-headline-lg);
    line-height: var(--dxds-line-height-headline-lg);
}

.title-content-text {
    font-size: var(--dxds-font-size-base-lg);
    font-weight: var(--dxds-font-weight-base-default);
    letter-spacing: var(--dxds-letter-spacing-base-lg);
    line-height: var(--dxds-line-height-base-lg);
}

.main-content {
    align-items: center;
    display: flex;
    height: 100%;
    justify-content: center;
    width: 100%;
}

.sube-window-state {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    padding: 1rem 0;
}

.sube-alert {
    background: var(--dxds-color-background-danger-quiet-rest);
    border: 1px solid var(--dxds-color-border-danger-default-rest);
    color: var(--dxds-color-content-danger-default-rest);
    padding: 0.75rem 1rem;
}

.tanimlar-page {
    background:
        radial-gradient(circle at top left, rgba(20, 184, 166, 0.18), transparent 34%),
        linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(37, 99, 235, 0.05) 46%, rgba(245, 158, 11, 0.08)),
        var(--dxds-color-background-neutral-default-rest);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    height: 100%;
    min-height: 0;
    padding: 0.25rem;
}

.tanimlar-header {
    align-items: stretch;
    background: linear-gradient(135deg, rgba(7, 89, 133, 0.95), rgba(15, 118, 110, 0.92) 52%, rgba(146, 64, 14, 0.88));
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 14px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
    color: #fff;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(220px, 1fr) auto auto;
    padding: 1rem;
}

.tanimlar-header h1 {
    font-size: 1.75rem;
    line-height: 1.1;
    margin: 0;
}

.tanimlar-hero-copy {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    justify-content: center;
}

.tanimlar-hero-copy .title-secondary {
    color: rgba(255, 255, 255, 0.78);
}

.tanimlar-eyebrow {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.tanimlar-hero-metrics {
    align-items: stretch;
    display: grid;
    gap: 0.5rem;
    grid-template-columns: repeat(3, minmax(92px, 1fr));
    min-width: 360px;
}

.tanimlar-hero-metrics > div {
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    justify-content: center;
    padding: 0.75rem 0.85rem;
}

.tanimlar-hero-metrics span {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.76rem;
}

.tanimlar-hero-metrics strong {
    color: #fff;
    font-size: 1rem;
}

.tanimlar-toolbar,
.tanimlar-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tanimlar-toolbar {
    align-content: center;
    align-items: center;
    justify-content: flex-end;
    max-width: 420px;
}

.tanimlar-toolbar .dxbl-btn,
.tanimlar-tabs .dxbl-btn {
    border-radius: 999px;
    font-weight: 700;
}

.tanimlar-tabs {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.26);
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    padding: 0.55rem;
}

.tanimlar-content {
    display: grid;
    flex: 1 1 0;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    min-height: 0;
}

.tanimlar-grid-panel,
.tanimlar-detail-panel {
    min-height: 0;
    min-width: 0;
}

.tanimlar-grid-panel {
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.tanimlar-grid {
    height: 100%;
    width: 100%;
}

.tanimlar-grid table th,
.tanimlar-grid table td {
    border-left-width: 0 !important;
    border-right-width: 0 !important;
}

.tanimlar-detail-panel {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    overflow: auto;
    padding: 1rem;
}

.tanimlar-detail-hero {
    align-items: center;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.12), rgba(37, 99, 235, 0.1));
    border: 1px solid rgba(14, 165, 233, 0.16);
    border-radius: 12px;
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.85rem;
}

.tanimlar-detail-icon {
    align-items: center;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    display: flex;
    flex: 0 0 42px;
    font-size: 1.35rem;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.tanimlar-detail-title {
    color: #0f172a;
    font-size: 1rem;
    font-weight: var(--dxds-font-weight-title-default);
    margin: 0;
}

.tanimlar-detail-subtitle {
    color: #64748b;
    font-size: 0.82rem;
    margin-top: 0.15rem;
}

.tanimlar-empty-state {
    align-items: center;
    border: 1px dashed rgba(14, 165, 233, 0.32);
    border-radius: 12px;
    color: #64748b;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    justify-content: center;
    min-height: 190px;
    padding: 1rem;
    text-align: center;
}

.tanimlar-empty-state div {
    font-size: 2rem;
}

.tanimlar-empty-state strong {
    color: #0f172a;
}

.tanimlar-form .dxbl-text-edit,
.tanimlar-form .dxbl-spin-edit,
.tanimlar-form .dxbl-combobox {
    max-width: 100%;
    min-width: 0;
    width: 100%;
}

.tanimlar-logo-grid {
    display: block;
    height: 28px;
    max-width: 64px;
    object-fit: contain;
    padding: 0.15rem;
}

.tanimlar-logo-editor {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
}

.tanimlar-logo-preview,
.tanimlar-logo-empty {
    align-items: center;
    background: linear-gradient(135deg, #fff, rgba(240, 253, 250, 0.9));
    border: 1px solid rgba(148, 163, 184, 0.36);
    border-radius: 12px;
    box-sizing: border-box;
    display: flex;
    height: 96px;
    justify-content: center;
    max-width: 220px;
    width: 100%;
}

.tanimlar-logo-preview {
    object-fit: contain;
    padding: 0.5rem;
}

.tanimlar-logo-empty {
    color: var(--dxds-color-content-secondary-default-rest);
}

.teklif-page {
    background:
        linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(37, 99, 235, 0.06) 44%, rgba(234, 179, 8, 0.08)),
        var(--dxds-color-background-neutral-default-rest);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
    min-height: 0;
    padding: 0.25rem;
}

.teklif-header {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.teklif-header h1 {
    margin: 0;
}

.teklif-hero-metrics {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: repeat(3, minmax(92px, 1fr));
    margin-left: auto;
}

.teklif-hero-metrics div,
.teklif-detail-hero-metrics div {
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.65rem 0.8rem;
}

.teklif-hero-metrics span,
.teklif-detail-hero-metrics span {
    color: var(--dxds-color-content-secondary-default-rest);
    font-size: var(--dxds-font-size-base-sm);
}

.teklif-hero-metrics strong,
.teklif-detail-hero-metrics strong {
    font-size: var(--dxds-font-size-title-md);
    font-weight: var(--dxds-font-weight-title-default);
    line-height: 1.15;
}

.teklif-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.teklif-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.teklif-filter {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.85rem;
}

.teklif-search-row,
.teklif-date-row {
    align-items: center;
    display: grid;
    gap: 0.5rem;
}

.teklif-search-row > *,
.teklif-date-row > * {
    min-width: 0;
}

.teklif-search-row {
    grid-template-columns: 120px minmax(0, 1fr) auto;
}

.teklif-date-row {
    grid-template-columns: 120px 180px 180px 220px 220px auto;
}

.teklif-filter-label {
    color: var(--dxds-color-content-secondary-default-rest);
    font-size: var(--dxds-font-size-base-sm);
    font-weight: var(--dxds-font-weight-base-semibold);
}

.teklif-search-input,
.teklif-date-input,
.teklif-date-combo,
.teklif-status-combo {
    min-width: 0;
    width: 100%;
}

.teklif-search-input {
    height: auto;
}

.teklif-filter-button {
    justify-self: start;
    min-width: 88px;
    width: auto;
}

.teklif-content {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
}

.teklif-grid-panel {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 8px;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
    flex: 1 1 0;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
}

.teklif-grid {
    height: 100%;
    width: 100%;
}

.teklif-grid table th,
.teklif-grid table td {
    border-left-width: 0 !important;
    border-right-width: 0 !important;
}

.teklif-grid table tbody tr:hover > td {
    background: rgba(14, 165, 233, 0.07) !important;
}

.teklif-branch-pill,
.teklif-id-chip,
.teklif-time-chip,
.teklif-status-pill,
.teklif-plate {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: var(--dxds-font-size-base-sm);
    font-weight: var(--dxds-font-weight-base-semibold);
    justify-content: center;
    line-height: 1.2;
    max-width: 100%;
    min-height: 24px;
    padding: 0.25rem 0.6rem;
    white-space: nowrap;
}

.teklif-branch-pill {
    background: rgba(20, 184, 166, 0.13);
    color: #0f766e;
}

.teklif-id-chip {
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
    font-variant-numeric: tabular-nums;
}

.teklif-time-chip {
    background: rgba(245, 158, 11, 0.15);
    color: #92400e;
    font-variant-numeric: tabular-nums;
}

.teklif-plate {
    background: #f8fafc;
    border: 1px solid #1d4ed8;
    color: #0f172a;
    font-weight: 800;
    letter-spacing: 0;
    min-width: 74px;
}

.teklif-customer-name {
    color: #172554;
    font-weight: var(--dxds-font-weight-base-semibold);
    overflow-wrap: anywhere;
}

.teklif-status-pill,
.teklif-status-strip {
    background: rgba(100, 116, 139, 0.13);
    color: #334155;
}

.teklif-status-waiting {
    background: rgba(245, 158, 11, 0.18);
    color: #92400e;
}

.teklif-status-done {
    background: rgba(34, 197, 94, 0.16);
    color: #166534;
}

.teklif-status-cancel {
    background: rgba(239, 68, 68, 0.14);
    color: #991b1b;
}

.teklif-detail-page {
    background: #f1f5f9;
    border-radius: 10px;
    height: calc(100dvh - 2rem);
    min-height: 640px;
    overflow: hidden;
}

.teklif-detail-body {
    height: 100%;
    min-height: 0;
    padding: 0;
}

.teklif-detail-shell {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    height: 100%;
    min-height: 0;
    padding: 0.75rem;
}

.teklif-detail-hero {
    align-items: stretch;
    background: linear-gradient(135deg, #0f766e, #1d4ed8 58%, #7c2d12);
    border-radius: 8px;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.18);
    color: #fff;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1rem 3rem 1rem 1rem;
    position: relative;
}

.teklif-detail-kicker {
    font-size: var(--dxds-font-size-base-sm);
    opacity: 0.82;
}

.teklif-detail-customer {
    font-size: var(--dxds-font-size-headline-md);
    font-weight: var(--dxds-font-weight-headline-default);
    line-height: 1.15;
    margin-top: 0.2rem;
    overflow-wrap: anywhere;
}

.teklif-detail-subline {
    margin-top: 0.35rem;
    opacity: 0.88;
    overflow-wrap: anywhere;
}

.teklif-detail-hero-metrics {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: repeat(3, minmax(110px, 1fr));
    min-width: min(520px, 48%);
}

.teklif-detail-hero-metrics div {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow: none;
}

.teklif-detail-hero-metrics span {
    color: rgba(255, 255, 255, 0.74);
}

.teklif-detail-hero-metrics strong {
    color: #fff;
    overflow-wrap: anywhere;
}

.teklif-detail-window .teklif-detail-close,
.teklif-detail-page .teklif-detail-close {
    color: #fff !important;
    font-size: 1.35rem;
    height: 34px;
    min-width: 34px;
    opacity: 0.9;
    padding: 0 !important;
    position: absolute;
    right: 0.55rem;
    top: 0.55rem;
    width: 34px;
}

.teklif-detail-window .teklif-detail-close:hover,
.teklif-detail-page .teklif-detail-close:hover {
    background: rgba(255, 255, 255, 0.16) !important;
    opacity: 1;
}

.teklif-detail-tab-content {
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
}

.teklif-detail-window .dxbl-tabs,
.teklif-detail-page .dxbl-tabs {
    border-bottom: 1px solid var(--dxds-color-border-neutral-default-rest);
}

.teklif-chat-layout {
    display: grid;
    gap: 0;
    grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
    height: 100%;
    min-height: 0;
}

.teklif-info-panel,
.teklif-chat-panel,
.teklif-prim-tab,
.teklif-policy-panel {
    min-height: 0;
    min-width: 0;
}

.teklif-info-panel {
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    border-right: 1px solid rgba(148, 163, 184, 0.38);
    overflow: auto;
    padding: 0 1rem 0 0.25rem;
}

.teklif-owner {
    background: transparent;
    padding-bottom: 0.75rem;
    padding-top: 0.25rem;
}

.teklif-owner-name {
    font-size: var(--dxds-font-size-title-md);
    font-weight: var(--dxds-font-weight-title-default);
}

.teklif-status-strip {
    border-radius: 8px;
    display: inline-flex;
    font-weight: var(--dxds-font-weight-base-semibold);
    margin: 0 0 0.75rem;
    padding: 0.45rem 0.7rem;
}

.teklif-info-list {
    display: flex;
    flex-direction: column;
}

.teklif-info-list div {
    border-bottom: 1px solid var(--dxds-color-border-neutral-default-rest);
    display: grid;
    gap: 0.5rem;
    grid-template-columns: 110px minmax(0, 1fr);
    padding: 0.45rem 0;
}

.teklif-info-list span {
    color: var(--dxds-color-content-secondary-default-rest);
    text-align: right;
}

.teklif-info-list strong {
    overflow-wrap: anywhere;
}

.teklif-chat-panel {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.36), rgba(14, 165, 233, 0.1)),
        #eef6f3;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    padding-left: 1rem;
}

.teklif-message-list {
    flex: 1 1 0;
    min-height: 0;
    overflow: auto;
    padding: 1rem 1rem 0.75rem;
}

.teklif-message {
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
    margin-bottom: 0.75rem;
    max-width: min(680px, 85%);
    padding: 0.65rem 0.8rem;
}

.teklif-message-me {
    background: #ffffff;
    margin-left: auto;
}

.teklif-message-other {
    background: #d9f6ef;
}

.teklif-message-system {
    background: var(--dxds-color-background-warning-quiet-rest);
    margin-left: auto;
    margin-right: auto;
}

.teklif-message-meta {
    color: var(--dxds-color-content-secondary-default-rest);
    display: flex;
    font-size: var(--dxds-font-size-base-sm);
    gap: 0.5rem;
    justify-content: space-between;
    margin-bottom: 0.35rem;
}

.teklif-chat-compose {
    align-items: center;
    background: rgba(255, 255, 255, 0.76);
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    display: grid;
    gap: 0.65rem;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 72px;
    padding: 0.7rem;
}

.teklif-chat-compose .dxbl-memo {
    background: #fff;
    border: 0 !important;
    border-radius: 8px;
    box-shadow: none !important;
    height: 46px;
}

.teklif-chat-compose .dxbl-memo * {
    border-color: transparent !important;
    box-shadow: none !important;
}

.teklif-chat-compose .dxbl-memo textarea,
.teklif-chat-compose textarea {
    height: 100% !important;
    min-height: 0;
    padding: 0.55rem 0.85rem;
    resize: none !important;
}

.teklif-chat-compose .dxbl-btn {
    height: 46px;
    min-width: 92px;
}

.teklif-prim-tab {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    height: 100%;
}

.teklif-tab-toolbar {
    align-items: center;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 8px;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    padding: 0.75rem 1rem;
}

.teklif-tab-title {
    font-size: var(--dxds-font-size-headline-sm);
    font-weight: var(--dxds-font-weight-headline-default);
}

.teklif-tab-subtitle {
    color: var(--dxds-color-content-secondary-default-rest);
    font-size: var(--dxds-font-size-base-sm);
    margin-top: 0.15rem;
}

.teklif-tab-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.teklif-detail-grid {
    flex: 1 1 0;
    height: 100%;
    min-height: 0;
    width: 100%;
}

.teklif-detail-grid table th,
.teklif-detail-grid table td {
    border-left-width: 0 !important;
    border-right-width: 0 !important;
}

.teklif-prim-grid table {
    border-collapse: separate !important;
    border-spacing: 0 8px !important;
}

.teklif-prim-grid table tbody tr > td {
    background: var(--dxds-color-surface-neutral-default-rest);
    border-bottom: 1px solid rgba(148, 163, 184, 0.22) !important;
    border-top: 1px solid rgba(148, 163, 184, 0.22) !important;
    vertical-align: middle;
}

.teklif-prim-grid table tbody tr:hover > td {
    background: var(--dxds-color-surface-neutral-default-hovered);
}

.teklif-prim-logo {
    display: block;
    max-height: 28px;
    max-width: 54px;
    object-fit: contain;
}

.teklif-policy-panel {
    align-items: flex-start;
    background: #f7f9fb;
    display: flex;
    height: 100%;
    padding: 1.25rem;
}

.teklif-policy-layout {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(420px, 760px) minmax(280px, 420px);
    width: 100%;
}

.teklif-policy-card {
    background: #fff;
    border: 1px solid #dce5ea;
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 760px;
    padding: 1.25rem;
    width: 100%;
}

.teklif-payment-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem;
}

.teklif-policy-header {
    align-items: center;
    border-bottom: 1px solid var(--dxds-color-border-neutral-default-rest);
    display: flex;
    justify-content: space-between;
    padding-bottom: 1rem;
}

.teklif-policy-subtitle {
    color: var(--dxds-color-content-secondary-default-rest);
    margin-top: 0.2rem;
}

.teklif-policy-form .dxbl-fl {
    margin: 0;
}

.teklif-policy-form .dxbl-fl-cpt {
    color: var(--dxds-color-content-secondary-default-rest);
    font-weight: var(--dxds-font-weight-base-semibold);
}

.teklif-policy-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 0.25rem;
}

.teklif-policy-actions .dxbl-btn {
    min-width: 128px;
}

.teklif-payment-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.teklif-payment-item {
    background: linear-gradient(135deg, #0f766e, #1d4ed8);
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.15);
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.95rem;
}

.teklif-payment-number {
    font-size: var(--dxds-font-size-title-md);
    font-variant-numeric: tabular-nums;
    font-weight: var(--dxds-font-weight-title-default);
    overflow-wrap: anywhere;
}

.teklif-payment-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.teklif-payment-details span,
.teklif-payment-note,
.teklif-payment-date {
    color: rgba(255, 255, 255, 0.82);
}

.teklif-payment-details strong {
    color: #fff;
}

.teklif-payment-note {
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    padding-top: 0.55rem;
}

.teklif-payment-date {
    font-size: var(--dxds-font-size-caption);
}

.teklif-empty-panel {
    border: 1px dashed var(--dxds-color-border-neutral-default-rest);
    color: var(--dxds-color-content-secondary-default-rest);
    padding: 1rem;
}

.teklif-files-tab {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    height: 100%;
    min-height: 0;
}

.teklif-files-toolbar {
    flex: 0 0 auto;
}

.teklif-file-upload {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 8px;
    padding: 0.85rem;
}

.teklif-file-drop-zone {
    align-items: center;
    background: linear-gradient(135deg, rgba(240, 253, 250, 0.85), rgba(239, 246, 255, 0.92));
    border: 2px dashed rgba(14, 116, 144, 0.34);
    border-radius: 10px;
    box-sizing: border-box;
    color: #0f172a;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    justify-content: center;
    min-height: 160px;
    padding: 1rem;
    text-align: center;
    transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.teklif-file-drop-zone.teklif-file-drop-zone-hover {
    background: linear-gradient(135deg, rgba(204, 251, 241, 0.95), rgba(219, 234, 254, 0.98));
    border-color: #0f766e;
    box-shadow: 0 12px 28px rgba(15, 118, 110, 0.14);
}

.teklif-file-drop-icon {
    font-size: 2rem;
    line-height: 1;
}

.teklif-file-drop-title {
    font-size: var(--dxds-font-size-title-md);
    font-weight: 800;
}

.teklif-file-drop-subtitle,
.teklif-file-drop-note {
    color: var(--dxds-color-content-secondary-default-rest);
    font-size: var(--dxds-font-size-base-sm);
}

.teklif-file-select-button {
    margin-top: 0.25rem;
    min-width: 128px;
}

.teklif-file-alert,
.teklif-file-state {
    flex: 0 0 auto;
}

.teklif-files-grid table td {
    vertical-align: middle;
}

.teklif-file-actions {
    align-items: center;
    display: flex;
    gap: 0.45rem;
    justify-content: flex-end;
}

.teklif-file-download {
    align-items: center;
    background: #eef6ff;
    border: 1px solid rgba(29, 78, 216, 0.18);
    border-radius: 8px;
    color: #0f5fb8;
    display: inline-flex;
    font-weight: 700;
    min-height: 34px;
    padding: 0.35rem 0.7rem;
    text-decoration: none;
    white-space: nowrap;
}

.teklif-file-download:hover {
    background: #dbeafe;
    color: #0b4a92;
    text-decoration: none;
}

.teklif-file-preview-window {
    max-height: calc(100vh - 16px);
    max-width: calc(100vw - 16px);
}

.teklif-file-preview-popup-body {
    background: #f8fafc;
    padding: 0 !important;
}

.teklif-file-preview-content {
    align-items: center;
    box-sizing: border-box;
    display: flex;
    height: 100%;
    justify-content: center;
    min-height: 0;
    overflow: auto;
    padding: 0.75rem;
}

.teklif-file-pdf-viewer {
    height: 100%;
    min-height: 520px;
    width: 100%;
}

.teklif-file-image-preview {
    display: block;
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.teklif-file-preview-footer {
    background: #fff !important;
    border-top: 1px solid rgba(148, 163, 184, 0.28) !important;
    padding: 0.75rem 1rem !important;
}

.teklif-prim-edit-window {
    max-width: calc(100vw - 16px);
}

.teklif-prim-edit-body {
    background: linear-gradient(180deg, #f8fafc, #ffffff);
    padding: 0 !important;
}

.teklif-prim-edit {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
}

.teklif-prim-edit-hero {
    align-items: center;
    background: linear-gradient(135deg, #0f766e, #1d4ed8);
    border-radius: 8px;
    color: #fff;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1rem;
}

.teklif-prim-edit-label {
    font-size: var(--dxds-font-size-base-sm);
    opacity: 0.78;
}

.teklif-prim-company {
    font-size: var(--dxds-font-size-headline-sm);
    font-weight: var(--dxds-font-weight-headline-default);
    line-height: 1.15;
    margin-top: 0.15rem;
    overflow-wrap: anywhere;
}

.teklif-prim-edit-badge {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    font-size: var(--dxds-font-size-base-sm);
    font-weight: var(--dxds-font-weight-base-semibold);
    padding: 0.35rem 0.75rem;
    white-space: nowrap;
}

.teklif-prim-edit-form {
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.26);
    border-radius: 8px;
    padding: 0.85rem;
}

.teklif-prim-edit-form .dxbl-fl {
    margin: 0;
}

.teklif-prim-edit-form .dxbl-fl-cpt {
    color: var(--dxds-color-content-secondary-default-rest);
    font-size: var(--dxds-font-size-base-sm);
    font-weight: var(--dxds-font-weight-base-semibold);
}

.teklif-prim-edit-form .dxbl-spin-edit,
.teklif-prim-edit-form .dxbl-combobox,
.teklif-prim-edit-form .dxbl-memo {
    width: 100%;
}

.teklif-prim-edit-form .dxbl-memo textarea,
.teklif-prim-edit-form textarea {
    min-height: 92px;
}

.teklif-prim-edit-footer {
    background: #fff !important;
    border-top: 1px solid rgba(148, 163, 184, 0.28) !important;
    padding: 0.75rem 1rem !important;
}

.teklif-prim-edit-buttons {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
    width: 100%;
}

.teklif-prim-edit-danger,
.teklif-prim-edit-main {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.teklif-prim-edit-main {
    justify-content: flex-end;
    margin-left: auto;
}

.teklif-popup-form,
.teklif-popup-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 0;
}

.teklif-popup-form .dxbl-memo {
    width: 100%;
}

.teklif-popup-grid {
    height: 100%;
}

.teklif-popup-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
    width: 100%;
}

.teklif-sirket-body {
    height: 100%;
    min-height: 0;
}

@media (max-width: 900px) {
    .tanimlar-header {
        align-items: stretch;
        grid-template-columns: minmax(0, 1fr);
    }

    .tanimlar-hero-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        min-width: 0;
    }

    .tanimlar-toolbar {
        justify-content: flex-start;
        max-width: none;
    }

    .tanimlar-content {
        grid-template-columns: minmax(0, 1fr);
    }

    .tanimlar-detail-panel {
        padding: 1rem;
    }

    .teklif-header {
        align-items: stretch;
        flex-direction: column;
    }

    .teklif-hero-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        margin-left: 0;
    }

    .teklif-toolbar {
        justify-content: flex-start;
    }

    .teklif-search-row,
    .teklif-date-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .teklif-search-input,
    .teklif-date-input,
    .teklif-date-combo,
    .teklif-status-combo {
        width: 100%;
    }

    .teklif-search-row > *,
    .teklif-date-row > * {
        width: 100%;
    }

    .teklif-filter-button {
        justify-self: stretch;
        width: 100%;
    }

    .teklif-filter-label {
        margin-top: 0.25rem;
    }

    .teklif-content {
        flex: 0 0 auto;
        min-height: 420px;
    }

    .teklif-grid-panel {
        flex: 0 0 auto;
        height: 420px;
        min-height: 420px;
    }

    .teklif-grid {
        height: 100%;
        min-height: 420px;
    }

    .teklif-detail-body {
        height: 100%;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .teklif-detail-shell {
        box-sizing: border-box;
        height: auto;
        min-height: 100%;
        overflow-x: hidden;
        padding: 0.5rem;
    }

    .teklif-detail-hero {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.85rem 2.5rem 0.85rem 0.85rem;
    }

    .teklif-detail-customer {
        font-size: var(--dxds-font-size-headline-sm);
    }

    .teklif-detail-hero-metrics {
        grid-template-columns: minmax(0, 1fr);
        min-width: 0;
    }

    .teklif-detail-hero-metrics div {
        padding: 0.55rem 0.7rem;
    }

    .teklif-detail-tab-content {
        flex: 0 0 auto;
        overflow: visible;
    }

    .teklif-chat-layout {
        grid-template-columns: minmax(0, 1fr);
        height: auto;
    }

    .teklif-info-panel {
        border-right: 0;
        border-bottom: 1px solid var(--dxds-color-border-neutral-default-rest);
        max-height: none;
        padding-bottom: 1rem;
        padding-right: 0;
    }

    .teklif-info-list div {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .teklif-chat-panel {
        overflow: visible;
        padding-left: 0;
        padding-top: 1rem;
    }

    .teklif-message-list {
        flex: 0 0 auto;
        min-height: 180px;
        overflow: visible;
        padding: 0.75rem;
    }

    .teklif-message {
        max-width: 100%;
    }

    .teklif-chat-compose {
        grid-template-columns: minmax(0, 1fr);
    }

    .teklif-chat-compose .dxbl-memo {
        height: 96px;
    }

    .teklif-chat-compose .dxbl-btn {
        min-height: 42px;
        width: 100%;
    }

    .teklif-tab-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .teklif-tab-actions {
        justify-content: flex-start;
    }

    .teklif-tab-actions .dxbl-btn {
        flex: 1 1 150px;
        min-width: 0;
    }

    .teklif-prim-tab {
        height: auto;
    }

    .teklif-detail-grid {
        flex: 0 0 auto;
        height: 380px;
        min-height: 380px;
        width: 100%;
    }

    .teklif-policy-panel {
        height: auto;
        padding: 0.75rem;
    }

    .teklif-policy-layout {
        grid-template-columns: 1fr;
    }

    .teklif-policy-card {
        padding: 1rem;
    }

    .teklif-payment-card {
        padding: 1rem;
    }

    .teklif-policy-actions .dxbl-btn {
        width: 100%;
    }

    .teklif-prim-edit {
        padding: 0.75rem;
    }

    .teklif-prim-edit-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .teklif-prim-edit-buttons {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .teklif-prim-edit-danger,
    .teklif-prim-edit-main {
        width: 100%;
    }

    .teklif-prim-edit-danger .dxbl-btn,
    .teklif-prim-edit-main .dxbl-btn {
        flex: 1 1 0;
    }
}

.login-page {
    align-items: center;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.08), rgba(15, 118, 110, 0.08) 48%, rgba(37, 99, 235, 0.12)),
        url('../images/login-background.jpg') center / cover no-repeat;
    box-sizing: border-box;
    display: flex;
    height: 100vh;
    justify-content: center;
    overflow: hidden;
    padding: 1.5rem;
    width: 100vw;
}

.login-shell {
    max-width: 430px;
    overflow: hidden;
    width: 100%;
}

.login-panel {
    backdrop-filter: blur(18px) saturate(1.16);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(15, 23, 42, 0.12));
    border: 1px solid rgba(15, 23, 42, 0.28);
    border-radius: 12px;
    box-sizing: border-box;
    box-shadow:
        0 28px 80px rgba(15, 23, 42, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.42);
    padding: 1.55rem 1.65rem 1.7rem;
    width: 100%;
}

.login-logo-wrap {
    align-items: center;
    display: flex;
    justify-content: center;
    margin-bottom: 1.15rem;
}

.login-logo-wrap img {
    display: block;
    filter: drop-shadow(0 8px 18px rgba(15, 23, 42, 0.25));
    max-height: 78px;
    max-width: 240px;
    object-fit: contain;
    width: 100%;
}

.login-system-strip {
    align-items: center;
    background: rgba(115, 255, 0, 0.74);
    border: 1px solid rgba(6, 78, 59, 0.72);
    border-radius: 6px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
    color: #000000;
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.8rem;
    padding: 0.8rem 0.9rem;
}

.login-system-strip span {
    font-size: 1.3rem;
    line-height: 1;
}

.login-system-strip strong {
    font-size: 1rem;
}

.login-form-native {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.login-field {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.login-field span {
    height: 0;
    overflow: hidden;
    width: 0;
}

.login-field input {
    background: rgba(15, 23, 42, 0.34);
    border: 1px solid rgba(15, 23, 42, 0.72);
    border-radius: 6px;
    box-shadow:
        inset 0 1px 2px rgba(15, 23, 42, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
    box-sizing: border-box;
    color: #fff;
    font: inherit;
    height: 2.95rem;
    padding: 0 0.8rem;
    width: 100%;
}

.login-field input::placeholder {
    color: rgba(255, 255, 255, 0.86);
}

.login-field input:focus {
    background: rgba(15, 23, 42, 0.44);
    border-color: rgba(255, 255, 255, 0.72);
    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.16),
        inset 0 1px 2px rgba(15, 23, 42, 0.2);
    outline: none;
}

.login-button {
    border-radius: 8px;
    font-weight: 800;
    height: 2.95rem;
    margin-left: auto;
    margin-top: 0.7rem;
    min-width: 118px;
    width: 100%;
}

.login-button.dxbl-btn {
    min-height: 2.95rem;
}

.login-alert {
    background: var(--dxds-color-background-danger-quiet-rest);
    border: 1px solid var(--dxds-color-border-danger-default-rest);
    border-radius: 10px;
    color: var(--dxds-color-content-danger-default-rest);
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
}

@media (max-width: 760px) {
    .login-page {
        overflow: auto;
        padding: 1rem;
    }

    .login-shell {
        max-width: 390px;
    }

    .login-panel {
        padding: 1.25rem;
    }

    .login-logo-wrap img {
        max-height: 64px;
    }
}

@media (max-width: 700px) {
    .teklif-file-upload {
        padding: 0.65rem;
    }

    .teklif-file-drop-zone {
        gap: 0.2rem;
        min-height: 112px;
        padding: 0.7rem;
    }

    .teklif-file-drop-icon {
        font-size: 1.35rem;
    }

    .teklif-file-drop-title {
        font-size: 1.05rem;
        line-height: 1.15;
    }

    .teklif-file-drop-subtitle {
        display: none;
    }

    .teklif-file-drop-note {
        font-size: 0.78rem;
    }

    .teklif-file-select-button {
        margin-top: 0.15rem;
        min-height: 34px;
        width: min(220px, 100%);
    }

    .teklif-file-actions {
        align-items: center;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.25rem;
        justify-content: flex-start;
    }

    .teklif-file-actions .dxbl-btn,
    .teklif-file-download {
        font-size: 0.82rem;
        justify-content: center;
        min-height: 30px;
        min-width: 0;
        padding: 0.22rem 0.45rem;
        width: auto;
    }
}
