.branch-management-page{display:flex;flex-direction:column;gap:12px;min-height:0;overflow:hidden}
.branch-page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex:none}.branch-page-heading h1{margin:0 0 4px;font-size:20px}.branch-page-heading p{margin:0;color:var(--ltn-secondary-color);font-size:12px}
.branch-page-tabs{display:flex;gap:5px}.branch-page-tabs>.active{background:var(--ltn-primary-soft);border-color:#b4d5ff;color:var(--ltn-link-color)}
.branch-management-card{min-height:0;flex:1;display:flex;flex-direction:column;background:#fff;border:1px solid var(--ltn-border-color);border-radius:8px;overflow:hidden}
.branch-toolbar{display:flex;align-items:center;gap:8px;padding:12px;flex:none;flex-wrap:wrap}.branch-toolbar .button,.branch-toolbar select{height:32px;min-height:32px}.branch-toolbar-spacer{flex:1}.branch-toolbar select{width:180px}
.branch-search{display:flex;align-items:center;gap:7px;border:1px solid var(--ltn-border-color);border-radius:6px;padding:0 9px;min-width:220px;width:350px;color:var(--ltn-secondary-color)}.branch-search>input{height:30px;min-height:30px;border:0!important;padding:0;box-shadow:none!important;min-width:0;width:100%;background:transparent}.branch-search:focus-within{border-color:#80aaf4;box-shadow:0 0 0 1px #d4e6ff}
.branch-table-scroll{overflow:auto;min-height:0;flex:1;padding:0 12px;scrollbar-width:thin;overscroll-behavior:contain}
.branch-table{width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed;font-size:14px}.branch-table th{position:sticky;top:0;z-index:1;background:#e5f0ff;color:var(--ltn-text-color);font-weight:600;text-align:left;padding:10px 12px;border-bottom:1px solid var(--ltn-border-color)}.branch-table>thead th:first-child{width:17%}.branch-table>thead th:nth-child(2){width:23%}.branch-table>tbody>tr>td{padding:12px;vertical-align:top;border-bottom:1px solid var(--ltn-border-color);overflow-wrap:anywhere}.branch-table>tbody>.branch-row{cursor:pointer}.branch-row:hover{background:#f6f9ff}.branch-row.expanded{background:#fff}.branch-row.expanded>td{border-top:1px solid #80aaf4;border-bottom:0}.branch-row.expanded>td:first-child{border-left:1px solid #80aaf4;padding-left:11px}.branch-row.expanded>td:last-child{border-right:1px solid #80aaf4;padding-right:11px}
.branch-row-name.button{padding:0;border:0;background:transparent;box-shadow:none;text-align:left;justify-content:flex-start;white-space:normal;font-size:14px;font-weight:500;min-height:0;line-height:22px;color:var(--ltn-text-color)}
.branch-column-user_count{text-align:right}.branch-column-timezone>span{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.branch-status{display:inline-block;font-size:12px;line-height:20px;padding:0 6px;border-radius:4px;white-space:nowrap}.branch-status.active{color:#0064dc;background:#e5f0ff}.branch-status.inactive{background:#f0f2f5;color:#657183}
.branch-table>tbody>.branch-expanded-row>td{padding:0;border:1px solid #80aaf4;border-top:0}.branch-detail-tabs{display:flex;gap:24px;padding:0 22px;border-bottom:1px solid var(--ltn-border-color)}.branch-detail-tabs>button{font-size:14px;font-family:inherit;background:none;border:0;border-bottom:2px solid transparent;padding:12px 0;color:var(--ltn-text-color);cursor:pointer}.branch-detail-tabs>.active{border-bottom-color:#0070f4;color:#0064dc}
.branch-detail-body{padding:16px 22px 0}.branch-info-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 18px}.branch-fact{min-width:0;display:flex;flex-direction:column;gap:10px;border-bottom:1px solid var(--ltn-border-color);padding-bottom:8px}.branch-fact>small{font-size:12px;color:var(--ltn-secondary-color)}.branch-fact>span{font-size:14px;min-height:22px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.branch-fact.full{grid-column:1/-1}.branch-fact.full>span{white-space:normal}
.branch-detail-footer{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-top:16px;padding:14px 0;border-top:1px solid var(--ltn-border-color)}.branch-detail-footer>.branch-caption{flex:1;min-width:210px}.branch-caption{font-size:12px;color:var(--ltn-secondary-color);line-height:20px;margin:0}
.branch-users,.branch-pickups{width:100%;border-collapse:collapse;table-layout:fixed}.branch-users th,.branch-pickups th{position:static;background:#f1f3f5;font-size:12px;padding:9px 10px}.branch-users td,.branch-pickups td{padding:11px 10px;border-bottom:1px solid var(--ltn-border-color);font-size:14px;overflow-wrap:anywhere;vertical-align:top}.branch-pickups th:first-child{width:19%}.branch-pickups th:nth-child(2){width:40%}.branch-pickups th:last-child{width:160px}.branch-pickups td>.button+.button{margin-left:5px}.branch-text-button.button{border:0;background:none;padding:0;min-height:0;color:#0064dc;box-shadow:none;text-align:left;white-space:normal;justify-content:flex-start}
.branch-empty,.branch-loading{padding:40px 20px;color:var(--ltn-secondary-color);text-align:center;display:grid;justify-items:center;gap:10px}.branch-empty p{margin:0}.branch-list-footer{font-size:12px;color:var(--ltn-secondary-color);padding:12px 0;position:sticky;bottom:0;background:white}
.branch-columns{position:fixed;inset:auto;margin:0;padding:10px;border:1px solid var(--ltn-border-color);border-radius:8px;background:white;box-shadow:0 8px 24px #16324c26}.branch-columns:popover-open{display:grid;gap:10px}.branch-columns>label{display:flex;align-items:center;gap:8px;font-size:14px;cursor:pointer}
dialog.branch-editor{width:520px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);border-radius:12px}dialog.branch-editor .dialog-header{padding:20px 24px;border-bottom:0}dialog.branch-editor .dialog-header h2{font-size:20px}dialog.branch-editor .dialog-body{padding:12px 24px 0;overflow:auto}dialog.branch-editor form{display:grid;gap:16px}dialog.branch-editor .branch-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 12px}dialog.branch-editor .field{margin:0;gap:6px;min-width:0}dialog.branch-editor .field>span{font-size:12px}dialog.branch-editor .field.full{grid-column:1/-1}dialog.branch-editor input:not([type=checkbox]),dialog.branch-editor select{width:100%;height:32px;min-height:32px;font-size:14px;border-radius:6px}dialog.branch-editor .branch-form-code{font-size:12px;color:var(--ltn-secondary-color)}.branch-form-code summary{cursor:pointer}.branch-form-code .field{margin-top:10px!important}
dialog.branch-editor .form-footer{position:sticky;bottom:0;background:white;margin:0 -24px;padding:12px 24px;border-top:1px solid var(--ltn-border-color);z-index:2}dialog.branch-editor .form-footer .button{height:36px;min-height:36px}.branch-phone{display:flex;align-items:center;border:1px solid var(--ltn-border-color);border-radius:6px;height:32px;min-width:0}.branch-phone:focus-within{border-color:#80aaf4;box-shadow:0 0 0 1px #d4e6ff}dialog.branch-editor .branch-phone>select{width:92px;flex:none;border:0;background:#f5f7fa;padding:0 5px;border-radius:5px 0 0 5px;box-shadow:none}dialog.branch-editor .branch-phone>input{width:0;min-width:0;flex:1;border:0;padding:0 7px;box-shadow:none;background:transparent}
@media(max-width:1250px){.branch-info-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.branch-table{min-width:850px}.branch-search{width:280px}.branch-toolbar select{width:160px}}
@media(max-width:700px){.branch-page-heading{align-items:flex-start;flex-direction:column}.branch-search{width:100%}.branch-toolbar-spacer{display:none}.branch-toolbar{gap:6px}dialog.branch-editor .branch-form-grid{grid-template-columns:1fr}dialog.branch-editor .field.full{grid-column:auto}.branch-detail-tabs{gap:16px}}

.branch-table>tbody>tr>td{white-space:normal}.branch-column-address>span{display:block;white-space:normal;overflow-wrap:anywhere}.branch-column-phone>span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
dialog.branch-editor select{padding:0 26px 0 10px;line-height:normal}

.branch-management-page .branch-table>thead th{background:#f1f3f5}.branch-management-page .branch-row.expanded>td,.branch-management-page .branch-expanded-row>td,.branch-management-page .branch-detail{background:#fff}.branch-management-page .branch-row:hover{background:#f8f9fb}.branch-management-page .branch-page-tabs>.active{background:#fff;color:var(--ltn-link-color)}.branch-delete-reason{font-size:12px;color:var(--ltn-secondary-color);line-height:20px;padding:0 0 14px}.branch-detail-footer>.danger{color:#c32343}.branch-detail-footer>.danger:disabled{color:#7c8591;opacity:.6}.branch-status.inactive{background:#f1f3f5}
